ColdStorageOptionsProperty Struct
Specifies options for cold storage. For more information, see Cold storage for Amazon Elasticsearch Service .
The
AWS::Elasticsearch::Domainresource is being replaced by the AWS::OpenSearchService::Domain resource. While the legacy Elasticsearch resource and options are still supported, we recommend modifying your existing Cloudformation templates to use the new OpenSearch Service resource, which supports both OpenSearch and Elasticsearch. For more information about the service rename, see New resource types in the Amazon OpenSearch Service Developer Guide .
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_elasticsearch as elasticsearch } from 'aws-cdk-lib';
const coldStorageOptionsProperty: elasticsearch.CfnDomain.ColdStorageOptionsProperty = {
enabled: false,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_elasticsearch as elasticsearch
cold_storage_options_property = elasticsearch.CfnDomain.ColdStorageOptionsProperty(
enabled=False
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.elasticsearch.*;
ColdStorageOptionsProperty coldStorageOptionsProperty = ColdStorageOptionsProperty.builder()
.enabled(false)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Elasticsearch;
var coldStorageOptionsProperty = new ColdStorageOptionsProperty {
Enabled = false
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
coldStorageOptionsProperty := &ColdStorageOptionsProperty{
Enabled: jsii.Boolean(false),
}
Properties
enabledoptionalboolean | IResolvableenabledoptionaltyping.Union[bool, IResolvable]enabledoptionalBooleanEnabledoptionalboolEnabledoptionalinterface{} #Whether to enable or disable cold storage on the domain.
You must enable UltraWarm storage in order to enable cold storage.