Show / Hide Table of Contents

Interface IVpcConnectorProps

(experimental) Properties of the AppRunner VPC Connector.

Namespace: Amazon.CDK.AWS.AppRunner.Alpha
Assembly: Amazon.CDK.AWS.AppRunner.Alpha.dll
Syntax (csharp)
public interface IVpcConnectorProps
Syntax (vb)
Public Interface IVpcConnectorProps
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

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.

Properties

SecurityGroups

(experimental) A list of IDs of security groups that App Runner should use for access to AWS resources under the specified subnets.

ISecurityGroup[]? SecurityGroups { get; }
Property Value

ISecurityGroup[]

Remarks

Default: - a new security group will be created in the specified VPC

Stability: Experimental

Vpc

(experimental) The VPC for the VPC Connector.

IVpc Vpc { get; }
Property Value

IVpc

Remarks

Stability: Experimental

VpcConnectorName

(experimental) The name for the VpcConnector.

string? VpcConnectorName { get; }
Property Value

string

Remarks

Default: - a name generated by CloudFormation

Stability: Experimental

VpcSubnets

(experimental) Where to place the VPC Connector within the VPC.

ISubnetSelection? VpcSubnets { get; }
Property Value

ISubnetSelection

Remarks

Default: - Private subnets.

Stability: Experimental

Back to top Generated by DocFX