stopActivityStream method

Future<StopActivityStreamResponse> stopActivityStream({
  1. required String resourceArn,
  2. bool? applyImmediately,
})

Stops a database activity stream that was started using the AWS console, the start-activity-stream AWS CLI command, or the StartActivityStream action.

For more information, see Database Activity Streams in the Amazon Aurora User Guide.

May throw InvalidDBInstanceStateFault. May throw InvalidDBClusterStateFault. May throw ResourceNotFoundFault. May throw DBClusterNotFoundFault. May throw DBInstanceNotFoundFault.

Parameter resourceArn : The Amazon Resource Name (ARN) of the DB cluster for the database activity stream. For example, arn:aws:rds:us-east-1:12345667890:cluster:das-cluster.

Parameter applyImmediately : Specifies whether or not the database activity stream is to stop as soon as possible, regardless of the maintenance window for the database.

Implementation

Future<StopActivityStreamResponse> stopActivityStream({
  required String resourceArn,
  bool? applyImmediately,
}) async {
  ArgumentError.checkNotNull(resourceArn, 'resourceArn');
  final $request = <String, dynamic>{};
  $request['ResourceArn'] = resourceArn;
  applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg);
  final $result = await _protocol.send(
    $request,
    action: 'StopActivityStream',
    version: '2014-10-31',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['StopActivityStreamRequest'],
    shapes: shapes,
    resultWrapper: 'StopActivityStreamResult',
  );
  return StopActivityStreamResponse.fromXml($result);
}