updateVpcLink method
Updates a VPC link.
May throw BadRequestException.
May throw NotFoundException.
May throw TooManyRequestsException.
Parameter vpcLinkId :
The ID of the VPC link.
Parameter name :
The name of the VPC link.
Implementation
Future<UpdateVpcLinkResponse> updateVpcLink({
required String vpcLinkId,
String? name,
}) async {
final $payload = <String, dynamic>{
if (name != null) 'name': name,
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri: '/v2/vpclinks/${Uri.encodeComponent(vpcLinkId)}',
exceptionFnMap: _exceptionFns,
);
return UpdateVpcLinkResponse.fromJson(response);
}