published on Friday, Aug 7, 2026 by Pulumi
published on Friday, Aug 7, 2026 by Pulumi
Manages a CloudWatch Logs account-level storage tier policy. When set to INTELLIGENT_TIERING, CloudWatch Logs automatically moves log data to the most cost-effective storage tier based on access frequency.
Deletion of this resource will reset the storage tier policy to
STANDARD(the default state).
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.cloudwatch.LogStorageTierPolicy("example", {storageTier: "INTELLIGENT_TIERING"});
import pulumi
import pulumi_aws as aws
example = aws.cloudwatch.LogStorageTierPolicy("example", storage_tier="INTELLIGENT_TIERING")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/cloudwatch"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudwatch.NewLogStorageTierPolicy(ctx, "example", &cloudwatch.LogStorageTierPolicyArgs{
StorageTier: pulumi.String("INTELLIGENT_TIERING"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.CloudWatch.LogStorageTierPolicy("example", new()
{
StorageTier = "INTELLIGENT_TIERING",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.cloudwatch.LogStorageTierPolicy;
import com.pulumi.aws.cloudwatch.LogStorageTierPolicyArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new LogStorageTierPolicy("example", LogStorageTierPolicyArgs.builder()
.storageTier("INTELLIGENT_TIERING")
.build());
}
}
resources:
example:
type: aws:cloudwatch:LogStorageTierPolicy
properties:
storageTier: INTELLIGENT_TIERING
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_cloudwatch_logstoragetierpolicy" "example" {
storage_tier = "INTELLIGENT_TIERING"
}
Create LogStorageTierPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LogStorageTierPolicy(name: string, args: LogStorageTierPolicyArgs, opts?: CustomResourceOptions);@overload
def LogStorageTierPolicy(resource_name: str,
args: LogStorageTierPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LogStorageTierPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
storage_tier: Optional[str] = None,
region: Optional[str] = None)func NewLogStorageTierPolicy(ctx *Context, name string, args LogStorageTierPolicyArgs, opts ...ResourceOption) (*LogStorageTierPolicy, error)public LogStorageTierPolicy(string name, LogStorageTierPolicyArgs args, CustomResourceOptions? opts = null)
public LogStorageTierPolicy(String name, LogStorageTierPolicyArgs args)
public LogStorageTierPolicy(String name, LogStorageTierPolicyArgs args, CustomResourceOptions options)
type: aws:cloudwatch:LogStorageTierPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws_cloudwatch_log_storage_tier_policy" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args LogStorageTierPolicyArgs
- 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 LogStorageTierPolicyArgs
- 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 LogStorageTierPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LogStorageTierPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LogStorageTierPolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var logStorageTierPolicyResource = new Aws.CloudWatch.LogStorageTierPolicy("logStorageTierPolicyResource", new()
{
StorageTier = "string",
Region = "string",
});
example, err := cloudwatch.NewLogStorageTierPolicy(ctx, "logStorageTierPolicyResource", &cloudwatch.LogStorageTierPolicyArgs{
StorageTier: pulumi.String("string"),
Region: pulumi.String("string"),
})
resource "aws_cloudwatch_log_storage_tier_policy" "logStorageTierPolicyResource" {
lifecycle {
create_before_destroy = true
}
storage_tier = "string"
region = "string"
}
var logStorageTierPolicyResource = new LogStorageTierPolicy("logStorageTierPolicyResource", LogStorageTierPolicyArgs.builder()
.storageTier("string")
.region("string")
.build());
log_storage_tier_policy_resource = aws.cloudwatch.LogStorageTierPolicy("logStorageTierPolicyResource",
storage_tier="string",
region="string")
const logStorageTierPolicyResource = new aws.cloudwatch.LogStorageTierPolicy("logStorageTierPolicyResource", {
storageTier: "string",
region: "string",
});
type: aws:cloudwatch:LogStorageTierPolicy
properties:
region: string
storageTier: string
LogStorageTierPolicy 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 LogStorageTierPolicy resource accepts the following input properties:
- Storage
Tier string - Storage tier to set for the account. Valid values are
STANDARDorINTELLIGENT_TIERING. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Storage
Tier string - Storage tier to set for the account. Valid values are
STANDARDorINTELLIGENT_TIERING. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- storage_
tier string - Storage tier to set for the account. Valid values are
STANDARDorINTELLIGENT_TIERING. - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- storage
Tier String - Storage tier to set for the account. Valid values are
STANDARDorINTELLIGENT_TIERING. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- storage
Tier string - Storage tier to set for the account. Valid values are
STANDARDorINTELLIGENT_TIERING. - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- storage_
tier str - Storage tier to set for the account. Valid values are
STANDARDorINTELLIGENT_TIERING. - region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- storage
Tier String - Storage tier to set for the account. Valid values are
STANDARDorINTELLIGENT_TIERING. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
Outputs
All input properties are implicitly available as output properties. Additionally, the LogStorageTierPolicy resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing LogStorageTierPolicy Resource
Get an existing LogStorageTierPolicy 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>, state?: LogStorageTierPolicyState, opts?: CustomResourceOptions): LogStorageTierPolicy@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
region: Optional[str] = None,
storage_tier: Optional[str] = None) -> LogStorageTierPolicyfunc GetLogStorageTierPolicy(ctx *Context, name string, id IDInput, state *LogStorageTierPolicyState, opts ...ResourceOption) (*LogStorageTierPolicy, error)public static LogStorageTierPolicy Get(string name, Input<string> id, LogStorageTierPolicyState? state, CustomResourceOptions? opts = null)public static LogStorageTierPolicy get(String name, Output<String> id, LogStorageTierPolicyState state, CustomResourceOptions options)resources: _: type: aws:cloudwatch:LogStorageTierPolicy get: id: ${id}import {
to = aws_cloudwatch_log_storage_tier_policy.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Storage
Tier string - Storage tier to set for the account. Valid values are
STANDARDorINTELLIGENT_TIERING.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Storage
Tier string - Storage tier to set for the account. Valid values are
STANDARDorINTELLIGENT_TIERING.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- storage_
tier string - Storage tier to set for the account. Valid values are
STANDARDorINTELLIGENT_TIERING.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- storage
Tier String - Storage tier to set for the account. Valid values are
STANDARDorINTELLIGENT_TIERING.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- storage
Tier string - Storage tier to set for the account. Valid values are
STANDARDorINTELLIGENT_TIERING.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- storage_
tier str - Storage tier to set for the account. Valid values are
STANDARDorINTELLIGENT_TIERING.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- storage
Tier String - Storage tier to set for the account. Valid values are
STANDARDorINTELLIGENT_TIERING.
Import
Identity Schema
Required
region(String) Region where this resource is managed.
Optional
accountId(String) AWS Account where this resource is managed.
Using pulumi import, import storage tier policies using region. For example:
$ pulumi import aws:cloudwatch/logStorageTierPolicy:LogStorageTierPolicy example us-west-2
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
published on Friday, Aug 7, 2026 by Pulumi