Class CfnListener.AuthenticateCognitoConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.CfnListener.AuthenticateCognitoConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnListener.AuthenticateCognitoConfigProperty>
- Enclosing interface:
CfnListener.AuthenticateCognitoConfigProperty
@Stability(Stable)
public static final class CfnListener.AuthenticateCognitoConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnListener.AuthenticateCognitoConfigProperty>
A builder for
CfnListener.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 ofCfnListener.AuthenticateCognitoConfigProperty.getScope()sessionCookieName(String sessionCookieName) Sets the value ofCfnListener.AuthenticateCognitoConfigProperty.getSessionCookieName()sessionTimeout(String sessionTimeout) Sets the value ofCfnListener.AuthenticateCognitoConfigProperty.getSessionTimeout()userPoolArn(String userPoolArn) Sets the value ofCfnListener.AuthenticateCognitoConfigProperty.getUserPoolArn()userPoolClientId(String userPoolClientId) Sets the value ofCfnListener.AuthenticateCognitoConfigProperty.getUserPoolClientId()userPoolDomain(String userPoolDomain) Sets the value ofCfnListener.AuthenticateCognitoConfigProperty.getUserPoolDomain()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
userPoolArn
@Stability(Stable) public CfnListener.AuthenticateCognitoConfigProperty.Builder userPoolArn(String userPoolArn) Sets the value ofCfnListener.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 CfnListener.AuthenticateCognitoConfigProperty.Builder userPoolClientId(String userPoolClientId) Sets the value ofCfnListener.AuthenticateCognitoConfigProperty.getUserPoolClientId()- Parameters:
userPoolClientId- The ID of the Amazon Cognito user pool client. This parameter is required.- Returns:
this
-
userPoolDomain
@Stability(Stable) public CfnListener.AuthenticateCognitoConfigProperty.Builder userPoolDomain(String userPoolDomain) Sets the value ofCfnListener.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 CfnListener.AuthenticateCognitoConfigProperty.Builder authenticationRequestExtraParams(Map<String, String> authenticationRequestExtraParams) Sets the value ofCfnListener.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 CfnListener.AuthenticateCognitoConfigProperty.Builder authenticationRequestExtraParams(IResolvable authenticationRequestExtraParams) Sets the value ofCfnListener.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 CfnListener.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
Sets the value ofCfnListener.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 CfnListener.AuthenticateCognitoConfigProperty.Builder sessionCookieName(String sessionCookieName) Sets the value ofCfnListener.AuthenticateCognitoConfigProperty.getSessionCookieName()- Parameters:
sessionCookieName- The name of the cookie used to maintain session information. The default is AWSELBAuthSessionCookie.- Returns:
this
-
sessionTimeout
@Stability(Stable) public CfnListener.AuthenticateCognitoConfigProperty.Builder sessionTimeout(String sessionTimeout) Sets the value ofCfnListener.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<CfnListener.AuthenticateCognitoConfigProperty>- Returns:
- a new instance of
CfnListener.AuthenticateCognitoConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-