awselasticloadbalancingv2

package
v1.98.1-devpreview Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplicationListenerCertificate_IsConstruct

func ApplicationListenerCertificate_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func ApplicationListenerRule_IsConstruct

func ApplicationListenerRule_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func ApplicationListener_IsConstruct

func ApplicationListener_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func ApplicationListener_IsResource

func ApplicationListener_IsResource(construct awscdk.IConstruct) *bool

Check whether the given construct is a Resource. Experimental.

func ApplicationLoadBalancer_IsConstruct

func ApplicationLoadBalancer_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func ApplicationLoadBalancer_IsResource

func ApplicationLoadBalancer_IsResource(construct awscdk.IConstruct) *bool

Check whether the given construct is a Resource. Experimental.

func ApplicationTargetGroup_IsConstruct

func ApplicationTargetGroup_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func BaseListener_IsConstruct

func BaseListener_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func BaseListener_IsResource

func BaseListener_IsResource(construct awscdk.IConstruct) *bool

Check whether the given construct is a Resource. Experimental.

func BaseLoadBalancer_IsConstruct

func BaseLoadBalancer_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func BaseLoadBalancer_IsResource

func BaseLoadBalancer_IsResource(construct awscdk.IConstruct) *bool

Check whether the given construct is a Resource. Experimental.

func CfnListenerCertificate_CFN_RESOURCE_TYPE_NAME

func CfnListenerCertificate_CFN_RESOURCE_TYPE_NAME() *string

func CfnListenerCertificate_IsCfnElement

func CfnListenerCertificate_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.

func CfnListenerCertificate_IsCfnResource

func CfnListenerCertificate_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource. Experimental.

func CfnListenerCertificate_IsConstruct

func CfnListenerCertificate_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func CfnListenerRule_CFN_RESOURCE_TYPE_NAME

func CfnListenerRule_CFN_RESOURCE_TYPE_NAME() *string

func CfnListenerRule_IsCfnElement

func CfnListenerRule_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.

func CfnListenerRule_IsCfnResource

func CfnListenerRule_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource. Experimental.

func CfnListenerRule_IsConstruct

func CfnListenerRule_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func CfnListener_CFN_RESOURCE_TYPE_NAME

func CfnListener_CFN_RESOURCE_TYPE_NAME() *string

func CfnListener_IsCfnElement

func CfnListener_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.

func CfnListener_IsCfnResource

func CfnListener_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource. Experimental.

func CfnListener_IsConstruct

func CfnListener_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func CfnLoadBalancer_CFN_RESOURCE_TYPE_NAME

func CfnLoadBalancer_CFN_RESOURCE_TYPE_NAME() *string

func CfnLoadBalancer_IsCfnElement

func CfnLoadBalancer_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.

func CfnLoadBalancer_IsCfnResource

func CfnLoadBalancer_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource. Experimental.

func CfnLoadBalancer_IsConstruct

func CfnLoadBalancer_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func CfnTargetGroup_CFN_RESOURCE_TYPE_NAME

func CfnTargetGroup_CFN_RESOURCE_TYPE_NAME() *string

func CfnTargetGroup_IsCfnElement

func CfnTargetGroup_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.

func CfnTargetGroup_IsCfnResource

func CfnTargetGroup_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource. Experimental.

func CfnTargetGroup_IsConstruct

func CfnTargetGroup_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func NetworkListener_IsConstruct

func NetworkListener_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func NetworkListener_IsResource

func NetworkListener_IsResource(construct awscdk.IConstruct) *bool

Check whether the given construct is a Resource. Experimental.

func NetworkLoadBalancer_IsConstruct

func NetworkLoadBalancer_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func NetworkLoadBalancer_IsResource

func NetworkLoadBalancer_IsResource(construct awscdk.IConstruct) *bool

Check whether the given construct is a Resource. Experimental.

func NetworkTargetGroup_IsConstruct

func NetworkTargetGroup_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func NewApplicationListenerCertificate_Override

func NewApplicationListenerCertificate_Override(a ApplicationListenerCertificate, scope constructs.Construct, id *string, props *ApplicationListenerCertificateProps)

Experimental.

func NewApplicationListenerRule_Override

func NewApplicationListenerRule_Override(a ApplicationListenerRule, scope constructs.Construct, id *string, props *ApplicationListenerRuleProps)

Experimental.

func NewApplicationListener_Override

func NewApplicationListener_Override(a ApplicationListener, scope constructs.Construct, id *string, props *ApplicationListenerProps)

Experimental.

func NewApplicationLoadBalancer_Override

func NewApplicationLoadBalancer_Override(a ApplicationLoadBalancer, scope constructs.Construct, id *string, props *ApplicationLoadBalancerProps)

Experimental.

func NewApplicationTargetGroup_Override

func NewApplicationTargetGroup_Override(a ApplicationTargetGroup, scope constructs.Construct, id *string, props *ApplicationTargetGroupProps)

Experimental.

func NewBaseListener_Override

func NewBaseListener_Override(b BaseListener, scope constructs.Construct, id *string, additionalProps interface{})

Experimental.

func NewBaseLoadBalancer_Override

func NewBaseLoadBalancer_Override(b BaseLoadBalancer, scope constructs.Construct, id *string, baseProps *BaseLoadBalancerProps, additionalProps interface{})

Experimental.

func NewCfnListenerCertificate_Override

func NewCfnListenerCertificate_Override(c CfnListenerCertificate, scope awscdk.Construct, id *string, props *CfnListenerCertificateProps)

Create a new `AWS::ElasticLoadBalancingV2::ListenerCertificate`.

func NewCfnListenerRule_Override

func NewCfnListenerRule_Override(c CfnListenerRule, scope awscdk.Construct, id *string, props *CfnListenerRuleProps)

Create a new `AWS::ElasticLoadBalancingV2::ListenerRule`.

func NewCfnListener_Override

func NewCfnListener_Override(c CfnListener, scope awscdk.Construct, id *string, props *CfnListenerProps)

Create a new `AWS::ElasticLoadBalancingV2::Listener`.

func NewCfnLoadBalancer_Override

func NewCfnLoadBalancer_Override(c CfnLoadBalancer, scope awscdk.Construct, id *string, props *CfnLoadBalancerProps)

Create a new `AWS::ElasticLoadBalancingV2::LoadBalancer`.

func NewCfnTargetGroup_Override

func NewCfnTargetGroup_Override(c CfnTargetGroup, scope awscdk.Construct, id *string, props *CfnTargetGroupProps)

Create a new `AWS::ElasticLoadBalancingV2::TargetGroup`.

func NewInstanceTarget_Override

func NewInstanceTarget_Override(i InstanceTarget, instanceId *string, port *float64)

Create a new Instance target. Deprecated: Use IpTarget from the

func NewIpTarget_Override

func NewIpTarget_Override(i IpTarget, ipAddress *string, port *float64, availabilityZone *string)

Create a new IPAddress target.

The availabilityZone parameter determines whether the target receives traffic from the load balancer nodes in the specified Availability Zone or from all enabled Availability Zones for the load balancer.

This parameter is not supported if the target type of the target group is instance. If the IP address is in a subnet of the VPC for the target group, the Availability Zone is automatically detected and this parameter is optional. If the IP address is outside the VPC, this parameter is required.

With an Application Load Balancer, if the IP address is outside the VPC for the target group, the only supported value is all.

Default is automatic. Deprecated: Use IpTarget from the

func NewListenerAction_Override

func NewListenerAction_Override(l ListenerAction, actionJson *CfnListener_ActionProperty, next ListenerAction)

Create an instance of ListenerAction.

The default class should be good enough for most cases and should be created by using one of the static factory functions, but allow overriding to make sure we allow flexibility for the future. Experimental.

func NewListenerCertificate_Override

func NewListenerCertificate_Override(l ListenerCertificate, certificateArn *string)

Experimental.

func NewListenerCondition_Override

func NewListenerCondition_Override(l ListenerCondition)

Experimental.

func NewNetworkListenerAction_Override

func NewNetworkListenerAction_Override(n NetworkListenerAction, actionJson *CfnListener_ActionProperty, next NetworkListenerAction)

Create an instance of NetworkListenerAction.

The default class should be good enough for most cases and should be created by using one of the static factory functions, but allow overriding to make sure we allow flexibility for the future. Experimental.

func NewNetworkListener_Override

func NewNetworkListener_Override(n NetworkListener, scope constructs.Construct, id *string, props *NetworkListenerProps)

Experimental.

func NewNetworkLoadBalancer_Override

func NewNetworkLoadBalancer_Override(n NetworkLoadBalancer, scope constructs.Construct, id *string, props *NetworkLoadBalancerProps)

Experimental.

func NewNetworkTargetGroup_Override

func NewNetworkTargetGroup_Override(n NetworkTargetGroup, scope constructs.Construct, id *string, props *NetworkTargetGroupProps)

Experimental.

func NewTargetGroupBase_Override

func NewTargetGroupBase_Override(t TargetGroupBase, scope constructs.Construct, id *string, baseProps *BaseTargetGroupProps, additionalProps interface{})

Experimental.

func TargetGroupBase_IsConstruct

func TargetGroupBase_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

Types

type AddApplicationActionProps

type AddApplicationActionProps struct {
	// Rule applies if matches the conditions.
	// See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html
	//
	// Experimental.
	Conditions *[]ListenerCondition `json:"conditions"`
	// Rule applies if the requested host matches the indicated host.
	//
	// May contain up to three '*' wildcards.
	//
	// Requires that priority is set.
	// See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#host-conditions
	//
	// Deprecated: Use `conditions` instead.
	HostHeader *string `json:"hostHeader"`
	// Rule applies if the requested path matches the given path pattern.
	//
	// May contain up to three '*' wildcards.
	//
	// Requires that priority is set.
	// See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#path-conditions
	//
	// Deprecated: Use `conditions` instead.
	PathPattern *string `json:"pathPattern"`
	// Rule applies if the requested path matches any of the given patterns.
	//
	// May contain up to three '*' wildcards.
	//
	// Requires that priority is set.
	// See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#path-conditions
	//
	// Deprecated: Use `conditions` instead.
	PathPatterns *[]*string `json:"pathPatterns"`
	// Priority of this target group.
	//
	// The rule with the lowest priority will be used for every request.
	// If priority is not given, these target groups will be added as
	// defaults, and must not have conditions.
	//
	// Priorities must be unique.
	// Experimental.
	Priority *float64 `json:"priority"`
	// Action to perform.
	// Experimental.
	Action ListenerAction `json:"action"`
}

Properties for adding a new action to a listener. Experimental.

type AddApplicationTargetGroupsProps

type AddApplicationTargetGroupsProps struct {
	// Rule applies if matches the conditions.
	// See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html
	//
	// Experimental.
	Conditions *[]ListenerCondition `json:"conditions"`
	// Rule applies if the requested host matches the indicated host.
	//
	// May contain up to three '*' wildcards.
	//
	// Requires that priority is set.
	// See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#host-conditions
	//
	// Deprecated: Use `conditions` instead.
	HostHeader *string `json:"hostHeader"`
	// Rule applies if the requested path matches the given path pattern.
	//
	// May contain up to three '*' wildcards.
	//
	// Requires that priority is set.
	// See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#path-conditions
	//
	// Deprecated: Use `conditions` instead.
	PathPattern *string `json:"pathPattern"`
	// Rule applies if the requested path matches any of the given patterns.
	//
	// May contain up to three '*' wildcards.
	//
	// Requires that priority is set.
	// See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#path-conditions
	//
	// Deprecated: Use `conditions` instead.
	PathPatterns *[]*string `json:"pathPatterns"`
	// Priority of this target group.
	//
	// The rule with the lowest priority will be used for every request.
	// If priority is not given, these target groups will be added as
	// defaults, and must not have conditions.
	//
	// Priorities must be unique.
	// Experimental.
	Priority *float64 `json:"priority"`
	// Target groups to forward requests to.
	// Experimental.
	TargetGroups *[]IApplicationTargetGroup `json:"targetGroups"`
}

Properties for adding a new target group to a listener. Experimental.

type AddApplicationTargetsProps

type AddApplicationTargetsProps struct {
	// Rule applies if matches the conditions.
	// See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html
	//
	// Experimental.
	Conditions *[]ListenerCondition `json:"conditions"`
	// Rule applies if the requested host matches the indicated host.
	//
	// May contain up to three '*' wildcards.
	//
	// Requires that priority is set.
	// See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#host-conditions
	//
	// Deprecated: Use `conditions` instead.
	HostHeader *string `json:"hostHeader"`
	// Rule applies if the requested path matches the given path pattern.
	//
	// May contain up to three '*' wildcards.
	//
	// Requires that priority is set.
	// See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#path-conditions
	//
	// Deprecated: Use `conditions` instead.
	PathPattern *string `json:"pathPattern"`
	// Rule applies if the requested path matches any of the given patterns.
	//
	// May contain up to three '*' wildcards.
	//
	// Requires that priority is set.
	// See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#path-conditions
	//
	// Deprecated: Use `conditions` instead.
	PathPatterns *[]*string `json:"pathPatterns"`
	// Priority of this target group.
	//
	// The rule with the lowest priority will be used for every request.
	// If priority is not given, these target groups will be added as
	// defaults, and must not have conditions.
	//
	// Priorities must be unique.
	// Experimental.
	Priority *float64 `json:"priority"`
	// The amount of time for Elastic Load Balancing to wait before deregistering a target.
	//
	// The range is 0-3600 seconds.
	// Experimental.
	DeregistrationDelay awscdk.Duration `json:"deregistrationDelay"`
	// Health check configuration.
	// Experimental.
	HealthCheck *HealthCheck `json:"healthCheck"`
	// The port on which the listener listens for requests.
	// Experimental.
	Port *float64 `json:"port"`
	// The protocol to use.
	// Experimental.
	Protocol ApplicationProtocol `json:"protocol"`
	// The time period during which the load balancer sends a newly registered target a linearly increasing share of the traffic to the target group.
	//
	// The range is 30-900 seconds (15 minutes).
	// Experimental.
	SlowStart awscdk.Duration `json:"slowStart"`
	// The stickiness cookie expiration period.
	//
	// Setting this value enables load balancer stickiness.
	//
	// After this period, the cookie is considered stale. The minimum value is
	// 1 second and the maximum value is 7 days (604800 seconds).
	// Experimental.
	StickinessCookieDuration awscdk.Duration `json:"stickinessCookieDuration"`
	// The name of an application-based stickiness cookie.
	//
	// Names that start with the following prefixes are not allowed: AWSALB, AWSALBAPP,
	// and AWSALBTG; they're reserved for use by the load balancer.
	//
	// Note: `stickinessCookieName` parameter depends on the presence of `stickinessCookieDuration` parameter.
	// If `stickinessCookieDuration` is not set, `stickinessCookieName` will be omitted.
	// See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/sticky-sessions.html
	//
	// Experimental.
	StickinessCookieName *string `json:"stickinessCookieName"`
	// The name of the target group.
	//
	// This name must be unique per region per account, can have a maximum of
	// 32 characters, must contain only alphanumeric characters or hyphens, and
	// must not begin or end with a hyphen.
	// Experimental.
	TargetGroupName *string `json:"targetGroupName"`
	// The targets to add to this target group.
	//
	// Can be `Instance`, `IPAddress`, or any self-registering load balancing
	// target. All target must be of the same type.
	// Experimental.
	Targets *[]IApplicationLoadBalancerTarget `json:"targets"`
}

Properties for adding new targets to a listener. Experimental.

type AddFixedResponseProps

type AddFixedResponseProps struct {
	// Rule applies if matches the conditions.
	// See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html
	//
	// Deprecated: Use `ApplicationListener.addAction` instead.
	Conditions *[]ListenerCondition `json:"conditions"`
	// Rule applies if the requested host matches the indicated host.
	//
	// May contain up to three '*' wildcards.
	//
	// Requires that priority is set.
	// See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#host-conditions
	//
	// Deprecated: Use `conditions` instead.
	HostHeader *string `json:"hostHeader"`
	// Rule applies if the requested path matches the given path pattern.
	//
	// May contain up to three '*' wildcards.
	//
	// Requires that priority is set.
	// See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#path-conditions
	//
	// Deprecated: Use `conditions` instead.
	PathPattern *string `json:"pathPattern"`
	// Rule applies if the requested path matches any of the given patterns.
	//
	// May contain up to three '*' wildcards.
	//
	// Requires that priority is set.
	// See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#path-conditions
	//
	// Deprecated: Use `conditions` instead.
	PathPatterns *[]*string `json:"pathPatterns"`
	// Priority of this target group.
	//
	// The rule with the lowest priority will be used for every request.
	// If priority is not given, these target groups will be added as
	// defaults, and must not have conditions.
	//
	// Priorities must be unique.
	// Deprecated: Use `ApplicationListener.addAction` instead.
	Priority *float64 `json:"priority"`
	// The HTTP response code (2XX, 4XX or 5XX).
	// Deprecated: Use `ApplicationListener.addAction` instead.
	StatusCode *string `json:"statusCode"`
	// The content type.
	// Deprecated: Use `ApplicationListener.addAction` instead.
	ContentType ContentType `json:"contentType"`
	// The message.
	// Deprecated: Use `ApplicationListener.addAction` instead.
	MessageBody *string `json:"messageBody"`
}

Properties for adding a fixed response to a listener. Deprecated: Use `ApplicationListener.addAction` instead.

type AddNetworkActionProps

type AddNetworkActionProps struct {
	// Action to perform.
	// Experimental.
	Action NetworkListenerAction `json:"action"`
}

Properties for adding a new action to a listener. Experimental.

type AddNetworkTargetsProps

type AddNetworkTargetsProps struct {
	// The port on which the listener listens for requests.
	// Experimental.
	Port *float64 `json:"port"`
	// The amount of time for Elastic Load Balancing to wait before deregistering a target.
	//
	// The range is 0-3600 seconds.
	// Experimental.
	DeregistrationDelay awscdk.Duration `json:"deregistrationDelay"`
	// Health check configuration.
	// Experimental.
	HealthCheck *HealthCheck `json:"healthCheck"`
	// Protocol for target group, expects TCP, TLS, UDP, or TCP_UDP.
	// Experimental.
	Protocol Protocol `json:"protocol"`
	// Indicates whether Proxy Protocol version 2 is enabled.
	// Experimental.
	ProxyProtocolV2 *bool `json:"proxyProtocolV2"`
	// The name of the target group.
	//
	// This name must be unique per region per account, can have a maximum of
	// 32 characters, must contain only alphanumeric characters or hyphens, and
	// must not begin or end with a hyphen.
	// Experimental.
	TargetGroupName *string `json:"targetGroupName"`
	// The targets to add to this target group.
	//
	// Can be `Instance`, `IPAddress`, or any self-registering load balancing
	// target. If you use either `Instance` or `IPAddress` as targets, all
	// target must be of the same type.
	// Experimental.
	Targets *[]INetworkLoadBalancerTarget `json:"targets"`
}

Properties for adding new network targets to a listener. Experimental.

type AddRedirectResponseProps

type AddRedirectResponseProps struct {
	// Rule applies if matches the conditions.
	// See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html
	//
	// Deprecated: Use `ApplicationListener.addAction` instead.
	Conditions *[]ListenerCondition `json:"conditions"`
	// Rule applies if the requested host matches the indicated host.
	//
	// May contain up to three '*' wildcards.
	//
	// Requires that priority is set.
	// See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#host-conditions
	//
	// Deprecated: Use `conditions` instead.
	HostHeader *string `json:"hostHeader"`
	// Rule applies if the requested path matches the given path pattern.
	//
	// May contain up to three '*' wildcards.
	//
	// Requires that priority is set.
	// See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#path-conditions
	//
	// Deprecated: Use `conditions` instead.
	PathPattern *string `json:"pathPattern"`
	// Rule applies if the requested path matches any of the given patterns.
	//
	// May contain up to three '*' wildcards.
	//
	// Requires that priority is set.
	// See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#path-conditions
	//
	// Deprecated: Use `conditions` instead.
	PathPatterns *[]*string `json:"pathPatterns"`
	// Priority of this target group.
	//
	// The rule with the lowest priority will be used for every request.
	// If priority is not given, these target groups will be added as
	// defaults, and must not have conditions.
	//
	// Priorities must be unique.
	// Deprecated: Use `ApplicationListener.addAction` instead.
	Priority *float64 `json:"priority"`
	// The HTTP redirect code (HTTP_301 or HTTP_302).
	// Deprecated: Use `ApplicationListener.addAction` instead.
	StatusCode *string `json:"statusCode"`
	// The hostname.
	//
	// This component is not percent-encoded. The hostname can contain #{host}.
	// Deprecated: Use `ApplicationListener.addAction` instead.
	Host *string `json:"host"`
	// The absolute path, starting with the leading "/".
	//
	// This component is not percent-encoded.
	// The path can contain #{host}, #{path}, and #{port}.
	// Deprecated: Use `ApplicationListener.addAction` instead.
	Path *string `json:"path"`
	// The port.
	//
	// You can specify a value from 1 to 65535 or #{port}.
	// Deprecated: Use `ApplicationListener.addAction` instead.
	Port *string `json:"port"`
	// The protocol.
	//
	// You can specify HTTP, HTTPS, or #{protocol}. You can redirect HTTP to HTTP,
	// HTTP to HTTPS, and HTTPS to HTTPS. You cannot redirect HTTPS to HTTP.
	// Deprecated: Use `ApplicationListener.addAction` instead.
	Protocol *string `json:"protocol"`
	// The query parameters, URL-encoded when necessary, but not percent-encoded.
	//
	// Do not include the leading "?", as it is automatically added.
	// You can specify any of the reserved keywords.
	// Deprecated: Use `ApplicationListener.addAction` instead.
	Query *string `json:"query"`
}

Properties for adding a redirect response to a listener. Deprecated: Use `ApplicationListener.addAction` instead.

type AddRuleProps

type AddRuleProps struct {
	// Rule applies if matches the conditions.
	// See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html
	//
	// Experimental.
	Conditions *[]ListenerCondition `json:"conditions"`
	// Rule applies if the requested host matches the indicated host.
	//
	// May contain up to three '*' wildcards.
	//
	// Requires that priority is set.
	// See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#host-conditions
	//
	// Deprecated: Use `conditions` instead.
	HostHeader *string `json:"hostHeader"`
	// Rule applies if the requested path matches the given path pattern.
	//
	// May contain up to three '*' wildcards.
	//
	// Requires that priority is set.
	// See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#path-conditions
	//
	// Deprecated: Use `conditions` instead.
	PathPattern *string `json:"pathPattern"`
	// Rule applies if the requested path matches any of the given patterns.
	//
	// May contain up to three '*' wildcards.
	//
	// Requires that priority is set.
	// See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#path-conditions
	//
	// Deprecated: Use `conditions` instead.
	PathPatterns *[]*string `json:"pathPatterns"`
	// Priority of this target group.
	//
	// The rule with the lowest priority will be used for every request.
	// If priority is not given, these target groups will be added as
	// defaults, and must not have conditions.
	//
	// Priorities must be unique.
	// Experimental.
	Priority *float64 `json:"priority"`
}

Properties for adding a conditional load balancing rule. Experimental.

type ApplicationListener

type ApplicationListener interface {
	BaseListener
	IApplicationListener
	Connections() awsec2.Connections
	Env() *awscdk.ResourceEnvironment
	ListenerArn() *string
	LoadBalancer() IApplicationLoadBalancer
	Node() awscdk.ConstructNode
	PhysicalName() *string
	Stack() awscdk.Stack
	AddAction(id *string, props *AddApplicationActionProps)
	AddCertificateArns(id *string, arns *[]*string)
	AddCertificates(id *string, certificates *[]IListenerCertificate)
	AddFixedResponse(id *string, props *AddFixedResponseProps)
	AddRedirectResponse(id *string, props *AddRedirectResponseProps)
	AddTargetGroups(id *string, props *AddApplicationTargetGroupsProps)
	AddTargets(id *string, props *AddApplicationTargetsProps) ApplicationTargetGroup
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
	GeneratePhysicalName() *string
	GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
	GetResourceNameAttribute(nameAttr *string) *string
	OnPrepare()
	OnSynthesize(session constructs.ISynthesisSession)
	OnValidate() *[]*string
	Prepare()
	RegisterConnectable(connectable awsec2.IConnectable, portRange awsec2.Port)
	Synthesize(session awscdk.ISynthesisSession)
	ToString() *string
	Validate() *[]*string
}

Define an ApplicationListener. Experimental.

func NewApplicationListener

func NewApplicationListener(scope constructs.Construct, id *string, props *ApplicationListenerProps) ApplicationListener

Experimental.

type ApplicationListenerAttributes

type ApplicationListenerAttributes struct {
	// ARN of the listener.
	// Experimental.
	ListenerArn *string `json:"listenerArn"`
	// The default port on which this listener is listening.
	// Experimental.
	DefaultPort *float64 `json:"defaultPort"`
	// Security group of the load balancer this listener is associated with.
	// Experimental.
	SecurityGroup awsec2.ISecurityGroup `json:"securityGroup"`
	// Whether the imported security group allows all outbound traffic or not when imported using `securityGroupId`.
	//
	// Unless set to `false`, no egress rules will be added to the security group.
	// Deprecated: use `securityGroup` instead
	SecurityGroupAllowsAllOutbound *bool `json:"securityGroupAllowsAllOutbound"`
	// Security group ID of the load balancer this listener is associated with.
	// Deprecated: use `securityGroup` instead
	SecurityGroupId *string `json:"securityGroupId"`
}

Properties to reference an existing listener. Experimental.

type ApplicationListenerCertificate

type ApplicationListenerCertificate interface {
	awscdk.Construct
	Node() awscdk.ConstructNode
	OnPrepare()
	OnSynthesize(session constructs.ISynthesisSession)
	OnValidate() *[]*string
	Prepare()
	Synthesize(session awscdk.ISynthesisSession)
	ToString() *string
	Validate() *[]*string
}

Add certificates to a listener. Experimental.

func NewApplicationListenerCertificate

func NewApplicationListenerCertificate(scope constructs.Construct, id *string, props *ApplicationListenerCertificateProps) ApplicationListenerCertificate

Experimental.

type ApplicationListenerCertificateProps

type ApplicationListenerCertificateProps struct {
	// The listener to attach the rule to.
	// Experimental.
	Listener IApplicationListener `json:"listener"`
	// ARNs of certificates to attach.
	//
	// Duplicates are not allowed.
	// Deprecated: Use `certificates` instead.
	CertificateArns *[]*string `json:"certificateArns"`
	// Certificates to attach.
	//
	// Duplicates are not allowed.
	// Experimental.
	Certificates *[]IListenerCertificate `json:"certificates"`
}

Properties for adding a set of certificates to a listener. Experimental.

type ApplicationListenerLookupOptions

type ApplicationListenerLookupOptions struct {
	// Filter listeners by listener port.
	// Experimental.
	ListenerPort *float64 `json:"listenerPort"`
	// Filter listeners by associated load balancer arn.
	// Experimental.
	LoadBalancerArn *string `json:"loadBalancerArn"`
	// Filter listeners by associated load balancer tags.
	// Experimental.
	LoadBalancerTags *map[string]*string `json:"loadBalancerTags"`
	// ARN of the listener to look up.
	// Experimental.
	ListenerArn *string `json:"listenerArn"`
	// Filter listeners by listener protocol.
	// Experimental.
	ListenerProtocol ApplicationProtocol `json:"listenerProtocol"`
}

Options for ApplicationListener lookup. Experimental.

type ApplicationListenerProps

type ApplicationListenerProps struct {
	// The certificates to use on this listener.
	// Deprecated: Use the `certificates` property instead
	CertificateArns *[]*string `json:"certificateArns"`
	// Certificate list of ACM cert ARNs.
	// Experimental.
	Certificates *[]IListenerCertificate `json:"certificates"`
	// Default action to take for requests to this listener.
	//
	// This allows full control of the default action of the load balancer,
	// including Action chaining, fixed responses and redirect responses.
	//
	// See the `ListenerAction` class for all options.
	//
	// Cannot be specified together with `defaultTargetGroups`.
	// Experimental.
	DefaultAction ListenerAction `json:"defaultAction"`
	// Default target groups to load balance to.
	//
	// All target groups will be load balanced to with equal weight and without
	// stickiness. For a more complex configuration than that, use
	// either `defaultAction` or `addAction()`.
	//
	// Cannot be specified together with `defaultAction`.
	// Experimental.
	DefaultTargetGroups *[]IApplicationTargetGroup `json:"defaultTargetGroups"`
	// Allow anyone to connect to this listener.
	//
	// If this is specified, the listener will be opened up to anyone who can reach it.
	// For internal load balancers this is anyone in the same VPC. For public load
	// balancers, this is anyone on the internet.
	//
	// If you want to be more selective about who can access this load
	// balancer, set this to `false` and use the listener's `connections`
	// object to selectively grant access to the listener.
	// Experimental.
	Open *bool `json:"open"`
	// The port on which the listener listens for requests.
	// Experimental.
	Port *float64 `json:"port"`
	// The protocol to use.
	// Experimental.
	Protocol ApplicationProtocol `json:"protocol"`
	// The security policy that defines which ciphers and protocols are supported.
	// Experimental.
	SslPolicy SslPolicy `json:"sslPolicy"`
	// The load balancer to attach this listener to.
	// Experimental.
	LoadBalancer IApplicationLoadBalancer `json:"loadBalancer"`
}

Properties for defining a standalone ApplicationListener. Experimental.

type ApplicationListenerRule

type ApplicationListenerRule interface {
	awscdk.Construct
	ListenerRuleArn() *string
	Node() awscdk.ConstructNode
	AddCondition(condition ListenerCondition)
	AddFixedResponse(fixedResponse *FixedResponse)
	AddRedirectResponse(redirectResponse *RedirectResponse)
	AddTargetGroup(targetGroup IApplicationTargetGroup)
	ConfigureAction(action ListenerAction)
	OnPrepare()
	OnSynthesize(session constructs.ISynthesisSession)
	OnValidate() *[]*string
	Prepare()
	SetCondition(field *string, values *[]*string)
	Synthesize(session awscdk.ISynthesisSession)
	ToString() *string
	Validate() *[]*string
}

Define a new listener rule. Experimental.

func NewApplicationListenerRule

func NewApplicationListenerRule(scope constructs.Construct, id *string, props *ApplicationListenerRuleProps) ApplicationListenerRule

Experimental.

type ApplicationListenerRuleProps

type ApplicationListenerRuleProps struct {
	// Priority of the rule.
	//
	// The rule with the lowest priority will be used for every request.
	//
	// Priorities must be unique.
	// Experimental.
	Priority *float64 `json:"priority"`
	// Action to perform when requests are received.
	//
	// Only one of `action`, `fixedResponse`, `redirectResponse` or `targetGroups` can be specified.
	// Experimental.
	Action ListenerAction `json:"action"`
	// Rule applies if matches the conditions.
	// See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html
	//
	// Experimental.
	Conditions *[]ListenerCondition `json:"conditions"`
	// Fixed response to return.
	//
	// Only one of `action`, `fixedResponse`, `redirectResponse` or `targetGroups` can be specified.
	// Deprecated: Use `action` instead.
	FixedResponse *FixedResponse `json:"fixedResponse"`
	// Rule applies if the requested host matches the indicated host.
	//
	// May contain up to three '*' wildcards.
	// See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#host-conditions
	//
	// Deprecated: Use `conditions` instead.
	HostHeader *string `json:"hostHeader"`
	// Rule applies if the requested path matches the given path pattern.
	// See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#path-conditions
	//
	// Deprecated: Use `conditions` instead.
	PathPattern *string `json:"pathPattern"`
	// Rule applies if the requested path matches any of the given patterns.
	//
	// Paths may contain up to three '*' wildcards.
	// See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#path-conditions
	//
	// Deprecated: Use `conditions` instead.
	PathPatterns *[]*string `json:"pathPatterns"`
	// Redirect response to return.
	//
	// Only one of `action`, `fixedResponse`, `redirectResponse` or `targetGroups` can be specified.
	// Deprecated: Use `action` instead.
	RedirectResponse *RedirectResponse `json:"redirectResponse"`
	// Target groups to forward requests to.
	//
	// Only one of `action`, `fixedResponse`, `redirectResponse` or `targetGroups` can be specified.
	//
	// Implies a `forward` action.
	// Experimental.
	TargetGroups *[]IApplicationTargetGroup `json:"targetGroups"`
	// The listener to attach the rule to.
	// Experimental.
	Listener IApplicationListener `json:"listener"`
}

Properties for defining a listener rule. Experimental.

type ApplicationLoadBalancer

type ApplicationLoadBalancer interface {
	BaseLoadBalancer
	IApplicationLoadBalancer
	Connections() awsec2.Connections
	Env() *awscdk.ResourceEnvironment
	IpAddressType() IpAddressType
	LoadBalancerArn() *string
	LoadBalancerCanonicalHostedZoneId() *string
	LoadBalancerDnsName() *string
	LoadBalancerFullName() *string
	LoadBalancerName() *string
	LoadBalancerSecurityGroups() *[]*string
	Node() awscdk.ConstructNode
	PhysicalName() *string
	Stack() awscdk.Stack
	Vpc() awsec2.IVpc
	AddListener(id *string, props *BaseApplicationListenerProps) ApplicationListener
	AddRedirect(props *ApplicationLoadBalancerRedirectConfig) ApplicationListener
	AddSecurityGroup(securityGroup awsec2.ISecurityGroup)
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
	GeneratePhysicalName() *string
	GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
	GetResourceNameAttribute(nameAttr *string) *string
	LogAccessLogs(bucket awss3.IBucket, prefix *string)
	Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricActiveConnectionCount(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricClientTlsNegotiationErrorCount(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricConsumedLCUs(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricElbAuthError(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricElbAuthFailure(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricElbAuthLatency(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricElbAuthSuccess(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricHttpCodeElb(code HttpCodeElb, props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricHttpCodeTarget(code HttpCodeTarget, props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricHttpFixedResponseCount(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricHttpRedirectCount(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricHttpRedirectUrlLimitExceededCount(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricIpv6ProcessedBytes(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricIpv6RequestCount(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricNewConnectionCount(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricProcessedBytes(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricRejectedConnectionCount(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricRequestCount(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricRuleEvaluations(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricTargetConnectionErrorCount(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricTargetResponseTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricTargetTLSNegotiationErrorCount(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	OnPrepare()
	OnSynthesize(session constructs.ISynthesisSession)
	OnValidate() *[]*string
	Prepare()
	RemoveAttribute(key *string)
	SetAttribute(key *string, value *string)
	Synthesize(session awscdk.ISynthesisSession)
	ToString() *string
	Validate() *[]*string
}

Define an Application Load Balancer. Experimental.

func NewApplicationLoadBalancer

func NewApplicationLoadBalancer(scope constructs.Construct, id *string, props *ApplicationLoadBalancerProps) ApplicationLoadBalancer

Experimental.

type ApplicationLoadBalancerAttributes

type ApplicationLoadBalancerAttributes struct {
	// ARN of the load balancer.
	// Experimental.
	LoadBalancerArn *string `json:"loadBalancerArn"`
	// ID of the load balancer's security group.
	// Experimental.
	SecurityGroupId *string `json:"securityGroupId"`
	// The canonical hosted zone ID of this load balancer.
	// Experimental.
	LoadBalancerCanonicalHostedZoneId *string `json:"loadBalancerCanonicalHostedZoneId"`
	// The DNS name of this load balancer.
	// Experimental.
	LoadBalancerDnsName *string `json:"loadBalancerDnsName"`
	// Whether the security group allows all outbound traffic or not.
	//
	// Unless set to `false`, no egress rules will be added to the security group.
	// Experimental.
	SecurityGroupAllowsAllOutbound *bool `json:"securityGroupAllowsAllOutbound"`
	// The VPC this load balancer has been created in, if available.
	// Experimental.
	Vpc awsec2.IVpc `json:"vpc"`
}

Properties to reference an existing load balancer. Experimental.

type ApplicationLoadBalancerLookupOptions

type ApplicationLoadBalancerLookupOptions struct {
	// Find by load balancer's ARN.
	// Experimental.
	LoadBalancerArn *string `json:"loadBalancerArn"`
	// Match load balancer tags.
	// Experimental.
	LoadBalancerTags *map[string]*string `json:"loadBalancerTags"`
}

Options for looking up an ApplicationLoadBalancer. Experimental.

type ApplicationLoadBalancerProps

type ApplicationLoadBalancerProps struct {
	// The VPC network to place the load balancer in.
	// Experimental.
	Vpc awsec2.IVpc `json:"vpc"`
	// Indicates whether deletion protection is enabled.
	// Experimental.
	DeletionProtection *bool `json:"deletionProtection"`
	// Whether the load balancer has an internet-routable address.
	// Experimental.
	InternetFacing *bool `json:"internetFacing"`
	// Name of the load balancer.
	// Experimental.
	LoadBalancerName *string `json:"loadBalancerName"`
	// Which subnets place the load balancer in.
	// Experimental.
	VpcSubnets *awsec2.SubnetSelection `json:"vpcSubnets"`
	// Indicates whether HTTP/2 is enabled.
	// Experimental.
	Http2Enabled *bool `json:"http2Enabled"`
	// The load balancer idle timeout, in seconds.
	// Experimental.
	IdleTimeout awscdk.Duration `json:"idleTimeout"`
	// The type of IP addresses to use.
	//
	// Only applies to application load balancers.
	// Experimental.
	IpAddressType IpAddressType `json:"ipAddressType"`
	// Security group to associate with this load balancer.
	// Experimental.
	SecurityGroup awsec2.ISecurityGroup `json:"securityGroup"`
}

Properties for defining an Application Load Balancer. Experimental.

type ApplicationLoadBalancerRedirectConfig

type ApplicationLoadBalancerRedirectConfig struct {
	// Allow anyone to connect to this listener.
	//
	// If this is specified, the listener will be opened up to anyone who can reach it.
	// For internal load balancers this is anyone in the same VPC. For public load
	// balancers, this is anyone on the internet.
	//
	// If you want to be more selective about who can access this load
	// balancer, set this to `false` and use the listener's `connections`
	// object to selectively grant access to the listener.
	// Experimental.
	Open *bool `json:"open"`
	// The port number to listen to.
	// Experimental.
	SourcePort *float64 `json:"sourcePort"`
	// The protocol of the listener being created.
	// Experimental.
	SourceProtocol ApplicationProtocol `json:"sourceProtocol"`
	// The port number to redirect to.
	// Experimental.
	TargetPort *float64 `json:"targetPort"`
	// The protocol of the redirection target.
	// Experimental.
	TargetProtocol ApplicationProtocol `json:"targetProtocol"`
}

Properties for a redirection config. Experimental.

type ApplicationProtocol

type ApplicationProtocol string

Load balancing protocol for application load balancers. Experimental.

const (
	ApplicationProtocol_HTTP  ApplicationProtocol = "HTTP"
	ApplicationProtocol_HTTPS ApplicationProtocol = "HTTPS"
)

type ApplicationProtocolVersion

type ApplicationProtocolVersion string

Load balancing protocol version for application load balancers. Experimental.

const (
	ApplicationProtocolVersion_GRPC  ApplicationProtocolVersion = "GRPC"
	ApplicationProtocolVersion_HTTP1 ApplicationProtocolVersion = "HTTP1"
	ApplicationProtocolVersion_HTTP2 ApplicationProtocolVersion = "HTTP2"
)

type ApplicationTargetGroup

type ApplicationTargetGroup interface {
	TargetGroupBase
	IApplicationTargetGroup
	DefaultPort() *float64
	FirstLoadBalancerFullName() *string
	HealthCheck() *HealthCheck
	SetHealthCheck(val *HealthCheck)
	LoadBalancerArns() *string
	LoadBalancerAttached() awscdk.IDependable
	LoadBalancerAttachedDependencies() awscdk.ConcreteDependable
	Node() awscdk.ConstructNode
	TargetGroupArn() *string
	TargetGroupFullName() *string
	TargetGroupLoadBalancerArns() *[]*string
	TargetGroupName() *string
	TargetType() TargetType
	SetTargetType(val TargetType)
	AddLoadBalancerTarget(props *LoadBalancerTargetProps)
	AddTarget(targets ...IApplicationLoadBalancerTarget)
	ConfigureHealthCheck(healthCheck *HealthCheck)
	EnableCookieStickiness(duration awscdk.Duration, cookieName *string)
	Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricHealthyHostCount(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricHttpCodeTarget(code HttpCodeTarget, props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricIpv6RequestCount(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricRequestCount(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricRequestCountPerTarget(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricTargetConnectionErrorCount(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricTargetResponseTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricTargetTLSNegotiationErrorCount(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricUnhealthyHostCount(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	OnPrepare()
	OnSynthesize(session constructs.ISynthesisSession)
	OnValidate() *[]*string
	Prepare()
	RegisterConnectable(connectable awsec2.IConnectable, portRange awsec2.Port)
	RegisterListener(listener IApplicationListener, associatingConstruct constructs.IConstruct)
	SetAttribute(key *string, value *string)
	Synthesize(session awscdk.ISynthesisSession)
	ToString() *string
	Validate() *[]*string
}

Define an Application Target Group. Experimental.

func NewApplicationTargetGroup

func NewApplicationTargetGroup(scope constructs.Construct, id *string, props *ApplicationTargetGroupProps) ApplicationTargetGroup

Experimental.

type ApplicationTargetGroupProps

type ApplicationTargetGroupProps struct {
	// The amount of time for Elastic Load Balancing to wait before deregistering a target.
	//
	// The range is 0-3600 seconds.
	// Experimental.
	DeregistrationDelay awscdk.Duration `json:"deregistrationDelay"`
	// Health check configuration.
	// Experimental.
	HealthCheck *HealthCheck `json:"healthCheck"`
	// The name of the target group.
	//
	// This name must be unique per region per account, can have a maximum of
	// 32 characters, must contain only alphanumeric characters or hyphens, and
	// must not begin or end with a hyphen.
	// Experimental.
	TargetGroupName *string `json:"targetGroupName"`
	// The type of targets registered to this TargetGroup, either IP or Instance.
	//
	// All targets registered into the group must be of this type. If you
	// register targets to the TargetGroup in the CDK app, the TargetType is
	// determined automatically.
	// Experimental.
	TargetType TargetType `json:"targetType"`
	// The virtual private cloud (VPC).
	//
	// only if `TargetType` is `Ip` or `InstanceId`
	// Experimental.
	Vpc awsec2.IVpc `json:"vpc"`
	// The port on which the listener listens for requests.
	// Experimental.
	Port *float64 `json:"port"`
	// The protocol to use.
	// Experimental.
	Protocol ApplicationProtocol `json:"protocol"`
	// The protocol version to use.
	// Experimental.
	ProtocolVersion ApplicationProtocolVersion `json:"protocolVersion"`
	// The time period during which the load balancer sends a newly registered target a linearly increasing share of the traffic to the target group.
	//
	// The range is 30-900 seconds (15 minutes).
	// Experimental.
	SlowStart awscdk.Duration `json:"slowStart"`
	// The stickiness cookie expiration period.
	//
	// Setting this value enables load balancer stickiness.
	//
	// After this period, the cookie is considered stale. The minimum value is
	// 1 second and the maximum value is 7 days (604800 seconds).
	// Experimental.
	StickinessCookieDuration awscdk.Duration `json:"stickinessCookieDuration"`
	// The name of an application-based stickiness cookie.
	//
	// Names that start with the following prefixes are not allowed: AWSALB, AWSALBAPP,
	// and AWSALBTG; they're reserved for use by the load balancer.
	//
	// Note: `stickinessCookieName` parameter depends on the presence of `stickinessCookieDuration` parameter.
	// If `stickinessCookieDuration` is not set, `stickinessCookieName` will be omitted.
	// See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/sticky-sessions.html
	//
	// Experimental.
	StickinessCookieName *string `json:"stickinessCookieName"`
	// The targets to add to this target group.
	//
	// Can be `Instance`, `IPAddress`, or any self-registering load balancing
	// target. If you use either `Instance` or `IPAddress` as targets, all
	// target must be of the same type.
	// Experimental.
	Targets *[]IApplicationLoadBalancerTarget `json:"targets"`
}

Properties for defining an Application Target Group. Experimental.

type AuthenticateOidcOptions

type AuthenticateOidcOptions struct {
	// The authorization endpoint of the IdP.
	//
	// This must be a full URL, including the HTTPS protocol, the domain, and the path.
	// Experimental.
	AuthorizationEndpoint *string `json:"authorizationEndpoint"`
	// The OAuth 2.0 client identifier.
	// Experimental.
	ClientId *string `json:"clientId"`
	// The OAuth 2.0 client secret.
	// Experimental.
	ClientSecret awscdk.SecretValue `json:"clientSecret"`
	// The OIDC issuer identifier of the IdP.
	//
	// This must be a full URL, including the HTTPS protocol, the domain, and the path.
	// Experimental.
	Issuer *string `json:"issuer"`
	// What action to execute next.
	// Experimental.
	Next ListenerAction `json:"next"`
	// The token endpoint of the IdP.
	//
	// This must be a full URL, including the HTTPS protocol, the domain, and the path.
	// Experimental.
	TokenEndpoint *string `json:"tokenEndpoint"`
	// The user info endpoint of the IdP.
	//
	// This must be a full URL, including the HTTPS protocol, the domain, and the path.
	// Experimental.
	UserInfoEndpoint *string `json:"userInfoEndpoint"`
	// The query parameters (up to 10) to include in the redirect request to the authorization endpoint.
	// Experimental.
	AuthenticationRequestExtraParams *map[string]*string `json:"authenticationRequestExtraParams"`
	// The behavior if the user is not authenticated.
	// Experimental.
	OnUnauthenticatedRequest UnauthenticatedAction `json:"onUnauthenticatedRequest"`
	// The set of user claims to be requested from the IdP.
	//
	// To verify which scope values your IdP supports and how to separate multiple values, see the documentation for your IdP.
	// Experimental.
	Scope *string `json:"scope"`
	// The name of the cookie used to maintain session information.
	// Experimental.
	SessionCookieName *string `json:"sessionCookieName"`
	// The maximum duration of the authentication session.
	// Experimental.
	SessionTimeout awscdk.Duration `json:"sessionTimeout"`
}

Options for `ListenerAction.authenciateOidc()`. Experimental.

type BaseApplicationListenerProps

type BaseApplicationListenerProps struct {
	// The certificates to use on this listener.
	// Deprecated: Use the `certificates` property instead
	CertificateArns *[]*string `json:"certificateArns"`
	// Certificate list of ACM cert ARNs.
	// Experimental.
	Certificates *[]IListenerCertificate `json:"certificates"`
	// Default action to take for requests to this listener.
	//
	// This allows full control of the default action of the load balancer,
	// including Action chaining, fixed responses and redirect responses.
	//
	// See the `ListenerAction` class for all options.
	//
	// Cannot be specified together with `defaultTargetGroups`.
	// Experimental.
	DefaultAction ListenerAction `json:"defaultAction"`
	// Default target groups to load balance to.
	//
	// All target groups will be load balanced to with equal weight and without
	// stickiness. For a more complex configuration than that, use
	// either `defaultAction` or `addAction()`.
	//
	// Cannot be specified together with `defaultAction`.
	// Experimental.
	DefaultTargetGroups *[]IApplicationTargetGroup `json:"defaultTargetGroups"`
	// Allow anyone to connect to this listener.
	//
	// If this is specified, the listener will be opened up to anyone who can reach it.
	// For internal load balancers this is anyone in the same VPC. For public load
	// balancers, this is anyone on the internet.
	//
	// If you want to be more selective about who can access this load
	// balancer, set this to `false` and use the listener's `connections`
	// object to selectively grant access to the listener.
	// Experimental.
	Open *bool `json:"open"`
	// The port on which the listener listens for requests.
	// Experimental.
	Port *float64 `json:"port"`
	// The protocol to use.
	// Experimental.
	Protocol ApplicationProtocol `json:"protocol"`
	// The security policy that defines which ciphers and protocols are supported.
	// Experimental.
	SslPolicy SslPolicy `json:"sslPolicy"`
}

Basic properties for an ApplicationListener. Experimental.

type BaseApplicationListenerRuleProps

type BaseApplicationListenerRuleProps struct {
	// Priority of the rule.
	//
	// The rule with the lowest priority will be used for every request.
	//
	// Priorities must be unique.
	// Experimental.
	Priority *float64 `json:"priority"`
	// Action to perform when requests are received.
	//
	// Only one of `action`, `fixedResponse`, `redirectResponse` or `targetGroups` can be specified.
	// Experimental.
	Action ListenerAction `json:"action"`
	// Rule applies if matches the conditions.
	// See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html
	//
	// Experimental.
	Conditions *[]ListenerCondition `json:"conditions"`
	// Fixed response to return.
	//
	// Only one of `action`, `fixedResponse`, `redirectResponse` or `targetGroups` can be specified.
	// Deprecated: Use `action` instead.
	FixedResponse *FixedResponse `json:"fixedResponse"`
	// Rule applies if the requested host matches the indicated host.
	//
	// May contain up to three '*' wildcards.
	// See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#host-conditions
	//
	// Deprecated: Use `conditions` instead.
	HostHeader *string `json:"hostHeader"`
	// Rule applies if the requested path matches the given path pattern.
	// See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#path-conditions
	//
	// Deprecated: Use `conditions` instead.
	PathPattern *string `json:"pathPattern"`
	// Rule applies if the requested path matches any of the given patterns.
	//
	// Paths may contain up to three '*' wildcards.
	// See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#path-conditions
	//
	// Deprecated: Use `conditions` instead.
	PathPatterns *[]*string `json:"pathPatterns"`
	// Redirect response to return.
	//
	// Only one of `action`, `fixedResponse`, `redirectResponse` or `targetGroups` can be specified.
	// Deprecated: Use `action` instead.
	RedirectResponse *RedirectResponse `json:"redirectResponse"`
	// Target groups to forward requests to.
	//
	// Only one of `action`, `fixedResponse`, `redirectResponse` or `targetGroups` can be specified.
	//
	// Implies a `forward` action.
	// Experimental.
	TargetGroups *[]IApplicationTargetGroup `json:"targetGroups"`
}

Basic properties for defining a rule on a listener. Experimental.

type BaseListener

type BaseListener interface {
	awscdk.Resource
	Env() *awscdk.ResourceEnvironment
	ListenerArn() *string
	Node() awscdk.ConstructNode
	PhysicalName() *string
	Stack() awscdk.Stack
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
	GeneratePhysicalName() *string
	GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
	GetResourceNameAttribute(nameAttr *string) *string
	OnPrepare()
	OnSynthesize(session constructs.ISynthesisSession)
	OnValidate() *[]*string
	Prepare()
	Synthesize(session awscdk.ISynthesisSession)
	ToString() *string
	Validate() *[]*string
}

Base class for listeners. Experimental.

type BaseListenerLookupOptions

type BaseListenerLookupOptions struct {
	// Filter listeners by listener port.
	// Experimental.
	ListenerPort *float64 `json:"listenerPort"`
	// Filter listeners by associated load balancer arn.
	// Experimental.
	LoadBalancerArn *string `json:"loadBalancerArn"`
	// Filter listeners by associated load balancer tags.
	// Experimental.
	LoadBalancerTags *map[string]*string `json:"loadBalancerTags"`
}

Options for listener lookup. Experimental.

type BaseLoadBalancer

type BaseLoadBalancer interface {
	awscdk.Resource
	Env() *awscdk.ResourceEnvironment
	LoadBalancerArn() *string
	LoadBalancerCanonicalHostedZoneId() *string
	LoadBalancerDnsName() *string
	LoadBalancerFullName() *string
	LoadBalancerName() *string
	LoadBalancerSecurityGroups() *[]*string
	Node() awscdk.ConstructNode
	PhysicalName() *string
	Stack() awscdk.Stack
	Vpc() awsec2.IVpc
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
	GeneratePhysicalName() *string
	GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
	GetResourceNameAttribute(nameAttr *string) *string
	LogAccessLogs(bucket awss3.IBucket, prefix *string)
	OnPrepare()
	OnSynthesize(session constructs.ISynthesisSession)
	OnValidate() *[]*string
	Prepare()
	RemoveAttribute(key *string)
	SetAttribute(key *string, value *string)
	Synthesize(session awscdk.ISynthesisSession)
	ToString() *string
	Validate() *[]*string
}

Base class for both Application and Network Load Balancers. Experimental.

type BaseLoadBalancerLookupOptions

type BaseLoadBalancerLookupOptions struct {
	// Find by load balancer's ARN.
	// Experimental.
	LoadBalancerArn *string `json:"loadBalancerArn"`
	// Match load balancer tags.
	// Experimental.
	LoadBalancerTags *map[string]*string `json:"loadBalancerTags"`
}

Options for looking up load balancers. Experimental.

type BaseLoadBalancerProps

type BaseLoadBalancerProps struct {
	// The VPC network to place the load balancer in.
	// Experimental.
	Vpc awsec2.IVpc `json:"vpc"`
	// Indicates whether deletion protection is enabled.
	// Experimental.
	DeletionProtection *bool `json:"deletionProtection"`
	// Whether the load balancer has an internet-routable address.
	// Experimental.
	InternetFacing *bool `json:"internetFacing"`
	// Name of the load balancer.
	// Experimental.
	LoadBalancerName *string `json:"loadBalancerName"`
	// Which subnets place the load balancer in.
	// Experimental.
	VpcSubnets *awsec2.SubnetSelection `json:"vpcSubnets"`
}

Shared properties of both Application and Network Load Balancers. Experimental.

type BaseNetworkListenerProps

type BaseNetworkListenerProps struct {
	// The port on which the listener listens for requests.
	// Experimental.
	Port *float64 `json:"port"`
	// Certificate list of ACM cert ARNs.
	// Experimental.
	Certificates *[]IListenerCertificate `json:"certificates"`
	// Default action to take for requests to this listener.
	//
	// This allows full control of the default Action of the load balancer,
	// including weighted forwarding. See the `NetworkListenerAction` class for
	// all options.
	//
	// Cannot be specified together with `defaultTargetGroups`.
	// Experimental.
	DefaultAction NetworkListenerAction `json:"defaultAction"`
	// Default target groups to load balance to.
	//
	// All target groups will be load balanced to with equal weight and without
	// stickiness. For a more complex configuration than that, use
	// either `defaultAction` or `addAction()`.
	//
	// Cannot be specified together with `defaultAction`.
	// Experimental.
	DefaultTargetGroups *[]INetworkTargetGroup `json:"defaultTargetGroups"`
	// Protocol for listener, expects TCP, TLS, UDP, or TCP_UDP.
	// Experimental.
	Protocol Protocol `json:"protocol"`
	// SSL Policy.
	// Experimental.
	SslPolicy SslPolicy `json:"sslPolicy"`
}

Basic properties for a Network Listener. Experimental.

type BaseTargetGroupProps

type BaseTargetGroupProps struct {
	// The amount of time for Elastic Load Balancing to wait before deregistering a target.
	//
	// The range is 0-3600 seconds.
	// Experimental.
	DeregistrationDelay awscdk.Duration `json:"deregistrationDelay"`
	// Health check configuration.
	// Experimental.
	HealthCheck *HealthCheck `json:"healthCheck"`
	// The name of the target group.
	//
	// This name must be unique per region per account, can have a maximum of
	// 32 characters, must contain only alphanumeric characters or hyphens, and
	// must not begin or end with a hyphen.
	// Experimental.
	TargetGroupName *string `json:"targetGroupName"`
	// The type of targets registered to this TargetGroup, either IP or Instance.
	//
	// All targets registered into the group must be of this type. If you
	// register targets to the TargetGroup in the CDK app, the TargetType is
	// determined automatically.
	// Experimental.
	TargetType TargetType `json:"targetType"`
	// The virtual private cloud (VPC).
	//
	// only if `TargetType` is `Ip` or `InstanceId`
	// Experimental.
	Vpc awsec2.IVpc `json:"vpc"`
}

Basic properties of both Application and Network Target Groups. Experimental.

type CfnListener

type CfnListener interface {
	awscdk.CfnResource
	awscdk.IInspectable
	AlpnPolicy() *[]*string
	SetAlpnPolicy(val *[]*string)
	AttrListenerArn() *string
	Certificates() interface{}
	SetCertificates(val interface{})
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	CfnResourceType() *string
	CreationStack() *[]*string
	DefaultActions() interface{}
	SetDefaultActions(val interface{})
	LoadBalancerArn() *string
	SetLoadBalancerArn(val *string)
	LogicalId() *string
	Node() awscdk.ConstructNode
	Port() *float64
	SetPort(val *float64)
	Protocol() *string
	SetProtocol(val *string)
	Ref() *string
	SslPolicy() *string
	SetSslPolicy(val *string)
	Stack() awscdk.Stack
	UpdatedProperites() *map[string]interface{}
	AddDeletionOverride(path *string)
	AddDependsOn(target awscdk.CfnResource)
	AddMetadata(key *string, value interface{})
	AddOverride(path *string, value interface{})
	AddPropertyDeletionOverride(propertyPath *string)
	AddPropertyOverride(propertyPath *string, value interface{})
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	GetAtt(attributeName *string) awscdk.Reference
	GetMetadata(key *string) interface{}
	Inspect(inspector awscdk.TreeInspector)
	OnPrepare()
	OnSynthesize(session constructs.ISynthesisSession)
	OnValidate() *[]*string
	OverrideLogicalId(newLogicalId *string)
	Prepare()
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	ShouldSynthesize() *bool
	Synthesize(session awscdk.ISynthesisSession)
	ToString() *string
	Validate() *[]*string
	ValidateProperties(_properties interface{})
}

A CloudFormation `AWS::ElasticLoadBalancingV2::Listener`.

func NewCfnListener

func NewCfnListener(scope awscdk.Construct, id *string, props *CfnListenerProps) CfnListener

Create a new `AWS::ElasticLoadBalancingV2::Listener`.

type CfnListenerCertificate

type CfnListenerCertificate interface {
	awscdk.CfnResource
	awscdk.IInspectable
	Certificates() interface{}
	SetCertificates(val interface{})
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	CfnResourceType() *string
	CreationStack() *[]*string
	ListenerArn() *string
	SetListenerArn(val *string)
	LogicalId() *string
	Node() awscdk.ConstructNode
	Ref() *string
	Stack() awscdk.Stack
	UpdatedProperites() *map[string]interface{}
	AddDeletionOverride(path *string)
	AddDependsOn(target awscdk.CfnResource)
	AddMetadata(key *string, value interface{})
	AddOverride(path *string, value interface{})
	AddPropertyDeletionOverride(propertyPath *string)
	AddPropertyOverride(propertyPath *string, value interface{})
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	GetAtt(attributeName *string) awscdk.Reference
	GetMetadata(key *string) interface{}
	Inspect(inspector awscdk.TreeInspector)
	OnPrepare()
	OnSynthesize(session constructs.ISynthesisSession)
	OnValidate() *[]*string
	OverrideLogicalId(newLogicalId *string)
	Prepare()
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	ShouldSynthesize() *bool
	Synthesize(session awscdk.ISynthesisSession)
	ToString() *string
	Validate() *[]*string
	ValidateProperties(_properties interface{})
}

A CloudFormation `AWS::ElasticLoadBalancingV2::ListenerCertificate`.

func NewCfnListenerCertificate

func NewCfnListenerCertificate(scope awscdk.Construct, id *string, props *CfnListenerCertificateProps) CfnListenerCertificate

Create a new `AWS::ElasticLoadBalancingV2::ListenerCertificate`.

type CfnListenerCertificateProps

type CfnListenerCertificateProps struct {
	// `AWS::ElasticLoadBalancingV2::ListenerCertificate.Certificates`.
	Certificates interface{} `json:"certificates"`
	// `AWS::ElasticLoadBalancingV2::ListenerCertificate.ListenerArn`.
	ListenerArn *string `json:"listenerArn"`
}

Properties for defining a `AWS::ElasticLoadBalancingV2::ListenerCertificate`.

type CfnListenerCertificate_CertificateProperty

type CfnListenerCertificate_CertificateProperty struct {
	// `CfnListenerCertificate.CertificateProperty.CertificateArn`.
	CertificateArn *string `json:"certificateArn"`
}

type CfnListenerProps

type CfnListenerProps struct {
	// `AWS::ElasticLoadBalancingV2::Listener.DefaultActions`.
	DefaultActions interface{} `json:"defaultActions"`
	// `AWS::ElasticLoadBalancingV2::Listener.LoadBalancerArn`.
	LoadBalancerArn *string `json:"loadBalancerArn"`
	// `AWS::ElasticLoadBalancingV2::Listener.AlpnPolicy`.
	AlpnPolicy *[]*string `json:"alpnPolicy"`
	// `AWS::ElasticLoadBalancingV2::Listener.Certificates`.
	Certificates interface{} `json:"certificates"`
	// `AWS::ElasticLoadBalancingV2::Listener.Port`.
	Port *float64 `json:"port"`
	// `AWS::ElasticLoadBalancingV2::Listener.Protocol`.
	Protocol *string `json:"protocol"`
	// `AWS::ElasticLoadBalancingV2::Listener.SslPolicy`.
	SslPolicy *string `json:"sslPolicy"`
}

Properties for defining a `AWS::ElasticLoadBalancingV2::Listener`.

type CfnListenerRule

type CfnListenerRule interface {
	awscdk.CfnResource
	awscdk.IInspectable
	Actions() interface{}
	SetActions(val interface{})
	AttrIsDefault() awscdk.IResolvable
	AttrRuleArn() *string
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	CfnResourceType() *string
	Conditions() interface{}
	SetConditions(val interface{})
	CreationStack() *[]*string
	ListenerArn() *string
	SetListenerArn(val *string)
	LogicalId() *string
	Node() awscdk.ConstructNode
	Priority() *float64
	SetPriority(val *float64)
	Ref() *string
	Stack() awscdk.Stack
	UpdatedProperites() *map[string]interface{}
	AddDeletionOverride(path *string)
	AddDependsOn(target awscdk.CfnResource)
	AddMetadata(key *string, value interface{})
	AddOverride(path *string, value interface{})
	AddPropertyDeletionOverride(propertyPath *string)
	AddPropertyOverride(propertyPath *string, value interface{})
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	GetAtt(attributeName *string) awscdk.Reference
	GetMetadata(key *string) interface{}
	Inspect(inspector awscdk.TreeInspector)
	OnPrepare()
	OnSynthesize(session constructs.ISynthesisSession)
	OnValidate() *[]*string
	OverrideLogicalId(newLogicalId *string)
	Prepare()
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	ShouldSynthesize() *bool
	Synthesize(session awscdk.ISynthesisSession)
	ToString() *string
	Validate() *[]*string
	ValidateProperties(_properties interface{})
}

A CloudFormation `AWS::ElasticLoadBalancingV2::ListenerRule`.

func NewCfnListenerRule

func NewCfnListenerRule(scope awscdk.Construct, id *string, props *CfnListenerRuleProps) CfnListenerRule

Create a new `AWS::ElasticLoadBalancingV2::ListenerRule`.

type CfnListenerRuleProps

type CfnListenerRuleProps struct {
	// `AWS::ElasticLoadBalancingV2::ListenerRule.Actions`.
	Actions interface{} `json:"actions"`
	// `AWS::ElasticLoadBalancingV2::ListenerRule.Conditions`.
	Conditions interface{} `json:"conditions"`
	// `AWS::ElasticLoadBalancingV2::ListenerRule.ListenerArn`.
	ListenerArn *string `json:"listenerArn"`
	// `AWS::ElasticLoadBalancingV2::ListenerRule.Priority`.
	Priority *float64 `json:"priority"`
}

Properties for defining a `AWS::ElasticLoadBalancingV2::ListenerRule`.

type CfnListenerRule_ActionProperty

type CfnListenerRule_ActionProperty struct {
	// `CfnListenerRule.ActionProperty.Type`.
	Type *string `json:"type"`
	// `CfnListenerRule.ActionProperty.AuthenticateCognitoConfig`.
	AuthenticateCognitoConfig interface{} `json:"authenticateCognitoConfig"`
	// `CfnListenerRule.ActionProperty.AuthenticateOidcConfig`.
	AuthenticateOidcConfig interface{} `json:"authenticateOidcConfig"`
	// `CfnListenerRule.ActionProperty.FixedResponseConfig`.
	FixedResponseConfig interface{} `json:"fixedResponseConfig"`
	// `CfnListenerRule.ActionProperty.ForwardConfig`.
	ForwardConfig interface{} `json:"forwardConfig"`
	// `CfnListenerRule.ActionProperty.Order`.
	Order *float64 `json:"order"`
	// `CfnListenerRule.ActionProperty.RedirectConfig`.
	RedirectConfig interface{} `json:"redirectConfig"`
	// `CfnListenerRule.ActionProperty.TargetGroupArn`.
	TargetGroupArn *string `json:"targetGroupArn"`
}

type CfnListenerRule_AuthenticateCognitoConfigProperty

type CfnListenerRule_AuthenticateCognitoConfigProperty struct {
	// `CfnListenerRule.AuthenticateCognitoConfigProperty.UserPoolArn`.
	UserPoolArn *string `json:"userPoolArn"`
	// `CfnListenerRule.AuthenticateCognitoConfigProperty.UserPoolClientId`.
	UserPoolClientId *string `json:"userPoolClientId"`
	// `CfnListenerRule.AuthenticateCognitoConfigProperty.UserPoolDomain`.
	UserPoolDomain *string `json:"userPoolDomain"`
	// `CfnListenerRule.AuthenticateCognitoConfigProperty.AuthenticationRequestExtraParams`.
	AuthenticationRequestExtraParams interface{} `json:"authenticationRequestExtraParams"`
	// `CfnListenerRule.AuthenticateCognitoConfigProperty.OnUnauthenticatedRequest`.
	OnUnauthenticatedRequest *string `json:"onUnauthenticatedRequest"`
	// `CfnListenerRule.AuthenticateCognitoConfigProperty.Scope`.
	Scope *string `json:"scope"`
	// `CfnListenerRule.AuthenticateCognitoConfigProperty.SessionCookieName`.
	SessionCookieName *string `json:"sessionCookieName"`
	// `CfnListenerRule.AuthenticateCognitoConfigProperty.SessionTimeout`.
	SessionTimeout *float64 `json:"sessionTimeout"`
}

type CfnListenerRule_AuthenticateOidcConfigProperty

type CfnListenerRule_AuthenticateOidcConfigProperty struct {
	// `CfnListenerRule.AuthenticateOidcConfigProperty.AuthorizationEndpoint`.
	AuthorizationEndpoint *string `json:"authorizationEndpoint"`
	// `CfnListenerRule.AuthenticateOidcConfigProperty.ClientId`.
	ClientId *string `json:"clientId"`
	// `CfnListenerRule.AuthenticateOidcConfigProperty.ClientSecret`.
	ClientSecret *string `json:"clientSecret"`
	// `CfnListenerRule.AuthenticateOidcConfigProperty.Issuer`.
	Issuer *string `json:"issuer"`
	// `CfnListenerRule.AuthenticateOidcConfigProperty.TokenEndpoint`.
	TokenEndpoint *string `json:"tokenEndpoint"`
	// `CfnListenerRule.AuthenticateOidcConfigProperty.UserInfoEndpoint`.
	UserInfoEndpoint *string `json:"userInfoEndpoint"`
	// `CfnListenerRule.AuthenticateOidcConfigProperty.AuthenticationRequestExtraParams`.
	AuthenticationRequestExtraParams interface{} `json:"authenticationRequestExtraParams"`
	// `CfnListenerRule.AuthenticateOidcConfigProperty.OnUnauthenticatedRequest`.
	OnUnauthenticatedRequest *string `json:"onUnauthenticatedRequest"`
	// `CfnListenerRule.AuthenticateOidcConfigProperty.Scope`.
	Scope *string `json:"scope"`
	// `CfnListenerRule.AuthenticateOidcConfigProperty.SessionCookieName`.
	SessionCookieName *string `json:"sessionCookieName"`
	// `CfnListenerRule.AuthenticateOidcConfigProperty.SessionTimeout`.
	SessionTimeout *float64 `json:"sessionTimeout"`
	// `CfnListenerRule.AuthenticateOidcConfigProperty.UseExistingClientSecret`.
	UseExistingClientSecret interface{} `json:"useExistingClientSecret"`
}

type CfnListenerRule_FixedResponseConfigProperty

type CfnListenerRule_FixedResponseConfigProperty struct {
	// `CfnListenerRule.FixedResponseConfigProperty.StatusCode`.
	StatusCode *string `json:"statusCode"`
	// `CfnListenerRule.FixedResponseConfigProperty.ContentType`.
	ContentType *string `json:"contentType"`
	// `CfnListenerRule.FixedResponseConfigProperty.MessageBody`.
	MessageBody *string `json:"messageBody"`
}

type CfnListenerRule_ForwardConfigProperty

type CfnListenerRule_ForwardConfigProperty struct {
	// `CfnListenerRule.ForwardConfigProperty.TargetGroups`.
	TargetGroups interface{} `json:"targetGroups"`
	// `CfnListenerRule.ForwardConfigProperty.TargetGroupStickinessConfig`.
	TargetGroupStickinessConfig interface{} `json:"targetGroupStickinessConfig"`
}

type CfnListenerRule_HostHeaderConfigProperty

type CfnListenerRule_HostHeaderConfigProperty struct {
	// `CfnListenerRule.HostHeaderConfigProperty.Values`.
	Values *[]*string `json:"values"`
}

type CfnListenerRule_HttpHeaderConfigProperty

type CfnListenerRule_HttpHeaderConfigProperty struct {
	// `CfnListenerRule.HttpHeaderConfigProperty.HttpHeaderName`.
	HttpHeaderName *string `json:"httpHeaderName"`
	// `CfnListenerRule.HttpHeaderConfigProperty.Values`.
	Values *[]*string `json:"values"`
}

type CfnListenerRule_HttpRequestMethodConfigProperty

type CfnListenerRule_HttpRequestMethodConfigProperty struct {
	// `CfnListenerRule.HttpRequestMethodConfigProperty.Values`.
	Values *[]*string `json:"values"`
}

type CfnListenerRule_PathPatternConfigProperty

type CfnListenerRule_PathPatternConfigProperty struct {
	// `CfnListenerRule.PathPatternConfigProperty.Values`.
	Values *[]*string `json:"values"`
}

type CfnListenerRule_QueryStringConfigProperty

type CfnListenerRule_QueryStringConfigProperty struct {
	// `CfnListenerRule.QueryStringConfigProperty.Values`.
	Values interface{} `json:"values"`
}

type CfnListenerRule_QueryStringKeyValueProperty

type CfnListenerRule_QueryStringKeyValueProperty struct {
	// `CfnListenerRule.QueryStringKeyValueProperty.Key`.
	Key *string `json:"key"`
	// `CfnListenerRule.QueryStringKeyValueProperty.Value`.
	Value *string `json:"value"`
}

type CfnListenerRule_RedirectConfigProperty

type CfnListenerRule_RedirectConfigProperty struct {
	// `CfnListenerRule.RedirectConfigProperty.StatusCode`.
	StatusCode *string `json:"statusCode"`
	// `CfnListenerRule.RedirectConfigProperty.Host`.
	Host *string `json:"host"`
	// `CfnListenerRule.RedirectConfigProperty.Path`.
	Path *string `json:"path"`
	// `CfnListenerRule.RedirectConfigProperty.Port`.
	Port *string `json:"port"`
	// `CfnListenerRule.RedirectConfigProperty.Protocol`.
	Protocol *string `json:"protocol"`
	// `CfnListenerRule.RedirectConfigProperty.Query`.
	Query *string `json:"query"`
}

type CfnListenerRule_RuleConditionProperty

type CfnListenerRule_RuleConditionProperty struct {
	// `CfnListenerRule.RuleConditionProperty.Field`.
	Field *string `json:"field"`
	// `CfnListenerRule.RuleConditionProperty.HostHeaderConfig`.
	HostHeaderConfig interface{} `json:"hostHeaderConfig"`
	// `CfnListenerRule.RuleConditionProperty.HttpHeaderConfig`.
	HttpHeaderConfig interface{} `json:"httpHeaderConfig"`
	// `CfnListenerRule.RuleConditionProperty.HttpRequestMethodConfig`.
	HttpRequestMethodConfig interface{} `json:"httpRequestMethodConfig"`
	// `CfnListenerRule.RuleConditionProperty.PathPatternConfig`.
	PathPatternConfig interface{} `json:"pathPatternConfig"`
	// `CfnListenerRule.RuleConditionProperty.QueryStringConfig`.
	QueryStringConfig interface{} `json:"queryStringConfig"`
	// `CfnListenerRule.RuleConditionProperty.SourceIpConfig`.
	SourceIpConfig interface{} `json:"sourceIpConfig"`
	// `CfnListenerRule.RuleConditionProperty.Values`.
	Values *[]*string `json:"values"`
}

type CfnListenerRule_SourceIpConfigProperty

type CfnListenerRule_SourceIpConfigProperty struct {
	// `CfnListenerRule.SourceIpConfigProperty.Values`.
	Values *[]*string `json:"values"`
}

type CfnListenerRule_TargetGroupStickinessConfigProperty

type CfnListenerRule_TargetGroupStickinessConfigProperty struct {
	// `CfnListenerRule.TargetGroupStickinessConfigProperty.DurationSeconds`.
	DurationSeconds *float64 `json:"durationSeconds"`
	// `CfnListenerRule.TargetGroupStickinessConfigProperty.Enabled`.
	Enabled interface{} `json:"enabled"`
}

type CfnListenerRule_TargetGroupTupleProperty

type CfnListenerRule_TargetGroupTupleProperty struct {
	// `CfnListenerRule.TargetGroupTupleProperty.TargetGroupArn`.
	TargetGroupArn *string `json:"targetGroupArn"`
	// `CfnListenerRule.TargetGroupTupleProperty.Weight`.
	Weight *float64 `json:"weight"`
}

type CfnListener_ActionProperty

type CfnListener_ActionProperty struct {
	// `CfnListener.ActionProperty.Type`.
	Type *string `json:"type"`
	// `CfnListener.ActionProperty.AuthenticateCognitoConfig`.
	AuthenticateCognitoConfig interface{} `json:"authenticateCognitoConfig"`
	// `CfnListener.ActionProperty.AuthenticateOidcConfig`.
	AuthenticateOidcConfig interface{} `json:"authenticateOidcConfig"`
	// `CfnListener.ActionProperty.FixedResponseConfig`.
	FixedResponseConfig interface{} `json:"fixedResponseConfig"`
	// `CfnListener.ActionProperty.ForwardConfig`.
	ForwardConfig interface{} `json:"forwardConfig"`
	// `CfnListener.ActionProperty.Order`.
	Order *float64 `json:"order"`
	// `CfnListener.ActionProperty.RedirectConfig`.
	RedirectConfig interface{} `json:"redirectConfig"`
	// `CfnListener.ActionProperty.TargetGroupArn`.
	TargetGroupArn *string `json:"targetGroupArn"`
}

type CfnListener_AuthenticateCognitoConfigProperty

type CfnListener_AuthenticateCognitoConfigProperty struct {
	// `CfnListener.AuthenticateCognitoConfigProperty.UserPoolArn`.
	UserPoolArn *string `json:"userPoolArn"`
	// `CfnListener.AuthenticateCognitoConfigProperty.UserPoolClientId`.
	UserPoolClientId *string `json:"userPoolClientId"`
	// `CfnListener.AuthenticateCognitoConfigProperty.UserPoolDomain`.
	UserPoolDomain *string `json:"userPoolDomain"`
	// `CfnListener.AuthenticateCognitoConfigProperty.AuthenticationRequestExtraParams`.
	AuthenticationRequestExtraParams interface{} `json:"authenticationRequestExtraParams"`
	// `CfnListener.AuthenticateCognitoConfigProperty.OnUnauthenticatedRequest`.
	OnUnauthenticatedRequest *string `json:"onUnauthenticatedRequest"`
	// `CfnListener.AuthenticateCognitoConfigProperty.Scope`.
	Scope *string `json:"scope"`
	// `CfnListener.AuthenticateCognitoConfigProperty.SessionCookieName`.
	SessionCookieName *string `json:"sessionCookieName"`
	// `CfnListener.AuthenticateCognitoConfigProperty.SessionTimeout`.
	SessionTimeout *string `json:"sessionTimeout"`
}

type CfnListener_AuthenticateOidcConfigProperty

type CfnListener_AuthenticateOidcConfigProperty struct {
	// `CfnListener.AuthenticateOidcConfigProperty.AuthorizationEndpoint`.
	AuthorizationEndpoint *string `json:"authorizationEndpoint"`
	// `CfnListener.AuthenticateOidcConfigProperty.ClientId`.
	ClientId *string `json:"clientId"`
	// `CfnListener.AuthenticateOidcConfigProperty.ClientSecret`.
	ClientSecret *string `json:"clientSecret"`
	// `CfnListener.AuthenticateOidcConfigProperty.Issuer`.
	Issuer *string `json:"issuer"`
	// `CfnListener.AuthenticateOidcConfigProperty.TokenEndpoint`.
	TokenEndpoint *string `json:"tokenEndpoint"`
	// `CfnListener.AuthenticateOidcConfigProperty.UserInfoEndpoint`.
	UserInfoEndpoint *string `json:"userInfoEndpoint"`
	// `CfnListener.AuthenticateOidcConfigProperty.AuthenticationRequestExtraParams`.
	AuthenticationRequestExtraParams interface{} `json:"authenticationRequestExtraParams"`
	// `CfnListener.AuthenticateOidcConfigProperty.OnUnauthenticatedRequest`.
	OnUnauthenticatedRequest *string `json:"onUnauthenticatedRequest"`
	// `CfnListener.AuthenticateOidcConfigProperty.Scope`.
	Scope *string `json:"scope"`
	// `CfnListener.AuthenticateOidcConfigProperty.SessionCookieName`.
	SessionCookieName *string `json:"sessionCookieName"`
	// `CfnListener.AuthenticateOidcConfigProperty.SessionTimeout`.
	SessionTimeout *string `json:"sessionTimeout"`
}

type CfnListener_CertificateProperty

type CfnListener_CertificateProperty struct {
	// `CfnListener.CertificateProperty.CertificateArn`.
	CertificateArn *string `json:"certificateArn"`
}

type CfnListener_FixedResponseConfigProperty

type CfnListener_FixedResponseConfigProperty struct {
	// `CfnListener.FixedResponseConfigProperty.StatusCode`.
	StatusCode *string `json:"statusCode"`
	// `CfnListener.FixedResponseConfigProperty.ContentType`.
	ContentType *string `json:"contentType"`
	// `CfnListener.FixedResponseConfigProperty.MessageBody`.
	MessageBody *string `json:"messageBody"`
}

type CfnListener_ForwardConfigProperty

type CfnListener_ForwardConfigProperty struct {
	// `CfnListener.ForwardConfigProperty.TargetGroups`.
	TargetGroups interface{} `json:"targetGroups"`
	// `CfnListener.ForwardConfigProperty.TargetGroupStickinessConfig`.
	TargetGroupStickinessConfig interface{} `json:"targetGroupStickinessConfig"`
}

type CfnListener_RedirectConfigProperty

type CfnListener_RedirectConfigProperty struct {
	// `CfnListener.RedirectConfigProperty.StatusCode`.
	StatusCode *string `json:"statusCode"`
	// `CfnListener.RedirectConfigProperty.Host`.
	Host *string `json:"host"`
	// `CfnListener.RedirectConfigProperty.Path`.
	Path *string `json:"path"`
	// `CfnListener.RedirectConfigProperty.Port`.
	Port *string `json:"port"`
	// `CfnListener.RedirectConfigProperty.Protocol`.
	Protocol *string `json:"protocol"`
	// `CfnListener.RedirectConfigProperty.Query`.
	Query *string `json:"query"`
}

type CfnListener_TargetGroupStickinessConfigProperty

type CfnListener_TargetGroupStickinessConfigProperty struct {
	// `CfnListener.TargetGroupStickinessConfigProperty.DurationSeconds`.
	DurationSeconds *float64 `json:"durationSeconds"`
	// `CfnListener.TargetGroupStickinessConfigProperty.Enabled`.
	Enabled interface{} `json:"enabled"`
}

type CfnListener_TargetGroupTupleProperty

type CfnListener_TargetGroupTupleProperty struct {
	// `CfnListener.TargetGroupTupleProperty.TargetGroupArn`.
	TargetGroupArn *string `json:"targetGroupArn"`
	// `CfnListener.TargetGroupTupleProperty.Weight`.
	Weight *float64 `json:"weight"`
}

type CfnLoadBalancer

type CfnLoadBalancer interface {
	awscdk.CfnResource
	awscdk.IInspectable
	AttrCanonicalHostedZoneId() *string
	AttrDnsName() *string
	AttrLoadBalancerFullName() *string
	AttrLoadBalancerName() *string
	AttrSecurityGroups() *[]*string
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	CfnResourceType() *string
	CreationStack() *[]*string
	IpAddressType() *string
	SetIpAddressType(val *string)
	LoadBalancerAttributes() interface{}
	SetLoadBalancerAttributes(val interface{})
	LogicalId() *string
	Name() *string
	SetName(val *string)
	Node() awscdk.ConstructNode
	Ref() *string
	Scheme() *string
	SetScheme(val *string)
	SecurityGroups() *[]*string
	SetSecurityGroups(val *[]*string)
	Stack() awscdk.Stack
	SubnetMappings() interface{}
	SetSubnetMappings(val interface{})
	Subnets() *[]*string
	SetSubnets(val *[]*string)
	Tags() awscdk.TagManager
	Type() *string
	SetType(val *string)
	UpdatedProperites() *map[string]interface{}
	AddDeletionOverride(path *string)
	AddDependsOn(target awscdk.CfnResource)
	AddMetadata(key *string, value interface{})
	AddOverride(path *string, value interface{})
	AddPropertyDeletionOverride(propertyPath *string)
	AddPropertyOverride(propertyPath *string, value interface{})
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	GetAtt(attributeName *string) awscdk.Reference
	GetMetadata(key *string) interface{}
	Inspect(inspector awscdk.TreeInspector)
	OnPrepare()
	OnSynthesize(session constructs.ISynthesisSession)
	OnValidate() *[]*string
	OverrideLogicalId(newLogicalId *string)
	Prepare()
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	ShouldSynthesize() *bool
	Synthesize(session awscdk.ISynthesisSession)
	ToString() *string
	Validate() *[]*string
	ValidateProperties(_properties interface{})
}

A CloudFormation `AWS::ElasticLoadBalancingV2::LoadBalancer`.

func NewCfnLoadBalancer

func NewCfnLoadBalancer(scope awscdk.Construct, id *string, props *CfnLoadBalancerProps) CfnLoadBalancer

Create a new `AWS::ElasticLoadBalancingV2::LoadBalancer`.

type CfnLoadBalancerProps

type CfnLoadBalancerProps struct {
	// `AWS::ElasticLoadBalancingV2::LoadBalancer.IpAddressType`.
	IpAddressType *string `json:"ipAddressType"`
	// `AWS::ElasticLoadBalancingV2::LoadBalancer.LoadBalancerAttributes`.
	LoadBalancerAttributes interface{} `json:"loadBalancerAttributes"`
	// `AWS::ElasticLoadBalancingV2::LoadBalancer.Name`.
	Name *string `json:"name"`
	// `AWS::ElasticLoadBalancingV2::LoadBalancer.Scheme`.
	Scheme *string `json:"scheme"`
	// `AWS::ElasticLoadBalancingV2::LoadBalancer.SecurityGroups`.
	SecurityGroups *[]*string `json:"securityGroups"`
	// `AWS::ElasticLoadBalancingV2::LoadBalancer.SubnetMappings`.
	SubnetMappings interface{} `json:"subnetMappings"`
	// `AWS::ElasticLoadBalancingV2::LoadBalancer.Subnets`.
	Subnets *[]*string `json:"subnets"`
	// `AWS::ElasticLoadBalancingV2::LoadBalancer.Tags`.
	Tags *[]*awscdk.CfnTag `json:"tags"`
	// `AWS::ElasticLoadBalancingV2::LoadBalancer.Type`.
	Type *string `json:"type"`
}

Properties for defining a `AWS::ElasticLoadBalancingV2::LoadBalancer`.

type CfnLoadBalancer_LoadBalancerAttributeProperty

type CfnLoadBalancer_LoadBalancerAttributeProperty struct {
	// `CfnLoadBalancer.LoadBalancerAttributeProperty.Key`.
	Key *string `json:"key"`
	// `CfnLoadBalancer.LoadBalancerAttributeProperty.Value`.
	Value *string `json:"value"`
}

type CfnLoadBalancer_SubnetMappingProperty

type CfnLoadBalancer_SubnetMappingProperty struct {
	// `CfnLoadBalancer.SubnetMappingProperty.SubnetId`.
	SubnetId *string `json:"subnetId"`
	// `CfnLoadBalancer.SubnetMappingProperty.AllocationId`.
	AllocationId *string `json:"allocationId"`
	// `CfnLoadBalancer.SubnetMappingProperty.IPv6Address`.
	IPv6Address *string `json:"iPv6Address"`
	// `CfnLoadBalancer.SubnetMappingProperty.PrivateIPv4Address`.
	PrivateIPv4Address *string `json:"privateIPv4Address"`
}

type CfnTargetGroup

type CfnTargetGroup interface {
	awscdk.CfnResource
	awscdk.IInspectable
	AttrLoadBalancerArns() *[]*string
	AttrTargetGroupFullName() *string
	AttrTargetGroupName() *string
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	CfnResourceType() *string
	CreationStack() *[]*string
	HealthCheckEnabled() interface{}
	SetHealthCheckEnabled(val interface{})
	HealthCheckIntervalSeconds() *float64
	SetHealthCheckIntervalSeconds(val *float64)
	HealthCheckPath() *string
	SetHealthCheckPath(val *string)
	HealthCheckPort() *string
	SetHealthCheckPort(val *string)
	HealthCheckProtocol() *string
	SetHealthCheckProtocol(val *string)
	HealthCheckTimeoutSeconds() *float64
	SetHealthCheckTimeoutSeconds(val *float64)
	HealthyThresholdCount() *float64
	SetHealthyThresholdCount(val *float64)
	LogicalId() *string
	Matcher() interface{}
	SetMatcher(val interface{})
	Name() *string
	SetName(val *string)
	Node() awscdk.ConstructNode
	Port() *float64
	SetPort(val *float64)
	Protocol() *string
	SetProtocol(val *string)
	ProtocolVersion() *string
	SetProtocolVersion(val *string)
	Ref() *string
	Stack() awscdk.Stack
	Tags() awscdk.TagManager
	TargetGroupAttributes() interface{}
	SetTargetGroupAttributes(val interface{})
	Targets() interface{}
	SetTargets(val interface{})
	TargetType() *string
	SetTargetType(val *string)
	UnhealthyThresholdCount() *float64
	SetUnhealthyThresholdCount(val *float64)
	UpdatedProperites() *map[string]interface{}
	VpcId() *string
	SetVpcId(val *string)
	AddDeletionOverride(path *string)
	AddDependsOn(target awscdk.CfnResource)
	AddMetadata(key *string, value interface{})
	AddOverride(path *string, value interface{})
	AddPropertyDeletionOverride(propertyPath *string)
	AddPropertyOverride(propertyPath *string, value interface{})
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	GetAtt(attributeName *string) awscdk.Reference
	GetMetadata(key *string) interface{}
	Inspect(inspector awscdk.TreeInspector)
	OnPrepare()
	OnSynthesize(session constructs.ISynthesisSession)
	OnValidate() *[]*string
	OverrideLogicalId(newLogicalId *string)
	Prepare()
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	ShouldSynthesize() *bool
	Synthesize(session awscdk.ISynthesisSession)
	ToString() *string
	Validate() *[]*string
	ValidateProperties(_properties interface{})
}

A CloudFormation `AWS::ElasticLoadBalancingV2::TargetGroup`.

func NewCfnTargetGroup

func NewCfnTargetGroup(scope awscdk.Construct, id *string, props *CfnTargetGroupProps) CfnTargetGroup

Create a new `AWS::ElasticLoadBalancingV2::TargetGroup`.

type CfnTargetGroupProps

type CfnTargetGroupProps struct {
	// `AWS::ElasticLoadBalancingV2::TargetGroup.HealthCheckEnabled`.
	HealthCheckEnabled interface{} `json:"healthCheckEnabled"`
	// `AWS::ElasticLoadBalancingV2::TargetGroup.HealthCheckIntervalSeconds`.
	HealthCheckIntervalSeconds *float64 `json:"healthCheckIntervalSeconds"`
	// `AWS::ElasticLoadBalancingV2::TargetGroup.HealthCheckPath`.
	HealthCheckPath *string `json:"healthCheckPath"`
	// `AWS::ElasticLoadBalancingV2::TargetGroup.HealthCheckPort`.
	HealthCheckPort *string `json:"healthCheckPort"`
	// `AWS::ElasticLoadBalancingV2::TargetGroup.HealthCheckProtocol`.
	HealthCheckProtocol *string `json:"healthCheckProtocol"`
	// `AWS::ElasticLoadBalancingV2::TargetGroup.HealthCheckTimeoutSeconds`.
	HealthCheckTimeoutSeconds *float64 `json:"healthCheckTimeoutSeconds"`
	// `AWS::ElasticLoadBalancingV2::TargetGroup.HealthyThresholdCount`.
	HealthyThresholdCount *float64 `json:"healthyThresholdCount"`
	// `AWS::ElasticLoadBalancingV2::TargetGroup.Matcher`.
	Matcher interface{} `json:"matcher"`
	// `AWS::ElasticLoadBalancingV2::TargetGroup.Name`.
	Name *string `json:"name"`
	// `AWS::ElasticLoadBalancingV2::TargetGroup.Port`.
	Port *float64 `json:"port"`
	// `AWS::ElasticLoadBalancingV2::TargetGroup.Protocol`.
	Protocol *string `json:"protocol"`
	// `AWS::ElasticLoadBalancingV2::TargetGroup.ProtocolVersion`.
	ProtocolVersion *string `json:"protocolVersion"`
	// `AWS::ElasticLoadBalancingV2::TargetGroup.Tags`.
	Tags *[]*awscdk.CfnTag `json:"tags"`
	// `AWS::ElasticLoadBalancingV2::TargetGroup.TargetGroupAttributes`.
	TargetGroupAttributes interface{} `json:"targetGroupAttributes"`
	// `AWS::ElasticLoadBalancingV2::TargetGroup.Targets`.
	Targets interface{} `json:"targets"`
	// `AWS::ElasticLoadBalancingV2::TargetGroup.TargetType`.
	TargetType *string `json:"targetType"`
	// `AWS::ElasticLoadBalancingV2::TargetGroup.UnhealthyThresholdCount`.
	UnhealthyThresholdCount *float64 `json:"unhealthyThresholdCount"`
	// `AWS::ElasticLoadBalancingV2::TargetGroup.VpcId`.
	VpcId *string `json:"vpcId"`
}

Properties for defining a `AWS::ElasticLoadBalancingV2::TargetGroup`.

type CfnTargetGroup_MatcherProperty

type CfnTargetGroup_MatcherProperty struct {
	// `CfnTargetGroup.MatcherProperty.GrpcCode`.
	GrpcCode *string `json:"grpcCode"`
	// `CfnTargetGroup.MatcherProperty.HttpCode`.
	HttpCode *string `json:"httpCode"`
}

type CfnTargetGroup_TargetDescriptionProperty

type CfnTargetGroup_TargetDescriptionProperty struct {
	// `CfnTargetGroup.TargetDescriptionProperty.Id`.
	Id *string `json:"id"`
	// `CfnTargetGroup.TargetDescriptionProperty.AvailabilityZone`.
	AvailabilityZone *string `json:"availabilityZone"`
	// `CfnTargetGroup.TargetDescriptionProperty.Port`.
	Port *float64 `json:"port"`
}

type CfnTargetGroup_TargetGroupAttributeProperty

type CfnTargetGroup_TargetGroupAttributeProperty struct {
	// `CfnTargetGroup.TargetGroupAttributeProperty.Key`.
	Key *string `json:"key"`
	// `CfnTargetGroup.TargetGroupAttributeProperty.Value`.
	Value *string `json:"value"`
}

type ContentType

type ContentType string

The content type for a fixed response. Deprecated: superceded by `FixedResponseOptions`.

const (
	ContentType_TEXT_PLAIN             ContentType = "TEXT_PLAIN"
	ContentType_TEXT_CSS               ContentType = "TEXT_CSS"
	ContentType_TEXT_HTML              ContentType = "TEXT_HTML"
	ContentType_APPLICATION_JAVASCRIPT ContentType = "APPLICATION_JAVASCRIPT"
	ContentType_APPLICATION_JSON       ContentType = "APPLICATION_JSON"
)

type FixedResponse

type FixedResponse struct {
	// The HTTP response code (2XX, 4XX or 5XX).
	// Deprecated: superceded by `ListenerAction.fixedResponse()`.
	StatusCode *string `json:"statusCode"`
	// The content type.
	// Deprecated: superceded by `ListenerAction.fixedResponse()`.
	ContentType ContentType `json:"contentType"`
	// The message.
	// Deprecated: superceded by `ListenerAction.fixedResponse()`.
	MessageBody *string `json:"messageBody"`
}

A fixed response. Deprecated: superceded by `ListenerAction.fixedResponse()`.

type FixedResponseOptions

type FixedResponseOptions struct {
	// Content Type of the response.
	//
	// Valid Values: text/plain | text/css | text/html | application/javascript | application/json
	// Experimental.
	ContentType *string `json:"contentType"`
	// The response body.
	// Experimental.
	MessageBody *string `json:"messageBody"`
}

Options for `ListenerAction.fixedResponse()`. Experimental.

type ForwardOptions

type ForwardOptions struct {
	// For how long clients should be directed to the same target group.
	//
	// Range between 1 second and 7 days.
	// Experimental.
	StickinessDuration awscdk.Duration `json:"stickinessDuration"`
}

Options for `ListenerAction.forward()`. Experimental.

type HealthCheck

type HealthCheck struct {
	// Indicates whether health checks are enabled.
	//
	// If the target type is lambda,
	// health checks are disabled by default but can be enabled. If the target type
	// is instance or ip, health checks are always enabled and cannot be disabled.
	// Experimental.
	Enabled *bool `json:"enabled"`
	// GRPC code to use when checking for a successful response from a target.
	//
	// You can specify values between 0 and 99. You can specify multiple values
	// (for example, "0,1") or a range of values (for example, "0-5").
	// Experimental.
	HealthyGrpcCodes *string `json:"healthyGrpcCodes"`
	// HTTP code to use when checking for a successful response from a target.
	//
	// For Application Load Balancers, you can specify values between 200 and
	// 499, and the default value is 200. You can specify multiple values (for
	// example, "200,202") or a range of values (for example, "200-299").
	// Experimental.
	HealthyHttpCodes *string `json:"healthyHttpCodes"`
	// The number of consecutive health checks successes required before considering an unhealthy target healthy.
	//
	// For Application Load Balancers, the default is 5. For Network Load Balancers, the default is 3.
	// Experimental.
	HealthyThresholdCount *float64 `json:"healthyThresholdCount"`
	// The approximate number of seconds between health checks for an individual target.
	// Experimental.
	Interval awscdk.Duration `json:"interval"`
	// The ping path destination where Elastic Load Balancing sends health check requests.
	// Experimental.
	Path *string `json:"path"`
	// The port that the load balancer uses when performing health checks on the targets.
	// Experimental.
	Port *string `json:"port"`
	// The protocol the load balancer uses when performing health checks on targets.
	//
	// The TCP protocol is supported for health checks only if the protocol of the target group is TCP, TLS, UDP, or TCP_UDP.
	// The TLS, UDP, and TCP_UDP protocols are not supported for health checks.
	// Experimental.
	Protocol Protocol `json:"protocol"`
	// The amount of time, in seconds, during which no response from a target means a failed health check.
	//
	// For Application Load Balancers, the range is 2-60 seconds and the
	// default is 5 seconds. For Network Load Balancers, this is 10 seconds for
	// TCP and HTTPS health checks and 6 seconds for HTTP health checks.
	// Experimental.
	Timeout awscdk.Duration `json:"timeout"`
	// The number of consecutive health check failures required before considering a target unhealthy.
	//
	// For Application Load Balancers, the default is 2. For Network Load
	// Balancers, this value must be the same as the healthy threshold count.
	// Experimental.
	UnhealthyThresholdCount *float64 `json:"unhealthyThresholdCount"`
}

Properties for configuring a health check. Experimental.

type HttpCodeElb

type HttpCodeElb string

Count of HTTP status originating from the load balancer.

This count does not include any response codes generated by the targets. Experimental.

const (
	HttpCodeElb_ELB_3XX_COUNT HttpCodeElb = "ELB_3XX_COUNT"
	HttpCodeElb_ELB_4XX_COUNT HttpCodeElb = "ELB_4XX_COUNT"
	HttpCodeElb_ELB_5XX_COUNT HttpCodeElb = "ELB_5XX_COUNT"
)

type HttpCodeTarget

type HttpCodeTarget string

Count of HTTP status originating from the targets. Experimental.

const (
	HttpCodeTarget_TARGET_2XX_COUNT HttpCodeTarget = "TARGET_2XX_COUNT"
	HttpCodeTarget_TARGET_3XX_COUNT HttpCodeTarget = "TARGET_3XX_COUNT"
	HttpCodeTarget_TARGET_4XX_COUNT HttpCodeTarget = "TARGET_4XX_COUNT"
	HttpCodeTarget_TARGET_5XX_COUNT HttpCodeTarget = "TARGET_5XX_COUNT"
)

type IApplicationListener

type IApplicationListener interface {
	awsec2.IConnectable
	awscdk.IResource
	// Add one or more certificates to this listener.
	// Deprecated: use `addCertificates()`
	AddCertificateArns(id *string, arns *[]*string)
	// Add one or more certificates to this listener.
	// Experimental.
	AddCertificates(id *string, certificates *[]IListenerCertificate)
	// Load balance incoming requests to the given target groups.
	//
	// It's possible to add conditions to the TargetGroups added in this way.
	// At least one TargetGroup must be added without conditions.
	// Experimental.
	AddTargetGroups(id *string, props *AddApplicationTargetGroupsProps)
	// Load balance incoming requests to the given load balancing targets.
	//
	// This method implicitly creates an ApplicationTargetGroup for the targets
	// involved.
	//
	// It's possible to add conditions to the targets added in this way. At least
	// one set of targets must be added without conditions.
	//
	// Returns: The newly created target group
	// Experimental.
	AddTargets(id *string, props *AddApplicationTargetsProps) ApplicationTargetGroup
	// Register that a connectable that has been added to this load balancer.
	//
	// Don't call this directly. It is called by ApplicationTargetGroup.
	// Experimental.
	RegisterConnectable(connectable awsec2.IConnectable, portRange awsec2.Port)
	// ARN of the listener.
	// Experimental.
	ListenerArn() *string
}

Properties to reference an existing listener. Experimental.

func ApplicationListener_FromApplicationListenerAttributes

func ApplicationListener_FromApplicationListenerAttributes(scope constructs.Construct, id *string, attrs *ApplicationListenerAttributes) IApplicationListener

Import an existing listener. Experimental.

func ApplicationListener_FromLookup

func ApplicationListener_FromLookup(scope constructs.Construct, id *string, options *ApplicationListenerLookupOptions) IApplicationListener

Look up an ApplicationListener. Experimental.

type IApplicationLoadBalancer

type IApplicationLoadBalancer interface {
	awsec2.IConnectable
	ILoadBalancerV2
	// Add a new listener to this load balancer.
	// Experimental.
	AddListener(id *string, props *BaseApplicationListenerProps) ApplicationListener
	// The IP Address Type for this load balancer.
	// Experimental.
	IpAddressType() IpAddressType
	// The ARN of this load balancer.
	// Experimental.
	LoadBalancerArn() *string
	// The VPC this load balancer has been created in (if available).
	//
	// If this interface is the result of an import call to fromApplicationLoadBalancerAttributes,
	// the vpc attribute will be undefined unless specified in the optional properties of that method.
	// Experimental.
	Vpc() awsec2.IVpc
}

An application load balancer. Experimental.

func ApplicationLoadBalancer_FromApplicationLoadBalancerAttributes

func ApplicationLoadBalancer_FromApplicationLoadBalancerAttributes(scope constructs.Construct, id *string, attrs *ApplicationLoadBalancerAttributes) IApplicationLoadBalancer

Import an existing Application Load Balancer. Experimental.

func ApplicationLoadBalancer_FromLookup

func ApplicationLoadBalancer_FromLookup(scope constructs.Construct, id *string, options *ApplicationLoadBalancerLookupOptions) IApplicationLoadBalancer

Look up an application load balancer. Experimental.

type IApplicationLoadBalancerTarget

type IApplicationLoadBalancerTarget interface {
	// Attach load-balanced target to a TargetGroup.
	//
	// May return JSON to directly add to the [Targets] list, or return undefined
	// if the target will register itself with the load balancer.
	// Experimental.
	AttachToApplicationTargetGroup(targetGroup IApplicationTargetGroup) *LoadBalancerTargetProps
}

Interface for constructs that can be targets of an application load balancer. Experimental.

type IApplicationTargetGroup

type IApplicationTargetGroup interface {
	ITargetGroup
	// Add a load balancing target to this target group.
	// Experimental.
	AddTarget(targets ...IApplicationLoadBalancerTarget)
	// Register a connectable as a member of this target group.
	//
	// Don't call this directly. It will be called by load balancing targets.
	// Experimental.
	RegisterConnectable(connectable awsec2.IConnectable, portRange awsec2.Port)
	// Register a listener that is load balancing to this target group.
	//
	// Don't call this directly. It will be called by listeners.
	// Experimental.
	RegisterListener(listener IApplicationListener, associatingConstruct constructs.IConstruct)
}

A Target Group for Application Load Balancers. Experimental.

func ApplicationTargetGroup_FromTargetGroupAttributes

func ApplicationTargetGroup_FromTargetGroupAttributes(scope constructs.Construct, id *string, attrs *TargetGroupAttributes) IApplicationTargetGroup

Import an existing target group. Experimental.

func ApplicationTargetGroup_Import

func ApplicationTargetGroup_Import(scope constructs.Construct, id *string, props *TargetGroupImportProps) IApplicationTargetGroup

Import an existing target group. Deprecated: Use `fromTargetGroupAttributes` instead

type IListenerAction

type IListenerAction interface {
	// Render the actions in this chain.
	// Experimental.
	RenderActions() *[]*CfnListener_ActionProperty
}

Interface for listener actions. Experimental.

type IListenerCertificate

type IListenerCertificate interface {
	// The ARN of the certificate to use.
	// Experimental.
	CertificateArn() *string
}

A certificate source for an ELBv2 listener. Experimental.

type ILoadBalancerV2

type ILoadBalancerV2 interface {
	awscdk.IResource
	// The canonical hosted zone ID of this load balancer.
	//
	// TODO: EXAMPLE
	//
	// Experimental.
	LoadBalancerCanonicalHostedZoneId() *string
	// The DNS name of this load balancer.
	//
	// TODO: EXAMPLE
	//
	// Experimental.
	LoadBalancerDnsName() *string
}

Experimental.

type INetworkListener

type INetworkListener interface {
	awscdk.IResource
	// ARN of the listener.
	// Experimental.
	ListenerArn() *string
}

Properties to reference an existing listener. Experimental.

func NetworkListener_FromLookup

func NetworkListener_FromLookup(scope constructs.Construct, id *string, options *NetworkListenerLookupOptions) INetworkListener

Looks up a network listener. Experimental.

func NetworkListener_FromNetworkListenerArn

func NetworkListener_FromNetworkListenerArn(scope constructs.Construct, id *string, networkListenerArn *string) INetworkListener

Import an existing listener. Experimental.

type INetworkListenerCertificateProps

type INetworkListenerCertificateProps interface {
	IListenerCertificate
}

Properties for adding a certificate to a listener.

This interface exists for backwards compatibility. Deprecated: Use IListenerCertificate instead

type INetworkLoadBalancer

type INetworkLoadBalancer interface {
	ILoadBalancerV2
	awsec2.IVpcEndpointServiceLoadBalancer
	// Add a listener to this load balancer.
	//
	// Returns: The newly created listener
	// Experimental.
	AddListener(id *string, props *BaseNetworkListenerProps) NetworkListener
	// The VPC this load balancer has been created in (if available).
	// Experimental.
	Vpc() awsec2.IVpc
}

A network load balancer. Experimental.

func NetworkLoadBalancer_FromLookup

func NetworkLoadBalancer_FromLookup(scope constructs.Construct, id *string, options *NetworkLoadBalancerLookupOptions) INetworkLoadBalancer

Looks up the network load balancer. Experimental.

func NetworkLoadBalancer_FromNetworkLoadBalancerAttributes

func NetworkLoadBalancer_FromNetworkLoadBalancerAttributes(scope constructs.Construct, id *string, attrs *NetworkLoadBalancerAttributes) INetworkLoadBalancer

Experimental.

type INetworkLoadBalancerTarget

type INetworkLoadBalancerTarget interface {
	// Attach load-balanced target to a TargetGroup.
	//
	// May return JSON to directly add to the [Targets] list, or return undefined
	// if the target will register itself with the load balancer.
	// Experimental.
	AttachToNetworkTargetGroup(targetGroup INetworkTargetGroup) *LoadBalancerTargetProps
}

Interface for constructs that can be targets of an network load balancer. Experimental.

type INetworkTargetGroup

type INetworkTargetGroup interface {
	ITargetGroup
	// Add a load balancing target to this target group.
	// Experimental.
	AddTarget(targets ...INetworkLoadBalancerTarget)
	// Register a listener that is load balancing to this target group.
	//
	// Don't call this directly. It will be called by listeners.
	// Experimental.
	RegisterListener(listener INetworkListener)
}

A network target group. Experimental.

func NetworkTargetGroup_FromTargetGroupAttributes

func NetworkTargetGroup_FromTargetGroupAttributes(scope constructs.Construct, id *string, attrs *TargetGroupAttributes) INetworkTargetGroup

Import an existing target group. Experimental.

func NetworkTargetGroup_Import

func NetworkTargetGroup_Import(scope constructs.Construct, id *string, props *TargetGroupImportProps) INetworkTargetGroup

Import an existing listener. Deprecated: Use `fromTargetGroupAttributes` instead

type ITargetGroup

type ITargetGroup interface {
	awscdk.IConstruct
	// A token representing a list of ARNs of the load balancers that route traffic to this target group.
	// Experimental.
	LoadBalancerArns() *string
	// Return an object to depend on the listeners added to this target group.
	// Experimental.
	LoadBalancerAttached() awscdk.IDependable
	// ARN of the target group.
	// Experimental.
	TargetGroupArn() *string
}

A target group. Experimental.

type InstanceTarget

type InstanceTarget interface {
	IApplicationLoadBalancerTarget
	INetworkLoadBalancerTarget
	AttachToApplicationTargetGroup(targetGroup IApplicationTargetGroup) *LoadBalancerTargetProps
	AttachToNetworkTargetGroup(targetGroup INetworkTargetGroup) *LoadBalancerTargetProps
}

An EC2 instance that is the target for load balancing.

If you register a target of this type, you are responsible for making sure the load balancer's security group can connect to the instance. Deprecated: Use IpTarget from the

func NewInstanceTarget

func NewInstanceTarget(instanceId *string, port *float64) InstanceTarget

Create a new Instance target. Deprecated: Use IpTarget from the

type IpAddressType

type IpAddressType string

What kind of addresses to allocate to the load balancer. Experimental.

const (
	IpAddressType_IPV4       IpAddressType = "IPV4"
	IpAddressType_DUAL_STACK IpAddressType = "DUAL_STACK"
)

type IpTarget

type IpTarget interface {
	IApplicationLoadBalancerTarget
	INetworkLoadBalancerTarget
	AttachToApplicationTargetGroup(targetGroup IApplicationTargetGroup) *LoadBalancerTargetProps
	AttachToNetworkTargetGroup(targetGroup INetworkTargetGroup) *LoadBalancerTargetProps
}

An IP address that is a target for load balancing.

Specify IP addresses from the subnets of the virtual private cloud (VPC) for the target group, the RFC 1918 range (10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16), and the RFC 6598 range (100.64.0.0/10). You can't specify publicly routable IP addresses.

If you register a target of this type, you are responsible for making sure the load balancer's security group can send packets to the IP address. Deprecated: Use IpTarget from the

func NewIpTarget

func NewIpTarget(ipAddress *string, port *float64, availabilityZone *string) IpTarget

Create a new IPAddress target.

The availabilityZone parameter determines whether the target receives traffic from the load balancer nodes in the specified Availability Zone or from all enabled Availability Zones for the load balancer.

This parameter is not supported if the target type of the target group is instance. If the IP address is in a subnet of the VPC for the target group, the Availability Zone is automatically detected and this parameter is optional. If the IP address is outside the VPC, this parameter is required.

With an Application Load Balancer, if the IP address is outside the VPC for the target group, the only supported value is all.

Default is automatic. Deprecated: Use IpTarget from the

type ListenerAction

type ListenerAction interface {
	IListenerAction
	Next() ListenerAction
	Bind(scope awscdk.Construct, listener IApplicationListener, associatingConstruct awscdk.IConstruct)
	RenderActions() *[]*CfnListener_ActionProperty
	Renumber(actions *[]*CfnListener_ActionProperty) *[]*CfnListener_ActionProperty
}

What to do when a client makes a request to a listener.

Some actions can be combined with other ones (specifically, you can perform authentication before serving the request).

Multiple actions form a linked chain; the chain must always terminate in a *(weighted)forward*, *fixedResponse* or *redirect* action.

If an action supports chaining, the next action can be indicated by passing it in the `next` property.

(Called `ListenerAction` instead of the more strictly correct `ListenerAction` because this is the class most users interact with, and we want to make it not too visually overwhelming). Experimental.

func ListenerAction_AuthenticateOidc

func ListenerAction_AuthenticateOidc(options *AuthenticateOidcOptions) ListenerAction

Authenticate using an identity provider (IdP) that is compliant with OpenID Connect (OIDC). See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/listener-authenticate-users.html#oidc-requirements

Experimental.

func ListenerAction_Redirect

func ListenerAction_Redirect(options *RedirectOptions) ListenerAction

Redirect to a different URI.

A URI consists of the following components: protocol://hostname:port/path?query. You must modify at least one of the following components to avoid a redirect loop: protocol, hostname, port, or path. Any components that you do not modify retain their original values.

You can reuse URI components using the following reserved keywords:

- `#{protocol}` - `#{host}` - `#{port}` - `#{path}` (the leading "/" is removed) - `#{query}`

For example, you can change the path to "/new/#{path}", the hostname to "example.#{host}", or the query to "#{query}&value=xyz". See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#redirect-actions

Experimental.

func ListenerAction_WeightedForward

func ListenerAction_WeightedForward(targetGroups *[]*WeightedTargetGroup, options *ForwardOptions) ListenerAction

Forward to one or more Target Groups which are weighted differently. See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#forward-actions

Experimental.

func NewListenerAction

func NewListenerAction(actionJson *CfnListener_ActionProperty, next ListenerAction) ListenerAction

Create an instance of ListenerAction.

The default class should be good enough for most cases and should be created by using one of the static factory functions, but allow overriding to make sure we allow flexibility for the future. Experimental.

type ListenerCertificate

type ListenerCertificate interface {
	IListenerCertificate
	CertificateArn() *string
}

A certificate source for an ELBv2 listener. Experimental.

func ListenerCertificate_FromArn

func ListenerCertificate_FromArn(certificateArn *string) ListenerCertificate

Use any certificate, identified by its ARN, as a listener certificate. Experimental.

func ListenerCertificate_FromCertificateManager

func ListenerCertificate_FromCertificateManager(acmCertificate awscertificatemanager.ICertificate) ListenerCertificate

Use an ACM certificate as a listener certificate. Experimental.

func NewListenerCertificate

func NewListenerCertificate(certificateArn *string) ListenerCertificate

Experimental.

type ListenerCondition

type ListenerCondition interface {
	RenderRawCondition() interface{}
}

ListenerCondition providers definition. Experimental.

func ListenerCondition_HostHeaders

func ListenerCondition_HostHeaders(values *[]*string) ListenerCondition

Create a host-header listener rule condition. Experimental.

func ListenerCondition_HttpHeader

func ListenerCondition_HttpHeader(name *string, values *[]*string) ListenerCondition

Create a http-header listener rule condition. Experimental.

func ListenerCondition_HttpRequestMethods

func ListenerCondition_HttpRequestMethods(values *[]*string) ListenerCondition

Create a http-request-method listener rule condition. Experimental.

func ListenerCondition_PathPatterns

func ListenerCondition_PathPatterns(values *[]*string) ListenerCondition

Create a path-pattern listener rule condition. Experimental.

func ListenerCondition_QueryStrings

func ListenerCondition_QueryStrings(values *[]*QueryStringCondition) ListenerCondition

Create a query-string listener rule condition. Experimental.

func ListenerCondition_SourceIps

func ListenerCondition_SourceIps(values *[]*string) ListenerCondition

Create a source-ip listener rule condition. Experimental.

type LoadBalancerTargetProps

type LoadBalancerTargetProps struct {
	// What kind of target this is.
	// Experimental.
	TargetType TargetType `json:"targetType"`
	// JSON representing the target's direct addition to the TargetGroup list.
	//
	// May be omitted if the target is going to register itself later.
	// Experimental.
	TargetJson interface{} `json:"targetJson"`
}

Result of attaching a target to load balancer. Experimental.

type NetworkForwardOptions

type NetworkForwardOptions struct {
	// For how long clients should be directed to the same target group.
	//
	// Range between 1 second and 7 days.
	// Experimental.
	StickinessDuration awscdk.Duration `json:"stickinessDuration"`
}

Options for `NetworkListenerAction.forward()`. Experimental.

type NetworkListener

type NetworkListener interface {
	BaseListener
	INetworkListener
	Env() *awscdk.ResourceEnvironment
	ListenerArn() *string
	LoadBalancer() INetworkLoadBalancer
	Node() awscdk.ConstructNode
	PhysicalName() *string
	Stack() awscdk.Stack
	AddAction(_id *string, props *AddNetworkActionProps)
	AddTargetGroups(_id *string, targetGroups ...INetworkTargetGroup)
	AddTargets(id *string, props *AddNetworkTargetsProps) NetworkTargetGroup
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
	GeneratePhysicalName() *string
	GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
	GetResourceNameAttribute(nameAttr *string) *string
	OnPrepare()
	OnSynthesize(session constructs.ISynthesisSession)
	OnValidate() *[]*string
	Prepare()
	Synthesize(session awscdk.ISynthesisSession)
	ToString() *string
	Validate() *[]*string
}

Define a Network Listener. Experimental.

func NewNetworkListener

func NewNetworkListener(scope constructs.Construct, id *string, props *NetworkListenerProps) NetworkListener

Experimental.

type NetworkListenerAction

type NetworkListenerAction interface {
	IListenerAction
	Next() NetworkListenerAction
	Bind(scope awscdk.Construct, listener INetworkListener)
	RenderActions() *[]*CfnListener_ActionProperty
	Renumber(actions *[]*CfnListener_ActionProperty) *[]*CfnListener_ActionProperty
}

What to do when a client makes a request to a listener.

Some actions can be combined with other ones (specifically, you can perform authentication before serving the request).

Multiple actions form a linked chain; the chain must always terminate in a *(weighted)forward*, *fixedResponse* or *redirect* action.

If an action supports chaining, the next action can be indicated by passing it in the `next` property. Experimental.

func NetworkListenerAction_Forward

func NetworkListenerAction_Forward(targetGroups *[]INetworkTargetGroup, options *NetworkForwardOptions) NetworkListenerAction

Forward to one or more Target Groups. Experimental.

func NetworkListenerAction_WeightedForward

func NetworkListenerAction_WeightedForward(targetGroups *[]*NetworkWeightedTargetGroup, options *NetworkForwardOptions) NetworkListenerAction

Forward to one or more Target Groups which are weighted differently. Experimental.

func NewNetworkListenerAction

func NewNetworkListenerAction(actionJson *CfnListener_ActionProperty, next NetworkListenerAction) NetworkListenerAction

Create an instance of NetworkListenerAction.

The default class should be good enough for most cases and should be created by using one of the static factory functions, but allow overriding to make sure we allow flexibility for the future. Experimental.

type NetworkListenerLookupOptions

type NetworkListenerLookupOptions struct {
	// Filter listeners by listener port.
	// Experimental.
	ListenerPort *float64 `json:"listenerPort"`
	// Filter listeners by associated load balancer arn.
	// Experimental.
	LoadBalancerArn *string `json:"loadBalancerArn"`
	// Filter listeners by associated load balancer tags.
	// Experimental.
	LoadBalancerTags *map[string]*string `json:"loadBalancerTags"`
	// Protocol of the listener port.
	// Experimental.
	ListenerProtocol Protocol `json:"listenerProtocol"`
}

Options for looking up a network listener. Experimental.

type NetworkListenerProps

type NetworkListenerProps struct {
	// The port on which the listener listens for requests.
	// Experimental.
	Port *float64 `json:"port"`
	// Certificate list of ACM cert ARNs.
	// Experimental.
	Certificates *[]IListenerCertificate `json:"certificates"`
	// Default action to take for requests to this listener.
	//
	// This allows full control of the default Action of the load balancer,
	// including weighted forwarding. See the `NetworkListenerAction` class for
	// all options.
	//
	// Cannot be specified together with `defaultTargetGroups`.
	// Experimental.
	DefaultAction NetworkListenerAction `json:"defaultAction"`
	// Default target groups to load balance to.
	//
	// All target groups will be load balanced to with equal weight and without
	// stickiness. For a more complex configuration than that, use
	// either `defaultAction` or `addAction()`.
	//
	// Cannot be specified together with `defaultAction`.
	// Experimental.
	DefaultTargetGroups *[]INetworkTargetGroup `json:"defaultTargetGroups"`
	// Protocol for listener, expects TCP, TLS, UDP, or TCP_UDP.
	// Experimental.
	Protocol Protocol `json:"protocol"`
	// SSL Policy.
	// Experimental.
	SslPolicy SslPolicy `json:"sslPolicy"`
	// The load balancer to attach this listener to.
	// Experimental.
	LoadBalancer INetworkLoadBalancer `json:"loadBalancer"`
}

Properties for a Network Listener attached to a Load Balancer. Experimental.

type NetworkLoadBalancer

type NetworkLoadBalancer interface {
	BaseLoadBalancer
	INetworkLoadBalancer
	Env() *awscdk.ResourceEnvironment
	LoadBalancerArn() *string
	LoadBalancerCanonicalHostedZoneId() *string
	LoadBalancerDnsName() *string
	LoadBalancerFullName() *string
	LoadBalancerName() *string
	LoadBalancerSecurityGroups() *[]*string
	Node() awscdk.ConstructNode
	PhysicalName() *string
	Stack() awscdk.Stack
	Vpc() awsec2.IVpc
	AddListener(id *string, props *BaseNetworkListenerProps) NetworkListener
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
	GeneratePhysicalName() *string
	GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
	GetResourceNameAttribute(nameAttr *string) *string
	LogAccessLogs(bucket awss3.IBucket, prefix *string)
	Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricActiveFlowCount(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricConsumedLCUs(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricHealthyHostCount(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricNewFlowCount(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricProcessedBytes(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricTcpClientResetCount(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricTcpElbResetCount(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricTcpTargetResetCount(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricUnHealthyHostCount(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	OnPrepare()
	OnSynthesize(session constructs.ISynthesisSession)
	OnValidate() *[]*string
	Prepare()
	RemoveAttribute(key *string)
	SetAttribute(key *string, value *string)
	Synthesize(session awscdk.ISynthesisSession)
	ToString() *string
	Validate() *[]*string
}

Define a new network load balancer. Experimental.

func NewNetworkLoadBalancer

func NewNetworkLoadBalancer(scope constructs.Construct, id *string, props *NetworkLoadBalancerProps) NetworkLoadBalancer

Experimental.

type NetworkLoadBalancerAttributes

type NetworkLoadBalancerAttributes struct {
	// ARN of the load balancer.
	// Experimental.
	LoadBalancerArn *string `json:"loadBalancerArn"`
	// The canonical hosted zone ID of this load balancer.
	// Experimental.
	LoadBalancerCanonicalHostedZoneId *string `json:"loadBalancerCanonicalHostedZoneId"`
	// The DNS name of this load balancer.
	// Experimental.
	LoadBalancerDnsName *string `json:"loadBalancerDnsName"`
	// The VPC to associate with the load balancer.
	// Experimental.
	Vpc awsec2.IVpc `json:"vpc"`
}

Properties to reference an existing load balancer. Experimental.

type NetworkLoadBalancerLookupOptions

type NetworkLoadBalancerLookupOptions struct {
	// Find by load balancer's ARN.
	// Experimental.
	LoadBalancerArn *string `json:"loadBalancerArn"`
	// Match load balancer tags.
	// Experimental.
	LoadBalancerTags *map[string]*string `json:"loadBalancerTags"`
}

Options for looking up an NetworkLoadBalancer. Experimental.

type NetworkLoadBalancerProps

type NetworkLoadBalancerProps struct {
	// The VPC network to place the load balancer in.
	// Experimental.
	Vpc awsec2.IVpc `json:"vpc"`
	// Indicates whether deletion protection is enabled.
	// Experimental.
	DeletionProtection *bool `json:"deletionProtection"`
	// Whether the load balancer has an internet-routable address.
	// Experimental.
	InternetFacing *bool `json:"internetFacing"`
	// Name of the load balancer.
	// Experimental.
	LoadBalancerName *string `json:"loadBalancerName"`
	// Which subnets place the load balancer in.
	// Experimental.
	VpcSubnets *awsec2.SubnetSelection `json:"vpcSubnets"`
	// Indicates whether cross-zone load balancing is enabled.
	// Experimental.
	CrossZoneEnabled *bool `json:"crossZoneEnabled"`
}

Properties for a network load balancer. Experimental.

type NetworkTargetGroup

type NetworkTargetGroup interface {
	TargetGroupBase
	INetworkTargetGroup
	DefaultPort() *float64
	FirstLoadBalancerFullName() *string
	HealthCheck() *HealthCheck
	SetHealthCheck(val *HealthCheck)
	LoadBalancerArns() *string
	LoadBalancerAttached() awscdk.IDependable
	LoadBalancerAttachedDependencies() awscdk.ConcreteDependable
	Node() awscdk.ConstructNode
	TargetGroupArn() *string
	TargetGroupFullName() *string
	TargetGroupLoadBalancerArns() *[]*string
	TargetGroupName() *string
	TargetType() TargetType
	SetTargetType(val TargetType)
	AddLoadBalancerTarget(props *LoadBalancerTargetProps)
	AddTarget(targets ...INetworkLoadBalancerTarget)
	ConfigureHealthCheck(healthCheck *HealthCheck)
	MetricHealthyHostCount(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	MetricUnHealthyHostCount(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	OnPrepare()
	OnSynthesize(session constructs.ISynthesisSession)
	OnValidate() *[]*string
	Prepare()
	RegisterListener(listener INetworkListener)
	SetAttribute(key *string, value *string)
	Synthesize(session awscdk.ISynthesisSession)
	ToString() *string
	Validate() *[]*string
}

Define a Network Target Group. Experimental.

func NewNetworkTargetGroup

func NewNetworkTargetGroup(scope constructs.Construct, id *string, props *NetworkTargetGroupProps) NetworkTargetGroup

Experimental.

type NetworkTargetGroupProps

type NetworkTargetGroupProps struct {
	// The amount of time for Elastic Load Balancing to wait before deregistering a target.
	//
	// The range is 0-3600 seconds.
	// Experimental.
	DeregistrationDelay awscdk.Duration `json:"deregistrationDelay"`
	// Health check configuration.
	// Experimental.
	HealthCheck *HealthCheck `json:"healthCheck"`
	// The name of the target group.
	//
	// This name must be unique per region per account, can have a maximum of
	// 32 characters, must contain only alphanumeric characters or hyphens, and
	// must not begin or end with a hyphen.
	// Experimental.
	TargetGroupName *string `json:"targetGroupName"`
	// The type of targets registered to this TargetGroup, either IP or Instance.
	//
	// All targets registered into the group must be of this type. If you
	// register targets to the TargetGroup in the CDK app, the TargetType is
	// determined automatically.
	// Experimental.
	TargetType TargetType `json:"targetType"`
	// The virtual private cloud (VPC).
	//
	// only if `TargetType` is `Ip` or `InstanceId`
	// Experimental.
	Vpc awsec2.IVpc `json:"vpc"`
	// The port on which the listener listens for requests.
	// Experimental.
	Port *float64 `json:"port"`
	// Protocol for target group, expects TCP, TLS, UDP, or TCP_UDP.
	// Experimental.
	Protocol Protocol `json:"protocol"`
	// Indicates whether Proxy Protocol version 2 is enabled.
	// Experimental.
	ProxyProtocolV2 *bool `json:"proxyProtocolV2"`
	// The targets to add to this target group.
	//
	// Can be `Instance`, `IPAddress`, or any self-registering load balancing
	// target. If you use either `Instance` or `IPAddress` as targets, all
	// target must be of the same type.
	// Experimental.
	Targets *[]INetworkLoadBalancerTarget `json:"targets"`
}

Properties for a new Network Target Group. Experimental.

type NetworkWeightedTargetGroup

type NetworkWeightedTargetGroup struct {
	// The target group.
	// Experimental.
	TargetGroup INetworkTargetGroup `json:"targetGroup"`
	// The target group's weight.
	//
	// Range is [0..1000).
	// Experimental.
	Weight *float64 `json:"weight"`
}

A Target Group and weight combination. Experimental.

type Protocol

type Protocol string

Backend protocol for network load balancers and health checks. Experimental.

const (
	Protocol_HTTP    Protocol = "HTTP"
	Protocol_HTTPS   Protocol = "HTTPS"
	Protocol_TCP     Protocol = "TCP"
	Protocol_TLS     Protocol = "TLS"
	Protocol_UDP     Protocol = "UDP"
	Protocol_TCP_UDP Protocol = "TCP_UDP"
)

type QueryStringCondition

type QueryStringCondition struct {
	// The query string value for the condition.
	// Experimental.
	Value *string `json:"value"`
	// The query string key for the condition.
	// Experimental.
	Key *string `json:"key"`
}

Properties for the key/value pair of the query string. Experimental.

type RedirectOptions

type RedirectOptions struct {
	// The hostname.
	//
	// This component is not percent-encoded. The hostname can contain #{host}.
	// Experimental.
	Host *string `json:"host"`
	// The absolute path, starting with the leading "/".
	//
	// This component is not percent-encoded. The path can contain #{host}, #{path}, and #{port}.
	// Experimental.
	Path *string `json:"path"`
	// The HTTP redirect code.
	//
	// The redirect is either permanent (HTTP 301) or temporary (HTTP 302).
	// Experimental.
	Permanent *bool `json:"permanent"`
	// The port.
	//
	// You can specify a value from 1 to 65535 or #{port}.
	// Experimental.
	Port *string `json:"port"`
	// The protocol.
	//
	// You can specify HTTP, HTTPS, or #{protocol}. You can redirect HTTP to HTTP, HTTP to HTTPS, and HTTPS to HTTPS. You cannot redirect HTTPS to HTTP.
	// Experimental.
	Protocol *string `json:"protocol"`
	// The query parameters, URL-encoded when necessary, but not percent-encoded.
	//
	// Do not include the leading "?", as it is automatically added. You can specify any of the reserved keywords.
	// Experimental.
	Query *string `json:"query"`
}

Options for `ListenerAction.redirect()`.

A URI consists of the following components: protocol://hostname:port/path?query. You must modify at least one of the following components to avoid a redirect loop: protocol, hostname, port, or path. Any components that you do not modify retain their original values.

You can reuse URI components using the following reserved keywords:

- `#{protocol}` - `#{host}` - `#{port}` - `#{path}` (the leading "/" is removed) - `#{query}`

For example, you can change the path to "/new/#{path}", the hostname to "example.#{host}", or the query to "#{query}&value=xyz". Experimental.

type RedirectResponse

type RedirectResponse struct {
	// The HTTP redirect code (HTTP_301 or HTTP_302).
	// Deprecated: superceded by `ListenerAction.redirect()`.
	StatusCode *string `json:"statusCode"`
	// The hostname.
	//
	// This component is not percent-encoded. The hostname can contain #{host}.
	// Deprecated: superceded by `ListenerAction.redirect()`.
	Host *string `json:"host"`
	// The absolute path, starting with the leading "/".
	//
	// This component is not percent-encoded.
	// The path can contain #{host}, #{path}, and #{port}.
	// Deprecated: superceded by `ListenerAction.redirect()`.
	Path *string `json:"path"`
	// The port.
	//
	// You can specify a value from 1 to 65535 or #{port}.
	// Deprecated: superceded by `ListenerAction.redirect()`.
	Port *string `json:"port"`
	// The protocol.
	//
	// You can specify HTTP, HTTPS, or #{protocol}. You can redirect HTTP to HTTP,
	// HTTP to HTTPS, and HTTPS to HTTPS. You cannot redirect HTTPS to HTTP.
	// Deprecated: superceded by `ListenerAction.redirect()`.
	Protocol *string `json:"protocol"`
	// The query parameters, URL-encoded when necessary, but not percent-encoded.
	//
	// Do not include the leading "?", as it is automatically added.
	// You can specify any of the reserved keywords.
	// Deprecated: superceded by `ListenerAction.redirect()`.
	Query *string `json:"query"`
}

A redirect response. Deprecated: superceded by `ListenerAction.redirect()`.

type SslPolicy

type SslPolicy string

Elastic Load Balancing provides the following security policies for Application Load Balancers.

We recommend the Recommended policy for general use. You can use the ForwardSecrecy policy if you require Forward Secrecy (FS).

You can use one of the TLS policies to meet compliance and security standards that require disabling certain TLS protocol versions, or to support legacy clients that require deprecated ciphers. See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/create-https-listener.html

Experimental.

const (
	SslPolicy_RECOMMENDED                   SslPolicy = "RECOMMENDED"
	SslPolicy_FORWARD_SECRECY_TLS12_RES_GCM SslPolicy = "FORWARD_SECRECY_TLS12_RES_GCM"
	SslPolicy_FORWARD_SECRECY_TLS12_RES     SslPolicy = "FORWARD_SECRECY_TLS12_RES"
	SslPolicy_FORWARD_SECRECY_TLS12         SslPolicy = "FORWARD_SECRECY_TLS12"
	SslPolicy_FORWARD_SECRECY_TLS11         SslPolicy = "FORWARD_SECRECY_TLS11"
	SslPolicy_FORWARD_SECRECY               SslPolicy = "FORWARD_SECRECY"
	SslPolicy_TLS12                         SslPolicy = "TLS12"
	SslPolicy_TLS12_EXT                     SslPolicy = "TLS12_EXT"
	SslPolicy_TLS11                         SslPolicy = "TLS11"
	SslPolicy_LEGACY                        SslPolicy = "LEGACY"
)

type TargetGroupAttributes

type TargetGroupAttributes struct {
	// ARN of the target group.
	// Experimental.
	TargetGroupArn *string `json:"targetGroupArn"`
	// Port target group is listening on.
	// Deprecated: - This property is unused and the wrong type. No need to use it.
	DefaultPort *string `json:"defaultPort"`
	// A Token representing the list of ARNs for the load balancer routing to this target group.
	// Experimental.
	LoadBalancerArns *string `json:"loadBalancerArns"`
}

Properties to reference an existing target group. Experimental.

type TargetGroupBase

type TargetGroupBase interface {
	awscdk.Construct
	ITargetGroup
	DefaultPort() *float64
	FirstLoadBalancerFullName() *string
	HealthCheck() *HealthCheck
	SetHealthCheck(val *HealthCheck)
	LoadBalancerArns() *string
	LoadBalancerAttached() awscdk.IDependable
	LoadBalancerAttachedDependencies() awscdk.ConcreteDependable
	Node() awscdk.ConstructNode
	TargetGroupArn() *string
	TargetGroupFullName() *string
	TargetGroupLoadBalancerArns() *[]*string
	TargetGroupName() *string
	TargetType() TargetType
	SetTargetType(val TargetType)
	AddLoadBalancerTarget(props *LoadBalancerTargetProps)
	ConfigureHealthCheck(healthCheck *HealthCheck)
	OnPrepare()
	OnSynthesize(session constructs.ISynthesisSession)
	OnValidate() *[]*string
	Prepare()
	SetAttribute(key *string, value *string)
	Synthesize(session awscdk.ISynthesisSession)
	ToString() *string
	Validate() *[]*string
}

Define the target of a load balancer. Experimental.

type TargetGroupImportProps

type TargetGroupImportProps struct {
	// ARN of the target group.
	// Deprecated: Use TargetGroupAttributes instead
	TargetGroupArn *string `json:"targetGroupArn"`
	// Port target group is listening on.
	// Deprecated: - This property is unused and the wrong type. No need to use it.
	DefaultPort *string `json:"defaultPort"`
	// A Token representing the list of ARNs for the load balancer routing to this target group.
	// Deprecated: Use TargetGroupAttributes instead
	LoadBalancerArns *string `json:"loadBalancerArns"`
}

Properties to reference an existing target group. Deprecated: Use TargetGroupAttributes instead

type TargetType

type TargetType string

How to interpret the load balancing target identifiers. Experimental.

const (
	TargetType_INSTANCE TargetType = "INSTANCE"
	TargetType_IP       TargetType = "IP"
	TargetType_LAMBDA   TargetType = "LAMBDA"
)

type UnauthenticatedAction

type UnauthenticatedAction string

What to do with unauthenticated requests. Experimental.

const (
	UnauthenticatedAction_DENY         UnauthenticatedAction = "DENY"
	UnauthenticatedAction_ALLOW        UnauthenticatedAction = "ALLOW"
	UnauthenticatedAction_AUTHENTICATE UnauthenticatedAction = "AUTHENTICATE"
)

type WeightedTargetGroup

type WeightedTargetGroup struct {
	// The target group.
	// Experimental.
	TargetGroup IApplicationTargetGroup `json:"targetGroup"`
	// The target group's weight.
	//
	// Range is [0..1000).
	// Experimental.
	Weight *float64 `json:"weight"`
}

A Target Group and weight combination. Experimental.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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