Class AdvancedSecurityOptions
Specifies options for fine-grained access control.
Inheritance
System.Object
AdvancedSecurityOptions
Implements
Namespace: Amazon.CDK.AWS.OpenSearchService
Assembly: Amazon.CDK.AWS.OpenSearchService.dll
Syntax (csharp)
public class AdvancedSecurityOptions : Object, IAdvancedSecurityOptions
Syntax (vb)
Public Class AdvancedSecurityOptions
Inherits Object
Implements IAdvancedSecurityOptions
Remarks
ExampleMetadata: infused
Examples
var domain = new Domain(this, "Domain", new DomainProps {
Version = EngineVersion.OPENSEARCH_1_0,
EnforceHttps = true,
NodeToNodeEncryption = true,
EncryptionAtRest = new EncryptionAtRestOptions {
Enabled = true
},
FineGrainedAccessControl = new AdvancedSecurityOptions {
MasterUserName = "master-user"
},
Logging = new LoggingOptions {
AuditLogEnabled = true,
SlowSearchLogEnabled = true,
AppLogEnabled = true,
SlowIndexLogEnabled = true
}
});
Synopsis
Constructors
AdvancedSecurityOptions() |
Properties
MasterUserArn | ARN for the master user. |
MasterUserName | Username for the master user. |
MasterUserPassword | Password for the master user. |
Constructors
AdvancedSecurityOptions()
public AdvancedSecurityOptions()
Properties
MasterUserArn
ARN for the master user.
public string MasterUserArn { get; set; }
Property Value
System.String
Remarks
Only specify this or masterUserName, but not both.
Default: - fine-grained access control is disabled
MasterUserName
Username for the master user.
public string MasterUserName { get; set; }
Property Value
System.String
Remarks
Only specify this or masterUserArn, but not both.
Default: - fine-grained access control is disabled
MasterUserPassword
Password for the master user.
public SecretValue MasterUserPassword { get; set; }
Property Value
Remarks
You can use SecretValue.unsafePlainText
to specify a password in plain text or
use secretsmanager.Secret.fromSecretAttributes
to reference a secret in
Secrets Manager.
Default: - A Secrets Manager generated password