Interface FileAsset
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
FileAsset.Jsii$Proxy
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)", date="2026-07-30T08:06:26.702Z") @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.cloudassembly.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 Modifier and Type Interface Description static classFileAsset.BuilderA builder forFileAssetstatic classFileAsset.Jsii$ProxyAn implementation forFileAsset
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static FileAsset.Builderbuilder()Map<String,FileDestination>getDestinations()Destinations for this file asset.default StringgetDisplayName()A display name for this asset.FileSourcegetSource()Source description for file assets.
-
-
-
Method Detail
-
getDestinations
@Stability(Stable) @NotNull Map<String,FileDestination> getDestinations()
Destinations for this file asset.
-
getSource
@Stability(Stable) @NotNull FileSource getSource()
Source description for file assets.
-
getDisplayName
@Stability(Stable) @Nullable default String getDisplayName()
A display name for this asset.Default: - The identifier will be used as the display name
-
builder
@Stability(Stable) static FileAsset.Builder builder()
- Returns:
- a
FileAsset.BuilderofFileAsset
-
-