Class: AWSCDK::KinesisFirehose::CfnDeliveryStream::EncryptionConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::KinesisFirehose::CfnDeliveryStream::EncryptionConfigurationProperty
- Defined in:
- kinesis_firehose/cfn_delivery_stream.rb
Overview
The EncryptionConfiguration property type specifies the encryption settings that Amazon Kinesis Data Firehose (Kinesis Data Firehose) uses when delivering data to Amazon Simple Storage Service (Amazon S3).
Instance Attribute Summary collapse
-
#kms_encryption_config ⇒ AWSCDK::IResolvable, ...
readonly
The AWS Key Management Service ( AWS KMS) encryption key that Amazon S3 uses to encrypt your data.
-
#no_encryption_config ⇒ String?
readonly
Disables encryption.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(kms_encryption_config: nil, no_encryption_config: nil) ⇒ EncryptionConfigurationProperty
constructor
A new instance of EncryptionConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(kms_encryption_config: nil, no_encryption_config: nil) ⇒ EncryptionConfigurationProperty
Returns a new instance of EncryptionConfigurationProperty.
2493 2494 2495 2496 2497 2498 |
# File 'kinesis_firehose/cfn_delivery_stream.rb', line 2493 def initialize(kms_encryption_config: nil, no_encryption_config: nil) @kms_encryption_config = kms_encryption_config.is_a?(Hash) ? ::AWSCDK::KinesisFirehose::CfnDeliveryStream::KMSEncryptionConfigProperty.new(**kms_encryption_config.transform_keys(&:to_sym)) : kms_encryption_config Jsii::Type.check_type(@kms_encryption_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19raW5lc2lzZmlyZWhvc2UuQ2ZuRGVsaXZlcnlTdHJlYW0uS01TRW5jcnlwdGlvbkNvbmZpZ1Byb3BlcnR5In1dfX0=")), "kmsEncryptionConfig") unless @kms_encryption_config.nil? @no_encryption_config = no_encryption_config Jsii::Type.check_type(@no_encryption_config, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "noEncryptionConfig") unless @no_encryption_config.nil? end |
Instance Attribute Details
#kms_encryption_config ⇒ AWSCDK::IResolvable, ... (readonly)
The AWS Key Management Service ( AWS KMS) encryption key that Amazon S3 uses to encrypt your data.
2504 2505 2506 |
# File 'kinesis_firehose/cfn_delivery_stream.rb', line 2504 def kms_encryption_config @kms_encryption_config end |
#no_encryption_config ⇒ String? (readonly)
Disables encryption.
For valid values, see the NoEncryptionConfig content for the EncryptionConfiguration data type in the Amazon Kinesis Data Firehose API Reference .
2511 2512 2513 |
# File 'kinesis_firehose/cfn_delivery_stream.rb', line 2511 def no_encryption_config @no_encryption_config end |
Class Method Details
.jsii_properties ⇒ Object
2513 2514 2515 2516 2517 2518 |
# File 'kinesis_firehose/cfn_delivery_stream.rb', line 2513 def self.jsii_properties { :kms_encryption_config => "kmsEncryptionConfig", :no_encryption_config => "noEncryptionConfig", } end |
Instance Method Details
#to_jsii ⇒ Object
2520 2521 2522 2523 2524 2525 2526 2527 |
# File 'kinesis_firehose/cfn_delivery_stream.rb', line 2520 def to_jsii result = {} result.merge!({ "kmsEncryptionConfig" => @kms_encryption_config, "noEncryptionConfig" => @no_encryption_config, }) result.compact end |