Class CfnUserPoolRiskConfigurationAttachment
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::Cognito::UserPoolRiskConfigurationAttachment.
The 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();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAccount takeover actions type.static interfaceAccount takeover action type.static interfaceConfiguration for mitigation actions and notification for different levels of risk detected for a potential account takeover.static final classA fluent builder forCfnUserPoolRiskConfigurationAttachment.static interfaceThe compromised credentials actions type.static interfaceThe compromised credentials risk configuration type.static interfaceThe notify configuration type.static interfaceThe notify email type.static interfaceThe type of the configuration to override the risk decision.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnUserPoolRiskConfigurationAttachment(Construct scope, String id, CfnUserPoolRiskConfigurationAttachmentProps props) Create a newAWS::Cognito::UserPoolRiskConfigurationAttachment.protectedCfnUserPoolRiskConfigurationAttachment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnUserPoolRiskConfigurationAttachment(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe account takeover risk configuration object, including theNotifyConfigurationobject andActionsto take if there is an account takeover.The app client ID.The compromised credentials risk configuration object, including theEventFilterand theEventAction.The configuration to override the risk decision.The user pool ID.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidThe account takeover risk configuration object, including theNotifyConfigurationobject andActionsto take if there is an account takeover.voidsetAccountTakeoverRiskConfiguration(CfnUserPoolRiskConfigurationAttachment.AccountTakeoverRiskConfigurationTypeProperty value) The account takeover risk configuration object, including theNotifyConfigurationobject andActionsto take if there is an account takeover.voidsetClientId(String value) The app client ID.voidThe compromised credentials risk configuration object, including theEventFilterand theEventAction.voidsetCompromisedCredentialsRiskConfiguration(CfnUserPoolRiskConfigurationAttachment.CompromisedCredentialsRiskConfigurationTypeProperty value) The compromised credentials risk configuration object, including theEventFilterand theEventAction.voidThe configuration to override the risk decision.voidsetRiskExceptionConfiguration(CfnUserPoolRiskConfigurationAttachment.RiskExceptionConfigurationTypeProperty value) The configuration to override the risk decision.voidsetUserPoolId(String value) The user pool ID.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.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 Construct scope, @NotNull String id, @NotNull CfnUserPoolRiskConfigurationAttachmentProps props) Create a newAWS::Cognito::UserPoolRiskConfigurationAttachment.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
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
-
getClientId
The app client ID.You can specify the risk configuration for a single client (with a specific ClientId) or for all clients (by setting the ClientId to
ALL). -
setClientId
The app client ID.You can specify the risk configuration for a single client (with a specific ClientId) or for all clients (by setting the ClientId to
ALL). -
getUserPoolId
The user pool ID. -
setUserPoolId
The user pool ID. -
getAccountTakeoverRiskConfiguration
The account takeover risk configuration object, including theNotifyConfigurationobject andActionsto take if there is an account takeover. -
setAccountTakeoverRiskConfiguration
The account takeover risk configuration object, including theNotifyConfigurationobject andActionsto take if there is an account takeover. -
setAccountTakeoverRiskConfiguration
@Stability(Stable) public void setAccountTakeoverRiskConfiguration(@Nullable CfnUserPoolRiskConfigurationAttachment.AccountTakeoverRiskConfigurationTypeProperty value) The account takeover risk configuration object, including theNotifyConfigurationobject andActionsto take if there is an account takeover. -
getCompromisedCredentialsRiskConfiguration
The compromised credentials risk configuration object, including theEventFilterand theEventAction. -
setCompromisedCredentialsRiskConfiguration
@Stability(Stable) public void setCompromisedCredentialsRiskConfiguration(@Nullable IResolvable value) The compromised credentials risk configuration object, including theEventFilterand theEventAction. -
setCompromisedCredentialsRiskConfiguration
@Stability(Stable) public void setCompromisedCredentialsRiskConfiguration(@Nullable CfnUserPoolRiskConfigurationAttachment.CompromisedCredentialsRiskConfigurationTypeProperty value) The compromised credentials risk configuration object, including theEventFilterand theEventAction. -
getRiskExceptionConfiguration
The configuration to override the risk decision. -
setRiskExceptionConfiguration
The configuration to override the risk decision. -
setRiskExceptionConfiguration
@Stability(Stable) public void setRiskExceptionConfiguration(@Nullable CfnUserPoolRiskConfigurationAttachment.RiskExceptionConfigurationTypeProperty value) The configuration to override the risk decision.
-