package awsopensearchservice import ( "github.com/aws/aws-cdk-go/awscdk/v2" ) // Specifies options for fine-grained access control. // // Example: // domain := awscdk.NewDomain(this, jsii.String("Domain"), &DomainProps{ // Version: awscdk.EngineVersion_OPENSEARCH_1_0(), // EnforceHttps: jsii.Boolean(true), // NodeToNodeEncryption: jsii.Boolean(true), // EncryptionAtRest: &EncryptionAtRestOptions{ // Enabled: jsii.Boolean(true), // }, // FineGrainedAccessControl: &AdvancedSecurityOptions{ // MasterUserName: jsii.String("master-user"), // }, // Logging: &LoggingOptions{ // AuditLogEnabled: jsii.Boolean(true), // SlowSearchLogEnabled: jsii.Boolean(true), // AppLogEnabled: jsii.Boolean(true), // SlowIndexLogEnabled: jsii.Boolean(true), // }, // }) // type AdvancedSecurityOptions struct { // ARN for the master user. // // Only specify this or masterUserName, but not both. MasterUserArn *string `field:"optional" json:"masterUserArn" yaml:"masterUserArn"` // Username for the master user. // // Only specify this or masterUserArn, but not both. MasterUserName *string `field:"optional" json:"masterUserName" yaml:"masterUserName"` // 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. MasterUserPassword awscdk.SecretValue `field:"optional" json:"masterUserPassword" yaml:"masterUserPassword"` }