Class AssetEnvironmentFile
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ecs.EnvironmentFile
software.amazon.awscdk.services.ecs.AssetEnvironmentFile
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:47.001Z")
@Stability(Stable)
public class AssetEnvironmentFile
extends EnvironmentFile
Environment file from a local directory.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.assets.*;
import software.amazon.awscdk.services.ecs.*;
import software.amazon.awscdk.services.iam.*;
import software.amazon.awscdk.core.*;
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)
.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"))
.follow(FollowMode.NEVER)
.followSymlinks(SymlinkFollowMode.NEVER)
.ignoreMode(IgnoreMode.GLOB)
.readers(List.of(grantable))
.sourceHash("sourceHash")
.build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionAssetEnvironmentFile(String path) AssetEnvironmentFile(String path, AssetOptions options) protectedAssetEnvironmentFile(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedAssetEnvironmentFile(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionCalled when the container is initialized to allow this object to bind to the stack.getPath()The path to the asset file or directory.Methods inherited from class software.amazon.awscdk.services.ecs.EnvironmentFile
fromAsset, fromAsset, fromBucket, fromBucketMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
AssetEnvironmentFile
protected AssetEnvironmentFile(software.amazon.jsii.JsiiObjectRef objRef) -
AssetEnvironmentFile
protected AssetEnvironmentFile(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
AssetEnvironmentFile
@Stability(Stable) public AssetEnvironmentFile(@NotNull String path, @Nullable AssetOptions options) - Parameters:
path- The path to the asset file or directory. This parameter is required.options-
-
AssetEnvironmentFile
- Parameters:
path- The path to the asset file or directory. This parameter is required.
-
-
Method Details
-
bind
Called when the container is initialized to allow this object to bind to the stack.- Specified by:
bindin classEnvironmentFile- Parameters:
scope- This parameter is required.
-
getPath
The path to the asset file or directory.
-