Class CfnDomainPropsMixin
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.elasticsearch.CfnDomainPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-11T13:19:59.229Z")
@Stability(Stable)
public class CfnDomainPropsMixin
extends Mixin
implements software.constructs.IMixin
The AWS::Elasticsearch::Domain resource creates an Amazon OpenSearch Service domain.
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 legacy Elasticsearch. For instructions to upgrade domains defined within CloudFormation from Elasticsearch to OpenSearch, see Remarks .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.elasticsearch.*;
import software.amazon.awscdk.*;
Object accessPolicies;
IMergeStrategy mergeStrategy;
CfnDomainPropsMixin cfnDomainPropsMixin = CfnDomainPropsMixin.Builder.create(CfnDomainMixinProps.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())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceSpecifies options for fine-grained access control.static final classA fluent builder forCfnDomainPropsMixin.static interfaceConfigures OpenSearch Service to use Amazon Cognito authentication for OpenSearch Dashboards.static interfaceSpecifies options for cold storage.static interfaceSpecifies 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.static interfaceThe configurations of Amazon Elastic Block Store (Amazon EBS) volumes that are attached to data nodes in the OpenSearch Service domain.static interfaceThe cluster configuration for the OpenSearch Service domain.static interfaceWhether the domain should encrypt data at rest, and if so, the AWS Key Management Service key to use.static interfacestatic interfaceSpecifies information about the master user.static interfaceSpecifies whether node-to-node encryption is enabled.static interfacestatic interfaceThe virtual private cloud (VPC) configuration for the OpenSearch Service domain.static interfaceSpecifies zone awareness configuration options.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::Elasticsearch::Domain.CfnDomainPropsMixin(CfnDomainMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::Elasticsearch::Domain.protectedCfnDomainPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDomainPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnDomainMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnDomainPropsMixin
protected CfnDomainPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnDomainPropsMixin
protected CfnDomainPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnDomainPropsMixin
@Stability(Stable) public CfnDomainPropsMixin(@NotNull CfnDomainMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::Elasticsearch::Domain.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnDomainPropsMixin
Create a mixin to apply properties toAWS::Elasticsearch::Domain.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-