aws_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 {
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, optional
	Name terra.StringValue `hcl:"name,attr"`
	// NamePrefix: string, optional
	NamePrefix terra.StringValue `hcl:"name_prefix,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"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for aws_security_group.

type DataArgs

type DataArgs struct {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, optional
	Name terra.StringValue `hcl:"name,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// VpcId: string, optional
	VpcId terra.StringValue `hcl:"vpc_id,attr"`
	// Filter: min=0
	Filter []DataFilter `hcl:"filter,block" validate:"min=0"`
	// Timeouts: optional
	Timeouts *DataTimeouts `hcl:"timeouts,block"`
}

DataArgs contains the configurations for aws_security_group.

type DataFilter

type DataFilter struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Values: set of string, required
	Values terra.SetValue[terra.StringValue] `hcl:"values,attr" validate:"required"`
}

type DataFilterAttributes

type DataFilterAttributes struct {
	// contains filtered or unexported fields
}

func (DataFilterAttributes) InternalRef

func (f DataFilterAttributes) InternalRef() (terra.Reference, error)

func (DataFilterAttributes) InternalTokens

func (f DataFilterAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataFilterAttributes) InternalWithRef

func (DataFilterAttributes) Name

func (DataFilterAttributes) Values

type DataFilterState

type DataFilterState struct {
	Name   string   `json:"name"`
	Values []string `json:"values"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource aws_security_group.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (asg *DataSource) Attributes() dataAwsSecurityGroupAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

func (asg *DataSource) Configuration() interface{}

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (asg *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (asg *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type DataTimeouts

type DataTimeouts struct {
	// Read: string, optional
	Read terra.StringValue `hcl:"read,attr"`
}

type DataTimeoutsAttributes

type DataTimeoutsAttributes struct {
	// contains filtered or unexported fields
}

func (DataTimeoutsAttributes) InternalRef

func (t DataTimeoutsAttributes) InternalRef() (terra.Reference, error)

func (DataTimeoutsAttributes) InternalTokens

func (t DataTimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataTimeoutsAttributes) InternalWithRef

func (DataTimeoutsAttributes) Read

type DataTimeoutsState

type DataTimeoutsState struct {
	Read string `json:"read"`
}

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_security_group.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (asg *Resource) Attributes() awsSecurityGroupAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

func (asg *Resource) Configuration() interface{}

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (asg *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (asg *Resource) State() (*awsSecurityGroupState, bool)

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

func (*Resource) StateMust

func (asg *Resource) StateMust() *awsSecurityGroupState

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

func (*Resource) Type

func (asg *Resource) Type() string

Type returns the Terraform object type for Resource.

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,attr"`
}

type TimeoutsAttributes

type TimeoutsAttributes struct {
	// contains filtered or unexported fields
}

func (TimeoutsAttributes) Create

func (TimeoutsAttributes) Delete

func (TimeoutsAttributes) InternalRef

func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)

func (TimeoutsAttributes) InternalTokens

func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TimeoutsAttributes) InternalWithRef

func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Delete string `json:"delete"`
}

Jump to

Keyboard shortcuts

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