Class: AWSCDK::S3::CfnStorageLens::ActivityMetricsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::S3::CfnStorageLens::ActivityMetricsProperty
- Defined in:
- s3/cfn_storage_lens.rb
Overview
This resource enables Amazon S3 Storage Lens activity metrics.
Activity metrics show details about how your storage is requested, such as requests (for example, All requests, Get requests, Put requests), bytes uploaded or downloaded, and errors.
For more information, see Assessing your storage activity and usage with S3 Storage Lens in the Amazon S3 User Guide . For a complete list of metrics, see S3 Storage Lens metrics glossary in the Amazon S3 User Guide .
Instance Attribute Summary collapse
-
#is_enabled ⇒ Boolean, ...
readonly
A property that indicates whether the activity metrics is enabled.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(is_enabled: nil) ⇒ ActivityMetricsProperty
constructor
A new instance of ActivityMetricsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(is_enabled: nil) ⇒ ActivityMetricsProperty
Returns a new instance of ActivityMetricsProperty.
625 626 627 628 |
# File 's3/cfn_storage_lens.rb', line 625 def initialize(is_enabled: nil) @is_enabled = is_enabled Jsii::Type.check_type(@is_enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "isEnabled") unless @is_enabled.nil? end |
Instance Attribute Details
#is_enabled ⇒ Boolean, ... (readonly)
A property that indicates whether the activity metrics is enabled.
634 635 636 |
# File 's3/cfn_storage_lens.rb', line 634 def is_enabled @is_enabled end |
Class Method Details
.jsii_properties ⇒ Object
636 637 638 639 640 |
# File 's3/cfn_storage_lens.rb', line 636 def self.jsii_properties { :is_enabled => "isEnabled", } end |
Instance Method Details
#to_jsii ⇒ Object
642 643 644 645 646 647 648 |
# File 's3/cfn_storage_lens.rb', line 642 def to_jsii result = {} result.merge!({ "isEnabled" => @is_enabled, }) result.compact end |