lblistenerrule

package
v0.0.0-...-964ba77 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 2 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"`
	// AuthenticateCognito: optional
	AuthenticateCognito *AuthenticateCognito `hcl:"authenticate_cognito,block"`
	// AuthenticateOidc: optional
	AuthenticateOidc *AuthenticateOidc `hcl:"authenticate_oidc,block"`
	// FixedResponse: optional
	FixedResponse *FixedResponse `hcl:"fixed_response,block"`
	// Forward: optional
	Forward *Forward `hcl:"forward,block"`
	// Redirect: optional
	Redirect *Redirect `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 ActionState

type ActionState struct {
	Order               float64                    `json:"order"`
	TargetGroupArn      string                     `json:"target_group_arn"`
	Type                string                     `json:"type"`
	AuthenticateCognito []AuthenticateCognitoState `json:"authenticate_cognito"`
	AuthenticateOidc    []AuthenticateOidcState    `json:"authenticate_oidc"`
	FixedResponse       []FixedResponseState       `json:"fixed_response"`
	Forward             []ForwardState             `json:"forward"`
	Redirect            []RedirectState            `json:"redirect"`
}

type AuthenticateCognito

type AuthenticateCognito 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 AuthenticateCognitoAttributes

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

func (AuthenticateCognitoAttributes) AuthenticationRequestExtraParams

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

func (AuthenticateCognitoAttributes) InternalRef

func (ac AuthenticateCognitoAttributes) InternalRef() (terra.Reference, error)

func (AuthenticateCognitoAttributes) InternalTokens

func (ac AuthenticateCognitoAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AuthenticateCognitoAttributes) InternalWithRef

func (AuthenticateCognitoAttributes) OnUnauthenticatedRequest

func (ac AuthenticateCognitoAttributes) OnUnauthenticatedRequest() terra.StringValue

func (AuthenticateCognitoAttributes) Scope

func (AuthenticateCognitoAttributes) SessionCookieName

func (ac AuthenticateCognitoAttributes) SessionCookieName() terra.StringValue

func (AuthenticateCognitoAttributes) SessionTimeout

func (ac AuthenticateCognitoAttributes) SessionTimeout() terra.NumberValue

func (AuthenticateCognitoAttributes) UserPoolArn

func (AuthenticateCognitoAttributes) UserPoolClientId

func (ac AuthenticateCognitoAttributes) UserPoolClientId() terra.StringValue

func (AuthenticateCognitoAttributes) UserPoolDomain

func (ac AuthenticateCognitoAttributes) UserPoolDomain() terra.StringValue

type AuthenticateCognitoState

type AuthenticateCognitoState 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 AuthenticateOidc

type AuthenticateOidc 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 AuthenticateOidcAttributes

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

func (AuthenticateOidcAttributes) AuthenticationRequestExtraParams

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

func (AuthenticateOidcAttributes) AuthorizationEndpoint

func (ao AuthenticateOidcAttributes) AuthorizationEndpoint() terra.StringValue

func (AuthenticateOidcAttributes) ClientId

func (AuthenticateOidcAttributes) ClientSecret

func (ao AuthenticateOidcAttributes) ClientSecret() terra.StringValue

func (AuthenticateOidcAttributes) InternalRef

func (ao AuthenticateOidcAttributes) InternalRef() (terra.Reference, error)

func (AuthenticateOidcAttributes) InternalTokens

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

func (AuthenticateOidcAttributes) InternalWithRef

func (AuthenticateOidcAttributes) Issuer

func (AuthenticateOidcAttributes) OnUnauthenticatedRequest

func (ao AuthenticateOidcAttributes) OnUnauthenticatedRequest() terra.StringValue

func (AuthenticateOidcAttributes) Scope

func (AuthenticateOidcAttributes) SessionCookieName

func (ao AuthenticateOidcAttributes) SessionCookieName() terra.StringValue

func (AuthenticateOidcAttributes) SessionTimeout

func (ao AuthenticateOidcAttributes) SessionTimeout() terra.NumberValue

func (AuthenticateOidcAttributes) TokenEndpoint

func (ao AuthenticateOidcAttributes) TokenEndpoint() terra.StringValue

func (AuthenticateOidcAttributes) UserInfoEndpoint

func (ao AuthenticateOidcAttributes) UserInfoEndpoint() terra.StringValue

type AuthenticateOidcState

type AuthenticateOidcState 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 Condition

type Condition struct {
	// HostHeader: optional
	HostHeader *HostHeader `hcl:"host_header,block"`
	// HttpHeader: optional
	HttpHeader *HttpHeader `hcl:"http_header,block"`
	// HttpRequestMethod: optional
	HttpRequestMethod *HttpRequestMethod `hcl:"http_request_method,block"`
	// PathPattern: optional
	PathPattern *PathPattern `hcl:"path_pattern,block"`
	// QueryString: min=0
	QueryString []QueryString `hcl:"query_string,block" validate:"min=0"`
	// SourceIp: optional
	SourceIp *SourceIp `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 ConditionState

type ConditionState struct {
	HostHeader        []HostHeaderState        `json:"host_header"`
	HttpHeader        []HttpHeaderState        `json:"http_header"`
	HttpRequestMethod []HttpRequestMethodState `json:"http_request_method"`
	PathPattern       []PathPatternState       `json:"path_pattern"`
	QueryString       []QueryStringState       `json:"query_string"`
	SourceIp          []SourceIpState          `json:"source_ip"`
}

type FixedResponse

type FixedResponse 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 FixedResponseAttributes

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

func (FixedResponseAttributes) ContentType

func (fr FixedResponseAttributes) ContentType() terra.StringValue

func (FixedResponseAttributes) InternalRef

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

func (FixedResponseAttributes) InternalTokens

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

func (FixedResponseAttributes) InternalWithRef

func (FixedResponseAttributes) MessageBody

func (fr FixedResponseAttributes) MessageBody() terra.StringValue

func (FixedResponseAttributes) StatusCode

func (fr FixedResponseAttributes) StatusCode() terra.StringValue

type FixedResponseState

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

type Forward

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

type ForwardAttributes

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

func (ForwardAttributes) InternalRef

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

func (ForwardAttributes) InternalTokens

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

func (ForwardAttributes) InternalWithRef

func (f ForwardAttributes) InternalWithRef(ref terra.Reference) ForwardAttributes

func (ForwardAttributes) Stickiness

func (ForwardAttributes) TargetGroup

type ForwardState

type ForwardState struct {
	Stickiness  []StickinessState  `json:"stickiness"`
	TargetGroup []TargetGroupState `json:"target_group"`
}

type HostHeader

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

type HostHeaderAttributes

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

func (HostHeaderAttributes) InternalRef

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

func (HostHeaderAttributes) InternalTokens

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

func (HostHeaderAttributes) InternalWithRef

func (hh HostHeaderAttributes) InternalWithRef(ref terra.Reference) HostHeaderAttributes

func (HostHeaderAttributes) Values

type HostHeaderState

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

type HttpHeader

type HttpHeader 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 HttpHeaderAttributes

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

func (HttpHeaderAttributes) HttpHeaderName

func (hh HttpHeaderAttributes) HttpHeaderName() terra.StringValue

func (HttpHeaderAttributes) InternalRef

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

func (HttpHeaderAttributes) InternalTokens

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

func (HttpHeaderAttributes) InternalWithRef

func (hh HttpHeaderAttributes) InternalWithRef(ref terra.Reference) HttpHeaderAttributes

func (HttpHeaderAttributes) Values

type HttpHeaderState

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

type HttpRequestMethod

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

type HttpRequestMethodAttributes

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

func (HttpRequestMethodAttributes) InternalRef

func (hrm HttpRequestMethodAttributes) InternalRef() (terra.Reference, error)

func (HttpRequestMethodAttributes) InternalTokens

func (hrm HttpRequestMethodAttributes) InternalTokens() (hclwrite.Tokens, error)

func (HttpRequestMethodAttributes) InternalWithRef

func (HttpRequestMethodAttributes) Values

type HttpRequestMethodState

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

type PathPattern

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

type PathPatternAttributes

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

func (PathPatternAttributes) InternalRef

func (pp PathPatternAttributes) InternalRef() (terra.Reference, error)

func (PathPatternAttributes) InternalTokens

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

func (PathPatternAttributes) InternalWithRef

func (PathPatternAttributes) Values

type PathPatternState

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

type QueryString

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

type QueryStringAttributes

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

func (QueryStringAttributes) InternalRef

func (qs QueryStringAttributes) InternalRef() (terra.Reference, error)

func (QueryStringAttributes) InternalTokens

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

func (QueryStringAttributes) InternalWithRef

func (QueryStringAttributes) Key

func (QueryStringAttributes) Value

type QueryStringState

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

type Redirect

type Redirect 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 RedirectAttributes

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

func (RedirectAttributes) Host

func (RedirectAttributes) InternalRef

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

func (RedirectAttributes) InternalTokens

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

func (RedirectAttributes) InternalWithRef

func (r RedirectAttributes) InternalWithRef(ref terra.Reference) RedirectAttributes

func (RedirectAttributes) Path

func (RedirectAttributes) Port

func (RedirectAttributes) Protocol

func (r RedirectAttributes) Protocol() terra.StringValue

func (RedirectAttributes) Query

func (RedirectAttributes) StatusCode

func (r RedirectAttributes) StatusCode() terra.StringValue

type RedirectState

type RedirectState 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 SourceIp

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

type SourceIpAttributes

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

func (SourceIpAttributes) InternalRef

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

func (SourceIpAttributes) InternalTokens

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

func (SourceIpAttributes) InternalWithRef

func (si SourceIpAttributes) InternalWithRef(ref terra.Reference) SourceIpAttributes

func (SourceIpAttributes) Values

type SourceIpState

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

type Stickiness

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

type StickinessAttributes

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

func (StickinessAttributes) Duration

func (s StickinessAttributes) Duration() terra.NumberValue

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

type StickinessState

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

type TargetGroup

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

type TargetGroupAttributes

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

func (TargetGroupAttributes) Arn

func (TargetGroupAttributes) InternalRef

func (tg TargetGroupAttributes) InternalRef() (terra.Reference, error)

func (TargetGroupAttributes) InternalTokens

func (tg TargetGroupAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TargetGroupAttributes) InternalWithRef

func (TargetGroupAttributes) Weight

type TargetGroupState

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

Jump to

Keyboard shortcuts

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