CloudWatchLogs / Client / put_storage_tier_policy

put_storage_tier_policy

CloudWatchLogs.Client.put_storage_tier_policy(**kwargs)

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

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

storageTier (string) –

[REQUIRED]

The storage tier to set for the account. Valid values are STANDARD and INTELLIGENT_TIERING.

Return type:

dict

Returns:

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.

Exceptions

  • CloudWatchLogs.Client.exceptions.InvalidParameterException

  • CloudWatchLogs.Client.exceptions.ServiceUnavailableException

  • CloudWatchLogs.Client.exceptions.AccessDeniedException

  • CloudWatchLogs.Client.exceptions.OperationAbortedException

  • CloudWatchLogs.Client.exceptions.ResourceNotFoundException