Class VpcConnectorProps
(experimental) Properties of the AppRunner VPC Connector.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.AppRunner
Assembly: Amazon.CDK.AWS.AppRunner.dll
Syntax (csharp)
public class VpcConnectorProps : Object, IVpcConnectorProps
Syntax (vb)
Public Class VpcConnectorProps
Inherits Object
Implements IVpcConnectorProps
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.EC2;
var vpc = new Vpc(this, "Vpc", new VpcProps {
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
VpcConnectorProps() |
Properties
SecurityGroups | (experimental) A list of IDs of security groups that App Runner should use for access to AWS resources under the specified subnets. |
Vpc | (experimental) The VPC for the VPC Connector. |
VpcConnectorName | (experimental) The name for the VpcConnector. |
VpcSubnets | (experimental) Where to place the VPC Connector within the VPC. |
Constructors
VpcConnectorProps()
public VpcConnectorProps()
Properties
SecurityGroups
(experimental) A list of IDs of security groups that App Runner should use for access to AWS resources under the specified subnets.
public ISecurityGroup[] SecurityGroups { get; set; }
Property Value
Remarks
Default: - a new security group will be created in the specified VPC
Stability: Experimental
Vpc
(experimental) The VPC for the VPC Connector.
public IVpc Vpc { get; set; }
Property Value
Remarks
Stability: Experimental
VpcConnectorName
(experimental) The name for the VpcConnector.
public string VpcConnectorName { get; set; }
Property Value
System.String
Remarks
Default: - a name generated by CloudFormation
Stability: Experimental
VpcSubnets
(experimental) Where to place the VPC Connector within the VPC.
public ISubnetSelection VpcSubnets { get; set; }
Property Value
Remarks
Default: - Private subnets.
Stability: Experimental