CloudWatchLogs / Client / put_storage_tier_policy

put_storage_tier_policy

CloudWatchLogs.Client.put_storage_tier_policy(**kwargs)

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.

See also: AWS API Documentation

Request Syntax

response = client.put_storage_tier_policy(
    storageTier='STANDARD'|'INTELLIGENT_TIERING'
)
Parameters:

storageTier (string) –

[REQUIRED]

The storage tier to set for the account. Use INTELLIGENT_TIERING to automatically optimize storage costs by moving log data to the appropriate tier based on access frequency.

Return type:

dict

Returns:

Response Syntax

{
    'storageTier': 'STANDARD'|'INTELLIGENT_TIERING',
    'lastUpdatedTime': 123
}

Response Structure

  • (dict) –

    • storageTier (string) –

      The storage tier for the account.

    • lastUpdatedTime (integer) –

      The time when the storage tier policy was last updated, expressed as the number of milliseconds after January 1, 1970 00:00:00 UTC.

Exceptions