Class: AWSCDK::KinesisAnalytics::CfnApplicationV2::ApplicationEncryptionConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
kinesis_analytics/cfn_application_v2.rb

Overview

Specifies the configuration to manage encryption at rest.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key_type:, key_id: nil) ⇒ ApplicationEncryptionConfigurationProperty

Returns a new instance of ApplicationEncryptionConfigurationProperty.

Parameters:

  • key_type (String)

    Specifies the type of key used for encryption at rest.

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

    The key ARN, key ID, alias ARN, or alias name of the KMS key used for encryption at rest.



789
790
791
792
793
794
# File 'kinesis_analytics/cfn_application_v2.rb', line 789

def initialize(key_type:, key_id: nil)
  @key_type = key_type
  Jsii::Type.check_type(@key_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "keyType")
  @key_id = key_id
  Jsii::Type.check_type(@key_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "keyId") unless @key_id.nil?
end

Instance Attribute Details

#key_idString? (readonly)

The key ARN, key ID, alias ARN, or alias name of the KMS key used for encryption at rest.



805
806
807
# File 'kinesis_analytics/cfn_application_v2.rb', line 805

def key_id
  @key_id
end

#key_typeString (readonly)

Specifies the type of key used for encryption at rest.



800
801
802
# File 'kinesis_analytics/cfn_application_v2.rb', line 800

def key_type
  @key_type
end

Class Method Details

.jsii_propertiesObject



807
808
809
810
811
812
# File 'kinesis_analytics/cfn_application_v2.rb', line 807

def self.jsii_properties
  {
    :key_type => "keyType",
    :key_id => "keyId",
  }
end

Instance Method Details

#to_jsiiObject



814
815
816
817
818
819
820
821
# File 'kinesis_analytics/cfn_application_v2.rb', line 814

def to_jsii
  result = {}
  result.merge!({
    "keyType" => @key_type,
    "keyId" => @key_id,
  })
  result.compact
end