2020-12-09 15:31:34 +00:00
|
|
|
// 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
|
|
|
|
2020-12-09 15:31:34 +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"`
|
2021-03-11 09:49:04 +00:00
|
|
|
NamePrefix *string `cty:"name_prefix" computed:"true" diff:"-"`
|
2020-12-09 15:31:34 +00:00
|
|
|
SubnetIds []string `cty:"subnet_ids"`
|
|
|
|
Tags map[string]string `cty:"tags"`
|
2021-03-25 11:13:52 +00:00
|
|
|
CtyVal *cty.Value `diff:"-"`
|
2020-12-09 15:31:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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"})
|
|
|
|
})
|
|
|
|
}
|