2026/07/06 - Amazon CloudWatch Logs - 2 new api methods
Changes Added PutStorageTierPolicy and GetStorageTierPolicy APIs to Amazon CloudWatch Logs. Customers can now configure account-level Intelligent Tiering to automatically optimize log storage costs by moving infrequently accessed data to lower-cost storage tiers.
Sets the storage tier policy for your account. When you set the storage tier to INTELLIGENT_TIERING, CloudWatch Logs automatically moves your log data between storage tiers based on access patterns to optimize costs.
See also: AWS API Documentation
Request Syntax
client.put_storage_tier_policy(
storageTier='STANDARD'|'INTELLIGENT_TIERING'
)
string
[REQUIRED]
The storage tier to set for the account. Valid values are STANDARD and INTELLIGENT_TIERING.
dict
Response Syntax
{
'storageTier': 'STANDARD'|'INTELLIGENT_TIERING',
'lastUpdatedTime': 123
}
Response Structure
(dict) --
storageTier (string) --
The storage tier that was set.
lastUpdatedTime (integer) --
The time when the storage tier policy was last updated, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
Returns the storage tier policy for your account.
See also: AWS API Documentation
Request Syntax
client.get_storage_tier_policy()
dict
Response Syntax
{
'storageTier': 'STANDARD'|'INTELLIGENT_TIERING',
'lastUpdatedTime': 123
}
Response Structure
(dict) --
storageTier (string) --
The current storage tier for the account.
lastUpdatedTime (integer) --
The time when the storage tier policy was last updated, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.