Class AssetProps
(experimental) Properties of the image repository for Source.fromAsset()
.
Inheritance
System.Object
AssetProps
Implements
Namespace: Amazon.CDK.AWS.AppRunner.Alpha
Assembly: Amazon.CDK.AWS.AppRunner.Alpha.dll
Syntax (csharp)
public class AssetProps : Object, IAssetProps
Syntax (vb)
Public Class AssetProps
Inherits Object
Implements IAssetProps
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.Ecr.Assets;
var imageAsset = new DockerImageAsset(this, "ImageAssets", new DockerImageAssetProps {
Directory = Join(__dirname, "docker.assets")
});
new Service(this, "Service", new ServiceProps {
Source = Source.FromAsset(new AssetProps {
ImageConfiguration = new ImageConfiguration { Port = 8000 },
Asset = imageAsset
}),
AutoDeploymentsEnabled = true
});
Synopsis
Constructors
AssetProps() |
Properties
Asset | (experimental) Represents the docker image asset. |
ImageConfiguration | (experimental) The image configuration for the image built from the asset. |
Constructors
AssetProps()
public AssetProps()
Properties
Asset
(experimental) Represents the docker image asset.
public DockerImageAsset Asset { get; set; }
Property Value
Remarks
Stability: Experimental
ImageConfiguration
(experimental) The image configuration for the image built from the asset.
public IImageConfiguration ImageConfiguration { get; set; }
Property Value
Remarks
Default: - no image configuration will be passed. The default port
will be 8080.
Stability: Experimental