Class AuthenticateCognitoActionProps.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.actions.AuthenticateCognitoActionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AuthenticateCognitoActionProps>
- Enclosing interface:
AuthenticateCognitoActionProps
@Stability(Stable)
public static final class AuthenticateCognitoActionProps.Builder
extends Object
implements software.amazon.jsii.Builder<AuthenticateCognitoActionProps>
A builder for
AuthenticateCognitoActionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallowHttpsOutbound
(Boolean allowHttpsOutbound) Sets the value ofAuthenticateCognitoActionProps.getAllowHttpsOutbound()
authenticationRequestExtraParams
(Map<String, String> authenticationRequestExtraParams) Sets the value ofAuthenticateCognitoActionProps.getAuthenticationRequestExtraParams()
build()
Builds the configured instance.next
(ListenerAction next) Sets the value ofAuthenticateCognitoActionProps.getNext()
onUnauthenticatedRequest
(UnauthenticatedAction onUnauthenticatedRequest) Sets the value ofAuthenticateCognitoActionProps.getOnUnauthenticatedRequest()
Sets the value ofAuthenticateCognitoActionProps.getScope()
sessionCookieName
(String sessionCookieName) Sets the value ofAuthenticateCognitoActionProps.getSessionCookieName()
sessionTimeout
(Duration sessionTimeout) Sets the value ofAuthenticateCognitoActionProps.getSessionTimeout()
Sets the value ofAuthenticateCognitoActionProps.getUserPool()
userPoolClient
(IUserPoolClient userPoolClient) Sets the value ofAuthenticateCognitoActionProps.getUserPoolClient()
userPoolDomain
(IUserPoolDomain userPoolDomain) Sets the value ofAuthenticateCognitoActionProps.getUserPoolDomain()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
next
Sets the value ofAuthenticateCognitoActionProps.getNext()
- Parameters:
next
- What action to execute next. This parameter is required. Multiple actions form a linked chain; the chain must always terminate in a (weighted)forward, fixedResponse or redirect action.- Returns:
this
-
userPool
Sets the value ofAuthenticateCognitoActionProps.getUserPool()
- Parameters:
userPool
- The Amazon Cognito user pool. This parameter is required.- Returns:
this
-
userPoolClient
@Stability(Stable) public AuthenticateCognitoActionProps.Builder userPoolClient(IUserPoolClient userPoolClient) Sets the value ofAuthenticateCognitoActionProps.getUserPoolClient()
- Parameters:
userPoolClient
- The Amazon Cognito user pool client. This parameter is required.- Returns:
this
-
userPoolDomain
@Stability(Stable) public AuthenticateCognitoActionProps.Builder userPoolDomain(IUserPoolDomain userPoolDomain) Sets the value ofAuthenticateCognitoActionProps.getUserPoolDomain()
- Parameters:
userPoolDomain
- The domain prefix or fully-qualified domain name of the Amazon Cognito user pool. This parameter is required.- Returns:
this
-
allowHttpsOutbound
@Stability(Stable) public AuthenticateCognitoActionProps.Builder allowHttpsOutbound(Boolean allowHttpsOutbound) Sets the value ofAuthenticateCognitoActionProps.getAllowHttpsOutbound()
- Parameters:
allowHttpsOutbound
- Allow HTTPS outbound traffic to communicate with the IdP. Set this property to false if the IP address used for the IdP endpoint is identifiable and you want to control outbound traffic. Then allow HTTPS outbound traffic to the IdP's IP address using the listener'sconnections
property.- Returns:
this
-
authenticationRequestExtraParams
@Stability(Stable) public AuthenticateCognitoActionProps.Builder authenticationRequestExtraParams(Map<String, String> authenticationRequestExtraParams) Sets the value ofAuthenticateCognitoActionProps.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 AuthenticateCognitoActionProps.Builder onUnauthenticatedRequest(UnauthenticatedAction onUnauthenticatedRequest) Sets the value ofAuthenticateCognitoActionProps.getOnUnauthenticatedRequest()
- Parameters:
onUnauthenticatedRequest
- The behavior if the user is not authenticated.- Returns:
this
-
scope
Sets the value ofAuthenticateCognitoActionProps.getScope()
- Parameters:
scope
- 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.- Returns:
this
-
sessionCookieName
@Stability(Stable) public AuthenticateCognitoActionProps.Builder sessionCookieName(String sessionCookieName) Sets the value ofAuthenticateCognitoActionProps.getSessionCookieName()
- Parameters:
sessionCookieName
- The name of the cookie used to maintain session information.- Returns:
this
-
sessionTimeout
@Stability(Stable) public AuthenticateCognitoActionProps.Builder sessionTimeout(Duration sessionTimeout) Sets the value ofAuthenticateCognitoActionProps.getSessionTimeout()
- Parameters:
sessionTimeout
- The maximum duration of the authentication session.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AuthenticateCognitoActionProps>
- Returns:
- a new instance of
AuthenticateCognitoActionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-