Class: AWSCDK::Cognito::CfnUserPoolRiskConfigurationAttachment::AccountTakeoverRiskConfigurationTypeProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cognito/cfn_user_pool_risk_configuration_attachment.rb

Overview

The settings for automated responses and notification templates for adaptive authentication with advanced security features.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(actions:, notify_configuration: nil) ⇒ AccountTakeoverRiskConfigurationTypeProperty

Returns a new instance of AccountTakeoverRiskConfigurationTypeProperty.

Parameters:



655
656
657
658
659
660
# File 'cognito/cfn_user_pool_risk_configuration_attachment.rb', line 655

def initialize(actions:, notify_configuration: nil)
  @actions = actions.is_a?(Hash) ? ::AWSCDK::Cognito::CfnUserPoolRiskConfigurationAttachment::AccountTakeoverActionsTypeProperty.new(**actions.transform_keys(&:to_sym)) : actions
  Jsii::Type.check_type(@actions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb2duaXRvLkNmblVzZXJQb29sUmlza0NvbmZpZ3VyYXRpb25BdHRhY2htZW50LkFjY291bnRUYWtlb3ZlckFjdGlvbnNUeXBlUHJvcGVydHkifV19fQ==")), "actions")
  @notify_configuration = notify_configuration.is_a?(Hash) ? ::AWSCDK::Cognito::CfnUserPoolRiskConfigurationAttachment::NotifyConfigurationTypeProperty.new(**notify_configuration.transform_keys(&:to_sym)) : notify_configuration
  Jsii::Type.check_type(@notify_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb2duaXRvLkNmblVzZXJQb29sUmlza0NvbmZpZ3VyYXRpb25BdHRhY2htZW50Lk5vdGlmeUNvbmZpZ3VyYXRpb25UeXBlUHJvcGVydHkifV19fQ==")), "notifyConfiguration") unless @notify_configuration.nil?
end

Instance Attribute Details

#notify_configurationAWSCDK::IResolvable, ... (readonly)

The settings for composing and sending an email message when threat protection assesses a risk level with adaptive authentication.

When you choose to notify users in AccountTakeoverRiskConfiguration , Amazon Cognito sends an email message using the method and template that you set with this data type.



673
674
675
# File 'cognito/cfn_user_pool_risk_configuration_attachment.rb', line 673

def notify_configuration
  @notify_configuration
end

Class Method Details

.jsii_propertiesObject



675
676
677
678
679
680
# File 'cognito/cfn_user_pool_risk_configuration_attachment.rb', line 675

def self.jsii_properties
  {
    :actions => "actions",
    :notify_configuration => "notifyConfiguration",
  }
end

Instance Method Details

#to_jsiiObject



682
683
684
685
686
687
688
689
# File 'cognito/cfn_user_pool_risk_configuration_attachment.rb', line 682

def to_jsii
  result = {}
  result.merge!({
    "actions" => @actions,
    "notifyConfiguration" => @notify_configuration,
  })
  result.compact
end