Interface CfnDomainProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDomainProps.Jsii$Proxy
CfnDomain.
Example:
// 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.*;
Object accessPolicies;
CfnDomainProps cfnDomainProps = CfnDomainProps.builder()
.accessPolicies(accessPolicies)
.advancedOptions(Map.of(
"advancedOptionsKey", "advancedOptions"))
.advancedSecurityOptions(AdvancedSecurityOptionsInputProperty.builder()
.anonymousAuthEnabled(false)
.enabled(false)
.internalUserDatabaseEnabled(false)
.masterUserOptions(MasterUserOptionsProperty.builder()
.masterUserArn("masterUserArn")
.masterUserName("masterUserName")
.masterUserPassword("masterUserPassword")
.build())
.build())
.cognitoOptions(CognitoOptionsProperty.builder()
.enabled(false)
.identityPoolId("identityPoolId")
.roleArn("roleArn")
.userPoolId("userPoolId")
.build())
.domainArn("domainArn")
.domainEndpointOptions(DomainEndpointOptionsProperty.builder()
.customEndpoint("customEndpoint")
.customEndpointCertificateArn("customEndpointCertificateArn")
.customEndpointEnabled(false)
.enforceHttps(false)
.tlsSecurityPolicy("tlsSecurityPolicy")
.build())
.domainName("domainName")
.ebsOptions(EBSOptionsProperty.builder()
.ebsEnabled(false)
.iops(123)
.volumeSize(123)
.volumeType("volumeType")
.build())
.elasticsearchClusterConfig(ElasticsearchClusterConfigProperty.builder()
.coldStorageOptions(ColdStorageOptionsProperty.builder()
.enabled(false)
.build())
.dedicatedMasterCount(123)
.dedicatedMasterEnabled(false)
.dedicatedMasterType("dedicatedMasterType")
.instanceCount(123)
.instanceType("instanceType")
.warmCount(123)
.warmEnabled(false)
.warmType("warmType")
.zoneAwarenessConfig(ZoneAwarenessConfigProperty.builder()
.availabilityZoneCount(123)
.build())
.zoneAwarenessEnabled(false)
.build())
.elasticsearchVersion("elasticsearchVersion")
.encryptionAtRestOptions(EncryptionAtRestOptionsProperty.builder()
.enabled(false)
.kmsKeyId("kmsKeyId")
.build())
.logPublishingOptions(Map.of(
"logPublishingOptionsKey", LogPublishingOptionProperty.builder()
.cloudWatchLogsLogGroupArn("cloudWatchLogsLogGroupArn")
.enabled(false)
.build()))
.nodeToNodeEncryptionOptions(NodeToNodeEncryptionOptionsProperty.builder()
.enabled(false)
.build())
.snapshotOptions(SnapshotOptionsProperty.builder()
.automatedSnapshotStartHour(123)
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.vpcOptions(VPCOptionsProperty.builder()
.securityGroupIds(List.of("securityGroupIds"))
.subnetIds(List.of("subnetIds"))
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDomainPropsstatic final classAn implementation forCfnDomainProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnDomainProps.Builderbuilder()default ObjectAn AWS Identity and Access Management ( IAM ) policy document that specifies who can access the OpenSearch Service domain and their permissions.default ObjectAdditional options to specify for the OpenSearch Service domain.default ObjectSpecifies options for fine-grained access control.default ObjectConfigures OpenSearch Service to use Amazon Cognito authentication for OpenSearch Dashboards.default Stringdefault ObjectSpecifies additional options for the domain endpoint, such as whether to require HTTPS for all traffic or whether to use a custom endpoint rather than the default endpoint.default StringA name for the OpenSearch Service domain.default ObjectThe configurations of Amazon Elastic Block Store (Amazon EBS) volumes that are attached to data nodes in the OpenSearch Service domain.default ObjectElasticsearchClusterConfig is a property of the AWS::Elasticsearch::Domain resource that configures the cluster of an Amazon OpenSearch Service domain.default StringThe version of Elasticsearch to use, such as 2.3.default ObjectWhether the domain should encrypt data at rest, and if so, the AWS Key Management Service key to use.default ObjectAn object with one or more of the following keys:SEARCH_SLOW_LOGS,ES_APPLICATION_LOGS,INDEX_SLOW_LOGS,AUDIT_LOGS, depending on the types of logs you want to publish.default ObjectSpecifies whether node-to-node encryption is enabled.default ObjectDEPRECATED .getTags()An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Service domain.default ObjectThe virtual private cloud (VPC) configuration for the OpenSearch Service domain.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAccessPolicies
An AWS Identity and Access Management ( IAM ) policy document that specifies who can access the OpenSearch Service domain and their permissions.For more information, see Configuring access policies in the Amazon OpenSearch Service Developer Guid e.
- See Also:
-
getAdvancedOptions
Additional options to specify for the OpenSearch Service domain.For more information, see Advanced cluster parameters in the Amazon OpenSearch Service Developer Guide .
Returns union: either Mapinvalid input: '<'String,
String> orIResolvable- See Also:
-
getAdvancedSecurityOptions
Specifies options for fine-grained access control.Returns union: either
IResolvableorCfnDomain.AdvancedSecurityOptionsInputProperty- See Also:
-
getCognitoOptions
Configures OpenSearch Service to use Amazon Cognito authentication for OpenSearch Dashboards.Returns union: either
IResolvableorCfnDomain.CognitoOptionsProperty- See Also:
-
getDomainArn
- See Also:
-
getDomainEndpointOptions
Specifies additional options for the domain endpoint, such as whether to require HTTPS for all traffic or whether to use a custom endpoint rather than the default endpoint.Returns union: either
IResolvableorCfnDomain.DomainEndpointOptionsProperty- See Also:
-
getDomainName
A name for the OpenSearch Service domain.For valid values, see the DomainName data type in the Amazon OpenSearch Service Developer Guide . If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the domain name. For more information, see Name Type .
If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
- See Also:
-
getEbsOptions
The configurations of Amazon Elastic Block Store (Amazon EBS) volumes that are attached to data nodes in the OpenSearch Service domain.For more information, see EBS volume size limits in the Amazon OpenSearch Service Developer Guide .
Returns union: either
IResolvableorCfnDomain.EBSOptionsProperty- See Also:
-
getElasticsearchClusterConfig
ElasticsearchClusterConfig is a property of the AWS::Elasticsearch::Domain resource that configures the cluster of an Amazon OpenSearch Service domain.Returns union: either
IResolvableorCfnDomain.ElasticsearchClusterConfigProperty- See Also:
-
getElasticsearchVersion
The version of Elasticsearch to use, such as 2.3. If not specified, 1.5 is used as the default. For information about the versions that OpenSearch Service supports, see Supported versions of OpenSearch and Elasticsearch in the Amazon OpenSearch Service Developer Guide .If you set the EnableVersionUpgrade update policy to
true, you can updateElasticsearchVersionwithout interruption. WhenEnableVersionUpgradeis set tofalse, or is not specified, updatingElasticsearchVersionresults in replacement .- See Also:
-
getEncryptionAtRestOptions
Whether the domain should encrypt data at rest, and if so, the AWS Key Management Service key to use.See Encryption of data at rest for Amazon OpenSearch Service .
Returns union: either
IResolvableorCfnDomain.EncryptionAtRestOptionsProperty- See Also:
-
getLogPublishingOptions
An object with one or more of the following keys:SEARCH_SLOW_LOGS,ES_APPLICATION_LOGS,INDEX_SLOW_LOGS,AUDIT_LOGS, depending on the types of logs you want to publish.Each key needs a valid
LogPublishingOptionvalue.Returns union: either
IResolvableor Mapinvalid input: '<'String, eitherIResolvableorCfnDomain.LogPublishingOptionProperty>- See Also:
-
getNodeToNodeEncryptionOptions
Specifies whether node-to-node encryption is enabled.See Node-to-node encryption for Amazon OpenSearch Service .
Returns union: either
IResolvableorCfnDomain.NodeToNodeEncryptionOptionsProperty- See Also:
-
getSnapshotOptions
DEPRECATED .The automated snapshot configuration for the OpenSearch Service domain indices.
Returns union: either
IResolvableorCfnDomain.SnapshotOptionsProperty- See Also:
-
getTags
An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Service domain.- See Also:
-
getVpcOptions
The virtual private cloud (VPC) configuration for the OpenSearch Service domain.For more information, see Launching your Amazon OpenSearch Service domains within a VPC in the Amazon OpenSearch Service Developer Guide .
Returns union: either
IResolvableorCfnDomain.VPCOptionsProperty- See Also:
-
builder
- Returns:
- a
CfnDomainProps.BuilderofCfnDomainProps
-