![JAR search and dependency download from the Maven repository](/logo.png)
io.cloudshiftdev.awscdk.services.ecs.S3EnvironmentFile.kt Maven / Gradle / Ivy
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.ecs
import io.cloudshiftdev.awscdk.services.s3.IBucket
import io.cloudshiftdev.constructs.Construct
import kotlin.String
/**
* Environment file from S3.
*
* Example:
*
* ```
* // The code below shows an example of how to instantiate this type.
* // The values are placeholders you should change.
* import io.cloudshiftdev.awscdk.services.ecs.*;
* import io.cloudshiftdev.awscdk.services.s3.*;
* Bucket bucket;
* S3EnvironmentFile s3EnvironmentFile = new S3EnvironmentFile(bucket, "key", "objectVersion");
* ```
*/
public open class S3EnvironmentFile(
cdkObject: software.amazon.awscdk.services.ecs.S3EnvironmentFile,
) : EnvironmentFile(cdkObject) {
public constructor(bucket: IBucket, key: String) :
this(software.amazon.awscdk.services.ecs.S3EnvironmentFile(bucket.let(IBucket.Companion::unwrap),
key)
)
public constructor(
bucket: IBucket,
key: String,
objectVersion: String,
) :
this(software.amazon.awscdk.services.ecs.S3EnvironmentFile(bucket.let(IBucket.Companion::unwrap),
key, objectVersion)
)
/**
* Called when the container is initialized to allow this object to bind to the stack.
*
* @param _scope
*/
public override fun bind(scope: Construct): EnvironmentFileConfig =
unwrap(this).bind(scope.let(Construct.Companion::unwrap)).let(EnvironmentFileConfig::wrap)
public companion object {
internal fun wrap(cdkObject: software.amazon.awscdk.services.ecs.S3EnvironmentFile):
S3EnvironmentFile = S3EnvironmentFile(cdkObject)
internal fun unwrap(wrapped: S3EnvironmentFile):
software.amazon.awscdk.services.ecs.S3EnvironmentFile = wrapped.cdkObject as
software.amazon.awscdk.services.ecs.S3EnvironmentFile
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy