published on Wednesday, Apr 15, 2026 by ionos-cloud
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.
Bucket Lifecycle Configuration Rule> - 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
[]Bucket
Lifecycle Configuration Rule Args - 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<Bucket
Lifecycle Configuration Rule> - 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
Bucket
Lifecycle Configuration Rule[] - 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[Bucket
Lifecycle Configuration Rule Args] - 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) -> BucketLifecycleConfigurationfunc 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.
- Bucket string
- [string] The name of the bucket where the object will be stored.
- Rules
List<Ionoscloud.
Bucket Lifecycle Configuration Rule> - 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
[]Bucket
Lifecycle Configuration Rule Args - 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<Bucket
Lifecycle Configuration Rule> - 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
Bucket
Lifecycle Configuration Rule[] - 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[Bucket
Lifecycle Configuration Rule Args] - 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.
- Abort
Incomplete Ionoscloud.Multipart Upload Bucket Lifecycle Configuration Rule Abort Incomplete Multipart Upload - 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.
Bucket Lifecycle Configuration Rule Expiration - A lifecycle rule for when an object expires.
- Filter
Ionoscloud.
Bucket Lifecycle Configuration Rule Filter - A filter.
- Id string
- Unique identifier for the rule.
- Noncurrent
Version Ionoscloud.Expiration Bucket Lifecycle Configuration Rule Noncurrent Version Expiration - 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.
- Status string
- Whether the rule is currently being applied. Valid values: Enabled or Disabled.
- Abort
Incomplete BucketMultipart Upload Lifecycle Configuration Rule Abort Incomplete Multipart Upload - 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
Bucket
Lifecycle Configuration Rule Expiration - A lifecycle rule for when an object expires.
- Filter
Bucket
Lifecycle Configuration Rule Filter - A filter.
- Id string
- Unique identifier for the rule.
- Noncurrent
Version BucketExpiration Lifecycle Configuration Rule Noncurrent Version Expiration - 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.
- status string
- Whether the rule is currently being applied. Valid values: Enabled or Disabled.
- abort_
incomplete_ objectmultipart_ upload - 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_ objectexpiration - 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.
- status String
- Whether the rule is currently being applied. Valid values: Enabled or Disabled.
- abort
Incomplete BucketMultipart Upload Lifecycle Configuration Rule Abort Incomplete Multipart Upload - 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
Bucket
Lifecycle Configuration Rule Expiration - A lifecycle rule for when an object expires.
- filter
Bucket
Lifecycle Configuration Rule Filter - A filter.
- id String
- Unique identifier for the rule.
- noncurrent
Version BucketExpiration Lifecycle Configuration Rule Noncurrent Version Expiration - 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.
- status string
- Whether the rule is currently being applied. Valid values: Enabled or Disabled.
- abort
Incomplete BucketMultipart Upload Lifecycle Configuration Rule Abort Incomplete Multipart Upload - 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
Bucket
Lifecycle Configuration Rule Expiration - A lifecycle rule for when an object expires.
- filter
Bucket
Lifecycle Configuration Rule Filter - A filter.
- id string
- Unique identifier for the rule.
- noncurrent
Version BucketExpiration Lifecycle Configuration Rule Noncurrent Version Expiration - 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.
- status str
- Whether the rule is currently being applied. Valid values: Enabled or Disabled.
- abort_
incomplete_ Bucketmultipart_ upload Lifecycle Configuration Rule Abort Incomplete Multipart Upload - 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
Bucket
Lifecycle Configuration Rule Expiration - A lifecycle rule for when an object expires.
- filter
Bucket
Lifecycle Configuration Rule Filter - A filter.
- id str
- Unique identifier for the rule.
- noncurrent_
version_ Bucketexpiration Lifecycle Configuration Rule Noncurrent Version Expiration - 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.
- status String
- Whether the rule is currently being applied. Valid values: Enabled or Disabled.
- abort
Incomplete Property MapMultipart Upload - 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.
- noncurrent
Version Property MapExpiration - 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.
BucketLifecycleConfigurationRuleAbortIncompleteMultipartUpload, BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadArgs
- Days
After intInitiation - Specifies the number of days after which IONOS Object Storage Object Storage aborts an incomplete multipart upload.
- Days
After intInitiation - Specifies the number of days after which IONOS Object Storage Object Storage aborts an incomplete multipart upload.
- days_
after_ numberinitiation - Specifies the number of days after which IONOS Object Storage Object Storage aborts an incomplete multipart upload.
- days
After IntegerInitiation - Specifies the number of days after which IONOS Object Storage Object Storage aborts an incomplete multipart upload.
- days
After numberInitiation - Specifies the number of days after which IONOS Object Storage Object Storage aborts an incomplete multipart upload.
- days_
after_ intinitiation - Specifies the number of days after which IONOS Object Storage Object Storage aborts an incomplete multipart upload.
- days
After NumberInitiation - 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.
- Expired
Object boolDelete Marker - 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.
- Expired
Object boolDelete Marker - 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_ booldelete_ marker - 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.
- expired
Object BooleanDelete Marker - 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 booleanDelete Marker - 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_ booldelete_ marker - 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 BooleanDelete Marker - 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
- Noncurrent
Days int - 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.
- noncurrent_
days number - Specifies the number of days an object is noncurrent before IONOS Object Storage can perform the associated action.
- noncurrent
Days Integer - 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.
- noncurrent_
days 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.
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
ionoscloudTerraform Provider.
published on Wednesday, Apr 15, 2026 by ionos-cloud
