FileAsset
- class aws_cdk.cloud_assembly_schema.FileAsset(*, destinations, source)
Bases:
objectA 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.
- 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 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_arn="assumeRoleArn", assume_role_external_id="assumeRoleExternalId", region="region" ) }, source=cloud_assembly_schema.FileSource( executable=["executable"], packaging=cloud_assembly_schema.FileAssetPackaging.FILE, path="path" ) )
Attributes
- destinations
Destinations for this file asset.
- source
Source description for file assets.