updateVpcLink method

Future<UpdateVpcLinkResponse> updateVpcLink({
  1. required String vpcLinkId,
  2. String? name,
})

Updates a VPC link.

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

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 {
  ArgumentError.checkNotNull(vpcLinkId, 'vpcLinkId');
  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);
}