Class: AWSCDK::S3::CfnBucket::VersioningConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
s3/cfn_bucket.rb

Overview

Describes the versioning state of an Amazon S3 bucket.

For more information, see PUT Bucket versioning in the Amazon S3 API Reference .

Keep the following timing in mind when enabling, suspending, or transitioning between versioning states:

  • Enabling versioning - Changes may take up to 15 minutes to propagate across all AWS regions for full consistency.
  • Suspending versioning - Takes effect immediately with no propagation delay.
  • Transitioning between states - Any change from Suspended to Enabled has a 15-minute delay.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status:) ⇒ VersioningConfigurationProperty

Returns a new instance of VersioningConfigurationProperty.

Parameters:

  • status (String)

    The versioning state of the bucket.



4737
4738
4739
4740
# File 's3/cfn_bucket.rb', line 4737

def initialize(status:)
  @status = status
  Jsii::Type.check_type(@status, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "status")
end

Instance Attribute Details

#statusString (readonly)

Note:

Default: - "Suspended"

The versioning state of the bucket.



4747
4748
4749
# File 's3/cfn_bucket.rb', line 4747

def status
  @status
end

Class Method Details

.jsii_propertiesObject



4749
4750
4751
4752
4753
# File 's3/cfn_bucket.rb', line 4749

def self.jsii_properties
  {
    :status => "status",
  }
end

Instance Method Details

#to_jsiiObject



4755
4756
4757
4758
4759
4760
4761
# File 's3/cfn_bucket.rb', line 4755

def to_jsii
  result = {}
  result.merge!({
    "status" => @status,
  })
  result.compact
end