ApiGatewayV2 / Client / create_vpc_link
create_vpc_link#
- ApiGatewayV2.Client.create_vpc_link(**kwargs)#
Creates a VPC link.
See also: AWS API Documentation
Request Syntax
response = client.create_vpc_link( Name='string', SecurityGroupIds=[ 'string', ], SubnetIds=[ 'string', ], Tags={ 'string': 'string' } )
- Parameters:
Name (string) –
[REQUIRED]
The name of the VPC link.
SecurityGroupIds (list) –
A list of security group IDs for the VPC link.
(string) –
SubnetIds (list) –
[REQUIRED]
A list of subnet IDs to include in the VPC link.
(string) –
Tags (dict) –
A list of tags.
(string) –
(string) –
A string with a length between [0-1600].
- Return type:
dict
- Returns:
Response Syntax
{ 'CreatedDate': datetime(2015, 1, 1), 'Name': 'string', 'SecurityGroupIds': [ 'string', ], 'SubnetIds': [ 'string', ], 'Tags': { 'string': 'string' }, 'VpcLinkId': 'string', 'VpcLinkStatus': 'PENDING'|'AVAILABLE'|'DELETING'|'FAILED'|'INACTIVE', 'VpcLinkStatusMessage': 'string', 'VpcLinkVersion': 'V2' }
Response Structure
(dict) –
The request has succeeded and has resulted in the creation of a resource.
CreatedDate (datetime) –
The timestamp when the VPC link was created.
Name (string) –
The name of the VPC link.
SecurityGroupIds (list) –
A list of security group IDs for the VPC link.
(string) –
SubnetIds (list) –
A list of subnet IDs to include in the VPC link.
(string) –
Tags (dict) –
Tags for the VPC link.
(string) –
(string) –
A string with a length between [0-1600].
VpcLinkId (string) –
The ID of the VPC link.
VpcLinkStatus (string) –
The status of the VPC link.
VpcLinkStatusMessage (string) –
A message summarizing the cause of the status of the VPC link.
VpcLinkVersion (string) –
The version of the VPC link.
Exceptions