Learn R Programming

paws.storage (version 0.1.7)

s3_get_bucket_lifecycle: For an updated version of this API, see GetBucketLifecycleConfiguration

Description

For an updated version of this API, see GetBucketLifecycleConfiguration. If you configured a bucket lifecycle using the filter element, you should see the updated version of this topic. This topic is provided for backward compatibility.

Usage

s3_get_bucket_lifecycle(Bucket)

Arguments

Bucket

[required] The name of the bucket for which to get the lifecycle information.

Request syntax

svc$get_bucket_lifecycle(
  Bucket = "string"
)

Details

Returns the lifecycle configuration information set on the bucket. For information about lifecycle configuration, see Object Lifecycle Management.

To use this operation, you must have permission to perform the s3:GetLifecycleConfiguration action. The bucket owner has this permission by default. The bucket owner can grant this permission to others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources.

GetBucketLifecycle has the following special error:

  • Error code: NoSuchLifecycleConfiguration

    • Description: The lifecycle configuration does not exist.

    • HTTP Status Code: 404 Not Found

    • SOAP Fault Code Prefix: Client

The following operations are related to GetBucketLifecycle:

  • GetBucketLifecycleConfiguration

  • PutBucketLifecycle

  • DeleteBucketLifecycle

Examples

Run this code
# NOT RUN {
# The following example gets ACL on the specified bucket.
# }
# NOT RUN {
svc$get_bucket_lifecycle(
  Bucket = "acl1"
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab