AssetProps

class aws_cdk.aws_apprunner_alpha.AssetProps(*, asset, image_configuration=None)

Bases: object

(experimental) Properties of the image repository for Source.fromAsset().

Parameters:
  • asset (DockerImageAsset) – (experimental) Represents the docker image asset.

  • image_configuration (Union[ImageConfiguration, Dict[str, Any], None]) – (experimental) The image configuration for the image built from the asset. Default: - no image configuration will be passed. The default port will be 8080.

Stability:

experimental

ExampleMetadata:

infused

Example:

import aws_cdk.aws_ecr_assets as assets


image_asset = assets.DockerImageAsset(self, "ImageAssets",
    directory=path.join(__dirname, "docker.assets")
)
apprunner.Service(self, "Service",
    source=apprunner.Source.from_asset(
        image_configuration=apprunner.ImageConfiguration(port=8000),
        asset=image_asset
    ),
    auto_deployments_enabled=True
)

Attributes

asset

(experimental) Represents the docker image asset.

Stability:

experimental

image_configuration

(experimental) The image configuration for the image built from the asset.

Default:
  • no image configuration will be passed. The default port will be 8080.

See:

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-imageconfiguration.html#cfn-apprunner-service-imageconfiguration-port

Stability:

experimental