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, IConnectable
Syntax (vb)
Public Class VpcConnector
Inherits Resource
Implements IVpcConnector, IResource, 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(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
VpcConnector(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
VpcConnector(Construct, String, IVpcConnectorProps) |
Properties
Connections | (experimental) Allows specifying security group connections for the VPC connector. |
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(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected VpcConnector(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
VpcConnector(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected VpcConnector(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
VpcConnector(Construct, String, IVpcConnectorProps)
public VpcConnector(Construct scope, string id, IVpcConnectorProps props)
Parameters
- scope Constructs.Construct
- id System.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
VpcConnectorArn
(experimental) The ARN of the VPC connector.
public virtual string VpcConnectorArn { get; }
Property Value
System.String
Remarks
Stability: Experimental
Attribute: true
VpcConnectorName
(experimental) The name of the VPC connector.
public virtual string VpcConnectorName { get; }
Property Value
System.String
Remarks
Stability: Experimental
Attribute: true
VpcConnectorRevision
(experimental) The revision of the VPC connector.
public virtual double VpcConnectorRevision { get; }
Property Value
System.Double
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 Constructs.Construct
- id System.String
- attrs IVpcConnectorAttributes
Returns
Remarks
Stability: Experimental