Class CfnBucket.RuleProperty
A container for an Amazon S3 on Outposts bucket lifecycle rule.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.S3Outposts
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class RuleProperty : Object, CfnBucket.IRuleProperty
Syntax (vb)
Public Class RuleProperty
Inherits Object
Implements CfnBucket.IRuleProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.S3Outposts;
var filter;
var ruleProperty = new RuleProperty {
Status = "status",
// the properties below are optional
AbortIncompleteMultipartUpload = new AbortIncompleteMultipartUploadProperty {
DaysAfterInitiation = 123
},
ExpirationDate = "expirationDate",
ExpirationInDays = 123,
Filter = filter,
Id = "id"
};
Synopsis
Constructors
RuleProperty() |
Properties
AbortIncompleteMultipartUpload | The container for the abort incomplete multipart upload rule. |
ExpirationDate | Specifies the expiration for the lifecycle of the object by specifying an expiry date. |
ExpirationInDays | Specifies the expiration for the lifecycle of the object in the form of days that the object has been in the S3 on Outposts bucket. |
Filter | The container for the filter of the lifecycle rule. |
Id | Unique identifier for the lifecycle rule. |
Status | If |
Constructors
RuleProperty()
public RuleProperty()
Properties
AbortIncompleteMultipartUpload
The container for the abort incomplete multipart upload rule.
public object AbortIncompleteMultipartUpload { get; set; }
Property Value
System.Object
Remarks
ExpirationDate
Specifies the expiration for the lifecycle of the object by specifying an expiry date.
public string ExpirationDate { get; set; }
Property Value
System.String
Remarks
ExpirationInDays
Specifies the expiration for the lifecycle of the object in the form of days that the object has been in the S3 on Outposts bucket.
public Nullable<double> ExpirationInDays { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
Filter
The container for the filter of the lifecycle rule.
public object Filter { get; set; }
Property Value
System.Object
Remarks
Id
Unique identifier for the lifecycle rule.
public string Id { get; set; }
Property Value
System.String
Remarks
The value can't be longer than 255 characters.
Status
If Enabled
, the rule is currently being applied.
public string Status { get; set; }
Property Value
System.String
Remarks
If Disabled
, the rule is not currently being applied.