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();
     
    • 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