Class: AWSCDK::Elasticsearch::AdvancedSecurityOptions Deprecated

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

Overview

Deprecated.

use opensearchservice module instead

Specifies options for fine-grained access control.

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) ⇒ AdvancedSecurityOptions

Returns a new instance of AdvancedSecurityOptions.

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 (AWSCDK::SecretValue, nil) (defaults to: nil)

    Password for the master user.



12
13
14
15
16
17
18
19
# File 'elasticsearch/advanced_security_options.rb', line 12

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("eyJmcW4iOiJhd3MtY2RrLWxpYi5TZWNyZXRWYWx1ZSJ9")), "masterUserPassword") unless @master_user_password.nil?
end

Instance Attribute Details

#master_user_arnString? (readonly)

Deprecated.

use opensearchservice module instead

Note:

Default: - fine-grained access control is disabled

ARN for the master user.

Only specify this or masterUserName, but not both.

Returns:

  • (String, nil)


28
29
30
# File 'elasticsearch/advanced_security_options.rb', line 28

def master_user_arn
  @master_user_arn
end

#master_user_nameString? (readonly)

Deprecated.

use opensearchservice module instead

Note:

Default: - fine-grained access control is disabled

Username for the master user.

Only specify this or masterUserArn, but not both.

Returns:

  • (String, nil)


36
37
38
# File 'elasticsearch/advanced_security_options.rb', line 36

def master_user_name
  @master_user_name
end

#master_user_passwordAWSCDK::SecretValue? (readonly)

Deprecated.

use opensearchservice module instead

Note:

Default: - A Secrets Manager generated password

Password for the master user.

You can use SecretValue.unsafePlainText to specify a password in plain text or use secretsmanager.Secret.fromSecretAttributes to reference a secret in Secrets Manager.

Returns:



46
47
48
# File 'elasticsearch/advanced_security_options.rb', line 46

def master_user_password
  @master_user_password
end

Class Method Details

.jsii_propertiesObject



48
49
50
51
52
53
54
# File 'elasticsearch/advanced_security_options.rb', line 48

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

Instance Method Details

#to_jsiiObject



56
57
58
59
60
61
62
63
64
# File 'elasticsearch/advanced_security_options.rb', line 56

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