Documentation ¶
Index ¶
- type Args
- type Egress
- type EgressAttributes
- func (e EgressAttributes) CidrBlocks() terra.ListValue[terra.StringValue]
- func (e EgressAttributes) Description() terra.StringValue
- func (e EgressAttributes) FromPort() terra.NumberValue
- func (e EgressAttributes) InternalRef() (terra.Reference, error)
- func (e EgressAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (e EgressAttributes) InternalWithRef(ref terra.Reference) EgressAttributes
- func (e EgressAttributes) Ipv6CidrBlocks() terra.ListValue[terra.StringValue]
- func (e EgressAttributes) PrefixListIds() terra.ListValue[terra.StringValue]
- func (e EgressAttributes) Protocol() terra.StringValue
- func (e EgressAttributes) SecurityGroups() terra.SetValue[terra.StringValue]
- func (e EgressAttributes) Self() terra.BoolValue
- func (e EgressAttributes) ToPort() terra.NumberValue
- type EgressState
- type Ingress
- type IngressAttributes
- func (i IngressAttributes) CidrBlocks() terra.ListValue[terra.StringValue]
- func (i IngressAttributes) Description() terra.StringValue
- func (i IngressAttributes) FromPort() terra.NumberValue
- func (i IngressAttributes) InternalRef() (terra.Reference, error)
- func (i IngressAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (i IngressAttributes) InternalWithRef(ref terra.Reference) IngressAttributes
- func (i IngressAttributes) Ipv6CidrBlocks() terra.ListValue[terra.StringValue]
- func (i IngressAttributes) PrefixListIds() terra.ListValue[terra.StringValue]
- func (i IngressAttributes) Protocol() terra.StringValue
- func (i IngressAttributes) SecurityGroups() terra.SetValue[terra.StringValue]
- func (i IngressAttributes) Self() terra.BoolValue
- func (i IngressAttributes) ToPort() terra.NumberValue
- type IngressState
- type Resource
- func (adsg *Resource) Attributes() awsDefaultSecurityGroupAttributes
- func (adsg *Resource) Configuration() interface{}
- func (adsg *Resource) DependOn() terra.Reference
- func (adsg *Resource) Dependencies() terra.Dependencies
- func (adsg *Resource) ImportState(state io.Reader) error
- func (adsg *Resource) LifecycleManagement() *terra.Lifecycle
- func (adsg *Resource) LocalName() string
- func (adsg *Resource) State() (*awsDefaultSecurityGroupState, bool)
- func (adsg *Resource) StateMust() *awsDefaultSecurityGroupState
- func (adsg *Resource) Type() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Args ¶
type Args struct { // Id: string, optional Id terra.StringValue `hcl:"id,attr"` // RevokeRulesOnDelete: bool, optional RevokeRulesOnDelete terra.BoolValue `hcl:"revoke_rules_on_delete,attr"` // Tags: map of string, optional Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"` // TagsAll: map of string, optional TagsAll terra.MapValue[terra.StringValue] `hcl:"tags_all,attr"` // VpcId: string, optional VpcId terra.StringValue `hcl:"vpc_id,attr"` // Egress: min=0 Egress []Egress `hcl:"egress,block" validate:"min=0"` // Ingress: min=0 Ingress []Ingress `hcl:"ingress,block" validate:"min=0"` }
Args contains the configurations for aws_default_security_group.
type Egress ¶
type Egress struct { // CidrBlocks: list of string, optional CidrBlocks terra.ListValue[terra.StringValue] `hcl:"cidr_blocks,attr"` // Description: string, optional Description terra.StringValue `hcl:"description,attr"` // FromPort: number, optional FromPort terra.NumberValue `hcl:"from_port,attr"` // Ipv6CidrBlocks: list of string, optional Ipv6CidrBlocks terra.ListValue[terra.StringValue] `hcl:"ipv6_cidr_blocks,attr"` // PrefixListIds: list of string, optional PrefixListIds terra.ListValue[terra.StringValue] `hcl:"prefix_list_ids,attr"` // Protocol: string, optional Protocol terra.StringValue `hcl:"protocol,attr"` // SecurityGroups: set of string, optional SecurityGroups terra.SetValue[terra.StringValue] `hcl:"security_groups,attr"` // Self: bool, optional Self terra.BoolValue `hcl:"self,attr"` // ToPort: number, optional ToPort terra.NumberValue `hcl:"to_port,attr"` }
type EgressAttributes ¶
type EgressAttributes struct {
// contains filtered or unexported fields
}
func (EgressAttributes) CidrBlocks ¶
func (e EgressAttributes) CidrBlocks() terra.ListValue[terra.StringValue]
func (EgressAttributes) Description ¶
func (e EgressAttributes) Description() terra.StringValue
func (EgressAttributes) FromPort ¶
func (e EgressAttributes) FromPort() terra.NumberValue
func (EgressAttributes) InternalRef ¶
func (e EgressAttributes) InternalRef() (terra.Reference, error)
func (EgressAttributes) InternalTokens ¶
func (e EgressAttributes) InternalTokens() (hclwrite.Tokens, error)
func (EgressAttributes) InternalWithRef ¶
func (e EgressAttributes) InternalWithRef(ref terra.Reference) EgressAttributes
func (EgressAttributes) Ipv6CidrBlocks ¶
func (e EgressAttributes) Ipv6CidrBlocks() terra.ListValue[terra.StringValue]
func (EgressAttributes) PrefixListIds ¶
func (e EgressAttributes) PrefixListIds() terra.ListValue[terra.StringValue]
func (EgressAttributes) Protocol ¶
func (e EgressAttributes) Protocol() terra.StringValue
func (EgressAttributes) SecurityGroups ¶
func (e EgressAttributes) SecurityGroups() terra.SetValue[terra.StringValue]
func (EgressAttributes) Self ¶
func (e EgressAttributes) Self() terra.BoolValue
func (EgressAttributes) ToPort ¶
func (e EgressAttributes) ToPort() terra.NumberValue
type EgressState ¶
type EgressState struct { CidrBlocks []string `json:"cidr_blocks"` Description string `json:"description"` FromPort float64 `json:"from_port"` Ipv6CidrBlocks []string `json:"ipv6_cidr_blocks"` PrefixListIds []string `json:"prefix_list_ids"` Protocol string `json:"protocol"` SecurityGroups []string `json:"security_groups"` Self bool `json:"self"` ToPort float64 `json:"to_port"` }
type Ingress ¶
type Ingress struct { // CidrBlocks: list of string, optional CidrBlocks terra.ListValue[terra.StringValue] `hcl:"cidr_blocks,attr"` // Description: string, optional Description terra.StringValue `hcl:"description,attr"` // FromPort: number, optional FromPort terra.NumberValue `hcl:"from_port,attr"` // Ipv6CidrBlocks: list of string, optional Ipv6CidrBlocks terra.ListValue[terra.StringValue] `hcl:"ipv6_cidr_blocks,attr"` // PrefixListIds: list of string, optional PrefixListIds terra.ListValue[terra.StringValue] `hcl:"prefix_list_ids,attr"` // Protocol: string, optional Protocol terra.StringValue `hcl:"protocol,attr"` // SecurityGroups: set of string, optional SecurityGroups terra.SetValue[terra.StringValue] `hcl:"security_groups,attr"` // Self: bool, optional Self terra.BoolValue `hcl:"self,attr"` // ToPort: number, optional ToPort terra.NumberValue `hcl:"to_port,attr"` }
type IngressAttributes ¶
type IngressAttributes struct {
// contains filtered or unexported fields
}
func (IngressAttributes) CidrBlocks ¶
func (i IngressAttributes) CidrBlocks() terra.ListValue[terra.StringValue]
func (IngressAttributes) Description ¶
func (i IngressAttributes) Description() terra.StringValue
func (IngressAttributes) FromPort ¶
func (i IngressAttributes) FromPort() terra.NumberValue
func (IngressAttributes) InternalRef ¶
func (i IngressAttributes) InternalRef() (terra.Reference, error)
func (IngressAttributes) InternalTokens ¶
func (i IngressAttributes) InternalTokens() (hclwrite.Tokens, error)
func (IngressAttributes) InternalWithRef ¶
func (i IngressAttributes) InternalWithRef(ref terra.Reference) IngressAttributes
func (IngressAttributes) Ipv6CidrBlocks ¶
func (i IngressAttributes) Ipv6CidrBlocks() terra.ListValue[terra.StringValue]
func (IngressAttributes) PrefixListIds ¶
func (i IngressAttributes) PrefixListIds() terra.ListValue[terra.StringValue]
func (IngressAttributes) Protocol ¶
func (i IngressAttributes) Protocol() terra.StringValue
func (IngressAttributes) SecurityGroups ¶
func (i IngressAttributes) SecurityGroups() terra.SetValue[terra.StringValue]
func (IngressAttributes) Self ¶
func (i IngressAttributes) Self() terra.BoolValue
func (IngressAttributes) ToPort ¶
func (i IngressAttributes) ToPort() terra.NumberValue
type IngressState ¶
type IngressState struct { CidrBlocks []string `json:"cidr_blocks"` Description string `json:"description"` FromPort float64 `json:"from_port"` Ipv6CidrBlocks []string `json:"ipv6_cidr_blocks"` PrefixListIds []string `json:"prefix_list_ids"` Protocol string `json:"protocol"` SecurityGroups []string `json:"security_groups"` Self bool `json:"self"` ToPort float64 `json:"to_port"` }
type Resource ¶
type Resource struct { Name string Args Args DependsOn terra.Dependencies Lifecycle *terra.Lifecycle // contains filtered or unexported fields }
Resource represents the Terraform resource aws_default_security_group.
func (*Resource) Attributes ¶
func (adsg *Resource) Attributes() awsDefaultSecurityGroupAttributes
Attributes returns the attributes for Resource.
func (*Resource) Configuration ¶
func (adsg *Resource) Configuration() interface{}
Configuration returns the configuration (args) for Resource.
func (*Resource) Dependencies ¶
func (adsg *Resource) Dependencies() terra.Dependencies
Dependencies returns the list of resources Resource depends_on.
func (*Resource) ImportState ¶
ImportState imports the given attribute values into Resource's state.
func (*Resource) LifecycleManagement ¶
LifecycleManagement returns the lifecycle block for Resource.
Click to show internal directories.
Click to hide internal directories.