Class: AWSCDK::S3::CfnStorageLens::CloudWatchMetricsProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(is_enabled:) ⇒ CloudWatchMetricsProperty

Returns a new instance of CloudWatchMetricsProperty.

Parameters:

  • is_enabled (Boolean, AWSCDK::IResolvable)

    This property identifies whether the CloudWatch publishing option for S3 Storage Lens is enabled.



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_enabledBoolean, 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_propertiesObject



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_jsiiObject



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