AWS::AppRunner::VpcConnectorSpecify 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 ).
import { CfnVpcConnector } from 'aws-cdk-lib/aws-apprunner';Or use the module namespace:
import * as apprunner from 'aws-cdk-lib/aws-apprunner';
// apprunner.CfnVpcConnectorConfiguration passed to the constructor as CfnVpcConnectorProps.
subnetsRequiredstring[]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. > App Runner only supports subnets of IP address type *IPv4* and *dual stack* (IPv4 and IPv6).
securityGroupsOptionalstring | ISecurityGroupRef[]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.
tagsOptionalCfnTag[]A list of metadata items that you can associate with your VPC connector resource. A tag is a key-value pair. > A `VpcConnector` is immutable, so you cannot update its tags. To change the tags, replace the resource. To replace a `VpcConnector` , you must provide a new combination of security groups.
vpcConnectorNameOptionalstringA name for the VPC connector. If you don't specify a name, CloudFormation generates a name for your VPC connector.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-apprunnerAWS::AppRunner::VpcConnector