Class: AWSCDK::Cognito::CfnIdentityPoolRoleAttachment::RulesConfigurationTypeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Cognito::CfnIdentityPoolRoleAttachment::RulesConfigurationTypeProperty
- 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
-
#rules ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Cognito::CfnIdentityPoolRoleAttachment::MappingRuleProperty>
readonly
The rules.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(rules:) ⇒ RulesConfigurationTypeProperty
constructor
A new instance of RulesConfigurationTypeProperty.
- #to_jsii ⇒ Object
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 |
Instance Attribute Details
#rules ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Cognito::CfnIdentityPoolRoleAttachment::MappingRuleProperty> (readonly)
The rules.
You can specify up to 25 rules per identity provider.
679 680 681 |
# File 'cognito/cfn_identity_pool_role_attachment.rb', line 679 def rules @rules end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |