aws_alb

package
v5.45.0 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 AccessLogs

type AccessLogs struct {
	// Bucket: string, required
	Bucket terra.StringValue `hcl:"bucket,attr" validate:"required"`
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
	// Prefix: string, optional
	Prefix terra.StringValue `hcl:"prefix,attr"`
}

type AccessLogsAttributes

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

func (AccessLogsAttributes) Bucket

func (AccessLogsAttributes) Enabled

func (al AccessLogsAttributes) Enabled() terra.BoolValue

func (AccessLogsAttributes) InternalRef

func (al AccessLogsAttributes) InternalRef() (terra.Reference, error)

func (AccessLogsAttributes) InternalTokens

func (al AccessLogsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AccessLogsAttributes) InternalWithRef

func (al AccessLogsAttributes) InternalWithRef(ref terra.Reference) AccessLogsAttributes

func (AccessLogsAttributes) Prefix

type AccessLogsState

type AccessLogsState struct {
	Bucket  string `json:"bucket"`
	Enabled bool   `json:"enabled"`
	Prefix  string `json:"prefix"`
}

type Args

type Args struct {
	// CustomerOwnedIpv4Pool: string, optional
	CustomerOwnedIpv4Pool terra.StringValue `hcl:"customer_owned_ipv4_pool,attr"`
	// DesyncMitigationMode: string, optional
	DesyncMitigationMode terra.StringValue `hcl:"desync_mitigation_mode,attr"`
	// DropInvalidHeaderFields: bool, optional
	DropInvalidHeaderFields terra.BoolValue `hcl:"drop_invalid_header_fields,attr"`
	// EnableCrossZoneLoadBalancing: bool, optional
	EnableCrossZoneLoadBalancing terra.BoolValue `hcl:"enable_cross_zone_load_balancing,attr"`
	// EnableDeletionProtection: bool, optional
	EnableDeletionProtection terra.BoolValue `hcl:"enable_deletion_protection,attr"`
	// EnableHttp2: bool, optional
	EnableHttp2 terra.BoolValue `hcl:"enable_http2,attr"`
	// EnableWafFailOpen: bool, optional
	EnableWafFailOpen terra.BoolValue `hcl:"enable_waf_fail_open,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// IdleTimeout: number, optional
	IdleTimeout terra.NumberValue `hcl:"idle_timeout,attr"`
	// Internal: bool, optional
	Internal terra.BoolValue `hcl:"internal,attr"`
	// IpAddressType: string, optional
	IpAddressType terra.StringValue `hcl:"ip_address_type,attr"`
	// LoadBalancerType: string, optional
	LoadBalancerType terra.StringValue `hcl:"load_balancer_type,attr"`
	// Name: string, optional
	Name terra.StringValue `hcl:"name,attr"`
	// NamePrefix: string, optional
	NamePrefix terra.StringValue `hcl:"name_prefix,attr"`
	// PreserveHostHeader: bool, optional
	PreserveHostHeader terra.BoolValue `hcl:"preserve_host_header,attr"`
	// SecurityGroups: set of string, optional
	SecurityGroups terra.SetValue[terra.StringValue] `hcl:"security_groups,attr"`
	// Subnets: set of string, optional
	Subnets terra.SetValue[terra.StringValue] `hcl:"subnets,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"`
	// AccessLogs: optional
	AccessLogs *AccessLogs `hcl:"access_logs,block"`
	// SubnetMapping: min=0
	SubnetMapping []SubnetMapping `hcl:"subnet_mapping,block" validate:"min=0"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for aws_alb.

type DataAccessLogsAttributes

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

func (DataAccessLogsAttributes) Bucket

func (DataAccessLogsAttributes) Enabled

func (DataAccessLogsAttributes) InternalRef

func (al DataAccessLogsAttributes) InternalRef() (terra.Reference, error)

func (DataAccessLogsAttributes) InternalTokens

func (al DataAccessLogsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataAccessLogsAttributes) InternalWithRef

func (DataAccessLogsAttributes) Prefix

type DataAccessLogsState

type DataAccessLogsState struct {
	Bucket  string `json:"bucket"`
	Enabled bool   `json:"enabled"`
	Prefix  string `json:"prefix"`
}

type DataArgs

type DataArgs struct {
	// Arn: string, optional
	Arn terra.StringValue `hcl:"arn,attr"`
	// 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"`
	// Timeouts: optional
	Timeouts *DataTimeouts `hcl:"timeouts,block"`
}

DataArgs contains the configurations for aws_alb.

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource aws_alb.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (aa *DataSource) Attributes() dataAwsAlbAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (aa *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (aa *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type DataSubnetMappingAttributes

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

func (DataSubnetMappingAttributes) AllocationId

func (sm DataSubnetMappingAttributes) AllocationId() terra.StringValue

func (DataSubnetMappingAttributes) InternalRef

func (sm DataSubnetMappingAttributes) InternalRef() (terra.Reference, error)

func (DataSubnetMappingAttributes) InternalTokens

func (sm DataSubnetMappingAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataSubnetMappingAttributes) InternalWithRef

func (DataSubnetMappingAttributes) Ipv6Address

func (DataSubnetMappingAttributes) OutpostId

func (DataSubnetMappingAttributes) PrivateIpv4Address

func (sm DataSubnetMappingAttributes) PrivateIpv4Address() terra.StringValue

func (DataSubnetMappingAttributes) SubnetId

type DataSubnetMappingState

type DataSubnetMappingState struct {
	AllocationId       string `json:"allocation_id"`
	Ipv6Address        string `json:"ipv6_address"`
	OutpostId          string `json:"outpost_id"`
	PrivateIpv4Address string `json:"private_ipv4_address"`
	SubnetId           string `json:"subnet_id"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (aa *Resource) Attributes() awsAlbAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (aa *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (aa *Resource) State() (*awsAlbState, bool)

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

func (*Resource) StateMust

func (aa *Resource) StateMust() *awsAlbState

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

func (*Resource) Type

func (aa *Resource) Type() string

Type returns the Terraform object type for Resource.

type SubnetMapping

type SubnetMapping struct {
	// AllocationId: string, optional
	AllocationId terra.StringValue `hcl:"allocation_id,attr"`
	// Ipv6Address: string, optional
	Ipv6Address terra.StringValue `hcl:"ipv6_address,attr"`
	// PrivateIpv4Address: string, optional
	PrivateIpv4Address terra.StringValue `hcl:"private_ipv4_address,attr"`
	// SubnetId: string, required
	SubnetId terra.StringValue `hcl:"subnet_id,attr" validate:"required"`
}

type SubnetMappingAttributes

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

func (SubnetMappingAttributes) AllocationId

func (sm SubnetMappingAttributes) AllocationId() terra.StringValue

func (SubnetMappingAttributes) InternalRef

func (sm SubnetMappingAttributes) InternalRef() (terra.Reference, error)

func (SubnetMappingAttributes) InternalTokens

func (sm SubnetMappingAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SubnetMappingAttributes) InternalWithRef

func (SubnetMappingAttributes) Ipv6Address

func (sm SubnetMappingAttributes) Ipv6Address() terra.StringValue

func (SubnetMappingAttributes) OutpostId

func (sm SubnetMappingAttributes) OutpostId() terra.StringValue

func (SubnetMappingAttributes) PrivateIpv4Address

func (sm SubnetMappingAttributes) PrivateIpv4Address() terra.StringValue

func (SubnetMappingAttributes) SubnetId

type SubnetMappingState

type SubnetMappingState struct {
	AllocationId       string `json:"allocation_id"`
	Ipv6Address        string `json:"ipv6_address"`
	OutpostId          string `json:"outpost_id"`
	PrivateIpv4Address string `json:"private_ipv4_address"`
	SubnetId           string `json:"subnet_id"`
}

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,attr"`
	// Update: string, optional
	Update terra.StringValue `hcl:"update,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

func (TimeoutsAttributes) Update

type TimeoutsState

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

Jump to

Keyboard shortcuts

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