2021-01-07 16:53:17 +00:00
|
|
|
package aws
|
|
|
|
|
2021-04-26 15:43:37 +00:00
|
|
|
import (
|
2021-04-28 15:58:55 +00:00
|
|
|
"github.com/cloudskiff/driftctl/pkg/resource"
|
2021-04-26 15:43:37 +00:00
|
|
|
)
|
2021-03-25 11:13:52 +00:00
|
|
|
|
2021-01-07 16:53:17 +00:00
|
|
|
const AwsDefaultSubnetResourceType = "aws_default_subnet"
|
|
|
|
|
2021-04-26 15:43:37 +00:00
|
|
|
func initAwsDefaultSubnetMetaData(resourceSchemaRepository resource.SchemaRepositoryInterface) {
|
2021-08-09 14:03:04 +00:00
|
|
|
resourceSchemaRepository.SetNormalizeFunc(AwsDefaultSubnetResourceType, func(res *resource.Resource) {
|
2021-05-24 15:19:06 +00:00
|
|
|
val := res.Attrs
|
2021-04-26 15:43:37 +00:00
|
|
|
val.SafeDelete([]string{"timeouts"})
|
|
|
|
})
|
2021-09-17 15:16:06 +00:00
|
|
|
resourceSchemaRepository.SetFlags(AwsDefaultSubnetResourceType, resource.FlagDeepMode)
|
2021-04-26 15:43:37 +00:00
|
|
|
}
|