Cookie の設定を選択する

当社は、当社のサイトおよびサービスを提供するために必要な必須 Cookie および類似のツールを使用しています。当社は、パフォーマンス Cookie を使用して匿名の統計情報を収集することで、お客様が当社のサイトをどのように利用しているかを把握し、改善に役立てています。必須 Cookie は無効化できませんが、[カスタマイズ] または [拒否] をクリックしてパフォーマンス Cookie を拒否することはできます。

お客様が同意した場合、AWS および承認された第三者は、Cookie を使用して便利なサイト機能を提供したり、お客様の選択を記憶したり、関連する広告を含む関連コンテンツを表示したりします。すべての必須ではない Cookie を受け入れるか拒否するには、[受け入れる] または [拒否] をクリックしてください。より詳細な選択を行うには、[カスタマイズ] をクリックしてください。

AWS::OpenSearchServerless::LifecyclePolicy

フォーカスモード
AWS::OpenSearchServerless::LifecyclePolicy - AWS CloudFormation
このページはお客様の言語に翻訳されていません。 翻訳のリクエスト
フィルタビュー

Creates a lifecyle policy to be applied to OpenSearch Serverless indexes. Lifecycle policies define the number of days or hours to retain the data on an OpenSearch Serverless index. For more information, see Creating data lifecycle policies.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::OpenSearchServerless::LifecyclePolicy", "Properties" : { "Description" : String, "Name" : String, "Policy" : String, "Type" : String } }

YAML

Type: AWS::OpenSearchServerless::LifecyclePolicy Properties: Description: String Name: String Policy: String Type: String

Properties

Description

The description of the lifecycle policy.

Required: No

Type: String

Minimum: 0

Maximum: 1000

Update requires: No interruption

Name

The name of the lifecycle policy.

Required: Yes

Type: String

Pattern: ^[a-z][a-z0-9-]+$

Minimum: 3

Maximum: 32

Update requires: Replacement

Policy

The JSON policy document without any whitespaces.

Required: Yes

Type: String

Pattern: [\u0009\u000A\u000D\u0020-\u007E\u00A1-\u00FF]+

Minimum: 1

Maximum: 20480

Update requires: No interruption

Type

The type of lifecycle policy.

Required: Yes

Type: String

Allowed values: retention

Update requires: Replacement

Return values

Ref

When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the type and name of the lifecycle policy. For more information about using the Ref function, see Ref.

Examples

Create a lifecycle policy that sets a minimum rollover period for all indexes in a collection

The following example specifies an OpenSearch Serverless lifecycle policy that sets a minimum rollover period for all indexes within my-collection.

JSON

{ "AWSTemplateFormatVersion": "2010-09-09", "Description": "OpenSearch Serverless lifecycle policy template", "Resources": { "TestLifecyclePolicy": { "Type": "AWS::OpenSearchServerless::LifecyclePolicy", "Properties": { "Name": "test-lifecycle-policy", "Type": "retention", "Description": "Lifecycle policy for all indexes in my-collection", "Policy": {\"Rules\": [{\"Resource\": [\"index/my-collection/*\"],\"ResourceType\": \"index\",\"MinIndexRetention\": \"2d\"}} } } } }

YAML

AWSTemplateFormatVersion: 2010-09-09T00:00:00.000Z Description: OpenSearch Serverless lifecycle policy template Resources: TestLifecyclePolicy: Type: 'AWS::OpenSearchServerless::LifecyclePolicy' Properties: Name: test-lifecycle-policy Type: retention Description: Lifecycle policy for all indexes in my-collection Policy: {"Rules": [{"Resource": ["index/my-collection/*"],"ResourceType": "index","MinIndexRetention": "2d"}]}

このページの内容

プライバシーサイト規約Cookie の設定
© 2025, Amazon Web Services, Inc. or its affiliates.All rights reserved.