@aws-cdk_aws-apprunner-alpha.AssetProps

interface AssetProps ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.AppRunner.Alpha.AssetProps
Gogithub.com/aws/aws-cdk-go/awscdkapprunneralpha/v2#AssetProps
Javasoftware.amazon.awscdk.services.apprunner.alpha.AssetProps
Pythonaws_cdk.aws_apprunner_alpha.AssetProps
TypeScript (source)@aws-cdk/aws-apprunner-alpha ยป AssetProps

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

Example

import * as assets from 'aws-cdk-lib/aws-ecr-assets';

const imageAsset = new assets.DockerImageAsset(this, 'ImageAssets', {
  directory: path.join(__dirname, './docker.assets'),
});
new apprunner.Service(this, 'Service', {
  source: apprunner.Source.fromAsset({
    imageConfiguration: { port: 8000 },
    asset: imageAsset,
  }),
  autoDeploymentsEnabled: true,
});

Properties

NameTypeDescription
asset๐Ÿ”นDockerImageAssetRepresents the docker image asset.
imageConfiguration?๐Ÿ”นImageConfigurationThe image configuration for the image built from the asset.

asset๐Ÿ”น

Type: DockerImageAsset

Represents the docker image asset.


imageConfiguration?๐Ÿ”น

Type: ImageConfiguration (optional, default: no image configuration will be passed. The default port will be 8080.)

The image configuration for the image built from the asset.

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