updateKinesisStreamingDestination method
The command to update the Kinesis stream destination.
May throw InternalServerError.
May throw InvalidEndpointException.
May throw LimitExceededException.
May throw ResourceInUseException.
May throw ResourceNotFoundException.
Parameter streamArn :
The Amazon Resource Name (ARN) for the Kinesis stream input.
Parameter tableName :
The table name for the Kinesis streaming destination input. You can also
provide the ARN of the table in this parameter.
Parameter updateKinesisStreamingConfiguration :
The command to update the Kinesis stream configuration.
Implementation
Future<UpdateKinesisStreamingDestinationOutput>
updateKinesisStreamingDestination({
required String streamArn,
required String tableName,
UpdateKinesisStreamingConfiguration? updateKinesisStreamingConfiguration,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'DynamoDB_20120810.UpdateKinesisStreamingDestination'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'StreamArn': streamArn,
'TableName': tableName,
if (updateKinesisStreamingConfiguration != null)
'UpdateKinesisStreamingConfiguration':
updateKinesisStreamingConfiguration,
},
);
return UpdateKinesisStreamingDestinationOutput.fromJson(jsonResponse.body);
}