@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-02-09T02:01:26.351Z") @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.services.synthetics.alpha.*;
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.iam.*;
DockerImage dockerImage;
IGrantable grantable;
ILocalBundling localBundling;
AssetCode assetCode = AssetCode.Builder.create("assetPath")
.assetHash("assetHash")
.assetHashType(AssetHashType.SOURCE)
.bundling(BundlingOptions.builder()
.image(dockerImage)
// the properties below are optional
.bundlingFileAccess(BundlingFileAccess.VOLUME_COPY)
.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()))
.volumesFrom(List.of("volumesFrom"))
.workingDirectory("workingDirectory")
.build())
.exclude(List.of("exclude"))
.followSymlinks(SymlinkFollowMode.NEVER)
.ignoreMode(IgnoreMode.GLOB)
.readers(List.of(grantable))
.build();
| Modifier | Constructor and Description |
|---|---|
protected |
AssetCode(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
AssetCode(software.amazon.jsii.JsiiObjectRef objRef) |
|
AssetCode(String assetPath) |
|
AssetCode(String assetPath,
AssetOptions options) |
| Modifier and Type | Method and Description |
|---|---|
CodeConfig |
bind(software.constructs.Construct scope,
String handler,
RuntimeFamily family)
(experimental) Called when the canary is initialized to allow this object to bind to the stack, add resources and have fun.
|
fromAsset, fromAsset, fromBucket, fromBucket, fromInlinejsiiAsyncCall, 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 assetPath,
@Nullable
AssetOptions options)
assetPath - The path to the asset file or directory. This parameter is required.options - @Stability(value=Experimental)
public AssetCode(@NotNull
String assetPath)
assetPath - The path to the asset file or directory. This parameter is required.@Stability(value=Experimental) @NotNull public CodeConfig bind(@NotNull software.constructs.Construct scope, @NotNull String handler, @NotNull RuntimeFamily family)
Copyright © 2023. All rights reserved.