Class: AWSCDK::Elasticsearch::CfnDomain::SnapshotOptionsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
elasticsearch/cfn_domain.rb

Overview

The AWS::Elasticsearch::Domain resource 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 .

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.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(automated_snapshot_start_hour: nil) ⇒ SnapshotOptionsProperty

Returns a new instance of SnapshotOptionsProperty.

Parameters:

  • automated_snapshot_start_hour (Numeric, nil) (defaults to: nil)

    The hour in UTC during which the service takes an automated daily snapshot of the indices in the OpenSearch Service domain.



1442
1443
1444
1445
# File 'elasticsearch/cfn_domain.rb', line 1442

def initialize(automated_snapshot_start_hour: nil)
  @automated_snapshot_start_hour = automated_snapshot_start_hour
  Jsii::Type.check_type(@automated_snapshot_start_hour, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "automatedSnapshotStartHour") unless @automated_snapshot_start_hour.nil?
end

Instance Attribute Details

#automated_snapshot_start_hourNumeric? (readonly)

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.



1453
1454
1455
# File 'elasticsearch/cfn_domain.rb', line 1453

def automated_snapshot_start_hour
  @automated_snapshot_start_hour
end

Class Method Details

.jsii_propertiesObject



1455
1456
1457
1458
1459
# File 'elasticsearch/cfn_domain.rb', line 1455

def self.jsii_properties
  {
    :automated_snapshot_start_hour => "automatedSnapshotStartHour",
  }
end

Instance Method Details

#to_jsiiObject



1461
1462
1463
1464
1465
1466
1467
# File 'elasticsearch/cfn_domain.rb', line 1461

def to_jsii
  result = {}
  result.merge!({
    "automatedSnapshotStartHour" => @automated_snapshot_start_hour,
  })
  result.compact
end