driftctl/pkg/resource/aws/aws_default_route_table.go

15 lines
556 B
Go

package aws
import "github.com/cloudskiff/driftctl/pkg/resource"
const AwsDefaultRouteTableResourceType = "aws_default_route_table"
func initAwsDefaultRouteTableMetadata(resourceSchemaRepository resource.SchemaRepositoryInterface) {
resourceSchemaRepository.SetResolveReadAttributesFunc(AwsDefaultRouteTableResourceType, func(res *resource.Resource) map[string]string {
return map[string]string{
"vpc_id": *res.Attributes().GetString("vpc_id"),
}
})
resourceSchemaRepository.SetFlags(AwsDefaultRouteTableResourceType, resource.FlagDeepMode)
}