All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cloudshift.awscdk.dsl.services.healthlake.CfnFHIRDatastoreKmsEncryptionConfigPropertyDsl.kt Maven / Gradle / Ivy

There is a newer version: 0.7.0
Show newest version
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")

package cloudshift.awscdk.dsl.services.healthlake

import cloudshift.awscdk.common.CdkDslMarker
import kotlin.String
import software.amazon.awscdk.services.healthlake.CfnFHIRDatastore

/**
 * 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.
 *
 * Example:
 *
 * ```
 * // The code below shows an example of how to instantiate this type.
 * // The values are placeholders you should change.
 * import software.amazon.awscdk.services.healthlake.*;
 * KmsEncryptionConfigProperty kmsEncryptionConfigProperty = KmsEncryptionConfigProperty.builder()
 * .cmkType("cmkType")
 * // the properties below are optional
 * .kmsKeyId("kmsKeyId")
 * .build();
 * ```
 *
 * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-healthlake-fhirdatastore-kmsencryptionconfig.html)
 */
@CdkDslMarker
public class CfnFHIRDatastoreKmsEncryptionConfigPropertyDsl {
  private val cdkBuilder: CfnFHIRDatastore.KmsEncryptionConfigProperty.Builder =
      CfnFHIRDatastore.KmsEncryptionConfigProperty.builder()

  /**
   * @param cmkType 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](https://docs.aws.amazon.com/healthlake/latest/APIReference/API_KmsEncryptionConfig.html#HealthLake-Type-KmsEncryptionConfig-CmkType)
   * .
   */
  public fun cmkType(cmkType: String) {
    cdkBuilder.cmkType(cmkType)
  }

  /**
   * @param kmsKeyId The KMS encryption key id/alias used to encrypt the Data Store contents at
   * rest.
   */
  public fun kmsKeyId(kmsKeyId: String) {
    cdkBuilder.kmsKeyId(kmsKeyId)
  }

  public fun build(): CfnFHIRDatastore.KmsEncryptionConfigProperty = cdkBuilder.build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy