1. Packages
  2. Packages
  3. Powerstore Provider
  4. API Docs
  5. RecycleBinConfig
Viewing docs for powerstore 1.3.0
published on Wednesday, Jun 24, 2026 by dell
Viewing docs for powerstore 1.3.0
published on Wednesday, Jun 24, 2026 by dell

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as powerstore from "@pulumi/powerstore";
    
    //Copyright (c) 2026 Dell Inc., or its subsidiaries. All Rights Reserved.
    //
    //Licensed under the Mozilla Public License Version 2.0 (the "License");
    //you may not use this file except in compliance with the License.
    //You may obtain a copy of the License at
    //
    //    http://mozilla.org/MPL/2.0/
    //
    //
    //Unless required by applicable law or agreed to in writing, software
    //distributed under the License is distributed on an "AS IS" BASIS,
    //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    //See the License for the specific language governing permissions and
    //limitations under the License.
    // Commands to run this tf file : terraform init && pulumi preview && pulumi up
    // This resource manages the recycle bin configuration and item recovery/deletion
    // It has three modes of operation:
    // 1. Config mode: Set expiration_duration (0-30 days)
    // 2. Item action mode: Recover or delete items by resource_id or resource_name
    // 3. Empty mode: Empty the entire recycle bin
    // Example: Set recycle bin expiration duration to 7 days
    const example = new powerstore.RecycleBinConfig("example", {expirationDuration: 7});
    
    import pulumi
    import pulumi_powerstore as powerstore
    
    #Copyright (c) 2026 Dell Inc., or its subsidiaries. All Rights Reserved.
    #
    #Licensed under the Mozilla Public License Version 2.0 (the "License");
    #you may not use this file except in compliance with the License.
    #You may obtain a copy of the License at
    #
    #    http://mozilla.org/MPL/2.0/
    #
    #
    #Unless required by applicable law or agreed to in writing, software
    #distributed under the License is distributed on an "AS IS" BASIS,
    #WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    #See the License for the specific language governing permissions and
    #limitations under the License.
    # Commands to run this tf file : terraform init && pulumi preview && pulumi up
    # This resource manages the recycle bin configuration and item recovery/deletion
    # It has three modes of operation:
    # 1. Config mode: Set expiration_duration (0-30 days)
    # 2. Item action mode: Recover or delete items by resource_id or resource_name
    # 3. Empty mode: Empty the entire recycle bin
    # Example: Set recycle bin expiration duration to 7 days
    example = powerstore.RecycleBinConfig("example", expiration_duration=7)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/powerstore/powerstore"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Copyright (c) 2026 Dell Inc., or its subsidiaries. All Rights Reserved.
    		//
    		// Licensed under the Mozilla Public License Version 2.0 (the "License");
    		// you may not use this file except in compliance with the License.
    		// You may obtain a copy of the License at
    		//
    		//	http://mozilla.org/MPL/2.0/
    		//
    		// Unless required by applicable law or agreed to in writing, software
    		// distributed under the License is distributed on an "AS IS" BASIS,
    		// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    		// See the License for the specific language governing permissions and
    		// limitations under the License.
    		// Commands to run this tf file : terraform init && pulumi preview && pulumi up
    		// This resource manages the recycle bin configuration and item recovery/deletion
    		// It has three modes of operation:
    		// 1. Config mode: Set expiration_duration (0-30 days)
    		// 2. Item action mode: Recover or delete items by resource_id or resource_name
    		// 3. Empty mode: Empty the entire recycle bin
    		// Example: Set recycle bin expiration duration to 7 days
    		_, err := powerstore.NewRecycleBinConfig(ctx, "example", &powerstore.RecycleBinConfigArgs{
    			ExpirationDuration: pulumi.Float64(7),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Powerstore = Pulumi.Powerstore;
    
    return await Deployment.RunAsync(() => 
    {
        //Copyright (c) 2026 Dell Inc., or its subsidiaries. All Rights Reserved.
        //
        //Licensed under the Mozilla Public License Version 2.0 (the "License");
        //you may not use this file except in compliance with the License.
        //You may obtain a copy of the License at
        //
        //    http://mozilla.org/MPL/2.0/
        //
        //
        //Unless required by applicable law or agreed to in writing, software
        //distributed under the License is distributed on an "AS IS" BASIS,
        //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
        //See the License for the specific language governing permissions and
        //limitations under the License.
        // Commands to run this tf file : terraform init && pulumi preview && pulumi up
        // This resource manages the recycle bin configuration and item recovery/deletion
        // It has three modes of operation:
        // 1. Config mode: Set expiration_duration (0-30 days)
        // 2. Item action mode: Recover or delete items by resource_id or resource_name
        // 3. Empty mode: Empty the entire recycle bin
        // Example: Set recycle bin expiration duration to 7 days
        var example = new Powerstore.RecycleBinConfig("example", new()
        {
            ExpirationDuration = 7,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.powerstore.RecycleBinConfig;
    import com.pulumi.powerstore.RecycleBinConfigArgs;
    import java.util.List;
    import java.util.ArrayList;
    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) {
            //Copyright (c) 2026 Dell Inc., or its subsidiaries. All Rights Reserved.
            //
            //Licensed under the Mozilla Public License Version 2.0 (the "License");
            //you may not use this file except in compliance with the License.
            //You may obtain a copy of the License at
            //
            //    http://mozilla.org/MPL/2.0/
            //
            //
            //Unless required by applicable law or agreed to in writing, software
            //distributed under the License is distributed on an "AS IS" BASIS,
            //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            //See the License for the specific language governing permissions and
            //limitations under the License.
            // Commands to run this tf file : terraform init && pulumi preview && pulumi up
            // This resource manages the recycle bin configuration and item recovery/deletion
            // It has three modes of operation:
            // 1. Config mode: Set expiration_duration (0-30 days)
            // 2. Item action mode: Recover or delete items by resource_id or resource_name
            // 3. Empty mode: Empty the entire recycle bin
            // Example: Set recycle bin expiration duration to 7 days
            var example = new RecycleBinConfig("example", RecycleBinConfigArgs.builder()
                .expirationDuration(7.0)
                .build());
    
        }
    }
    
    resources:
      # /*
      # Copyright (c) 2026 Dell Inc., or its subsidiaries. All Rights Reserved.
    
      # Licensed under the Mozilla Public License Version 2.0 (the "License");
      # you may not use this file except in compliance with the License.
      # You may obtain a copy of the License at
    
      #     http://mozilla.org/MPL/2.0/
    
    
      # Unless required by applicable law or agreed to in writing, software
      # distributed under the License is distributed on an "AS IS" BASIS,
      # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      # See the License for the specific language governing permissions and
      # limitations under the License.
      # */
    
    
      # Commands to run this tf file : terraform init && pulumi preview && pulumi up
      # This resource manages the recycle bin configuration and item recovery/deletion
      # It has three modes of operation:
      # 1. Config mode: Set expiration_duration (0-30 days)
      # 2. Item action mode: Recover or delete items by resource_id or resource_name
      # 3. Empty mode: Empty the entire recycle bin
    
      # Example: Set recycle bin expiration duration to 7 days
      example:
        type: powerstore:RecycleBinConfig
        properties:
          expirationDuration: 7
    
    Example coming soon!
    

    Create RecycleBinConfig Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new RecycleBinConfig(name: string, args?: RecycleBinConfigArgs, opts?: CustomResourceOptions);
    @overload
    def RecycleBinConfig(resource_name: str,
                         args: Optional[RecycleBinConfigArgs] = None,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def RecycleBinConfig(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         action: Optional[str] = None,
                         empty_recycle_bin: Optional[bool] = None,
                         expiration_duration: Optional[float] = None,
                         resource_id: Optional[str] = None,
                         resource_name_: Optional[str] = None,
                         resource_type: Optional[str] = None)
    func NewRecycleBinConfig(ctx *Context, name string, args *RecycleBinConfigArgs, opts ...ResourceOption) (*RecycleBinConfig, error)
    public RecycleBinConfig(string name, RecycleBinConfigArgs? args = null, CustomResourceOptions? opts = null)
    public RecycleBinConfig(String name, RecycleBinConfigArgs args)
    public RecycleBinConfig(String name, RecycleBinConfigArgs args, CustomResourceOptions options)
    
    type: powerstore:RecycleBinConfig
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "powerstore_recyclebinconfig" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args RecycleBinConfigArgs
    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 RecycleBinConfigArgs
    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 RecycleBinConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RecycleBinConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RecycleBinConfigArgs
    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 recycleBinConfigResource = new Powerstore.RecycleBinConfig("recycleBinConfigResource", new()
    {
        Action = "string",
        EmptyRecycleBin = false,
        ExpirationDuration = 0,
        ResourceId = "string",
        ResourceName = "string",
        ResourceType = "string",
    });
    
    example, err := powerstore.NewRecycleBinConfig(ctx, "recycleBinConfigResource", &powerstore.RecycleBinConfigArgs{
    	Action:             pulumi.String("string"),
    	EmptyRecycleBin:    pulumi.Bool(false),
    	ExpirationDuration: pulumi.Float64(0),
    	ResourceId:         pulumi.String("string"),
    	ResourceName:       pulumi.String("string"),
    	ResourceType:       pulumi.String("string"),
    })
    
    resource "powerstore_recyclebinconfig" "recycleBinConfigResource" {
      action              = "string"
      empty_recycle_bin   = false
      expiration_duration = 0
      resource_id         = "string"
      resource_name       = "string"
      resource_type       = "string"
    }
    
    var recycleBinConfigResource = new RecycleBinConfig("recycleBinConfigResource", RecycleBinConfigArgs.builder()
        .action("string")
        .emptyRecycleBin(false)
        .expirationDuration(0.0)
        .resourceId("string")
        .resourceName("string")
        .resourceType("string")
        .build());
    
    recycle_bin_config_resource = powerstore.RecycleBinConfig("recycleBinConfigResource",
        action="string",
        empty_recycle_bin=False,
        expiration_duration=float(0),
        resource_id="string",
        resource_name_="string",
        resource_type="string")
    
    const recycleBinConfigResource = new powerstore.RecycleBinConfig("recycleBinConfigResource", {
        action: "string",
        emptyRecycleBin: false,
        expirationDuration: 0,
        resourceId: "string",
        resourceName: "string",
        resourceType: "string",
    });
    
    type: powerstore:RecycleBinConfig
    properties:
        action: string
        emptyRecycleBin: false
        expirationDuration: 0
        resourceId: string
        resourceName: string
        resourceType: string
    

    RecycleBinConfig 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 RecycleBinConfig resource accepts the following input properties:

    Action string
    The action to perform on the recycle bin item. Valid values: recover, delete.
    EmptyRecycleBin bool
    When set to true, empties the entire recycle bin by permanently deleting all items.
    ExpirationDuration double
    Duration in days for items to remain in the recycle bin before automatic purging. Valid range is 0 to 30.
    ResourceId string
    The unique identifier of the recycle bin item to recover or delete.
    ResourceName string
    The name of the deleted resource in the recycle bin.
    ResourceType string
    The type of resource to filter when using resource_name. Valid values: volume, volume_group.
    Action string
    The action to perform on the recycle bin item. Valid values: recover, delete.
    EmptyRecycleBin bool
    When set to true, empties the entire recycle bin by permanently deleting all items.
    ExpirationDuration float64
    Duration in days for items to remain in the recycle bin before automatic purging. Valid range is 0 to 30.
    ResourceId string
    The unique identifier of the recycle bin item to recover or delete.
    ResourceName string
    The name of the deleted resource in the recycle bin.
    ResourceType string
    The type of resource to filter when using resource_name. Valid values: volume, volume_group.
    action string
    The action to perform on the recycle bin item. Valid values: recover, delete.
    empty_recycle_bin bool
    When set to true, empties the entire recycle bin by permanently deleting all items.
    expiration_duration number
    Duration in days for items to remain in the recycle bin before automatic purging. Valid range is 0 to 30.
    resource_id string
    The unique identifier of the recycle bin item to recover or delete.
    resource_name string
    The name of the deleted resource in the recycle bin.
    resource_type string
    The type of resource to filter when using resource_name. Valid values: volume, volume_group.
    action String
    The action to perform on the recycle bin item. Valid values: recover, delete.
    emptyRecycleBin Boolean
    When set to true, empties the entire recycle bin by permanently deleting all items.
    expirationDuration Double
    Duration in days for items to remain in the recycle bin before automatic purging. Valid range is 0 to 30.
    resourceId String
    The unique identifier of the recycle bin item to recover or delete.
    resourceName String
    The name of the deleted resource in the recycle bin.
    resourceType String
    The type of resource to filter when using resource_name. Valid values: volume, volume_group.
    action string
    The action to perform on the recycle bin item. Valid values: recover, delete.
    emptyRecycleBin boolean
    When set to true, empties the entire recycle bin by permanently deleting all items.
    expirationDuration number
    Duration in days for items to remain in the recycle bin before automatic purging. Valid range is 0 to 30.
    resourceId string
    The unique identifier of the recycle bin item to recover or delete.
    resourceName string
    The name of the deleted resource in the recycle bin.
    resourceType string
    The type of resource to filter when using resource_name. Valid values: volume, volume_group.
    action str
    The action to perform on the recycle bin item. Valid values: recover, delete.
    empty_recycle_bin bool
    When set to true, empties the entire recycle bin by permanently deleting all items.
    expiration_duration float
    Duration in days for items to remain in the recycle bin before automatic purging. Valid range is 0 to 30.
    resource_id str
    The unique identifier of the recycle bin item to recover or delete.
    resource_name str
    The name of the deleted resource in the recycle bin.
    resource_type str
    The type of resource to filter when using resource_name. Valid values: volume, volume_group.
    action String
    The action to perform on the recycle bin item. Valid values: recover, delete.
    emptyRecycleBin Boolean
    When set to true, empties the entire recycle bin by permanently deleting all items.
    expirationDuration Number
    Duration in days for items to remain in the recycle bin before automatic purging. Valid range is 0 to 30.
    resourceId String
    The unique identifier of the recycle bin item to recover or delete.
    resourceName String
    The name of the deleted resource in the recycle bin.
    resourceType String
    The type of resource to filter when using resource_name. Valid values: volume, volume_group.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the RecycleBinConfig 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 RecycleBinConfig Resource

    Get an existing RecycleBinConfig 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?: RecycleBinConfigState, opts?: CustomResourceOptions): RecycleBinConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[str] = None,
            empty_recycle_bin: Optional[bool] = None,
            expiration_duration: Optional[float] = None,
            resource_id: Optional[str] = None,
            resource_name: Optional[str] = None,
            resource_type: Optional[str] = None) -> RecycleBinConfig
    func GetRecycleBinConfig(ctx *Context, name string, id IDInput, state *RecycleBinConfigState, opts ...ResourceOption) (*RecycleBinConfig, error)
    public static RecycleBinConfig Get(string name, Input<string> id, RecycleBinConfigState? state, CustomResourceOptions? opts = null)
    public static RecycleBinConfig get(String name, Output<String> id, RecycleBinConfigState state, CustomResourceOptions options)
    resources:  _:    type: powerstore:RecycleBinConfig    get:      id: ${id}
    import {
      to = powerstore_recyclebinconfig.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.
    The following state arguments are supported:
    Action string
    The action to perform on the recycle bin item. Valid values: recover, delete.
    EmptyRecycleBin bool
    When set to true, empties the entire recycle bin by permanently deleting all items.
    ExpirationDuration double
    Duration in days for items to remain in the recycle bin before automatic purging. Valid range is 0 to 30.
    ResourceId string
    The unique identifier of the recycle bin item to recover or delete.
    ResourceName string
    The name of the deleted resource in the recycle bin.
    ResourceType string
    The type of resource to filter when using resource_name. Valid values: volume, volume_group.
    Action string
    The action to perform on the recycle bin item. Valid values: recover, delete.
    EmptyRecycleBin bool
    When set to true, empties the entire recycle bin by permanently deleting all items.
    ExpirationDuration float64
    Duration in days for items to remain in the recycle bin before automatic purging. Valid range is 0 to 30.
    ResourceId string
    The unique identifier of the recycle bin item to recover or delete.
    ResourceName string
    The name of the deleted resource in the recycle bin.
    ResourceType string
    The type of resource to filter when using resource_name. Valid values: volume, volume_group.
    action string
    The action to perform on the recycle bin item. Valid values: recover, delete.
    empty_recycle_bin bool
    When set to true, empties the entire recycle bin by permanently deleting all items.
    expiration_duration number
    Duration in days for items to remain in the recycle bin before automatic purging. Valid range is 0 to 30.
    resource_id string
    The unique identifier of the recycle bin item to recover or delete.
    resource_name string
    The name of the deleted resource in the recycle bin.
    resource_type string
    The type of resource to filter when using resource_name. Valid values: volume, volume_group.
    action String
    The action to perform on the recycle bin item. Valid values: recover, delete.
    emptyRecycleBin Boolean
    When set to true, empties the entire recycle bin by permanently deleting all items.
    expirationDuration Double
    Duration in days for items to remain in the recycle bin before automatic purging. Valid range is 0 to 30.
    resourceId String
    The unique identifier of the recycle bin item to recover or delete.
    resourceName String
    The name of the deleted resource in the recycle bin.
    resourceType String
    The type of resource to filter when using resource_name. Valid values: volume, volume_group.
    action string
    The action to perform on the recycle bin item. Valid values: recover, delete.
    emptyRecycleBin boolean
    When set to true, empties the entire recycle bin by permanently deleting all items.
    expirationDuration number
    Duration in days for items to remain in the recycle bin before automatic purging. Valid range is 0 to 30.
    resourceId string
    The unique identifier of the recycle bin item to recover or delete.
    resourceName string
    The name of the deleted resource in the recycle bin.
    resourceType string
    The type of resource to filter when using resource_name. Valid values: volume, volume_group.
    action str
    The action to perform on the recycle bin item. Valid values: recover, delete.
    empty_recycle_bin bool
    When set to true, empties the entire recycle bin by permanently deleting all items.
    expiration_duration float
    Duration in days for items to remain in the recycle bin before automatic purging. Valid range is 0 to 30.
    resource_id str
    The unique identifier of the recycle bin item to recover or delete.
    resource_name str
    The name of the deleted resource in the recycle bin.
    resource_type str
    The type of resource to filter when using resource_name. Valid values: volume, volume_group.
    action String
    The action to perform on the recycle bin item. Valid values: recover, delete.
    emptyRecycleBin Boolean
    When set to true, empties the entire recycle bin by permanently deleting all items.
    expirationDuration Number
    Duration in days for items to remain in the recycle bin before automatic purging. Valid range is 0 to 30.
    resourceId String
    The unique identifier of the recycle bin item to recover or delete.
    resourceName String
    The name of the deleted resource in the recycle bin.
    resourceType String
    The type of resource to filter when using resource_name. Valid values: volume, volume_group.

    Import

    #Copyright (c) 2026 Dell Inc., or its subsidiaries. All Rights Reserved.

    #Licensed under the Mozilla Public License Version 2.0 (the “License”);

    #you may not use this file except in compliance with the License.

    #You may obtain a copy of the License at

    http://mozilla.org/MPL/2.0/

    #Unless required by applicable law or agreed to in writing, software

    #distributed under the License is distributed on an “AS IS” BASIS,

    #WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

    #See the License for the specific language governing permissions and

    #limitations under the License.

    Below are the steps to import recycle bin config :

    Step 1 - To import recycle bin config, use id “0” (the config ID is always 0)

    Step 2 - Add empty resource block in tf file

    eg.

    resource “powerstore_recycle_bin_config” “resource_block_name” {

    expiration_duration = 7

    }

    $ pulumi import powerstore:index/recycleBinConfig:RecycleBinConfig Step 3 - Execute the command: "powerstore_recycle_bin_config.resource_block_name" "0"
    

    Step 4 - After successful execution of the command, check the state file

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    powerstore dell/terraform-provider-powerstore
    License
    Notes
    This Pulumi package is based on the powerstore Terraform Provider.
    Viewing docs for powerstore 1.3.0
    published on Wednesday, Jun 24, 2026 by dell

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial