Class: AWSCDK::HealthLake::CfnFHIRDatastore::KMSEncryptionConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
health_lake/cfn_fhir_datastore.rb

Overview

The customer-managed-key(CMK) used when creating a Data Store.

If a customer owned key is not specified, an Amazon owned key will be used for encryption.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cmk_type:, kms_key_id: nil) ⇒ KMSEncryptionConfigProperty

Returns a new instance of KMSEncryptionConfigProperty.

Parameters:

  • cmk_type (String)

    The type of customer-managed-key(CMK) used for encryption.

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

    The Key Management Service (KMS) encryption key id/alias used to encrypt the data store contents at rest.



788
789
790
791
792
793
# File 'health_lake/cfn_fhir_datastore.rb', line 788

def initialize(cmk_type:, kms_key_id: nil)
  @cmk_type = cmk_type
  Jsii::Type.check_type(@cmk_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cmkType")
  @kms_key_id = kms_key_id
  Jsii::Type.check_type(@kms_key_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "kmsKeyId") unless @kms_key_id.nil?
end

Instance Attribute Details

#cmk_typeString (readonly)

The type of customer-managed-key(CMK) used for encryption.

The two types of supported CMKs are customer owned CMKs and Amazon owned CMKs. For more information on CMK types, see KmsEncryptionConfig .



801
802
803
# File 'health_lake/cfn_fhir_datastore.rb', line 801

def cmk_type
  @cmk_type
end

#kms_key_idString? (readonly)

The Key Management Service (KMS) encryption key id/alias used to encrypt the data store contents at rest.



806
807
808
# File 'health_lake/cfn_fhir_datastore.rb', line 806

def kms_key_id
  @kms_key_id
end

Class Method Details

.jsii_propertiesObject



808
809
810
811
812
813
# File 'health_lake/cfn_fhir_datastore.rb', line 808

def self.jsii_properties
  {
    :cmk_type => "cmkType",
    :kms_key_id => "kmsKeyId",
  }
end

Instance Method Details

#to_jsiiObject



815
816
817
818
819
820
821
822
# File 'health_lake/cfn_fhir_datastore.rb', line 815

def to_jsii
  result = {}
  result.merge!({
    "cmkType" => @cmk_type,
    "kmsKeyId" => @kms_key_id,
  })
  result.compact
end