Table of Contents

Class BucketLifecyclePolicy

Namespace
Cloudflare.NET.Accounts.Models
Assembly
Cloudflare.NET.dll

Represents the lifecycle policy for an R2 bucket.

public record BucketLifecyclePolicy : IEquatable<BucketLifecyclePolicy>
Inheritance
BucketLifecyclePolicy
Implements
Inherited Members

Constructors

BucketLifecyclePolicy(IReadOnlyList<LifecycleRule>)

Represents the lifecycle policy for an R2 bucket.

public BucketLifecyclePolicy(IReadOnlyList<LifecycleRule> Rules)

Parameters

Rules IReadOnlyList<LifecycleRule>

The list of lifecycle rules applied to the bucket. Maximum of 1000 rules.

Properties

Rules

The list of lifecycle rules applied to the bucket. Maximum of 1000 rules.

[JsonPropertyName("rules")]
public IReadOnlyList<LifecycleRule> Rules { get; init; }

Property Value

IReadOnlyList<LifecycleRule>