Class: AWSCDK::IoT::CfnEncryptionConfigurationProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t/cfn_encryption_configuration_props.rb

Overview

Properties for defining a CfnEncryptionConfiguration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(encryption_type:, kms_access_role_arn: nil, kms_key_arn: nil) ⇒ CfnEncryptionConfigurationProps

Returns a new instance of CfnEncryptionConfigurationProps.

Parameters:

  • encryption_type (String)

    The type of the KMS key.

  • kms_access_role_arn (String, nil) (defaults to: nil)

    The Amazon Resource Name (ARN) of the IAM role assumed by AWS IoT Core to call AWS on behalf of the customer.

  • kms_key_arn (String, nil) (defaults to: nil)

    The ARN of the customer managed KMS key.



12
13
14
15
16
17
18
19
# File 'io_t/cfn_encryption_configuration_props.rb', line 12

def initialize(encryption_type:, kms_access_role_arn: nil, kms_key_arn: nil)
  @encryption_type = encryption_type
  Jsii::Type.check_type(@encryption_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "encryptionType")
  @kms_access_role_arn = kms_access_role_arn
  Jsii::Type.check_type(@kms_access_role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "kmsAccessRoleArn") unless @kms_access_role_arn.nil?
  @kms_key_arn = kms_key_arn
  Jsii::Type.check_type(@kms_key_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "kmsKeyArn") unless @kms_key_arn.nil?
end

Instance Attribute Details

#encryption_typeString (readonly)

The type of the KMS key.



25
26
27
# File 'io_t/cfn_encryption_configuration_props.rb', line 25

def encryption_type
  @encryption_type
end

#kms_access_role_arnString? (readonly)

The Amazon Resource Name (ARN) of the IAM role assumed by AWS IoT Core to call AWS on behalf of the customer.



30
31
32
# File 'io_t/cfn_encryption_configuration_props.rb', line 30

def kms_access_role_arn
  @kms_access_role_arn
end

#kms_key_arnString? (readonly)

The ARN of the customer managed KMS key.



35
36
37
# File 'io_t/cfn_encryption_configuration_props.rb', line 35

def kms_key_arn
  @kms_key_arn
end

Class Method Details

.jsii_propertiesObject



37
38
39
40
41
42
43
# File 'io_t/cfn_encryption_configuration_props.rb', line 37

def self.jsii_properties
  {
    :encryption_type => "encryptionType",
    :kms_access_role_arn => "kmsAccessRoleArn",
    :kms_key_arn => "kmsKeyArn",
  }
end

Instance Method Details

#to_jsiiObject



45
46
47
48
49
50
51
52
53
# File 'io_t/cfn_encryption_configuration_props.rb', line 45

def to_jsii
  result = {}
  result.merge!({
    "encryptionType" => @encryption_type,
    "kmsAccessRoleArn" => @kms_access_role_arn,
    "kmsKeyArn" => @kms_key_arn,
  })
  result.compact
end