Class CfnVpcConnector
A CloudFormation AWS::AppRunner::VpcConnector
.
Inherited Members
Namespace: Amazon.CDK.AWS.AppRunner
Assembly: Amazon.CDK.AWS.AppRunner.dll
Syntax (csharp)
public class CfnVpcConnector : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnVpcConnector
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
Specify an AWS App Runner VPC connector by using the AWS::AppRunner::VpcConnector
resource in an AWS CloudFormation template.
The AWS::AppRunner::VpcConnector
resource is an AWS App Runner resource type that specifies an App Runner VPC connector.
App Runner requires this resource when you want to associate your App Runner service to a custom Amazon Virtual Private Cloud ( Amazon VPC ).
CloudformationResource: AWS::AppRunner::VpcConnector
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppRunner;
var cfnVpcConnector = new CfnVpcConnector(this, "MyCfnVpcConnector", new CfnVpcConnectorProps {
Subnets = new [] { "subnets" },
// the properties below are optional
SecurityGroups = new [] { "securityGroups" },
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
VpcConnectorName = "vpcConnectorName"
});
Synopsis
Constructors
CfnVpcConnector(Construct, String, ICfnVpcConnectorProps) | Create a new |
CfnVpcConnector(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnVpcConnector(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
AttrVpcConnectorArn | The Amazon Resource Name (ARN) of this VPC connector. |
AttrVpcConnectorRevision | The revision of this VPC connector. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
SecurityGroups | A list of IDs of security groups that App Runner should use for access to AWS resources under the specified subnets. |
Subnets | A list of IDs of subnets that App Runner should use when it associates your service with a custom Amazon VPC. |
Tags | A list of metadata items that you can associate with your VPC connector resource. |
VpcConnectorName | A name for the VPC connector. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnVpcConnector(Construct, String, ICfnVpcConnectorProps)
Create a new AWS::AppRunner::VpcConnector
.
public CfnVpcConnector(Construct scope, string id, ICfnVpcConnectorProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnVpcConnectorProps
- resource properties.
CfnVpcConnector(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnVpcConnector(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnVpcConnector(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnVpcConnector(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
AttrVpcConnectorArn
The Amazon Resource Name (ARN) of this VPC connector.
public virtual string AttrVpcConnectorArn { get; }
Property Value
System.String
Remarks
CloudformationAttribute: VpcConnectorArn
AttrVpcConnectorRevision
The revision of this VPC connector.
public virtual double AttrVpcConnectorRevision { get; }
Property Value
System.Double
Remarks
It's unique among all the active connectors ( "Status": "ACTIVE"
) that share the same Name
.
At this time, App Runner supports only one revision per name.
CloudformationAttribute: VpcConnectorRevision
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
SecurityGroups
A list of IDs of security groups that App Runner should use for access to AWS resources under the specified subnets.
public virtual string[] SecurityGroups { get; set; }
Property Value
System.String[]
Remarks
If not specified, App Runner uses the default security group of the Amazon VPC. The default security group allows all outbound traffic.
Subnets
A list of IDs of subnets that App Runner should use when it associates your service with a custom Amazon VPC.
public virtual string[] Subnets { get; set; }
Property Value
System.String[]
Remarks
Specify IDs of subnets of a single Amazon VPC. App Runner determines the Amazon VPC from the subnets you specify.
App Runner currently only provides support for IPv4.
Tags
A list of metadata items that you can associate with your VPC connector resource.
public virtual TagManager Tags { get; }
Property Value
Remarks
VpcConnectorName
A name for the VPC connector.
public virtual string VpcConnectorName { get; set; }
Property Value
System.String
Remarks
If you don't specify a name, AWS CloudFormation generates a name for your VPC connector.
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
- tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>