Class: AWSCDK::S3::CfnBucket::MetricsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::S3::CfnBucket::MetricsProperty
- Defined in:
- s3/cfn_bucket.rb
Overview
A container specifying replication metrics-related settings enabling replication metrics and events.
Instance Attribute Summary collapse
-
#event_threshold ⇒ AWSCDK::IResolvable, ...
readonly
A container specifying the time threshold for emitting the
s3:Replication:OperationMissedThresholdevent. -
#status ⇒ String
readonly
Specifies whether the replication metrics are enabled.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(status:, event_threshold: nil) ⇒ MetricsProperty
constructor
A new instance of MetricsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(status:, event_threshold: nil) ⇒ MetricsProperty
Returns a new instance of MetricsProperty.
2527 2528 2529 2530 2531 2532 |
# File 's3/cfn_bucket.rb', line 2527 def initialize(status:, event_threshold: nil) @status = status Jsii::Type.check_type(@status, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "status") @event_threshold = event_threshold.is_a?(Hash) ? ::AWSCDK::S3::CfnBucket::ReplicationTimeValueProperty.new(**event_threshold.transform_keys(&:to_sym)) : event_threshold Jsii::Type.check_type(@event_threshold, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zMy5DZm5CdWNrZXQuUmVwbGljYXRpb25UaW1lVmFsdWVQcm9wZXJ0eSJ9XX19")), "eventThreshold") unless @event_threshold.nil? end |
Instance Attribute Details
#event_threshold ⇒ AWSCDK::IResolvable, ... (readonly)
A container specifying the time threshold for emitting the s3:Replication:OperationMissedThreshold event.
2543 2544 2545 |
# File 's3/cfn_bucket.rb', line 2543 def event_threshold @event_threshold end |
#status ⇒ String (readonly)
Specifies whether the replication metrics are enabled.
2538 2539 2540 |
# File 's3/cfn_bucket.rb', line 2538 def status @status end |
Class Method Details
.jsii_properties ⇒ Object
2545 2546 2547 2548 2549 2550 |
# File 's3/cfn_bucket.rb', line 2545 def self.jsii_properties { :status => "status", :event_threshold => "eventThreshold", } end |
Instance Method Details
#to_jsii ⇒ Object
2552 2553 2554 2555 2556 2557 2558 2559 |
# File 's3/cfn_bucket.rb', line 2552 def to_jsii result = {} result.merge!({ "status" => @status, "eventThreshold" => @event_threshold, }) result.compact end |