Class: AWSCDK::Elasticsearch::CfnDomain::MasterUserOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Elasticsearch::CfnDomain::MasterUserOptionsProperty
- Defined in:
- elasticsearch/cfn_domain.rb
Overview
Specifies information about the master user. Required if you enabled the internal user database.
The
AWS::Elasticsearch::Domainresource 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
-
#master_user_arn ⇒ String?
readonly
ARN for the master user.
-
#master_user_name ⇒ String?
readonly
Username for the master user.
-
#master_user_password ⇒ String?
readonly
Password for the master user.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(master_user_arn: nil, master_user_name: nil, master_user_password: nil) ⇒ MasterUserOptionsProperty
constructor
A new instance of MasterUserOptionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(master_user_arn: nil, master_user_name: nil, master_user_password: nil) ⇒ MasterUserOptionsProperty
Returns a new instance of MasterUserOptionsProperty.
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_arn ⇒ String? (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_name ⇒ String? (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_password ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |