Interface AssetProps
- All Superinterfaces:
AssetOptions
,AssetOptions
,CopyOptions
,FileCopyOptions
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AssetProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:38.001Z")
@Stability(Stable)
public interface AssetProps
extends software.amazon.jsii.JsiiSerializable, AssetOptions
Example:
Asset asset = Asset.Builder.create(this, "BundledAsset") .path(join(__dirname, "markdown-asset")) // /asset-input and working directory in the container .bundling(BundlingOptions.builder() .image(DockerImage.fromBuild(join(__dirname, "alpine-markdown"))) // Build an image .command(List.of("sh", "-c", "\n markdown index.md > /asset-output/index.html\n ")) .build()) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forAssetProps
static final class
An implementation forAssetProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic AssetProps.Builder
builder()
getPath()
The disk location of the asset.Methods inherited from interface software.amazon.awscdk.core.AssetOptions
getAssetHash, getAssetHashType, getBundling
Methods inherited from interface software.amazon.awscdk.services.s3.assets.AssetOptions
getExclude, getIgnoreMode, getReaders, getSourceHash
Methods inherited from interface software.amazon.awscdk.assets.CopyOptions
getFollow
Methods inherited from interface software.amazon.awscdk.core.FileCopyOptions
getFollowSymlinks
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getPath
The disk location of the asset.The path should refer to one of the following:
- A regular file or a .zip file, in which case the file will be uploaded as-is to S3.
- A directory, in which case it will be archived into a .zip file and uploaded to S3.
-
builder
- Returns:
- a
AssetProps.Builder
ofAssetProps
-