Class: AWSCDK::Cognito::CfnUserPoolRiskConfigurationAttachment::AccountTakeoverActionsTypeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Cognito::CfnUserPoolRiskConfigurationAttachment::AccountTakeoverActionsTypeProperty
- Defined in:
- cognito/cfn_user_pool_risk_configuration_attachment.rb
Overview
A list of account-takeover actions for each level of risk that Amazon Cognito might assess with advanced security features.
Instance Attribute Summary collapse
-
#high_action ⇒ AWSCDK::IResolvable, ...
readonly
The action that you assign to a high-risk assessment by threat protection.
-
#low_action ⇒ AWSCDK::IResolvable, ...
readonly
The action that you assign to a low-risk assessment by threat protection.
-
#medium_action ⇒ AWSCDK::IResolvable, ...
readonly
The action that you assign to a medium-risk assessment by threat protection.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(high_action: nil, low_action: nil, medium_action: nil) ⇒ AccountTakeoverActionsTypeProperty
constructor
A new instance of AccountTakeoverActionsTypeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(high_action: nil, low_action: nil, medium_action: nil) ⇒ AccountTakeoverActionsTypeProperty
Returns a new instance of AccountTakeoverActionsTypeProperty.
603 604 605 606 607 608 609 610 |
# File 'cognito/cfn_user_pool_risk_configuration_attachment.rb', line 603 def initialize(high_action: nil, low_action: nil, medium_action: nil) @high_action = high_action.is_a?(Hash) ? ::AWSCDK::Cognito::CfnUserPoolRiskConfigurationAttachment::AccountTakeoverActionTypeProperty.new(**high_action.transform_keys(&:to_sym)) : high_action Jsii::Type.check_type(@high_action, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb2duaXRvLkNmblVzZXJQb29sUmlza0NvbmZpZ3VyYXRpb25BdHRhY2htZW50LkFjY291bnRUYWtlb3ZlckFjdGlvblR5cGVQcm9wZXJ0eSJ9XX19")), "highAction") unless @high_action.nil? @low_action = low_action.is_a?(Hash) ? ::AWSCDK::Cognito::CfnUserPoolRiskConfigurationAttachment::AccountTakeoverActionTypeProperty.new(**low_action.transform_keys(&:to_sym)) : low_action Jsii::Type.check_type(@low_action, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb2duaXRvLkNmblVzZXJQb29sUmlza0NvbmZpZ3VyYXRpb25BdHRhY2htZW50LkFjY291bnRUYWtlb3ZlckFjdGlvblR5cGVQcm9wZXJ0eSJ9XX19")), "lowAction") unless @low_action.nil? @medium_action = medium_action.is_a?(Hash) ? ::AWSCDK::Cognito::CfnUserPoolRiskConfigurationAttachment::AccountTakeoverActionTypeProperty.new(**medium_action.transform_keys(&:to_sym)) : medium_action Jsii::Type.check_type(@medium_action, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb2duaXRvLkNmblVzZXJQb29sUmlza0NvbmZpZ3VyYXRpb25BdHRhY2htZW50LkFjY291bnRUYWtlb3ZlckFjdGlvblR5cGVQcm9wZXJ0eSJ9XX19")), "mediumAction") unless @medium_action.nil? end |
Instance Attribute Details
#high_action ⇒ AWSCDK::IResolvable, ... (readonly)
The action that you assign to a high-risk assessment by threat protection.
616 617 618 |
# File 'cognito/cfn_user_pool_risk_configuration_attachment.rb', line 616 def high_action @high_action end |
#low_action ⇒ AWSCDK::IResolvable, ... (readonly)
The action that you assign to a low-risk assessment by threat protection.
621 622 623 |
# File 'cognito/cfn_user_pool_risk_configuration_attachment.rb', line 621 def low_action @low_action end |
#medium_action ⇒ AWSCDK::IResolvable, ... (readonly)
The action that you assign to a medium-risk assessment by threat protection.
626 627 628 |
# File 'cognito/cfn_user_pool_risk_configuration_attachment.rb', line 626 def medium_action @medium_action end |
Class Method Details
.jsii_properties ⇒ Object
628 629 630 631 632 633 634 |
# File 'cognito/cfn_user_pool_risk_configuration_attachment.rb', line 628 def self.jsii_properties { :high_action => "highAction", :low_action => "lowAction", :medium_action => "mediumAction", } end |
Instance Method Details
#to_jsii ⇒ Object
636 637 638 639 640 641 642 643 644 |
# File 'cognito/cfn_user_pool_risk_configuration_attachment.rb', line 636 def to_jsii result = {} result.merge!({ "highAction" => @high_action, "lowAction" => @low_action, "mediumAction" => @medium_action, }) result.compact end |