Interface FileAsset
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
FileAsset.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:16.202Z")
@Stability(Stable)
public interface FileAsset
extends software.amazon.jsii.JsiiSerializable
A file 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.cloud_assembly_schema.*;
Object assumeRoleAdditionalOptions;
FileAsset fileAsset = FileAsset.builder()
.destinations(Map.of(
"destinationsKey", FileDestination.builder()
.bucketName("bucketName")
.objectKey("objectKey")
// the properties below are optional
.assumeRoleAdditionalOptions(Map.of(
"assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions))
.assumeRoleArn("assumeRoleArn")
.assumeRoleExternalId("assumeRoleExternalId")
.region("region")
.build()))
.source(FileSource.builder()
.executable(List.of("executable"))
.packaging(FileAssetPackaging.FILE)
.path("path")
.build())
// the properties below are optional
.displayName("displayName")
.build();
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic FileAsset.Builderbuilder()Destinations for this file asset.default StringA display name for this asset.Source description for file assets.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDestinations
Destinations for this file asset. -
getSource
Source description for file assets. -
getDisplayName
A display name for this asset.Default: - The identifier will be used as the display name
-
builder
- Returns:
- a
FileAsset.BuilderofFileAsset
-