Class: AWSCDK::StepFunctionsTasks::EncryptionConfiguration
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::StepFunctionsTasks::EncryptionConfiguration
- Defined in:
- step_functions_tasks/encryption_configuration.rb
Overview
Encryption Configuration of the S3 bucket.
Instance Attribute Summary collapse
-
#encryption_key ⇒ AWSCDK::KMS::IKey?
readonly
KMS key ARN or ID.
-
#encryption_option ⇒ AWSCDK::StepFunctionsTasks::EncryptionOption
readonly
Type of S3 server-side encryption enabled.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(encryption_option:, encryption_key: nil) ⇒ EncryptionConfiguration
constructor
A new instance of EncryptionConfiguration.
- #to_jsii ⇒ Object
Constructor Details
#initialize(encryption_option:, encryption_key: nil) ⇒ EncryptionConfiguration
Returns a new instance of EncryptionConfiguration.
11 12 13 14 15 16 |
# File 'step_functions_tasks/encryption_configuration.rb', line 11 def initialize(encryption_option:, encryption_key: nil) @encryption_option = encryption_option Jsii::Type.check_type(@encryption_option, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9uc190YXNrcy5FbmNyeXB0aW9uT3B0aW9uIn0=")), "encryptionOption") @encryption_key = encryption_key Jsii::Type.check_type(@encryption_key, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfa21zLklLZXkifQ==")), "encryptionKey") unless @encryption_key.nil? end |
Instance Attribute Details
#encryption_key ⇒ AWSCDK::KMS::IKey? (readonly)
Note:
Default: - No KMS key for Encryption Option SSE_S3 and default master key for Encryption Option SSE_KMS and CSE_KMS
KMS key ARN or ID.
27 28 29 |
# File 'step_functions_tasks/encryption_configuration.rb', line 27 def encryption_key @encryption_key end |
#encryption_option ⇒ AWSCDK::StepFunctionsTasks::EncryptionOption (readonly)
Note:
Default: EncryptionOption.S3_MANAGED
Type of S3 server-side encryption enabled.
22 23 24 |
# File 'step_functions_tasks/encryption_configuration.rb', line 22 def encryption_option @encryption_option end |
Class Method Details
.jsii_properties ⇒ Object
29 30 31 32 33 34 |
# File 'step_functions_tasks/encryption_configuration.rb', line 29 def self.jsii_properties { :encryption_option => "encryptionOption", :encryption_key => "encryptionKey", } end |
Instance Method Details
#to_jsii ⇒ Object
36 37 38 39 40 41 42 43 |
# File 'step_functions_tasks/encryption_configuration.rb', line 36 def to_jsii result = {} result.merge!({ "encryptionOption" => @encryption_option, "encryptionKey" => @encryption_key, }) result.compact end |