AdvancedSecurityOptionsInputProperty Struct
Specifies options for fine-grained access control.
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
ts
// 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 advancedSecurityOptionsInputProperty: elasticsearch.CfnDomain.AdvancedSecurityOptionsInputProperty = {
anonymousAuthEnabled: false,
enabled: false,
internalUserDatabaseEnabled: false,
masterUserOptions: {
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_elasticsearch as elasticsearch
advanced_security_options_input_property = elasticsearch.CfnDomain.AdvancedSecurityOptionsInputProperty(
anonymous_auth_enabled=False,
enabled=False,
internal_user_database_enabled=False,
master_user_options=elasticsearch.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.elasticsearch.*;
AdvancedSecurityOptionsInputProperty advancedSecurityOptionsInputProperty = AdvancedSecurityOptionsInputProperty.builder()
.anonymousAuthEnabled(false)
.enabled(false)
.internalUserDatabaseEnabled(false)
.masterUserOptions(MasterUserOptionsProperty.builder()
.masterUserArn("masterUserArn")
.masterUserName("masterUserName")
.masterUserPassword("masterUserPassword")
.build())
.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.Elasticsearch;
var advancedSecurityOptionsInputProperty = new AdvancedSecurityOptionsInputProperty {
AnonymousAuthEnabled = false,
Enabled = false,
InternalUserDatabaseEnabled = false,
MasterUserOptions = 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"
advancedSecurityOptionsInputProperty := &AdvancedSecurityOptionsInputProperty{
AnonymousAuthEnabled: jsii.Boolean(false),
Enabled: jsii.Boolean(false),
InternalUserDatabaseEnabled: jsii.Boolean(false),
MasterUserOptions: &MasterUserOptionsProperty{
MasterUserArn: jsii.String("masterUserArn"),
MasterUserName: jsii.String("masterUserName"),
MasterUserPassword: jsii.String("masterUserPassword"),
},
}
Properties
anonymousAuthEnabledoptionalboolean | IResolvableanonymous_auth_enabledoptionaltyping.Union[bool, IResolvable]anonymousAuthEnabledoptionalBooleanAnonymousAuthEnabledoptionalboolAnonymousAuthEnabledoptionalinterface{} #enabledoptionalboolean | IResolvableenabledoptionaltyping.Union[bool, IResolvable]enabledoptionalBooleanEnabledoptionalboolEnabledoptionalinterface{} #True to enable fine-grained access control.
You must also enable encryption of data at rest and node-to-node encryption.
internalUserDatabaseEnabledoptionalboolean | IResolvableinternal_user_database_enabledoptionaltyping.Union[bool, IResolvable]internalUserDatabaseEnabledoptionalBooleanInternalUserDatabaseEnabledoptionalboolInternalUserDatabaseEnabledoptionalinterface{} #True to enable the internal user database.
masterUserOptionsoptionalIResolvable | CfnDomain.master_user_optionsoptionaltyping.Union[IResolvable, MasterUserOptionsProperty]masterUserOptionsoptionalIResolvableMasterUserOptionsoptionalIResolvableMasterUserOptionsoptionalinterface{} #Specifies information about the master user.