Class: AWSCDK::Cognito::CfnUserPoolRiskConfigurationAttachment::CompromisedCredentialsActionsTypeProperty

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

Overview

Settings for user pool actions when Amazon Cognito detects compromised credentials with advanced security features in full-function ENFORCED mode.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(event_action:) ⇒ CompromisedCredentialsActionsTypeProperty

Returns a new instance of CompromisedCredentialsActionsTypeProperty.

Parameters:

  • event_action (String)

    The action that Amazon Cognito takes when it detects compromised credentials.



699
700
701
702
# File 'cognito/cfn_user_pool_risk_configuration_attachment.rb', line 699

def initialize(event_action:)
  @event_action = event_action
  Jsii::Type.check_type(@event_action, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "eventAction")
end

Instance Attribute Details

#event_actionString (readonly)

The action that Amazon Cognito takes when it detects compromised credentials.



708
709
710
# File 'cognito/cfn_user_pool_risk_configuration_attachment.rb', line 708

def event_action
  @event_action
end

Class Method Details

.jsii_propertiesObject



710
711
712
713
714
# File 'cognito/cfn_user_pool_risk_configuration_attachment.rb', line 710

def self.jsii_properties
  {
    :event_action => "eventAction",
  }
end

Instance Method Details

#to_jsiiObject



716
717
718
719
720
721
722
# File 'cognito/cfn_user_pool_risk_configuration_attachment.rb', line 716

def to_jsii
  result = {}
  result.merge!({
    "eventAction" => @event_action,
  })
  result.compact
end