storage_tier_policies
Creates, updates, deletes, gets or lists a storage_tier_policies resource.
Overview
| Name | storage_tier_policies |
| Type | Resource |
| Id | aws.logs.storage_tier_policies |
Fields
The following fields are returned by SELECT queries:
- get_storage_tier_policy
| Name | Datatype | Description |
|---|---|---|
last_updated_time | integer (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_tier | string | The current storage tier for the account. (STANDARD, INTELLIGENT_TIERING) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_storage_tier_policy | select | region | Returns the storage tier policy for the account. | |
put_storage_tier_policy | replace | region, storageTier | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_storage_tier_policy
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
- put_storage_tier_policy
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;