Class: AWSCDK::Elasticsearch::CfnDomain::MasterUserOptionsProperty

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

Overview

Specifies information about the master user. Required if you enabled the internal user database.

The AWS::Elasticsearch::Domain resource is being replaced by the AWS::OpenSearchService::Domain resource. While the legacy Elasticsearch resource and options are still supported, we recommend modifying your existing Cloudformation templates to use the new OpenSearch Service resource, which supports both OpenSearch and Elasticsearch. For more information about the service rename, see New resource types in the Amazon OpenSearch Service Developer Guide .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(master_user_arn: nil, master_user_name: nil, master_user_password: nil) ⇒ MasterUserOptionsProperty

Returns a new instance of MasterUserOptionsProperty.

Parameters:

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

    ARN for the master user.

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

    Username for the master user.

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

    Password for the master user.



1346
1347
1348
1349
1350
1351
1352
1353
# File 'elasticsearch/cfn_domain.rb', line 1346

def initialize(master_user_arn: nil, master_user_name: nil, master_user_password: nil)
  @master_user_arn = master_user_arn
  Jsii::Type.check_type(@master_user_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "masterUserArn") unless @master_user_arn.nil?
  @master_user_name = master_user_name
  Jsii::Type.check_type(@master_user_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "masterUserName") unless @master_user_name.nil?
  @master_user_password = master_user_password
  Jsii::Type.check_type(@master_user_password, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "masterUserPassword") unless @master_user_password.nil?
end

Instance Attribute Details

#master_user_arnString? (readonly)

ARN for the master user.

Only specify if InternalUserDatabaseEnabled is false in AdvancedSecurityOptions .



1361
1362
1363
# File 'elasticsearch/cfn_domain.rb', line 1361

def master_user_arn
  @master_user_arn
end

#master_user_nameString? (readonly)

Username for the master user.

Only specify if InternalUserDatabaseEnabled is true in AdvancedSecurityOptions .



1368
1369
1370
# File 'elasticsearch/cfn_domain.rb', line 1368

def master_user_name
  @master_user_name
end

#master_user_passwordString? (readonly)

Password for the master user.

Only specify if InternalUserDatabaseEnabled is true in AdvancedSecurityOptions .



1375
1376
1377
# File 'elasticsearch/cfn_domain.rb', line 1375

def master_user_password
  @master_user_password
end

Class Method Details

.jsii_propertiesObject



1377
1378
1379
1380
1381
1382
1383
# File 'elasticsearch/cfn_domain.rb', line 1377

def self.jsii_properties
  {
    :master_user_arn => "masterUserArn",
    :master_user_name => "masterUserName",
    :master_user_password => "masterUserPassword",
  }
end

Instance Method Details

#to_jsiiObject



1385
1386
1387
1388
1389
1390
1391
1392
1393
# File 'elasticsearch/cfn_domain.rb', line 1385

def to_jsii
  result = {}
  result.merge!({
    "masterUserArn" => @master_user_arn,
    "masterUserName" => @master_user_name,
    "masterUserPassword" => @master_user_password,
  })
  result.compact
end