@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.647Z") @Stability(value=Stable) public class CfnUserPoolRiskConfigurationAttachment extends CfnResource implements IInspectable
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();
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnUserPoolRiskConfigurationAttachment(software.constructs.Construct scope,
String id,
CfnUserPoolRiskConfigurationAttachmentProps props)
Create a new `AWS::Cognito::UserPoolRiskConfigurationAttachment`.
|
protected |
CfnUserPoolRiskConfigurationAttachment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnUserPoolRiskConfigurationAttachment(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAccountTakeoverRiskConfiguration()
The account takeover risk configuration object, including the `NotifyConfiguration` object and `Actions` to take if there is an account takeover.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getClientId()
The app client ID.
|
Object |
getCompromisedCredentialsRiskConfiguration()
The compromised credentials risk configuration object, including the `EventFilter` and the `EventAction` .
|
Object |
getRiskExceptionConfiguration()
The configuration to override the risk decision.
|
String |
getUserPoolId()
The user pool ID.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAccountTakeoverRiskConfiguration(CfnUserPoolRiskConfigurationAttachment.AccountTakeoverRiskConfigurationTypeProperty value)
The account takeover risk configuration object, including the `NotifyConfiguration` object and `Actions` to take if there is an account takeover.
|
void |
setAccountTakeoverRiskConfiguration(IResolvable value)
The account takeover risk configuration object, including the `NotifyConfiguration` object and `Actions` to take if there is an account takeover.
|
void |
setClientId(String value)
The app client ID.
|
void |
setCompromisedCredentialsRiskConfiguration(CfnUserPoolRiskConfigurationAttachment.CompromisedCredentialsRiskConfigurationTypeProperty value)
The compromised credentials risk configuration object, including the `EventFilter` and the `EventAction` .
|
void |
setCompromisedCredentialsRiskConfiguration(IResolvable value)
The compromised credentials risk configuration object, including the `EventFilter` and the `EventAction` .
|
void |
setRiskExceptionConfiguration(CfnUserPoolRiskConfigurationAttachment.RiskExceptionConfigurationTypeProperty value)
The configuration to override the risk decision.
|
void |
setRiskExceptionConfiguration(IResolvable value)
The configuration to override the risk decision.
|
void |
setUserPoolId(String value)
The user pool ID.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnUserPoolRiskConfigurationAttachment(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnUserPoolRiskConfigurationAttachment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnUserPoolRiskConfigurationAttachment(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnUserPoolRiskConfigurationAttachmentProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getClientId()
You can specify the risk configuration for a single client (with a specific ClientId) or for all clients (by setting the ClientId to ALL ).
@Stability(value=Stable)
public void setClientId(@NotNull
String value)
You can specify the risk configuration for a single client (with a specific ClientId) or for all clients (by setting the ClientId to ALL ).
@Stability(value=Stable) @NotNull public String getUserPoolId()
@Stability(value=Stable)
public void setUserPoolId(@NotNull
String value)
@Stability(value=Stable) @Nullable public Object getAccountTakeoverRiskConfiguration()
@Stability(value=Stable)
public void setAccountTakeoverRiskConfiguration(@Nullable
CfnUserPoolRiskConfigurationAttachment.AccountTakeoverRiskConfigurationTypeProperty value)
@Stability(value=Stable)
public void setAccountTakeoverRiskConfiguration(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getCompromisedCredentialsRiskConfiguration()
@Stability(value=Stable)
public void setCompromisedCredentialsRiskConfiguration(@Nullable
CfnUserPoolRiskConfigurationAttachment.CompromisedCredentialsRiskConfigurationTypeProperty value)
@Stability(value=Stable)
public void setCompromisedCredentialsRiskConfiguration(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getRiskExceptionConfiguration()
@Stability(value=Stable)
public void setRiskExceptionConfiguration(@Nullable
CfnUserPoolRiskConfigurationAttachment.RiskExceptionConfigurationTypeProperty value)
@Stability(value=Stable)
public void setRiskExceptionConfiguration(@Nullable
IResolvable value)
Copyright © 2022. All rights reserved.