Class: AWSCDK::S3::CfnStorageLens::CloudWatchMetricsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::S3::CfnStorageLens::CloudWatchMetricsProperty
- Defined in:
- s3/cfn_storage_lens.rb
Overview
This resource enables the Amazon CloudWatch publishing option for Amazon S3 Storage Lens metrics.
For more information, see Monitor S3 Storage Lens metrics in CloudWatch in the Amazon S3 User Guide .
Instance Attribute Summary collapse
-
#is_enabled ⇒ Boolean, AWSCDK::IResolvable
readonly
This property identifies whether the CloudWatch publishing option for S3 Storage Lens is enabled.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(is_enabled:) ⇒ CloudWatchMetricsProperty
constructor
A new instance of CloudWatchMetricsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(is_enabled:) ⇒ CloudWatchMetricsProperty
Returns a new instance of CloudWatchMetricsProperty.
930 931 932 933 |
# File 's3/cfn_storage_lens.rb', line 930 def initialize(is_enabled:) @is_enabled = is_enabled Jsii::Type.check_type(@is_enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "isEnabled") end |
Instance Attribute Details
#is_enabled ⇒ Boolean, AWSCDK::IResolvable (readonly)
This property identifies whether the CloudWatch publishing option for S3 Storage Lens is enabled.
939 940 941 |
# File 's3/cfn_storage_lens.rb', line 939 def is_enabled @is_enabled end |
Class Method Details
.jsii_properties ⇒ Object
941 942 943 944 945 |
# File 's3/cfn_storage_lens.rb', line 941 def self.jsii_properties { :is_enabled => "isEnabled", } end |
Instance Method Details
#to_jsii ⇒ Object
947 948 949 950 951 952 953 |
# File 's3/cfn_storage_lens.rb', line 947 def to_jsii result = {} result.merge!({ "isEnabled" => @is_enabled, }) result.compact end |