1. Packages
  2. Packages
  3. Ionoscloud
  4. API Docs
  5. objectstorage
  6. BucketLifecycleConfiguration
Viewing docs for IonosCloud v0.3.0
published on Wednesday, Apr 15, 2026 by ionos-cloud
ionoscloud logo
Viewing docs for IonosCloud v0.3.0
published on Wednesday, Apr 15, 2026 by ionos-cloud

    Manages Lifecycle Configuration for Buckets on IonosCloud.

    ⚠️ Note: The Terraform provider only supports contract-owned buckets. User-owned buckets are not supported, and there are no plans to introduce support for them. As a result, user-owned buckets cannot be created, updated, deleted, read, or imported using this provider.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ionoscloud from "@ionos-cloud/sdk-pulumi";
    
    const example = new ionoscloud.objectstorage.Bucket("example", {name: "example"});
    const exampleBucketLifecycleConfiguration = new ionoscloud.objectstorage.BucketLifecycleConfiguration("example", {
        bucket: example.name,
        rules: [
            {
                id: "1",
                status: "Enabled",
                filter: [{
                    prefix: "/logs",
                }],
                expiration: [{
                    days: 90,
                }],
            },
            {
                id: "2",
                status: "Enabled",
                filter: [{
                    prefix: "/logs",
                }],
                noncurrentVersionExpiration: [{
                    noncurrentDays: 90,
                }],
            },
            {
                id: "3",
                status: "Enabled",
                filter: [{
                    prefix: "/logs",
                }],
                abortIncompleteMultipartUpload: [{
                    daysAfterInitiation: 90,
                }],
            },
        ],
    });
    
    import pulumi
    import pulumi_ionoscloud as ionoscloud
    
    example = ionoscloud.objectstorage.Bucket("example", name="example")
    example_bucket_lifecycle_configuration = ionoscloud.objectstorage.BucketLifecycleConfiguration("example",
        bucket=example.name,
        rules=[
            {
                "id": "1",
                "status": "Enabled",
                "filter": [{
                    "prefix": "/logs",
                }],
                "expiration": [{
                    "days": 90,
                }],
            },
            {
                "id": "2",
                "status": "Enabled",
                "filter": [{
                    "prefix": "/logs",
                }],
                "noncurrent_version_expiration": [{
                    "noncurrentDays": 90,
                }],
            },
            {
                "id": "3",
                "status": "Enabled",
                "filter": [{
                    "prefix": "/logs",
                }],
                "abort_incomplete_multipart_upload": [{
                    "daysAfterInitiation": 90,
                }],
            },
        ])
    
    package main
    
    import (
    	"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/objectstorage"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := objectstorage.NewBucket(ctx, "example", &objectstorage.BucketArgs{
    			Name: pulumi.String("example"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = objectstorage.NewBucketLifecycleConfiguration(ctx, "example", &objectstorage.BucketLifecycleConfigurationArgs{
    			Bucket: example.Name,
    			Rules: objectstorage.BucketLifecycleConfigurationRuleArray{
    				&objectstorage.BucketLifecycleConfigurationRuleArgs{
    					Id:     pulumi.String("1"),
    					Status: pulumi.String("Enabled"),
    					Filter: objectstorage.BucketLifecycleConfigurationRuleFilterArgs{
    						map[string]interface{}{
    							"prefix": "/logs",
    						},
    					},
    					Expiration: objectstorage.BucketLifecycleConfigurationRuleExpirationArgs{
    						map[string]interface{}{
    							"days": 90,
    						},
    					},
    				},
    				&objectstorage.BucketLifecycleConfigurationRuleArgs{
    					Id:     pulumi.String("2"),
    					Status: pulumi.String("Enabled"),
    					Filter: objectstorage.BucketLifecycleConfigurationRuleFilterArgs{
    						map[string]interface{}{
    							"prefix": "/logs",
    						},
    					},
    					NoncurrentVersionExpiration: objectstorage.BucketLifecycleConfigurationRuleNoncurrentVersionExpirationArgs{
    						map[string]interface{}{
    							"noncurrentDays": 90,
    						},
    					},
    				},
    				&objectstorage.BucketLifecycleConfigurationRuleArgs{
    					Id:     pulumi.String("3"),
    					Status: pulumi.String("Enabled"),
    					Filter: objectstorage.BucketLifecycleConfigurationRuleFilterArgs{
    						map[string]interface{}{
    							"prefix": "/logs",
    						},
    					},
    					AbortIncompleteMultipartUpload: objectstorage.BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadArgs{
    						map[string]interface{}{
    							"daysAfterInitiation": 90,
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ionoscloud = Ionoscloud.Pulumi.Ionoscloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Ionoscloud.Objectstorage.Bucket("example", new()
        {
            Name = "example",
        });
    
        var exampleBucketLifecycleConfiguration = new Ionoscloud.Objectstorage.BucketLifecycleConfiguration("example", new()
        {
            Bucket = example.Name,
            Rules = new[]
            {
                new Ionoscloud.Objectstorage.Inputs.BucketLifecycleConfigurationRuleArgs
                {
                    Id = "1",
                    Status = "Enabled",
                    Filter = new[]
                    {
                        
                        {
                            { "prefix", "/logs" },
                        },
                    },
                    Expiration = new[]
                    {
                        
                        {
                            { "days", 90 },
                        },
                    },
                },
                new Ionoscloud.Objectstorage.Inputs.BucketLifecycleConfigurationRuleArgs
                {
                    Id = "2",
                    Status = "Enabled",
                    Filter = new[]
                    {
                        
                        {
                            { "prefix", "/logs" },
                        },
                    },
                    NoncurrentVersionExpiration = new[]
                    {
                        
                        {
                            { "noncurrentDays", 90 },
                        },
                    },
                },
                new Ionoscloud.Objectstorage.Inputs.BucketLifecycleConfigurationRuleArgs
                {
                    Id = "3",
                    Status = "Enabled",
                    Filter = new[]
                    {
                        
                        {
                            { "prefix", "/logs" },
                        },
                    },
                    AbortIncompleteMultipartUpload = new[]
                    {
                        
                        {
                            { "daysAfterInitiation", 90 },
                        },
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.ionoscloud.pulumi.ionoscloud.objectstorage.Bucket;
    import com.ionoscloud.pulumi.ionoscloud.objectstorage.BucketArgs;
    import com.ionoscloud.pulumi.ionoscloud.objectstorage.BucketLifecycleConfiguration;
    import com.ionoscloud.pulumi.ionoscloud.objectstorage.BucketLifecycleConfigurationArgs;
    import com.pulumi.ionoscloud.objectstorage.inputs.BucketLifecycleConfigurationRuleArgs;
    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) {
            var example = new Bucket("example", BucketArgs.builder()
                .name("example")
                .build());
    
            var exampleBucketLifecycleConfiguration = new BucketLifecycleConfiguration("exampleBucketLifecycleConfiguration", BucketLifecycleConfigurationArgs.builder()
                .bucket(example.name())
                .rules(            
                    BucketLifecycleConfigurationRuleArgs.builder()
                        .id("1")
                        .status("Enabled")
                        .filter(BucketLifecycleConfigurationRuleFilterArgs.builder()
                            .prefix("/logs")
                            .build())
                        .expiration(BucketLifecycleConfigurationRuleExpirationArgs.builder()
                            .days(90)
                            .build())
                        .build(),
                    BucketLifecycleConfigurationRuleArgs.builder()
                        .id("2")
                        .status("Enabled")
                        .filter(BucketLifecycleConfigurationRuleFilterArgs.builder()
                            .prefix("/logs")
                            .build())
                        .noncurrentVersionExpiration(BucketLifecycleConfigurationRuleNoncurrentVersionExpirationArgs.builder()
                            .noncurrentDays(90)
                            .build())
                        .build(),
                    BucketLifecycleConfigurationRuleArgs.builder()
                        .id("3")
                        .status("Enabled")
                        .filter(BucketLifecycleConfigurationRuleFilterArgs.builder()
                            .prefix("/logs")
                            .build())
                        .abortIncompleteMultipartUpload(BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadArgs.builder()
                            .daysAfterInitiation(90)
                            .build())
                        .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: ionoscloud:objectstorage:Bucket
        properties:
          name: example
      exampleBucketLifecycleConfiguration:
        type: ionoscloud:objectstorage:BucketLifecycleConfiguration
        name: example
        properties:
          bucket: ${example.name}
          rules:
            - id: '1'
              status: Enabled
              filter:
                - prefix: /logs
              expiration:
                - days: 90
            - id: '2'
              status: Enabled
              filter:
                - prefix: /logs
              noncurrentVersionExpiration:
                - noncurrentDays: 90
            - id: '3'
              status: Enabled
              filter:
                - prefix: /logs
              abortIncompleteMultipartUpload:
                - daysAfterInitiation: 90
    
    Example coming soon!
    

    Create BucketLifecycleConfiguration Resource

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

    Constructor syntax

    new BucketLifecycleConfiguration(name: string, args: BucketLifecycleConfigurationArgs, opts?: CustomResourceOptions);
    @overload
    def BucketLifecycleConfiguration(resource_name: str,
                                     args: BucketLifecycleConfigurationArgs,
                                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def BucketLifecycleConfiguration(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     bucket: Optional[str] = None,
                                     rules: Optional[Sequence[BucketLifecycleConfigurationRuleArgs]] = None)
    func NewBucketLifecycleConfiguration(ctx *Context, name string, args BucketLifecycleConfigurationArgs, opts ...ResourceOption) (*BucketLifecycleConfiguration, error)
    public BucketLifecycleConfiguration(string name, BucketLifecycleConfigurationArgs args, CustomResourceOptions? opts = null)
    public BucketLifecycleConfiguration(String name, BucketLifecycleConfigurationArgs args)
    public BucketLifecycleConfiguration(String name, BucketLifecycleConfigurationArgs args, CustomResourceOptions options)
    
    type: ionoscloud:objectstorage:BucketLifecycleConfiguration
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "ionoscloud_objectstorage_bucketlifecycleconfiguration" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args BucketLifecycleConfigurationArgs
    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 BucketLifecycleConfigurationArgs
    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 BucketLifecycleConfigurationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BucketLifecycleConfigurationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BucketLifecycleConfigurationArgs
    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 bucketLifecycleConfigurationResource = new Ionoscloud.Objectstorage.BucketLifecycleConfiguration("bucketLifecycleConfigurationResource", new()
    {
        Bucket = "string",
        Rules = new[]
        {
            new Ionoscloud.Objectstorage.Inputs.BucketLifecycleConfigurationRuleArgs
            {
                Status = "string",
                AbortIncompleteMultipartUpload = new Ionoscloud.Objectstorage.Inputs.BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadArgs
                {
                    DaysAfterInitiation = 0,
                },
                Expiration = new Ionoscloud.Objectstorage.Inputs.BucketLifecycleConfigurationRuleExpirationArgs
                {
                    Date = "string",
                    Days = 0,
                    ExpiredObjectDeleteMarker = false,
                },
                Filter = new Ionoscloud.Objectstorage.Inputs.BucketLifecycleConfigurationRuleFilterArgs
                {
                    Prefix = "string",
                },
                Id = "string",
                NoncurrentVersionExpiration = new Ionoscloud.Objectstorage.Inputs.BucketLifecycleConfigurationRuleNoncurrentVersionExpirationArgs
                {
                    NoncurrentDays = 0,
                },
            },
        },
    });
    
    example, err := objectstorage.NewBucketLifecycleConfiguration(ctx, "bucketLifecycleConfigurationResource", &objectstorage.BucketLifecycleConfigurationArgs{
    	Bucket: pulumi.String("string"),
    	Rules: objectstorage.BucketLifecycleConfigurationRuleArray{
    		&objectstorage.BucketLifecycleConfigurationRuleArgs{
    			Status: pulumi.String("string"),
    			AbortIncompleteMultipartUpload: &objectstorage.BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadArgs{
    				DaysAfterInitiation: pulumi.Int(0),
    			},
    			Expiration: &objectstorage.BucketLifecycleConfigurationRuleExpirationArgs{
    				Date:                      pulumi.String("string"),
    				Days:                      pulumi.Int(0),
    				ExpiredObjectDeleteMarker: pulumi.Bool(false),
    			},
    			Filter: &objectstorage.BucketLifecycleConfigurationRuleFilterArgs{
    				Prefix: pulumi.String("string"),
    			},
    			Id: pulumi.String("string"),
    			NoncurrentVersionExpiration: &objectstorage.BucketLifecycleConfigurationRuleNoncurrentVersionExpirationArgs{
    				NoncurrentDays: pulumi.Int(0),
    			},
    		},
    	},
    })
    
    resource "ionoscloud_objectstorage_bucketlifecycleconfiguration" "bucketLifecycleConfigurationResource" {
      bucket = "string"
      rules {
        status = "string"
        abort_incomplete_multipart_upload = {
          days_after_initiation = 0
        }
        expiration = {
          date                         = "string"
          days                         = 0
          expired_object_delete_marker = false
        }
        filter = {
          prefix = "string"
        }
        id = "string"
        noncurrent_version_expiration = {
          noncurrent_days = 0
        }
      }
    }
    
    var bucketLifecycleConfigurationResource = new BucketLifecycleConfiguration("bucketLifecycleConfigurationResource", BucketLifecycleConfigurationArgs.builder()
        .bucket("string")
        .rules(BucketLifecycleConfigurationRuleArgs.builder()
            .status("string")
            .abortIncompleteMultipartUpload(BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadArgs.builder()
                .daysAfterInitiation(0)
                .build())
            .expiration(BucketLifecycleConfigurationRuleExpirationArgs.builder()
                .date("string")
                .days(0)
                .expiredObjectDeleteMarker(false)
                .build())
            .filter(BucketLifecycleConfigurationRuleFilterArgs.builder()
                .prefix("string")
                .build())
            .id("string")
            .noncurrentVersionExpiration(BucketLifecycleConfigurationRuleNoncurrentVersionExpirationArgs.builder()
                .noncurrentDays(0)
                .build())
            .build())
        .build());
    
    bucket_lifecycle_configuration_resource = ionoscloud.objectstorage.BucketLifecycleConfiguration("bucketLifecycleConfigurationResource",
        bucket="string",
        rules=[{
            "status": "string",
            "abort_incomplete_multipart_upload": {
                "days_after_initiation": 0,
            },
            "expiration": {
                "date": "string",
                "days": 0,
                "expired_object_delete_marker": False,
            },
            "filter": {
                "prefix": "string",
            },
            "id": "string",
            "noncurrent_version_expiration": {
                "noncurrent_days": 0,
            },
        }])
    
    const bucketLifecycleConfigurationResource = new ionoscloud.objectstorage.BucketLifecycleConfiguration("bucketLifecycleConfigurationResource", {
        bucket: "string",
        rules: [{
            status: "string",
            abortIncompleteMultipartUpload: {
                daysAfterInitiation: 0,
            },
            expiration: {
                date: "string",
                days: 0,
                expiredObjectDeleteMarker: false,
            },
            filter: {
                prefix: "string",
            },
            id: "string",
            noncurrentVersionExpiration: {
                noncurrentDays: 0,
            },
        }],
    });
    
    type: ionoscloud:objectstorage:BucketLifecycleConfiguration
    properties:
        bucket: string
        rules:
            - abortIncompleteMultipartUpload:
                daysAfterInitiation: 0
              expiration:
                date: string
                days: 0
                expiredObjectDeleteMarker: false
              filter:
                prefix: string
              id: string
              noncurrentVersionExpiration:
                noncurrentDays: 0
              status: string
    

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

    Bucket string
    [string] The name of the bucket where the object will be stored.
    Rules List<Ionoscloud.BucketLifecycleConfigurationRule>
    A list of lifecycle rules for objects in the bucket.
    Bucket string
    [string] The name of the bucket where the object will be stored.
    Rules []BucketLifecycleConfigurationRuleArgs
    A list of lifecycle rules for objects in the bucket.
    bucket string
    [string] The name of the bucket where the object will be stored.
    rules list(object)
    A list of lifecycle rules for objects in the bucket.
    bucket String
    [string] The name of the bucket where the object will be stored.
    rules List<BucketLifecycleConfigurationRule>
    A list of lifecycle rules for objects in the bucket.
    bucket string
    [string] The name of the bucket where the object will be stored.
    rules BucketLifecycleConfigurationRule[]
    A list of lifecycle rules for objects in the bucket.
    bucket str
    [string] The name of the bucket where the object will be stored.
    rules Sequence[BucketLifecycleConfigurationRuleArgs]
    A list of lifecycle rules for objects in the bucket.
    bucket String
    [string] The name of the bucket where the object will be stored.
    rules List<Property Map>
    A list of lifecycle rules for objects in the bucket.

    Outputs

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

    Get an existing BucketLifecycleConfiguration 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?: BucketLifecycleConfigurationState, opts?: CustomResourceOptions): BucketLifecycleConfiguration
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bucket: Optional[str] = None,
            rules: Optional[Sequence[BucketLifecycleConfigurationRuleArgs]] = None) -> BucketLifecycleConfiguration
    func GetBucketLifecycleConfiguration(ctx *Context, name string, id IDInput, state *BucketLifecycleConfigurationState, opts ...ResourceOption) (*BucketLifecycleConfiguration, error)
    public static BucketLifecycleConfiguration Get(string name, Input<string> id, BucketLifecycleConfigurationState? state, CustomResourceOptions? opts = null)
    public static BucketLifecycleConfiguration get(String name, Output<String> id, BucketLifecycleConfigurationState state, CustomResourceOptions options)
    resources:  _:    type: ionoscloud:objectstorage:BucketLifecycleConfiguration    get:      id: ${id}
    import {
      to = ionoscloud_objectstorage_bucketlifecycleconfiguration.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:
    Bucket string
    [string] The name of the bucket where the object will be stored.
    Rules List<Ionoscloud.BucketLifecycleConfigurationRule>
    A list of lifecycle rules for objects in the bucket.
    Bucket string
    [string] The name of the bucket where the object will be stored.
    Rules []BucketLifecycleConfigurationRuleArgs
    A list of lifecycle rules for objects in the bucket.
    bucket string
    [string] The name of the bucket where the object will be stored.
    rules list(object)
    A list of lifecycle rules for objects in the bucket.
    bucket String
    [string] The name of the bucket where the object will be stored.
    rules List<BucketLifecycleConfigurationRule>
    A list of lifecycle rules for objects in the bucket.
    bucket string
    [string] The name of the bucket where the object will be stored.
    rules BucketLifecycleConfigurationRule[]
    A list of lifecycle rules for objects in the bucket.
    bucket str
    [string] The name of the bucket where the object will be stored.
    rules Sequence[BucketLifecycleConfigurationRuleArgs]
    A list of lifecycle rules for objects in the bucket.
    bucket String
    [string] The name of the bucket where the object will be stored.
    rules List<Property Map>
    A list of lifecycle rules for objects in the bucket.

    Supporting Types

    BucketLifecycleConfigurationRule, BucketLifecycleConfigurationRuleArgs

    Status string
    Whether the rule is currently being applied. Valid values: Enabled or Disabled.
    AbortIncompleteMultipartUpload Ionoscloud.BucketLifecycleConfigurationRuleAbortIncompleteMultipartUpload
    Specifies the days since the initiation of an incomplete multipart upload that IONOS Object Storage Object Storage will wait before permanently removing all parts of the upload.
    Expiration Ionoscloud.BucketLifecycleConfigurationRuleExpiration
    A lifecycle rule for when an object expires.
    Filter Ionoscloud.BucketLifecycleConfigurationRuleFilter
    A filter.
    Id string
    Unique identifier for the rule.
    NoncurrentVersionExpiration Ionoscloud.BucketLifecycleConfigurationRuleNoncurrentVersionExpiration
    A lifecycle rule for when non-current object versions expire.
    Prefix string
    Object key prefix identifying one or more objects to which the rule applies.

    Deprecated: This field is deprecated and will be removed in a future version. It does nothing. Use 'filter' block instead.

    Status string
    Whether the rule is currently being applied. Valid values: Enabled or Disabled.
    AbortIncompleteMultipartUpload BucketLifecycleConfigurationRuleAbortIncompleteMultipartUpload
    Specifies the days since the initiation of an incomplete multipart upload that IONOS Object Storage Object Storage will wait before permanently removing all parts of the upload.
    Expiration BucketLifecycleConfigurationRuleExpiration
    A lifecycle rule for when an object expires.
    Filter BucketLifecycleConfigurationRuleFilter
    A filter.
    Id string
    Unique identifier for the rule.
    NoncurrentVersionExpiration BucketLifecycleConfigurationRuleNoncurrentVersionExpiration
    A lifecycle rule for when non-current object versions expire.
    Prefix string
    Object key prefix identifying one or more objects to which the rule applies.

    Deprecated: This field is deprecated and will be removed in a future version. It does nothing. Use 'filter' block instead.

    status string
    Whether the rule is currently being applied. Valid values: Enabled or Disabled.
    abort_incomplete_multipart_upload object
    Specifies the days since the initiation of an incomplete multipart upload that IONOS Object Storage Object Storage will wait before permanently removing all parts of the upload.
    expiration object
    A lifecycle rule for when an object expires.
    filter object
    A filter.
    id string
    Unique identifier for the rule.
    noncurrent_version_expiration object
    A lifecycle rule for when non-current object versions expire.
    prefix string
    Object key prefix identifying one or more objects to which the rule applies.

    Deprecated: This field is deprecated and will be removed in a future version. It does nothing. Use 'filter' block instead.

    status String
    Whether the rule is currently being applied. Valid values: Enabled or Disabled.
    abortIncompleteMultipartUpload BucketLifecycleConfigurationRuleAbortIncompleteMultipartUpload
    Specifies the days since the initiation of an incomplete multipart upload that IONOS Object Storage Object Storage will wait before permanently removing all parts of the upload.
    expiration BucketLifecycleConfigurationRuleExpiration
    A lifecycle rule for when an object expires.
    filter BucketLifecycleConfigurationRuleFilter
    A filter.
    id String
    Unique identifier for the rule.
    noncurrentVersionExpiration BucketLifecycleConfigurationRuleNoncurrentVersionExpiration
    A lifecycle rule for when non-current object versions expire.
    prefix String
    Object key prefix identifying one or more objects to which the rule applies.

    Deprecated: This field is deprecated and will be removed in a future version. It does nothing. Use 'filter' block instead.

    status string
    Whether the rule is currently being applied. Valid values: Enabled or Disabled.
    abortIncompleteMultipartUpload BucketLifecycleConfigurationRuleAbortIncompleteMultipartUpload
    Specifies the days since the initiation of an incomplete multipart upload that IONOS Object Storage Object Storage will wait before permanently removing all parts of the upload.
    expiration BucketLifecycleConfigurationRuleExpiration
    A lifecycle rule for when an object expires.
    filter BucketLifecycleConfigurationRuleFilter
    A filter.
    id string
    Unique identifier for the rule.
    noncurrentVersionExpiration BucketLifecycleConfigurationRuleNoncurrentVersionExpiration
    A lifecycle rule for when non-current object versions expire.
    prefix string
    Object key prefix identifying one or more objects to which the rule applies.

    Deprecated: This field is deprecated and will be removed in a future version. It does nothing. Use 'filter' block instead.

    status str
    Whether the rule is currently being applied. Valid values: Enabled or Disabled.
    abort_incomplete_multipart_upload BucketLifecycleConfigurationRuleAbortIncompleteMultipartUpload
    Specifies the days since the initiation of an incomplete multipart upload that IONOS Object Storage Object Storage will wait before permanently removing all parts of the upload.
    expiration BucketLifecycleConfigurationRuleExpiration
    A lifecycle rule for when an object expires.
    filter BucketLifecycleConfigurationRuleFilter
    A filter.
    id str
    Unique identifier for the rule.
    noncurrent_version_expiration BucketLifecycleConfigurationRuleNoncurrentVersionExpiration
    A lifecycle rule for when non-current object versions expire.
    prefix str
    Object key prefix identifying one or more objects to which the rule applies.

    Deprecated: This field is deprecated and will be removed in a future version. It does nothing. Use 'filter' block instead.

    status String
    Whether the rule is currently being applied. Valid values: Enabled or Disabled.
    abortIncompleteMultipartUpload Property Map
    Specifies the days since the initiation of an incomplete multipart upload that IONOS Object Storage Object Storage will wait before permanently removing all parts of the upload.
    expiration Property Map
    A lifecycle rule for when an object expires.
    filter Property Map
    A filter.
    id String
    Unique identifier for the rule.
    noncurrentVersionExpiration Property Map
    A lifecycle rule for when non-current object versions expire.
    prefix String
    Object key prefix identifying one or more objects to which the rule applies.

    Deprecated: This field is deprecated and will be removed in a future version. It does nothing. Use 'filter' block instead.

    BucketLifecycleConfigurationRuleAbortIncompleteMultipartUpload, BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadArgs

    DaysAfterInitiation int
    Specifies the number of days after which IONOS Object Storage Object Storage aborts an incomplete multipart upload.
    DaysAfterInitiation int
    Specifies the number of days after which IONOS Object Storage Object Storage aborts an incomplete multipart upload.
    days_after_initiation number
    Specifies the number of days after which IONOS Object Storage Object Storage aborts an incomplete multipart upload.
    daysAfterInitiation Integer
    Specifies the number of days after which IONOS Object Storage Object Storage aborts an incomplete multipart upload.
    daysAfterInitiation number
    Specifies the number of days after which IONOS Object Storage Object Storage aborts an incomplete multipart upload.
    days_after_initiation int
    Specifies the number of days after which IONOS Object Storage Object Storage aborts an incomplete multipart upload.
    daysAfterInitiation Number
    Specifies the number of days after which IONOS Object Storage Object Storage aborts an incomplete multipart upload.

    BucketLifecycleConfigurationRuleExpiration, BucketLifecycleConfigurationRuleExpirationArgs

    Date string
    Specifies the date when the object expires. Required if 'days' is not specified.
    Days int
    Specifies the number of days after object creation when the object expires. Required if 'date' is not specified.
    ExpiredObjectDeleteMarker bool
    Indicates whether IONOS Object Storage Object Storage will remove a delete marker with no noncurrent versions. If set to true, the delete marker will be expired; if set to false the policy takes no operation. This cannot be specified with Days or Date in a Lifecycle Expiration Policy.
    Date string
    Specifies the date when the object expires. Required if 'days' is not specified.
    Days int
    Specifies the number of days after object creation when the object expires. Required if 'date' is not specified.
    ExpiredObjectDeleteMarker bool
    Indicates whether IONOS Object Storage Object Storage will remove a delete marker with no noncurrent versions. If set to true, the delete marker will be expired; if set to false the policy takes no operation. This cannot be specified with Days or Date in a Lifecycle Expiration Policy.
    date string
    Specifies the date when the object expires. Required if 'days' is not specified.
    days number
    Specifies the number of days after object creation when the object expires. Required if 'date' is not specified.
    expired_object_delete_marker bool
    Indicates whether IONOS Object Storage Object Storage will remove a delete marker with no noncurrent versions. If set to true, the delete marker will be expired; if set to false the policy takes no operation. This cannot be specified with Days or Date in a Lifecycle Expiration Policy.
    date String
    Specifies the date when the object expires. Required if 'days' is not specified.
    days Integer
    Specifies the number of days after object creation when the object expires. Required if 'date' is not specified.
    expiredObjectDeleteMarker Boolean
    Indicates whether IONOS Object Storage Object Storage will remove a delete marker with no noncurrent versions. If set to true, the delete marker will be expired; if set to false the policy takes no operation. This cannot be specified with Days or Date in a Lifecycle Expiration Policy.
    date string
    Specifies the date when the object expires. Required if 'days' is not specified.
    days number
    Specifies the number of days after object creation when the object expires. Required if 'date' is not specified.
    expiredObjectDeleteMarker boolean
    Indicates whether IONOS Object Storage Object Storage will remove a delete marker with no noncurrent versions. If set to true, the delete marker will be expired; if set to false the policy takes no operation. This cannot be specified with Days or Date in a Lifecycle Expiration Policy.
    date str
    Specifies the date when the object expires. Required if 'days' is not specified.
    days int
    Specifies the number of days after object creation when the object expires. Required if 'date' is not specified.
    expired_object_delete_marker bool
    Indicates whether IONOS Object Storage Object Storage will remove a delete marker with no noncurrent versions. If set to true, the delete marker will be expired; if set to false the policy takes no operation. This cannot be specified with Days or Date in a Lifecycle Expiration Policy.
    date String
    Specifies the date when the object expires. Required if 'days' is not specified.
    days Number
    Specifies the number of days after object creation when the object expires. Required if 'date' is not specified.
    expiredObjectDeleteMarker Boolean
    Indicates whether IONOS Object Storage Object Storage will remove a delete marker with no noncurrent versions. If set to true, the delete marker will be expired; if set to false the policy takes no operation. This cannot be specified with Days or Date in a Lifecycle Expiration Policy.

    BucketLifecycleConfigurationRuleFilter, BucketLifecycleConfigurationRuleFilterArgs

    Prefix string
    Object key prefix identifying one or more objects to which the rule applies.
    Prefix string
    Object key prefix identifying one or more objects to which the rule applies.
    prefix string
    Object key prefix identifying one or more objects to which the rule applies.
    prefix String
    Object key prefix identifying one or more objects to which the rule applies.
    prefix string
    Object key prefix identifying one or more objects to which the rule applies.
    prefix str
    Object key prefix identifying one or more objects to which the rule applies.
    prefix String
    Object key prefix identifying one or more objects to which the rule applies.

    BucketLifecycleConfigurationRuleNoncurrentVersionExpiration, BucketLifecycleConfigurationRuleNoncurrentVersionExpirationArgs

    NoncurrentDays int
    Specifies the number of days an object is noncurrent before IONOS Object Storage can perform the associated action.
    NoncurrentDays int
    Specifies the number of days an object is noncurrent before IONOS Object Storage can perform the associated action.
    noncurrent_days number
    Specifies the number of days an object is noncurrent before IONOS Object Storage can perform the associated action.
    noncurrentDays Integer
    Specifies the number of days an object is noncurrent before IONOS Object Storage can perform the associated action.
    noncurrentDays number
    Specifies the number of days an object is noncurrent before IONOS Object Storage can perform the associated action.
    noncurrent_days int
    Specifies the number of days an object is noncurrent before IONOS Object Storage can perform the associated action.
    noncurrentDays Number
    Specifies the number of days an object is noncurrent before IONOS Object Storage can perform the associated action.

    Import

    IONOS Object Storage Bucket lifecycle configuration can be imported using the bucket name.

    $ pulumi import ionoscloud:objectstorage/bucketLifecycleConfiguration:BucketLifecycleConfiguration example example
    

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

    Package Details

    Repository
    ionoscloud ionos-cloud/pulumi-ionoscloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ionoscloud Terraform Provider.
    ionoscloud logo
    Viewing docs for IonosCloud v0.3.0
    published on Wednesday, Apr 15, 2026 by ionos-cloud
      Try Pulumi Cloud free. Your team will thank you.