Skip to main content

storage_tier_policies

Creates, updates, deletes, gets or lists a storage_tier_policies resource.

Overview

Namestorage_tier_policies
TypeResource
Idaws.logs.storage_tier_policies

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
last_updated_timeinteger (int64)The time when the storage tier policy was last updated, expressed as the number of milliseconds after January 1, 1970 00:00:00 UTC.
storage_tierstringThe current storage tier for the account. (STANDARD, INTELLIGENT_TIERING)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_storage_tier_policyselectregionReturns the storage tier policy for the account.
put_storage_tier_policyreplaceregion, storageTierSets the storage tier policy for the account. When you set the storage tier to INTELLIGENT_TIERING, the service automatically moves log data to the most cost-effective storage tier based on access frequency.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns the storage tier policy for the account.

SELECT
last_updated_time,
storage_tier
FROM aws.logs.storage_tier_policies
WHERE region = '{{ region }}' -- required
;

REPLACE examples

Sets the storage tier policy for the account. When you set the storage tier to INTELLIGENT_TIERING, the service automatically moves log data to the most cost-effective storage tier based on access frequency.

REPLACE aws.logs.storage_tier_policies
SET
storageTier = '{{ storageTier }}'
WHERE
region = '{{ region }}' --required
AND storageTier = '{{ storageTier }}' --required
RETURNING
last_updated_time,
storage_tier;