Class CfnListenerRule.ActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.CfnListenerRule.ActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnListenerRule.ActionProperty>
- Enclosing interface:
CfnListenerRule.ActionProperty
@Stability(Stable)
public static final class CfnListenerRule.ActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnListenerRule.ActionProperty>
A builder for
CfnListenerRule.ActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticateCognitoConfig(IResolvable authenticateCognitoConfig) Sets the value ofCfnListenerRule.ActionProperty.getAuthenticateCognitoConfig()authenticateCognitoConfig(CfnListenerRule.AuthenticateCognitoConfigProperty authenticateCognitoConfig) Sets the value ofCfnListenerRule.ActionProperty.getAuthenticateCognitoConfig()authenticateOidcConfig(IResolvable authenticateOidcConfig) Sets the value ofCfnListenerRule.ActionProperty.getAuthenticateOidcConfig()authenticateOidcConfig(CfnListenerRule.AuthenticateOidcConfigProperty authenticateOidcConfig) Sets the value ofCfnListenerRule.ActionProperty.getAuthenticateOidcConfig()build()Builds the configured instance.fixedResponseConfig(IResolvable fixedResponseConfig) Sets the value ofCfnListenerRule.ActionProperty.getFixedResponseConfig()fixedResponseConfig(CfnListenerRule.FixedResponseConfigProperty fixedResponseConfig) Sets the value ofCfnListenerRule.ActionProperty.getFixedResponseConfig()forwardConfig(IResolvable forwardConfig) Sets the value ofCfnListenerRule.ActionProperty.getForwardConfig()forwardConfig(CfnListenerRule.ForwardConfigProperty forwardConfig) Sets the value ofCfnListenerRule.ActionProperty.getForwardConfig()Sets the value ofCfnListenerRule.ActionProperty.getOrder()redirectConfig(IResolvable redirectConfig) Sets the value ofCfnListenerRule.ActionProperty.getRedirectConfig()redirectConfig(CfnListenerRule.RedirectConfigProperty redirectConfig) Sets the value ofCfnListenerRule.ActionProperty.getRedirectConfig()targetGroupArn(String targetGroupArn) Sets the value ofCfnListenerRule.ActionProperty.getTargetGroupArn()Sets the value ofCfnListenerRule.ActionProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnListenerRule.ActionProperty.getType()- Parameters:
type- The type of action. This parameter is required.- Returns:
this
-
authenticateCognitoConfig
@Stability(Stable) public CfnListenerRule.ActionProperty.Builder authenticateCognitoConfig(IResolvable authenticateCognitoConfig) Sets the value ofCfnListenerRule.ActionProperty.getAuthenticateCognitoConfig()- Parameters:
authenticateCognitoConfig- [HTTPS listeners] Information for using Amazon Cognito to authenticate users. Specify only whenTypeisauthenticate-cognito.- Returns:
this
-
authenticateCognitoConfig
@Stability(Stable) public CfnListenerRule.ActionProperty.Builder authenticateCognitoConfig(CfnListenerRule.AuthenticateCognitoConfigProperty authenticateCognitoConfig) Sets the value ofCfnListenerRule.ActionProperty.getAuthenticateCognitoConfig()- Parameters:
authenticateCognitoConfig- [HTTPS listeners] Information for using Amazon Cognito to authenticate users. Specify only whenTypeisauthenticate-cognito.- Returns:
this
-
authenticateOidcConfig
@Stability(Stable) public CfnListenerRule.ActionProperty.Builder authenticateOidcConfig(IResolvable authenticateOidcConfig) Sets the value ofCfnListenerRule.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 CfnListenerRule.ActionProperty.Builder authenticateOidcConfig(CfnListenerRule.AuthenticateOidcConfigProperty authenticateOidcConfig) Sets the value ofCfnListenerRule.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 CfnListenerRule.ActionProperty.Builder fixedResponseConfig(IResolvable fixedResponseConfig) Sets the value ofCfnListenerRule.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 CfnListenerRule.ActionProperty.Builder fixedResponseConfig(CfnListenerRule.FixedResponseConfigProperty fixedResponseConfig) Sets the value ofCfnListenerRule.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 CfnListenerRule.ActionProperty.Builder forwardConfig(IResolvable forwardConfig) Sets the value ofCfnListenerRule.ActionProperty.getForwardConfig()- Parameters:
forwardConfig- Information for creating an action that distributes requests among one or more target groups. For Network Load Balancers, you can specify a single target group. 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 CfnListenerRule.ActionProperty.Builder forwardConfig(CfnListenerRule.ForwardConfigProperty forwardConfig) Sets the value ofCfnListenerRule.ActionProperty.getForwardConfig()- Parameters:
forwardConfig- Information for creating an action that distributes requests among one or more target groups. For Network Load Balancers, you can specify a single target group. 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
-
order
Sets the value ofCfnListenerRule.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 CfnListenerRule.ActionProperty.Builder redirectConfig(IResolvable redirectConfig) Sets the value ofCfnListenerRule.ActionProperty.getRedirectConfig()- Parameters:
redirectConfig- [Application Load Balancer] Information for creating a redirect action. Specify only whenTypeisredirect.- Returns:
this
-
redirectConfig
@Stability(Stable) public CfnListenerRule.ActionProperty.Builder redirectConfig(CfnListenerRule.RedirectConfigProperty redirectConfig) Sets the value ofCfnListenerRule.ActionProperty.getRedirectConfig()- Parameters:
redirectConfig- [Application Load Balancer] Information for creating a redirect action. Specify only whenTypeisredirect.- Returns:
this
-
targetGroupArn
@Stability(Stable) public CfnListenerRule.ActionProperty.Builder targetGroupArn(String targetGroupArn) Sets the value ofCfnListenerRule.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 one or more target groups, useForwardConfiginstead.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnListenerRule.ActionProperty>- Returns:
- a new instance of
CfnListenerRule.ActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-