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
Modifier and TypeClassDescriptionstatic interface
Account takeover actions type.static interface
Account takeover action type.static interface
Configuration for mitigation actions and notification for different levels of risk detected for a potential account takeover.static final class
A fluent builder forCfnUserPoolRiskConfigurationAttachment
.static interface
The compromised credentials actions type.static interface
The compromised credentials risk configuration type.static interface
The notify configuration type.static interface
The notify email type.static interface
The type of the configuration to override the risk decision.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnUserPoolRiskConfigurationAttachment
(Construct scope, String id, CfnUserPoolRiskConfigurationAttachmentProps props) Create a newAWS::Cognito::UserPoolRiskConfigurationAttachment
.protected
CfnUserPoolRiskConfigurationAttachment
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnUserPoolRiskConfigurationAttachment
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe account takeover risk configuration object, including theNotifyConfiguration
object andActions
to take if there is an account takeover.The app client ID.The compromised credentials risk configuration object, including theEventFilter
and theEventAction
.The configuration to override the risk decision.The user pool ID.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
The account takeover risk configuration object, including theNotifyConfiguration
object andActions
to take if there is an account takeover.void
setAccountTakeoverRiskConfiguration
(CfnUserPoolRiskConfigurationAttachment.AccountTakeoverRiskConfigurationTypeProperty value) The account takeover risk configuration object, including theNotifyConfiguration
object andActions
to take if there is an account takeover.void
setClientId
(String value) The app client ID.void
The compromised credentials risk configuration object, including theEventFilter
and theEventAction
.void
setCompromisedCredentialsRiskConfiguration
(CfnUserPoolRiskConfigurationAttachment.CompromisedCredentialsRiskConfigurationTypeProperty value) The compromised credentials risk configuration object, including theEventFilter
and theEventAction
.void
The configuration to override the risk decision.void
setRiskExceptionConfiguration
(CfnUserPoolRiskConfigurationAttachment.RiskExceptionConfigurationTypeProperty value) The configuration to override the risk decision.void
setUserPoolId
(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, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
inspect
in 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:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnProperties
in 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 theNotifyConfiguration
object andActions
to take if there is an account takeover. -
setAccountTakeoverRiskConfiguration
The account takeover risk configuration object, including theNotifyConfiguration
object andActions
to take if there is an account takeover. -
setAccountTakeoverRiskConfiguration
@Stability(Stable) public void setAccountTakeoverRiskConfiguration(@Nullable CfnUserPoolRiskConfigurationAttachment.AccountTakeoverRiskConfigurationTypeProperty value) The account takeover risk configuration object, including theNotifyConfiguration
object andActions
to take if there is an account takeover. -
getCompromisedCredentialsRiskConfiguration
The compromised credentials risk configuration object, including theEventFilter
and theEventAction
. -
setCompromisedCredentialsRiskConfiguration
@Stability(Stable) public void setCompromisedCredentialsRiskConfiguration(@Nullable IResolvable value) The compromised credentials risk configuration object, including theEventFilter
and theEventAction
. -
setCompromisedCredentialsRiskConfiguration
@Stability(Stable) public void setCompromisedCredentialsRiskConfiguration(@Nullable CfnUserPoolRiskConfigurationAttachment.CompromisedCredentialsRiskConfigurationTypeProperty value) The compromised credentials risk configuration object, including theEventFilter
and 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.
-