Class: AWSCDK::Cognito::CfnIdentityPoolRoleAttachment::RulesConfigurationTypeProperty

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

Overview

RulesConfigurationType is a subproperty of the RoleMapping property that defines the rules to be used for mapping users to roles.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rules:) ⇒ RulesConfigurationTypeProperty

Returns a new instance of RulesConfigurationTypeProperty.



668
669
670
671
# File 'cognito/cfn_identity_pool_role_attachment.rb', line 668

def initialize(rules:)
  @rules = rules
  Jsii::Type.check_type(@rules, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29nbml0by5DZm5JZGVudGl0eVBvb2xSb2xlQXR0YWNobWVudC5NYXBwaW5nUnVsZVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "rules")
end

Class Method Details

.jsii_propertiesObject



681
682
683
684
685
# File 'cognito/cfn_identity_pool_role_attachment.rb', line 681

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

Instance Method Details

#to_jsiiObject



687
688
689
690
691
692
693
# File 'cognito/cfn_identity_pool_role_attachment.rb', line 687

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