Class: AWSCDK::CognitoIdentitypool::UserPoolAuthenticationProviderBindConfig

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cognito_identitypool/user_pool_authentication_provider_bind_config.rb

Overview

Represents a UserPoolAuthenticationProvider Bind Configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client_id:, provider_name:, server_side_token_check:) ⇒ UserPoolAuthenticationProviderBindConfig

Returns a new instance of UserPoolAuthenticationProviderBindConfig.

Parameters:

  • client_id (String)

    Client Id of the Associated User Pool Client.

  • provider_name (String)

    The identity providers associated with the UserPool.

  • server_side_token_check (Boolean)

    Whether to enable the identity pool's server side token check.



10
11
12
13
14
15
16
17
# File 'cognito_identitypool/user_pool_authentication_provider_bind_config.rb', line 10

def initialize(client_id:, provider_name:, server_side_token_check:)
  @client_id = client_id
  Jsii::Type.check_type(@client_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clientId")
  @provider_name = provider_name
  Jsii::Type.check_type(@provider_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "providerName")
  @server_side_token_check = server_side_token_check
  Jsii::Type.check_type(@server_side_token_check, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "serverSideTokenCheck")
end

Instance Attribute Details

#client_idString (readonly)

Client Id of the Associated User Pool Client.

Returns:

  • (String)


22
23
24
# File 'cognito_identitypool/user_pool_authentication_provider_bind_config.rb', line 22

def client_id
  @client_id
end

#provider_nameString (readonly)

The identity providers associated with the UserPool.

Returns:

  • (String)


26
27
28
# File 'cognito_identitypool/user_pool_authentication_provider_bind_config.rb', line 26

def provider_name
  @provider_name
end

#server_side_token_checkBoolean (readonly)

Whether to enable the identity pool's server side token check.

Returns:

  • (Boolean)


30
31
32
# File 'cognito_identitypool/user_pool_authentication_provider_bind_config.rb', line 30

def server_side_token_check
  @server_side_token_check
end

Class Method Details

.jsii_propertiesObject



32
33
34
35
36
37
38
# File 'cognito_identitypool/user_pool_authentication_provider_bind_config.rb', line 32

def self.jsii_properties
  {
    :client_id => "clientId",
    :provider_name => "providerName",
    :server_side_token_check => "serverSideTokenCheck",
  }
end

Instance Method Details

#to_jsiiObject



40
41
42
43
44
45
46
47
48
# File 'cognito_identitypool/user_pool_authentication_provider_bind_config.rb', line 40

def to_jsii
  result = {}
  result.merge!({
    "clientId" => @client_id,
    "providerName" => @provider_name,
    "serverSideTokenCheck" => @server_side_token_check,
  })
  result.compact
end