Documentation
¶
Index ¶
- func ApplicationListenerCertificate_IsConstruct(x interface{}) *bool
- func ApplicationListenerRule_IsConstruct(x interface{}) *bool
- func ApplicationListener_IsConstruct(x interface{}) *bool
- func ApplicationListener_IsResource(construct constructs.IConstruct) *bool
- func ApplicationLoadBalancer_IsConstruct(x interface{}) *bool
- func ApplicationLoadBalancer_IsResource(construct constructs.IConstruct) *bool
- func ApplicationTargetGroup_IsConstruct(x interface{}) *bool
- func BaseListener_IsConstruct(x interface{}) *bool
- func BaseListener_IsResource(construct constructs.IConstruct) *bool
- func BaseLoadBalancer_IsConstruct(x interface{}) *bool
- func BaseLoadBalancer_IsResource(construct constructs.IConstruct) *bool
- func CfnListenerCertificate_CFN_RESOURCE_TYPE_NAME() *string
- func CfnListenerCertificate_IsCfnElement(x interface{}) *bool
- func CfnListenerCertificate_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnListenerCertificate_IsConstruct(x interface{}) *bool
- func CfnListenerRule_CFN_RESOURCE_TYPE_NAME() *string
- func CfnListenerRule_IsCfnElement(x interface{}) *bool
- func CfnListenerRule_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnListenerRule_IsConstruct(x interface{}) *bool
- func CfnListener_CFN_RESOURCE_TYPE_NAME() *string
- func CfnListener_IsCfnElement(x interface{}) *bool
- func CfnListener_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnListener_IsConstruct(x interface{}) *bool
- func CfnLoadBalancer_CFN_RESOURCE_TYPE_NAME() *string
- func CfnLoadBalancer_IsCfnElement(x interface{}) *bool
- func CfnLoadBalancer_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnLoadBalancer_IsConstruct(x interface{}) *bool
- func CfnTargetGroup_CFN_RESOURCE_TYPE_NAME() *string
- func CfnTargetGroup_IsCfnElement(x interface{}) *bool
- func CfnTargetGroup_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnTargetGroup_IsConstruct(x interface{}) *bool
- func NetworkListener_IsConstruct(x interface{}) *bool
- func NetworkListener_IsResource(construct constructs.IConstruct) *bool
- func NetworkLoadBalancer_IsConstruct(x interface{}) *bool
- func NetworkLoadBalancer_IsResource(construct constructs.IConstruct) *bool
- func NetworkTargetGroup_IsConstruct(x interface{}) *bool
- func NewApplicationListenerCertificate_Override(a ApplicationListenerCertificate, scope constructs.Construct, id *string, ...)
- func NewApplicationListenerRule_Override(a ApplicationListenerRule, scope constructs.Construct, id *string, ...)
- func NewApplicationListener_Override(a ApplicationListener, scope constructs.Construct, id *string, ...)
- func NewApplicationLoadBalancer_Override(a ApplicationLoadBalancer, scope constructs.Construct, id *string, ...)
- func NewApplicationTargetGroup_Override(a ApplicationTargetGroup, scope constructs.Construct, id *string, ...)
- func NewBaseListener_Override(b BaseListener, scope constructs.Construct, id *string, ...)
- func NewBaseLoadBalancer_Override(b BaseLoadBalancer, scope constructs.Construct, id *string, ...)
- func NewCfnListenerCertificate_Override(c CfnListenerCertificate, scope constructs.Construct, id *string, ...)
- func NewCfnListenerRule_Override(c CfnListenerRule, scope constructs.Construct, id *string, ...)
- func NewCfnListener_Override(c CfnListener, scope constructs.Construct, id *string, props *CfnListenerProps)
- func NewCfnLoadBalancer_Override(c CfnLoadBalancer, scope constructs.Construct, id *string, ...)
- func NewCfnTargetGroup_Override(c CfnTargetGroup, scope constructs.Construct, id *string, ...)
- func NewListenerAction_Override(l ListenerAction, actionJson *CfnListener_ActionProperty, next ListenerAction)
- func NewListenerCertificate_Override(l ListenerCertificate, certificateArn *string)
- func NewListenerCondition_Override(l ListenerCondition)
- func NewNetworkListenerAction_Override(n NetworkListenerAction, actionJson *CfnListener_ActionProperty, ...)
- func NewNetworkListener_Override(n NetworkListener, scope constructs.Construct, id *string, ...)
- func NewNetworkLoadBalancer_Override(n NetworkLoadBalancer, scope constructs.Construct, id *string, ...)
- func NewNetworkTargetGroup_Override(n NetworkTargetGroup, scope constructs.Construct, id *string, ...)
- func NewTargetGroupBase_Override(t TargetGroupBase, scope constructs.Construct, id *string, ...)
- func TargetGroupBase_IsConstruct(x interface{}) *bool
- type AddApplicationActionProps
- type AddApplicationTargetGroupsProps
- type AddApplicationTargetsProps
- type AddNetworkActionProps
- type AddNetworkTargetsProps
- type AddRuleProps
- type AlpnPolicy
- type ApplicationListener
- type ApplicationListenerAttributes
- type ApplicationListenerCertificate
- type ApplicationListenerCertificateProps
- type ApplicationListenerLookupOptions
- type ApplicationListenerProps
- type ApplicationListenerRule
- type ApplicationListenerRuleProps
- type ApplicationLoadBalancer
- type ApplicationLoadBalancerAttributes
- type ApplicationLoadBalancerLookupOptions
- type ApplicationLoadBalancerProps
- type ApplicationLoadBalancerRedirectConfig
- type ApplicationProtocol
- type ApplicationProtocolVersion
- type ApplicationTargetGroup
- type ApplicationTargetGroupProps
- type AuthenticateOidcOptions
- type BaseApplicationListenerProps
- type BaseApplicationListenerRuleProps
- type BaseListener
- type BaseListenerLookupOptions
- type BaseLoadBalancer
- type BaseLoadBalancerLookupOptions
- type BaseLoadBalancerProps
- type BaseNetworkListenerProps
- type BaseTargetGroupProps
- type CfnListener
- type CfnListenerCertificate
- type CfnListenerCertificateProps
- type CfnListenerCertificate_CertificateProperty
- type CfnListenerProps
- type CfnListenerRule
- type CfnListenerRuleProps
- type CfnListenerRule_ActionProperty
- type CfnListenerRule_AuthenticateCognitoConfigProperty
- type CfnListenerRule_AuthenticateOidcConfigProperty
- type CfnListenerRule_FixedResponseConfigProperty
- type CfnListenerRule_ForwardConfigProperty
- type CfnListenerRule_HostHeaderConfigProperty
- type CfnListenerRule_HttpHeaderConfigProperty
- type CfnListenerRule_HttpRequestMethodConfigProperty
- type CfnListenerRule_PathPatternConfigProperty
- type CfnListenerRule_QueryStringConfigProperty
- type CfnListenerRule_QueryStringKeyValueProperty
- type CfnListenerRule_RedirectConfigProperty
- type CfnListenerRule_RuleConditionProperty
- type CfnListenerRule_SourceIpConfigProperty
- type CfnListenerRule_TargetGroupStickinessConfigProperty
- type CfnListenerRule_TargetGroupTupleProperty
- type CfnListener_ActionProperty
- type CfnListener_AuthenticateCognitoConfigProperty
- type CfnListener_AuthenticateOidcConfigProperty
- type CfnListener_CertificateProperty
- type CfnListener_FixedResponseConfigProperty
- type CfnListener_ForwardConfigProperty
- type CfnListener_RedirectConfigProperty
- type CfnListener_TargetGroupStickinessConfigProperty
- type CfnListener_TargetGroupTupleProperty
- type CfnLoadBalancer
- type CfnLoadBalancerProps
- type CfnLoadBalancer_LoadBalancerAttributeProperty
- type CfnLoadBalancer_SubnetMappingProperty
- type CfnTargetGroup
- type CfnTargetGroupProps
- type CfnTargetGroup_MatcherProperty
- type CfnTargetGroup_TargetDescriptionProperty
- type CfnTargetGroup_TargetGroupAttributeProperty
- type FixedResponseOptions
- type ForwardOptions
- type HealthCheck
- type HttpCodeElb
- type HttpCodeTarget
- type IApplicationListener
- type IApplicationLoadBalancer
- type IApplicationLoadBalancerTarget
- type IApplicationTargetGroup
- type IListenerAction
- type IListenerCertificate
- type ILoadBalancerV2
- type INetworkListener
- type INetworkLoadBalancer
- type INetworkLoadBalancerTarget
- type INetworkTargetGroup
- type ITargetGroup
- type IpAddressType
- type ListenerAction
- func ListenerAction_AuthenticateOidc(options *AuthenticateOidcOptions) ListenerAction
- func ListenerAction_FixedResponse(statusCode *float64, options *FixedResponseOptions) ListenerAction
- func ListenerAction_Forward(targetGroups *[]IApplicationTargetGroup, options *ForwardOptions) ListenerAction
- func ListenerAction_Redirect(options *RedirectOptions) ListenerAction
- func ListenerAction_WeightedForward(targetGroups *[]*WeightedTargetGroup, options *ForwardOptions) ListenerAction
- func NewListenerAction(actionJson *CfnListener_ActionProperty, next ListenerAction) ListenerAction
- type ListenerCertificate
- type ListenerCondition
- func ListenerCondition_HostHeaders(values *[]*string) ListenerCondition
- func ListenerCondition_HttpHeader(name *string, values *[]*string) ListenerCondition
- func ListenerCondition_HttpRequestMethods(values *[]*string) ListenerCondition
- func ListenerCondition_PathPatterns(values *[]*string) ListenerCondition
- func ListenerCondition_QueryStrings(values *[]*QueryStringCondition) ListenerCondition
- func ListenerCondition_SourceIps(values *[]*string) ListenerCondition
- type LoadBalancerTargetProps
- type NetworkForwardOptions
- type NetworkListener
- type NetworkListenerAction
- func NetworkListenerAction_Forward(targetGroups *[]INetworkTargetGroup, options *NetworkForwardOptions) NetworkListenerAction
- func NetworkListenerAction_WeightedForward(targetGroups *[]*NetworkWeightedTargetGroup, options *NetworkForwardOptions) NetworkListenerAction
- func NewNetworkListenerAction(actionJson *CfnListener_ActionProperty, next NetworkListenerAction) NetworkListenerAction
- type NetworkListenerLookupOptions
- type NetworkListenerProps
- type NetworkLoadBalancer
- type NetworkLoadBalancerAttributes
- type NetworkLoadBalancerLookupOptions
- type NetworkLoadBalancerProps
- type NetworkTargetGroup
- type NetworkTargetGroupProps
- type NetworkWeightedTargetGroup
- type Protocol
- type QueryStringCondition
- type RedirectOptions
- type SslPolicy
- type TargetGroupAttributes
- type TargetGroupBase
- type TargetGroupLoadBalancingAlgorithmType
- type TargetType
- type UnauthenticatedAction
- type WeightedTargetGroup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplicationListenerCertificate_IsConstruct ¶
func ApplicationListenerCertificate_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func ApplicationListenerRule_IsConstruct ¶
func ApplicationListenerRule_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func ApplicationListener_IsConstruct ¶
func ApplicationListener_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func ApplicationListener_IsResource ¶
func ApplicationListener_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource.
func ApplicationLoadBalancer_IsConstruct ¶
func ApplicationLoadBalancer_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func ApplicationLoadBalancer_IsResource ¶
func ApplicationLoadBalancer_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource.
func ApplicationTargetGroup_IsConstruct ¶
func ApplicationTargetGroup_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func BaseListener_IsConstruct ¶
func BaseListener_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func BaseListener_IsResource ¶
func BaseListener_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource.
func BaseLoadBalancer_IsConstruct ¶
func BaseLoadBalancer_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func BaseLoadBalancer_IsResource ¶
func BaseLoadBalancer_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource.
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.
func CfnListenerCertificate_IsCfnResource ¶
func CfnListenerCertificate_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnListenerCertificate_IsConstruct ¶
func CfnListenerCertificate_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
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.
func CfnListenerRule_IsCfnResource ¶
func CfnListenerRule_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnListenerRule_IsConstruct ¶
func CfnListenerRule_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
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.
func CfnListener_IsCfnResource ¶
func CfnListener_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnListener_IsConstruct ¶
func CfnListener_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
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.
func CfnLoadBalancer_IsCfnResource ¶
func CfnLoadBalancer_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnLoadBalancer_IsConstruct ¶
func CfnLoadBalancer_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
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.
func CfnTargetGroup_IsCfnResource ¶
func CfnTargetGroup_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnTargetGroup_IsConstruct ¶
func CfnTargetGroup_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func NetworkListener_IsConstruct ¶
func NetworkListener_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func NetworkListener_IsResource ¶
func NetworkListener_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource.
func NetworkLoadBalancer_IsConstruct ¶
func NetworkLoadBalancer_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func NetworkLoadBalancer_IsResource ¶
func NetworkLoadBalancer_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource.
func NetworkTargetGroup_IsConstruct ¶
func NetworkTargetGroup_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func NewApplicationListenerCertificate_Override ¶
func NewApplicationListenerCertificate_Override(a ApplicationListenerCertificate, scope constructs.Construct, id *string, props *ApplicationListenerCertificateProps)
func NewApplicationListenerRule_Override ¶
func NewApplicationListenerRule_Override(a ApplicationListenerRule, scope constructs.Construct, id *string, props *ApplicationListenerRuleProps)
func NewApplicationListener_Override ¶
func NewApplicationListener_Override(a ApplicationListener, scope constructs.Construct, id *string, props *ApplicationListenerProps)
func NewApplicationLoadBalancer_Override ¶
func NewApplicationLoadBalancer_Override(a ApplicationLoadBalancer, scope constructs.Construct, id *string, props *ApplicationLoadBalancerProps)
func NewApplicationTargetGroup_Override ¶
func NewApplicationTargetGroup_Override(a ApplicationTargetGroup, scope constructs.Construct, id *string, props *ApplicationTargetGroupProps)
func NewBaseListener_Override ¶
func NewBaseListener_Override(b BaseListener, scope constructs.Construct, id *string, additionalProps interface{})
func NewBaseLoadBalancer_Override ¶
func NewBaseLoadBalancer_Override(b BaseLoadBalancer, scope constructs.Construct, id *string, baseProps *BaseLoadBalancerProps, additionalProps interface{})
func NewCfnListenerCertificate_Override ¶
func NewCfnListenerCertificate_Override(c CfnListenerCertificate, scope constructs.Construct, id *string, props *CfnListenerCertificateProps)
Create a new `AWS::ElasticLoadBalancingV2::ListenerCertificate`.
func NewCfnListenerRule_Override ¶
func NewCfnListenerRule_Override(c CfnListenerRule, scope constructs.Construct, id *string, props *CfnListenerRuleProps)
Create a new `AWS::ElasticLoadBalancingV2::ListenerRule`.
func NewCfnListener_Override ¶
func NewCfnListener_Override(c CfnListener, scope constructs.Construct, id *string, props *CfnListenerProps)
Create a new `AWS::ElasticLoadBalancingV2::Listener`.
func NewCfnLoadBalancer_Override ¶
func NewCfnLoadBalancer_Override(c CfnLoadBalancer, scope constructs.Construct, id *string, props *CfnLoadBalancerProps)
Create a new `AWS::ElasticLoadBalancingV2::LoadBalancer`.
func NewCfnTargetGroup_Override ¶
func NewCfnTargetGroup_Override(c CfnTargetGroup, scope constructs.Construct, id *string, props *CfnTargetGroupProps)
Create a new `AWS::ElasticLoadBalancingV2::TargetGroup`.
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.
func NewListenerCertificate_Override ¶
func NewListenerCertificate_Override(l ListenerCertificate, certificateArn *string)
func NewListenerCondition_Override ¶
func NewListenerCondition_Override(l ListenerCondition)
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.
func NewNetworkListener_Override ¶
func NewNetworkListener_Override(n NetworkListener, scope constructs.Construct, id *string, props *NetworkListenerProps)
func NewNetworkLoadBalancer_Override ¶
func NewNetworkLoadBalancer_Override(n NetworkLoadBalancer, scope constructs.Construct, id *string, props *NetworkLoadBalancerProps)
func NewNetworkTargetGroup_Override ¶
func NewNetworkTargetGroup_Override(n NetworkTargetGroup, scope constructs.Construct, id *string, props *NetworkTargetGroupProps)
func NewTargetGroupBase_Override ¶
func NewTargetGroupBase_Override(t TargetGroupBase, scope constructs.Construct, id *string, baseProps *BaseTargetGroupProps, additionalProps interface{})
func TargetGroupBase_IsConstruct ¶
func TargetGroupBase_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
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 // Conditions *[]ListenerCondition `json:"conditions"` // 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. Priority *float64 `json:"priority"` // Action to perform. Action ListenerAction `json:"action"` }
Properties for adding a new action to a listener.
TODO: EXAMPLE
type AddApplicationTargetGroupsProps ¶
type AddApplicationTargetGroupsProps struct { // Rule applies if matches the conditions. // See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html // Conditions *[]ListenerCondition `json:"conditions"` // 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. Priority *float64 `json:"priority"` // Target groups to forward requests to. TargetGroups *[]IApplicationTargetGroup `json:"targetGroups"` }
Properties for adding a new target group to a listener.
TODO: EXAMPLE
type AddApplicationTargetsProps ¶
type AddApplicationTargetsProps struct { // Rule applies if matches the conditions. // See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html // Conditions *[]ListenerCondition `json:"conditions"` // 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. Priority *float64 `json:"priority"` // The amount of time for Elastic Load Balancing to wait before deregistering a target. // // The range is 0-3600 seconds. DeregistrationDelay awscdk.Duration `json:"deregistrationDelay"` // Health check configuration. HealthCheck *HealthCheck `json:"healthCheck"` // The load balancing algorithm to select targets for routing requests. LoadBalancingAlgorithmType TargetGroupLoadBalancingAlgorithmType `json:"loadBalancingAlgorithmType"` // The port on which the listener listens for requests. Port *float64 `json:"port"` // The protocol to use. Protocol ApplicationProtocol `json:"protocol"` // The protocol version to use. 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). 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). 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 // 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. 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. Targets *[]IApplicationLoadBalancerTarget `json:"targets"` }
Properties for adding new targets to a listener.
TODO: EXAMPLE
type AddNetworkActionProps ¶
type AddNetworkActionProps struct { // Action to perform. Action NetworkListenerAction `json:"action"` }
Properties for adding a new action to a listener.
TODO: EXAMPLE
type AddNetworkTargetsProps ¶
type AddNetworkTargetsProps struct { // The amount of time for Elastic Load Balancing to wait before deregistering a target. // // The range is 0-3600 seconds. DeregistrationDelay awscdk.Duration `json:"deregistrationDelay"` // Health check configuration. HealthCheck *HealthCheck `json:"healthCheck"` // The port on which the listener listens for requests. Port *float64 `json:"port"` // Indicates whether client IP preservation is enabled. PreserveClientIp *bool `json:"preserveClientIp"` // Protocol for target group, expects TCP, TLS, UDP, or TCP_UDP. Protocol Protocol `json:"protocol"` // Indicates whether Proxy Protocol version 2 is enabled. 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. 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. Targets *[]INetworkLoadBalancerTarget `json:"targets"` }
Properties for adding new network targets to a listener.
TODO: EXAMPLE
type AddRuleProps ¶
type AddRuleProps struct { // Rule applies if matches the conditions. // See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html // Conditions *[]ListenerCondition `json:"conditions"` // 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. Priority *float64 `json:"priority"` }
Properties for adding a conditional load balancing rule.
TODO: EXAMPLE
type AlpnPolicy ¶
type AlpnPolicy string
Application-Layer Protocol Negotiation Policies for network load balancers.
Which protocols should be used over a secure connection.
const ( AlpnPolicy_HTTP1_ONLY AlpnPolicy = "HTTP1_ONLY" AlpnPolicy_HTTP2_ONLY AlpnPolicy = "HTTP2_ONLY" AlpnPolicy_HTTP2_OPTIONAL AlpnPolicy = "HTTP2_OPTIONAL" AlpnPolicy_HTTP2_PREFERRED AlpnPolicy = "HTTP2_PREFERRED" AlpnPolicy_NONE AlpnPolicy = "NONE" )
type ApplicationListener ¶
type ApplicationListener interface { BaseListener IApplicationListener Connections() awsec2.Connections Env() *awscdk.ResourceEnvironment ListenerArn() *string LoadBalancer() IApplicationLoadBalancer Node() constructs.Node PhysicalName() *string Stack() awscdk.Stack AddAction(id *string, props *AddApplicationActionProps) AddCertificates(id *string, certificates *[]IListenerCertificate) 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 RegisterConnectable(connectable awsec2.IConnectable, portRange awsec2.Port) ToString() *string ValidateListener() *[]*string }
Define an ApplicationListener.
TODO: EXAMPLE
func NewApplicationListener ¶
func NewApplicationListener(scope constructs.Construct, id *string, props *ApplicationListenerProps) ApplicationListener
type ApplicationListenerAttributes ¶
type ApplicationListenerAttributes struct { // The default port on which this listener is listening. DefaultPort *float64 `json:"defaultPort"` // ARN of the listener. ListenerArn *string `json:"listenerArn"` // Security group of the load balancer this listener is associated with. SecurityGroup awsec2.ISecurityGroup `json:"securityGroup"` }
Properties to reference an existing listener.
TODO: EXAMPLE
type ApplicationListenerCertificate ¶
type ApplicationListenerCertificate interface { constructs.Construct Node() constructs.Node ToString() *string }
Add certificates to a listener.
TODO: EXAMPLE
func NewApplicationListenerCertificate ¶
func NewApplicationListenerCertificate(scope constructs.Construct, id *string, props *ApplicationListenerCertificateProps) ApplicationListenerCertificate
type ApplicationListenerCertificateProps ¶
type ApplicationListenerCertificateProps struct { // Certificates to attach. // // Duplicates are not allowed. Certificates *[]IListenerCertificate `json:"certificates"` // The listener to attach the rule to. Listener IApplicationListener `json:"listener"` }
Properties for adding a set of certificates to a listener.
TODO: EXAMPLE
type ApplicationListenerLookupOptions ¶
type ApplicationListenerLookupOptions struct { // Filter listeners by listener port. ListenerPort *float64 `json:"listenerPort"` // Filter listeners by associated load balancer arn. LoadBalancerArn *string `json:"loadBalancerArn"` // Filter listeners by associated load balancer tags. LoadBalancerTags *map[string]*string `json:"loadBalancerTags"` // ARN of the listener to look up. ListenerArn *string `json:"listenerArn"` // Filter listeners by listener protocol. ListenerProtocol ApplicationProtocol `json:"listenerProtocol"` }
Options for ApplicationListener lookup.
TODO: EXAMPLE
type ApplicationListenerProps ¶
type ApplicationListenerProps struct { // Certificate list of ACM cert ARNs. // // You must provide exactly one certificate if the listener protocol is HTTPS or TLS. 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`. 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`. 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. Open *bool `json:"open"` // The port on which the listener listens for requests. Port *float64 `json:"port"` // The protocol to use. Protocol ApplicationProtocol `json:"protocol"` // The security policy that defines which ciphers and protocols are supported. SslPolicy SslPolicy `json:"sslPolicy"` // The load balancer to attach this listener to. LoadBalancer IApplicationLoadBalancer `json:"loadBalancer"` }
Properties for defining a standalone ApplicationListener.
TODO: EXAMPLE
type ApplicationListenerRule ¶
type ApplicationListenerRule interface { constructs.Construct ListenerRuleArn() *string Node() constructs.Node AddCondition(condition ListenerCondition) ConfigureAction(action ListenerAction) ToString() *string }
Define a new listener rule.
TODO: EXAMPLE
func NewApplicationListenerRule ¶
func NewApplicationListenerRule(scope constructs.Construct, id *string, props *ApplicationListenerRuleProps) ApplicationListenerRule
type ApplicationListenerRuleProps ¶
type ApplicationListenerRuleProps struct { // Action to perform when requests are received. // // Only one of `action`, `fixedResponse`, `redirectResponse` or `targetGroups` can be specified. Action ListenerAction `json:"action"` // Rule applies if matches the conditions. // See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html // Conditions *[]ListenerCondition `json:"conditions"` // Priority of the rule. // // The rule with the lowest priority will be used for every request. // // Priorities must be unique. Priority *float64 `json:"priority"` // Target groups to forward requests to. // // Only one of `action`, `fixedResponse`, `redirectResponse` or `targetGroups` can be specified. // // Implies a `forward` action. TargetGroups *[]IApplicationTargetGroup `json:"targetGroups"` // The listener to attach the rule to. Listener IApplicationListener `json:"listener"` }
Properties for defining a listener rule.
TODO: EXAMPLE
type ApplicationLoadBalancer ¶
type ApplicationLoadBalancer interface { BaseLoadBalancer IApplicationLoadBalancer Connections() awsec2.Connections Env() *awscdk.ResourceEnvironment IpAddressType() IpAddressType Listeners() *[]ApplicationListener LoadBalancerArn() *string LoadBalancerCanonicalHostedZoneId() *string LoadBalancerDnsName() *string LoadBalancerFullName() *string LoadBalancerName() *string LoadBalancerSecurityGroups() *[]*string Node() constructs.Node 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 RemoveAttribute(key *string) SetAttribute(key *string, value *string) ToString() *string }
Define an Application Load Balancer.
TODO: EXAMPLE
func NewApplicationLoadBalancer ¶
func NewApplicationLoadBalancer(scope constructs.Construct, id *string, props *ApplicationLoadBalancerProps) ApplicationLoadBalancer
type ApplicationLoadBalancerAttributes ¶
type ApplicationLoadBalancerAttributes struct { // ARN of the load balancer. LoadBalancerArn *string `json:"loadBalancerArn"` // The canonical hosted zone ID of this load balancer. LoadBalancerCanonicalHostedZoneId *string `json:"loadBalancerCanonicalHostedZoneId"` // The DNS name of this load balancer. 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. SecurityGroupAllowsAllOutbound *bool `json:"securityGroupAllowsAllOutbound"` // ID of the load balancer's security group. SecurityGroupId *string `json:"securityGroupId"` // The VPC this load balancer has been created in, if available. Vpc awsec2.IVpc `json:"vpc"` }
Properties to reference an existing load balancer.
TODO: EXAMPLE
type ApplicationLoadBalancerLookupOptions ¶
type ApplicationLoadBalancerLookupOptions struct { // Find by load balancer's ARN. LoadBalancerArn *string `json:"loadBalancerArn"` // Match load balancer tags. LoadBalancerTags *map[string]*string `json:"loadBalancerTags"` }
Options for looking up an ApplicationLoadBalancer.
TODO: EXAMPLE
type ApplicationLoadBalancerProps ¶
type ApplicationLoadBalancerProps struct { // Indicates whether deletion protection is enabled. DeletionProtection *bool `json:"deletionProtection"` // Whether the load balancer has an internet-routable address. InternetFacing *bool `json:"internetFacing"` // Name of the load balancer. LoadBalancerName *string `json:"loadBalancerName"` // The VPC network to place the load balancer in. Vpc awsec2.IVpc `json:"vpc"` // Which subnets place the load balancer in. VpcSubnets *awsec2.SubnetSelection `json:"vpcSubnets"` // Indicates whether HTTP/2 is enabled. Http2Enabled *bool `json:"http2Enabled"` // The load balancer idle timeout, in seconds. IdleTimeout awscdk.Duration `json:"idleTimeout"` // The type of IP addresses to use. // // Only applies to application load balancers. IpAddressType IpAddressType `json:"ipAddressType"` // Security group to associate with this load balancer. SecurityGroup awsec2.ISecurityGroup `json:"securityGroup"` }
Properties for defining an Application Load Balancer.
TODO: EXAMPLE
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. Open *bool `json:"open"` // The port number to listen to. SourcePort *float64 `json:"sourcePort"` // The protocol of the listener being created. SourceProtocol ApplicationProtocol `json:"sourceProtocol"` // The port number to redirect to. TargetPort *float64 `json:"targetPort"` // The protocol of the redirection target. TargetProtocol ApplicationProtocol `json:"targetProtocol"` }
Properties for a redirection config.
TODO: EXAMPLE
type ApplicationProtocol ¶
type ApplicationProtocol string
Load balancing protocol for application load balancers.
TODO: EXAMPLE
const ( ApplicationProtocol_HTTP ApplicationProtocol = "HTTP" ApplicationProtocol_HTTPS ApplicationProtocol = "HTTPS" )
type ApplicationProtocolVersion ¶
type ApplicationProtocolVersion string
Load balancing protocol version for application load balancers.
TODO: EXAMPLE
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() constructs.IDependable LoadBalancerAttachedDependencies() constructs.DependencyGroup Node() constructs.Node 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 RegisterConnectable(connectable awsec2.IConnectable, portRange awsec2.Port) RegisterListener(listener IApplicationListener, associatingConstruct constructs.IConstruct) SetAttribute(key *string, value *string) ToString() *string ValidateTargetGroup() *[]*string }
Define an Application Target Group.
TODO: EXAMPLE
func NewApplicationTargetGroup ¶
func NewApplicationTargetGroup(scope constructs.Construct, id *string, props *ApplicationTargetGroupProps) ApplicationTargetGroup
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. DeregistrationDelay awscdk.Duration `json:"deregistrationDelay"` // Health check configuration. 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. 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. TargetType TargetType `json:"targetType"` // The virtual private cloud (VPC). // // only if `TargetType` is `Ip` or `InstanceId` Vpc awsec2.IVpc `json:"vpc"` // The load balancing algorithm to select targets for routing requests. LoadBalancingAlgorithmType TargetGroupLoadBalancingAlgorithmType `json:"loadBalancingAlgorithmType"` // The port on which the listener listens for requests. Port *float64 `json:"port"` // The protocol to use. Protocol ApplicationProtocol `json:"protocol"` // The protocol version to use. 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). 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). 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 // 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. Targets *[]IApplicationLoadBalancerTarget `json:"targets"` }
Properties for defining an Application Target Group.
TODO: EXAMPLE
type AuthenticateOidcOptions ¶
type AuthenticateOidcOptions struct { // The query parameters (up to 10) to include in the redirect request to the authorization endpoint. AuthenticationRequestExtraParams *map[string]*string `json:"authenticationRequestExtraParams"` // The authorization endpoint of the IdP. // // This must be a full URL, including the HTTPS protocol, the domain, and the path. AuthorizationEndpoint *string `json:"authorizationEndpoint"` // The OAuth 2.0 client identifier. ClientId *string `json:"clientId"` // The OAuth 2.0 client secret. 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. Issuer *string `json:"issuer"` // What action to execute next. Next ListenerAction `json:"next"` // The behavior if the user is not authenticated. 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. Scope *string `json:"scope"` // The name of the cookie used to maintain session information. SessionCookieName *string `json:"sessionCookieName"` // The maximum duration of the authentication session. SessionTimeout awscdk.Duration `json:"sessionTimeout"` // The token endpoint of the IdP. // // This must be a full URL, including the HTTPS protocol, the domain, and the path. 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. UserInfoEndpoint *string `json:"userInfoEndpoint"` }
Options for `ListenerAction.authenciateOidc()`.
TODO: EXAMPLE
type BaseApplicationListenerProps ¶
type BaseApplicationListenerProps struct { // Certificate list of ACM cert ARNs. // // You must provide exactly one certificate if the listener protocol is HTTPS or TLS. 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`. 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`. 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. Open *bool `json:"open"` // The port on which the listener listens for requests. Port *float64 `json:"port"` // The protocol to use. Protocol ApplicationProtocol `json:"protocol"` // The security policy that defines which ciphers and protocols are supported. SslPolicy SslPolicy `json:"sslPolicy"` }
Basic properties for an ApplicationListener.
TODO: EXAMPLE
type BaseApplicationListenerRuleProps ¶
type BaseApplicationListenerRuleProps struct { // Action to perform when requests are received. // // Only one of `action`, `fixedResponse`, `redirectResponse` or `targetGroups` can be specified. Action ListenerAction `json:"action"` // Rule applies if matches the conditions. // See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html // Conditions *[]ListenerCondition `json:"conditions"` // Priority of the rule. // // The rule with the lowest priority will be used for every request. // // Priorities must be unique. Priority *float64 `json:"priority"` // Target groups to forward requests to. // // Only one of `action`, `fixedResponse`, `redirectResponse` or `targetGroups` can be specified. // // Implies a `forward` action. TargetGroups *[]IApplicationTargetGroup `json:"targetGroups"` }
Basic properties for defining a rule on a listener.
TODO: EXAMPLE
type BaseListener ¶
type BaseListener interface { awscdk.Resource Env() *awscdk.ResourceEnvironment ListenerArn() *string Node() constructs.Node PhysicalName() *string Stack() awscdk.Stack ApplyRemovalPolicy(policy awscdk.RemovalPolicy) GeneratePhysicalName() *string GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string GetResourceNameAttribute(nameAttr *string) *string ToString() *string ValidateListener() *[]*string }
Base class for listeners.
type BaseListenerLookupOptions ¶
type BaseListenerLookupOptions struct { // Filter listeners by listener port. ListenerPort *float64 `json:"listenerPort"` // Filter listeners by associated load balancer arn. LoadBalancerArn *string `json:"loadBalancerArn"` // Filter listeners by associated load balancer tags. LoadBalancerTags *map[string]*string `json:"loadBalancerTags"` }
Options for listener lookup.
TODO: EXAMPLE
type BaseLoadBalancer ¶
type BaseLoadBalancer interface { awscdk.Resource Env() *awscdk.ResourceEnvironment LoadBalancerArn() *string LoadBalancerCanonicalHostedZoneId() *string LoadBalancerDnsName() *string LoadBalancerFullName() *string LoadBalancerName() *string LoadBalancerSecurityGroups() *[]*string Node() constructs.Node 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) RemoveAttribute(key *string) SetAttribute(key *string, value *string) ToString() *string }
Base class for both Application and Network Load Balancers.
type BaseLoadBalancerLookupOptions ¶
type BaseLoadBalancerLookupOptions struct { // Find by load balancer's ARN. LoadBalancerArn *string `json:"loadBalancerArn"` // Match load balancer tags. LoadBalancerTags *map[string]*string `json:"loadBalancerTags"` }
Options for looking up load balancers.
TODO: EXAMPLE
type BaseLoadBalancerProps ¶
type BaseLoadBalancerProps struct { // Indicates whether deletion protection is enabled. DeletionProtection *bool `json:"deletionProtection"` // Whether the load balancer has an internet-routable address. InternetFacing *bool `json:"internetFacing"` // Name of the load balancer. LoadBalancerName *string `json:"loadBalancerName"` // The VPC network to place the load balancer in. Vpc awsec2.IVpc `json:"vpc"` // Which subnets place the load balancer in. VpcSubnets *awsec2.SubnetSelection `json:"vpcSubnets"` }
Shared properties of both Application and Network Load Balancers.
TODO: EXAMPLE
type BaseNetworkListenerProps ¶
type BaseNetworkListenerProps struct { // Application-Layer Protocol Negotiation (ALPN) is a TLS extension that is sent on the initial TLS handshake hello messages. // // ALPN enables the application layer to negotiate which protocols should be used over a secure connection, such as HTTP/1 and HTTP/2. // // Can only be specified together with Protocol TLS. AlpnPolicy AlpnPolicy `json:"alpnPolicy"` // Certificate list of ACM cert ARNs. // // You must provide exactly one certificate if the listener protocol is HTTPS or TLS. 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`. 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`. DefaultTargetGroups *[]INetworkTargetGroup `json:"defaultTargetGroups"` // The port on which the listener listens for requests. Port *float64 `json:"port"` // Protocol for listener, expects TCP, TLS, UDP, or TCP_UDP. Protocol Protocol `json:"protocol"` // SSL Policy. SslPolicy SslPolicy `json:"sslPolicy"` }
Basic properties for a Network Listener.
TODO: EXAMPLE
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. DeregistrationDelay awscdk.Duration `json:"deregistrationDelay"` // Health check configuration. 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. 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. TargetType TargetType `json:"targetType"` // The virtual private cloud (VPC). // // only if `TargetType` is `Ip` or `InstanceId` Vpc awsec2.IVpc `json:"vpc"` }
Basic properties of both Application and Network Target Groups.
TODO: EXAMPLE
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() constructs.Node 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) OverrideLogicalId(newLogicalId *string) RenderProperties(props *map[string]interface{}) *map[string]interface{} ShouldSynthesize() *bool ToString() *string ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::ElasticLoadBalancingV2::Listener`.
TODO: EXAMPLE
func NewCfnListener ¶
func NewCfnListener(scope constructs.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() constructs.Node 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) OverrideLogicalId(newLogicalId *string) RenderProperties(props *map[string]interface{}) *map[string]interface{} ShouldSynthesize() *bool ToString() *string ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::ElasticLoadBalancingV2::ListenerCertificate`.
TODO: EXAMPLE
func NewCfnListenerCertificate ¶
func NewCfnListenerCertificate(scope constructs.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`.
TODO: EXAMPLE
type CfnListenerCertificate_CertificateProperty ¶
type CfnListenerCertificate_CertificateProperty struct { // `CfnListenerCertificate.CertificateProperty.CertificateArn`. CertificateArn *string `json:"certificateArn"` }
TODO: EXAMPLE
type CfnListenerProps ¶
type CfnListenerProps struct { // `AWS::ElasticLoadBalancingV2::Listener.AlpnPolicy`. AlpnPolicy *[]*string `json:"alpnPolicy"` // `AWS::ElasticLoadBalancingV2::Listener.Certificates`. Certificates interface{} `json:"certificates"` // `AWS::ElasticLoadBalancingV2::Listener.DefaultActions`. DefaultActions interface{} `json:"defaultActions"` // `AWS::ElasticLoadBalancingV2::Listener.LoadBalancerArn`. LoadBalancerArn *string `json:"loadBalancerArn"` // `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`.
TODO: EXAMPLE
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() constructs.Node 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) OverrideLogicalId(newLogicalId *string) RenderProperties(props *map[string]interface{}) *map[string]interface{} ShouldSynthesize() *bool ToString() *string ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::ElasticLoadBalancingV2::ListenerRule`.
TODO: EXAMPLE
func NewCfnListenerRule ¶
func NewCfnListenerRule(scope constructs.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`.
TODO: EXAMPLE
type CfnListenerRule_ActionProperty ¶
type CfnListenerRule_ActionProperty struct { // `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"` // `CfnListenerRule.ActionProperty.Type`. Type *string `json:"type"` }
TODO: EXAMPLE
type CfnListenerRule_AuthenticateCognitoConfigProperty ¶
type CfnListenerRule_AuthenticateCognitoConfigProperty struct { // `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"` // `CfnListenerRule.AuthenticateCognitoConfigProperty.UserPoolArn`. UserPoolArn *string `json:"userPoolArn"` // `CfnListenerRule.AuthenticateCognitoConfigProperty.UserPoolClientId`. UserPoolClientId *string `json:"userPoolClientId"` // `CfnListenerRule.AuthenticateCognitoConfigProperty.UserPoolDomain`. UserPoolDomain *string `json:"userPoolDomain"` }
TODO: EXAMPLE
type CfnListenerRule_AuthenticateOidcConfigProperty ¶
type CfnListenerRule_AuthenticateOidcConfigProperty struct { // `CfnListenerRule.AuthenticateOidcConfigProperty.AuthenticationRequestExtraParams`. AuthenticationRequestExtraParams interface{} `json:"authenticationRequestExtraParams"` // `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.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.TokenEndpoint`. TokenEndpoint *string `json:"tokenEndpoint"` // `CfnListenerRule.AuthenticateOidcConfigProperty.UseExistingClientSecret`. UseExistingClientSecret interface{} `json:"useExistingClientSecret"` // `CfnListenerRule.AuthenticateOidcConfigProperty.UserInfoEndpoint`. UserInfoEndpoint *string `json:"userInfoEndpoint"` }
TODO: EXAMPLE
type CfnListenerRule_FixedResponseConfigProperty ¶
type CfnListenerRule_FixedResponseConfigProperty struct { // `CfnListenerRule.FixedResponseConfigProperty.ContentType`. ContentType *string `json:"contentType"` // `CfnListenerRule.FixedResponseConfigProperty.MessageBody`. MessageBody *string `json:"messageBody"` // `CfnListenerRule.FixedResponseConfigProperty.StatusCode`. StatusCode *string `json:"statusCode"` }
TODO: EXAMPLE
type CfnListenerRule_ForwardConfigProperty ¶
type CfnListenerRule_ForwardConfigProperty struct { // `CfnListenerRule.ForwardConfigProperty.TargetGroups`. TargetGroups interface{} `json:"targetGroups"` // `CfnListenerRule.ForwardConfigProperty.TargetGroupStickinessConfig`. TargetGroupStickinessConfig interface{} `json:"targetGroupStickinessConfig"` }
TODO: EXAMPLE
type CfnListenerRule_HostHeaderConfigProperty ¶
type CfnListenerRule_HostHeaderConfigProperty struct { // `CfnListenerRule.HostHeaderConfigProperty.Values`. Values *[]*string `json:"values"` }
TODO: EXAMPLE
type CfnListenerRule_HttpHeaderConfigProperty ¶
type CfnListenerRule_HttpHeaderConfigProperty struct { // `CfnListenerRule.HttpHeaderConfigProperty.HttpHeaderName`. HttpHeaderName *string `json:"httpHeaderName"` // `CfnListenerRule.HttpHeaderConfigProperty.Values`. Values *[]*string `json:"values"` }
TODO: EXAMPLE
type CfnListenerRule_HttpRequestMethodConfigProperty ¶
type CfnListenerRule_HttpRequestMethodConfigProperty struct { // `CfnListenerRule.HttpRequestMethodConfigProperty.Values`. Values *[]*string `json:"values"` }
TODO: EXAMPLE
type CfnListenerRule_PathPatternConfigProperty ¶
type CfnListenerRule_PathPatternConfigProperty struct { // `CfnListenerRule.PathPatternConfigProperty.Values`. Values *[]*string `json:"values"` }
TODO: EXAMPLE
type CfnListenerRule_QueryStringConfigProperty ¶
type CfnListenerRule_QueryStringConfigProperty struct {
// `CfnListenerRule.QueryStringConfigProperty.Values`.
Values interface{} `json:"values"`
}
TODO: EXAMPLE
type CfnListenerRule_QueryStringKeyValueProperty ¶
type CfnListenerRule_QueryStringKeyValueProperty struct { // `CfnListenerRule.QueryStringKeyValueProperty.Key`. Key *string `json:"key"` // `CfnListenerRule.QueryStringKeyValueProperty.Value`. Value *string `json:"value"` }
TODO: EXAMPLE
type CfnListenerRule_RedirectConfigProperty ¶
type CfnListenerRule_RedirectConfigProperty struct { // `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"` // `CfnListenerRule.RedirectConfigProperty.StatusCode`. StatusCode *string `json:"statusCode"` }
TODO: EXAMPLE
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"` }
TODO: EXAMPLE
type CfnListenerRule_SourceIpConfigProperty ¶
type CfnListenerRule_SourceIpConfigProperty struct { // `CfnListenerRule.SourceIpConfigProperty.Values`. Values *[]*string `json:"values"` }
TODO: EXAMPLE
type CfnListenerRule_TargetGroupStickinessConfigProperty ¶
type CfnListenerRule_TargetGroupStickinessConfigProperty struct { // `CfnListenerRule.TargetGroupStickinessConfigProperty.DurationSeconds`. DurationSeconds *float64 `json:"durationSeconds"` // `CfnListenerRule.TargetGroupStickinessConfigProperty.Enabled`. Enabled interface{} `json:"enabled"` }
TODO: EXAMPLE
type CfnListenerRule_TargetGroupTupleProperty ¶
type CfnListenerRule_TargetGroupTupleProperty struct { // `CfnListenerRule.TargetGroupTupleProperty.TargetGroupArn`. TargetGroupArn *string `json:"targetGroupArn"` // `CfnListenerRule.TargetGroupTupleProperty.Weight`. Weight *float64 `json:"weight"` }
TODO: EXAMPLE
type CfnListener_ActionProperty ¶
type CfnListener_ActionProperty struct { // `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"` // `CfnListener.ActionProperty.Type`. Type *string `json:"type"` }
TODO: EXAMPLE
type CfnListener_AuthenticateCognitoConfigProperty ¶
type CfnListener_AuthenticateCognitoConfigProperty struct { // `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"` // `CfnListener.AuthenticateCognitoConfigProperty.UserPoolArn`. UserPoolArn *string `json:"userPoolArn"` // `CfnListener.AuthenticateCognitoConfigProperty.UserPoolClientId`. UserPoolClientId *string `json:"userPoolClientId"` // `CfnListener.AuthenticateCognitoConfigProperty.UserPoolDomain`. UserPoolDomain *string `json:"userPoolDomain"` }
TODO: EXAMPLE
type CfnListener_AuthenticateOidcConfigProperty ¶
type CfnListener_AuthenticateOidcConfigProperty struct { // `CfnListener.AuthenticateOidcConfigProperty.AuthenticationRequestExtraParams`. AuthenticationRequestExtraParams interface{} `json:"authenticationRequestExtraParams"` // `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.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"` // `CfnListener.AuthenticateOidcConfigProperty.TokenEndpoint`. TokenEndpoint *string `json:"tokenEndpoint"` // `CfnListener.AuthenticateOidcConfigProperty.UserInfoEndpoint`. UserInfoEndpoint *string `json:"userInfoEndpoint"` }
TODO: EXAMPLE
type CfnListener_CertificateProperty ¶
type CfnListener_CertificateProperty struct { // `CfnListener.CertificateProperty.CertificateArn`. CertificateArn *string `json:"certificateArn"` }
TODO: EXAMPLE
type CfnListener_FixedResponseConfigProperty ¶
type CfnListener_FixedResponseConfigProperty struct { // `CfnListener.FixedResponseConfigProperty.ContentType`. ContentType *string `json:"contentType"` // `CfnListener.FixedResponseConfigProperty.MessageBody`. MessageBody *string `json:"messageBody"` // `CfnListener.FixedResponseConfigProperty.StatusCode`. StatusCode *string `json:"statusCode"` }
TODO: EXAMPLE
type CfnListener_ForwardConfigProperty ¶
type CfnListener_ForwardConfigProperty struct { // `CfnListener.ForwardConfigProperty.TargetGroups`. TargetGroups interface{} `json:"targetGroups"` // `CfnListener.ForwardConfigProperty.TargetGroupStickinessConfig`. TargetGroupStickinessConfig interface{} `json:"targetGroupStickinessConfig"` }
TODO: EXAMPLE
type CfnListener_RedirectConfigProperty ¶
type CfnListener_RedirectConfigProperty struct { // `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"` // `CfnListener.RedirectConfigProperty.StatusCode`. StatusCode *string `json:"statusCode"` }
TODO: EXAMPLE
type CfnListener_TargetGroupStickinessConfigProperty ¶
type CfnListener_TargetGroupStickinessConfigProperty struct { // `CfnListener.TargetGroupStickinessConfigProperty.DurationSeconds`. DurationSeconds *float64 `json:"durationSeconds"` // `CfnListener.TargetGroupStickinessConfigProperty.Enabled`. Enabled interface{} `json:"enabled"` }
TODO: EXAMPLE
type CfnListener_TargetGroupTupleProperty ¶
type CfnListener_TargetGroupTupleProperty struct { // `CfnListener.TargetGroupTupleProperty.TargetGroupArn`. TargetGroupArn *string `json:"targetGroupArn"` // `CfnListener.TargetGroupTupleProperty.Weight`. Weight *float64 `json:"weight"` }
TODO: EXAMPLE
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() constructs.Node 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) OverrideLogicalId(newLogicalId *string) RenderProperties(props *map[string]interface{}) *map[string]interface{} ShouldSynthesize() *bool ToString() *string ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::ElasticLoadBalancingV2::LoadBalancer`.
TODO: EXAMPLE
func NewCfnLoadBalancer ¶
func NewCfnLoadBalancer(scope constructs.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`.
TODO: EXAMPLE
type CfnLoadBalancer_LoadBalancerAttributeProperty ¶
type CfnLoadBalancer_LoadBalancerAttributeProperty struct { // `CfnLoadBalancer.LoadBalancerAttributeProperty.Key`. Key *string `json:"key"` // `CfnLoadBalancer.LoadBalancerAttributeProperty.Value`. Value *string `json:"value"` }
TODO: EXAMPLE
type CfnLoadBalancer_SubnetMappingProperty ¶
type CfnLoadBalancer_SubnetMappingProperty struct { // `CfnLoadBalancer.SubnetMappingProperty.AllocationId`. AllocationId *string `json:"allocationId"` // `CfnLoadBalancer.SubnetMappingProperty.IPv6Address`. IPv6Address *string `json:"iPv6Address"` // `CfnLoadBalancer.SubnetMappingProperty.PrivateIPv4Address`. PrivateIPv4Address *string `json:"privateIPv4Address"` // `CfnLoadBalancer.SubnetMappingProperty.SubnetId`. SubnetId *string `json:"subnetId"` }
TODO: EXAMPLE
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) IpAddressType() *string SetIpAddressType(val *string) LogicalId() *string Matcher() interface{} SetMatcher(val interface{}) Name() *string SetName(val *string) Node() constructs.Node 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) OverrideLogicalId(newLogicalId *string) RenderProperties(props *map[string]interface{}) *map[string]interface{} ShouldSynthesize() *bool ToString() *string ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::ElasticLoadBalancingV2::TargetGroup`.
TODO: EXAMPLE
func NewCfnTargetGroup ¶
func NewCfnTargetGroup(scope constructs.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.IpAddressType`. IpAddressType *string `json:"ipAddressType"` // `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`.
TODO: EXAMPLE
type CfnTargetGroup_MatcherProperty ¶
type CfnTargetGroup_MatcherProperty struct { // `CfnTargetGroup.MatcherProperty.GrpcCode`. GrpcCode *string `json:"grpcCode"` // `CfnTargetGroup.MatcherProperty.HttpCode`. HttpCode *string `json:"httpCode"` }
TODO: EXAMPLE
type CfnTargetGroup_TargetDescriptionProperty ¶
type CfnTargetGroup_TargetDescriptionProperty struct { // `CfnTargetGroup.TargetDescriptionProperty.AvailabilityZone`. AvailabilityZone *string `json:"availabilityZone"` // `CfnTargetGroup.TargetDescriptionProperty.Id`. Id *string `json:"id"` // `CfnTargetGroup.TargetDescriptionProperty.Port`. Port *float64 `json:"port"` }
TODO: EXAMPLE
type CfnTargetGroup_TargetGroupAttributeProperty ¶
type CfnTargetGroup_TargetGroupAttributeProperty struct { // `CfnTargetGroup.TargetGroupAttributeProperty.Key`. Key *string `json:"key"` // `CfnTargetGroup.TargetGroupAttributeProperty.Value`. Value *string `json:"value"` }
TODO: EXAMPLE
type FixedResponseOptions ¶
type FixedResponseOptions struct { // Content Type of the response. // // Valid Values: text/plain | text/css | text/html | application/javascript | application/json ContentType *string `json:"contentType"` // The response body. MessageBody *string `json:"messageBody"` }
Options for `ListenerAction.fixedResponse()`.
TODO: EXAMPLE
type ForwardOptions ¶
type ForwardOptions struct { // For how long clients should be directed to the same target group. // // Range between 1 second and 7 days. StickinessDuration awscdk.Duration `json:"stickinessDuration"` }
Options for `ListenerAction.forward()`.
TODO: EXAMPLE
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. 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"). 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"). 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. HealthyThresholdCount *float64 `json:"healthyThresholdCount"` // The approximate number of seconds between health checks for an individual target. Interval awscdk.Duration `json:"interval"` // The ping path destination where Elastic Load Balancing sends health check requests. Path *string `json:"path"` // The port that the load balancer uses when performing health checks on the targets. 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. 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. 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. UnhealthyThresholdCount *float64 `json:"unhealthyThresholdCount"` }
Properties for configuring a health check.
TODO: EXAMPLE
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.
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.
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. 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. 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 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. RegisterConnectable(connectable awsec2.IConnectable, portRange awsec2.Port) // ARN of the listener. ListenerArn() *string }
Properties to reference an existing listener.
func ApplicationListener_FromApplicationListenerAttributes ¶
func ApplicationListener_FromApplicationListenerAttributes(scope constructs.Construct, id *string, attrs *ApplicationListenerAttributes) IApplicationListener
Import an existing listener.
func ApplicationListener_FromLookup ¶
func ApplicationListener_FromLookup(scope constructs.Construct, id *string, options *ApplicationListenerLookupOptions) IApplicationListener
Look up an ApplicationListener.
type IApplicationLoadBalancer ¶
type IApplicationLoadBalancer interface { awsec2.IConnectable ILoadBalancerV2 // Add a new listener to this load balancer. AddListener(id *string, props *BaseApplicationListenerProps) ApplicationListener // The IP Address Type for this load balancer. IpAddressType() IpAddressType // A list of listeners that have been added to the load balancer. // // This list is only valid for owned constructs. Listeners() *[]ApplicationListener // The ARN of this load balancer. 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. Vpc() awsec2.IVpc }
An application load balancer.
func ApplicationLoadBalancer_FromApplicationLoadBalancerAttributes ¶
func ApplicationLoadBalancer_FromApplicationLoadBalancerAttributes(scope constructs.Construct, id *string, attrs *ApplicationLoadBalancerAttributes) IApplicationLoadBalancer
Import an existing Application Load Balancer.
func ApplicationLoadBalancer_FromLookup ¶
func ApplicationLoadBalancer_FromLookup(scope constructs.Construct, id *string, options *ApplicationLoadBalancerLookupOptions) IApplicationLoadBalancer
Look up an application load balancer.
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. AttachToApplicationTargetGroup(targetGroup IApplicationTargetGroup) *LoadBalancerTargetProps }
Interface for constructs that can be targets of an application load balancer.
type IApplicationTargetGroup ¶
type IApplicationTargetGroup interface { ITargetGroup // Add a load balancing target to this target group. 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. 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. RegisterListener(listener IApplicationListener, associatingConstruct constructs.IConstruct) }
A Target Group for Application Load Balancers.
func ApplicationTargetGroup_FromTargetGroupAttributes ¶
func ApplicationTargetGroup_FromTargetGroupAttributes(scope constructs.Construct, id *string, attrs *TargetGroupAttributes) IApplicationTargetGroup
Import an existing target group.
type IListenerAction ¶
type IListenerAction interface { // Render the actions in this chain. RenderActions() *[]*CfnListener_ActionProperty }
Interface for listener actions.
type IListenerCertificate ¶
type IListenerCertificate interface { // The ARN of the certificate to use. CertificateArn() *string }
A certificate source for an ELBv2 listener.
type ILoadBalancerV2 ¶
type ILoadBalancerV2 interface { awscdk.IResource // The canonical hosted zone ID of this load balancer. // // Example value: `Z2P70J7EXAMPLE` LoadBalancerCanonicalHostedZoneId() *string // The DNS name of this load balancer. // // Example value: `my-load-balancer-424835706.us-west-2.elb.amazonaws.com` LoadBalancerDnsName() *string }
type INetworkListener ¶
type INetworkListener interface { awscdk.IResource // ARN of the listener. ListenerArn() *string }
Properties to reference an existing listener.
func NetworkListener_FromLookup ¶
func NetworkListener_FromLookup(scope constructs.Construct, id *string, options *NetworkListenerLookupOptions) INetworkListener
Looks up a network listener.
func NetworkListener_FromNetworkListenerArn ¶
func NetworkListener_FromNetworkListenerArn(scope constructs.Construct, id *string, networkListenerArn *string) INetworkListener
Import an existing listener.
type INetworkLoadBalancer ¶
type INetworkLoadBalancer interface { ILoadBalancerV2 awsec2.IVpcEndpointServiceLoadBalancer // Add a listener to this load balancer. // // Returns: The newly created listener AddListener(id *string, props *BaseNetworkListenerProps) NetworkListener // The VPC this load balancer has been created in (if available). Vpc() awsec2.IVpc }
A network load balancer.
func NetworkLoadBalancer_FromLookup ¶
func NetworkLoadBalancer_FromLookup(scope constructs.Construct, id *string, options *NetworkLoadBalancerLookupOptions) INetworkLoadBalancer
Looks up the network load balancer.
func NetworkLoadBalancer_FromNetworkLoadBalancerAttributes ¶
func NetworkLoadBalancer_FromNetworkLoadBalancerAttributes(scope constructs.Construct, id *string, attrs *NetworkLoadBalancerAttributes) INetworkLoadBalancer
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. AttachToNetworkTargetGroup(targetGroup INetworkTargetGroup) *LoadBalancerTargetProps }
Interface for constructs that can be targets of an network load balancer.
type INetworkTargetGroup ¶
type INetworkTargetGroup interface { ITargetGroup // Add a load balancing target to this target group. 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. RegisterListener(listener INetworkListener) }
A network target group.
func NetworkTargetGroup_FromTargetGroupAttributes ¶
func NetworkTargetGroup_FromTargetGroupAttributes(scope constructs.Construct, id *string, attrs *TargetGroupAttributes) INetworkTargetGroup
Import an existing target group.
type ITargetGroup ¶
type ITargetGroup interface { constructs.IConstruct // A token representing a list of ARNs of the load balancers that route traffic to this target group. LoadBalancerArns() *string // Return an object to depend on the listeners added to this target group. LoadBalancerAttached() constructs.IDependable // ARN of the target group. TargetGroupArn() *string }
A target group.
type IpAddressType ¶
type IpAddressType string
What kind of addresses to allocate to the load balancer.
const ( IpAddressType_DUAL_STACK IpAddressType = "DUAL_STACK" IpAddressType_IPV4 IpAddressType = "IPV4" )
type ListenerAction ¶
type ListenerAction interface { IListenerAction Next() ListenerAction Bind(scope constructs.Construct, listener IApplicationListener, associatingConstruct constructs.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).
TODO: EXAMPLE
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
func ListenerAction_FixedResponse ¶
func ListenerAction_FixedResponse(statusCode *float64, options *FixedResponseOptions) ListenerAction
Return a fixed response. See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#fixed-response-actions
func ListenerAction_Forward ¶
func ListenerAction_Forward(targetGroups *[]IApplicationTargetGroup, options *ForwardOptions) ListenerAction
Forward to one or more Target Groups. See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#forward-actions
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
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
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.
type ListenerCertificate ¶
type ListenerCertificate interface { IListenerCertificate CertificateArn() *string }
A certificate source for an ELBv2 listener.
TODO: EXAMPLE
func ListenerCertificate_FromArn ¶
func ListenerCertificate_FromArn(certificateArn *string) ListenerCertificate
Use any certificate, identified by its ARN, as a listener certificate.
func ListenerCertificate_FromCertificateManager ¶
func ListenerCertificate_FromCertificateManager(acmCertificate awscertificatemanager.ICertificate) ListenerCertificate
Use an ACM certificate as a listener certificate.
func NewListenerCertificate ¶
func NewListenerCertificate(certificateArn *string) ListenerCertificate
type ListenerCondition ¶
type ListenerCondition interface {
RenderRawCondition() interface{}
}
ListenerCondition providers definition.
TODO: EXAMPLE
func ListenerCondition_HostHeaders ¶
func ListenerCondition_HostHeaders(values *[]*string) ListenerCondition
Create a host-header listener rule condition.
func ListenerCondition_HttpHeader ¶
func ListenerCondition_HttpHeader(name *string, values *[]*string) ListenerCondition
Create a http-header listener rule condition.
func ListenerCondition_HttpRequestMethods ¶
func ListenerCondition_HttpRequestMethods(values *[]*string) ListenerCondition
Create a http-request-method listener rule condition.
func ListenerCondition_PathPatterns ¶
func ListenerCondition_PathPatterns(values *[]*string) ListenerCondition
Create a path-pattern listener rule condition.
func ListenerCondition_QueryStrings ¶
func ListenerCondition_QueryStrings(values *[]*QueryStringCondition) ListenerCondition
Create a query-string listener rule condition.
func ListenerCondition_SourceIps ¶
func ListenerCondition_SourceIps(values *[]*string) ListenerCondition
Create a source-ip listener rule condition.
type LoadBalancerTargetProps ¶
type LoadBalancerTargetProps struct { // JSON representing the target's direct addition to the TargetGroup list. // // May be omitted if the target is going to register itself later. TargetJson interface{} `json:"targetJson"` // What kind of target this is. TargetType TargetType `json:"targetType"` }
Result of attaching a target to load balancer.
TODO: EXAMPLE
type NetworkForwardOptions ¶
type NetworkForwardOptions struct { // For how long clients should be directed to the same target group. // // Range between 1 second and 7 days. StickinessDuration awscdk.Duration `json:"stickinessDuration"` }
Options for `NetworkListenerAction.forward()`.
TODO: EXAMPLE
type NetworkListener ¶
type NetworkListener interface { BaseListener INetworkListener Env() *awscdk.ResourceEnvironment ListenerArn() *string LoadBalancer() INetworkLoadBalancer Node() constructs.Node 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 ToString() *string ValidateListener() *[]*string }
Define a Network Listener.
TODO: EXAMPLE
func NewNetworkListener ¶
func NewNetworkListener(scope constructs.Construct, id *string, props *NetworkListenerProps) NetworkListener
type NetworkListenerAction ¶
type NetworkListenerAction interface { IListenerAction Next() NetworkListenerAction Bind(scope constructs.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.
TODO: EXAMPLE
func NetworkListenerAction_Forward ¶
func NetworkListenerAction_Forward(targetGroups *[]INetworkTargetGroup, options *NetworkForwardOptions) NetworkListenerAction
Forward to one or more Target Groups.
func NetworkListenerAction_WeightedForward ¶
func NetworkListenerAction_WeightedForward(targetGroups *[]*NetworkWeightedTargetGroup, options *NetworkForwardOptions) NetworkListenerAction
Forward to one or more Target Groups which are weighted differently.
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.
type NetworkListenerLookupOptions ¶
type NetworkListenerLookupOptions struct { // Filter listeners by listener port. ListenerPort *float64 `json:"listenerPort"` // Filter listeners by associated load balancer arn. LoadBalancerArn *string `json:"loadBalancerArn"` // Filter listeners by associated load balancer tags. LoadBalancerTags *map[string]*string `json:"loadBalancerTags"` // Protocol of the listener port. ListenerProtocol Protocol `json:"listenerProtocol"` }
Options for looking up a network listener.
TODO: EXAMPLE
type NetworkListenerProps ¶
type NetworkListenerProps struct { // Application-Layer Protocol Negotiation (ALPN) is a TLS extension that is sent on the initial TLS handshake hello messages. // // ALPN enables the application layer to negotiate which protocols should be used over a secure connection, such as HTTP/1 and HTTP/2. // // Can only be specified together with Protocol TLS. AlpnPolicy AlpnPolicy `json:"alpnPolicy"` // Certificate list of ACM cert ARNs. // // You must provide exactly one certificate if the listener protocol is HTTPS or TLS. 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`. 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`. DefaultTargetGroups *[]INetworkTargetGroup `json:"defaultTargetGroups"` // The port on which the listener listens for requests. Port *float64 `json:"port"` // Protocol for listener, expects TCP, TLS, UDP, or TCP_UDP. Protocol Protocol `json:"protocol"` // SSL Policy. SslPolicy SslPolicy `json:"sslPolicy"` // The load balancer to attach this listener to. LoadBalancer INetworkLoadBalancer `json:"loadBalancer"` }
Properties for a Network Listener attached to a Load Balancer.
TODO: EXAMPLE
type NetworkLoadBalancer ¶
type NetworkLoadBalancer interface { BaseLoadBalancer INetworkLoadBalancer Env() *awscdk.ResourceEnvironment LoadBalancerArn() *string LoadBalancerCanonicalHostedZoneId() *string LoadBalancerDnsName() *string LoadBalancerFullName() *string LoadBalancerName() *string LoadBalancerSecurityGroups() *[]*string Node() constructs.Node 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 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 RemoveAttribute(key *string) SetAttribute(key *string, value *string) ToString() *string }
Define a new network load balancer.
TODO: EXAMPLE
func NewNetworkLoadBalancer ¶
func NewNetworkLoadBalancer(scope constructs.Construct, id *string, props *NetworkLoadBalancerProps) NetworkLoadBalancer
type NetworkLoadBalancerAttributes ¶
type NetworkLoadBalancerAttributes struct { // ARN of the load balancer. LoadBalancerArn *string `json:"loadBalancerArn"` // The canonical hosted zone ID of this load balancer. LoadBalancerCanonicalHostedZoneId *string `json:"loadBalancerCanonicalHostedZoneId"` // The DNS name of this load balancer. LoadBalancerDnsName *string `json:"loadBalancerDnsName"` // The VPC to associate with the load balancer. Vpc awsec2.IVpc `json:"vpc"` }
Properties to reference an existing load balancer.
TODO: EXAMPLE
type NetworkLoadBalancerLookupOptions ¶
type NetworkLoadBalancerLookupOptions struct { // Find by load balancer's ARN. LoadBalancerArn *string `json:"loadBalancerArn"` // Match load balancer tags. LoadBalancerTags *map[string]*string `json:"loadBalancerTags"` }
Options for looking up an NetworkLoadBalancer.
TODO: EXAMPLE
type NetworkLoadBalancerProps ¶
type NetworkLoadBalancerProps struct { // Indicates whether deletion protection is enabled. DeletionProtection *bool `json:"deletionProtection"` // Whether the load balancer has an internet-routable address. InternetFacing *bool `json:"internetFacing"` // Name of the load balancer. LoadBalancerName *string `json:"loadBalancerName"` // The VPC network to place the load balancer in. Vpc awsec2.IVpc `json:"vpc"` // Which subnets place the load balancer in. VpcSubnets *awsec2.SubnetSelection `json:"vpcSubnets"` // Indicates whether cross-zone load balancing is enabled. CrossZoneEnabled *bool `json:"crossZoneEnabled"` }
Properties for a network load balancer.
TODO: EXAMPLE
type NetworkTargetGroup ¶
type NetworkTargetGroup interface { TargetGroupBase INetworkTargetGroup DefaultPort() *float64 FirstLoadBalancerFullName() *string HealthCheck() *HealthCheck SetHealthCheck(val *HealthCheck) LoadBalancerArns() *string LoadBalancerAttached() constructs.IDependable LoadBalancerAttachedDependencies() constructs.DependencyGroup Node() constructs.Node 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 RegisterListener(listener INetworkListener) SetAttribute(key *string, value *string) ToString() *string ValidateTargetGroup() *[]*string }
Define a Network Target Group.
TODO: EXAMPLE
func NewNetworkTargetGroup ¶
func NewNetworkTargetGroup(scope constructs.Construct, id *string, props *NetworkTargetGroupProps) NetworkTargetGroup
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. DeregistrationDelay awscdk.Duration `json:"deregistrationDelay"` // Health check configuration. 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. 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. TargetType TargetType `json:"targetType"` // The virtual private cloud (VPC). // // only if `TargetType` is `Ip` or `InstanceId` Vpc awsec2.IVpc `json:"vpc"` // The port on which the listener listens for requests. Port *float64 `json:"port"` // Indicates whether client IP preservation is enabled. PreserveClientIp *bool `json:"preserveClientIp"` // Protocol for target group, expects TCP, TLS, UDP, or TCP_UDP. Protocol Protocol `json:"protocol"` // Indicates whether Proxy Protocol version 2 is enabled. 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. Targets *[]INetworkLoadBalancerTarget `json:"targets"` }
Properties for a new Network Target Group.
TODO: EXAMPLE
type NetworkWeightedTargetGroup ¶
type NetworkWeightedTargetGroup struct { // The target group. TargetGroup INetworkTargetGroup `json:"targetGroup"` // The target group's weight. // // Range is [0..1000). Weight *float64 `json:"weight"` }
A Target Group and weight combination.
TODO: EXAMPLE
type Protocol ¶
type Protocol string
Backend protocol for network load balancers and health checks.
TODO: EXAMPLE
type QueryStringCondition ¶
type QueryStringCondition struct { // The query string key for the condition. Key *string `json:"key"` // The query string value for the condition. Value *string `json:"value"` }
Properties for the key/value pair of the query string.
TODO: EXAMPLE
type RedirectOptions ¶
type RedirectOptions struct { // The hostname. // // This component is not percent-encoded. The hostname can contain #{host}. 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}. Path *string `json:"path"` // The HTTP redirect code. // // The redirect is either permanent (HTTP 301) or temporary (HTTP 302). Permanent *bool `json:"permanent"` // The port. // // You can specify a value from 1 to 65535 or #{port}. 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. 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. 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".
TODO: EXAMPLE
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.
TODO: EXAMPLE
See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/create-https-listener.html
const ( SslPolicy_FORWARD_SECRECY SslPolicy = "FORWARD_SECRECY" SslPolicy_FORWARD_SECRECY_TLS11 SslPolicy = "FORWARD_SECRECY_TLS11" SslPolicy_FORWARD_SECRECY_TLS12 SslPolicy = "FORWARD_SECRECY_TLS12" SslPolicy_FORWARD_SECRECY_TLS12_RES SslPolicy = "FORWARD_SECRECY_TLS12_RES" SslPolicy_FORWARD_SECRECY_TLS12_RES_GCM SslPolicy = "FORWARD_SECRECY_TLS12_RES_GCM" SslPolicy_LEGACY SslPolicy = "LEGACY" SslPolicy_RECOMMENDED SslPolicy = "RECOMMENDED" SslPolicy_TLS11 SslPolicy = "TLS11" SslPolicy_TLS12 SslPolicy = "TLS12" SslPolicy_TLS12_EXT SslPolicy = "TLS12_EXT" )
type TargetGroupAttributes ¶
type TargetGroupAttributes struct { // A Token representing the list of ARNs for the load balancer routing to this target group. LoadBalancerArns *string `json:"loadBalancerArns"` // ARN of the target group. TargetGroupArn *string `json:"targetGroupArn"` }
Properties to reference an existing target group.
TODO: EXAMPLE
type TargetGroupBase ¶
type TargetGroupBase interface { constructs.Construct ITargetGroup DefaultPort() *float64 FirstLoadBalancerFullName() *string HealthCheck() *HealthCheck SetHealthCheck(val *HealthCheck) LoadBalancerArns() *string LoadBalancerAttached() constructs.IDependable LoadBalancerAttachedDependencies() constructs.DependencyGroup Node() constructs.Node TargetGroupArn() *string TargetGroupFullName() *string TargetGroupLoadBalancerArns() *[]*string TargetGroupName() *string TargetType() TargetType SetTargetType(val TargetType) AddLoadBalancerTarget(props *LoadBalancerTargetProps) ConfigureHealthCheck(healthCheck *HealthCheck) SetAttribute(key *string, value *string) ToString() *string ValidateTargetGroup() *[]*string }
Define the target of a load balancer.
type TargetGroupLoadBalancingAlgorithmType ¶
type TargetGroupLoadBalancingAlgorithmType string
Load balancing algorithmm type for target groups.
const ( TargetGroupLoadBalancingAlgorithmType_LEAST_OUTSTANDING_REQUESTS TargetGroupLoadBalancingAlgorithmType = "LEAST_OUTSTANDING_REQUESTS" TargetGroupLoadBalancingAlgorithmType_ROUND_ROBIN TargetGroupLoadBalancingAlgorithmType = "ROUND_ROBIN" )
type TargetType ¶
type TargetType string
How to interpret the load balancing target identifiers.
TODO: EXAMPLE
const ( TargetType_ALB TargetType = "ALB" TargetType_INSTANCE TargetType = "INSTANCE" TargetType_IP TargetType = "IP" TargetType_LAMBDA TargetType = "LAMBDA" )
type UnauthenticatedAction ¶
type UnauthenticatedAction string
What to do with unauthenticated requests.
const ( UnauthenticatedAction_ALLOW UnauthenticatedAction = "ALLOW" UnauthenticatedAction_AUTHENTICATE UnauthenticatedAction = "AUTHENTICATE" UnauthenticatedAction_DENY UnauthenticatedAction = "DENY" )
type WeightedTargetGroup ¶
type WeightedTargetGroup struct { // The target group. TargetGroup IApplicationTargetGroup `json:"targetGroup"` // The target group's weight. // // Range is [0..1000). Weight *float64 `json:"weight"` }
A Target Group and weight combination.
TODO: EXAMPLE