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

io.cloudshiftdev.awscdk.cxapi.EnvironmentUtils.kt Maven / Gradle / Ivy

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

package io.cloudshiftdev.awscdk.cxapi

import io.cloudshiftdev.awscdk.common.CdkObject
import kotlin.String

/**
 * Example:
 *
 * ```
 * // The code below shows an example of how to instantiate this type.
 * // The values are placeholders you should change.
 * import io.cloudshiftdev.awscdk.cxapi.*;
 * EnvironmentUtils environmentUtils = new EnvironmentUtils();
 * ```
 */
public open class EnvironmentUtils(
  cdkObject: software.amazon.awscdk.cxapi.EnvironmentUtils,
) : CdkObject(cdkObject) {
  public constructor() : this(software.amazon.awscdk.cxapi.EnvironmentUtils()
  )

  public companion object {
    public fun format(account: String, region: String): String =
        software.amazon.awscdk.cxapi.EnvironmentUtils.format(account, region)

    public fun make(account: String, region: String): Environment =
        software.amazon.awscdk.cxapi.EnvironmentUtils.make(account, region).let(Environment::wrap)

    public fun parse(environment: String): Environment =
        software.amazon.awscdk.cxapi.EnvironmentUtils.parse(environment).let(Environment::wrap)

    internal fun wrap(cdkObject: software.amazon.awscdk.cxapi.EnvironmentUtils): EnvironmentUtils =
        EnvironmentUtils(cdkObject)

    internal fun unwrap(wrapped: EnvironmentUtils): software.amazon.awscdk.cxapi.EnvironmentUtils =
        wrapped.cdkObject as software.amazon.awscdk.cxapi.EnvironmentUtils
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy