updateVpcLink method
Updates an existing VpcLink of a specified identifier.
May throw BadRequestException.
May throw ConflictException.
May throw LimitExceededException.
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.
Parameter patchOperations :
For more information about supported patch operations, see Patch
Operations.
Implementation
Future<VpcLink> updateVpcLink({
required String vpcLinkId,
List<PatchOperation>? patchOperations,
}) async {
final $payload = <String, dynamic>{
if (patchOperations != null) 'patchOperations': patchOperations,
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri: '/vpclinks/${Uri.encodeComponent(vpcLinkId)}',
exceptionFnMap: _exceptionFns,
);
return VpcLink.fromJson(response);
}