AssetManifestFileDestination

class aws_cdk.AssetManifestFileDestination(*, bucket_name, bucket_prefix=None, role=None)

Bases: object

The destination for a file asset, when it is given to the AssetManifestBuilder.

Parameters:
  • bucket_name (str) – Bucket name where the file asset should be written.

  • bucket_prefix (Optional[str]) – Prefix to prepend to the asset hash. Default: ‘’

  • role (Union[RoleOptions, Dict[str, Any], None]) – Role to use for uploading. Default: - current role

ExampleMetadata:

fixture=_generated

Example:

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

asset_manifest_file_destination = cdk.AssetManifestFileDestination(
    bucket_name="bucketName",

    # the properties below are optional
    bucket_prefix="bucketPrefix",
    role=cdk.RoleOptions(
        assume_role_arn="assumeRoleArn",

        # the properties below are optional
        assume_role_external_id="assumeRoleExternalId"
    )
)

Attributes

bucket_name

Bucket name where the file asset should be written.

bucket_prefix

Prefix to prepend to the asset hash.

Default:

‘’

role

Role to use for uploading.

Default:
  • current role