driftctl/pkg/resource/aws/aws_vpc.go

16 lines
482 B
Go

package aws
import (
"github.com/snyk/driftctl/enumeration/resource"
dctlresource "github.com/snyk/driftctl/pkg/resource"
)
const AwsVpcResourceType = "aws_vpc"
func initAwsVpcMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
resourceSchemaRepository.SetNormalizeFunc(AwsVpcResourceType, func(res *resource.Resource) {
res.Attributes().SafeDelete([]string{"arn"})
})
resourceSchemaRepository.SetFlags(AwsVpcResourceType, resource.FlagDeepMode)
}