driftctl/pkg/resource/aws/aws_db_subnet_group.go

16 lines
488 B
Go
Raw Normal View History

package aws
2021-04-26 13:56:13 +00:00
import (
"github.com/cloudskiff/driftctl/pkg/resource"
)
2021-03-25 11:13:52 +00:00
const AwsDbSubnetGroupResourceType = "aws_db_subnet_group"
2021-04-26 13:56:13 +00:00
func initAwsDbSubnetGroupMetaData(resourceSchemaRepository resource.SchemaRepositoryInterface) {
2021-08-09 14:03:04 +00:00
resourceSchemaRepository.SetNormalizeFunc(AwsDbSubnetGroupResourceType, func(res *resource.Resource) {
val := res.Attrs
2021-04-26 13:56:13 +00:00
val.SafeDelete([]string{"name_prefix"})
})
2021-09-17 15:16:06 +00:00
resourceSchemaRepository.SetFlags(AwsDbSubnetGroupResourceType, resource.FlagDeepMode)
2021-04-26 13:56:13 +00:00
}