Class: AWSCDK::S3::CfnStorageLens::SSEKMSProperty

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

Overview

Specifies the use of server-side encryption using an AWS Key Management Service key (SSE-KMS) to encrypt the delivered S3 Storage Lens metrics export file.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key_id:) ⇒ SSEKMSProperty

Returns a new instance of SSEKMSProperty.

Parameters:

  • key_id (String)

    Specifies the Amazon Resource Name (ARN) of the customer managed AWS key to use for encrypting the S3 Storage Lens metrics export file.



1259
1260
1261
1262
# File 's3/cfn_storage_lens.rb', line 1259

def initialize(key_id:)
  @key_id = key_id
  Jsii::Type.check_type(@key_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "keyId")
end

Instance Attribute Details

#key_idString (readonly)

Specifies the Amazon Resource Name (ARN) of the customer managed AWS key to use for encrypting the S3 Storage Lens metrics export file.

Amazon S3 only supports symmetric encryption keys. For more information, see Special-purpose keys in the AWS Key Management Service Developer Guide .



1270
1271
1272
# File 's3/cfn_storage_lens.rb', line 1270

def key_id
  @key_id
end

Class Method Details

.jsii_propertiesObject



1272
1273
1274
1275
1276
# File 's3/cfn_storage_lens.rb', line 1272

def self.jsii_properties
  {
    :key_id => "keyId",
  }
end

Instance Method Details

#to_jsiiObject



1278
1279
1280
1281
1282
1283
1284
# File 's3/cfn_storage_lens.rb', line 1278

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