class CfnDomainPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Elasticsearch.Mixins.CfnDomainPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awselasticsearch/mixins#CfnDomainPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.elasticsearch.mixins.CfnDomainPropsMixin |
Python | aws_cdk.mixins_preview.aws_elasticsearch.mixins.CfnDomainPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_elasticsearch » mixins » CfnDomainPropsMixin |
Implements
IMixin
Extends
Mixin
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 .
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticsearch-domain.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins } from '@aws-cdk/mixins-preview';
import { mixins as elasticsearch_mixins } from '@aws-cdk/mixins-preview/aws-elasticsearch';
declare const accessPolicies: any;
const cfnDomainPropsMixin = new elasticsearch_mixins.CfnDomainPropsMixin({
accessPolicies: accessPolicies,
advancedOptions: {
advancedOptionsKey: 'advancedOptions',
},
advancedSecurityOptions: {
anonymousAuthEnabled: false,
enabled: false,
internalUserDatabaseEnabled: false,
masterUserOptions: {
masterUserArn: 'masterUserArn',
masterUserName: 'masterUserName',
masterUserPassword: 'masterUserPassword',
},
},
cognitoOptions: {
enabled: false,
identityPoolId: 'identityPoolId',
roleArn: 'roleArn',
userPoolId: 'userPoolId',
},
domainArn: 'domainArn',
domainEndpointOptions: {
customEndpoint: 'customEndpoint',
customEndpointCertificateArn: 'customEndpointCertificateArn',
customEndpointEnabled: false,
enforceHttps: false,
tlsSecurityPolicy: 'tlsSecurityPolicy',
},
domainName: 'domainName',
ebsOptions: {
ebsEnabled: false,
iops: 123,
volumeSize: 123,
volumeType: 'volumeType',
},
elasticsearchClusterConfig: {
coldStorageOptions: {
enabled: false,
},
dedicatedMasterCount: 123,
dedicatedMasterEnabled: false,
dedicatedMasterType: 'dedicatedMasterType',
instanceCount: 123,
instanceType: 'instanceType',
warmCount: 123,
warmEnabled: false,
warmType: 'warmType',
zoneAwarenessConfig: {
availabilityZoneCount: 123,
},
zoneAwarenessEnabled: false,
},
elasticsearchVersion: 'elasticsearchVersion',
encryptionAtRestOptions: {
enabled: false,
kmsKeyId: 'kmsKeyId',
},
logPublishingOptions: {
logPublishingOptionsKey: {
cloudWatchLogsLogGroupArn: 'cloudWatchLogsLogGroupArn',
enabled: false,
},
},
nodeToNodeEncryptionOptions: {
enabled: false,
},
snapshotOptions: {
automatedSnapshotStartHour: 123,
},
tags: [{
key: 'key',
value: 'value',
}],
vpcOptions: {
securityGroupIds: ['securityGroupIds'],
subnetIds: ['subnetIds'],
},
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnDomainPropsMixin(props: CfnDomainMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Domain Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::Elasticsearch::Domain.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript