StackAsset

class aws_cdk.pipelines.StackAsset(*, asset_id, asset_manifest_path, asset_selector, asset_type, is_template, asset_publishing_role_arn=None)

Bases: object

An asset used by a Stack.

Parameters:
  • asset_id (str) – Asset identifier.

  • asset_manifest_path (str) – 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.

  • asset_selector (str) – Asset selector to pass to cdk-assets.

  • asset_type (AssetType) – Type of asset to publish.

  • is_template (bool) – Does this asset represent the CloudFormation template for the stack. Default: false

  • asset_publishing_role_arn (Optional[str]) – Role ARN to assume to publish. Default: - No need to assume any role

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import pipelines

stack_asset = pipelines.StackAsset(
    asset_id="assetId",
    asset_manifest_path="assetManifestPath",
    asset_selector="assetSelector",
    asset_type=pipelines.AssetType.FILE,
    is_template=False,

    # the properties below are optional
    asset_publishing_role_arn="assetPublishingRoleArn"
)

Attributes

asset_id

Asset identifier.

asset_manifest_path

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.

asset_publishing_role_arn

Role ARN to assume to publish.

Default:
  • No need to assume any role

asset_selector

Asset selector to pass to cdk-assets.

asset_type

Type of asset to publish.

is_template

Does this asset represent the CloudFormation template for the stack.

Default:

false