Interface AdminRevokeUserSessionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CognitoIdentityProviderRequest.Builder,CopyableBuilder<AdminRevokeUserSessionRequest.Builder,,AdminRevokeUserSessionRequest> SdkBuilder<AdminRevokeUserSessionRequest.Builder,,AdminRevokeUserSessionRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
AdminRevokeUserSessionRequest
-
Method Summary
Modifier and TypeMethodDescriptionoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.revokeAssociatedSessions(String revokeAssociatedSessions) Specifies whether to also revoke the sessions that are linked to the targeted session.revokeAssociatedSessions(RevokeAssociatedSessionsType revokeAssociatedSessions) Specifies whether to also revoke the sessions that are linked to the targeted session.The ID of the session to revoke.The username of the user who owns the session.userPoolId(String userPoolId) The ID of the user pool that contains the session.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.cognitoidentityprovider.model.CognitoIdentityProviderRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
userPoolId
The ID of the user pool that contains the session.
- Parameters:
userPoolId- The ID of the user pool that contains the session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
username
The username of the user who owns the session. The username must match the user associated with the
SessionId, to confirm they are the intended target user.- Parameters:
username- The username of the user who owns the session. The username must match the user associated with theSessionId, to confirm they are the intended target user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionId
The ID of the session to revoke. This is a 28-character string of lowercase letters and digits, prefixed with
tknfor a token session orssofor an SSO session.- Parameters:
sessionId- The ID of the session to revoke. This is a 28-character string of lowercase letters and digits, prefixed withtknfor a token session orssofor an SSO session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
revokeAssociatedSessions
Specifies whether to also revoke the sessions that are linked to the targeted session.
NONE, the default, revokes only the targeted session.LINKEDalso revokes the directly linked session or sessions, interpreted relative to the type of the targeted session: revoking a token session also revokes the parent SSO session it came through, and revoking an SSO session also revokes the token sessions that came through it. The set of linked sessions is eventually consistent, so associated sessions are typically revoked within a few seconds.- Parameters:
revokeAssociatedSessions- Specifies whether to also revoke the sessions that are linked to the targeted session.NONE, the default, revokes only the targeted session.LINKEDalso revokes the directly linked session or sessions, interpreted relative to the type of the targeted session: revoking a token session also revokes the parent SSO session it came through, and revoking an SSO session also revokes the token sessions that came through it. The set of linked sessions is eventually consistent, so associated sessions are typically revoked within a few seconds.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
revokeAssociatedSessions
AdminRevokeUserSessionRequest.Builder revokeAssociatedSessions(RevokeAssociatedSessionsType revokeAssociatedSessions) Specifies whether to also revoke the sessions that are linked to the targeted session.
NONE, the default, revokes only the targeted session.LINKEDalso revokes the directly linked session or sessions, interpreted relative to the type of the targeted session: revoking a token session also revokes the parent SSO session it came through, and revoking an SSO session also revokes the token sessions that came through it. The set of linked sessions is eventually consistent, so associated sessions are typically revoked within a few seconds.- Parameters:
revokeAssociatedSessions- Specifies whether to also revoke the sessions that are linked to the targeted session.NONE, the default, revokes only the targeted session.LINKEDalso revokes the directly linked session or sessions, interpreted relative to the type of the targeted session: revoking a token session also revokes the parent SSO session it came through, and revoking an SSO session also revokes the token sessions that came through it. The set of linked sessions is eventually consistent, so associated sessions are typically revoked within a few seconds.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
AdminRevokeUserSessionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
AdminRevokeUserSessionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-