interface AdvancedSecurityOptions
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Elasticsearch.AdvancedSecurityOptions |
Java | software.amazon.awscdk.services.elasticsearch.AdvancedSecurityOptions |
Python | aws_cdk.aws_elasticsearch.AdvancedSecurityOptions |
TypeScript (source) | @aws-cdk/aws-elasticsearch » AdvancedSecurityOptions |
⚠️ Deprecated: use opensearchservice module instead
Specifies options for fine-grained access control.
Example
const domain = new es.Domain(this, 'Domain', {
version: es.ElasticsearchVersion.V7_1,
enforceHttps: true,
nodeToNodeEncryption: true,
encryptionAtRest: {
enabled: true,
},
fineGrainedAccessControl: {
masterUserName: 'master-user',
},
});
const masterUserPassword = domain.masterUserPassword;
Properties
Name | Type | Description |
---|---|---|
master | string | ARN for the master user. |
master | string | Username for the master user. |
master | Secret | Password for the master user. |
masterUserArn?
⚠️ Deprecated: use opensearchservice module instead
Type:
string
(optional, default: fine-grained access control is disabled)
ARN for the master user.
Only specify this or masterUserName, but not both.
masterUserName?
⚠️ Deprecated: use opensearchservice module instead
Type:
string
(optional, default: fine-grained access control is disabled)
Username for the master user.
Only specify this or masterUserArn, but not both.
masterUserPassword?
⚠️ Deprecated: use opensearchservice module instead
Type:
Secret
(optional, 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.