io.cloudshiftdev.awscdk.NestedStackSynthesizer.kt Maven / Gradle / Ivy
The newest version!
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk
import kotlin.String
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Synthesizer for a nested stack.
*
* Forwards all calls to the parent stack's synthesizer.
*
* This synthesizer is automatically used for `NestedStack` constructs.
* App builder do not need to use this class directly.
*
* Example:
*
* ```
* // The code below shows an example of how to instantiate this type.
* // The values are placeholders you should change.
* import io.cloudshiftdev.awscdk.*;
* StackSynthesizer stackSynthesizer;
* NestedStackSynthesizer nestedStackSynthesizer = new NestedStackSynthesizer(stackSynthesizer);
* ```
*/
public open class NestedStackSynthesizer(
cdkObject: software.amazon.awscdk.NestedStackSynthesizer,
) : StackSynthesizer(cdkObject) {
public constructor(parentDeployment: IStackSynthesizer) :
this(software.amazon.awscdk.NestedStackSynthesizer(parentDeployment.let(IStackSynthesizer.Companion::unwrap))
)
/**
* Register a Docker Image Asset.
*
* Returns the parameters that can be used to refer to the asset inside the template.
*
* The synthesizer must rely on some out-of-band mechanism to make sure the given files
* are actually placed in the returned location before the deployment happens. This can
* be by writing the instructions to the asset manifest (for use by the `cdk-assets` tool),
* by relying on the CLI to upload files (legacy behavior), or some other operator controlled
* mechanism.
*
* @param asset
*/
public override fun addDockerImageAsset(asset: DockerImageAssetSource): DockerImageAssetLocation =
unwrap(this).addDockerImageAsset(asset.let(DockerImageAssetSource.Companion::unwrap)).let(DockerImageAssetLocation::wrap)
/**
* Register a Docker Image Asset.
*
* Returns the parameters that can be used to refer to the asset inside the template.
*
* The synthesizer must rely on some out-of-band mechanism to make sure the given files
* are actually placed in the returned location before the deployment happens. This can
* be by writing the instructions to the asset manifest (for use by the `cdk-assets` tool),
* by relying on the CLI to upload files (legacy behavior), or some other operator controlled
* mechanism.
*
* @param asset
*/
@kotlin.Suppress("INAPPLICABLE_JVM_NAME")
@JvmName("60e85405255a4559d9d101644bfe36735011455aae5a7b2c0ff140d999863ded")
public override fun addDockerImageAsset(asset: DockerImageAssetSource.Builder.() -> Unit):
DockerImageAssetLocation = addDockerImageAsset(DockerImageAssetSource(asset))
/**
* Register a File Asset.
*
* Returns the parameters that can be used to refer to the asset inside the template.
*
* The synthesizer must rely on some out-of-band mechanism to make sure the given files
* are actually placed in the returned location before the deployment happens. This can
* be by writing the instructions to the asset manifest (for use by the `cdk-assets` tool),
* by relying on the CLI to upload files (legacy behavior), or some other operator controlled
* mechanism.
*
* @param asset
*/
public override fun addFileAsset(asset: FileAssetSource): FileAssetLocation =
unwrap(this).addFileAsset(asset.let(FileAssetSource.Companion::unwrap)).let(FileAssetLocation::wrap)
/**
* Register a File Asset.
*
* Returns the parameters that can be used to refer to the asset inside the template.
*
* The synthesizer must rely on some out-of-band mechanism to make sure the given files
* are actually placed in the returned location before the deployment happens. This can
* be by writing the instructions to the asset manifest (for use by the `cdk-assets` tool),
* by relying on the CLI to upload files (legacy behavior), or some other operator controlled
* mechanism.
*
* @param asset
*/
@kotlin.Suppress("INAPPLICABLE_JVM_NAME")
@JvmName("b8c4a8252dd3ca6f0e54c1277f4347dc34084a3d362bd2ed69cb738a218590d6")
public override fun addFileAsset(asset: FileAssetSource.Builder.() -> Unit): FileAssetLocation =
addFileAsset(FileAssetSource(asset))
/**
* The qualifier used to bootstrap this stack.
*/
public override fun bootstrapQualifier(): String? = unwrap(this).getBootstrapQualifier()
/**
* The role used to lookup for this stack.
*/
public override fun lookupRole(): String? = unwrap(this).getLookupRole()
/**
* Synthesize the associated stack to the session.
*
* @param session
*/
public override fun synthesize(session: ISynthesisSession) {
unwrap(this).synthesize(session.let(ISynthesisSession.Companion::unwrap))
}
public companion object {
internal fun wrap(cdkObject: software.amazon.awscdk.NestedStackSynthesizer):
NestedStackSynthesizer = NestedStackSynthesizer(cdkObject)
internal fun unwrap(wrapped: NestedStackSynthesizer):
software.amazon.awscdk.NestedStackSynthesizer = wrapped.cdkObject as
software.amazon.awscdk.NestedStackSynthesizer
}
}