driftctl/pkg/resource/aws/aws_kms_alias.go

16 lines
422 B
Go
Raw Normal View History

2021-02-25 13:19:49 +00:00
package aws
2021-05-17 10:09:35 +00:00
import (
"github.com/cloudskiff/driftctl/pkg/resource"
)
2021-03-25 11:13:52 +00:00
2021-02-25 13:19:49 +00:00
const AwsKmsAliasResourceType = "aws_kms_alias"
2021-05-17 10:09:35 +00:00
func initAwsKmsAliasMetaData(resourceSchemaRepository resource.SchemaRepositoryInterface) {
resourceSchemaRepository.SetNormalizeFunc(AwsKmsAliasResourceType, func(res *resource.AbstractResource) {
val := res.Attrs
2021-05-17 10:09:35 +00:00
val.SafeDelete([]string{"name"})
val.SafeDelete([]string{"name_prefix"})
})
}