2021-01-15 13:15:31 +00:00
|
|
|
// GENERATED, DO NOT EDIT THIS FILE
|
|
|
|
package aws
|
|
|
|
|
2021-04-26 15:24:57 +00:00
|
|
|
import (
|
|
|
|
"github.com/cloudskiff/driftctl/pkg/resource"
|
|
|
|
"github.com/zclconf/go-cty/cty"
|
|
|
|
)
|
2021-03-25 11:13:52 +00:00
|
|
|
|
2021-01-15 13:15:31 +00:00
|
|
|
const AwsDefaultSecurityGroupResourceType = "aws_default_security_group"
|
|
|
|
|
|
|
|
type AwsDefaultSecurityGroup struct {
|
|
|
|
Arn *string `cty:"arn" computed:"true"`
|
|
|
|
Description *string `cty:"description" computed:"true"`
|
|
|
|
Egress *[]struct {
|
|
|
|
CidrBlocks []string `cty:"cidr_blocks"`
|
|
|
|
Description *string `cty:"description"`
|
|
|
|
FromPort *int `cty:"from_port"`
|
|
|
|
Ipv6CidrBlocks []string `cty:"ipv6_cidr_blocks"`
|
|
|
|
PrefixListIds []string `cty:"prefix_list_ids"`
|
|
|
|
Protocol *string `cty:"protocol"`
|
|
|
|
SecurityGroups []string `cty:"security_groups"`
|
|
|
|
Self *bool `cty:"self"`
|
|
|
|
ToPort *int `cty:"to_port"`
|
|
|
|
} `cty:"egress" computed:"true"`
|
|
|
|
Id string `cty:"id" computed:"true"`
|
|
|
|
Ingress *[]struct {
|
|
|
|
CidrBlocks []string `cty:"cidr_blocks"`
|
|
|
|
Description *string `cty:"description"`
|
|
|
|
FromPort *int `cty:"from_port"`
|
|
|
|
Ipv6CidrBlocks []string `cty:"ipv6_cidr_blocks"`
|
|
|
|
PrefixListIds []string `cty:"prefix_list_ids"`
|
|
|
|
Protocol *string `cty:"protocol"`
|
|
|
|
SecurityGroups []string `cty:"security_groups"`
|
|
|
|
Self *bool `cty:"self"`
|
|
|
|
ToPort *int `cty:"to_port"`
|
|
|
|
} `cty:"ingress" computed:"true"`
|
|
|
|
Name *string `cty:"name" computed:"true"`
|
|
|
|
OwnerId *string `cty:"owner_id" computed:"true"`
|
|
|
|
RevokeRulesOnDelete *bool `cty:"revoke_rules_on_delete" diff:"-"`
|
|
|
|
Tags map[string]string `cty:"tags"`
|
|
|
|
VpcId *string `cty:"vpc_id" computed:"true"`
|
2021-03-25 11:13:52 +00:00
|
|
|
CtyVal *cty.Value `diff:"-"`
|
2021-01-15 13:15:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (r *AwsDefaultSecurityGroup) TerraformId() string {
|
|
|
|
return r.Id
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *AwsDefaultSecurityGroup) TerraformType() string {
|
|
|
|
return AwsDefaultSecurityGroupResourceType
|
|
|
|
}
|
2021-03-25 11:13:52 +00:00
|
|
|
|
|
|
|
func (r *AwsDefaultSecurityGroup) CtyValue() *cty.Value {
|
|
|
|
return r.CtyVal
|
|
|
|
}
|
2021-04-26 15:24:57 +00:00
|
|
|
|
|
|
|
func initAwsDefaultSecurityGroupMetaData(resourceSchemaRepository resource.SchemaRepositoryInterface) {
|
|
|
|
resourceSchemaRepository.SetNormalizeFunc(AwsDefaultSecurityGroupResourceType, func(val *resource.Attributes) {
|
|
|
|
val.SafeDelete([]string{"revoke_rules_on_delete"})
|
|
|
|
val.SafeDelete([]string{"ingress"})
|
|
|
|
val.SafeDelete([]string{"egress"})
|
|
|
|
})
|
|
|
|
}
|