Class: AWSCDK::Cognito::UserPoolIdentityProviderProps

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

Overview

Properties to create a new instance of UserPoolIdentityProvider.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user_pool:, attribute_mapping: nil) ⇒ UserPoolIdentityProviderProps

Returns a new instance of UserPoolIdentityProviderProps.

Parameters:



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_mappingAWSCDK::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_poolAWSCDK::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_propertiesObject



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_jsiiObject



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