io.cloudshiftdev.awscdk.services.cloudfront.AccessLevel.kt Maven / Gradle / Ivy
The newest version!
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.cloudfront
public enum class AccessLevel(
private val cdkObject: software.amazon.awscdk.services.cloudfront.AccessLevel,
) {
READ(software.amazon.awscdk.services.cloudfront.AccessLevel.READ),
WRITE(software.amazon.awscdk.services.cloudfront.AccessLevel.WRITE),
DELETE(software.amazon.awscdk.services.cloudfront.AccessLevel.DELETE),
;
public companion object {
internal fun wrap(cdkObject: software.amazon.awscdk.services.cloudfront.AccessLevel):
AccessLevel = when (cdkObject) {
software.amazon.awscdk.services.cloudfront.AccessLevel.READ -> AccessLevel.READ
software.amazon.awscdk.services.cloudfront.AccessLevel.WRITE -> AccessLevel.WRITE
software.amazon.awscdk.services.cloudfront.AccessLevel.DELETE -> AccessLevel.DELETE
}
internal fun unwrap(wrapped: AccessLevel):
software.amazon.awscdk.services.cloudfront.AccessLevel = wrapped.cdkObject
}
}