putMessagingStreamingConfigurations method

Future<PutMessagingStreamingConfigurationsResponse> putMessagingStreamingConfigurations({
  1. required String appInstanceArn,
  2. required List<StreamingConfiguration> streamingConfigurations,
})

Sets the data streaming configuration for an AppInstance. For more information, see Streaming messaging data in the Amazon Chime SDK Developer Guide.

May throw BadRequestException. May throw ConflictException. May throw ForbiddenException. May throw NotFoundException. May throw ServiceFailureException. May throw ServiceUnavailableException. May throw ThrottledClientException. May throw UnauthorizedClientException.

Parameter appInstanceArn : The ARN of the streaming configuration.

Parameter streamingConfigurations : The streaming configurations.

Implementation

Future<PutMessagingStreamingConfigurationsResponse>
    putMessagingStreamingConfigurations({
  required String appInstanceArn,
  required List<StreamingConfiguration> streamingConfigurations,
}) async {
  final $payload = <String, dynamic>{
    'StreamingConfigurations': streamingConfigurations,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri:
        '/app-instances/${Uri.encodeComponent(appInstanceArn)}/streaming-configurations',
    exceptionFnMap: _exceptionFns,
  );
  return PutMessagingStreamingConfigurationsResponse.fromJson(response);
}