17 lines
497 B
Go
17 lines
497 B
Go
package aws
|
|
|
|
import (
|
|
"github.com/cloudskiff/driftctl/pkg/resource"
|
|
)
|
|
|
|
const AwsKmsAliasResourceType = "aws_kms_alias"
|
|
|
|
func initAwsKmsAliasMetaData(resourceSchemaRepository resource.SchemaRepositoryInterface) {
|
|
resourceSchemaRepository.SetNormalizeFunc(AwsKmsAliasResourceType, func(res *resource.Resource) {
|
|
val := res.Attrs
|
|
val.SafeDelete([]string{"name"})
|
|
val.SafeDelete([]string{"name_prefix"})
|
|
})
|
|
resourceSchemaRepository.SetFlags(AwsKmsAliasResourceType, resource.FlagDeepMode)
|
|
}
|