getVpcLink method

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

Gets a specified VPC link under the caller's account in a region.

May throw BadRequestException. May throw NotFoundException. May throw TooManyRequestsException. May throw UnauthorizedException.

Parameter vpcLinkId : The identifier of the VpcLink. It is used in an Integration to reference this VpcLink.

Implementation

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