Class: AWSCDK::Elasticsearch::AdvancedSecurityOptions Deprecated
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Elasticsearch::AdvancedSecurityOptions
- Defined in:
- elasticsearch/advanced_security_options.rb
Overview
use opensearchservice module instead
Specifies options for fine-grained access control.
Instance Attribute Summary collapse
-
#master_user_arn ⇒ String?
readonly
deprecated
Deprecated.
use opensearchservice module instead
-
#master_user_name ⇒ String?
readonly
deprecated
Deprecated.
use opensearchservice module instead
-
#master_user_password ⇒ AWSCDK::SecretValue?
readonly
deprecated
Deprecated.
use opensearchservice module instead
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(master_user_arn: nil, master_user_name: nil, master_user_password: nil) ⇒ AdvancedSecurityOptions
constructor
A new instance of AdvancedSecurityOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(master_user_arn: nil, master_user_name: nil, master_user_password: nil) ⇒ AdvancedSecurityOptions
Returns a new instance of AdvancedSecurityOptions.
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_arn ⇒ String? (readonly)
use opensearchservice module instead
Default: - fine-grained access control is disabled
ARN for the master user.
Only specify this or masterUserName, but not both.
28 29 30 |
# File 'elasticsearch/advanced_security_options.rb', line 28 def master_user_arn @master_user_arn end |
#master_user_name ⇒ String? (readonly)
use opensearchservice module instead
Default: - fine-grained access control is disabled
Username for the master user.
Only specify this or masterUserArn, but not both.
36 37 38 |
# File 'elasticsearch/advanced_security_options.rb', line 36 def master_user_name @master_user_name end |
#master_user_password ⇒ AWSCDK::SecretValue? (readonly)
use opensearchservice module instead
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.
46 47 48 |
# File 'elasticsearch/advanced_security_options.rb', line 46 def master_user_password @master_user_password end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |