interface AssetProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.AppRunner.Alpha.AssetProps |
![]() | github.com/aws/aws-cdk-go/awscdkapprunneralpha/v2#AssetProps |
![]() | software.amazon.awscdk.services.apprunner.alpha.AssetProps |
![]() | aws_cdk.aws_apprunner_alpha.AssetProps |
![]() | @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
Name | Type | Description |
---|---|---|
asset | Docker | Represents the docker image asset. |
image | Image | The image configuration for the image built from the asset. |
asset
Type:
Docker
Represents the docker image asset.
imageConfiguration?
Type:
Image
(optional, default: no image configuration will be passed. The default port
will be 8080.)
The image configuration for the image built from the asset.