# NOT RUN {
# The following example replaces existing lifecycle configuration, if any,
# on the specified bucket.
# }
# NOT RUN {
svc$put_bucket_lifecycle_configuration(
Bucket = "examplebucket",
LifecycleConfiguration = list(
Rules = list(
list(
Expiration = list(
Days = 3650L
),
Filter = list(
Prefix = "documents/"
),
ID = "TestOnly",
Status = "Enabled",
Transitions = list(
list(
Days = 365L,
StorageClass = "GLACIER"
)
)
)
)
)
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab