Show / Hide Table of Contents

Class CfnBucket.NoncurrentVersionExpirationProperty

Specifies when noncurrent object versions expire.

Inheritance
System.Object
CfnBucket.NoncurrentVersionExpirationProperty
Implements
CfnBucket.INoncurrentVersionExpirationProperty
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.AWS.S3.dll
Syntax (csharp)
public class NoncurrentVersionExpirationProperty : Object, CfnBucket.INoncurrentVersionExpirationProperty
Syntax (vb)
Public Class NoncurrentVersionExpirationProperty
    Inherits Object
    Implements CfnBucket.INoncurrentVersionExpirationProperty
Remarks

Upon expiration, Amazon S3 permanently deletes the noncurrent object versions. You set this lifecycle configuration action on a bucket that has versioning enabled (or suspended) to request that Amazon S3 delete noncurrent object versions at a specific period in the object's lifetime.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule-noncurrentversionexpiration.html

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.S3;

NoncurrentVersionExpirationProperty noncurrentVersionExpirationProperty = new NoncurrentVersionExpirationProperty {
    NoncurrentDays = 123,

    // the properties below are optional
    NewerNoncurrentVersions = 123
};

Synopsis

Constructors

NoncurrentVersionExpirationProperty()

Properties

NewerNoncurrentVersions

Specifies how many noncurrent versions Amazon S3 will retain.

NoncurrentDays

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

Constructors

NoncurrentVersionExpirationProperty()

public NoncurrentVersionExpirationProperty()

Properties

NewerNoncurrentVersions

Specifies how many noncurrent versions Amazon S3 will retain.

public Nullable<double> NewerNoncurrentVersions { get; set; }
Property Value

System.Nullable<System.Double>

Remarks

If there are this many more recent noncurrent versions, Amazon S3 will take the associated action. For more information about noncurrent versions, see Lifecycle configuration elements in the Amazon S3 User Guide .

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule-noncurrentversionexpiration.html#cfn-s3-bucket-lifecycleconfig-rule-noncurrentversionexpiration-newernoncurrentversions

NoncurrentDays

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

public double NoncurrentDays { get; set; }
Property Value

System.Double

Remarks

For information about the noncurrent days calculations, see How Amazon S3 Calculates When an Object Became Noncurrent in the Amazon S3 User Guide .

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule-noncurrentversionexpiration.html#cfn-s3-bucket-lifecycleconfig-rule-noncurrentversionexpiration-noncurrentdays

Implements

CfnBucket.INoncurrentVersionExpirationProperty
Back to top Generated by DocFX