aws_elb

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 AccessLogs

type AccessLogs struct {
	// Bucket: string, required
	Bucket terra.StringValue `hcl:"bucket,attr" validate:"required"`
	// BucketPrefix: string, optional
	BucketPrefix terra.StringValue `hcl:"bucket_prefix,attr"`
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
	// Interval: number, optional
	Interval terra.NumberValue `hcl:"interval,attr"`
}

type AccessLogsAttributes

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

func (AccessLogsAttributes) Bucket

func (AccessLogsAttributes) BucketPrefix

func (al AccessLogsAttributes) BucketPrefix() terra.StringValue

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

func (al AccessLogsAttributes) Interval() terra.NumberValue

type AccessLogsState

type AccessLogsState struct {
	Bucket       string  `json:"bucket"`
	BucketPrefix string  `json:"bucket_prefix"`
	Enabled      bool    `json:"enabled"`
	Interval     float64 `json:"interval"`
}

type Args

type Args struct {
	// AvailabilityZones: set of string, optional
	AvailabilityZones terra.SetValue[terra.StringValue] `hcl:"availability_zones,attr"`
	// ConnectionDraining: bool, optional
	ConnectionDraining terra.BoolValue `hcl:"connection_draining,attr"`
	// ConnectionDrainingTimeout: number, optional
	ConnectionDrainingTimeout terra.NumberValue `hcl:"connection_draining_timeout,attr"`
	// CrossZoneLoadBalancing: bool, optional
	CrossZoneLoadBalancing terra.BoolValue `hcl:"cross_zone_load_balancing,attr"`
	// DesyncMitigationMode: string, optional
	DesyncMitigationMode terra.StringValue `hcl:"desync_mitigation_mode,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// IdleTimeout: number, optional
	IdleTimeout terra.NumberValue `hcl:"idle_timeout,attr"`
	// Instances: set of string, optional
	Instances terra.SetValue[terra.StringValue] `hcl:"instances,attr"`
	// Internal: bool, optional
	Internal terra.BoolValue `hcl:"internal,attr"`
	// Name: string, optional
	Name terra.StringValue `hcl:"name,attr"`
	// NamePrefix: string, optional
	NamePrefix terra.StringValue `hcl:"name_prefix,attr"`
	// SecurityGroups: set of string, optional
	SecurityGroups terra.SetValue[terra.StringValue] `hcl:"security_groups,attr"`
	// SourceSecurityGroup: string, optional
	SourceSecurityGroup terra.StringValue `hcl:"source_security_group,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"`
	// HealthCheck: optional
	HealthCheck *HealthCheck `hcl:"health_check,block"`
	// Listener: min=1
	Listener []Listener `hcl:"listener,block" validate:"min=1"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for aws_elb.

type DataAccessLogsAttributes

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

func (DataAccessLogsAttributes) Bucket

func (DataAccessLogsAttributes) BucketPrefix

func (al DataAccessLogsAttributes) BucketPrefix() terra.StringValue

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

type DataAccessLogsState

type DataAccessLogsState struct {
	Bucket       string  `json:"bucket"`
	BucketPrefix string  `json:"bucket_prefix"`
	Enabled      bool    `json:"enabled"`
	Interval     float64 `json:"interval"`
}

type DataArgs

type DataArgs struct {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
}

DataArgs contains the configurations for aws_elb.

type DataHealthCheckAttributes

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

func (DataHealthCheckAttributes) HealthyThreshold

func (hc DataHealthCheckAttributes) HealthyThreshold() terra.NumberValue

func (DataHealthCheckAttributes) InternalRef

func (hc DataHealthCheckAttributes) InternalRef() (terra.Reference, error)

func (DataHealthCheckAttributes) InternalTokens

func (hc DataHealthCheckAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataHealthCheckAttributes) InternalWithRef

func (DataHealthCheckAttributes) Interval

func (DataHealthCheckAttributes) Target

func (DataHealthCheckAttributes) Timeout

func (DataHealthCheckAttributes) UnhealthyThreshold

func (hc DataHealthCheckAttributes) UnhealthyThreshold() terra.NumberValue

type DataHealthCheckState

type DataHealthCheckState struct {
	HealthyThreshold   float64 `json:"healthy_threshold"`
	Interval           float64 `json:"interval"`
	Target             string  `json:"target"`
	Timeout            float64 `json:"timeout"`
	UnhealthyThreshold float64 `json:"unhealthy_threshold"`
}

type DataListenerAttributes

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

func (DataListenerAttributes) InstancePort

func (l DataListenerAttributes) InstancePort() terra.NumberValue

func (DataListenerAttributes) InstanceProtocol

func (l DataListenerAttributes) InstanceProtocol() terra.StringValue

func (DataListenerAttributes) InternalRef

func (l DataListenerAttributes) InternalRef() (terra.Reference, error)

func (DataListenerAttributes) InternalTokens

func (l DataListenerAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataListenerAttributes) InternalWithRef

func (DataListenerAttributes) LbPort

func (DataListenerAttributes) LbProtocol

func (l DataListenerAttributes) LbProtocol() terra.StringValue

func (DataListenerAttributes) SslCertificateId

func (l DataListenerAttributes) SslCertificateId() terra.StringValue

type DataListenerState

type DataListenerState struct {
	InstancePort     float64 `json:"instance_port"`
	InstanceProtocol string  `json:"instance_protocol"`
	LbPort           float64 `json:"lb_port"`
	LbProtocol       string  `json:"lb_protocol"`
	SslCertificateId string  `json:"ssl_certificate_id"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource aws_elb.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (ae *DataSource) Attributes() dataAwsElbAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (ae *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (ae *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type HealthCheck

type HealthCheck struct {
	// HealthyThreshold: number, required
	HealthyThreshold terra.NumberValue `hcl:"healthy_threshold,attr" validate:"required"`
	// Interval: number, required
	Interval terra.NumberValue `hcl:"interval,attr" validate:"required"`
	// Target: string, required
	Target terra.StringValue `hcl:"target,attr" validate:"required"`
	// Timeout: number, required
	Timeout terra.NumberValue `hcl:"timeout,attr" validate:"required"`
	// UnhealthyThreshold: number, required
	UnhealthyThreshold terra.NumberValue `hcl:"unhealthy_threshold,attr" validate:"required"`
}

type HealthCheckAttributes

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

func (HealthCheckAttributes) HealthyThreshold

func (hc HealthCheckAttributes) HealthyThreshold() terra.NumberValue

func (HealthCheckAttributes) InternalRef

func (hc HealthCheckAttributes) InternalRef() (terra.Reference, error)

func (HealthCheckAttributes) InternalTokens

func (hc HealthCheckAttributes) InternalTokens() (hclwrite.Tokens, error)

func (HealthCheckAttributes) InternalWithRef

func (HealthCheckAttributes) Interval

func (hc HealthCheckAttributes) Interval() terra.NumberValue

func (HealthCheckAttributes) Target

func (HealthCheckAttributes) Timeout

func (HealthCheckAttributes) UnhealthyThreshold

func (hc HealthCheckAttributes) UnhealthyThreshold() terra.NumberValue

type HealthCheckState

type HealthCheckState struct {
	HealthyThreshold   float64 `json:"healthy_threshold"`
	Interval           float64 `json:"interval"`
	Target             string  `json:"target"`
	Timeout            float64 `json:"timeout"`
	UnhealthyThreshold float64 `json:"unhealthy_threshold"`
}

type Listener

type Listener struct {
	// InstancePort: number, required
	InstancePort terra.NumberValue `hcl:"instance_port,attr" validate:"required"`
	// InstanceProtocol: string, required
	InstanceProtocol terra.StringValue `hcl:"instance_protocol,attr" validate:"required"`
	// LbPort: number, required
	LbPort terra.NumberValue `hcl:"lb_port,attr" validate:"required"`
	// LbProtocol: string, required
	LbProtocol terra.StringValue `hcl:"lb_protocol,attr" validate:"required"`
	// SslCertificateId: string, optional
	SslCertificateId terra.StringValue `hcl:"ssl_certificate_id,attr"`
}

type ListenerAttributes

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

func (ListenerAttributes) InstancePort

func (l ListenerAttributes) InstancePort() terra.NumberValue

func (ListenerAttributes) InstanceProtocol

func (l ListenerAttributes) InstanceProtocol() terra.StringValue

func (ListenerAttributes) InternalRef

func (l ListenerAttributes) InternalRef() (terra.Reference, error)

func (ListenerAttributes) InternalTokens

func (l ListenerAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ListenerAttributes) InternalWithRef

func (l ListenerAttributes) InternalWithRef(ref terra.Reference) ListenerAttributes

func (ListenerAttributes) LbPort

func (ListenerAttributes) LbProtocol

func (l ListenerAttributes) LbProtocol() terra.StringValue

func (ListenerAttributes) SslCertificateId

func (l ListenerAttributes) SslCertificateId() terra.StringValue

type ListenerState

type ListenerState struct {
	InstancePort     float64 `json:"instance_port"`
	InstanceProtocol string  `json:"instance_protocol"`
	LbPort           float64 `json:"lb_port"`
	LbProtocol       string  `json:"lb_protocol"`
	SslCertificateId string  `json:"ssl_certificate_id"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (ae *Resource) Attributes() awsElbAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (ae *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (ae *Resource) State() (*awsElbState, bool)

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

func (*Resource) StateMust

func (ae *Resource) StateMust() *awsElbState

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

func (*Resource) Type

func (ae *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"`
	// Update: string, optional
	Update terra.StringValue `hcl:"update,attr"`
}

type TimeoutsAttributes

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

func (TimeoutsAttributes) Create

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"`
	Update string `json:"update"`
}

Jump to

Keyboard shortcuts

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