CfnUserPoolRiskConfigurationAttachmentProps Struct
Properties for defining a CfnUserPoolRiskConfigurationAttachment.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cognito as cognito } from 'aws-cdk-lib';
const cfnUserPoolRiskConfigurationAttachmentProps: cognito.CfnUserPoolRiskConfigurationAttachmentProps = {
clientId: 'clientId',
userPoolId: 'userPoolId',
// the properties below are optional
accountTakeoverRiskConfiguration: {
actions: {
highAction: {
eventAction: 'eventAction',
notify: false,
},
lowAction: {
eventAction: 'eventAction',
notify: false,
},
mediumAction: {
eventAction: 'eventAction',
notify: false,
},
},
// the properties below are optional
notifyConfiguration: {
sourceArn: 'sourceArn',
// the properties below are optional
blockEmail: {
subject: 'subject',
// the properties below are optional
htmlBody: 'htmlBody',
textBody: 'textBody',
},
from: 'from',
mfaEmail: {
subject: 'subject',
// the properties below are optional
htmlBody: 'htmlBody',
textBody: 'textBody',
},
noActionEmail: {
subject: 'subject',
// the properties below are optional
htmlBody: 'htmlBody',
textBody: 'textBody',
},
replyTo: 'replyTo',
},
},
compromisedCredentialsRiskConfiguration: {
actions: {
eventAction: 'eventAction',
},
// the properties below are optional
eventFilter: ['eventFilter'],
},
riskExceptionConfiguration: {
blockedIpRangeList: ['blockedIpRangeList'],
skippedIpRangeList: ['skippedIpRangeList'],
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cognito as cognito
cfn_user_pool_risk_configuration_attachment_props = cognito.CfnUserPoolRiskConfigurationAttachmentProps(
client_id="clientId",
user_pool_id="userPoolId",
# the properties below are optional
account_takeover_risk_configuration=cognito.CfnUserPoolRiskConfigurationAttachment.AccountTakeoverRiskConfigurationTypeProperty(
actions=cognito.CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionsTypeProperty(
high_action=cognito.CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty(
event_action="eventAction",
notify=False
),
low_action=cognito.CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty(
event_action="eventAction",
notify=False
),
medium_action=cognito.CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty(
event_action="eventAction",
notify=False
)
),
# the properties below are optional
notify_configuration=cognito.CfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty(
source_arn="sourceArn",
# the properties below are optional
block_email=cognito.CfnUserPoolRiskConfigurationAttachment.NotifyEmailTypeProperty(
subject="subject",
# the properties below are optional
html_body="htmlBody",
text_body="textBody"
),
from="from",
mfa_email=cognito.CfnUserPoolRiskConfigurationAttachment.NotifyEmailTypeProperty(
subject="subject",
# the properties below are optional
html_body="htmlBody",
text_body="textBody"
),
no_action_email=cognito.CfnUserPoolRiskConfigurationAttachment.NotifyEmailTypeProperty(
subject="subject",
# the properties below are optional
html_body="htmlBody",
text_body="textBody"
),
reply_to="replyTo"
)
),
compromised_credentials_risk_configuration=cognito.CfnUserPoolRiskConfigurationAttachment.CompromisedCredentialsRiskConfigurationTypeProperty(
actions=cognito.CfnUserPoolRiskConfigurationAttachment.CompromisedCredentialsActionsTypeProperty(
event_action="eventAction"
),
# the properties below are optional
event_filter=["eventFilter"]
),
risk_exception_configuration=cognito.CfnUserPoolRiskConfigurationAttachment.RiskExceptionConfigurationTypeProperty(
blocked_ip_range_list=["blockedIpRangeList"],
skipped_ip_range_list=["skippedIpRangeList"]
)
)
java
// 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.*;
CfnUserPoolRiskConfigurationAttachmentProps cfnUserPoolRiskConfigurationAttachmentProps = CfnUserPoolRiskConfigurationAttachmentProps.builder()
.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();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Cognito;
var cfnUserPoolRiskConfigurationAttachmentProps = new CfnUserPoolRiskConfigurationAttachmentProps {
ClientId = "clientId",
UserPoolId = "userPoolId",
// the properties below are optional
AccountTakeoverRiskConfiguration = new AccountTakeoverRiskConfigurationTypeProperty {
Actions = new AccountTakeoverActionsTypeProperty {
HighAction = new AccountTakeoverActionTypeProperty {
EventAction = "eventAction",
Notify = false
},
LowAction = new AccountTakeoverActionTypeProperty {
EventAction = "eventAction",
Notify = false
},
MediumAction = new AccountTakeoverActionTypeProperty {
EventAction = "eventAction",
Notify = false
}
},
// the properties below are optional
NotifyConfiguration = new NotifyConfigurationTypeProperty {
SourceArn = "sourceArn",
// the properties below are optional
BlockEmail = new NotifyEmailTypeProperty {
Subject = "subject",
// the properties below are optional
HtmlBody = "htmlBody",
TextBody = "textBody"
},
From = "from",
MfaEmail = new NotifyEmailTypeProperty {
Subject = "subject",
// the properties below are optional
HtmlBody = "htmlBody",
TextBody = "textBody"
},
NoActionEmail = new NotifyEmailTypeProperty {
Subject = "subject",
// the properties below are optional
HtmlBody = "htmlBody",
TextBody = "textBody"
},
ReplyTo = "replyTo"
}
},
CompromisedCredentialsRiskConfiguration = new CompromisedCredentialsRiskConfigurationTypeProperty {
Actions = new CompromisedCredentialsActionsTypeProperty {
EventAction = "eventAction"
},
// the properties below are optional
EventFilter = new [] { "eventFilter" }
},
RiskExceptionConfiguration = new RiskExceptionConfigurationTypeProperty {
BlockedIpRangeList = new [] { "blockedIpRangeList" },
SkippedIpRangeList = new [] { "skippedIpRangeList" }
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnUserPoolRiskConfigurationAttachmentProps := &CfnUserPoolRiskConfigurationAttachmentProps{
ClientId: jsii.String("clientId"),
UserPoolId: jsii.String("userPoolId"),
// the properties below are optional
AccountTakeoverRiskConfiguration: &AccountTakeoverRiskConfigurationTypeProperty{
Actions: &AccountTakeoverActionsTypeProperty{
HighAction: &AccountTakeoverActionTypeProperty{
EventAction: jsii.String("eventAction"),
Notify: jsii.Boolean(false),
},
LowAction: &AccountTakeoverActionTypeProperty{
EventAction: jsii.String("eventAction"),
Notify: jsii.Boolean(false),
},
MediumAction: &AccountTakeoverActionTypeProperty{
EventAction: jsii.String("eventAction"),
Notify: jsii.Boolean(false),
},
},
// the properties below are optional
NotifyConfiguration: &NotifyConfigurationTypeProperty{
SourceArn: jsii.String("sourceArn"),
// the properties below are optional
BlockEmail: &NotifyEmailTypeProperty{
Subject: jsii.String("subject"),
// the properties below are optional
HtmlBody: jsii.String("htmlBody"),
TextBody: jsii.String("textBody"),
},
From: jsii.String("from"),
MfaEmail: &NotifyEmailTypeProperty{
Subject: jsii.String("subject"),
// the properties below are optional
HtmlBody: jsii.String("htmlBody"),
TextBody: jsii.String("textBody"),
},
NoActionEmail: &NotifyEmailTypeProperty{
Subject: jsii.String("subject"),
// the properties below are optional
HtmlBody: jsii.String("htmlBody"),
TextBody: jsii.String("textBody"),
},
ReplyTo: jsii.String("replyTo"),
},
},
CompromisedCredentialsRiskConfiguration: &CompromisedCredentialsRiskConfigurationTypeProperty{
Actions: &CompromisedCredentialsActionsTypeProperty{
EventAction: jsii.String("eventAction"),
},
// the properties below are optional
EventFilter: []*string{
jsii.String("eventFilter"),
},
},
RiskExceptionConfiguration: &RiskExceptionConfigurationTypeProperty{
BlockedIpRangeList: []*string{
jsii.String("blockedIpRangeList"),
},
SkippedIpRangeList: []*string{
jsii.String("skippedIpRangeList"),
},
},
}
Properties
accountTakeoverRiskConfigurationoptionalIResolvable | CfnUserPoolRiskConfigurationAttachment.account_takeover_risk_configurationoptionaltyping.Union[IResolvable, AccountTakeoverRiskConfigurationTypeProperty]accountTakeoverRiskConfigurationoptionalIResolvableAccountTakeoverRiskConfigurationoptionalIResolvableAccountTakeoverRiskConfigurationoptionalinterface{} #The settings for automated responses and notification templates for adaptive authentication with threat protection.
The app client where this configuration is applied.
When this parameter isn't present, the risk configuration applies to all user pool app clients that don't have client-level settings.
compromisedCredentialsRiskConfigurationoptionalIResolvable | CfnUserPoolRiskConfigurationAttachment.compromised_credentials_risk_configurationoptionaltyping.Union[IResolvable, CompromisedCredentialsRiskConfigurationTypeProperty]compromisedCredentialsRiskConfigurationoptionalIResolvableCompromisedCredentialsRiskConfigurationoptionalIResolvableCompromisedCredentialsRiskConfigurationoptionalinterface{} #Settings for compromised-credentials actions and authentication types with threat protection in full-function `ENFORCED` mode.
riskExceptionConfigurationoptionalIResolvable | CfnUserPoolRiskConfigurationAttachment.risk_exception_configurationoptionaltyping.Union[IResolvable, RiskExceptionConfigurationTypeProperty]riskExceptionConfigurationoptionalIResolvableRiskExceptionConfigurationoptionalIResolvableRiskExceptionConfigurationoptionalinterface{} #Exceptions to the risk evaluation configuration, including always-allow and always-block IP address ranges.
userPoolIdstring | IUserPoolRefuser_pool_idtyping.Union[str, IUserPoolRef]userPoolIdStringUserPoolIdstringUserPoolIdinterface{} required #The ID of the user pool that has the risk configuration applied.