Class AssetCode
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.synthetics.alpha.Code
software.amazon.awscdk.services.synthetics.alpha.AssetCode
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.89.0 (build 2f74b3e)",
date="2023-10-16T19:21:19.995Z")
@Stability(Deprecated)
@Deprecated
public class AssetCode
extends Code
Deprecated.
(deprecated) Canary code from an Asset.
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)
.platform("platform")
.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())
.deployTime(false)
.exclude(List.of("exclude"))
.followSymlinks(SymlinkFollowMode.NEVER)
.ignoreMode(IgnoreMode.GLOB)
.readers(List.of(grantable))
.build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionDeprecated.AssetCode(String assetPath, AssetOptions options) Deprecated.protectedAssetCode(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) Deprecated.protectedAssetCode(software.amazon.jsii.JsiiObjectRef objRef) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionbind(software.constructs.Construct scope, String handler, RuntimeFamily family) Deprecated.Methods inherited from class software.amazon.awscdk.services.synthetics.alpha.Code
fromAsset, fromAsset, fromBucket, fromBucket, fromInlineMethods 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
-
AssetCode
protected AssetCode(software.amazon.jsii.JsiiObjectRef objRef) Deprecated. -
AssetCode
protected AssetCode(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) Deprecated. -
AssetCode
@Stability(Deprecated) @Deprecated public AssetCode(@NotNull String assetPath, @Nullable AssetOptions options) Deprecated.- Parameters:
assetPath- The path to the asset file or directory. This parameter is required.options-
-
AssetCode
Deprecated.- Parameters:
assetPath- The path to the asset file or directory. This parameter is required.
-
-
Method Details
-
bind
@Stability(Deprecated) @Deprecated @NotNull public CodeConfig bind(@NotNull software.constructs.Construct scope, @NotNull String handler, @NotNull RuntimeFamily family) Deprecated.(deprecated) Called when the canary is initialized to allow this object to bind to the stack, add resources and have fun.
-