create_vpc_connector
¶
create_vpc_connector(
vpc_connector_name: VpcConnectorName,
subnets: StringList,
*,
config_overrides: Optional[AppRunnerClientConfig] = None,
security_groups: Optional[StringList] = None,
tags: Optional[TagList] = None,
) -> CreateVpcConnectorResponse
Create an App Runner VPC connector resource. App Runner requires this resource when you want to associate your App Runner service to a custom Amazon Virtual Private Cloud (Amazon VPC).
Parameters:
-
vpc_connector_name(VpcConnectorName) –A name for the VPC connector.
-
subnets(StringList) –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).
-
security_groups(Optional[StringList], default:None) –A list of IDs of security groups that App Runner should use for access to Amazon Web Services 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.
-
tags(Optional[TagList], default:None) –A list of metadata items that you can associate with your VPC connector resource. A tag is a key-value pair.
Raises:
-
InternalServiceErrorException–An unexpected service exception occurred.
-
InvalidRequestException–One or more input parameters aren't valid. Refer to the API action's document page, correct the input parameters, and try the action again.
-
ServiceQuotaExceededException–App Runner can't create this resource. You've reached your account quota for this resource type.
For App Runner per-resource quotas, see App Runner endpoints and quotas in the Amazon Web Services General Reference.
-
UnknownServiceError–The service returned an error code this client does not model.