Class CfnStorageTierPolicy

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, IEnvironmentAware, IStorageTierPolicyRef, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)", date="2026-09-02T11:03:13.419Z") @Stability(Stable) public class CfnStorageTierPolicy extends CfnResource implements IInspectable, IStorageTierPolicyRef
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.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.logs.*;
 CfnStorageTierPolicy cfnStorageTierPolicy = CfnStorageTierPolicy.Builder.create(this, "MyCfnStorageTierPolicy")
         .storageTier("storageTier")
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnStorageTierPolicy

      protected CfnStorageTierPolicy(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnStorageTierPolicy

      protected CfnStorageTierPolicy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnStorageTierPolicy

      @Stability(Stable) public CfnStorageTierPolicy(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnStorageTierPolicyProps props)
      Create a new AWS::Logs::StorageTierPolicy.

      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • isCfnStorageTierPolicy

      @Stability(Stable) @NotNull public static Boolean isCfnStorageTierPolicy(@NotNull Object x)
      Checks whether the given object is a CfnStorageTierPolicy.

      Parameters:
      x - This parameter is required.
    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrAccountId

      @Stability(Stable) @NotNull public String getAttrAccountId()
      The AWS account ID that owns this storage tier policy.
    • getAttrLastUpdatedTime

      @Stability(Stable) @NotNull public IResolvable getAttrLastUpdatedTime()
      Timestamp (milliseconds after Jan 1, 1970 00:00:00 UTC) when the storage tier policy was last updated.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getCfnPropertyNames

      @Stability(Stable) @NotNull protected Map<String,String> getCfnPropertyNames()
      Overrides:
      getCfnPropertyNames in class CfnResource
    • getStorageTierPolicyRef

      @Stability(Stable) @NotNull public StorageTierPolicyReference getStorageTierPolicyRef()
      A reference to a StorageTierPolicy resource.
      Specified by:
      getStorageTierPolicyRef in interface IStorageTierPolicyRef
    • getStorageTier

      @Stability(Stable) @NotNull public String getStorageTier()
      The storage tier to apply.
    • setStorageTier

      @Stability(Stable) public void setStorageTier(@NotNull String value)
      The storage tier to apply.