Class CfnVpcConnector
Specify an AWS App Runner VPC connector by using the AWS::AppRunner::VpcConnector
resource in an AWS CloudFormation template.
Inherited Members
Namespace: Amazon.CDK.AWS.AppRunner
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnVpcConnector : CfnResource, IInspectable, ITaggable
Syntax (vb)
Public Class CfnVpcConnector
Inherits CfnResource
Implements IInspectable, ITaggable
Remarks
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(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 |
CfnVpcConnector(Construct, String, ICfnVpcConnectorProps) |
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 | Tag Manager which manages the tags for this resource. |
TagsRaw | 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(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
CfnVpcConnector(Construct, String, ICfnVpcConnectorProps)
public CfnVpcConnector(Construct scope, string id, ICfnVpcConnectorProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnVpcConnectorProps
Resource properties.
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[]
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[]
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
TagsRaw
A list of metadata items that you can associate with your VPC connector resource.
public virtual ICfnTag[] TagsRaw { get; set; }
Property Value
ICfnTag[]
VpcConnectorName
A name for the VPC connector.
public virtual string VpcConnectorName { get; set; }
Property Value
System.String
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>