createAppBlockBuilderStreamingURL method
Creates a URL to start a create app block builder streaming session.
May throw OperationNotPermittedException.
May throw ResourceNotFoundException.
Parameter appBlockBuilderName :
The name of the app block builder.
Parameter validity :
The time that the streaming URL will be valid, in seconds. Specify a value
between 1 and 604800 seconds. The default is 3600 seconds.
Implementation
Future<CreateAppBlockBuilderStreamingURLResult>
createAppBlockBuilderStreamingURL({
required String appBlockBuilderName,
int? validity,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target':
'PhotonAdminProxyService.CreateAppBlockBuilderStreamingURL'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'AppBlockBuilderName': appBlockBuilderName,
if (validity != null) 'Validity': validity,
},
);
return CreateAppBlockBuilderStreamingURLResult.fromJson(jsonResponse.body);
}