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
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 where you want to set a risk configuration. If you include
UserPoolIdin 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 bothClientIdandUserPoolId, 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 includeUserPoolIdin 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 bothClientIdandUserPoolId, 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
ClientIdis 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
ClientIdparameter, Amazon Cognito maps the configuration to the app client. When you include bothClientIdandUserPoolId, 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. IfClientIdis 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
ClientIdparameter, Amazon Cognito maps the configuration to the app client. When you include bothClientIdandUserPoolId, 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.Builderavoiding the need to create one manually viaCompromisedCredentialsRiskConfigurationType.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaAccountTakeoverRiskConfigurationType.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaRiskExceptionConfigurationType.builder().When the
Consumercompletes,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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.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.
-