aws_lb_target_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 {
	// ConnectionTermination: bool, optional
	ConnectionTermination terra.BoolValue `hcl:"connection_termination,attr"`
	// DeregistrationDelay: string, optional
	DeregistrationDelay terra.StringValue `hcl:"deregistration_delay,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// IpAddressType: string, optional
	IpAddressType terra.StringValue `hcl:"ip_address_type,attr"`
	// LambdaMultiValueHeadersEnabled: bool, optional
	LambdaMultiValueHeadersEnabled terra.BoolValue `hcl:"lambda_multi_value_headers_enabled,attr"`
	// LoadBalancingAlgorithmType: string, optional
	LoadBalancingAlgorithmType terra.StringValue `hcl:"load_balancing_algorithm_type,attr"`
	// LoadBalancingAnomalyMitigation: string, optional
	LoadBalancingAnomalyMitigation terra.StringValue `hcl:"load_balancing_anomaly_mitigation,attr"`
	// LoadBalancingCrossZoneEnabled: string, optional
	LoadBalancingCrossZoneEnabled terra.StringValue `hcl:"load_balancing_cross_zone_enabled,attr"`
	// Name: string, optional
	Name terra.StringValue `hcl:"name,attr"`
	// NamePrefix: string, optional
	NamePrefix terra.StringValue `hcl:"name_prefix,attr"`
	// Port: number, optional
	Port terra.NumberValue `hcl:"port,attr"`
	// PreserveClientIp: string, optional
	PreserveClientIp terra.StringValue `hcl:"preserve_client_ip,attr"`
	// Protocol: string, optional
	Protocol terra.StringValue `hcl:"protocol,attr"`
	// ProtocolVersion: string, optional
	ProtocolVersion terra.StringValue `hcl:"protocol_version,attr"`
	// ProxyProtocolV2: bool, optional
	ProxyProtocolV2 terra.BoolValue `hcl:"proxy_protocol_v2,attr"`
	// SlowStart: number, optional
	SlowStart terra.NumberValue `hcl:"slow_start,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"`
	// TargetType: string, optional
	TargetType terra.StringValue `hcl:"target_type,attr"`
	// VpcId: string, optional
	VpcId terra.StringValue `hcl:"vpc_id,attr"`
	// HealthCheck: optional
	HealthCheck *HealthCheck `hcl:"health_check,block"`
	// Stickiness: optional
	Stickiness *Stickiness `hcl:"stickiness,block"`
	// TargetFailover: min=0
	TargetFailover []TargetFailover `hcl:"target_failover,block" validate:"min=0"`
	// TargetHealthState: min=0
	TargetHealthState []TargetHealthState `hcl:"target_health_state,block" validate:"min=0"`
}

Args contains the configurations for aws_lb_target_group.

type DataArgs

type DataArgs struct {
	// Arn: string, optional
	Arn terra.StringValue `hcl:"arn,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// LoadBalancingAnomalyMitigation: string, optional
	LoadBalancingAnomalyMitigation terra.StringValue `hcl:"load_balancing_anomaly_mitigation,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_lb_target_group.

type DataHealthCheckAttributes

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

func (DataHealthCheckAttributes) Enabled

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

func (DataHealthCheckAttributes) Path

func (DataHealthCheckAttributes) Port

func (DataHealthCheckAttributes) Protocol

func (DataHealthCheckAttributes) Timeout

func (DataHealthCheckAttributes) UnhealthyThreshold

func (hc DataHealthCheckAttributes) UnhealthyThreshold() terra.NumberValue

type DataHealthCheckState

type DataHealthCheckState struct {
	Enabled            bool    `json:"enabled"`
	HealthyThreshold   float64 `json:"healthy_threshold"`
	Interval           float64 `json:"interval"`
	Matcher            string  `json:"matcher"`
	Path               string  `json:"path"`
	Port               string  `json:"port"`
	Protocol           string  `json:"protocol"`
	Timeout            float64 `json:"timeout"`
	UnhealthyThreshold float64 `json:"unhealthy_threshold"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource aws_lb_target_group.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (altg *DataSource) Attributes() dataAwsLbTargetGroupAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (altg *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (altg *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type DataStickinessAttributes

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

func (DataStickinessAttributes) CookieDuration

func (s DataStickinessAttributes) CookieDuration() terra.NumberValue

func (DataStickinessAttributes) CookieName

func (DataStickinessAttributes) Enabled

func (DataStickinessAttributes) InternalRef

func (s DataStickinessAttributes) InternalRef() (terra.Reference, error)

func (DataStickinessAttributes) InternalTokens

func (s DataStickinessAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataStickinessAttributes) InternalWithRef

func (DataStickinessAttributes) Type

type DataStickinessState

type DataStickinessState struct {
	CookieDuration float64 `json:"cookie_duration"`
	CookieName     string  `json:"cookie_name"`
	Enabled        bool    `json:"enabled"`
	Type           string  `json:"type"`
}

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 HealthCheck

type HealthCheck struct {
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
	// HealthyThreshold: number, optional
	HealthyThreshold terra.NumberValue `hcl:"healthy_threshold,attr"`
	// Interval: number, optional
	Interval terra.NumberValue `hcl:"interval,attr"`
	// Matcher: string, optional
	Matcher terra.StringValue `hcl:"matcher,attr"`
	// Path: string, optional
	Path terra.StringValue `hcl:"path,attr"`
	// Port: string, optional
	Port terra.StringValue `hcl:"port,attr"`
	// Protocol: string, optional
	Protocol terra.StringValue `hcl:"protocol,attr"`
	// Timeout: number, optional
	Timeout terra.NumberValue `hcl:"timeout,attr"`
	// UnhealthyThreshold: number, optional
	UnhealthyThreshold terra.NumberValue `hcl:"unhealthy_threshold,attr"`
}

type HealthCheckAttributes

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

func (HealthCheckAttributes) Enabled

func (hc HealthCheckAttributes) Enabled() terra.BoolValue

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

func (HealthCheckAttributes) Path

func (HealthCheckAttributes) Port

func (HealthCheckAttributes) Protocol

func (hc HealthCheckAttributes) Protocol() terra.StringValue

func (HealthCheckAttributes) Timeout

func (HealthCheckAttributes) UnhealthyThreshold

func (hc HealthCheckAttributes) UnhealthyThreshold() terra.NumberValue

type HealthCheckState

type HealthCheckState struct {
	Enabled            bool    `json:"enabled"`
	HealthyThreshold   float64 `json:"healthy_threshold"`
	Interval           float64 `json:"interval"`
	Matcher            string  `json:"matcher"`
	Path               string  `json:"path"`
	Port               string  `json:"port"`
	Protocol           string  `json:"protocol"`
	Timeout            float64 `json:"timeout"`
	UnhealthyThreshold float64 `json:"unhealthy_threshold"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (altg *Resource) Attributes() awsLbTargetGroupAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (altg *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (altg *Resource) State() (*awsLbTargetGroupState, bool)

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

func (*Resource) StateMust

func (altg *Resource) StateMust() *awsLbTargetGroupState

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

func (*Resource) Type

func (altg *Resource) Type() string

Type returns the Terraform object type for Resource.

type Stickiness

type Stickiness struct {
	// CookieDuration: number, optional
	CookieDuration terra.NumberValue `hcl:"cookie_duration,attr"`
	// CookieName: string, optional
	CookieName terra.StringValue `hcl:"cookie_name,attr"`
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type StickinessAttributes

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

func (StickinessAttributes) CookieDuration

func (s StickinessAttributes) CookieDuration() terra.NumberValue

func (StickinessAttributes) CookieName

func (s StickinessAttributes) CookieName() terra.StringValue

func (StickinessAttributes) Enabled

func (s StickinessAttributes) Enabled() terra.BoolValue

func (StickinessAttributes) InternalRef

func (s StickinessAttributes) InternalRef() (terra.Reference, error)

func (StickinessAttributes) InternalTokens

func (s StickinessAttributes) InternalTokens() (hclwrite.Tokens, error)

func (StickinessAttributes) InternalWithRef

func (StickinessAttributes) Type

type StickinessState

type StickinessState struct {
	CookieDuration float64 `json:"cookie_duration"`
	CookieName     string  `json:"cookie_name"`
	Enabled        bool    `json:"enabled"`
	Type           string  `json:"type"`
}

type TargetFailover

type TargetFailover struct {
	// OnDeregistration: string, required
	OnDeregistration terra.StringValue `hcl:"on_deregistration,attr" validate:"required"`
	// OnUnhealthy: string, required
	OnUnhealthy terra.StringValue `hcl:"on_unhealthy,attr" validate:"required"`
}

type TargetFailoverAttributes

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

func (TargetFailoverAttributes) InternalRef

func (tf TargetFailoverAttributes) InternalRef() (terra.Reference, error)

func (TargetFailoverAttributes) InternalTokens

func (tf TargetFailoverAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TargetFailoverAttributes) InternalWithRef

func (TargetFailoverAttributes) OnDeregistration

func (tf TargetFailoverAttributes) OnDeregistration() terra.StringValue

func (TargetFailoverAttributes) OnUnhealthy

func (tf TargetFailoverAttributes) OnUnhealthy() terra.StringValue

type TargetFailoverState

type TargetFailoverState struct {
	OnDeregistration string `json:"on_deregistration"`
	OnUnhealthy      string `json:"on_unhealthy"`
}

type TargetHealthState

type TargetHealthState struct {
	// EnableUnhealthyConnectionTermination: bool, required
	EnableUnhealthyConnectionTermination terra.BoolValue `hcl:"enable_unhealthy_connection_termination,attr" validate:"required"`
}

type TargetHealthStateAttributes

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

func (TargetHealthStateAttributes) EnableUnhealthyConnectionTermination

func (ths TargetHealthStateAttributes) EnableUnhealthyConnectionTermination() terra.BoolValue

func (TargetHealthStateAttributes) InternalRef

func (ths TargetHealthStateAttributes) InternalRef() (terra.Reference, error)

func (TargetHealthStateAttributes) InternalTokens

func (ths TargetHealthStateAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TargetHealthStateAttributes) InternalWithRef

type TargetHealthStateState

type TargetHealthStateState struct {
	EnableUnhealthyConnectionTermination bool `json:"enable_unhealthy_connection_termination"`
}

Jump to

Keyboard shortcuts

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