Class: AWSCDK::S3::CfnBucket::ReplicationTimeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::S3::CfnBucket::ReplicationTimeProperty
- Defined in:
- s3/cfn_bucket.rb
Overview
A container specifying S3 Replication Time Control (S3 RTC) related information, including whether S3 RTC is enabled and the time when all objects and operations on objects must be replicated.
Must be specified together with a Metrics block.
Instance Attribute Summary collapse
-
#status ⇒ String
readonly
Specifies whether the replication time is enabled.
-
#time ⇒ AWSCDK::IResolvable, AWSCDK::S3::CfnBucket::ReplicationTimeValueProperty
readonly
A container specifying the time by which replication should be complete for all objects and operations on objects.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(status:, time:) ⇒ ReplicationTimeProperty
constructor
A new instance of ReplicationTimeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(status:, time:) ⇒ ReplicationTimeProperty
Returns a new instance of ReplicationTimeProperty.
3734 3735 3736 3737 3738 3739 |
# File 's3/cfn_bucket.rb', line 3734 def initialize(status:, time:) @status = status Jsii::Type.check_type(@status, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "status") @time = time.is_a?(Hash) ? ::AWSCDK::S3::CfnBucket::ReplicationTimeValueProperty.new(**time.transform_keys(&:to_sym)) : time Jsii::Type.check_type(@time, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zMy5DZm5CdWNrZXQuUmVwbGljYXRpb25UaW1lVmFsdWVQcm9wZXJ0eSJ9XX19")), "time") end |
Instance Attribute Details
#status ⇒ String (readonly)
Specifies whether the replication time is enabled.
3745 3746 3747 |
# File 's3/cfn_bucket.rb', line 3745 def status @status end |
#time ⇒ AWSCDK::IResolvable, AWSCDK::S3::CfnBucket::ReplicationTimeValueProperty (readonly)
A container specifying the time by which replication should be complete for all objects and operations on objects.
3750 3751 3752 |
# File 's3/cfn_bucket.rb', line 3750 def time @time end |
Class Method Details
.jsii_properties ⇒ Object
3752 3753 3754 3755 3756 3757 |
# File 's3/cfn_bucket.rb', line 3752 def self.jsii_properties { :status => "status", :time => "time", } end |
Instance Method Details
#to_jsii ⇒ Object
3759 3760 3761 3762 3763 3764 3765 3766 |
# File 's3/cfn_bucket.rb', line 3759 def to_jsii result = {} result.merge!({ "status" => @status, "time" => @time, }) result.compact end |