published on Wednesday, Jul 8, 2026 by Pulumi
published on Wednesday, Jul 8, 2026 by Pulumi
Caution: Preview Feature This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to
previewFeaturesEnabledfield in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
Data source used to get details of filtered storage lifecycle policies. Filtering is aligned with the current possibilities for SHOW STORAGE LIFECYCLE POLICIES query. The results of SHOW and DESCRIBE are encapsulated in one output collection storageLifecyclePolicies.
Using getStorageLifecyclePolicies
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 getStorageLifecyclePolicies(args: GetStorageLifecyclePoliciesArgs, opts?: InvokeOptions): Promise<GetStorageLifecyclePoliciesResult>
function getStorageLifecyclePoliciesOutput(args: GetStorageLifecyclePoliciesOutputArgs, opts?: InvokeOptions): Output<GetStorageLifecyclePoliciesResult>def get_storage_lifecycle_policies(in_: Optional[GetStorageLifecyclePoliciesIn] = None,
like: Optional[str] = None,
with_describe: Optional[bool] = None,
opts: Optional[InvokeOptions] = None) -> GetStorageLifecyclePoliciesResult
def get_storage_lifecycle_policies_output(in_: pulumi.Input[Optional[GetStorageLifecyclePoliciesInArgs]] = None,
like: pulumi.Input[Optional[str]] = None,
with_describe: pulumi.Input[Optional[bool]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetStorageLifecyclePoliciesResult]func GetStorageLifecyclePolicies(ctx *Context, args *GetStorageLifecyclePoliciesArgs, opts ...InvokeOption) (*GetStorageLifecyclePoliciesResult, error)
func GetStorageLifecyclePoliciesOutput(ctx *Context, args *GetStorageLifecyclePoliciesOutputArgs, opts ...InvokeOption) GetStorageLifecyclePoliciesResultOutput> Note: This function is named GetStorageLifecyclePolicies in the Go SDK.
public static class GetStorageLifecyclePolicies
{
public static Task<GetStorageLifecyclePoliciesResult> InvokeAsync(GetStorageLifecyclePoliciesArgs args, InvokeOptions? opts = null)
public static Output<GetStorageLifecyclePoliciesResult> Invoke(GetStorageLifecyclePoliciesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetStorageLifecyclePoliciesResult> getStorageLifecyclePolicies(GetStorageLifecyclePoliciesArgs args, InvokeOptions options)
public static Output<GetStorageLifecyclePoliciesResult> getStorageLifecyclePolicies(GetStorageLifecyclePoliciesArgs args, InvokeOptions options)
fn::invoke:
function: snowflake:index/getStorageLifecyclePolicies:getStorageLifecyclePolicies
arguments:
# arguments dictionarydata "snowflake_getstoragelifecyclepolicies" "name" {
# arguments
}The following arguments are supported:
- In
Get
Storage Lifecycle Policies In - IN clause to filter the list of objects
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - With
Describe bool - (Default:
true) Runs DESC STORAGE LIFECYCLE POLICY for each storage lifecycle policy returned by SHOW STORAGE LIFECYCLE POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
- In
Get
Storage Lifecycle Policies In - IN clause to filter the list of objects
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - With
Describe bool - (Default:
true) Runs DESC STORAGE LIFECYCLE POLICY for each storage lifecycle policy returned by SHOW STORAGE LIFECYCLE POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
- in object
- IN clause to filter the list of objects
- like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - with_
describe bool - (Default:
true) Runs DESC STORAGE LIFECYCLE POLICY for each storage lifecycle policy returned by SHOW STORAGE LIFECYCLE POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
- in
Get
Storage Lifecycle Policies In - IN clause to filter the list of objects
- like String
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - with
Describe Boolean - (Default:
true) Runs DESC STORAGE LIFECYCLE POLICY for each storage lifecycle policy returned by SHOW STORAGE LIFECYCLE POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
- in
Get
Storage Lifecycle Policies In - IN clause to filter the list of objects
- like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - with
Describe boolean - (Default:
true) Runs DESC STORAGE LIFECYCLE POLICY for each storage lifecycle policy returned by SHOW STORAGE LIFECYCLE POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
- in_
Get
Storage Lifecycle Policies In - IN clause to filter the list of objects
- like str
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - with_
describe bool - (Default:
true) Runs DESC STORAGE LIFECYCLE POLICY for each storage lifecycle policy returned by SHOW STORAGE LIFECYCLE POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
- in Property Map
- IN clause to filter the list of objects
- like String
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - with
Describe Boolean - (Default:
true) Runs DESC STORAGE LIFECYCLE POLICY for each storage lifecycle policy returned by SHOW STORAGE LIFECYCLE POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
getStorageLifecyclePolicies Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Storage
Lifecycle List<GetPolicies Storage Lifecycle Policies Storage Lifecycle Policy> - Holds the aggregated output of all storage lifecycle policy details queries.
- In
Get
Storage Lifecycle Policies In - IN clause to filter the list of objects
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - With
Describe bool - (Default:
true) Runs DESC STORAGE LIFECYCLE POLICY for each storage lifecycle policy returned by SHOW STORAGE LIFECYCLE POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
- Id string
- The provider-assigned unique ID for this managed resource.
- Storage
Lifecycle []GetPolicies Storage Lifecycle Policies Storage Lifecycle Policy - Holds the aggregated output of all storage lifecycle policy details queries.
- In
Get
Storage Lifecycle Policies In - IN clause to filter the list of objects
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - With
Describe bool - (Default:
true) Runs DESC STORAGE LIFECYCLE POLICY for each storage lifecycle policy returned by SHOW STORAGE LIFECYCLE POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
- id string
- The provider-assigned unique ID for this managed resource.
- storage_
lifecycle_ list(object)policies - Holds the aggregated output of all storage lifecycle policy details queries.
- in object
- IN clause to filter the list of objects
- like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - with_
describe bool - (Default:
true) Runs DESC STORAGE LIFECYCLE POLICY for each storage lifecycle policy returned by SHOW STORAGE LIFECYCLE POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
- id String
- The provider-assigned unique ID for this managed resource.
- storage
Lifecycle List<GetPolicies Storage Lifecycle Policies Storage Lifecycle Policy> - Holds the aggregated output of all storage lifecycle policy details queries.
- in
Get
Storage Lifecycle Policies In - IN clause to filter the list of objects
- like String
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - with
Describe Boolean - (Default:
true) Runs DESC STORAGE LIFECYCLE POLICY for each storage lifecycle policy returned by SHOW STORAGE LIFECYCLE POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
- id string
- The provider-assigned unique ID for this managed resource.
- storage
Lifecycle GetPolicies Storage Lifecycle Policies Storage Lifecycle Policy[] - Holds the aggregated output of all storage lifecycle policy details queries.
- in
Get
Storage Lifecycle Policies In - IN clause to filter the list of objects
- like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - with
Describe boolean - (Default:
true) Runs DESC STORAGE LIFECYCLE POLICY for each storage lifecycle policy returned by SHOW STORAGE LIFECYCLE POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
- id str
- The provider-assigned unique ID for this managed resource.
- storage_
lifecycle_ Sequence[Getpolicies Storage Lifecycle Policies Storage Lifecycle Policy] - Holds the aggregated output of all storage lifecycle policy details queries.
- in_
Get
Storage Lifecycle Policies In - IN clause to filter the list of objects
- like str
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - with_
describe bool - (Default:
true) Runs DESC STORAGE LIFECYCLE POLICY for each storage lifecycle policy returned by SHOW STORAGE LIFECYCLE POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
- id String
- The provider-assigned unique ID for this managed resource.
- storage
Lifecycle List<Property Map>Policies - Holds the aggregated output of all storage lifecycle policy details queries.
- in Property Map
- IN clause to filter the list of objects
- like String
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - with
Describe Boolean - (Default:
true) Runs DESC STORAGE LIFECYCLE POLICY for each storage lifecycle policy returned by SHOW STORAGE LIFECYCLE POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
Supporting Types
GetStorageLifecyclePoliciesIn
GetStorageLifecyclePoliciesStorageLifecyclePolicy
- Describe
Outputs List<GetStorage Lifecycle Policies Storage Lifecycle Policy Describe Output> - Holds the output of DESCRIBE STORAGE LIFECYCLE POLICY.
- Show
Outputs List<GetStorage Lifecycle Policies Storage Lifecycle Policy Show Output> - Holds the output of SHOW STORAGE LIFECYCLE POLICIES.
- Describe
Outputs []GetStorage Lifecycle Policies Storage Lifecycle Policy Describe Output - Holds the output of DESCRIBE STORAGE LIFECYCLE POLICY.
- Show
Outputs []GetStorage Lifecycle Policies Storage Lifecycle Policy Show Output - Holds the output of SHOW STORAGE LIFECYCLE POLICIES.
- describe_
outputs list(object) - Holds the output of DESCRIBE STORAGE LIFECYCLE POLICY.
- show_
outputs list(object) - Holds the output of SHOW STORAGE LIFECYCLE POLICIES.
- describe
Outputs List<GetStorage Lifecycle Policies Storage Lifecycle Policy Describe Output> - Holds the output of DESCRIBE STORAGE LIFECYCLE POLICY.
- show
Outputs List<GetStorage Lifecycle Policies Storage Lifecycle Policy Show Output> - Holds the output of SHOW STORAGE LIFECYCLE POLICIES.
- describe
Outputs GetStorage Lifecycle Policies Storage Lifecycle Policy Describe Output[] - Holds the output of DESCRIBE STORAGE LIFECYCLE POLICY.
- show
Outputs GetStorage Lifecycle Policies Storage Lifecycle Policy Show Output[] - Holds the output of SHOW STORAGE LIFECYCLE POLICIES.
- describe_
outputs Sequence[GetStorage Lifecycle Policies Storage Lifecycle Policy Describe Output] - Holds the output of DESCRIBE STORAGE LIFECYCLE POLICY.
- show_
outputs Sequence[GetStorage Lifecycle Policies Storage Lifecycle Policy Show Output] - Holds the output of SHOW STORAGE LIFECYCLE POLICIES.
- describe
Outputs List<Property Map> - Holds the output of DESCRIBE STORAGE LIFECYCLE POLICY.
- show
Outputs List<Property Map> - Holds the output of SHOW STORAGE LIFECYCLE POLICIES.
GetStorageLifecyclePoliciesStorageLifecyclePolicyDescribeOutput
- Archive
For intDays - Archive
Tier string - Body string
- Name string
- Return
Type string - Signatures
List<Get
Storage Lifecycle Policies Storage Lifecycle Policy Describe Output Signature>
- Archive
For intDays - Archive
Tier string - Body string
- Name string
- Return
Type string - Signatures
[]Get
Storage Lifecycle Policies Storage Lifecycle Policy Describe Output Signature
- archive_
for_ numberdays - archive_
tier string - body string
- name string
- return_
type string - signatures list(object)
- archive
For IntegerDays - archive
Tier String - body String
- name String
- return
Type String - signatures
List<Get
Storage Lifecycle Policies Storage Lifecycle Policy Describe Output Signature>
- archive
For numberDays - archive
Tier string - body string
- name string
- return
Type string - signatures
Get
Storage Lifecycle Policies Storage Lifecycle Policy Describe Output Signature[]
- archive
For NumberDays - archive
Tier String - body String
- name String
- return
Type String - signatures List<Property Map>
GetStorageLifecyclePoliciesStorageLifecyclePolicyDescribeOutputSignature
GetStorageLifecyclePoliciesStorageLifecyclePolicyShowOutput
- Comment string
- Created
On string - Database
Name string - Kind string
- Name string
- Options string
- Owner string
- Owner
Role stringType - Schema
Name string
- Comment string
- Created
On string - Database
Name string - Kind string
- Name string
- Options string
- Owner string
- Owner
Role stringType - Schema
Name string
- comment string
- created_
on string - database_
name string - kind string
- name string
- options string
- owner string
- owner_
role_ stringtype - schema_
name string
- comment String
- created
On String - database
Name String - kind String
- name String
- options String
- owner String
- owner
Role StringType - schema
Name String
- comment string
- created
On string - database
Name string - kind string
- name string
- options string
- owner string
- owner
Role stringType - schema
Name string
- comment str
- created_
on str - database_
name str - kind str
- name str
- options str
- owner str
- owner_
role_ strtype - schema_
name str
- comment String
- created
On String - database
Name String - kind String
- name String
- options String
- owner String
- owner
Role StringType - schema
Name String
Package Details
- Repository
- Snowflake pulumi/pulumi-snowflake
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
snowflakeTerraform Provider.
published on Wednesday, Jul 8, 2026 by Pulumi