Class VpcConnector
(experimental) The App Runner VPC Connector.
Inherited Members
Namespace: Amazon.CDK.AWS.AppRunner.Alpha
Assembly: Amazon.CDK.AWS.AppRunner.Alpha.dll
Syntax (csharp)
public class VpcConnector : Resource, IVpcConnector, IResource, IConstruct, IDependable, IConnectable
Syntax (vb)
Public Class VpcConnector Inherits Resource Implements IVpcConnector, IResource, IConstruct, IDependable, IConnectable
Remarks
Stability: Experimental
Resource: AWS::AppRunner::VpcConnector
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
VpcConnector(Construct, string, IVpcConnectorProps) | (experimental) The App Runner VPC Connector. |
Properties
Connections | (experimental) Allows specifying security group connections for the VPC connector. |
PROPERTY_INJECTION_ID | (experimental) Uniquely identifies this class. |
VpcConnectorArn | (experimental) The ARN of the VPC connector. |
VpcConnectorName | (experimental) The name of the VPC connector. |
VpcConnectorRevision | (experimental) The revision of the VPC connector. |
Methods
FromVpcConnectorAttributes(Construct, string, IVpcConnectorAttributes) | (experimental) Import from VPC connector attributes. |
Constructors
VpcConnector(Construct, string, IVpcConnectorProps)
(experimental) The App Runner VPC Connector.
public VpcConnector(Construct scope, string id, IVpcConnectorProps props)
Parameters
- scope Construct
- id string
- props IVpcConnectorProps
Remarks
Stability: Experimental
Properties
Connections
(experimental) Allows specifying security group connections for the VPC connector.
public virtual Connections_ Connections { get; }
Property Value
Remarks
Stability: Experimental
PROPERTY_INJECTION_ID
(experimental) Uniquely identifies this class.
public static string PROPERTY_INJECTION_ID { get; }
Property Value
Remarks
Stability: Experimental
VpcConnectorArn
(experimental) The ARN of the VPC connector.
public virtual string VpcConnectorArn { get; }
Property Value
Remarks
Stability: Experimental
Attribute: true
VpcConnectorName
(experimental) The name of the VPC connector.
public virtual string VpcConnectorName { get; }
Property Value
Remarks
Stability: Experimental
Attribute: true
VpcConnectorRevision
(experimental) The revision of the VPC connector.
public virtual double VpcConnectorRevision { get; }
Property Value
Remarks
Stability: Experimental
Attribute: true
Methods
FromVpcConnectorAttributes(Construct, string, IVpcConnectorAttributes)
(experimental) Import from VPC connector attributes.
public static IVpcConnector FromVpcConnectorAttributes(Construct scope, string id, IVpcConnectorAttributes attrs)
Parameters
- scope Construct
- id string
- attrs IVpcConnectorAttributes
Returns
Remarks
Stability: Experimental