@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.571Z") @Stability(value=Stable) public class AssetEnvironmentFile extends EnvironmentFile
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.ecs.*;
import software.amazon.awscdk.services.iam.*;
DockerImage dockerImage;
IGrantable grantable;
ILocalBundling localBundling;
AssetEnvironmentFile assetEnvironmentFile = AssetEnvironmentFile.Builder.create("path")
.assetHash("assetHash")
.assetHashType(AssetHashType.SOURCE)
.bundling(BundlingOptions.builder()
.image(dockerImage)
// the properties below are optional
.command(List.of("command"))
.entrypoint(List.of("entrypoint"))
.environment(Map.of(
"environmentKey", "environment"))
.local(localBundling)
.network("network")
.outputType(BundlingOutput.ARCHIVED)
.securityOpt("securityOpt")
.user("user")
.volumes(List.of(DockerVolume.builder()
.containerPath("containerPath")
.hostPath("hostPath")
// the properties below are optional
.consistency(DockerVolumeConsistency.CONSISTENT)
.build()))
.workingDirectory("workingDirectory")
.build())
.exclude(List.of("exclude"))
.followSymlinks(SymlinkFollowMode.NEVER)
.ignoreMode(IgnoreMode.GLOB)
.readers(List.of(grantable))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
AssetEnvironmentFile.Builder
A fluent builder for
AssetEnvironmentFile. |
| Modifier | Constructor and Description |
|---|---|
protected |
AssetEnvironmentFile(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
AssetEnvironmentFile(software.amazon.jsii.JsiiObjectRef objRef) |
|
AssetEnvironmentFile(String path) |
|
AssetEnvironmentFile(String path,
AssetOptions options) |
| Modifier and Type | Method and Description |
|---|---|
EnvironmentFileConfig |
bind(software.constructs.Construct scope)
Called when the container is initialized to allow this object to bind to the stack.
|
String |
getPath()
The path to the asset file or directory.
|
fromAsset, fromAsset, fromBucket, fromBucketjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected AssetEnvironmentFile(software.amazon.jsii.JsiiObjectRef objRef)
protected AssetEnvironmentFile(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public AssetEnvironmentFile(@NotNull
String path,
@Nullable
AssetOptions options)
path - The path to the asset file or directory. This parameter is required.options - @Stability(value=Stable)
public AssetEnvironmentFile(@NotNull
String path)
path - The path to the asset file or directory. This parameter is required.@Stability(value=Stable) @NotNull public EnvironmentFileConfig bind(@NotNull software.constructs.Construct scope)
bind in class EnvironmentFilescope - This parameter is required.@Stability(value=Stable) @NotNull public String getPath()
Copyright © 2022. All rights reserved.