Class: AWSCDK::OpenSearchService::CfnDomain::CognitoOptionsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
open_search_service/cfn_domain.rb

Overview

Configures OpenSearch Service to use Amazon Cognito authentication for OpenSearch Dashboards.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enabled: nil, identity_pool_id: nil, role_arn: nil, user_pool_id: nil) ⇒ CognitoOptionsProperty

Returns a new instance of CognitoOptionsProperty.

Parameters:

  • enabled (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Whether to enable or disable Amazon Cognito authentication for OpenSearch Dashboards.

  • identity_pool_id (String, nil) (defaults to: nil)

    The Amazon Cognito identity pool ID that you want OpenSearch Service to use for OpenSearch Dashboards authentication.

  • role_arn (String, nil) (defaults to: nil)

    The AmazonOpenSearchServiceCognitoAccess role that allows OpenSearch Service to configure your user pool and identity pool.

  • user_pool_id (String, nil) (defaults to: nil)

    The Amazon Cognito user pool ID that you want OpenSearch Service to use for OpenSearch Dashboards authentication.



1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
# File 'open_search_service/cfn_domain.rb', line 1326

def initialize(enabled: nil, identity_pool_id: nil, role_arn: nil, user_pool_id: nil)
  @enabled = enabled
  Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enabled") unless @enabled.nil?
  @identity_pool_id = identity_pool_id
  Jsii::Type.check_type(@identity_pool_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "identityPoolId") unless @identity_pool_id.nil?
  @role_arn = role_arn
  Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn") unless @role_arn.nil?
  @user_pool_id = user_pool_id
  Jsii::Type.check_type(@user_pool_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "userPoolId") unless @user_pool_id.nil?
end

Instance Attribute Details

#enabledBoolean, ... (readonly)

Whether to enable or disable Amazon Cognito authentication for OpenSearch Dashboards.

See Amazon Cognito authentication for OpenSearch Dashboards .



1343
1344
1345
# File 'open_search_service/cfn_domain.rb', line 1343

def enabled
  @enabled
end

#identity_pool_idString? (readonly)

The Amazon Cognito identity pool ID that you want OpenSearch Service to use for OpenSearch Dashboards authentication.

Required if you enabled Cognito Authentication for OpenSearch Dashboards.



1350
1351
1352
# File 'open_search_service/cfn_domain.rb', line 1350

def identity_pool_id
  @identity_pool_id
end

#role_arnString? (readonly)

The AmazonOpenSearchServiceCognitoAccess role that allows OpenSearch Service to configure your user pool and identity pool.

Required if you enabled Cognito Authentication for OpenSearch Dashboards.



1357
1358
1359
# File 'open_search_service/cfn_domain.rb', line 1357

def role_arn
  @role_arn
end

#user_pool_idString? (readonly)

The Amazon Cognito user pool ID that you want OpenSearch Service to use for OpenSearch Dashboards authentication.

Required if you enabled Cognito Authentication for OpenSearch Dashboards.



1364
1365
1366
# File 'open_search_service/cfn_domain.rb', line 1364

def user_pool_id
  @user_pool_id
end

Class Method Details

.jsii_propertiesObject



1366
1367
1368
1369
1370
1371
1372
1373
# File 'open_search_service/cfn_domain.rb', line 1366

def self.jsii_properties
  {
    :enabled => "enabled",
    :identity_pool_id => "identityPoolId",
    :role_arn => "roleArn",
    :user_pool_id => "userPoolId",
  }
end

Instance Method Details

#to_jsiiObject



1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
# File 'open_search_service/cfn_domain.rb', line 1375

def to_jsii
  result = {}
  result.merge!({
    "enabled" => @enabled,
    "identityPoolId" => @identity_pool_id,
    "roleArn" => @role_arn,
    "userPoolId" => @user_pool_id,
  })
  result.compact
end