Skip to content

APIGatewayClient.create_vpc_link

rboto-api-gateway==0.4.0 · Service index · Types

Model summary (excerpt): Creates a VPC link, under the caller's account in a selected region, in an asynchronous operation that typically takes 2-4 minutes to complete and become operational. The caller must have permissions to create and update VPC Endpoint services.

Install and imports

python -m pip install "rboto[api-gateway]==0.4.0"
from rboto import APIGatewayClient
from collections.abc import Sequence
from rboto_api_gateway.types import (
    CreateVpcLinkOutput,
)

Signature

async def create_vpc_link(
    *,
    name: str,
    target_arns: Sequence[str],
    description: str | None = None,
    tags: dict[str, str] | None = None,
) -> CreateVpcLinkOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
name Yes The name used to label and identify the VPC link.
target_arns Yes The ARN of the network load balancer of the VPC targeted by the VPC link. The network load balancer must be owned by the same Amazon Web Services account of the API owner.
description No The description of the VPC link.
tags No The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws: . The tag value can be up to 256 characters.

Output

CreateVpcLinkOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
id str | None Always present —
name str | None Always present —
description str | None Always present —
target_arns list[str] | None Always present —
status VpcLinkStatusOutput | None Always present VpcLinkStatusOutput
status_message str | None Always present —
tags dict[str, str] | None Always present —

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

CreateVpcLinkOutput

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_api_gateway.exceptions:

BadRequestError, ConflictError, LimitExceededError, TooManyRequestsError, UnauthorizedError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model