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

io.cloudshiftdev.awscdk.services.ec2.Action.kt Maven / Gradle / Ivy

The newest version!
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")

package io.cloudshiftdev.awscdk.services.ec2

public enum class Action(
  private val cdkObject: software.amazon.awscdk.services.ec2.Action,
) {
  ALLOW(software.amazon.awscdk.services.ec2.Action.ALLOW),
  DENY(software.amazon.awscdk.services.ec2.Action.DENY),
  ;

  public companion object {
    internal fun wrap(cdkObject: software.amazon.awscdk.services.ec2.Action): Action = when
        (cdkObject) {
      software.amazon.awscdk.services.ec2.Action.ALLOW -> Action.ALLOW
      software.amazon.awscdk.services.ec2.Action.DENY -> Action.DENY
    }

    internal fun unwrap(wrapped: Action): software.amazon.awscdk.services.ec2.Action =
        wrapped.cdkObject
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy