aws_default_security_group

package
v0.0.0-...-4deecce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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 (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 (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 (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 New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

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) DependOn

func (adsg *Resource) DependOn() terra.Reference

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

func (adsg *Resource) Dependencies() terra.Dependencies

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

func (adsg *Resource) ImportState(state io.Reader) error

ImportState imports the given attribute values into Resource's state.

func (*Resource) LifecycleManagement

func (adsg *Resource) LifecycleManagement() *terra.Lifecycle

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (adsg *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (adsg *Resource) State() (*awsDefaultSecurityGroupState, bool)

State returns the state and a bool indicating if Resource has state.

func (*Resource) StateMust

func (adsg *Resource) StateMust() *awsDefaultSecurityGroupState

StateMust returns the state for Resource. Panics if the state is nil.

func (*Resource) Type

func (adsg *Resource) Type() string

Type returns the Terraform object type for Resource.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL