@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:14.262Z") @Stability(value=Experimental) public interface AssetProps extends software.amazon.jsii.JsiiSerializable, AssetOptions
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()
(experimental) The disk location of the asset.
|
getExclude, getIgnoreMode, getReaders, getSourceHashgetFollowgetFollowSymlinksgetAssetHash, getAssetHashType, getBundling@Stability(value=Experimental) @NotNull String getPath()
The path should refer to one of the following:
@Stability(value=Experimental) static AssetProps.Builder builder()
builder in interface AssetOptionsbuilder in interface CopyOptionsbuilder in interface FileCopyOptionsAssetProps.Builder of AssetPropsCopyright © 2022. All rights reserved.