@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:08.760Z") @Stability(value=Experimental) public interface AuthenticateCognitoActionProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.core.*;
import software.amazon.awscdk.services.cognito.*;
import software.amazon.awscdk.services.elasticloadbalancingv2.*;
import software.amazon.awscdk.services.elasticloadbalancingv2.actions.*;
Duration duration;
ListenerAction listenerAction;
UserPool userPool;
UserPoolClient userPoolClient;
UserPoolDomain userPoolDomain;
AuthenticateCognitoActionProps authenticateCognitoActionProps = AuthenticateCognitoActionProps.builder()
.next(listenerAction)
.userPool(userPool)
.userPoolClient(userPoolClient)
.userPoolDomain(userPoolDomain)
// the properties below are optional
.authenticationRequestExtraParams(Map.of(
"authenticationRequestExtraParamsKey", "authenticationRequestExtraParams"))
.onUnauthenticatedRequest(UnauthenticatedAction.DENY)
.scope("scope")
.sessionCookieName("sessionCookieName")
.sessionTimeout(duration)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
AuthenticateCognitoActionProps.Builder
A builder for
AuthenticateCognitoActionProps |
static class |
AuthenticateCognitoActionProps.Jsii$Proxy
An implementation for
AuthenticateCognitoActionProps |
| Modifier and Type | Method and Description |
|---|---|
static AuthenticateCognitoActionProps.Builder |
builder() |
default Map<String,String> |
getAuthenticationRequestExtraParams()
(experimental) The query parameters (up to 10) to include in the redirect request to the authorization endpoint.
|
ListenerAction |
getNext()
(experimental) What action to execute next.
|
default UnauthenticatedAction |
getOnUnauthenticatedRequest()
(experimental) The behavior if the user is not authenticated.
|
default String |
getScope()
(experimental) The set of user claims to be requested from the IdP.
|
default String |
getSessionCookieName()
(experimental) The name of the cookie used to maintain session information.
|
default Duration |
getSessionTimeout()
(experimental) The maximum duration of the authentication session.
|
IUserPool |
getUserPool()
(experimental) The Amazon Cognito user pool.
|
IUserPoolClient |
getUserPoolClient()
(experimental) The Amazon Cognito user pool client.
|
IUserPoolDomain |
getUserPoolDomain()
(experimental) The domain prefix or fully-qualified domain name of the Amazon Cognito user pool.
|
@Stability(value=Experimental) @NotNull ListenerAction getNext()
Multiple actions form a linked chain; the chain must always terminate in a (weighted)forward, fixedResponse or redirect action.
@Stability(value=Experimental) @NotNull IUserPool getUserPool()
@Stability(value=Experimental) @NotNull IUserPoolClient getUserPoolClient()
@Stability(value=Experimental) @NotNull IUserPoolDomain getUserPoolDomain()
@Stability(value=Experimental) @Nullable default Map<String,String> getAuthenticationRequestExtraParams()
Default: - No extra parameters
@Stability(value=Experimental) @Nullable default UnauthenticatedAction getOnUnauthenticatedRequest()
Default: UnauthenticatedAction.AUTHENTICATE
@Stability(value=Experimental) @Nullable default String getScope()
To verify which scope values your IdP supports and how to separate multiple values, see the documentation for your IdP.
Default: "openid"
@Stability(value=Experimental) @Nullable default String getSessionCookieName()
Default: "AWSELBAuthSessionCookie"
@Stability(value=Experimental) @Nullable default Duration getSessionTimeout()
Default: Duration.days(7)
@Stability(value=Experimental) static AuthenticateCognitoActionProps.Builder builder()
Copyright © 2022. All rights reserved.