aws_lb_listener_rule

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 Action

type Action struct {
	// Order: number, optional
	Order terra.NumberValue `hcl:"order,attr"`
	// TargetGroupArn: string, optional
	TargetGroupArn terra.StringValue `hcl:"target_group_arn,attr"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
	// ActionAuthenticateCognito: optional
	AuthenticateCognito *ActionAuthenticateCognito `hcl:"authenticate_cognito,block"`
	// ActionAuthenticateOidc: optional
	AuthenticateOidc *ActionAuthenticateOidc `hcl:"authenticate_oidc,block"`
	// ActionFixedResponse: optional
	FixedResponse *ActionFixedResponse `hcl:"fixed_response,block"`
	// ActionForward: optional
	Forward *ActionForward `hcl:"forward,block"`
	// ActionRedirect: optional
	Redirect *ActionRedirect `hcl:"redirect,block"`
}

type ActionAttributes

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

func (ActionAttributes) AuthenticateCognito

func (ActionAttributes) AuthenticateOidc

func (ActionAttributes) FixedResponse

func (ActionAttributes) Forward

func (ActionAttributes) InternalRef

func (a ActionAttributes) InternalRef() (terra.Reference, error)

func (ActionAttributes) InternalTokens

func (a ActionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ActionAttributes) InternalWithRef

func (a ActionAttributes) InternalWithRef(ref terra.Reference) ActionAttributes

func (ActionAttributes) Order

func (ActionAttributes) Redirect

func (ActionAttributes) TargetGroupArn

func (a ActionAttributes) TargetGroupArn() terra.StringValue

func (ActionAttributes) Type

type ActionAuthenticateCognito

type ActionAuthenticateCognito struct {
	// AuthenticationRequestExtraParams: map of string, optional
	AuthenticationRequestExtraParams terra.MapValue[terra.StringValue] `hcl:"authentication_request_extra_params,attr"`
	// OnUnauthenticatedRequest: string, optional
	OnUnauthenticatedRequest terra.StringValue `hcl:"on_unauthenticated_request,attr"`
	// Scope: string, optional
	Scope terra.StringValue `hcl:"scope,attr"`
	// SessionCookieName: string, optional
	SessionCookieName terra.StringValue `hcl:"session_cookie_name,attr"`
	// SessionTimeout: number, optional
	SessionTimeout terra.NumberValue `hcl:"session_timeout,attr"`
	// UserPoolArn: string, required
	UserPoolArn terra.StringValue `hcl:"user_pool_arn,attr" validate:"required"`
	// UserPoolClientId: string, required
	UserPoolClientId terra.StringValue `hcl:"user_pool_client_id,attr" validate:"required"`
	// UserPoolDomain: string, required
	UserPoolDomain terra.StringValue `hcl:"user_pool_domain,attr" validate:"required"`
}

type ActionAuthenticateCognitoAttributes

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

func (ActionAuthenticateCognitoAttributes) AuthenticationRequestExtraParams

func (ac ActionAuthenticateCognitoAttributes) AuthenticationRequestExtraParams() terra.MapValue[terra.StringValue]

func (ActionAuthenticateCognitoAttributes) InternalRef

func (ActionAuthenticateCognitoAttributes) InternalTokens

func (ActionAuthenticateCognitoAttributes) InternalWithRef

func (ActionAuthenticateCognitoAttributes) OnUnauthenticatedRequest

func (ac ActionAuthenticateCognitoAttributes) OnUnauthenticatedRequest() terra.StringValue

func (ActionAuthenticateCognitoAttributes) Scope

func (ActionAuthenticateCognitoAttributes) SessionCookieName

func (ac ActionAuthenticateCognitoAttributes) SessionCookieName() terra.StringValue

func (ActionAuthenticateCognitoAttributes) SessionTimeout

func (ActionAuthenticateCognitoAttributes) UserPoolArn

func (ActionAuthenticateCognitoAttributes) UserPoolClientId

func (ActionAuthenticateCognitoAttributes) UserPoolDomain

type ActionAuthenticateCognitoState

type ActionAuthenticateCognitoState struct {
	AuthenticationRequestExtraParams map[string]string `json:"authentication_request_extra_params"`
	OnUnauthenticatedRequest         string            `json:"on_unauthenticated_request"`
	Scope                            string            `json:"scope"`
	SessionCookieName                string            `json:"session_cookie_name"`
	SessionTimeout                   float64           `json:"session_timeout"`
	UserPoolArn                      string            `json:"user_pool_arn"`
	UserPoolClientId                 string            `json:"user_pool_client_id"`
	UserPoolDomain                   string            `json:"user_pool_domain"`
}

type ActionAuthenticateOidc

type ActionAuthenticateOidc struct {
	// AuthenticationRequestExtraParams: map of string, optional
	AuthenticationRequestExtraParams terra.MapValue[terra.StringValue] `hcl:"authentication_request_extra_params,attr"`
	// AuthorizationEndpoint: string, required
	AuthorizationEndpoint terra.StringValue `hcl:"authorization_endpoint,attr" validate:"required"`
	// ClientId: string, required
	ClientId terra.StringValue `hcl:"client_id,attr" validate:"required"`
	// ClientSecret: string, required
	ClientSecret terra.StringValue `hcl:"client_secret,attr" validate:"required"`
	// Issuer: string, required
	Issuer terra.StringValue `hcl:"issuer,attr" validate:"required"`
	// OnUnauthenticatedRequest: string, optional
	OnUnauthenticatedRequest terra.StringValue `hcl:"on_unauthenticated_request,attr"`
	// Scope: string, optional
	Scope terra.StringValue `hcl:"scope,attr"`
	// SessionCookieName: string, optional
	SessionCookieName terra.StringValue `hcl:"session_cookie_name,attr"`
	// SessionTimeout: number, optional
	SessionTimeout terra.NumberValue `hcl:"session_timeout,attr"`
	// TokenEndpoint: string, required
	TokenEndpoint terra.StringValue `hcl:"token_endpoint,attr" validate:"required"`
	// UserInfoEndpoint: string, required
	UserInfoEndpoint terra.StringValue `hcl:"user_info_endpoint,attr" validate:"required"`
}

type ActionAuthenticateOidcAttributes

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

func (ActionAuthenticateOidcAttributes) AuthenticationRequestExtraParams

func (ao ActionAuthenticateOidcAttributes) AuthenticationRequestExtraParams() terra.MapValue[terra.StringValue]

func (ActionAuthenticateOidcAttributes) AuthorizationEndpoint

func (ao ActionAuthenticateOidcAttributes) AuthorizationEndpoint() terra.StringValue

func (ActionAuthenticateOidcAttributes) ClientId

func (ActionAuthenticateOidcAttributes) ClientSecret

func (ActionAuthenticateOidcAttributes) InternalRef

func (ActionAuthenticateOidcAttributes) InternalTokens

func (ao ActionAuthenticateOidcAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ActionAuthenticateOidcAttributes) InternalWithRef

func (ActionAuthenticateOidcAttributes) Issuer

func (ActionAuthenticateOidcAttributes) OnUnauthenticatedRequest

func (ao ActionAuthenticateOidcAttributes) OnUnauthenticatedRequest() terra.StringValue

func (ActionAuthenticateOidcAttributes) Scope

func (ActionAuthenticateOidcAttributes) SessionCookieName

func (ao ActionAuthenticateOidcAttributes) SessionCookieName() terra.StringValue

func (ActionAuthenticateOidcAttributes) SessionTimeout

func (ActionAuthenticateOidcAttributes) TokenEndpoint

func (ActionAuthenticateOidcAttributes) UserInfoEndpoint

func (ao ActionAuthenticateOidcAttributes) UserInfoEndpoint() terra.StringValue

type ActionAuthenticateOidcState

type ActionAuthenticateOidcState struct {
	AuthenticationRequestExtraParams map[string]string `json:"authentication_request_extra_params"`
	AuthorizationEndpoint            string            `json:"authorization_endpoint"`
	ClientId                         string            `json:"client_id"`
	ClientSecret                     string            `json:"client_secret"`
	Issuer                           string            `json:"issuer"`
	OnUnauthenticatedRequest         string            `json:"on_unauthenticated_request"`
	Scope                            string            `json:"scope"`
	SessionCookieName                string            `json:"session_cookie_name"`
	SessionTimeout                   float64           `json:"session_timeout"`
	TokenEndpoint                    string            `json:"token_endpoint"`
	UserInfoEndpoint                 string            `json:"user_info_endpoint"`
}

type ActionFixedResponse

type ActionFixedResponse struct {
	// ContentType: string, required
	ContentType terra.StringValue `hcl:"content_type,attr" validate:"required"`
	// MessageBody: string, optional
	MessageBody terra.StringValue `hcl:"message_body,attr"`
	// StatusCode: string, optional
	StatusCode terra.StringValue `hcl:"status_code,attr"`
}

type ActionFixedResponseAttributes

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

func (ActionFixedResponseAttributes) ContentType

func (ActionFixedResponseAttributes) InternalRef

func (fr ActionFixedResponseAttributes) InternalRef() (terra.Reference, error)

func (ActionFixedResponseAttributes) InternalTokens

func (fr ActionFixedResponseAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ActionFixedResponseAttributes) InternalWithRef

func (ActionFixedResponseAttributes) MessageBody

func (ActionFixedResponseAttributes) StatusCode

type ActionFixedResponseState

type ActionFixedResponseState struct {
	ContentType string `json:"content_type"`
	MessageBody string `json:"message_body"`
	StatusCode  string `json:"status_code"`
}

type ActionForward

type ActionForward struct {
	// ActionForwardStickiness: optional
	Stickiness *ActionForwardStickiness `hcl:"stickiness,block"`
	// ActionForwardTargetGroup: min=2,max=5
	TargetGroup []ActionForwardTargetGroup `hcl:"target_group,block" validate:"min=2,max=5"`
}

type ActionForwardAttributes

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

func (ActionForwardAttributes) InternalRef

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

func (ActionForwardAttributes) InternalTokens

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

func (ActionForwardAttributes) InternalWithRef

func (ActionForwardAttributes) Stickiness

func (ActionForwardAttributes) TargetGroup

type ActionForwardState

type ActionForwardState struct {
	Stickiness  []ActionForwardStickinessState  `json:"stickiness"`
	TargetGroup []ActionForwardTargetGroupState `json:"target_group"`
}

type ActionForwardStickiness

type ActionForwardStickiness struct {
	// Duration: number, required
	Duration terra.NumberValue `hcl:"duration,attr" validate:"required"`
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
}

type ActionForwardStickinessAttributes

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

func (ActionForwardStickinessAttributes) Duration

func (ActionForwardStickinessAttributes) Enabled

func (ActionForwardStickinessAttributes) InternalRef

func (ActionForwardStickinessAttributes) InternalTokens

func (ActionForwardStickinessAttributes) InternalWithRef

type ActionForwardStickinessState

type ActionForwardStickinessState struct {
	Duration float64 `json:"duration"`
	Enabled  bool    `json:"enabled"`
}

type ActionForwardTargetGroup

type ActionForwardTargetGroup struct {
	// Arn: string, required
	Arn terra.StringValue `hcl:"arn,attr" validate:"required"`
	// Weight: number, optional
	Weight terra.NumberValue `hcl:"weight,attr"`
}

type ActionForwardTargetGroupAttributes

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

func (ActionForwardTargetGroupAttributes) Arn

func (ActionForwardTargetGroupAttributes) InternalRef

func (ActionForwardTargetGroupAttributes) InternalTokens

func (ActionForwardTargetGroupAttributes) InternalWithRef

func (ActionForwardTargetGroupAttributes) Weight

type ActionForwardTargetGroupState

type ActionForwardTargetGroupState struct {
	Arn    string  `json:"arn"`
	Weight float64 `json:"weight"`
}

type ActionRedirect

type ActionRedirect struct {
	// Host: string, optional
	Host terra.StringValue `hcl:"host,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"`
	// Query: string, optional
	Query terra.StringValue `hcl:"query,attr"`
	// StatusCode: string, required
	StatusCode terra.StringValue `hcl:"status_code,attr" validate:"required"`
}

type ActionRedirectAttributes

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

func (ActionRedirectAttributes) Host

func (ActionRedirectAttributes) InternalRef

func (r ActionRedirectAttributes) InternalRef() (terra.Reference, error)

func (ActionRedirectAttributes) InternalTokens

func (r ActionRedirectAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ActionRedirectAttributes) InternalWithRef

func (ActionRedirectAttributes) Path

func (ActionRedirectAttributes) Port

func (ActionRedirectAttributes) Protocol

func (ActionRedirectAttributes) Query

func (ActionRedirectAttributes) StatusCode

type ActionRedirectState

type ActionRedirectState struct {
	Host       string `json:"host"`
	Path       string `json:"path"`
	Port       string `json:"port"`
	Protocol   string `json:"protocol"`
	Query      string `json:"query"`
	StatusCode string `json:"status_code"`
}

type ActionState

type ActionState struct {
	Order               float64                          `json:"order"`
	TargetGroupArn      string                           `json:"target_group_arn"`
	Type                string                           `json:"type"`
	AuthenticateCognito []ActionAuthenticateCognitoState `json:"authenticate_cognito"`
	AuthenticateOidc    []ActionAuthenticateOidcState    `json:"authenticate_oidc"`
	FixedResponse       []ActionFixedResponseState       `json:"fixed_response"`
	Forward             []ActionForwardState             `json:"forward"`
	Redirect            []ActionRedirectState            `json:"redirect"`
}

type Args

type Args struct {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// ListenerArn: string, required
	ListenerArn terra.StringValue `hcl:"listener_arn,attr" validate:"required"`
	// Priority: number, optional
	Priority terra.NumberValue `hcl:"priority,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"`
	// Action: min=1
	Action []Action `hcl:"action,block" validate:"min=1"`
	// Condition: min=1
	Condition []Condition `hcl:"condition,block" validate:"min=1"`
}

Args contains the configurations for aws_lb_listener_rule.

type Condition

type Condition struct {
	// ConditionHostHeader: optional
	HostHeader *ConditionHostHeader `hcl:"host_header,block"`
	// ConditionHttpHeader: optional
	HttpHeader *ConditionHttpHeader `hcl:"http_header,block"`
	// ConditionHttpRequestMethod: optional
	HttpRequestMethod *ConditionHttpRequestMethod `hcl:"http_request_method,block"`
	// ConditionPathPattern: optional
	PathPattern *ConditionPathPattern `hcl:"path_pattern,block"`
	// ConditionQueryString: min=0
	QueryString []ConditionQueryString `hcl:"query_string,block" validate:"min=0"`
	// ConditionSourceIp: optional
	SourceIp *ConditionSourceIp `hcl:"source_ip,block"`
}

type ConditionAttributes

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

func (ConditionAttributes) HostHeader

func (ConditionAttributes) HttpHeader

func (ConditionAttributes) HttpRequestMethod

func (ConditionAttributes) InternalRef

func (c ConditionAttributes) InternalRef() (terra.Reference, error)

func (ConditionAttributes) InternalTokens

func (c ConditionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ConditionAttributes) InternalWithRef

func (c ConditionAttributes) InternalWithRef(ref terra.Reference) ConditionAttributes

func (ConditionAttributes) PathPattern

func (ConditionAttributes) QueryString

func (ConditionAttributes) SourceIp

type ConditionHostHeader

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

type ConditionHostHeaderAttributes

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

func (ConditionHostHeaderAttributes) InternalRef

func (hh ConditionHostHeaderAttributes) InternalRef() (terra.Reference, error)

func (ConditionHostHeaderAttributes) InternalTokens

func (hh ConditionHostHeaderAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ConditionHostHeaderAttributes) InternalWithRef

func (ConditionHostHeaderAttributes) Values

type ConditionHostHeaderState

type ConditionHostHeaderState struct {
	Values []string `json:"values"`
}

type ConditionHttpHeader

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

type ConditionHttpHeaderAttributes

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

func (ConditionHttpHeaderAttributes) HttpHeaderName

func (hh ConditionHttpHeaderAttributes) HttpHeaderName() terra.StringValue

func (ConditionHttpHeaderAttributes) InternalRef

func (hh ConditionHttpHeaderAttributes) InternalRef() (terra.Reference, error)

func (ConditionHttpHeaderAttributes) InternalTokens

func (hh ConditionHttpHeaderAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ConditionHttpHeaderAttributes) InternalWithRef

func (ConditionHttpHeaderAttributes) Values

type ConditionHttpHeaderState

type ConditionHttpHeaderState struct {
	HttpHeaderName string   `json:"http_header_name"`
	Values         []string `json:"values"`
}

type ConditionHttpRequestMethod

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

type ConditionHttpRequestMethodAttributes

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

func (ConditionHttpRequestMethodAttributes) InternalRef

func (ConditionHttpRequestMethodAttributes) InternalTokens

func (ConditionHttpRequestMethodAttributes) InternalWithRef

func (ConditionHttpRequestMethodAttributes) Values

type ConditionHttpRequestMethodState

type ConditionHttpRequestMethodState struct {
	Values []string `json:"values"`
}

type ConditionPathPattern

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

type ConditionPathPatternAttributes

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

func (ConditionPathPatternAttributes) InternalRef

func (ConditionPathPatternAttributes) InternalTokens

func (pp ConditionPathPatternAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ConditionPathPatternAttributes) InternalWithRef

func (ConditionPathPatternAttributes) Values

type ConditionPathPatternState

type ConditionPathPatternState struct {
	Values []string `json:"values"`
}

type ConditionQueryString

type ConditionQueryString struct {
	// Key: string, optional
	Key terra.StringValue `hcl:"key,attr"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
}

type ConditionQueryStringAttributes

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

func (ConditionQueryStringAttributes) InternalRef

func (ConditionQueryStringAttributes) InternalTokens

func (qs ConditionQueryStringAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ConditionQueryStringAttributes) InternalWithRef

func (ConditionQueryStringAttributes) Key

func (ConditionQueryStringAttributes) Value

type ConditionQueryStringState

type ConditionQueryStringState struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type ConditionSourceIp

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

type ConditionSourceIpAttributes

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

func (ConditionSourceIpAttributes) InternalRef

func (si ConditionSourceIpAttributes) InternalRef() (terra.Reference, error)

func (ConditionSourceIpAttributes) InternalTokens

func (si ConditionSourceIpAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ConditionSourceIpAttributes) InternalWithRef

func (ConditionSourceIpAttributes) Values

type ConditionSourceIpState

type ConditionSourceIpState struct {
	Values []string `json:"values"`
}

type ConditionState

type ConditionState struct {
	HostHeader        []ConditionHostHeaderState        `json:"host_header"`
	HttpHeader        []ConditionHttpHeaderState        `json:"http_header"`
	HttpRequestMethod []ConditionHttpRequestMethodState `json:"http_request_method"`
	PathPattern       []ConditionPathPatternState       `json:"path_pattern"`
	QueryString       []ConditionQueryStringState       `json:"query_string"`
	SourceIp          []ConditionSourceIpState          `json:"source_ip"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (allr *Resource) Attributes() awsLbListenerRuleAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (allr *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (allr *Resource) State() (*awsLbListenerRuleState, bool)

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

func (*Resource) StateMust

func (allr *Resource) StateMust() *awsLbListenerRuleState

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

func (*Resource) Type

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