Interface SetRiskConfigurationRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CognitoIdentityProviderRequest.Builder
,CopyableBuilder<SetRiskConfigurationRequest.Builder,
,SetRiskConfigurationRequest> SdkBuilder<SetRiskConfigurationRequest.Builder,
,SetRiskConfigurationRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
SetRiskConfigurationRequest
-
Method Summary
Modifier and TypeMethodDescriptionaccountTakeoverRiskConfiguration
(Consumer<AccountTakeoverRiskConfigurationType.Builder> accountTakeoverRiskConfiguration) The settings for automated responses and notification templates for adaptive authentication with threat protection.accountTakeoverRiskConfiguration
(AccountTakeoverRiskConfigurationType accountTakeoverRiskConfiguration) The settings for automated responses and notification templates for adaptive authentication with threat protection.The ID of the app client where you want to set a risk configuration.compromisedCredentialsRiskConfiguration
(Consumer<CompromisedCredentialsRiskConfigurationType.Builder> compromisedCredentialsRiskConfiguration) The configuration of automated reactions to detected compromised credentials.compromisedCredentialsRiskConfiguration
(CompromisedCredentialsRiskConfigurationType compromisedCredentialsRiskConfiguration) The configuration of automated reactions to detected compromised credentials.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.riskExceptionConfiguration
(Consumer<RiskExceptionConfigurationType.Builder> riskExceptionConfiguration) A set of IP-address overrides to threat protection.riskExceptionConfiguration
(RiskExceptionConfigurationType riskExceptionConfiguration) A set of IP-address overrides to threat protection.userPoolId
(String userPoolId) The ID of the user pool where you want to set a risk configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.cognitoidentityprovider.model.CognitoIdentityProviderRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
userPoolId
The ID of the user pool where you want to set a risk configuration. If you include
UserPoolId
in your request, don't includeClientId
. When the client ID is null, the same risk configuration is applied to all the clients in the userPool. When you include bothClientId
andUserPoolId
, Amazon Cognito maps the configuration to the app client only.- Parameters:
userPoolId
- The ID of the user pool where you want to set a risk configuration. If you includeUserPoolId
in your request, don't includeClientId
. When the client ID is null, the same risk configuration is applied to all the clients in the userPool. When you include bothClientId
andUserPoolId
, Amazon Cognito maps the configuration to the app client only.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientId
The ID of the app client where you want to set a risk configuration. If
ClientId
is null, then the risk configuration is mapped toUserPoolId
. When the client ID is null, the same risk configuration is applied to all the clients in the userPool.When you include a
ClientId
parameter, Amazon Cognito maps the configuration to the app client. When you include bothClientId
andUserPoolId
, Amazon Cognito maps the configuration to the app client only.- Parameters:
clientId
- The ID of the app client where you want to set a risk configuration. IfClientId
is null, then the risk configuration is mapped toUserPoolId
. When the client ID is null, the same risk configuration is applied to all the clients in the userPool.When you include a
ClientId
parameter, Amazon Cognito maps the configuration to the app client. When you include bothClientId
andUserPoolId
, Amazon Cognito maps the configuration to the app client only.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
compromisedCredentialsRiskConfiguration
SetRiskConfigurationRequest.Builder compromisedCredentialsRiskConfiguration(CompromisedCredentialsRiskConfigurationType compromisedCredentialsRiskConfiguration) The configuration of automated reactions to detected compromised credentials. Includes settings for blocking future sign-in requests and for the types of password-submission events you want to monitor.
- Parameters:
compromisedCredentialsRiskConfiguration
- The configuration of automated reactions to detected compromised credentials. Includes settings for blocking future sign-in requests and for the types of password-submission events you want to monitor.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
compromisedCredentialsRiskConfiguration
default SetRiskConfigurationRequest.Builder compromisedCredentialsRiskConfiguration(Consumer<CompromisedCredentialsRiskConfigurationType.Builder> compromisedCredentialsRiskConfiguration) The configuration of automated reactions to detected compromised credentials. Includes settings for blocking future sign-in requests and for the types of password-submission events you want to monitor.
This is a convenience method that creates an instance of theCompromisedCredentialsRiskConfigurationType.Builder
avoiding the need to create one manually viaCompromisedCredentialsRiskConfigurationType.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocompromisedCredentialsRiskConfiguration(CompromisedCredentialsRiskConfigurationType)
.- Parameters:
compromisedCredentialsRiskConfiguration
- a consumer that will call methods onCompromisedCredentialsRiskConfigurationType.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
accountTakeoverRiskConfiguration
SetRiskConfigurationRequest.Builder accountTakeoverRiskConfiguration(AccountTakeoverRiskConfigurationType accountTakeoverRiskConfiguration) The settings for automated responses and notification templates for adaptive authentication with threat protection.
- Parameters:
accountTakeoverRiskConfiguration
- The settings for automated responses and notification templates for adaptive authentication with threat protection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accountTakeoverRiskConfiguration
default SetRiskConfigurationRequest.Builder accountTakeoverRiskConfiguration(Consumer<AccountTakeoverRiskConfigurationType.Builder> accountTakeoverRiskConfiguration) The settings for automated responses and notification templates for adaptive authentication with threat protection.
This is a convenience method that creates an instance of theAccountTakeoverRiskConfigurationType.Builder
avoiding the need to create one manually viaAccountTakeoverRiskConfigurationType.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaccountTakeoverRiskConfiguration(AccountTakeoverRiskConfigurationType)
.- Parameters:
accountTakeoverRiskConfiguration
- a consumer that will call methods onAccountTakeoverRiskConfigurationType.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
riskExceptionConfiguration
SetRiskConfigurationRequest.Builder riskExceptionConfiguration(RiskExceptionConfigurationType riskExceptionConfiguration) A set of IP-address overrides to threat protection. You can set up IP-address always-block and always-allow lists.
- Parameters:
riskExceptionConfiguration
- A set of IP-address overrides to threat protection. You can set up IP-address always-block and always-allow lists.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
riskExceptionConfiguration
default SetRiskConfigurationRequest.Builder riskExceptionConfiguration(Consumer<RiskExceptionConfigurationType.Builder> riskExceptionConfiguration) A set of IP-address overrides to threat protection. You can set up IP-address always-block and always-allow lists.
This is a convenience method that creates an instance of theRiskExceptionConfigurationType.Builder
avoiding the need to create one manually viaRiskExceptionConfigurationType.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toriskExceptionConfiguration(RiskExceptionConfigurationType)
.- Parameters:
riskExceptionConfiguration
- a consumer that will call methods onRiskExceptionConfigurationType.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
SetRiskConfigurationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
SetRiskConfigurationRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-