@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-22T10:27:19.080Z") @Stability(value=Stable) public interface AssetProps extends software.amazon.jsii.JsiiSerializable, AssetOptions
// Example automatically generated from non-compiling source. May contain errors.
import software.amazon.awscdk.services.s3.assets.Asset;
Instance instance;
Asset asset = Asset.Builder.create(this, "Asset")
.path("./configure.sh")
.build();
String localPath = instance.userData.addS3DownloadCommand(S3DownloadOptions.builder()
.bucket(asset.getBucket())
.bucketKey(asset.getS3ObjectKey())
.region("us-east-1")
.build());
instance.userData.addExecuteFileCommand(ExecuteFileOptions.builder()
.filePath(localPath)
.arguments("--verbose -y")
.build());
asset.grantRead(instance.getRole());
| Modifier and Type | Interface and Description |
|---|---|
static class |
AssetProps.Builder
A builder for
AssetProps |
static class |
AssetProps.Jsii$Proxy
An implementation for
AssetProps |
| Modifier and Type | Method and Description |
|---|---|
static AssetProps.Builder |
builder() |
String |
getPath()
The disk location of the asset.
|
getReadersgetAssetHash, getAssetHashType, getBundlinggetExclude, getFollowSymlinks, getIgnoreMode@Stability(value=Stable) @NotNull String getPath()
The path should refer to one of the following:
@Stability(value=Stable) static AssetProps.Builder builder()
builder in interface AssetOptionsbuilder in interface FileCopyOptionsAssetProps.Builder of AssetPropsCopyright © 2021. All rights reserved.