getVpcLink method

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

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

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

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

Implementation

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