1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. logs
  6. getStorageTierPolicy

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.78.0
published on Monday, Sep 7, 2026 by Pulumi
aws-native logo aws-native logo

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.78.0
published on Monday, Sep 7, 2026 by Pulumi

    Resource Type definition for AWS::Logs::StorageTierPolicy. Manages the storage tier policy for a CloudWatch Logs account. When created, enables Intelligent-Tiering which automatically moves infrequently accessed log data to lower-cost storage tiers. Deleting this resource reverts the account to standard (single-tier) storage.

    Using getStorageTierPolicy

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getStorageTierPolicy(args: GetStorageTierPolicyArgs, opts?: InvokeOptions): Promise<GetStorageTierPolicyResult>
    function getStorageTierPolicyOutput(args: GetStorageTierPolicyOutputArgs, opts?: InvokeOutputOptions): Output<GetStorageTierPolicyResult>
    def get_storage_tier_policy(account_id: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetStorageTierPolicyResult
    def get_storage_tier_policy_output(account_id: pulumi.Input[Optional[str]] = None,
                                opts: Optional[InvokeOutputOptions] = None) -> Output[GetStorageTierPolicyResult]
    func LookupStorageTierPolicy(ctx *Context, args *LookupStorageTierPolicyArgs, opts ...InvokeOption) (*LookupStorageTierPolicyResult, error)
    func LookupStorageTierPolicyOutput(ctx *Context, args *LookupStorageTierPolicyOutputArgs, opts ...InvokeOption) LookupStorageTierPolicyResultOutput

    > Note: This function is named LookupStorageTierPolicy in the Go SDK.

    public static class GetStorageTierPolicy 
    {
        public static Task<GetStorageTierPolicyResult> InvokeAsync(GetStorageTierPolicyArgs args, InvokeOptions? opts = null)
        public static Output<GetStorageTierPolicyResult> Invoke(GetStorageTierPolicyInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetStorageTierPolicyResult> Invoke(GetStorageTierPolicyInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetStorageTierPolicyResult> getStorageTierPolicy(GetStorageTierPolicyArgs args, InvokeOptions options)
    public static Output<GetStorageTierPolicyResult> getStorageTierPolicy(GetStorageTierPolicyArgs args, InvokeOptions options)
    public static Output<GetStorageTierPolicyResult> getStorageTierPolicy(GetStorageTierPolicyArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws-native:logs:getStorageTierPolicy
      arguments:
        # arguments dictionary
    data "aws-native_logs_get_storage_tier_policy" "name" {
        # arguments
    }

    The following arguments are supported:

    AccountId string
    The AWS account ID that owns this storage tier policy.
    AccountId string
    The AWS account ID that owns this storage tier policy.
    account_id string
    The AWS account ID that owns this storage tier policy.
    accountId String
    The AWS account ID that owns this storage tier policy.
    accountId string
    The AWS account ID that owns this storage tier policy.
    account_id str
    The AWS account ID that owns this storage tier policy.
    accountId String
    The AWS account ID that owns this storage tier policy.

    getStorageTierPolicy Result

    The following output properties are available:

    AccountId string
    The AWS account ID that owns this storage tier policy.
    LastUpdatedTime double
    Timestamp (milliseconds after Jan 1, 1970 00:00:00 UTC) when the storage tier policy was last updated.
    StorageTier Pulumi.AwsNative.Logs.StorageTierPolicyStorageTier
    The storage tier to apply. Only INTELLIGENT_TIERING is accepted for creation.
    AccountId string
    The AWS account ID that owns this storage tier policy.
    LastUpdatedTime float64
    Timestamp (milliseconds after Jan 1, 1970 00:00:00 UTC) when the storage tier policy was last updated.
    StorageTier StorageTierPolicyStorageTier
    The storage tier to apply. Only INTELLIGENT_TIERING is accepted for creation.
    account_id string
    The AWS account ID that owns this storage tier policy.
    last_updated_time number
    Timestamp (milliseconds after Jan 1, 1970 00:00:00 UTC) when the storage tier policy was last updated.
    storage_tier "INTELLIGENT_TIERING"
    The storage tier to apply. Only INTELLIGENT_TIERING is accepted for creation.
    accountId String
    The AWS account ID that owns this storage tier policy.
    lastUpdatedTime Double
    Timestamp (milliseconds after Jan 1, 1970 00:00:00 UTC) when the storage tier policy was last updated.
    storageTier StorageTierPolicyStorageTier
    The storage tier to apply. Only INTELLIGENT_TIERING is accepted for creation.
    accountId string
    The AWS account ID that owns this storage tier policy.
    lastUpdatedTime number
    Timestamp (milliseconds after Jan 1, 1970 00:00:00 UTC) when the storage tier policy was last updated.
    storageTier StorageTierPolicyStorageTier
    The storage tier to apply. Only INTELLIGENT_TIERING is accepted for creation.
    account_id str
    The AWS account ID that owns this storage tier policy.
    last_updated_time float
    Timestamp (milliseconds after Jan 1, 1970 00:00:00 UTC) when the storage tier policy was last updated.
    storage_tier StorageTierPolicyStorageTier
    The storage tier to apply. Only INTELLIGENT_TIERING is accepted for creation.
    accountId String
    The AWS account ID that owns this storage tier policy.
    lastUpdatedTime Number
    Timestamp (milliseconds after Jan 1, 1970 00:00:00 UTC) when the storage tier policy was last updated.
    storageTier "INTELLIGENT_TIERING"
    The storage tier to apply. Only INTELLIGENT_TIERING is accepted for creation.

    Supporting Types

    StorageTierPolicyStorageTier

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.78.0
    published on Monday, Sep 7, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial