@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:31.347Z") @Stability(value=Experimental) public class AssetCode extends Code
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.core.*;
import software.amazon.awscdk.assets.*;
import software.amazon.awscdk.services.glue.*;
import software.amazon.awscdk.services.iam.*;
DockerImage dockerImage;
IGrantable grantable;
ILocalBundling localBundling;
AssetCode assetCode = AssetCode.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();
| Modifier and Type | Class and Description |
|---|---|
static class |
AssetCode.Builder
(experimental) A fluent builder for
AssetCode. |
| Modifier | Constructor and Description |
|---|---|
protected |
AssetCode(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
AssetCode(software.amazon.jsii.JsiiObjectRef objRef) |
|
AssetCode(String path) |
|
AssetCode(String path,
AssetOptions options) |
| Modifier and Type | Method and Description |
|---|---|
CodeConfig |
bind(software.constructs.Construct scope,
IGrantable grantable)
(experimental) Called when the Job is initialized to allow this object to bind.
|
fromAsset, fromAsset, fromBucketjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected AssetCode(software.amazon.jsii.JsiiObjectRef objRef)
protected AssetCode(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public AssetCode(@NotNull
String path,
@Nullable
AssetOptions options)
path - The path to the Code file. This parameter is required.options - @Stability(value=Experimental)
public AssetCode(@NotNull
String path)
path - The path to the Code file. This parameter is required.@Stability(value=Experimental) @NotNull public CodeConfig bind(@NotNull software.constructs.Construct scope, @NotNull IGrantable grantable)
Copyright © 2022. All rights reserved.