modifyStreamingProperties method

Future<void> modifyStreamingProperties({
  1. required String resourceId,
  2. StreamingProperties? streamingProperties,
})

Modifies the specified streaming properties.

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

Parameter resourceId : The identifier of the resource.

Parameter streamingProperties : The streaming properties to configure.

Implementation

Future<void> modifyStreamingProperties({
  required String resourceId,
  StreamingProperties? streamingProperties,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'WorkspacesService.ModifyStreamingProperties'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ResourceId': resourceId,
      if (streamingProperties != null)
        'StreamingProperties': streamingProperties,
    },
  );
}