driftctl/pkg/resource/aws/aws_security_group_rule.go

35 lines
1.1 KiB
Go
Raw Normal View History

// GENERATED, DO NOT EDIT THIS FILE
package aws
2021-03-25 11:13:52 +00:00
import "github.com/zclconf/go-cty/cty"
const AwsSecurityGroupRuleResourceType = "aws_security_group_rule"
type AwsSecurityGroupRule struct {
2021-03-25 11:13:52 +00:00
CidrBlocks *[]string `cty:"cidr_blocks"`
Description *string `cty:"description"`
FromPort *int `cty:"from_port"`
Id string `cty:"id" computed:"true"`
Ipv6CidrBlocks *[]string `cty:"ipv6_cidr_blocks"`
PrefixListIds *[]string `cty:"prefix_list_ids"`
Protocol *string `cty:"protocol"`
SecurityGroupId *string `cty:"security_group_id"`
Self *bool `cty:"self" diff:"-"`
SourceSecurityGroupId *string `cty:"source_security_group_id" computed:"true"`
ToPort *int `cty:"to_port"`
Type *string `cty:"type"`
CtyVal *cty.Value `diff:"-"`
}
func (r *AwsSecurityGroupRule) TerraformId() string {
return r.Id
}
func (r *AwsSecurityGroupRule) TerraformType() string {
return AwsSecurityGroupRuleResourceType
}
2021-03-25 11:13:52 +00:00
func (r *AwsSecurityGroupRule) CtyValue() *cty.Value {
return r.CtyVal
}