MasterUserOptionsProperty Struct
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 .
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_elasticsearch as elasticsearch } from 'aws-cdk-lib';
const masterUserOptionsProperty: elasticsearch.CfnDomain.MasterUserOptionsProperty = {
masterUserArn: 'masterUserArn',
masterUserName: 'masterUserName',
masterUserPassword: 'masterUserPassword',
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_elasticsearch as elasticsearch
master_user_options_property = elasticsearch.CfnDomain.MasterUserOptionsProperty(
master_user_arn="masterUserArn",
master_user_name="masterUserName",
master_user_password="masterUserPassword"
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.elasticsearch.*;
MasterUserOptionsProperty masterUserOptionsProperty = MasterUserOptionsProperty.builder()
.masterUserArn("masterUserArn")
.masterUserName("masterUserName")
.masterUserPassword("masterUserPassword")
.build();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Elasticsearch;
var masterUserOptionsProperty = new MasterUserOptionsProperty {
MasterUserArn = "masterUserArn",
MasterUserName = "masterUserName",
MasterUserPassword = "masterUserPassword"
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
masterUserOptionsProperty := &MasterUserOptionsProperty{
MasterUserArn: jsii.String("masterUserArn"),
MasterUserName: jsii.String("masterUserName"),
MasterUserPassword: jsii.String("masterUserPassword"),
}
Properties
masterUserArnoptionalstringmaster_user_arnoptionalstrmasterUserArnoptionalStringMasterUserArnoptionalstringMasterUserArnoptional*string #Only specify if InternalUserDatabaseEnabled is false in AdvancedSecurityOptions .
masterUserNameoptionalstringmaster_user_nameoptionalstrmasterUserNameoptionalStringMasterUserNameoptionalstringMasterUserNameoptional*string #Only specify if InternalUserDatabaseEnabled is true in AdvancedSecurityOptions .
masterUserPasswordoptionalstringmaster_user_passwordoptionalstrmasterUserPasswordoptionalStringMasterUserPasswordoptionalstringMasterUserPasswordoptional*string #Only specify if InternalUserDatabaseEnabled is true in AdvancedSecurityOptions .