Class CfnUserPoolRiskConfigurationAttachment
- All Implemented Interfaces:
IEnvironmentAware,IInspectable,IUserPoolRiskConfigurationAttachmentRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
AWS::Cognito::UserPoolRiskConfigurationAttachment resource sets the risk configuration that is used for Amazon Cognito advanced security features.
You can specify risk configuration for a single client (with a specific clientId ) or for all clients (by setting the clientId to ALL ). If you specify ALL , the default configuration is used for every client that has had no risk configuration set previously. If you specify risk configuration for a particular client, it no longer falls back to the ALL configuration.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cognito.*;
CfnUserPoolRiskConfigurationAttachment cfnUserPoolRiskConfigurationAttachment = CfnUserPoolRiskConfigurationAttachment.Builder.create(this, "MyCfnUserPoolRiskConfigurationAttachment")
.clientId("clientId")
.userPoolId("userPoolId")
// the properties below are optional
.accountTakeoverRiskConfiguration(AccountTakeoverRiskConfigurationTypeProperty.builder()
.actions(AccountTakeoverActionsTypeProperty.builder()
.highAction(AccountTakeoverActionTypeProperty.builder()
.eventAction("eventAction")
.notify(false)
.build())
.lowAction(AccountTakeoverActionTypeProperty.builder()
.eventAction("eventAction")
.notify(false)
.build())
.mediumAction(AccountTakeoverActionTypeProperty.builder()
.eventAction("eventAction")
.notify(false)
.build())
.build())
// the properties below are optional
.notifyConfiguration(NotifyConfigurationTypeProperty.builder()
.sourceArn("sourceArn")
// the properties below are optional
.blockEmail(NotifyEmailTypeProperty.builder()
.subject("subject")
// the properties below are optional
.htmlBody("htmlBody")
.textBody("textBody")
.build())
.from("from")
.mfaEmail(NotifyEmailTypeProperty.builder()
.subject("subject")
// the properties below are optional
.htmlBody("htmlBody")
.textBody("textBody")
.build())
.noActionEmail(NotifyEmailTypeProperty.builder()
.subject("subject")
// the properties below are optional
.htmlBody("htmlBody")
.textBody("textBody")
.build())
.replyTo("replyTo")
.build())
.build())
.compromisedCredentialsRiskConfiguration(CompromisedCredentialsRiskConfigurationTypeProperty.builder()
.actions(CompromisedCredentialsActionsTypeProperty.builder()
.eventAction("eventAction")
.build())
// the properties below are optional
.eventFilter(List.of("eventFilter"))
.build())
.riskExceptionConfiguration(RiskExceptionConfigurationTypeProperty.builder()
.blockedIpRangeList(List.of("blockedIpRangeList"))
.skippedIpRangeList(List.of("skippedIpRangeList"))
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA list of account-takeover actions for each level of risk that Amazon Cognito might assess with advanced security features.static interfaceThe automated response to a risk level for adaptive authentication in full-function, orENFORCED, mode.static interfaceThe settings for automated responses and notification templates for adaptive authentication with advanced security features.static final classA fluent builder forCfnUserPoolRiskConfigurationAttachment.static interfaceSettings for user pool actions when Amazon Cognito detects compromised credentials with advanced security features in full-functionENFORCEDmode.static interfaceSettings for compromised-credentials actions and authentication-event sources with advanced security features in full-functionENFORCEDmode.static interfaceThe configuration for Amazon SES email messages that advanced security features sends to a user when your adaptive authentication automated response has a Notify action.static interfaceThe template for email messages that advanced security features sends to a user when your threat protection automated response has a Notify action.static interfaceExceptions to the risk evaluation configuration, including always-allow and always-block IP address ranges.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.cognito.IUserPoolRiskConfigurationAttachmentRef
IUserPoolRiskConfigurationAttachmentRef.Jsii$Default, IUserPoolRiskConfigurationAttachmentRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnUserPoolRiskConfigurationAttachment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnUserPoolRiskConfigurationAttachment(software.amazon.jsii.JsiiObjectRef objRef) CfnUserPoolRiskConfigurationAttachment(software.constructs.Construct scope, String id, CfnUserPoolRiskConfigurationAttachmentProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe settings for automated responses and notification templates for adaptive authentication with threat protection.The app client where this configuration is applied.Settings for compromised-credentials actions and authentication types with threat protection in full-functionENFORCEDmode.Exceptions to the risk evaluation configuration, including always-allow and always-block IP address ranges.The ID of the user pool that has the risk configuration applied.A reference to a UserPoolRiskConfigurationAttachment resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidThe settings for automated responses and notification templates for adaptive authentication with threat protection.voidsetAccountTakeoverRiskConfiguration(CfnUserPoolRiskConfigurationAttachment.AccountTakeoverRiskConfigurationTypeProperty value) The settings for automated responses and notification templates for adaptive authentication with threat protection.voidsetClientId(String value) The app client where this configuration is applied.voidSettings for compromised-credentials actions and authentication types with threat protection in full-functionENFORCEDmode.voidsetCompromisedCredentialsRiskConfiguration(CfnUserPoolRiskConfigurationAttachment.CompromisedCredentialsRiskConfigurationTypeProperty value) Settings for compromised-credentials actions and authentication types with threat protection in full-functionENFORCEDmode.voidExceptions to the risk evaluation configuration, including always-allow and always-block IP address ranges.voidsetRiskExceptionConfiguration(CfnUserPoolRiskConfigurationAttachment.RiskExceptionConfigurationTypeProperty value) Exceptions to the risk evaluation configuration, including always-allow and always-block IP address ranges.voidsetUserPoolId(String value) The ID of the user pool that has the risk configuration applied.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnUserPoolRiskConfigurationAttachment
protected CfnUserPoolRiskConfigurationAttachment(software.amazon.jsii.JsiiObjectRef objRef) -
CfnUserPoolRiskConfigurationAttachment
protected CfnUserPoolRiskConfigurationAttachment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnUserPoolRiskConfigurationAttachment
@Stability(Stable) public CfnUserPoolRiskConfigurationAttachment(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnUserPoolRiskConfigurationAttachmentProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getUserPoolRiskConfigurationAttachmentRef
@Stability(Stable) @NotNull public UserPoolRiskConfigurationAttachmentReference getUserPoolRiskConfigurationAttachmentRef()A reference to a UserPoolRiskConfigurationAttachment resource.- Specified by:
getUserPoolRiskConfigurationAttachmentRefin interfaceIUserPoolRiskConfigurationAttachmentRef
-
getClientId
The app client where this configuration is applied. -
setClientId
The app client where this configuration is applied. -
getUserPoolId
The ID of the user pool that has the risk configuration applied. -
setUserPoolId
The ID of the user pool that has the risk configuration applied. -
getAccountTakeoverRiskConfiguration
The settings for automated responses and notification templates for adaptive authentication with threat protection.Returns union: either
IResolvableorCfnUserPoolRiskConfigurationAttachment.AccountTakeoverRiskConfigurationTypeProperty -
setAccountTakeoverRiskConfiguration
The settings for automated responses and notification templates for adaptive authentication with threat protection. -
setAccountTakeoverRiskConfiguration
@Stability(Stable) public void setAccountTakeoverRiskConfiguration(@Nullable CfnUserPoolRiskConfigurationAttachment.AccountTakeoverRiskConfigurationTypeProperty value) The settings for automated responses and notification templates for adaptive authentication with threat protection. -
getCompromisedCredentialsRiskConfiguration
Settings for compromised-credentials actions and authentication types with threat protection in full-functionENFORCEDmode.Returns union: either
IResolvableorCfnUserPoolRiskConfigurationAttachment.CompromisedCredentialsRiskConfigurationTypeProperty -
setCompromisedCredentialsRiskConfiguration
@Stability(Stable) public void setCompromisedCredentialsRiskConfiguration(@Nullable IResolvable value) Settings for compromised-credentials actions and authentication types with threat protection in full-functionENFORCEDmode. -
setCompromisedCredentialsRiskConfiguration
@Stability(Stable) public void setCompromisedCredentialsRiskConfiguration(@Nullable CfnUserPoolRiskConfigurationAttachment.CompromisedCredentialsRiskConfigurationTypeProperty value) Settings for compromised-credentials actions and authentication types with threat protection in full-functionENFORCEDmode. -
getRiskExceptionConfiguration
Exceptions to the risk evaluation configuration, including always-allow and always-block IP address ranges.Returns union: either
IResolvableorCfnUserPoolRiskConfigurationAttachment.RiskExceptionConfigurationTypeProperty -
setRiskExceptionConfiguration
Exceptions to the risk evaluation configuration, including always-allow and always-block IP address ranges. -
setRiskExceptionConfiguration
@Stability(Stable) public void setRiskExceptionConfiguration(@Nullable CfnUserPoolRiskConfigurationAttachment.RiskExceptionConfigurationTypeProperty value) Exceptions to the risk evaluation configuration, including always-allow and always-block IP address ranges.
-