Class: AWSCDK::MSK::CfnCluster::EncryptionInfoProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MSK::CfnCluster::EncryptionInfoProperty
- Defined in:
- msk/cfn_cluster.rb
Overview
Includes encryption-related information, such as the Amazon KMS key used for encrypting data at rest and whether you want MSK to encrypt your data in transit.
Instance Attribute Summary collapse
-
#encryption_at_rest ⇒ AWSCDK::IResolvable, ...
readonly
The data-volume encryption details.
-
#encryption_in_transit ⇒ AWSCDK::IResolvable, ...
readonly
The details for encryption in transit.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(encryption_at_rest: nil, encryption_in_transit: nil) ⇒ EncryptionInfoProperty
constructor
A new instance of EncryptionInfoProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(encryption_at_rest: nil, encryption_in_transit: nil) ⇒ EncryptionInfoProperty
Returns a new instance of EncryptionInfoProperty.
1195 1196 1197 1198 1199 1200 |
# File 'msk/cfn_cluster.rb', line 1195 def initialize(encryption_at_rest: nil, encryption_in_transit: nil) @encryption_at_rest = encryption_at_rest.is_a?(Hash) ? ::AWSCDK::MSK::CfnCluster::EncryptionAtRestProperty.new(**encryption_at_rest.transform_keys(&:to_sym)) : encryption_at_rest Jsii::Type.check_type(@encryption_at_rest, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tc2suQ2ZuQ2x1c3Rlci5FbmNyeXB0aW9uQXRSZXN0UHJvcGVydHkifV19fQ==")), "encryptionAtRest") unless @encryption_at_rest.nil? @encryption_in_transit = encryption_in_transit.is_a?(Hash) ? ::AWSCDK::MSK::CfnCluster::EncryptionInTransitProperty.new(**encryption_in_transit.transform_keys(&:to_sym)) : encryption_in_transit Jsii::Type.check_type(@encryption_in_transit, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tc2suQ2ZuQ2x1c3Rlci5FbmNyeXB0aW9uSW5UcmFuc2l0UHJvcGVydHkifV19fQ==")), "encryptionInTransit") unless @encryption_in_transit.nil? end |
Instance Attribute Details
#encryption_at_rest ⇒ AWSCDK::IResolvable, ... (readonly)
The data-volume encryption details.
1206 1207 1208 |
# File 'msk/cfn_cluster.rb', line 1206 def encryption_at_rest @encryption_at_rest end |
#encryption_in_transit ⇒ AWSCDK::IResolvable, ... (readonly)
The details for encryption in transit.
1211 1212 1213 |
# File 'msk/cfn_cluster.rb', line 1211 def encryption_in_transit @encryption_in_transit end |
Class Method Details
.jsii_properties ⇒ Object
1213 1214 1215 1216 1217 1218 |
# File 'msk/cfn_cluster.rb', line 1213 def self.jsii_properties { :encryption_at_rest => "encryptionAtRest", :encryption_in_transit => "encryptionInTransit", } end |
Instance Method Details
#to_jsii ⇒ Object
1220 1221 1222 1223 1224 1225 1226 1227 |
# File 'msk/cfn_cluster.rb', line 1220 def to_jsii result = {} result.merge!({ "encryptionAtRest" => @encryption_at_rest, "encryptionInTransit" => @encryption_in_transit, }) result.compact end |