driftctl/pkg/resource/aws/aws_kms_alias.go

15 lines
424 B
Go

package aws
import (
"github.com/snyk/driftctl/enumeration/resource"
"github.com/snyk/driftctl/enumeration/resource/aws"
)
func initAwsKmsAliasMetaData(resourceSchemaRepository resource.SchemaRepositoryInterface) {
resourceSchemaRepository.SetNormalizeFunc(aws.AwsKmsAliasResourceType, func(res *resource.Resource) {
val := res.Attrs
val.SafeDelete([]string{"name"})
val.SafeDelete([]string{"name_prefix"})
})
}