aws_network_acl

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"`
	// SubnetIds: set of string, optional
	SubnetIds terra.SetValue[terra.StringValue] `hcl:"subnet_ids,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, required
	VpcId terra.StringValue `hcl:"vpc_id,attr" validate:"required"`
	// 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_network_acl.

type Egress

type Egress struct {
	// Action: string, optional
	Action terra.StringValue `hcl:"action,attr"`
	// CidrBlock: string, optional
	CidrBlock terra.StringValue `hcl:"cidr_block,attr"`
	// FromPort: number, optional
	FromPort terra.NumberValue `hcl:"from_port,attr"`
	// IcmpCode: number, optional
	IcmpCode terra.NumberValue `hcl:"icmp_code,attr"`
	// IcmpType: number, optional
	IcmpType terra.NumberValue `hcl:"icmp_type,attr"`
	// Ipv6CidrBlock: string, optional
	Ipv6CidrBlock terra.StringValue `hcl:"ipv6_cidr_block,attr"`
	// Protocol: string, optional
	Protocol terra.StringValue `hcl:"protocol,attr"`
	// RuleNo: number, optional
	RuleNo terra.NumberValue `hcl:"rule_no,attr"`
	// ToPort: number, optional
	ToPort terra.NumberValue `hcl:"to_port,attr"`
}

type EgressAttributes

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

func (EgressAttributes) Action

func (e EgressAttributes) Action() terra.StringValue

func (EgressAttributes) CidrBlock

func (e EgressAttributes) CidrBlock() terra.StringValue

func (EgressAttributes) FromPort

func (e EgressAttributes) FromPort() terra.NumberValue

func (EgressAttributes) IcmpCode

func (e EgressAttributes) IcmpCode() terra.NumberValue

func (EgressAttributes) IcmpType

func (e EgressAttributes) IcmpType() 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) Ipv6CidrBlock

func (e EgressAttributes) Ipv6CidrBlock() terra.StringValue

func (EgressAttributes) Protocol

func (e EgressAttributes) Protocol() terra.StringValue

func (EgressAttributes) RuleNo

func (e EgressAttributes) RuleNo() terra.NumberValue

func (EgressAttributes) ToPort

func (e EgressAttributes) ToPort() terra.NumberValue

type EgressState

type EgressState struct {
	Action        string  `json:"action"`
	CidrBlock     string  `json:"cidr_block"`
	FromPort      float64 `json:"from_port"`
	IcmpCode      float64 `json:"icmp_code"`
	IcmpType      float64 `json:"icmp_type"`
	Ipv6CidrBlock string  `json:"ipv6_cidr_block"`
	Protocol      string  `json:"protocol"`
	RuleNo        float64 `json:"rule_no"`
	ToPort        float64 `json:"to_port"`
}

type Ingress

type Ingress struct {
	// Action: string, optional
	Action terra.StringValue `hcl:"action,attr"`
	// CidrBlock: string, optional
	CidrBlock terra.StringValue `hcl:"cidr_block,attr"`
	// FromPort: number, optional
	FromPort terra.NumberValue `hcl:"from_port,attr"`
	// IcmpCode: number, optional
	IcmpCode terra.NumberValue `hcl:"icmp_code,attr"`
	// IcmpType: number, optional
	IcmpType terra.NumberValue `hcl:"icmp_type,attr"`
	// Ipv6CidrBlock: string, optional
	Ipv6CidrBlock terra.StringValue `hcl:"ipv6_cidr_block,attr"`
	// Protocol: string, optional
	Protocol terra.StringValue `hcl:"protocol,attr"`
	// RuleNo: number, optional
	RuleNo terra.NumberValue `hcl:"rule_no,attr"`
	// ToPort: number, optional
	ToPort terra.NumberValue `hcl:"to_port,attr"`
}

type IngressAttributes

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

func (IngressAttributes) Action

func (i IngressAttributes) Action() terra.StringValue

func (IngressAttributes) CidrBlock

func (i IngressAttributes) CidrBlock() terra.StringValue

func (IngressAttributes) FromPort

func (i IngressAttributes) FromPort() terra.NumberValue

func (IngressAttributes) IcmpCode

func (i IngressAttributes) IcmpCode() terra.NumberValue

func (IngressAttributes) IcmpType

func (i IngressAttributes) IcmpType() 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) Ipv6CidrBlock

func (i IngressAttributes) Ipv6CidrBlock() terra.StringValue

func (IngressAttributes) Protocol

func (i IngressAttributes) Protocol() terra.StringValue

func (IngressAttributes) RuleNo

func (i IngressAttributes) RuleNo() terra.NumberValue

func (IngressAttributes) ToPort

func (i IngressAttributes) ToPort() terra.NumberValue

type IngressState

type IngressState struct {
	Action        string  `json:"action"`
	CidrBlock     string  `json:"cidr_block"`
	FromPort      float64 `json:"from_port"`
	IcmpCode      float64 `json:"icmp_code"`
	IcmpType      float64 `json:"icmp_type"`
	Ipv6CidrBlock string  `json:"ipv6_cidr_block"`
	Protocol      string  `json:"protocol"`
	RuleNo        float64 `json:"rule_no"`
	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_network_acl.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (ana *Resource) Attributes() awsNetworkAclAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (ana *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (ana *Resource) State() (*awsNetworkAclState, bool)

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

func (*Resource) StateMust

func (ana *Resource) StateMust() *awsNetworkAclState

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

func (*Resource) Type

func (ana *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