modifyClientProperties method

Future<void> modifyClientProperties({
  1. required ClientProperties clientProperties,
  2. required String resourceId,
})

Modifies the properties of the specified Amazon WorkSpaces clients.

May throw InvalidParameterValuesException. May throw ResourceNotFoundException. May throw AccessDeniedException.

Parameter clientProperties : Information about the Amazon WorkSpaces client.

Parameter resourceId : The resource identifiers, in the form of directory IDs.

Implementation

Future<void> modifyClientProperties({
  required ClientProperties clientProperties,
  required String resourceId,
}) async {
  ArgumentError.checkNotNull(clientProperties, 'clientProperties');
  ArgumentError.checkNotNull(resourceId, 'resourceId');
  _s.validateStringLength(
    'resourceId',
    resourceId,
    1,
    1152921504606846976,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'WorkspacesService.ModifyClientProperties'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ClientProperties': clientProperties,
      'ResourceId': resourceId,
    },
  );
}