Class CfnListenerRule.AuthenticateCognitoConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.CfnListenerRule.AuthenticateCognitoConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnListenerRule.AuthenticateCognitoConfigProperty>
- Enclosing interface:
CfnListenerRule.AuthenticateCognitoConfigProperty
@Stability(Stable)
public static final class CfnListenerRule.AuthenticateCognitoConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnListenerRule.AuthenticateCognitoConfigProperty>
A builder for
CfnListenerRule.AuthenticateCognitoConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticationRequestExtraParams(Map<String, String> authenticationRequestExtraParams) authenticationRequestExtraParams(IResolvable authenticationRequestExtraParams) build()Builds the configured instance.onUnauthenticatedRequest(String onUnauthenticatedRequest) Sets the value ofCfnListenerRule.AuthenticateCognitoConfigProperty.getScope()sessionCookieName(String sessionCookieName) Sets the value ofCfnListenerRule.AuthenticateCognitoConfigProperty.getSessionCookieName()sessionTimeout(Number sessionTimeout) Sets the value ofCfnListenerRule.AuthenticateCognitoConfigProperty.getSessionTimeout()userPoolArn(String userPoolArn) Sets the value ofCfnListenerRule.AuthenticateCognitoConfigProperty.getUserPoolArn()userPoolClientId(String userPoolClientId) Sets the value ofCfnListenerRule.AuthenticateCognitoConfigProperty.getUserPoolClientId()userPoolDomain(String userPoolDomain) Sets the value ofCfnListenerRule.AuthenticateCognitoConfigProperty.getUserPoolDomain()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
userPoolArn
@Stability(Stable) public CfnListenerRule.AuthenticateCognitoConfigProperty.Builder userPoolArn(String userPoolArn) Sets the value ofCfnListenerRule.AuthenticateCognitoConfigProperty.getUserPoolArn()- Parameters:
userPoolArn- The Amazon Resource Name (ARN) of the Amazon Cognito user pool. This parameter is required.- Returns:
this
-
userPoolClientId
@Stability(Stable) public CfnListenerRule.AuthenticateCognitoConfigProperty.Builder userPoolClientId(String userPoolClientId) Sets the value ofCfnListenerRule.AuthenticateCognitoConfigProperty.getUserPoolClientId()- Parameters:
userPoolClientId- The ID of the Amazon Cognito user pool client. This parameter is required.- Returns:
this
-
userPoolDomain
@Stability(Stable) public CfnListenerRule.AuthenticateCognitoConfigProperty.Builder userPoolDomain(String userPoolDomain) Sets the value ofCfnListenerRule.AuthenticateCognitoConfigProperty.getUserPoolDomain()- Parameters:
userPoolDomain- The domain prefix or fully-qualified domain name of the Amazon Cognito user pool. This parameter is required.- Returns:
this
-
authenticationRequestExtraParams
@Stability(Stable) public CfnListenerRule.AuthenticateCognitoConfigProperty.Builder authenticationRequestExtraParams(Map<String, String> authenticationRequestExtraParams) Sets the value ofCfnListenerRule.AuthenticateCognitoConfigProperty.getAuthenticationRequestExtraParams()- Parameters:
authenticationRequestExtraParams- The query parameters (up to 10) to include in the redirect request to the authorization endpoint.- Returns:
this
-
authenticationRequestExtraParams
@Stability(Stable) public CfnListenerRule.AuthenticateCognitoConfigProperty.Builder authenticationRequestExtraParams(IResolvable authenticationRequestExtraParams) Sets the value ofCfnListenerRule.AuthenticateCognitoConfigProperty.getAuthenticationRequestExtraParams()- Parameters:
authenticationRequestExtraParams- The query parameters (up to 10) to include in the redirect request to the authorization endpoint.- Returns:
this
-
onUnauthenticatedRequest
@Stability(Stable) public CfnListenerRule.AuthenticateCognitoConfigProperty.Builder onUnauthenticatedRequest(String onUnauthenticatedRequest) - Parameters:
onUnauthenticatedRequest- The behavior if the user is not authenticated. The following are possible values:.- deny `` - Return an HTTP 401 Unauthorized error.
- allow `` - Allow the request to be forwarded to the target.
- authenticate `` - Redirect the request to the IdP authorization endpoint. This is the default value.
- Returns:
this
-
scope
@Stability(Stable) public CfnListenerRule.AuthenticateCognitoConfigProperty.Builder scope(String scope) Sets the value ofCfnListenerRule.AuthenticateCognitoConfigProperty.getScope()- Parameters:
scope- The set of user claims to be requested from the IdP. The default isopenid. To verify which scope values your IdP supports and how to separate multiple values, see the documentation for your IdP.- Returns:
this
-
sessionCookieName
@Stability(Stable) public CfnListenerRule.AuthenticateCognitoConfigProperty.Builder sessionCookieName(String sessionCookieName) Sets the value ofCfnListenerRule.AuthenticateCognitoConfigProperty.getSessionCookieName()- Parameters:
sessionCookieName- The name of the cookie used to maintain session information. The default is AWSELBAuthSessionCookie.- Returns:
this
-
sessionTimeout
@Stability(Stable) public CfnListenerRule.AuthenticateCognitoConfigProperty.Builder sessionTimeout(Number sessionTimeout) Sets the value ofCfnListenerRule.AuthenticateCognitoConfigProperty.getSessionTimeout()- Parameters:
sessionTimeout- The maximum duration of the authentication session, in seconds. The default is 604800 seconds (7 days).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnListenerRule.AuthenticateCognitoConfigProperty>- Returns:
- a new instance of
CfnListenerRule.AuthenticateCognitoConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-