FileAsset

class aws_cdk.cloud_assembly_schema.FileAsset(*, destinations, source, display_name=None)

Bases: object

A file asset.

Parameters:
  • destinations (Mapping[str, Union[FileDestination, Dict[str, Any]]]) – Destinations for this file asset.

  • source (Union[FileSource, Dict[str, Any]]) – Source description for file assets.

  • display_name (Optional[str]) – A display name for this asset. Default: - The identifier will be used as the display name

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.cloud_assembly_schema as cloud_assembly_schema

# assume_role_additional_options: Any

file_asset = cloud_assembly_schema.FileAsset(
    destinations={
        "destinations_key": cloud_assembly_schema.FileDestination(
            bucket_name="bucketName",
            object_key="objectKey",

            # the properties below are optional
            assume_role_additional_options={
                "assume_role_additional_options_key": assume_role_additional_options
            },
            assume_role_arn="assumeRoleArn",
            assume_role_external_id="assumeRoleExternalId",
            region="region"
        )
    },
    source=cloud_assembly_schema.FileSource(
        executable=["executable"],
        packaging=cloud_assembly_schema.FileAssetPackaging.FILE,
        path="path"
    ),

    # the properties below are optional
    display_name="displayName"
)

Attributes

destinations

Destinations for this file asset.

display_name

A display name for this asset.

Default:
  • The identifier will be used as the display name

source

Source description for file assets.