Class: AWSCDK::CognitoIdentitypool::UserPoolAuthenticationProvider
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::CognitoIdentitypool::UserPoolAuthenticationProvider
- Includes:
- IUserPoolAuthenticationProvider
- Defined in:
- cognito_identitypool/user_pool_authentication_provider.rb
Overview
Defines a User Pool Authentication Provider.
Class Method Summary collapse
Instance Method Summary collapse
-
#bind(scope, identity_pool, _options = nil) ⇒ AWSCDK::CognitoIdentitypool::UserPoolAuthenticationProviderBindConfig
The method called when a given User Pool Authentication Provider is added (for the first time) to an Identity Pool.
-
#initialize(props) ⇒ UserPoolAuthenticationProvider
constructor
A new instance of UserPoolAuthenticationProvider.
Constructor Details
#initialize(props) ⇒ UserPoolAuthenticationProvider
Returns a new instance of UserPoolAuthenticationProvider.
10 11 12 13 14 |
# File 'cognito_identitypool/user_pool_authentication_provider.rb', line 10 def initialize(props) props = props.is_a?(Hash) ? ::AWSCDK::CognitoIdentitypool::UserPoolAuthenticationProviderProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29nbml0b19pZGVudGl0eXBvb2wuVXNlclBvb2xBdXRoZW50aWNhdGlvblByb3ZpZGVyUHJvcHMifQ==")), "props") Jsii::Object.instance_method(:initialize).bind(self).call(props) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
16 17 18 19 20 |
# File 'cognito_identitypool/user_pool_authentication_provider.rb', line 16 def self.jsii_overridable_methods { :bind => { kind: :method, name: "bind", is_optional: false }, } end |
Instance Method Details
#bind(scope, identity_pool, _options = nil) ⇒ AWSCDK::CognitoIdentitypool::UserPoolAuthenticationProviderBindConfig
The method called when a given User Pool Authentication Provider is added (for the first time) to an Identity Pool.
28 29 30 31 32 33 34 |
# File 'cognito_identitypool/user_pool_authentication_provider.rb', line 28 def bind(scope, identity_pool, = nil) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(identity_pool, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29nbml0b19pZGVudGl0eXBvb2wuSUlkZW50aXR5UG9vbCJ9")), "identityPool") = .is_a?(Hash) ? ::AWSCDK::CognitoIdentitypool::UserPoolAuthenticationProviderBindOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29nbml0b19pZGVudGl0eXBvb2wuVXNlclBvb2xBdXRoZW50aWNhdGlvblByb3ZpZGVyQmluZE9wdGlvbnMifQ==")), "_options") unless .nil? jsii_call_method("bind", [scope, identity_pool, ]) end |