updateSystem method

Future<UpdateSystemResponse> updateSystem({
  1. required String systemArn,
  2. String? description,
  3. bool? sharingEnabled,
})

Updates an existing system.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ValidationException.

Parameter sharingEnabled : Whether cross-account sharing is enabled for the system.

Implementation

Future<UpdateSystemResponse> updateSystem({
  required String systemArn,
  String? description,
  bool? sharingEnabled,
}) async {
  final $payload = <String, dynamic>{
    'systemArn': systemArn,
    if (description != null) 'description': description,
    if (sharingEnabled != null) 'sharingEnabled': sharingEnabled,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/v2/update-system',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateSystemResponse.fromJson(response);
}