# StackAsset

An asset used by a Stack.

- Source: [`pipelines/lib/blueprint/stack-deployment.ts`](https://github.com/aws/aws-cdk/blob/v2.273.0/packages/aws-cdk-lib/pipelines/lib/blueprint/stack-deployment.ts#L257)
- Type last changed: v2.187.0 · 31 Mar 2025

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { pipelines } from 'aws-cdk-lib';
const stackAsset: pipelines.StackAsset = {
  assetId: 'assetId',
  assetManifestPath: 'assetManifestPath',
  assetSelector: 'assetSelector',
  assetType: pipelines.AssetType.FILE,
  isTemplate: false,

  // the properties below are optional
  assetPublishingRoleArn: 'assetPublishingRoleArn',
  displayName: 'displayName',
};
```

## Properties

- `assetId`: string (required) — Asset identifier.

- `assetManifestPath`: string (required) — 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.

- `assetPublishingRoleArn`: string = No need to assume any role — Role ARN to assume to publish.

- `assetSelector`: string (required) — Asset selector to pass to `cdk-assets`.

- `assetType`: [AssetType](/cdk/api/v2/docs/aws-cdk-lib.pipelines.AssetType.html) (required) — Type of asset to publish.

- `displayName`: string = Use some generated string as display name — The display name of this asset.

  **Default:** Use some generated string as display name

- `isTemplate`: boolean (required) = false — Does this asset represent the CloudFormation template for the stack.
