getVpcLink method

Future<GetVpcLinkResponse> getVpcLink({
  1. required String vpcLinkId,
})

Gets a VPC link.

May throw NotFoundException. May throw TooManyRequestsException.

Parameter vpcLinkId : The ID of the VPC link.

Implementation

Future<GetVpcLinkResponse> getVpcLink({
  required String vpcLinkId,
}) async {
  ArgumentError.checkNotNull(vpcLinkId, 'vpcLinkId');
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/v2/vpclinks/${Uri.encodeComponent(vpcLinkId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetVpcLinkResponse.fromJson(response);
}