Class CfnListenerPropsMixin.ActionProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.elasticloadbalancingv2.CfnListenerPropsMixin.ActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnListenerPropsMixin.ActionProperty>
- Enclosing interface:
CfnListenerPropsMixin.ActionProperty
@Stability(Stable)
public static final class CfnListenerPropsMixin.ActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnListenerPropsMixin.ActionProperty>
A builder for
CfnListenerPropsMixin.ActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticateCognitoConfig(CfnListenerPropsMixin.AuthenticateCognitoConfigProperty authenticateCognitoConfig) Sets the value ofCfnListenerPropsMixin.ActionProperty.getAuthenticateCognitoConfig()authenticateCognitoConfig(IResolvable authenticateCognitoConfig) Sets the value ofCfnListenerPropsMixin.ActionProperty.getAuthenticateCognitoConfig()authenticateOidcConfig(CfnListenerPropsMixin.AuthenticateOidcConfigProperty authenticateOidcConfig) Sets the value ofCfnListenerPropsMixin.ActionProperty.getAuthenticateOidcConfig()authenticateOidcConfig(IResolvable authenticateOidcConfig) Sets the value ofCfnListenerPropsMixin.ActionProperty.getAuthenticateOidcConfig()build()Builds the configured instance.fixedResponseConfig(CfnListenerPropsMixin.FixedResponseConfigProperty fixedResponseConfig) Sets the value ofCfnListenerPropsMixin.ActionProperty.getFixedResponseConfig()fixedResponseConfig(IResolvable fixedResponseConfig) Sets the value ofCfnListenerPropsMixin.ActionProperty.getFixedResponseConfig()forwardConfig(CfnListenerPropsMixin.ForwardConfigProperty forwardConfig) Sets the value ofCfnListenerPropsMixin.ActionProperty.getForwardConfig()forwardConfig(IResolvable forwardConfig) Sets the value ofCfnListenerPropsMixin.ActionProperty.getForwardConfig()jwtValidationConfig(CfnListenerPropsMixin.JwtValidationConfigProperty jwtValidationConfig) Sets the value ofCfnListenerPropsMixin.ActionProperty.getJwtValidationConfig()jwtValidationConfig(IResolvable jwtValidationConfig) Sets the value ofCfnListenerPropsMixin.ActionProperty.getJwtValidationConfig()Sets the value ofCfnListenerPropsMixin.ActionProperty.getOrder()redirectConfig(CfnListenerPropsMixin.RedirectConfigProperty redirectConfig) Sets the value ofCfnListenerPropsMixin.ActionProperty.getRedirectConfig()redirectConfig(IResolvable redirectConfig) Sets the value ofCfnListenerPropsMixin.ActionProperty.getRedirectConfig()targetGroupArn(String targetGroupArn) Sets the value ofCfnListenerPropsMixin.ActionProperty.getTargetGroupArn()targetGroupArn(ITargetGroupRef targetGroupArn) Sets the value ofCfnListenerPropsMixin.ActionProperty.getTargetGroupArn()Sets the value ofCfnListenerPropsMixin.ActionProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authenticateCognitoConfig
@Stability(Stable) public CfnListenerPropsMixin.ActionProperty.Builder authenticateCognitoConfig(IResolvable authenticateCognitoConfig) Sets the value ofCfnListenerPropsMixin.ActionProperty.getAuthenticateCognitoConfig()- Parameters:
authenticateCognitoConfig- [HTTPS listeners] Information for using Amazon Cognito to authenticate users. Specify only whenTypeisauthenticate-cognito.- Returns:
this
-
authenticateCognitoConfig
@Stability(Stable) public CfnListenerPropsMixin.ActionProperty.Builder authenticateCognitoConfig(CfnListenerPropsMixin.AuthenticateCognitoConfigProperty authenticateCognitoConfig) Sets the value ofCfnListenerPropsMixin.ActionProperty.getAuthenticateCognitoConfig()- Parameters:
authenticateCognitoConfig- [HTTPS listeners] Information for using Amazon Cognito to authenticate users. Specify only whenTypeisauthenticate-cognito.- Returns:
this
-
authenticateOidcConfig
@Stability(Stable) public CfnListenerPropsMixin.ActionProperty.Builder authenticateOidcConfig(IResolvable authenticateOidcConfig) Sets the value ofCfnListenerPropsMixin.ActionProperty.getAuthenticateOidcConfig()- Parameters:
authenticateOidcConfig- [HTTPS listeners] Information about an identity provider that is compliant with OpenID Connect (OIDC). Specify only whenTypeisauthenticate-oidc.- Returns:
this
-
authenticateOidcConfig
@Stability(Stable) public CfnListenerPropsMixin.ActionProperty.Builder authenticateOidcConfig(CfnListenerPropsMixin.AuthenticateOidcConfigProperty authenticateOidcConfig) Sets the value ofCfnListenerPropsMixin.ActionProperty.getAuthenticateOidcConfig()- Parameters:
authenticateOidcConfig- [HTTPS listeners] Information about an identity provider that is compliant with OpenID Connect (OIDC). Specify only whenTypeisauthenticate-oidc.- Returns:
this
-
fixedResponseConfig
@Stability(Stable) public CfnListenerPropsMixin.ActionProperty.Builder fixedResponseConfig(IResolvable fixedResponseConfig) Sets the value ofCfnListenerPropsMixin.ActionProperty.getFixedResponseConfig()- Parameters:
fixedResponseConfig- [Application Load Balancer] Information for creating an action that returns a custom HTTP response. Specify only whenTypeisfixed-response.- Returns:
this
-
fixedResponseConfig
@Stability(Stable) public CfnListenerPropsMixin.ActionProperty.Builder fixedResponseConfig(CfnListenerPropsMixin.FixedResponseConfigProperty fixedResponseConfig) Sets the value ofCfnListenerPropsMixin.ActionProperty.getFixedResponseConfig()- Parameters:
fixedResponseConfig- [Application Load Balancer] Information for creating an action that returns a custom HTTP response. Specify only whenTypeisfixed-response.- Returns:
this
-
forwardConfig
@Stability(Stable) public CfnListenerPropsMixin.ActionProperty.Builder forwardConfig(IResolvable forwardConfig) Sets the value ofCfnListenerPropsMixin.ActionProperty.getForwardConfig()- Parameters:
forwardConfig- Information for creating an action that distributes requests among multiple target groups. Specify only whenTypeisforward. If you specify bothForwardConfigandTargetGroupArn, you can specify only one target group usingForwardConfigand it must be the same target group specified inTargetGroupArn.- Returns:
this
-
forwardConfig
@Stability(Stable) public CfnListenerPropsMixin.ActionProperty.Builder forwardConfig(CfnListenerPropsMixin.ForwardConfigProperty forwardConfig) Sets the value ofCfnListenerPropsMixin.ActionProperty.getForwardConfig()- Parameters:
forwardConfig- Information for creating an action that distributes requests among multiple target groups. Specify only whenTypeisforward. If you specify bothForwardConfigandTargetGroupArn, you can specify only one target group usingForwardConfigand it must be the same target group specified inTargetGroupArn.- Returns:
this
-
jwtValidationConfig
@Stability(Stable) public CfnListenerPropsMixin.ActionProperty.Builder jwtValidationConfig(IResolvable jwtValidationConfig) Sets the value ofCfnListenerPropsMixin.ActionProperty.getJwtValidationConfig()- Parameters:
jwtValidationConfig- [HTTPS listeners] Information for validating JWT access tokens in client requests. Specify only whenTypeisjwt-validation.- Returns:
this
-
jwtValidationConfig
@Stability(Stable) public CfnListenerPropsMixin.ActionProperty.Builder jwtValidationConfig(CfnListenerPropsMixin.JwtValidationConfigProperty jwtValidationConfig) Sets the value ofCfnListenerPropsMixin.ActionProperty.getJwtValidationConfig()- Parameters:
jwtValidationConfig- [HTTPS listeners] Information for validating JWT access tokens in client requests. Specify only whenTypeisjwt-validation.- Returns:
this
-
order
Sets the value ofCfnListenerPropsMixin.ActionProperty.getOrder()- Parameters:
order- The order for the action. This value is required for rules with multiple actions. The action with the lowest value for order is performed first.- Returns:
this
-
redirectConfig
@Stability(Stable) public CfnListenerPropsMixin.ActionProperty.Builder redirectConfig(IResolvable redirectConfig) Sets the value ofCfnListenerPropsMixin.ActionProperty.getRedirectConfig()- Parameters:
redirectConfig- [Application Load Balancer] Information for creating a redirect action. Specify only whenTypeisredirect.- Returns:
this
-
redirectConfig
@Stability(Stable) public CfnListenerPropsMixin.ActionProperty.Builder redirectConfig(CfnListenerPropsMixin.RedirectConfigProperty redirectConfig) Sets the value ofCfnListenerPropsMixin.ActionProperty.getRedirectConfig()- Parameters:
redirectConfig- [Application Load Balancer] Information for creating a redirect action. Specify only whenTypeisredirect.- Returns:
this
-
targetGroupArn
@Stability(Stable) public CfnListenerPropsMixin.ActionProperty.Builder targetGroupArn(String targetGroupArn) Sets the value ofCfnListenerPropsMixin.ActionProperty.getTargetGroupArn()- Parameters:
targetGroupArn- The Amazon Resource Name (ARN) of the target group. Specify only whenTypeisforwardand you want to route to a single target group. To route to multiple target groups, you must useForwardConfiginstead.- Returns:
this
-
targetGroupArn
@Stability(Stable) public CfnListenerPropsMixin.ActionProperty.Builder targetGroupArn(ITargetGroupRef targetGroupArn) Sets the value ofCfnListenerPropsMixin.ActionProperty.getTargetGroupArn()- Parameters:
targetGroupArn- The Amazon Resource Name (ARN) of the target group. Specify only whenTypeisforwardand you want to route to a single target group. To route to multiple target groups, you must useForwardConfiginstead.- Returns:
this
-
type
Sets the value ofCfnListenerPropsMixin.ActionProperty.getType()- Parameters:
type- The type of action.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnListenerPropsMixin.ActionProperty>- Returns:
- a new instance of
CfnListenerPropsMixin.ActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-