# AWS::AppRunner::VpcConnector The AWS::AppRunner::VpcConnector resource specifies an App Runner VpcConnector. ## Syntax To declare this entity in your AWS CloudFormation template, use the following syntax: ### JSON
{
    "Type" : "AWS::AppRunner::VpcConnector",
    "Properties" : {
        "VpcConnectorName" : String,
        "Subnets" : [ String, ... ],
        "SecurityGroups" : [ String, ... ],
        "Tags" : [ Tag, ... ]
    }
}
### YAML
Type: AWS::AppRunner::VpcConnector
Properties:
    VpcConnectorName: String
    Subnets: 
      - String
    SecurityGroups: 
      - String
    Tags: 
      - Tag
## Properties #### VpcConnectorName A name for the VPC connector. If you don't specify a name, AWS CloudFormation generates a name for your VPC connector. _Required_: No _Type_: String _Minimum_: 4 _Maximum_: 40 _Pattern_: ^[A-Za-z0-9][A-Za-z0-9-\\_]{3,39}$ _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### Subnets A list of IDs of subnets that App Runner should use when it associates your service with a custom Amazon VPC. Specify IDs of subnets of a single Amazon VPC. App Runner determines the Amazon VPC from the subnets you specify. _Required_: Yes _Type_: List of String _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### SecurityGroups A list of IDs of security groups that App Runner should use for access to AWS resources under the specified subnets. If not specified, App Runner uses the default security group of the Amazon VPC. The default security group allows all outbound traffic. _Required_: No _Type_: List of String _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### Tags A list of metadata items that you can associate with your VPC connector resource. A tag is a key-value pair. _Required_: No _Type_: List of Tag _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) ## Return Values ### Ref When you pass the logical ID of this resource to the intrinsic `Ref` function, Ref returns the VpcConnectorArn. ### Fn::GetAtt The `Fn::GetAtt` intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values. For more information about using the `Fn::GetAtt` intrinsic function, see [Fn::GetAtt](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-getatt.html). #### VpcConnectorArn The Amazon Resource Name (ARN) of this VPC connector. #### VpcConnectorRevision The revision of this VPC connector. It's unique among all the active connectors ("Status": "ACTIVE") that share the same Name.