We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 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.
Create StorageTierPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new StorageTierPolicy(name: string, args: StorageTierPolicyArgs, opts?: CustomResourceOptions);@overload
def StorageTierPolicy(resource_name: str,
args: StorageTierPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def StorageTierPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
storage_tier: Optional[StorageTierPolicyStorageTier] = None)func NewStorageTierPolicy(ctx *Context, name string, args StorageTierPolicyArgs, opts ...ResourceOption) (*StorageTierPolicy, error)public StorageTierPolicy(string name, StorageTierPolicyArgs args, CustomResourceOptions? opts = null)
public StorageTierPolicy(String name, StorageTierPolicyArgs args)
public StorageTierPolicy(String name, StorageTierPolicyArgs args, CustomResourceOptions options)
type: aws-native:logs:StorageTierPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_logs_storage_tier_policy" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args StorageTierPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args StorageTierPolicyArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args StorageTierPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args StorageTierPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args StorageTierPolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
StorageTierPolicy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The StorageTierPolicy resource accepts the following input properties:
- Storage
Tier Pulumi.Aws Native. Logs. Storage Tier Policy Storage Tier - The storage tier to apply. Only INTELLIGENT_TIERING is accepted for creation.
- Storage
Tier StorageTier Policy Storage Tier - The storage tier to apply. Only INTELLIGENT_TIERING is accepted for creation.
- storage_
tier "INTELLIGENT_TIERING" - The storage tier to apply. Only INTELLIGENT_TIERING is accepted for creation.
- storage
Tier StorageTier Policy Storage Tier - The storage tier to apply. Only INTELLIGENT_TIERING is accepted for creation.
- storage
Tier StorageTier Policy Storage Tier - The storage tier to apply. Only INTELLIGENT_TIERING is accepted for creation.
- storage_
tier StorageTier Policy Storage Tier - The storage tier to apply. Only INTELLIGENT_TIERING is accepted for creation.
- storage
Tier "INTELLIGENT_TIERING" - The storage tier to apply. Only INTELLIGENT_TIERING is accepted for creation.
Outputs
All input properties are implicitly available as output properties. Additionally, the StorageTierPolicy resource produces the following output properties:
- Account
Id string - The AWS account ID that owns this storage tier policy.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated doubleTime - Timestamp (milliseconds after Jan 1, 1970 00:00:00 UTC) when the storage tier policy was last updated.
- Account
Id string - The AWS account ID that owns this storage tier policy.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated float64Time - Timestamp (milliseconds after Jan 1, 1970 00:00:00 UTC) when the storage tier policy was last updated.
- account_
id string - The AWS account ID that owns this storage tier policy.
- id string
- The provider-assigned unique ID for this managed resource.
- last_
updated_ numbertime - Timestamp (milliseconds after Jan 1, 1970 00:00:00 UTC) when the storage tier policy was last updated.
- account
Id String - The AWS account ID that owns this storage tier policy.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated DoubleTime - Timestamp (milliseconds after Jan 1, 1970 00:00:00 UTC) when the storage tier policy was last updated.
- account
Id string - The AWS account ID that owns this storage tier policy.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Updated numberTime - Timestamp (milliseconds after Jan 1, 1970 00:00:00 UTC) when the storage tier policy was last updated.
- account_
id str - The AWS account ID that owns this storage tier policy.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
updated_ floattime - Timestamp (milliseconds after Jan 1, 1970 00:00:00 UTC) when the storage tier policy was last updated.
- account
Id String - The AWS account ID that owns this storage tier policy.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated NumberTime - Timestamp (milliseconds after Jan 1, 1970 00:00:00 UTC) when the storage tier policy was last updated.
Look up Existing StorageTierPolicy Resource
Get an existing StorageTierPolicy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): StorageTierPolicy@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> StorageTierPolicyfunc GetStorageTierPolicy(ctx *Context, name string, id IDInput, state *StorageTierPolicyState, opts ...ResourceOption) (*StorageTierPolicy, error)public static StorageTierPolicy Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static StorageTierPolicy get(String name, Output<String> id, CustomResourceOptions options)resources: existingStorageTierPolicy: type: aws-native:logs:StorageTierPolicy get: id: ${id}import {
to = aws-native_logs_storage_tier_policy.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state StorageTierPolicyState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Supporting Types
StorageTierPolicyStorageTier
The storage tier to apply. Only INTELLIGENT_TIERING is accepted for creation.
| Name | Value |
|---|---|
| Intelligent | INTELLIGENT_TIERING |
| Name | Value |
|---|---|
| Storage | INTELLIGENT_TIERING |
| Value |
|---|
INTELLIGENT_TIERING |
| Name | Value |
|---|---|
| Intelligent | INTELLIGENT_TIERING |
| Name | Value |
|---|---|
| Intelligent | INTELLIGENT_TIERING |
| Name | Value |
|---|---|
| INTELLIGENT_TIERING | INTELLIGENT_TIERING |
| Value |
|---|
INTELLIGENT_TIERING |
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi