AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.10.0 published on Monday, Jul 11, 2022 by Pulumi

BucketLifecycleConfigurationV2

Import

S3 bucket lifecycle configuration can be imported in one of two ways. If the owner (account ID) of the source bucket is the same account used to configure the Terraform AWS Provider, the S3 bucket lifecycle configuration resource should be imported using the bucket e.g.,

 $ pulumi import aws:s3/bucketLifecycleConfigurationV2:BucketLifecycleConfigurationV2 example bucket-name

If the owner (account ID) of the source bucket differs from the account used to configure the Terraform AWS Provider, the S3 bucket lifecycle configuration resource should be imported using the bucket and expected_bucket_owner separated by a comma (,) e.g.,

 $ pulumi import aws:s3/bucketLifecycleConfigurationV2:BucketLifecycleConfigurationV2 example bucket-name,123456789012

Create a BucketLifecycleConfigurationV2 Resource

new BucketLifecycleConfigurationV2(name: string, args: BucketLifecycleConfigurationV2Args, opts?: CustomResourceOptions);
@overload
def BucketLifecycleConfigurationV2(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   bucket: Optional[str] = None,
                                   expected_bucket_owner: Optional[str] = None,
                                   rules: Optional[Sequence[BucketLifecycleConfigurationV2RuleArgs]] = None)
@overload
def BucketLifecycleConfigurationV2(resource_name: str,
                                   args: BucketLifecycleConfigurationV2Args,
                                   opts: Optional[ResourceOptions] = None)
func NewBucketLifecycleConfigurationV2(ctx *Context, name string, args BucketLifecycleConfigurationV2Args, opts ...ResourceOption) (*BucketLifecycleConfigurationV2, error)
public BucketLifecycleConfigurationV2(string name, BucketLifecycleConfigurationV2Args args, CustomResourceOptions? opts = null)
public BucketLifecycleConfigurationV2(String name, BucketLifecycleConfigurationV2Args args)
public BucketLifecycleConfigurationV2(String name, BucketLifecycleConfigurationV2Args args, CustomResourceOptions options)
type: aws:s3:BucketLifecycleConfigurationV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args BucketLifecycleConfigurationV2Args
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 BucketLifecycleConfigurationV2Args
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 BucketLifecycleConfigurationV2Args
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args BucketLifecycleConfigurationV2Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args BucketLifecycleConfigurationV2Args
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

BucketLifecycleConfigurationV2 Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The BucketLifecycleConfigurationV2 resource accepts the following input properties:

Bucket string

The name of the source S3 bucket you want Amazon S3 to monitor.

Rules List<BucketLifecycleConfigurationV2RuleArgs>

List of configuration blocks describing the rules managing the replication documented below.

ExpectedBucketOwner string

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

Bucket string

The name of the source S3 bucket you want Amazon S3 to monitor.

Rules []BucketLifecycleConfigurationV2RuleArgs

List of configuration blocks describing the rules managing the replication documented below.

ExpectedBucketOwner string

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

bucket String

The name of the source S3 bucket you want Amazon S3 to monitor.

rules List<BucketLifecycleConfigurationV2RuleArgs>

List of configuration blocks describing the rules managing the replication documented below.

expectedBucketOwner String

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

bucket string

The name of the source S3 bucket you want Amazon S3 to monitor.

rules BucketLifecycleConfigurationV2RuleArgs[]

List of configuration blocks describing the rules managing the replication documented below.

expectedBucketOwner string

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

bucket str

The name of the source S3 bucket you want Amazon S3 to monitor.

rules Sequence[BucketLifecycleConfigurationV2RuleArgs]

List of configuration blocks describing the rules managing the replication documented below.

expected_bucket_owner str

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

bucket String

The name of the source S3 bucket you want Amazon S3 to monitor.

rules List<Property Map>

List of configuration blocks describing the rules managing the replication documented below.

expectedBucketOwner String

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

Outputs

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

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up an Existing BucketLifecycleConfigurationV2 Resource

Get an existing BucketLifecycleConfigurationV2 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?: BucketLifecycleConfigurationV2State, opts?: CustomResourceOptions): BucketLifecycleConfigurationV2
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        bucket: Optional[str] = None,
        expected_bucket_owner: Optional[str] = None,
        rules: Optional[Sequence[BucketLifecycleConfigurationV2RuleArgs]] = None) -> BucketLifecycleConfigurationV2
func GetBucketLifecycleConfigurationV2(ctx *Context, name string, id IDInput, state *BucketLifecycleConfigurationV2State, opts ...ResourceOption) (*BucketLifecycleConfigurationV2, error)
public static BucketLifecycleConfigurationV2 Get(string name, Input<string> id, BucketLifecycleConfigurationV2State? state, CustomResourceOptions? opts = null)
public static BucketLifecycleConfigurationV2 get(String name, Output<String> id, BucketLifecycleConfigurationV2State state, CustomResourceOptions options)
Resource lookup is not supported in YAML
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

The name of the source S3 bucket you want Amazon S3 to monitor.

ExpectedBucketOwner string

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

Rules List<BucketLifecycleConfigurationV2RuleArgs>

List of configuration blocks describing the rules managing the replication documented below.

Bucket string

The name of the source S3 bucket you want Amazon S3 to monitor.

ExpectedBucketOwner string

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

Rules []BucketLifecycleConfigurationV2RuleArgs

List of configuration blocks describing the rules managing the replication documented below.

bucket String

The name of the source S3 bucket you want Amazon S3 to monitor.

expectedBucketOwner String

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

rules List<BucketLifecycleConfigurationV2RuleArgs>

List of configuration blocks describing the rules managing the replication documented below.

bucket string

The name of the source S3 bucket you want Amazon S3 to monitor.

expectedBucketOwner string

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

rules BucketLifecycleConfigurationV2RuleArgs[]

List of configuration blocks describing the rules managing the replication documented below.

bucket str

The name of the source S3 bucket you want Amazon S3 to monitor.

expected_bucket_owner str

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

rules Sequence[BucketLifecycleConfigurationV2RuleArgs]

List of configuration blocks describing the rules managing the replication documented below.

bucket String

The name of the source S3 bucket you want Amazon S3 to monitor.

expectedBucketOwner String

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

rules List<Property Map>

List of configuration blocks describing the rules managing the replication documented below.

Supporting Types

BucketLifecycleConfigurationV2Rule

Id string

Unique identifier for the rule. The value cannot be longer than 255 characters.

Status string

Whether the rule is currently being applied. Valid values: Enabled or Disabled.

AbortIncompleteMultipartUpload BucketLifecycleConfigurationV2RuleAbortIncompleteMultipartUpload

Configuration block that specifies the days since the initiation of an incomplete multipart upload that Amazon S3 will wait before permanently removing all parts of the upload documented below.

Expiration BucketLifecycleConfigurationV2RuleExpiration

Configuration block that specifies the expiration for the lifecycle of the object in the form of date, days and, whether the object has a delete marker documented below.

Filter BucketLifecycleConfigurationV2RuleFilter

Configuration block used to identify objects that a Lifecycle Rule applies to documented below. If not specified, the rule will default to using prefix.

NoncurrentVersionExpiration BucketLifecycleConfigurationV2RuleNoncurrentVersionExpiration

Configuration block that specifies when noncurrent object versions expire documented below.

NoncurrentVersionTransitions List<BucketLifecycleConfigurationV2RuleNoncurrentVersionTransition>

Set of configuration blocks that specify the transition rule for the lifecycle rule that describes when noncurrent objects transition to a specific storage class documented below.

Prefix string

DEPRECATED Use filter instead. This has been deprecated by Amazon S3. Prefix identifying one or more objects to which the rule applies. Defaults to an empty string ("") if filter is not specified.

Deprecated:

Use filter instead

Transitions List<BucketLifecycleConfigurationV2RuleTransition>

Set of configuration blocks that specify when an Amazon S3 object transitions to a specified storage class documented below.

Id string

Unique identifier for the rule. The value cannot be longer than 255 characters.

Status string

Whether the rule is currently being applied. Valid values: Enabled or Disabled.

AbortIncompleteMultipartUpload BucketLifecycleConfigurationV2RuleAbortIncompleteMultipartUpload

Configuration block that specifies the days since the initiation of an incomplete multipart upload that Amazon S3 will wait before permanently removing all parts of the upload documented below.

Expiration BucketLifecycleConfigurationV2RuleExpiration

Configuration block that specifies the expiration for the lifecycle of the object in the form of date, days and, whether the object has a delete marker documented below.

Filter BucketLifecycleConfigurationV2RuleFilter

Configuration block used to identify objects that a Lifecycle Rule applies to documented below. If not specified, the rule will default to using prefix.

NoncurrentVersionExpiration BucketLifecycleConfigurationV2RuleNoncurrentVersionExpiration

Configuration block that specifies when noncurrent object versions expire documented below.

NoncurrentVersionTransitions []BucketLifecycleConfigurationV2RuleNoncurrentVersionTransition

Set of configuration blocks that specify the transition rule for the lifecycle rule that describes when noncurrent objects transition to a specific storage class documented below.

Prefix string

DEPRECATED Use filter instead. This has been deprecated by Amazon S3. Prefix identifying one or more objects to which the rule applies. Defaults to an empty string ("") if filter is not specified.

Deprecated:

Use filter instead

Transitions []BucketLifecycleConfigurationV2RuleTransition

Set of configuration blocks that specify when an Amazon S3 object transitions to a specified storage class documented below.

id String

Unique identifier for the rule. The value cannot be longer than 255 characters.

status String

Whether the rule is currently being applied. Valid values: Enabled or Disabled.

abortIncompleteMultipartUpload BucketLifecycleConfigurationV2RuleAbortIncompleteMultipartUpload

Configuration block that specifies the days since the initiation of an incomplete multipart upload that Amazon S3 will wait before permanently removing all parts of the upload documented below.

expiration BucketLifecycleConfigurationV2RuleExpiration

Configuration block that specifies the expiration for the lifecycle of the object in the form of date, days and, whether the object has a delete marker documented below.

filter BucketLifecycleConfigurationV2RuleFilter

Configuration block used to identify objects that a Lifecycle Rule applies to documented below. If not specified, the rule will default to using prefix.

noncurrentVersionExpiration BucketLifecycleConfigurationV2RuleNoncurrentVersionExpiration

Configuration block that specifies when noncurrent object versions expire documented below.

noncurrentVersionTransitions List<BucketLifecycleConfigurationV2RuleNoncurrentVersionTransition>

Set of configuration blocks that specify the transition rule for the lifecycle rule that describes when noncurrent objects transition to a specific storage class documented below.

prefix String

DEPRECATED Use filter instead. This has been deprecated by Amazon S3. Prefix identifying one or more objects to which the rule applies. Defaults to an empty string ("") if filter is not specified.

Deprecated:

Use filter instead

transitions List<BucketLifecycleConfigurationV2RuleTransition>

Set of configuration blocks that specify when an Amazon S3 object transitions to a specified storage class documented below.

id string

Unique identifier for the rule. The value cannot be longer than 255 characters.

status string

Whether the rule is currently being applied. Valid values: Enabled or Disabled.

abortIncompleteMultipartUpload BucketLifecycleConfigurationV2RuleAbortIncompleteMultipartUpload

Configuration block that specifies the days since the initiation of an incomplete multipart upload that Amazon S3 will wait before permanently removing all parts of the upload documented below.

expiration BucketLifecycleConfigurationV2RuleExpiration

Configuration block that specifies the expiration for the lifecycle of the object in the form of date, days and, whether the object has a delete marker documented below.

filter BucketLifecycleConfigurationV2RuleFilter

Configuration block used to identify objects that a Lifecycle Rule applies to documented below. If not specified, the rule will default to using prefix.

noncurrentVersionExpiration BucketLifecycleConfigurationV2RuleNoncurrentVersionExpiration

Configuration block that specifies when noncurrent object versions expire documented below.

noncurrentVersionTransitions BucketLifecycleConfigurationV2RuleNoncurrentVersionTransition[]

Set of configuration blocks that specify the transition rule for the lifecycle rule that describes when noncurrent objects transition to a specific storage class documented below.

prefix string

DEPRECATED Use filter instead. This has been deprecated by Amazon S3. Prefix identifying one or more objects to which the rule applies. Defaults to an empty string ("") if filter is not specified.

Deprecated:

Use filter instead

transitions BucketLifecycleConfigurationV2RuleTransition[]

Set of configuration blocks that specify when an Amazon S3 object transitions to a specified storage class documented below.

id str

Unique identifier for the rule. The value cannot be longer than 255 characters.

status str

Whether the rule is currently being applied. Valid values: Enabled or Disabled.

abort_incomplete_multipart_upload BucketLifecycleConfigurationV2RuleAbortIncompleteMultipartUpload

Configuration block that specifies the days since the initiation of an incomplete multipart upload that Amazon S3 will wait before permanently removing all parts of the upload documented below.

expiration BucketLifecycleConfigurationV2RuleExpiration

Configuration block that specifies the expiration for the lifecycle of the object in the form of date, days and, whether the object has a delete marker documented below.

filter BucketLifecycleConfigurationV2RuleFilter

Configuration block used to identify objects that a Lifecycle Rule applies to documented below. If not specified, the rule will default to using prefix.

noncurrent_version_expiration BucketLifecycleConfigurationV2RuleNoncurrentVersionExpiration

Configuration block that specifies when noncurrent object versions expire documented below.

noncurrent_version_transitions Sequence[BucketLifecycleConfigurationV2RuleNoncurrentVersionTransition]

Set of configuration blocks that specify the transition rule for the lifecycle rule that describes when noncurrent objects transition to a specific storage class documented below.

prefix str

DEPRECATED Use filter instead. This has been deprecated by Amazon S3. Prefix identifying one or more objects to which the rule applies. Defaults to an empty string ("") if filter is not specified.

Deprecated:

Use filter instead

transitions Sequence[BucketLifecycleConfigurationV2RuleTransition]

Set of configuration blocks that specify when an Amazon S3 object transitions to a specified storage class documented below.

id String

Unique identifier for the rule. The value cannot be longer than 255 characters.

status String

Whether the rule is currently being applied. Valid values: Enabled or Disabled.

abortIncompleteMultipartUpload Property Map

Configuration block that specifies the days since the initiation of an incomplete multipart upload that Amazon S3 will wait before permanently removing all parts of the upload documented below.

expiration Property Map

Configuration block that specifies the expiration for the lifecycle of the object in the form of date, days and, whether the object has a delete marker documented below.

filter Property Map

Configuration block used to identify objects that a Lifecycle Rule applies to documented below. If not specified, the rule will default to using prefix.

noncurrentVersionExpiration Property Map

Configuration block that specifies when noncurrent object versions expire documented below.

noncurrentVersionTransitions List<Property Map>

Set of configuration blocks that specify the transition rule for the lifecycle rule that describes when noncurrent objects transition to a specific storage class documented below.

prefix String

DEPRECATED Use filter instead. This has been deprecated by Amazon S3. Prefix identifying one or more objects to which the rule applies. Defaults to an empty string ("") if filter is not specified.

Deprecated:

Use filter instead

transitions List<Property Map>

Set of configuration blocks that specify when an Amazon S3 object transitions to a specified storage class documented below.

BucketLifecycleConfigurationV2RuleAbortIncompleteMultipartUpload

DaysAfterInitiation int

The number of days after which Amazon S3 aborts an incomplete multipart upload.

DaysAfterInitiation int

The number of days after which Amazon S3 aborts an incomplete multipart upload.

daysAfterInitiation Integer

The number of days after which Amazon S3 aborts an incomplete multipart upload.

daysAfterInitiation number

The number of days after which Amazon S3 aborts an incomplete multipart upload.

days_after_initiation int

The number of days after which Amazon S3 aborts an incomplete multipart upload.

daysAfterInitiation Number

The number of days after which Amazon S3 aborts an incomplete multipart upload.

BucketLifecycleConfigurationV2RuleExpiration

Date string

The date the object is to be moved or deleted. Should be in RFC3339 format.

Days int

The lifetime, in days, of the objects that are subject to the rule. The value must be a non-zero positive integer.

ExpiredObjectDeleteMarker bool

Indicates whether Amazon S3 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 action.

Date string

The date the object is to be moved or deleted. Should be in RFC3339 format.

Days int

The lifetime, in days, of the objects that are subject to the rule. The value must be a non-zero positive integer.

ExpiredObjectDeleteMarker bool

Indicates whether Amazon S3 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 action.

date String

The date the object is to be moved or deleted. Should be in RFC3339 format.

days Integer

The lifetime, in days, of the objects that are subject to the rule. The value must be a non-zero positive integer.

expiredObjectDeleteMarker Boolean

Indicates whether Amazon S3 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 action.

date string

The date the object is to be moved or deleted. Should be in RFC3339 format.

days number

The lifetime, in days, of the objects that are subject to the rule. The value must be a non-zero positive integer.

expiredObjectDeleteMarker boolean

Indicates whether Amazon S3 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 action.

date str

The date the object is to be moved or deleted. Should be in RFC3339 format.

days int

The lifetime, in days, of the objects that are subject to the rule. The value must be a non-zero positive integer.

expired_object_delete_marker bool

Indicates whether Amazon S3 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 action.

date String

The date the object is to be moved or deleted. Should be in RFC3339 format.

days Number

The lifetime, in days, of the objects that are subject to the rule. The value must be a non-zero positive integer.

expiredObjectDeleteMarker Boolean

Indicates whether Amazon S3 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 action.

BucketLifecycleConfigurationV2RuleFilter

And BucketLifecycleConfigurationV2RuleFilterAnd

Configuration block used to apply a logical AND to two or more predicates documented below. The Lifecycle Rule will apply to any object matching all the predicates configured inside the and block.

ObjectSizeGreaterThan string

Minimum object size (in bytes) to which the rule applies.

ObjectSizeLessThan string

Maximum object size (in bytes) to which the rule applies.

Prefix string

Prefix identifying one or more objects to which the rule applies. Defaults to an empty string ("") if not specified.

Tag BucketLifecycleConfigurationV2RuleFilterTag

A configuration block for specifying a tag key and value documented below.

And BucketLifecycleConfigurationV2RuleFilterAnd

Configuration block used to apply a logical AND to two or more predicates documented below. The Lifecycle Rule will apply to any object matching all the predicates configured inside the and block.

ObjectSizeGreaterThan string

Minimum object size (in bytes) to which the rule applies.

ObjectSizeLessThan string

Maximum object size (in bytes) to which the rule applies.

Prefix string

Prefix identifying one or more objects to which the rule applies. Defaults to an empty string ("") if not specified.

Tag BucketLifecycleConfigurationV2RuleFilterTag

A configuration block for specifying a tag key and value documented below.

and BucketLifecycleConfigurationV2RuleFilterAnd

Configuration block used to apply a logical AND to two or more predicates documented below. The Lifecycle Rule will apply to any object matching all the predicates configured inside the and block.

objectSizeGreaterThan String

Minimum object size (in bytes) to which the rule applies.

objectSizeLessThan String

Maximum object size (in bytes) to which the rule applies.

prefix String

Prefix identifying one or more objects to which the rule applies. Defaults to an empty string ("") if not specified.

tag BucketLifecycleConfigurationV2RuleFilterTag

A configuration block for specifying a tag key and value documented below.

and BucketLifecycleConfigurationV2RuleFilterAnd

Configuration block used to apply a logical AND to two or more predicates documented below. The Lifecycle Rule will apply to any object matching all the predicates configured inside the and block.

objectSizeGreaterThan string

Minimum object size (in bytes) to which the rule applies.

objectSizeLessThan string

Maximum object size (in bytes) to which the rule applies.

prefix string

Prefix identifying one or more objects to which the rule applies. Defaults to an empty string ("") if not specified.

tag BucketLifecycleConfigurationV2RuleFilterTag

A configuration block for specifying a tag key and value documented below.

and_ BucketLifecycleConfigurationV2RuleFilterAnd

Configuration block used to apply a logical AND to two or more predicates documented below. The Lifecycle Rule will apply to any object matching all the predicates configured inside the and block.

object_size_greater_than str

Minimum object size (in bytes) to which the rule applies.

object_size_less_than str

Maximum object size (in bytes) to which the rule applies.

prefix str

Prefix identifying one or more objects to which the rule applies. Defaults to an empty string ("") if not specified.

tag BucketLifecycleConfigurationV2RuleFilterTag

A configuration block for specifying a tag key and value documented below.

and Property Map

Configuration block used to apply a logical AND to two or more predicates documented below. The Lifecycle Rule will apply to any object matching all the predicates configured inside the and block.

objectSizeGreaterThan String

Minimum object size (in bytes) to which the rule applies.

objectSizeLessThan String

Maximum object size (in bytes) to which the rule applies.

prefix String

Prefix identifying one or more objects to which the rule applies. Defaults to an empty string ("") if not specified.

tag Property Map

A configuration block for specifying a tag key and value documented below.

BucketLifecycleConfigurationV2RuleFilterAnd

ObjectSizeGreaterThan int

Minimum object size to which the rule applies. Value must be at least 0 if specified.

ObjectSizeLessThan int

Maximum object size to which the rule applies. Value must be at least 1 if specified.

Prefix string

Prefix identifying one or more objects to which the rule applies.

Tags Dictionary<string, string>

Key-value map of resource tags. All of these tags must exist in the object's tag set in order for the rule to apply.

ObjectSizeGreaterThan int

Minimum object size to which the rule applies. Value must be at least 0 if specified.

ObjectSizeLessThan int

Maximum object size to which the rule applies. Value must be at least 1 if specified.

Prefix string

Prefix identifying one or more objects to which the rule applies.

Tags map[string]string

Key-value map of resource tags. All of these tags must exist in the object's tag set in order for the rule to apply.

objectSizeGreaterThan Integer

Minimum object size to which the rule applies. Value must be at least 0 if specified.

objectSizeLessThan Integer

Maximum object size to which the rule applies. Value must be at least 1 if specified.

prefix String

Prefix identifying one or more objects to which the rule applies.

tags Map<String,String>

Key-value map of resource tags. All of these tags must exist in the object's tag set in order for the rule to apply.

objectSizeGreaterThan number

Minimum object size to which the rule applies. Value must be at least 0 if specified.

objectSizeLessThan number

Maximum object size to which the rule applies. Value must be at least 1 if specified.

prefix string

Prefix identifying one or more objects to which the rule applies.

tags {[key: string]: string}

Key-value map of resource tags. All of these tags must exist in the object's tag set in order for the rule to apply.

object_size_greater_than int

Minimum object size to which the rule applies. Value must be at least 0 if specified.

object_size_less_than int

Maximum object size to which the rule applies. Value must be at least 1 if specified.

prefix str

Prefix identifying one or more objects to which the rule applies.

tags Mapping[str, str]

Key-value map of resource tags. All of these tags must exist in the object's tag set in order for the rule to apply.

objectSizeGreaterThan Number

Minimum object size to which the rule applies. Value must be at least 0 if specified.

objectSizeLessThan Number

Maximum object size to which the rule applies. Value must be at least 1 if specified.

prefix String

Prefix identifying one or more objects to which the rule applies.

tags Map<String>

Key-value map of resource tags. All of these tags must exist in the object's tag set in order for the rule to apply.

BucketLifecycleConfigurationV2RuleFilterTag

Key string

Name of the object key.

Value string

Value of the tag.

Key string

Name of the object key.

Value string

Value of the tag.

key String

Name of the object key.

value String

Value of the tag.

key string

Name of the object key.

value string

Value of the tag.

key str

Name of the object key.

value str

Value of the tag.

key String

Name of the object key.

value String

Value of the tag.

BucketLifecycleConfigurationV2RuleNoncurrentVersionExpiration

NewerNoncurrentVersions string

The number of noncurrent versions Amazon S3 will retain. Must be a non-zero positive integer.

NoncurrentDays int

The number of days an object is noncurrent before Amazon S3 can perform the associated action. Must be a positive integer.

NewerNoncurrentVersions string

The number of noncurrent versions Amazon S3 will retain. Must be a non-zero positive integer.

NoncurrentDays int

The number of days an object is noncurrent before Amazon S3 can perform the associated action. Must be a positive integer.

newerNoncurrentVersions String

The number of noncurrent versions Amazon S3 will retain. Must be a non-zero positive integer.

noncurrentDays Integer

The number of days an object is noncurrent before Amazon S3 can perform the associated action. Must be a positive integer.

newerNoncurrentVersions string

The number of noncurrent versions Amazon S3 will retain. Must be a non-zero positive integer.

noncurrentDays number

The number of days an object is noncurrent before Amazon S3 can perform the associated action. Must be a positive integer.

newer_noncurrent_versions str

The number of noncurrent versions Amazon S3 will retain. Must be a non-zero positive integer.

noncurrent_days int

The number of days an object is noncurrent before Amazon S3 can perform the associated action. Must be a positive integer.

newerNoncurrentVersions String

The number of noncurrent versions Amazon S3 will retain. Must be a non-zero positive integer.

noncurrentDays Number

The number of days an object is noncurrent before Amazon S3 can perform the associated action. Must be a positive integer.

BucketLifecycleConfigurationV2RuleNoncurrentVersionTransition

StorageClass string

The class of storage used to store the object. Valid Values: GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR.

NewerNoncurrentVersions string

The number of noncurrent versions Amazon S3 will retain. Must be a non-zero positive integer.

NoncurrentDays int

The number of days an object is noncurrent before Amazon S3 can perform the associated action.

StorageClass string

The class of storage used to store the object. Valid Values: GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR.

NewerNoncurrentVersions string

The number of noncurrent versions Amazon S3 will retain. Must be a non-zero positive integer.

NoncurrentDays int

The number of days an object is noncurrent before Amazon S3 can perform the associated action.

storageClass String

The class of storage used to store the object. Valid Values: GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR.

newerNoncurrentVersions String

The number of noncurrent versions Amazon S3 will retain. Must be a non-zero positive integer.

noncurrentDays Integer

The number of days an object is noncurrent before Amazon S3 can perform the associated action.

storageClass string

The class of storage used to store the object. Valid Values: GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR.

newerNoncurrentVersions string

The number of noncurrent versions Amazon S3 will retain. Must be a non-zero positive integer.

noncurrentDays number

The number of days an object is noncurrent before Amazon S3 can perform the associated action.

storage_class str

The class of storage used to store the object. Valid Values: GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR.

newer_noncurrent_versions str

The number of noncurrent versions Amazon S3 will retain. Must be a non-zero positive integer.

noncurrent_days int

The number of days an object is noncurrent before Amazon S3 can perform the associated action.

storageClass String

The class of storage used to store the object. Valid Values: GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR.

newerNoncurrentVersions String

The number of noncurrent versions Amazon S3 will retain. Must be a non-zero positive integer.

noncurrentDays Number

The number of days an object is noncurrent before Amazon S3 can perform the associated action.

BucketLifecycleConfigurationV2RuleTransition

StorageClass string

The class of storage used to store the object. Valid Values: GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR.

Date string

The date objects are transitioned to the specified storage class. The date value must be in RFC3339 format and set to midnight UTC e.g. 2023-01-13T00:00:00Z.

Days int

The number of days after creation when objects are transitioned to the specified storage class. The value must be a positive integer. If both days and date are not specified, defaults to 0. Valid values depend on storage_class, see Transition objects using Amazon S3 Lifecycle for more details.

StorageClass string

The class of storage used to store the object. Valid Values: GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR.

Date string

The date objects are transitioned to the specified storage class. The date value must be in RFC3339 format and set to midnight UTC e.g. 2023-01-13T00:00:00Z.

Days int

The number of days after creation when objects are transitioned to the specified storage class. The value must be a positive integer. If both days and date are not specified, defaults to 0. Valid values depend on storage_class, see Transition objects using Amazon S3 Lifecycle for more details.

storageClass String

The class of storage used to store the object. Valid Values: GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR.

date String

The date objects are transitioned to the specified storage class. The date value must be in RFC3339 format and set to midnight UTC e.g. 2023-01-13T00:00:00Z.

days Integer

The number of days after creation when objects are transitioned to the specified storage class. The value must be a positive integer. If both days and date are not specified, defaults to 0. Valid values depend on storage_class, see Transition objects using Amazon S3 Lifecycle for more details.

storageClass string

The class of storage used to store the object. Valid Values: GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR.

date string

The date objects are transitioned to the specified storage class. The date value must be in RFC3339 format and set to midnight UTC e.g. 2023-01-13T00:00:00Z.

days number

The number of days after creation when objects are transitioned to the specified storage class. The value must be a positive integer. If both days and date are not specified, defaults to 0. Valid values depend on storage_class, see Transition objects using Amazon S3 Lifecycle for more details.

storage_class str

The class of storage used to store the object. Valid Values: GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR.

date str

The date objects are transitioned to the specified storage class. The date value must be in RFC3339 format and set to midnight UTC e.g. 2023-01-13T00:00:00Z.

days int

The number of days after creation when objects are transitioned to the specified storage class. The value must be a positive integer. If both days and date are not specified, defaults to 0. Valid values depend on storage_class, see Transition objects using Amazon S3 Lifecycle for more details.

storageClass String

The class of storage used to store the object. Valid Values: GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR.

date String

The date objects are transitioned to the specified storage class. The date value must be in RFC3339 format and set to midnight UTC e.g. 2023-01-13T00:00:00Z.

days Number

The number of days after creation when objects are transitioned to the specified storage class. The value must be a positive integer. If both days and date are not specified, defaults to 0. Valid values depend on storage_class, see Transition objects using Amazon S3 Lifecycle for more details.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.