Class EcrPublicProps
(experimental) Properties of the image repository for Source.fromEcrPublic()
.
Inheritance
System.Object
EcrPublicProps
Implements
Namespace: Amazon.CDK.AWS.AppRunner.Alpha
Assembly: Amazon.CDK.AWS.AppRunner.Alpha.dll
Syntax (csharp)
public class EcrPublicProps : Object, IEcrPublicProps
Syntax (vb)
Public Class EcrPublicProps
Inherits Object
Implements IEcrPublicProps
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.EC2;
var vpc = new Vpc(this, "Vpc", new VpcProps {
IpAddresses = IpAddresses.Cidr("10.0.0.0/16")
});
var vpcConnector = new VpcConnector(this, "VpcConnector", new VpcConnectorProps {
Vpc = vpc,
VpcSubnets = vpc.SelectSubnets(new SubnetSelection { SubnetType = SubnetType.PUBLIC }),
VpcConnectorName = "MyVpcConnector"
});
new Service(this, "Service", new ServiceProps {
Source = Source.FromEcrPublic(new EcrPublicProps {
ImageConfiguration = new ImageConfiguration { Port = 8000 },
ImageIdentifier = "public.ecr.aws/aws-containers/hello-app-runner:latest"
}),
VpcConnector = vpcConnector
});
Synopsis
Constructors
EcrPublicProps() |
Properties
ImageConfiguration | (experimental) The image configuration for the image from ECR Public. |
ImageIdentifier | (experimental) The ECR Public image URI. |
Constructors
EcrPublicProps()
public EcrPublicProps()
Properties
ImageConfiguration
(experimental) The image configuration for the image from ECR Public.
public IImageConfiguration ImageConfiguration { get; set; }
Property Value
Remarks
Default: - no image configuration will be passed. The default port
will be 8080.
Stability: Experimental
ImageIdentifier
(experimental) The ECR Public image URI.
public string ImageIdentifier { get; set; }
Property Value
System.String
Remarks
Stability: Experimental