driftctl/pkg/resource/aws/aws_db_subnet_group.go

39 lines
1.1 KiB
Go
Raw Normal View History

// GENERATED, DO NOT EDIT THIS FILE
package aws
2021-04-26 13:56:13 +00:00
import (
"github.com/cloudskiff/driftctl/pkg/resource"
"github.com/zclconf/go-cty/cty"
)
2021-03-25 11:13:52 +00:00
const AwsDbSubnetGroupResourceType = "aws_db_subnet_group"
type AwsDbSubnetGroup struct {
Arn *string `cty:"arn" computed:"true"`
Description *string `cty:"description"`
Id string `cty:"id" computed:"true"`
Name *string `cty:"name" computed:"true"`
NamePrefix *string `cty:"name_prefix" computed:"true" diff:"-"`
SubnetIds []string `cty:"subnet_ids"`
Tags map[string]string `cty:"tags"`
2021-03-25 11:13:52 +00:00
CtyVal *cty.Value `diff:"-"`
}
func (r *AwsDbSubnetGroup) TerraformId() string {
return r.Id
}
func (r *AwsDbSubnetGroup) TerraformType() string {
return AwsDbSubnetGroupResourceType
}
2021-03-25 11:13:52 +00:00
func (r *AwsDbSubnetGroup) CtyValue() *cty.Value {
return r.CtyVal
}
2021-04-26 13:56:13 +00:00
func initAwsDbSubnetGroupMetaData(resourceSchemaRepository resource.SchemaRepositoryInterface) {
resourceSchemaRepository.SetNormalizeFunc(AwsDbSubnetGroupResourceType, func(val *resource.Attributes) {
val.SafeDelete([]string{"name_prefix"})
})
}