Class: AWSCDK::StepFunctionsTasks::EncryptionConfiguration

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
step_functions_tasks/encryption_configuration.rb

Overview

Encryption Configuration of the S3 bucket.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(encryption_option:, encryption_key: nil) ⇒ EncryptionConfiguration

Returns a new instance of EncryptionConfiguration.

Parameters:



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_keyAWSCDK::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.

Returns:



27
28
29
# File 'step_functions_tasks/encryption_configuration.rb', line 27

def encryption_key
  @encryption_key
end

#encryption_optionAWSCDK::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_propertiesObject



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_jsiiObject



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