Interface StackAsset

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
StackAsset.Jsii$Proxy

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-06T14:43:28.778Z") @Stability(Stable) public interface StackAsset extends software.amazon.jsii.JsiiSerializable
An asset used by a Stack.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.pipelines.*;
 StackAsset stackAsset = StackAsset.builder()
         .assetId("assetId")
         .assetManifestPath("assetManifestPath")
         .assetSelector("assetSelector")
         .assetType(AssetType.FILE)
         .isTemplate(false)
         // the properties below are optional
         .assetPublishingRoleArn("assetPublishingRoleArn")
         .build();
 
  • Method Details

    • getAssetId

      @Stability(Stable) @NotNull String getAssetId()
      Asset identifier.
    • getAssetManifestPath

      @Stability(Stable) @NotNull String getAssetManifestPath()
      Absolute asset manifest path.

      This needs to be made relative at a later point in time, but when this information is parsed we don't know about the root cloud assembly yet.

    • getAssetSelector

      @Stability(Stable) @NotNull String getAssetSelector()
      Asset selector to pass to cdk-assets.
    • getAssetType

      @Stability(Stable) @NotNull AssetType getAssetType()
      Type of asset to publish.
    • getIsTemplate

      @Stability(Stable) @NotNull Boolean getIsTemplate()
      Does this asset represent the CloudFormation template for the stack.

      Default: false

    • getAssetPublishingRoleArn

      @Stability(Stable) @Nullable default String getAssetPublishingRoleArn()
      Role ARN to assume to publish.

      Default: - No need to assume any role

    • builder

      @Stability(Stable) static StackAsset.Builder builder()
      Returns:
      a StackAsset.Builder of StackAsset