io.cloudshiftdev.awscdk.services.ecr.RepositoryEncryption.kt Maven / Gradle / Ivy
The newest version!
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.ecr
import io.cloudshiftdev.awscdk.common.CdkObject
import kotlin.String
/**
* Indicates whether server-side encryption is enabled for the object, and whether that encryption
* is from the AWS Key Management Service (AWS KMS) or from Amazon S3 managed encryption (SSE-S3).
*
* Example:
*
* ```
* Repository.Builder.create(this, "Repo")
* .encryption(RepositoryEncryption.KMS)
* .build();
* ```
*
* [Documentation](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#SysMetadata)
*/
public open class RepositoryEncryption(
cdkObject: software.amazon.awscdk.services.ecr.RepositoryEncryption,
) : CdkObject(cdkObject) {
/**
* the string value of the encryption.
*/
public open fun `value`(): String = unwrap(this).getValue()
public companion object {
public val AES_256: RepositoryEncryption =
RepositoryEncryption.wrap(software.amazon.awscdk.services.ecr.RepositoryEncryption.AES_256)
public val KMS: RepositoryEncryption =
RepositoryEncryption.wrap(software.amazon.awscdk.services.ecr.RepositoryEncryption.KMS)
internal fun wrap(cdkObject: software.amazon.awscdk.services.ecr.RepositoryEncryption):
RepositoryEncryption = RepositoryEncryption(cdkObject)
internal fun unwrap(wrapped: RepositoryEncryption):
software.amazon.awscdk.services.ecr.RepositoryEncryption = wrapped.cdkObject as
software.amazon.awscdk.services.ecr.RepositoryEncryption
}
}