Class: AWSCDK::Cognito::UserPoolIdentityProviderProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Cognito::UserPoolIdentityProviderProps
- Defined in:
- cognito/user_pool_identity_provider_props.rb
Overview
Properties to create a new instance of UserPoolIdentityProvider.
Direct Known Subclasses
UserPoolIdentityProviderAmazonProps, UserPoolIdentityProviderAppleProps, UserPoolIdentityProviderFacebookProps, UserPoolIdentityProviderGoogleProps, UserPoolIdentityProviderOidcProps, UserPoolIdentityProviderSamlProps
Instance Attribute Summary collapse
-
#attribute_mapping ⇒ AWSCDK::Cognito::AttributeMapping?
readonly
Mapping attributes from the identity provider to standard and custom attributes of the user pool.
-
#user_pool ⇒ AWSCDK::Cognito::IUserPool
readonly
The user pool to which this construct provides identities.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(user_pool:, attribute_mapping: nil) ⇒ UserPoolIdentityProviderProps
constructor
A new instance of UserPoolIdentityProviderProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(user_pool:, attribute_mapping: nil) ⇒ UserPoolIdentityProviderProps
Returns a new instance of UserPoolIdentityProviderProps.
9 10 11 12 13 14 |
# File 'cognito/user_pool_identity_provider_props.rb', line 9 def initialize(user_pool:, attribute_mapping: nil) @user_pool = user_pool Jsii::Type.check_type(@user_pool, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29nbml0by5JVXNlclBvb2wifQ==")), "userPool") @attribute_mapping = attribute_mapping.is_a?(Hash) ? ::AWSCDK::Cognito::AttributeMapping.new(**attribute_mapping.transform_keys(&:to_sym)) : attribute_mapping Jsii::Type.check_type(@attribute_mapping, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29nbml0by5BdHRyaWJ1dGVNYXBwaW5nIn0=")), "attributeMapping") unless @attribute_mapping.nil? end |
Instance Attribute Details
#attribute_mapping ⇒ AWSCDK::Cognito::AttributeMapping? (readonly)
Note:
Default: - no attribute mapping
Mapping attributes from the identity provider to standard and custom attributes of the user pool.
24 25 26 |
# File 'cognito/user_pool_identity_provider_props.rb', line 24 def attribute_mapping @attribute_mapping end |
#user_pool ⇒ AWSCDK::Cognito::IUserPool (readonly)
The user pool to which this construct provides identities.
19 20 21 |
# File 'cognito/user_pool_identity_provider_props.rb', line 19 def user_pool @user_pool end |
Class Method Details
.jsii_properties ⇒ Object
26 27 28 29 30 31 |
# File 'cognito/user_pool_identity_provider_props.rb', line 26 def self.jsii_properties { :user_pool => "userPool", :attribute_mapping => "attributeMapping", } end |
Instance Method Details
#to_jsii ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'cognito/user_pool_identity_provider_props.rb', line 33 def to_jsii result = {} result.merge!({ "userPool" => @user_pool, "attributeMapping" => @attribute_mapping, }) result.compact end |