Documentation ¶
Index ¶
- func CfnDomain_CFN_RESOURCE_TYPE_NAME() *string
- func CfnDomain_IsCfnElement(x interface{}) *bool
- func CfnDomain_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnDomain_IsConstruct(x interface{}) *bool
- func Domain_IsConstruct(x interface{}) *bool
- func Domain_IsOwnedResource(construct constructs.IConstruct) *bool
- func Domain_IsResource(construct constructs.IConstruct) *bool
- func NewCfnDomain_Override(c CfnDomain, scope constructs.Construct, id *string, props *CfnDomainProps)
- func NewDomain_Override(d Domain, scope constructs.Construct, id *string, props *DomainProps)deprecated
- type AdvancedSecurityOptionsdeprecated
- type CapacityConfigdeprecated
- type CfnDomain
- type CfnDomainProps
- type CfnDomain_AdvancedSecurityOptionsInputProperty
- type CfnDomain_CognitoOptionsProperty
- type CfnDomain_ColdStorageOptionsProperty
- type CfnDomain_DomainEndpointOptionsProperty
- type CfnDomain_EBSOptionsProperty
- type CfnDomain_ElasticsearchClusterConfigProperty
- type CfnDomain_EncryptionAtRestOptionsProperty
- type CfnDomain_LogPublishingOptionProperty
- type CfnDomain_MasterUserOptionsProperty
- type CfnDomain_NodeToNodeEncryptionOptionsProperty
- type CfnDomain_SnapshotOptionsProperty
- type CfnDomain_VPCOptionsProperty
- type CfnDomain_ZoneAwarenessConfigProperty
- type CognitoOptionsdeprecated
- type CustomEndpointOptionsdeprecated
- type Domaindeprecated
- type DomainAttributesdeprecated
- type DomainPropsdeprecated
- type EbsOptionsdeprecated
- type ElasticsearchVersion
- func ElasticsearchVersion_Of(version *string) ElasticsearchVersion
- func ElasticsearchVersion_V1_5() ElasticsearchVersion
- func ElasticsearchVersion_V2_3() ElasticsearchVersion
- func ElasticsearchVersion_V5_1() ElasticsearchVersion
- func ElasticsearchVersion_V5_3() ElasticsearchVersion
- func ElasticsearchVersion_V5_5() ElasticsearchVersion
- func ElasticsearchVersion_V5_6() ElasticsearchVersion
- func ElasticsearchVersion_V6_0() ElasticsearchVersion
- func ElasticsearchVersion_V6_2() ElasticsearchVersion
- func ElasticsearchVersion_V6_3() ElasticsearchVersion
- func ElasticsearchVersion_V6_4() ElasticsearchVersion
- func ElasticsearchVersion_V6_5() ElasticsearchVersion
- func ElasticsearchVersion_V6_7() ElasticsearchVersion
- func ElasticsearchVersion_V6_8() ElasticsearchVersion
- func ElasticsearchVersion_V7_1() ElasticsearchVersion
- func ElasticsearchVersion_V7_10() ElasticsearchVersion
- func ElasticsearchVersion_V7_4() ElasticsearchVersion
- func ElasticsearchVersion_V7_7() ElasticsearchVersion
- func ElasticsearchVersion_V7_8() ElasticsearchVersion
- func ElasticsearchVersion_V7_9() ElasticsearchVersion
- type EncryptionAtRestOptionsdeprecated
- type IDomain
- type LoggingOptionsdeprecated
- type TLSSecurityPolicy
- type ZoneAwarenessConfigdeprecated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CfnDomain_CFN_RESOURCE_TYPE_NAME ¶
func CfnDomain_CFN_RESOURCE_TYPE_NAME() *string
func CfnDomain_IsCfnElement ¶
func CfnDomain_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnDomain_IsCfnResource ¶
func CfnDomain_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnDomain_IsConstruct ¶
func CfnDomain_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func Domain_IsConstruct ¶
func Domain_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use opensearchservice module instead.
func Domain_IsOwnedResource ¶ added in v2.32.0
func Domain_IsOwnedResource(construct constructs.IConstruct) *bool
Returns true if the construct was created by CDK, and false otherwise. Deprecated: use opensearchservice module instead.
func Domain_IsResource ¶
func Domain_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource. Deprecated: use opensearchservice module instead.
func NewCfnDomain_Override ¶
func NewCfnDomain_Override(c CfnDomain, scope constructs.Construct, id *string, props *CfnDomainProps)
Create a new `AWS::Elasticsearch::Domain`.
func NewDomain_Override
deprecated
func NewDomain_Override(d Domain, scope constructs.Construct, id *string, props *DomainProps)
Deprecated: use opensearchservice module instead.
Types ¶
type AdvancedSecurityOptions
deprecated
type AdvancedSecurityOptions struct { // ARN for the master user. // // Only specify this or masterUserName, but not both. // Deprecated: use opensearchservice module instead. MasterUserArn *string `field:"optional" json:"masterUserArn" yaml:"masterUserArn"` // Username for the master user. // // Only specify this or masterUserArn, but not both. // Deprecated: use opensearchservice module instead. 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. // Deprecated: use opensearchservice module instead. MasterUserPassword awscdk.SecretValue `field:"optional" json:"masterUserPassword" yaml:"masterUserPassword"` }
Specifies options for fine-grained access control.
Example:
domain := es.NewDomain(this, jsii.String("Domain"), &domainProps{ version: es.elasticsearchVersion_V7_1(), enforceHttps: jsii.Boolean(true), nodeToNodeEncryption: jsii.Boolean(true), encryptionAtRest: &encryptionAtRestOptions{ enabled: jsii.Boolean(true), }, fineGrainedAccessControl: &advancedSecurityOptions{ masterUserName: jsii.String("master-user"), }, }) masterUserPassword := domain.masterUserPassword
Deprecated: use opensearchservice module instead.
type CapacityConfig
deprecated
type CapacityConfig struct { // The instance type for your data nodes, such as `m3.medium.elasticsearch`. For valid values, see [Supported Instance Types](https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/aes-supported-instance-types.html) in the Amazon Elasticsearch Service Developer Guide. // Deprecated: use opensearchservice module instead. DataNodeInstanceType *string `field:"optional" json:"dataNodeInstanceType" yaml:"dataNodeInstanceType"` // The number of data nodes (instances) to use in the Amazon ES domain. // Deprecated: use opensearchservice module instead. DataNodes *float64 `field:"optional" json:"dataNodes" yaml:"dataNodes"` // The hardware configuration of the computer that hosts the dedicated master node, such as `m3.medium.elasticsearch`. For valid values, see [Supported Instance Types] (https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/aes-supported-instance-types.html) in the Amazon Elasticsearch Service Developer Guide. // Deprecated: use opensearchservice module instead. MasterNodeInstanceType *string `field:"optional" json:"masterNodeInstanceType" yaml:"masterNodeInstanceType"` // The number of instances to use for the master node. // Deprecated: use opensearchservice module instead. MasterNodes *float64 `field:"optional" json:"masterNodes" yaml:"masterNodes"` // The instance type for your UltraWarm node, such as `ultrawarm1.medium.elasticsearch`. For valid values, see [UltraWarm Storage Limits] (https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/aes-limits.html#limits-ultrawarm) in the Amazon Elasticsearch Service Developer Guide. // Deprecated: use opensearchservice module instead. WarmInstanceType *string `field:"optional" json:"warmInstanceType" yaml:"warmInstanceType"` // The number of UltraWarm nodes (instances) to use in the Amazon ES domain. // Deprecated: use opensearchservice module instead. WarmNodes *float64 `field:"optional" json:"warmNodes" yaml:"warmNodes"` }
Configures the capacity of the cluster such as the instance type and the number of instances.
Example:
domain := es.NewDomain(this, jsii.String("Domain"), &domainProps{ version: es.elasticsearchVersion_V7_10(), capacity: &capacityConfig{ masterNodes: jsii.Number(2), warmNodes: jsii.Number(2), warmInstanceType: jsii.String("ultrawarm1.medium.elasticsearch"), }, })
Deprecated: use opensearchservice module instead.
type CfnDomain ¶
type CfnDomain interface { awscdk.CfnResource awscdk.IInspectable // 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](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/ac.html#ac-creating) in the *Amazon OpenSearch Service Developer Guid* e. AccessPolicies() interface{} SetAccessPolicies(val interface{}) // Additional options to specify for the OpenSearch Service domain. // // For more information, see [Advanced cluster parameters](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/createupdatedomains.html#createdomain-configure-advanced-options) in the *Amazon OpenSearch Service Developer Guide* . AdvancedOptions() interface{} SetAdvancedOptions(val interface{}) // Specifies options for fine-grained access control. AdvancedSecurityOptions() interface{} SetAdvancedSecurityOptions(val interface{}) // The Amazon Resource Name (ARN) of the domain, such as `arn:aws:es:us-west-2:123456789012:domain/mystack-elasti-1ab2cdefghij` . // // This returned value is the same as the one returned by `AWS::Elasticsearch::Domain.DomainArn` . AttrArn() *string // The domain-specific endpoint that's used for requests to the OpenSearch APIs, such as `search-mystack-elasti-1ab2cdefghij-ab1c2deckoyb3hofw7wpqa3cm.us-west-1.es.amazonaws.com` . AttrDomainEndpoint() *string // Options for this resource, such as condition, update policy etc. CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. CfnResourceType() *string // Configures OpenSearch Service to use Amazon Cognito authentication for OpenSearch Dashboards. CognitoOptions() interface{} SetCognitoOptions(val interface{}) // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string // 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. DomainEndpointOptions() interface{} SetDomainEndpointOptions(val interface{}) // A name for the OpenSearch Service domain. // // For valid values, see the [DomainName](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/configuration-api.html#configuration-api-datatypes-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](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-name.html) . // // > 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. DomainName() *string SetDomainName(val *string) // 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](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/limits.html#ebsresource) in the *Amazon OpenSearch Service Developer Guide* . EbsOptions() interface{} SetEbsOptions(val interface{}) // ElasticsearchClusterConfig is a property of the AWS::Elasticsearch::Domain resource that configures the cluster of an Amazon OpenSearch Service domain. ElasticsearchClusterConfig() interface{} SetElasticsearchClusterConfig(val interface{}) // 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](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/what-is.html#choosing-version) in the *Amazon OpenSearch Service Developer Guide* . // // If you set the [EnableVersionUpgrade](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html#cfn-attributes-updatepolicy-upgradeopensearchdomain) update policy to `true` , you can update `ElasticsearchVersion` without interruption. When `EnableVersionUpgrade` is set to `false` , or is not specified, updating `ElasticsearchVersion` results in [replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) . ElasticsearchVersion() *string SetElasticsearchVersion(val *string) // 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](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/encryption-at-rest.html) . EncryptionAtRestOptions() interface{} SetEncryptionAtRestOptions(val interface{}) // The logical ID for this CloudFormation stack element. // // The logical ID of the element // is calculated from the path of the resource node in the construct tree. // // To override this value, use `overrideLogicalId(newLogicalId)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // 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 `LogPublishingOption` value. LogPublishingOptions() interface{} SetLogPublishingOptions(val interface{}) // The tree node. Node() constructs.Node // Specifies whether node-to-node encryption is enabled. // // See [Node-to-node encryption for Amazon OpenSearch Service](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/ntn.html) . NodeToNodeEncryptionOptions() interface{} SetNodeToNodeEncryptionOptions(val interface{}) // Return a string that will be resolved to a CloudFormation `{ Ref }` for this element. // // If, by any chance, the intrinsic reference of a resource is not a string, you could // coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`. Ref() *string // *DEPRECATED* . // // The automated snapshot configuration for the OpenSearch Service domain indices. SnapshotOptions() interface{} SetSnapshotOptions(val interface{}) // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). Stack() awscdk.Stack // An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Service domain. Tags() awscdk.TagManager // Deprecated. // Deprecated: use `updatedProperties` // // Return properties modified after initiation // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperties() *map[string]interface{} // The virtual private cloud (VPC) configuration for the OpenSearch Service domain. // // For more information, see [Launching your Amazon OpenSearch Service domains within a VPC](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/vpc.html) in the *Amazon OpenSearch Service Developer Guide* . VpcOptions() interface{} SetVpcOptions(val interface{}) // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // // This can be used for resources across stacks (or nested stack) boundaries // and the dependency will automatically be transferred to the relevant scope. AddDependsOn(target awscdk.CfnResource) // Add a value to the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // AddMetadata(key *string, value interface{}) // Adds an override to the synthesized CloudFormation resource. // // To add a // property override, either use `addPropertyOverride` or prefix `path` with // "Properties." (i.e. `Properties.TopicName`). // // If the override is nested, separate each nested level using a dot (.) in the path parameter. // If there is an array as part of the nesting, specify the index in the path. // // To include a literal `.` in the property name, prefix with a `\`. In most // programming languages you will need to write this as `"\\."` because the // `\` itself will need to be escaped. // // For example, // “`typescript // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']); // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE'); // “` // would add the overrides // “`json // "Properties": { // "GlobalSecondaryIndexes": [ // { // "Projection": { // "NonKeyAttributes": [ "myattribute" ] // ... // } // ... // }, // { // "ProjectionType": "INCLUDE" // ... // }, // ] // ... // } // “` // // The `value` argument to `addOverride` will not be processed or translated // in any way. Pass raw JSON values in here with the correct capitalization // for CloudFormation. If you pass CDK classes or structs, they will be // rendered with lowercased key names, and CloudFormation will reject the // template. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) // Sets the deletion policy of the resource based on the removal policy specified. // // The Removal Policy controls what happens to this resource when it stops // being managed by CloudFormation, either because you've removed it from the // CDK application or because you've made a change that requires the resource // to be replaced. // // The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS // account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some // cases, a snapshot can be taken of the resource prior to deletion // (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy // can be found in the following link:. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options // ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) // Returns a token for an runtime attribute of this resource. // // Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility // in case there is no generated attribute. GetAtt(attributeName *string) awscdk.Reference // Retrieve a value value from the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector awscdk.TreeInspector) // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) RenderProperties(props *map[string]interface{}) *map[string]interface{} // Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template. // // Returns: `true` if the resource should be included or `false` is the resource // should be omitted. ShouldSynthesize() *bool // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::Elasticsearch::Domain`.
The AWS::Elasticsearch::Domain resource creates an Amazon OpenSearch Service domain.
> The `AWS::Elasticsearch::Domain` resource is being replaced by the [AWS::OpenSearchService::Domain](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opensearchservice-domain.html) 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](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opensearchservice-domain.html#aws-resource-opensearchservice-domain--remarks) .
Example:
// 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" var accessPolicies interface{} cfnDomain := awscdk.Aws_elasticsearch.NewCfnDomain(this, jsii.String("MyCfnDomain"), &cfnDomainProps{ accessPolicies: accessPolicies, advancedOptions: map[string]*string{ "advancedOptionsKey": jsii.String("advancedOptions"), }, advancedSecurityOptions: &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"), }, }, cognitoOptions: &cognitoOptionsProperty{ enabled: jsii.Boolean(false), identityPoolId: jsii.String("identityPoolId"), roleArn: jsii.String("roleArn"), userPoolId: jsii.String("userPoolId"), }, domainEndpointOptions: &domainEndpointOptionsProperty{ customEndpoint: jsii.String("customEndpoint"), customEndpointCertificateArn: jsii.String("customEndpointCertificateArn"), customEndpointEnabled: jsii.Boolean(false), enforceHttps: jsii.Boolean(false), tlsSecurityPolicy: jsii.String("tlsSecurityPolicy"), }, domainName: jsii.String("domainName"), ebsOptions: &eBSOptionsProperty{ ebsEnabled: jsii.Boolean(false), iops: jsii.Number(123), volumeSize: jsii.Number(123), volumeType: jsii.String("volumeType"), }, elasticsearchClusterConfig: &elasticsearchClusterConfigProperty{ coldStorageOptions: &coldStorageOptionsProperty{ enabled: jsii.Boolean(false), }, dedicatedMasterCount: jsii.Number(123), dedicatedMasterEnabled: jsii.Boolean(false), dedicatedMasterType: jsii.String("dedicatedMasterType"), instanceCount: jsii.Number(123), instanceType: jsii.String("instanceType"), warmCount: jsii.Number(123), warmEnabled: jsii.Boolean(false), warmType: jsii.String("warmType"), zoneAwarenessConfig: &zoneAwarenessConfigProperty{ availabilityZoneCount: jsii.Number(123), }, zoneAwarenessEnabled: jsii.Boolean(false), }, elasticsearchVersion: jsii.String("elasticsearchVersion"), encryptionAtRestOptions: &encryptionAtRestOptionsProperty{ enabled: jsii.Boolean(false), kmsKeyId: jsii.String("kmsKeyId"), }, logPublishingOptions: map[string]interface{}{ "logPublishingOptionsKey": &LogPublishingOptionProperty{ "cloudWatchLogsLogGroupArn": jsii.String("cloudWatchLogsLogGroupArn"), "enabled": jsii.Boolean(false), }, }, nodeToNodeEncryptionOptions: &nodeToNodeEncryptionOptionsProperty{ enabled: jsii.Boolean(false), }, snapshotOptions: &snapshotOptionsProperty{ automatedSnapshotStartHour: jsii.Number(123), }, tags: []cfnTag{ &cfnTag{ key: jsii.String("key"), value: jsii.String("value"), }, }, vpcOptions: &vPCOptionsProperty{ securityGroupIds: []*string{ jsii.String("securityGroupIds"), }, subnetIds: []*string{ jsii.String("subnetIds"), }, }, })
func NewCfnDomain ¶
func NewCfnDomain(scope constructs.Construct, id *string, props *CfnDomainProps) CfnDomain
Create a new `AWS::Elasticsearch::Domain`.
type CfnDomainProps ¶
type CfnDomainProps struct { // 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](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/ac.html#ac-creating) in the *Amazon OpenSearch Service Developer Guid* e. AccessPolicies interface{} `field:"optional" json:"accessPolicies" yaml:"accessPolicies"` // Additional options to specify for the OpenSearch Service domain. // // For more information, see [Advanced cluster parameters](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/createupdatedomains.html#createdomain-configure-advanced-options) in the *Amazon OpenSearch Service Developer Guide* . AdvancedOptions interface{} `field:"optional" json:"advancedOptions" yaml:"advancedOptions"` // Specifies options for fine-grained access control. AdvancedSecurityOptions interface{} `field:"optional" json:"advancedSecurityOptions" yaml:"advancedSecurityOptions"` // Configures OpenSearch Service to use Amazon Cognito authentication for OpenSearch Dashboards. CognitoOptions interface{} `field:"optional" json:"cognitoOptions" yaml:"cognitoOptions"` // 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. DomainEndpointOptions interface{} `field:"optional" json:"domainEndpointOptions" yaml:"domainEndpointOptions"` // A name for the OpenSearch Service domain. // // For valid values, see the [DomainName](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/configuration-api.html#configuration-api-datatypes-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](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-name.html) . // // > 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. DomainName *string `field:"optional" json:"domainName" yaml:"domainName"` // 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](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/limits.html#ebsresource) in the *Amazon OpenSearch Service Developer Guide* . EbsOptions interface{} `field:"optional" json:"ebsOptions" yaml:"ebsOptions"` // ElasticsearchClusterConfig is a property of the AWS::Elasticsearch::Domain resource that configures the cluster of an Amazon OpenSearch Service domain. ElasticsearchClusterConfig interface{} `field:"optional" json:"elasticsearchClusterConfig" yaml:"elasticsearchClusterConfig"` // 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](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/what-is.html#choosing-version) in the *Amazon OpenSearch Service Developer Guide* . // // If you set the [EnableVersionUpgrade](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html#cfn-attributes-updatepolicy-upgradeopensearchdomain) update policy to `true` , you can update `ElasticsearchVersion` without interruption. When `EnableVersionUpgrade` is set to `false` , or is not specified, updating `ElasticsearchVersion` results in [replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) . ElasticsearchVersion *string `field:"optional" json:"elasticsearchVersion" yaml:"elasticsearchVersion"` // 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](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/encryption-at-rest.html) . EncryptionAtRestOptions interface{} `field:"optional" json:"encryptionAtRestOptions" yaml:"encryptionAtRestOptions"` // 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 `LogPublishingOption` value. LogPublishingOptions interface{} `field:"optional" json:"logPublishingOptions" yaml:"logPublishingOptions"` // Specifies whether node-to-node encryption is enabled. // // See [Node-to-node encryption for Amazon OpenSearch Service](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/ntn.html) . NodeToNodeEncryptionOptions interface{} `field:"optional" json:"nodeToNodeEncryptionOptions" yaml:"nodeToNodeEncryptionOptions"` // *DEPRECATED* . // // The automated snapshot configuration for the OpenSearch Service domain indices. SnapshotOptions interface{} `field:"optional" json:"snapshotOptions" yaml:"snapshotOptions"` // An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Service domain. Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"` // The virtual private cloud (VPC) configuration for the OpenSearch Service domain. // // For more information, see [Launching your Amazon OpenSearch Service domains within a VPC](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/vpc.html) in the *Amazon OpenSearch Service Developer Guide* . VpcOptions interface{} `field:"optional" json:"vpcOptions" yaml:"vpcOptions"` }
Properties for defining a `CfnDomain`.
Example:
// 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" var accessPolicies interface{} cfnDomainProps := &cfnDomainProps{ accessPolicies: accessPolicies, advancedOptions: map[string]*string{ "advancedOptionsKey": jsii.String("advancedOptions"), }, advancedSecurityOptions: &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"), }, }, cognitoOptions: &cognitoOptionsProperty{ enabled: jsii.Boolean(false), identityPoolId: jsii.String("identityPoolId"), roleArn: jsii.String("roleArn"), userPoolId: jsii.String("userPoolId"), }, domainEndpointOptions: &domainEndpointOptionsProperty{ customEndpoint: jsii.String("customEndpoint"), customEndpointCertificateArn: jsii.String("customEndpointCertificateArn"), customEndpointEnabled: jsii.Boolean(false), enforceHttps: jsii.Boolean(false), tlsSecurityPolicy: jsii.String("tlsSecurityPolicy"), }, domainName: jsii.String("domainName"), ebsOptions: &eBSOptionsProperty{ ebsEnabled: jsii.Boolean(false), iops: jsii.Number(123), volumeSize: jsii.Number(123), volumeType: jsii.String("volumeType"), }, elasticsearchClusterConfig: &elasticsearchClusterConfigProperty{ coldStorageOptions: &coldStorageOptionsProperty{ enabled: jsii.Boolean(false), }, dedicatedMasterCount: jsii.Number(123), dedicatedMasterEnabled: jsii.Boolean(false), dedicatedMasterType: jsii.String("dedicatedMasterType"), instanceCount: jsii.Number(123), instanceType: jsii.String("instanceType"), warmCount: jsii.Number(123), warmEnabled: jsii.Boolean(false), warmType: jsii.String("warmType"), zoneAwarenessConfig: &zoneAwarenessConfigProperty{ availabilityZoneCount: jsii.Number(123), }, zoneAwarenessEnabled: jsii.Boolean(false), }, elasticsearchVersion: jsii.String("elasticsearchVersion"), encryptionAtRestOptions: &encryptionAtRestOptionsProperty{ enabled: jsii.Boolean(false), kmsKeyId: jsii.String("kmsKeyId"), }, logPublishingOptions: map[string]interface{}{ "logPublishingOptionsKey": &LogPublishingOptionProperty{ "cloudWatchLogsLogGroupArn": jsii.String("cloudWatchLogsLogGroupArn"), "enabled": jsii.Boolean(false), }, }, nodeToNodeEncryptionOptions: &nodeToNodeEncryptionOptionsProperty{ enabled: jsii.Boolean(false), }, snapshotOptions: &snapshotOptionsProperty{ automatedSnapshotStartHour: jsii.Number(123), }, tags: []cfnTag{ &cfnTag{ key: jsii.String("key"), value: jsii.String("value"), }, }, vpcOptions: &vPCOptionsProperty{ securityGroupIds: []*string{ jsii.String("securityGroupIds"), }, subnetIds: []*string{ jsii.String("subnetIds"), }, }, }
type CfnDomain_AdvancedSecurityOptionsInputProperty ¶
type CfnDomain_AdvancedSecurityOptionsInputProperty struct { // `CfnDomain.AdvancedSecurityOptionsInputProperty.AnonymousAuthEnabled`. AnonymousAuthEnabled interface{} `field:"optional" json:"anonymousAuthEnabled" yaml:"anonymousAuthEnabled"` // True to enable fine-grained access control. // // You must also enable encryption of data at rest and node-to-node encryption. Enabled interface{} `field:"optional" json:"enabled" yaml:"enabled"` // True to enable the internal user database. InternalUserDatabaseEnabled interface{} `field:"optional" json:"internalUserDatabaseEnabled" yaml:"internalUserDatabaseEnabled"` // Specifies information about the master user. MasterUserOptions interface{} `field:"optional" json:"masterUserOptions" yaml:"masterUserOptions"` }
Specifies options for fine-grained access control.
> The `AWS::Elasticsearch::Domain` resource is being replaced by the [AWS::OpenSearchService::Domain](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opensearchservice-domain.html) 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](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/rename.html#rename-resource) in the *Amazon OpenSearch Service Developer Guide* .
Example:
// 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"), }, }
type CfnDomain_CognitoOptionsProperty ¶
type CfnDomain_CognitoOptionsProperty struct { // Whether to enable or disable Amazon Cognito authentication for OpenSearch Dashboards. // // See [Amazon Cognito authentication for OpenSearch Dashboards](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/cognito-auth.html) . Enabled interface{} `field:"optional" json:"enabled" yaml:"enabled"` // The Amazon Cognito identity pool ID that you want OpenSearch Service to use for OpenSearch Dashboards authentication. // // Required if you enable Cognito authentication. IdentityPoolId *string `field:"optional" json:"identityPoolId" yaml:"identityPoolId"` // The `AmazonESCognitoAccess` role that allows OpenSearch Service to configure your user pool and identity pool. // // Required if you enable Cognito authentication. RoleArn *string `field:"optional" json:"roleArn" yaml:"roleArn"` // The Amazon Cognito user pool ID that you want OpenSearch Service to use for OpenSearch Dashboards authentication. // // Required if you enable Cognito authentication. UserPoolId *string `field:"optional" json:"userPoolId" yaml:"userPoolId"` }
Configures OpenSearch Service to use Amazon Cognito authentication for OpenSearch Dashboards.
> The `AWS::Elasticsearch::Domain` resource is being replaced by the [AWS::OpenSearchService::Domain](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opensearchservice-domain.html) 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](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/rename.html#rename-resource) in the *Amazon OpenSearch Service Developer Guide* .
Example:
// 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" cognitoOptionsProperty := &cognitoOptionsProperty{ enabled: jsii.Boolean(false), identityPoolId: jsii.String("identityPoolId"), roleArn: jsii.String("roleArn"), userPoolId: jsii.String("userPoolId"), }
type CfnDomain_ColdStorageOptionsProperty ¶
type CfnDomain_ColdStorageOptionsProperty struct { // Whether to enable or disable cold storage on the domain. // // You must enable UltraWarm storage in order to enable cold storage. Enabled interface{} `field:"optional" json:"enabled" yaml:"enabled"` }
Specifies options for cold storage. For more information, see [Cold storage for Amazon Elasticsearch Service](https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/cold-storage.html) .
> The `AWS::Elasticsearch::Domain` resource is being replaced by the [AWS::OpenSearchService::Domain](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opensearchservice-domain.html) 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](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/rename.html#rename-resource) in the *Amazon OpenSearch Service Developer Guide* .
Example:
// 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" coldStorageOptionsProperty := &coldStorageOptionsProperty{ enabled: jsii.Boolean(false), }
type CfnDomain_DomainEndpointOptionsProperty ¶
type CfnDomain_DomainEndpointOptionsProperty struct { // The fully qualified URL for your custom endpoint. // // Required if you enabled a custom endpoint for the domain. CustomEndpoint *string `field:"optional" json:"customEndpoint" yaml:"customEndpoint"` // The AWS Certificate Manager ARN for your domain's SSL/TLS certificate. // // Required if you enabled a custom endpoint for the domain. CustomEndpointCertificateArn *string `field:"optional" json:"customEndpointCertificateArn" yaml:"customEndpointCertificateArn"` // True to enable a custom endpoint for the domain. // // If enabled, you must also provide values for `CustomEndpoint` and `CustomEndpointCertificateArn` . CustomEndpointEnabled interface{} `field:"optional" json:"customEndpointEnabled" yaml:"customEndpointEnabled"` // True to require that all traffic to the domain arrive over HTTPS. EnforceHttps interface{} `field:"optional" json:"enforceHttps" yaml:"enforceHttps"` // The minimum TLS version required for traffic to the domain. Valid values are TLS 1.0 (default) or 1.2:. // // - `Policy-Min-TLS-1-0-2019-07` // - `Policy-Min-TLS-1-2-2019-07`. TlsSecurityPolicy *string `field:"optional" json:"tlsSecurityPolicy" yaml:"tlsSecurityPolicy"` }
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.
> The `AWS::Elasticsearch::Domain` resource is being replaced by the [AWS::OpenSearchService::Domain](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opensearchservice-domain.html) 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](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/rename.html#rename-resource) in the *Amazon OpenSearch Service Developer Guide* .
Example:
// 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" domainEndpointOptionsProperty := &domainEndpointOptionsProperty{ customEndpoint: jsii.String("customEndpoint"), customEndpointCertificateArn: jsii.String("customEndpointCertificateArn"), customEndpointEnabled: jsii.Boolean(false), enforceHttps: jsii.Boolean(false), tlsSecurityPolicy: jsii.String("tlsSecurityPolicy"), }
type CfnDomain_EBSOptionsProperty ¶
type CfnDomain_EBSOptionsProperty struct { // Specifies whether Amazon EBS volumes are attached to data nodes in the OpenSearch Service domain. EbsEnabled interface{} `field:"optional" json:"ebsEnabled" yaml:"ebsEnabled"` // The number of I/O operations per second (IOPS) that the volume supports. // // This property applies only to the Provisioned IOPS (SSD) EBS volume type. Iops *float64 `field:"optional" json:"iops" yaml:"iops"` // The size (in GiB) of the EBS volume for each data node. // // The minimum and maximum size of an EBS volume depends on the EBS volume type and the instance type to which it is attached. For more information, see [EBS volume size limits](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/limits.html#ebsresource) in the *Amazon OpenSearch Service Developer Guide* . VolumeSize *float64 `field:"optional" json:"volumeSize" yaml:"volumeSize"` // The EBS volume type to use with the OpenSearch Service domain, such as standard, gp2, or io1. // // For more information about each type, see [Amazon EBS volume types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html) in the *Amazon EC2 User Guide for Linux Instances* . VolumeType *string `field:"optional" json:"volumeType" yaml:"volumeType"` }
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](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/limits.html#ebsresource) in the *Amazon OpenSearch Service Developer Guide* .
> The `AWS::Elasticsearch::Domain` resource is being replaced by the [AWS::OpenSearchService::Domain](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opensearchservice-domain.html) 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](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/rename.html#rename-resource) in the *Amazon OpenSearch Service Developer Guide* .
Example:
// 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" eBSOptionsProperty := &eBSOptionsProperty{ ebsEnabled: jsii.Boolean(false), iops: jsii.Number(123), volumeSize: jsii.Number(123), volumeType: jsii.String("volumeType"), }
type CfnDomain_ElasticsearchClusterConfigProperty ¶
type CfnDomain_ElasticsearchClusterConfigProperty struct { // Specifies cold storage options for the domain. ColdStorageOptions interface{} `field:"optional" json:"coldStorageOptions" yaml:"coldStorageOptions"` // The number of instances to use for the master node. // // If you specify this property, you must specify true for the DedicatedMasterEnabled property. DedicatedMasterCount *float64 `field:"optional" json:"dedicatedMasterCount" yaml:"dedicatedMasterCount"` // Indicates whether to use a dedicated master node for the OpenSearch Service domain. // // A dedicated master node is a cluster node that performs cluster management tasks, but doesn't hold data or respond to data upload requests. Dedicated master nodes offload cluster management tasks to increase the stability of your search clusters. See [Dedicated master nodes in Amazon OpenSearch Service](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-dedicatedmasternodes.html) . DedicatedMasterEnabled interface{} `field:"optional" json:"dedicatedMasterEnabled" yaml:"dedicatedMasterEnabled"` // The hardware configuration of the computer that hosts the dedicated master node, such as `m3.medium.elasticsearch` . If you specify this property, you must specify true for the `DedicatedMasterEnabled` property. For valid values, see [Supported instance types in Amazon OpenSearch Service](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/supported-instance-types.html) . DedicatedMasterType *string `field:"optional" json:"dedicatedMasterType" yaml:"dedicatedMasterType"` // The number of data nodes (instances) to use in the OpenSearch Service domain. InstanceCount *float64 `field:"optional" json:"instanceCount" yaml:"instanceCount"` // The instance type for your data nodes, such as `m3.medium.elasticsearch` . For valid values, see [Supported instance types in Amazon OpenSearch Service](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/supported-instance-types.html) . InstanceType *string `field:"optional" json:"instanceType" yaml:"instanceType"` // The number of warm nodes in the cluster. // // Required if you enable warm storage. WarmCount *float64 `field:"optional" json:"warmCount" yaml:"warmCount"` // Whether to enable warm storage for the cluster. WarmEnabled interface{} `field:"optional" json:"warmEnabled" yaml:"warmEnabled"` // The instance type for the cluster's warm nodes. // // Required if you enable warm storage. WarmType *string `field:"optional" json:"warmType" yaml:"warmType"` // Specifies zone awareness configuration options. // // Only use if `ZoneAwarenessEnabled` is `true` . ZoneAwarenessConfig interface{} `field:"optional" json:"zoneAwarenessConfig" yaml:"zoneAwarenessConfig"` // Indicates whether to enable zone awareness for the OpenSearch Service domain. // // When you enable zone awareness, OpenSearch Service allocates the nodes and replica index shards that belong to a cluster across two Availability Zones (AZs) in the same region to prevent data loss and minimize downtime in the event of node or data center failure. Don't enable zone awareness if your cluster has no replica index shards or is a single-node cluster. For more information, see [Configuring a multi-AZ domain in Amazon OpenSearch Service](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-multiaz.html) . ZoneAwarenessEnabled interface{} `field:"optional" json:"zoneAwarenessEnabled" yaml:"zoneAwarenessEnabled"` }
The cluster configuration for the OpenSearch Service domain.
You can specify options such as the instance type and the number of instances. For more information, see [Creating and managing Amazon OpenSearch Service domains](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/createupdatedomains.html) in the *Amazon OpenSearch Service Developer Guide* .
> The `AWS::Elasticsearch::Domain` resource is being replaced by the [AWS::OpenSearchService::Domain](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opensearchservice-domain.html) 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](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/rename.html#rename-resource) in the *Amazon OpenSearch Service Developer Guide* .
Example:
// 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" elasticsearchClusterConfigProperty := &elasticsearchClusterConfigProperty{ coldStorageOptions: &coldStorageOptionsProperty{ enabled: jsii.Boolean(false), }, dedicatedMasterCount: jsii.Number(123), dedicatedMasterEnabled: jsii.Boolean(false), dedicatedMasterType: jsii.String("dedicatedMasterType"), instanceCount: jsii.Number(123), instanceType: jsii.String("instanceType"), warmCount: jsii.Number(123), warmEnabled: jsii.Boolean(false), warmType: jsii.String("warmType"), zoneAwarenessConfig: &zoneAwarenessConfigProperty{ availabilityZoneCount: jsii.Number(123), }, zoneAwarenessEnabled: jsii.Boolean(false), }
type CfnDomain_EncryptionAtRestOptionsProperty ¶
type CfnDomain_EncryptionAtRestOptionsProperty struct { // Specify `true` to enable encryption at rest. Enabled interface{} `field:"optional" json:"enabled" yaml:"enabled"` // The KMS key ID. // // Takes the form `1a2a3a4-1a2a-3a4a-5a6a-1a2a3a4a5a6a` . Required if you enable encryption at rest. KmsKeyId *string `field:"optional" json:"kmsKeyId" yaml:"kmsKeyId"` }
Whether the domain should encrypt data at rest, and if so, the AWS Key Management Service key to use.
> The `AWS::Elasticsearch::Domain` resource is being replaced by the [AWS::OpenSearchService::Domain](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opensearchservice-domain.html) 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](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/rename.html#rename-resource) in the *Amazon OpenSearch Service Developer Guide* .
Example:
// 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" encryptionAtRestOptionsProperty := &encryptionAtRestOptionsProperty{ enabled: jsii.Boolean(false), kmsKeyId: jsii.String("kmsKeyId"), }
type CfnDomain_LogPublishingOptionProperty ¶
type CfnDomain_LogPublishingOptionProperty struct { // Specifies the CloudWatch log group to publish to. // // Required if you enable log publishing for the domain. CloudWatchLogsLogGroupArn *string `field:"optional" json:"cloudWatchLogsLogGroupArn" yaml:"cloudWatchLogsLogGroupArn"` // If `true` , enables the publishing of logs to CloudWatch. // // Default: `false` . Enabled interface{} `field:"optional" json:"enabled" yaml:"enabled"` }
> The `AWS::Elasticsearch::Domain` resource is being replaced by the [AWS::OpenSearchService::Domain](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opensearchservice-domain.html) 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](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/rename.html#rename-resource) in the *Amazon OpenSearch Service Developer Guide* .
Specifies whether the OpenSearch Service domain publishes the Elasticsearch application, search slow logs, or index slow logs to Amazon CloudWatch. Each option must be an object of name `SEARCH_SLOW_LOGS` , `ES_APPLICATION_LOGS` , `INDEX_SLOW_LOGS` , or `AUDIT_LOGS` depending on the type of logs you want to publish.
If you enable a slow log, you still have to enable the *collection* of slow logs using the Configuration API. To learn more, see [Enabling log publishing ( AWS CLI)](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/createdomain-configure-slow-logs.html#createdomain-configure-slow-logs-cli) .
Example:
// 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" logPublishingOptionProperty := &logPublishingOptionProperty{ cloudWatchLogsLogGroupArn: jsii.String("cloudWatchLogsLogGroupArn"), enabled: jsii.Boolean(false), }
type CfnDomain_MasterUserOptionsProperty ¶
type CfnDomain_MasterUserOptionsProperty struct { // ARN for the master user. // // Only specify if `InternalUserDatabaseEnabled` is false in `AdvancedSecurityOptions` . MasterUserArn *string `field:"optional" json:"masterUserArn" yaml:"masterUserArn"` // Username for the master user. // // Only specify if `InternalUserDatabaseEnabled` is true in `AdvancedSecurityOptions` . MasterUserName *string `field:"optional" json:"masterUserName" yaml:"masterUserName"` // Password for the master user. // // Only specify if `InternalUserDatabaseEnabled` is true in `AdvancedSecurityOptions` . MasterUserPassword *string `field:"optional" json:"masterUserPassword" yaml:"masterUserPassword"` }
Specifies information about the master user. Required if you enabled the internal user database.
> The `AWS::Elasticsearch::Domain` resource is being replaced by the [AWS::OpenSearchService::Domain](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opensearchservice-domain.html) 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](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/rename.html#rename-resource) in the *Amazon OpenSearch Service Developer Guide* .
Example:
// 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" masterUserOptionsProperty := &masterUserOptionsProperty{ masterUserArn: jsii.String("masterUserArn"), masterUserName: jsii.String("masterUserName"), masterUserPassword: jsii.String("masterUserPassword"), }
type CfnDomain_NodeToNodeEncryptionOptionsProperty ¶
type CfnDomain_NodeToNodeEncryptionOptionsProperty struct {
// Specifies whether node-to-node encryption is enabled, as a Boolean.
Enabled interface{} `field:"optional" json:"enabled" yaml:"enabled"`
}
Specifies whether node-to-node encryption is enabled.
> The `AWS::Elasticsearch::Domain` resource is being replaced by the [AWS::OpenSearchService::Domain](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opensearchservice-domain.html) 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](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/rename.html#rename-resource) in the *Amazon OpenSearch Service Developer Guide* .
Example:
// 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" nodeToNodeEncryptionOptionsProperty := &nodeToNodeEncryptionOptionsProperty{ enabled: jsii.Boolean(false), }
type CfnDomain_SnapshotOptionsProperty ¶
type CfnDomain_SnapshotOptionsProperty struct { // The hour in UTC during which the service takes an automated daily snapshot of the indices in the OpenSearch Service domain. // // For example, if you specify 0, OpenSearch Service takes an automated snapshot everyday between midnight and 1 am. You can specify a value between 0 and 23. AutomatedSnapshotStartHour *float64 `field:"optional" json:"automatedSnapshotStartHour" yaml:"automatedSnapshotStartHour"` }
> The `AWS::Elasticsearch::Domain` resource is being replaced by the [AWS::OpenSearchService::Domain](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opensearchservice-domain.html) 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](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/rename.html#rename-resource) in the *Amazon OpenSearch Service Developer Guide* .
*DEPRECATED* . For domains running Elasticsearch 5.3 and later, OpenSearch Service takes hourly automated snapshots, making this setting irrelevant. For domains running earlier versions of Elasticsearch, OpenSearch Service takes daily automated snapshots.
The automated snapshot configuration for the OpenSearch Service domain indices.
Example:
// 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" snapshotOptionsProperty := &snapshotOptionsProperty{ automatedSnapshotStartHour: jsii.Number(123), }
type CfnDomain_VPCOptionsProperty ¶
type CfnDomain_VPCOptionsProperty struct { // The list of security group IDs that are associated with the VPC endpoints for the domain. // // If you don't provide a security group ID, OpenSearch Service uses the default security group for the VPC. To learn more, see [Security groups for your VPC](https://docs.aws.amazon.com/vpc/latest/userguide/VPC_SecurityGroups.html) in the *Amazon VPC User Guide* . SecurityGroupIds *[]*string `field:"optional" json:"securityGroupIds" yaml:"securityGroupIds"` // Provide one subnet ID for each Availability Zone that your domain uses. // // For example, you must specify three subnet IDs for a three Availability Zone domain. To learn more, see [VPCs and subnets](https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html) in the *Amazon VPC User Guide* . // // Required if you're creating your domain inside a VPC. SubnetIds *[]*string `field:"optional" json:"subnetIds" yaml:"subnetIds"` }
The virtual private cloud (VPC) configuration for the OpenSearch Service domain.
For more information, see [Launching your Amazon OpenSearch Service domains using a VPC](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/vpc.html) in the *Amazon OpenSearch Service Developer Guide* .
> The `AWS::Elasticsearch::Domain` resource is being replaced by the [AWS::OpenSearchService::Domain](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opensearchservice-domain.html) 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](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/rename.html#rename-resource) in the *Amazon OpenSearch Service Developer Guide* .
Example:
// 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" vPCOptionsProperty := &vPCOptionsProperty{ securityGroupIds: []*string{ jsii.String("securityGroupIds"), }, subnetIds: []*string{ jsii.String("subnetIds"), }, }
type CfnDomain_ZoneAwarenessConfigProperty ¶
type CfnDomain_ZoneAwarenessConfigProperty struct { // If you enabled multiple Availability Zones (AZs), the number of AZs that you want the domain to use. // // Valid values are `2` and `3` . Default is 2. AvailabilityZoneCount *float64 `field:"optional" json:"availabilityZoneCount" yaml:"availabilityZoneCount"` }
Specifies zone awareness configuration options. Only use if `ZoneAwarenessEnabled` is `true` .
> The `AWS::Elasticsearch::Domain` resource is being replaced by the [AWS::OpenSearchService::Domain](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opensearchservice-domain.html) 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](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/rename.html#rename-resource) in the *Amazon OpenSearch Service Developer Guide* .
Example:
// 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" zoneAwarenessConfigProperty := &zoneAwarenessConfigProperty{ availabilityZoneCount: jsii.Number(123), }
type CognitoOptions
deprecated
type CognitoOptions struct { // The Amazon Cognito identity pool ID that you want Amazon ES to use for Kibana authentication. // Deprecated: use opensearchservice module instead. IdentityPoolId *string `field:"required" json:"identityPoolId" yaml:"identityPoolId"` // A role that allows Amazon ES to configure your user pool and identity pool. // // It must have the `AmazonESCognitoAccess` policy attached to it. // See: https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-cognito-auth.html#es-cognito-auth-prereq // // Deprecated: use opensearchservice module instead. Role awsiam.IRole `field:"required" json:"role" yaml:"role"` // The Amazon Cognito user pool ID that you want Amazon ES to use for Kibana authentication. // Deprecated: use opensearchservice module instead. UserPoolId *string `field:"required" json:"userPoolId" yaml:"userPoolId"` }
Configures Amazon ES to use Amazon Cognito authentication for Kibana.
Example:
// Example automatically generated from non-compiling source. May contain errors. es.NewDomain(this, jsii.String("Domain"), &domainProps{ cognitoKibanaAuth: &cognitoOptions{ identityPoolId: jsii.String("test-identity-pool-id"), userPoolId: jsii.String("test-user-pool-id"), role: role, }, version: elasticsearchVersion, })
See: https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-cognito-auth.html
Deprecated: use opensearchservice module instead.
type CustomEndpointOptions
deprecated
type CustomEndpointOptions struct { // The custom domain name to assign. // Deprecated: use opensearchservice module instead. DomainName *string `field:"required" json:"domainName" yaml:"domainName"` // The certificate to use. // Deprecated: use opensearchservice module instead. Certificate awscertificatemanager.ICertificate `field:"optional" json:"certificate" yaml:"certificate"` // The hosted zone in Route53 to create the CNAME record in. // Deprecated: use opensearchservice module instead. HostedZone awsroute53.IHostedZone `field:"optional" json:"hostedZone" yaml:"hostedZone"` }
Configures a custom domain endpoint for the ES domain.
Example:
es.NewDomain(this, jsii.String("Domain"), &domainProps{ version: es.elasticsearchVersion_V7_7(), customEndpoint: &customEndpointOptions{ domainName: jsii.String("search.example.com"), }, })
Deprecated: use opensearchservice module instead.
type Domain
deprecated
type Domain interface { awscdk.Resource awsec2.IConnectable IDomain // Log group that application logs are logged to. // Deprecated: use opensearchservice module instead. AppLogGroup() awslogs.ILogGroup // Log group that audit logs are logged to. // Deprecated: use opensearchservice module instead. AuditLogGroup() awslogs.ILogGroup // Manages network connections to the domain. // // This will throw an error in case the domain // is not placed inside a VPC. // Deprecated: use opensearchservice module instead. Connections() awsec2.Connections // Arn of the Elasticsearch domain. // Deprecated: use opensearchservice module instead. DomainArn() *string // Endpoint of the Elasticsearch domain. // Deprecated: use opensearchservice module instead. DomainEndpoint() *string // Domain name of the Elasticsearch domain. // Deprecated: use opensearchservice module instead. DomainName() *string // The environment this resource belongs to. // // For resources that are created and managed by the CDK // (generally, those created by creating new class instances like Role, Bucket, etc.), // this is always the same as the environment of the stack they belong to; // however, for imported resources // (those obtained from static methods like fromRoleArn, fromBucketName, etc.), // that might be different than the stack they were imported into. // Deprecated: use opensearchservice module instead. Env() *awscdk.ResourceEnvironment // Master user password if fine grained access control is configured. // Deprecated: use opensearchservice module instead. MasterUserPassword() awscdk.SecretValue // The tree node. // Deprecated: use opensearchservice module instead. Node() constructs.Node // Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource. // // This value will resolve to one of the following: // - a concrete value (e.g. `"my-awesome-bucket"`) // - `undefined`, when a name should be generated by CloudFormation // - a concrete name generated automatically during synthesis, in // cross-environment scenarios. // Deprecated: use opensearchservice module instead. PhysicalName() *string // Log group that slow indices are logged to. // Deprecated: use opensearchservice module instead. SlowIndexLogGroup() awslogs.ILogGroup // Log group that slow searches are logged to. // Deprecated: use opensearchservice module instead. SlowSearchLogGroup() awslogs.ILogGroup // The stack in which this resource is defined. // Deprecated: use opensearchservice module instead. Stack() awscdk.Stack // Add policy statements to the domain access policy. // Deprecated: use opensearchservice module instead. AddAccessPolicies(accessPolicyStatements ...awsiam.PolicyStatement) // Apply the given removal policy to this resource. // // The Removal Policy controls what happens to this resource when it stops // being managed by CloudFormation, either because you've removed it from the // CDK application or because you've made a change that requires the resource // to be replaced. // // The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS // account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). // Deprecated: use opensearchservice module instead. ApplyRemovalPolicy(policy awscdk.RemovalPolicy) // Deprecated: use opensearchservice module instead. GeneratePhysicalName() *string // Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. `bucket.bucketArn`). // // Normally, this token will resolve to `arnAttr`, but if the resource is // referenced across environments, `arnComponents` will be used to synthesize // a concrete ARN with the resource's physical name. Make sure to reference // `this.physicalName` in `arnComponents`. // Deprecated: use opensearchservice module instead. GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string // Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. `bucket.bucketName`). // // Normally, this token will resolve to `nameAttr`, but if the resource is // referenced across environments, it will be resolved to `this.physicalName`, // which will be a concrete name. // Deprecated: use opensearchservice module instead. GetResourceNameAttribute(nameAttr *string) *string // Grant read permissions for an index in this domain to an IAM principal (Role/Group/User). // Deprecated: use opensearchservice module instead. GrantIndexRead(index *string, identity awsiam.IGrantable) awsiam.Grant // Grant read/write permissions for an index in this domain to an IAM principal (Role/Group/User). // Deprecated: use opensearchservice module instead. GrantIndexReadWrite(index *string, identity awsiam.IGrantable) awsiam.Grant // Grant write permissions for an index in this domain to an IAM principal (Role/Group/User). // Deprecated: use opensearchservice module instead. GrantIndexWrite(index *string, identity awsiam.IGrantable) awsiam.Grant // Grant read permissions for a specific path in this domain to an IAM principal (Role/Group/User). // Deprecated: use opensearchservice module instead. GrantPathRead(path *string, identity awsiam.IGrantable) awsiam.Grant // Grant read/write permissions for a specific path in this domain to an IAM principal (Role/Group/User). // Deprecated: use opensearchservice module instead. GrantPathReadWrite(path *string, identity awsiam.IGrantable) awsiam.Grant // Grant write permissions for a specific path in this domain to an IAM principal (Role/Group/User). // Deprecated: use opensearchservice module instead. GrantPathWrite(path *string, identity awsiam.IGrantable) awsiam.Grant // Grant read permissions for this domain and its contents to an IAM principal (Role/Group/User). // Deprecated: use opensearchservice module instead. GrantRead(identity awsiam.IGrantable) awsiam.Grant // Grant read/write permissions for this domain and its contents to an IAM principal (Role/Group/User). // Deprecated: use opensearchservice module instead. GrantReadWrite(identity awsiam.IGrantable) awsiam.Grant // Grant write permissions for this domain and its contents to an IAM principal (Role/Group/User). // Deprecated: use opensearchservice module instead. GrantWrite(identity awsiam.IGrantable) awsiam.Grant // Return the given named metric for this Domain. // Deprecated: use opensearchservice module instead. Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for automated snapshot failures. // Deprecated: use opensearchservice module instead. MetricAutomatedSnapshotFailure(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the cluster blocking index writes. // Deprecated: use opensearchservice module instead. MetricClusterIndexWritesBlocked(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the time the cluster status is red. // Deprecated: use opensearchservice module instead. MetricClusterStatusRed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the time the cluster status is yellow. // Deprecated: use opensearchservice module instead. MetricClusterStatusYellow(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for CPU utilization. // Deprecated: use opensearchservice module instead. MetricCPUUtilization(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the storage space of nodes in the cluster. // Deprecated: use opensearchservice module instead. MetricFreeStorageSpace(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for indexing latency. // Deprecated: use opensearchservice module instead. MetricIndexingLatency(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for JVM memory pressure. // Deprecated: use opensearchservice module instead. MetricJVMMemoryPressure(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for KMS key errors. // Deprecated: use opensearchservice module instead. MetricKMSKeyError(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for KMS key being inaccessible. // Deprecated: use opensearchservice module instead. MetricKMSKeyInaccessible(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for master CPU utilization. // Deprecated: use opensearchservice module instead. MetricMasterCPUUtilization(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for master JVM memory pressure. // Deprecated: use opensearchservice module instead. MetricMasterJVMMemoryPressure(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of nodes. // Deprecated: use opensearchservice module instead. MetricNodes(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for number of searchable documents. // Deprecated: use opensearchservice module instead. MetricSearchableDocuments(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for search latency. // Deprecated: use opensearchservice module instead. MetricSearchLatency(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Returns a string representation of this construct. // Deprecated: use opensearchservice module instead. ToString() *string }
Provides an Elasticsearch domain.
Example:
domain := es.NewDomain(this, jsii.String("Domain"), &domainProps{ version: es.elasticsearchVersion_V7_4(), ebs: &ebsOptions{ volumeSize: jsii.Number(100), volumeType: ec2.ebsDeviceVolumeType_GENERAL_PURPOSE_SSD, }, nodeToNodeEncryption: jsii.Boolean(true), encryptionAtRest: &encryptionAtRestOptions{ enabled: jsii.Boolean(true), }, })
Deprecated: use opensearchservice module instead.
func NewDomain
deprecated
func NewDomain(scope constructs.Construct, id *string, props *DomainProps) Domain
Deprecated: use opensearchservice module instead.
type DomainAttributes
deprecated
type DomainAttributes struct { // The ARN of the Elasticsearch domain. // Deprecated: use opensearchservice module instead. DomainArn *string `field:"required" json:"domainArn" yaml:"domainArn"` // The domain endpoint of the Elasticsearch domain. // Deprecated: use opensearchservice module instead. DomainEndpoint *string `field:"required" json:"domainEndpoint" yaml:"domainEndpoint"` }
Reference to an Elasticsearch domain.
Example:
// 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" domainAttributes := &domainAttributes{ domainArn: jsii.String("domainArn"), domainEndpoint: jsii.String("domainEndpoint"), }
Deprecated: use opensearchservice module instead.
type DomainProps
deprecated
type DomainProps struct { // The Elasticsearch version that your domain will leverage. // Deprecated: use opensearchservice module instead. Version ElasticsearchVersion `field:"required" json:"version" yaml:"version"` // Domain Access policies. // Deprecated: use opensearchservice module instead. AccessPolicies *[]awsiam.PolicyStatement `field:"optional" json:"accessPolicies" yaml:"accessPolicies"` // Additional options to specify for the Amazon ES domain. // See: https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-advanced-options // // Deprecated: use opensearchservice module instead. AdvancedOptions *map[string]*string `field:"optional" json:"advancedOptions" yaml:"advancedOptions"` // The hour in UTC during which the service takes an automated daily snapshot of the indices in the Amazon ES domain. // // Only applies for Elasticsearch // versions below 5.3. // Deprecated: use opensearchservice module instead. AutomatedSnapshotStartHour *float64 `field:"optional" json:"automatedSnapshotStartHour" yaml:"automatedSnapshotStartHour"` // The cluster capacity configuration for the Amazon ES domain. // Deprecated: use opensearchservice module instead. Capacity *CapacityConfig `field:"optional" json:"capacity" yaml:"capacity"` // Configures Amazon ES to use Amazon Cognito authentication for Kibana. // Deprecated: use opensearchservice module instead. CognitoKibanaAuth *CognitoOptions `field:"optional" json:"cognitoKibanaAuth" yaml:"cognitoKibanaAuth"` // To configure a custom domain configure these options. // // If you specify a Route53 hosted zone it will create a CNAME record and use DNS validation for the certificate. // Deprecated: use opensearchservice module instead. CustomEndpoint *CustomEndpointOptions `field:"optional" json:"customEndpoint" yaml:"customEndpoint"` // Enforces a particular physical domain name. // Deprecated: use opensearchservice module instead. DomainName *string `field:"optional" json:"domainName" yaml:"domainName"` // The configurations of Amazon Elastic Block Store (Amazon EBS) volumes that are attached to data nodes in the Amazon ES domain. // // For more information, see // [Configuring EBS-based Storage] // (https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-ebs) // in the Amazon Elasticsearch Service Developer Guide. // Deprecated: use opensearchservice module instead. Ebs *EbsOptions `field:"optional" json:"ebs" yaml:"ebs"` // To upgrade an Amazon ES domain to a new version of Elasticsearch rather than replacing the entire domain resource, use the EnableVersionUpgrade update policy. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html#cfn-attributes-updatepolicy-upgradeelasticsearchdomain // // Deprecated: use opensearchservice module instead. EnableVersionUpgrade *bool `field:"optional" json:"enableVersionUpgrade" yaml:"enableVersionUpgrade"` // Encryption at rest options for the cluster. // Deprecated: use opensearchservice module instead. EncryptionAtRest *EncryptionAtRestOptions `field:"optional" json:"encryptionAtRest" yaml:"encryptionAtRest"` // True to require that all traffic to the domain arrive over HTTPS. // Deprecated: use opensearchservice module instead. EnforceHttps *bool `field:"optional" json:"enforceHttps" yaml:"enforceHttps"` // Specifies options for fine-grained access control. // // Requires Elasticsearch version 6.7 or later. Enabling fine-grained access control // also requires encryption of data at rest and node-to-node encryption, along with // enforced HTTPS. // Deprecated: use opensearchservice module instead. FineGrainedAccessControl *AdvancedSecurityOptions `field:"optional" json:"fineGrainedAccessControl" yaml:"fineGrainedAccessControl"` // Configuration log publishing configuration options. // Deprecated: use opensearchservice module instead. Logging *LoggingOptions `field:"optional" json:"logging" yaml:"logging"` // Specify true to enable node to node encryption. // // Requires Elasticsearch version 6.0 or later. // Deprecated: use opensearchservice module instead. NodeToNodeEncryption *bool `field:"optional" json:"nodeToNodeEncryption" yaml:"nodeToNodeEncryption"` // Policy to apply when the domain is removed from the stack. // Deprecated: use opensearchservice module instead. RemovalPolicy awscdk.RemovalPolicy `field:"optional" json:"removalPolicy" yaml:"removalPolicy"` // The list of security groups that are associated with the VPC endpoints for the domain. // // Only used if `vpc` is specified. // See: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_SecurityGroups.html // // Deprecated: use opensearchservice module instead. SecurityGroups *[]awsec2.ISecurityGroup `field:"optional" json:"securityGroups" yaml:"securityGroups"` // The minimum TLS version required for traffic to the domain. // Deprecated: use opensearchservice module instead. TlsSecurityPolicy TLSSecurityPolicy `field:"optional" json:"tlsSecurityPolicy" yaml:"tlsSecurityPolicy"` // Configures the domain so that unsigned basic auth is enabled. // // If no master user is provided a default master user // with username `admin` and a dynamically generated password stored in KMS is created. The password can be retrieved // by getting `masterUserPassword` from the domain instance. // // Setting this to true will also add an access policy that allows unsigned // access, enable node to node encryption, encryption at rest. If conflicting // settings are encountered (like disabling encryption at rest) enabling this // setting will cause a failure. // Deprecated: use opensearchservice module instead. UseUnsignedBasicAuth *bool `field:"optional" json:"useUnsignedBasicAuth" yaml:"useUnsignedBasicAuth"` // Place the domain inside this VPC. // See: https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-vpc.html // // Deprecated: use opensearchservice module instead. Vpc awsec2.IVpc `field:"optional" json:"vpc" yaml:"vpc"` // The specific vpc subnets the domain will be placed in. // // You must provide one subnet for each Availability Zone // that your domain uses. For example, you must specify three subnet IDs for a three Availability Zone // domain. // // Only used if `vpc` is specified. // See: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html // // Deprecated: use opensearchservice module instead. VpcSubnets *[]*awsec2.SubnetSelection `field:"optional" json:"vpcSubnets" yaml:"vpcSubnets"` // The cluster zone awareness configuration for the Amazon ES domain. // Deprecated: use opensearchservice module instead. ZoneAwareness *ZoneAwarenessConfig `field:"optional" json:"zoneAwareness" yaml:"zoneAwareness"` }
Properties for an AWS Elasticsearch Domain.
Example:
domain := es.NewDomain(this, jsii.String("Domain"), &domainProps{ version: es.elasticsearchVersion_V7_4(), ebs: &ebsOptions{ volumeSize: jsii.Number(100), volumeType: ec2.ebsDeviceVolumeType_GENERAL_PURPOSE_SSD, }, nodeToNodeEncryption: jsii.Boolean(true), encryptionAtRest: &encryptionAtRestOptions{ enabled: jsii.Boolean(true), }, })
Deprecated: use opensearchservice module instead.
type EbsOptions
deprecated
type EbsOptions struct { // Specifies whether Amazon EBS volumes are attached to data nodes in the Amazon ES domain. // Deprecated: use opensearchservice module instead. Enabled *bool `field:"optional" json:"enabled" yaml:"enabled"` // The number of I/O operations per second (IOPS) that the volume supports. // // This property applies only to the Provisioned IOPS (SSD) EBS // volume type. // Deprecated: use opensearchservice module instead. Iops *float64 `field:"optional" json:"iops" yaml:"iops"` // The size (in GiB) of the EBS volume for each data node. // // The minimum and // maximum size of an EBS volume depends on the EBS volume type and the // instance type to which it is attached. For more information, see // [Configuring EBS-based Storage] // (https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-ebs) // in the Amazon Elasticsearch Service Developer Guide. // Deprecated: use opensearchservice module instead. VolumeSize *float64 `field:"optional" json:"volumeSize" yaml:"volumeSize"` // The EBS volume type to use with the Amazon ES domain, such as standard, gp2, io1. // // For more information, see[Configuring EBS-based Storage] // (https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-ebs) // in the Amazon Elasticsearch Service Developer Guide. // Deprecated: use opensearchservice module instead. VolumeType awsec2.EbsDeviceVolumeType `field:"optional" json:"volumeType" yaml:"volumeType"` }
The configurations of Amazon Elastic Block Store (Amazon EBS) volumes that are attached to data nodes in the Amazon ES domain.
For more information, see [Configuring EBS-based Storage] (https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-ebs) in the Amazon Elasticsearch Service Developer Guide.
Example:
prodDomain := es.NewDomain(this, jsii.String("Domain"), &domainProps{ version: es.elasticsearchVersion_V7_1(), capacity: &capacityConfig{ masterNodes: jsii.Number(5), dataNodes: jsii.Number(20), }, ebs: &ebsOptions{ volumeSize: jsii.Number(20), }, zoneAwareness: &zoneAwarenessConfig{ availabilityZoneCount: jsii.Number(3), }, logging: &loggingOptions{ slowSearchLogEnabled: jsii.Boolean(true), appLogEnabled: jsii.Boolean(true), slowIndexLogEnabled: jsii.Boolean(true), }, })
Deprecated: use opensearchservice module instead.
type ElasticsearchVersion ¶
type ElasticsearchVersion interface { // Elasticsearch version number. Version() *string }
Elasticsearch version.
Example:
domain := es.NewDomain(this, jsii.String("Domain"), &domainProps{ version: es.elasticsearchVersion_V7_4(), ebs: &ebsOptions{ volumeSize: jsii.Number(100), volumeType: ec2.ebsDeviceVolumeType_GENERAL_PURPOSE_SSD, }, nodeToNodeEncryption: jsii.Boolean(true), encryptionAtRest: &encryptionAtRestOptions{ enabled: jsii.Boolean(true), }, })
func ElasticsearchVersion_Of ¶
func ElasticsearchVersion_Of(version *string) ElasticsearchVersion
Custom Elasticsearch version.
func ElasticsearchVersion_V1_5 ¶
func ElasticsearchVersion_V1_5() ElasticsearchVersion
func ElasticsearchVersion_V2_3 ¶
func ElasticsearchVersion_V2_3() ElasticsearchVersion
func ElasticsearchVersion_V5_1 ¶
func ElasticsearchVersion_V5_1() ElasticsearchVersion
func ElasticsearchVersion_V5_3 ¶
func ElasticsearchVersion_V5_3() ElasticsearchVersion
func ElasticsearchVersion_V5_5 ¶
func ElasticsearchVersion_V5_5() ElasticsearchVersion
func ElasticsearchVersion_V5_6 ¶
func ElasticsearchVersion_V5_6() ElasticsearchVersion
func ElasticsearchVersion_V6_0 ¶
func ElasticsearchVersion_V6_0() ElasticsearchVersion
func ElasticsearchVersion_V6_2 ¶
func ElasticsearchVersion_V6_2() ElasticsearchVersion
func ElasticsearchVersion_V6_3 ¶
func ElasticsearchVersion_V6_3() ElasticsearchVersion
func ElasticsearchVersion_V6_4 ¶
func ElasticsearchVersion_V6_4() ElasticsearchVersion
func ElasticsearchVersion_V6_5 ¶
func ElasticsearchVersion_V6_5() ElasticsearchVersion
func ElasticsearchVersion_V6_7 ¶
func ElasticsearchVersion_V6_7() ElasticsearchVersion
func ElasticsearchVersion_V6_8 ¶
func ElasticsearchVersion_V6_8() ElasticsearchVersion
func ElasticsearchVersion_V7_1 ¶
func ElasticsearchVersion_V7_1() ElasticsearchVersion
func ElasticsearchVersion_V7_10 ¶
func ElasticsearchVersion_V7_10() ElasticsearchVersion
func ElasticsearchVersion_V7_4 ¶
func ElasticsearchVersion_V7_4() ElasticsearchVersion
func ElasticsearchVersion_V7_7 ¶
func ElasticsearchVersion_V7_7() ElasticsearchVersion
func ElasticsearchVersion_V7_8 ¶
func ElasticsearchVersion_V7_8() ElasticsearchVersion
func ElasticsearchVersion_V7_9 ¶
func ElasticsearchVersion_V7_9() ElasticsearchVersion
type EncryptionAtRestOptions
deprecated
type EncryptionAtRestOptions struct { // Specify true to enable encryption at rest. // Deprecated: use opensearchservice module instead. Enabled *bool `field:"optional" json:"enabled" yaml:"enabled"` // Supply if using KMS key for encryption at rest. // Deprecated: use opensearchservice module instead. KmsKey awskms.IKey `field:"optional" json:"kmsKey" yaml:"kmsKey"` }
Whether the domain should encrypt data at rest, and if so, the AWS Key Management Service (KMS) key to use.
Can only be used to create a new domain, not update an existing one. Requires Elasticsearch version 5.1 or later.
Example:
domain := es.NewDomain(this, jsii.String("Domain"), &domainProps{ version: es.elasticsearchVersion_V7_1(), enforceHttps: jsii.Boolean(true), nodeToNodeEncryption: jsii.Boolean(true), encryptionAtRest: &encryptionAtRestOptions{ enabled: jsii.Boolean(true), }, fineGrainedAccessControl: &advancedSecurityOptions{ masterUserName: jsii.String("master-user"), }, }) masterUserPassword := domain.masterUserPassword
Deprecated: use opensearchservice module instead.
type IDomain ¶
type IDomain interface { awscdk.IResource // Grant read permissions for an index in this domain to an IAM principal (Role/Group/User). // Deprecated: use opensearchservice module instead. GrantIndexRead(index *string, identity awsiam.IGrantable) awsiam.Grant // Grant read/write permissions for an index in this domain to an IAM principal (Role/Group/User). // Deprecated: use opensearchservice module instead. GrantIndexReadWrite(index *string, identity awsiam.IGrantable) awsiam.Grant // Grant write permissions for an index in this domain to an IAM principal (Role/Group/User). // Deprecated: use opensearchservice module instead. GrantIndexWrite(index *string, identity awsiam.IGrantable) awsiam.Grant // Grant read permissions for a specific path in this domain to an IAM principal (Role/Group/User). // Deprecated: use opensearchservice module instead. GrantPathRead(path *string, identity awsiam.IGrantable) awsiam.Grant // Grant read/write permissions for a specific path in this domain to an IAM principal (Role/Group/User). // Deprecated: use opensearchservice module instead. GrantPathReadWrite(path *string, identity awsiam.IGrantable) awsiam.Grant // Grant write permissions for a specific path in this domain to an IAM principal (Role/Group/User). // Deprecated: use opensearchservice module instead. GrantPathWrite(path *string, identity awsiam.IGrantable) awsiam.Grant // Grant read permissions for this domain and its contents to an IAM principal (Role/Group/User). // Deprecated: use opensearchservice module instead. GrantRead(identity awsiam.IGrantable) awsiam.Grant // Grant read/write permissions for this domain and its contents to an IAM principal (Role/Group/User). // Deprecated: use opensearchservice module instead. GrantReadWrite(identity awsiam.IGrantable) awsiam.Grant // Grant write permissions for this domain and its contents to an IAM principal (Role/Group/User). // Deprecated: use opensearchservice module instead. GrantWrite(identity awsiam.IGrantable) awsiam.Grant // Return the given named metric for this Domain. // Deprecated: use opensearchservice module instead. Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for automated snapshot failures. // Deprecated: use opensearchservice module instead. MetricAutomatedSnapshotFailure(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the cluster blocking index writes. // Deprecated: use opensearchservice module instead. MetricClusterIndexWritesBlocked(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the time the cluster status is red. // Deprecated: use opensearchservice module instead. MetricClusterStatusRed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the time the cluster status is yellow. // Deprecated: use opensearchservice module instead. MetricClusterStatusYellow(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for CPU utilization. // Deprecated: use opensearchservice module instead. MetricCPUUtilization(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the storage space of nodes in the cluster. // Deprecated: use opensearchservice module instead. MetricFreeStorageSpace(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for indexing latency. // Deprecated: use opensearchservice module instead. MetricIndexingLatency(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for JVM memory pressure. // Deprecated: use opensearchservice module instead. MetricJVMMemoryPressure(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for KMS key errors. // Deprecated: use opensearchservice module instead. MetricKMSKeyError(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for KMS key being inaccessible. // Deprecated: use opensearchservice module instead. MetricKMSKeyInaccessible(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for master CPU utilization. // Deprecated: use opensearchservice module instead. MetricMasterCPUUtilization(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for master JVM memory pressure. // Deprecated: use opensearchservice module instead. MetricMasterJVMMemoryPressure(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of nodes. // Deprecated: use opensearchservice module instead. MetricNodes(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for number of searchable documents. // Deprecated: use opensearchservice module instead. MetricSearchableDocuments(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for search latency. // Deprecated: use opensearchservice module instead. MetricSearchLatency(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Arn of the Elasticsearch domain. // Deprecated: use opensearchservice module instead. DomainArn() *string // Endpoint of the Elasticsearch domain. // Deprecated: use opensearchservice module instead. DomainEndpoint() *string // Domain name of the Elasticsearch domain. // Deprecated: use opensearchservice module instead. DomainName() *string }
An interface that represents an Elasticsearch domain - either created with the CDK, or an existing one. Deprecated: use opensearchservice module instead.
func Domain_FromDomainAttributes ¶
func Domain_FromDomainAttributes(scope constructs.Construct, id *string, attrs *DomainAttributes) IDomain
Creates a Domain construct that represents an external domain. Deprecated: use opensearchservice module instead.
func Domain_FromDomainEndpoint ¶
func Domain_FromDomainEndpoint(scope constructs.Construct, id *string, domainEndpoint *string) IDomain
Creates a Domain construct that represents an external domain via domain endpoint. Deprecated: use opensearchservice module instead.
type LoggingOptions
deprecated
type LoggingOptions struct { // Specify if Elasticsearch application logging should be set up. // // Requires Elasticsearch version 5.1 or later. // Deprecated: use opensearchservice module instead. AppLogEnabled *bool `field:"optional" json:"appLogEnabled" yaml:"appLogEnabled"` // Log Elasticsearch application logs to this log group. // Deprecated: use opensearchservice module instead. AppLogGroup awslogs.ILogGroup `field:"optional" json:"appLogGroup" yaml:"appLogGroup"` // Specify if Elasticsearch audit logging should be set up. // // Requires Elasticsearch version 6.7 or later and fine grained access control to be enabled. // Deprecated: use opensearchservice module instead. AuditLogEnabled *bool `field:"optional" json:"auditLogEnabled" yaml:"auditLogEnabled"` // Log Elasticsearch audit logs to this log group. // Deprecated: use opensearchservice module instead. AuditLogGroup awslogs.ILogGroup `field:"optional" json:"auditLogGroup" yaml:"auditLogGroup"` // Specify if slow index logging should be set up. // // Requires Elasticsearch version 5.1 or later. // Deprecated: use opensearchservice module instead. SlowIndexLogEnabled *bool `field:"optional" json:"slowIndexLogEnabled" yaml:"slowIndexLogEnabled"` // Log slow indices to this log group. // Deprecated: use opensearchservice module instead. SlowIndexLogGroup awslogs.ILogGroup `field:"optional" json:"slowIndexLogGroup" yaml:"slowIndexLogGroup"` // Specify if slow search logging should be set up. // // Requires Elasticsearch version 5.1 or later. // Deprecated: use opensearchservice module instead. SlowSearchLogEnabled *bool `field:"optional" json:"slowSearchLogEnabled" yaml:"slowSearchLogEnabled"` // Log slow searches to this log group. // Deprecated: use opensearchservice module instead. SlowSearchLogGroup awslogs.ILogGroup `field:"optional" json:"slowSearchLogGroup" yaml:"slowSearchLogGroup"` }
Configures log settings for the domain.
Example:
prodDomain := es.NewDomain(this, jsii.String("Domain"), &domainProps{ version: es.elasticsearchVersion_V7_1(), capacity: &capacityConfig{ masterNodes: jsii.Number(5), dataNodes: jsii.Number(20), }, ebs: &ebsOptions{ volumeSize: jsii.Number(20), }, zoneAwareness: &zoneAwarenessConfig{ availabilityZoneCount: jsii.Number(3), }, logging: &loggingOptions{ slowSearchLogEnabled: jsii.Boolean(true), appLogEnabled: jsii.Boolean(true), slowIndexLogEnabled: jsii.Boolean(true), }, })
Deprecated: use opensearchservice module instead.
type TLSSecurityPolicy ¶
type TLSSecurityPolicy string
The minimum TLS version required for traffic to the domain. Deprecated: use opensearchservice module instead.
const ( // Cipher suite TLS 1.0. // Deprecated: use opensearchservice module instead. TLSSecurityPolicy_TLS_1_0 TLSSecurityPolicy = "TLS_1_0" // Cipher suite TLS 1.2. // Deprecated: use opensearchservice module instead. TLSSecurityPolicy_TLS_1_2 TLSSecurityPolicy = "TLS_1_2" )
type ZoneAwarenessConfig
deprecated
type ZoneAwarenessConfig struct { // If you enabled multiple Availability Zones (AZs), the number of AZs that you want the domain to use. // // Valid values are 2 and 3. // Deprecated: use opensearchservice module instead. AvailabilityZoneCount *float64 `field:"optional" json:"availabilityZoneCount" yaml:"availabilityZoneCount"` // Indicates whether to enable zone awareness for the Amazon ES domain. // // When you enable zone awareness, Amazon ES allocates the nodes and replica // index shards that belong to a cluster across two Availability Zones (AZs) // in the same region to prevent data loss and minimize downtime in the event // of node or data center failure. Don't enable zone awareness if your cluster // has no replica index shards or is a single-node cluster. For more information, // see [Configuring a Multi-AZ Domain] // (https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-managedomains-multiaz) // in the Amazon Elasticsearch Service Developer Guide. // Deprecated: use opensearchservice module instead. Enabled *bool `field:"optional" json:"enabled" yaml:"enabled"` }
Specifies zone awareness configuration options.
Example:
prodDomain := es.NewDomain(this, jsii.String("Domain"), &domainProps{ version: es.elasticsearchVersion_V7_1(), capacity: &capacityConfig{ masterNodes: jsii.Number(5), dataNodes: jsii.Number(20), }, ebs: &ebsOptions{ volumeSize: jsii.Number(20), }, zoneAwareness: &zoneAwarenessConfig{ availabilityZoneCount: jsii.Number(3), }, logging: &loggingOptions{ slowSearchLogEnabled: jsii.Boolean(true), appLogEnabled: jsii.Boolean(true), slowIndexLogEnabled: jsii.Boolean(true), }, })
Deprecated: use opensearchservice module instead.
Source Files ¶
- awselasticsearch.go
- awselasticsearch_AdvancedSecurityOptions.go
- awselasticsearch_CapacityConfig.go
- awselasticsearch_CfnDomain.go
- awselasticsearch_CfnDomainProps.go
- awselasticsearch_CfnDomain_AdvancedSecurityOptionsInputProperty.go
- awselasticsearch_CfnDomain_CognitoOptionsProperty.go
- awselasticsearch_CfnDomain_ColdStorageOptionsProperty.go
- awselasticsearch_CfnDomain_DomainEndpointOptionsProperty.go
- awselasticsearch_CfnDomain_EBSOptionsProperty.go
- awselasticsearch_CfnDomain_ElasticsearchClusterConfigProperty.go
- awselasticsearch_CfnDomain_EncryptionAtRestOptionsProperty.go
- awselasticsearch_CfnDomain_LogPublishingOptionProperty.go
- awselasticsearch_CfnDomain_MasterUserOptionsProperty.go
- awselasticsearch_CfnDomain_NodeToNodeEncryptionOptionsProperty.go
- awselasticsearch_CfnDomain_SnapshotOptionsProperty.go
- awselasticsearch_CfnDomain_VPCOptionsProperty.go
- awselasticsearch_CfnDomain_ZoneAwarenessConfigProperty.go
- awselasticsearch_CfnDomain__runtime_type_checks.go
- awselasticsearch_CognitoOptions.go
- awselasticsearch_CustomEndpointOptions.go
- awselasticsearch_Domain.go
- awselasticsearch_DomainAttributes.go
- awselasticsearch_DomainProps.go
- awselasticsearch_Domain__runtime_type_checks.go
- awselasticsearch_EbsOptions.go
- awselasticsearch_ElasticsearchVersion.go
- awselasticsearch_ElasticsearchVersion__runtime_type_checks.go
- awselasticsearch_EncryptionAtRestOptions.go
- awselasticsearch_IDomain.go
- awselasticsearch_IDomain__runtime_type_checks.go
- awselasticsearch_LoggingOptions.go
- awselasticsearch_TLSSecurityPolicy.go
- awselasticsearch_ZoneAwarenessConfig.go