Class: AWSCDK::KinesisAnalyticsv2::CfnApplication::ApplicationEncryptionConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
kinesis_analyticsv2/cfn_application.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.



788
789
790
791
792
793
# File 'kinesis_analyticsv2/cfn_application.rb', line 788

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.



804
805
806
# File 'kinesis_analyticsv2/cfn_application.rb', line 804

def key_id
  @key_id
end

#key_typeString (readonly)

Specifies the type of key used for encryption at rest.



799
800
801
# File 'kinesis_analyticsv2/cfn_application.rb', line 799

def key_type
  @key_type
end

Class Method Details

.jsii_propertiesObject



806
807
808
809
810
811
# File 'kinesis_analyticsv2/cfn_application.rb', line 806

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

Instance Method Details

#to_jsiiObject



813
814
815
816
817
818
819
820
# File 'kinesis_analyticsv2/cfn_application.rb', line 813

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