MasterUserOptionsProperty Struct
Specifies information about the master user.
Required if InternalUserDatabaseEnabled is true in AdvancedSecurityOptions .
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_opensearchservice as opensearchservice } from 'aws-cdk-lib';
const masterUserOptionsProperty: opensearchservice.CfnDomain.MasterUserOptionsProperty = {
masterUserArn: 'masterUserArn',
masterUserName: 'masterUserName',
masterUserPassword: 'masterUserPassword',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_opensearchservice as opensearchservice
master_user_options_property = opensearchservice.CfnDomain.MasterUserOptionsProperty(
master_user_arn="masterUserArn",
master_user_name="masterUserName",
master_user_password="masterUserPassword"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.opensearchservice.*;
MasterUserOptionsProperty masterUserOptionsProperty = MasterUserOptionsProperty.builder()
.masterUserArn("masterUserArn")
.masterUserName("masterUserName")
.masterUserPassword("masterUserPassword")
.build();
csharp
// 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.OpenSearchService;
var masterUserOptionsProperty = new MasterUserOptionsProperty {
MasterUserArn = "masterUserArn",
MasterUserName = "masterUserName",
MasterUserPassword = "masterUserPassword"
};
go
// 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 #Amazon Resource Name (ARN) for the master user.
notes
The ARN can point to an IAM user or role. This property is required for Amazon Cognito to work, and it must match the role configured for Cognito. Only specify if InternalUserDatabaseEnabled is false in AdvancedSecurityOptionsInput .
masterUserNameoptionalstringmaster_user_nameoptionalstrmasterUserNameoptionalStringMasterUserNameoptionalstringMasterUserNameoptional*string #Username for the master user. Only specify if `InternalUserDatabaseEnabled` is true in AdvancedSecurityOptionsInput .
If you don't want to specify this value directly within the template, you can use a dynamic reference instead.
masterUserPasswordoptionalstringmaster_user_passwordoptionalstrmasterUserPasswordoptionalStringMasterUserPasswordoptionalstringMasterUserPasswordoptional*string #Password for the master user. Only specify if `InternalUserDatabaseEnabled` is true in AdvancedSecurityOptionsInput .
If you don't want to specify this value directly within the template, you can use a dynamic reference instead.