putAppInstanceStreamingConfigurations method

Future<PutAppInstanceStreamingConfigurationsResponse> putAppInstanceStreamingConfigurations({
  1. required String appInstanceArn,
  2. required List<AppInstanceStreamingConfiguration> appInstanceStreamingConfigurations,
})

The data streaming configurations of an app instance.

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

Parameter appInstanceArn : The ARN of the app instance.

Parameter appInstanceStreamingConfigurations : The streaming configurations set for an app instance.

Implementation

Future<PutAppInstanceStreamingConfigurationsResponse>
    putAppInstanceStreamingConfigurations({
  required String appInstanceArn,
  required List<AppInstanceStreamingConfiguration>
      appInstanceStreamingConfigurations,
}) async {
  ArgumentError.checkNotNull(appInstanceArn, 'appInstanceArn');
  _s.validateStringLength(
    'appInstanceArn',
    appInstanceArn,
    5,
    1600,
    isRequired: true,
  );
  ArgumentError.checkNotNull(appInstanceStreamingConfigurations,
      'appInstanceStreamingConfigurations');
  final $payload = <String, dynamic>{
    'AppInstanceStreamingConfigurations': appInstanceStreamingConfigurations,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri:
        '/app-instances/${Uri.encodeComponent(appInstanceArn)}/streaming-configurations',
    exceptionFnMap: _exceptionFns,
  );
  return PutAppInstanceStreamingConfigurationsResponse.fromJson(response);
}