Class: AWSCDK::S3::CfnStorageLens::AdvancedDataProtectionMetricsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
s3/cfn_storage_lens.rb

Overview

This resource enables Amazon S3 Storage Lens advanced data protection metrics.

Advanced data protection metrics provide insights that you can use to perform audits and protect your data, for example replication rule counts within and across Regions.

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(is_enabled: nil) ⇒ AdvancedDataProtectionMetricsProperty

Returns a new instance of AdvancedDataProtectionMetricsProperty.

Parameters:

  • is_enabled (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Indicates whether advanced data protection metrics are enabled.



699
700
701
702
# File 's3/cfn_storage_lens.rb', line 699

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_enabledBoolean, ... (readonly)

Indicates whether advanced data protection metrics are enabled.



708
709
710
# File 's3/cfn_storage_lens.rb', line 708

def is_enabled
  @is_enabled
end

Class Method Details

.jsii_propertiesObject



710
711
712
713
714
# File 's3/cfn_storage_lens.rb', line 710

def self.jsii_properties
  {
    :is_enabled => "isEnabled",
  }
end

Instance Method Details

#to_jsiiObject



716
717
718
719
720
721
722
# File 's3/cfn_storage_lens.rb', line 716

def to_jsii
  result = {}
  result.merge!({
    "isEnabled" => @is_enabled,
  })
  result.compact
end