stop_activity_stream
¶
stop_activity_stream(
*,
config_overrides: Optional[RDSClientConfig] = None,
resource_arn: Optional[String] = None,
apply_immediately: Optional[BooleanOptional] = None,
) -> StopActivityStreamResponse
Stops a database activity stream that was started using the Amazon Web Services console, the start-activity-stream CLI command, or the StartActivityStream operation.
For more information, see Monitoring Amazon Aurora with Database Activity Streams in the Amazon Aurora User Guide or Monitoring Amazon RDS with Database Activity Streams in the Amazon RDS User Guide.
Parameters:
-
resource_arn(Optional[String], default:None) –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. -
apply_immediately(Optional[BooleanOptional], default:None) –Specifies whether or not the database activity stream is to stop as soon as possible, regardless of the maintenance window for the database.
Raises:
-
DBClusterNotFoundFault–DBClusterIdentifierdoesn't refer to an existing DB cluster. -
DBInstanceNotFoundFault–DBInstanceIdentifierdoesn't refer to an existing DB instance. -
InvalidDBClusterStateFault–The requested operation can't be performed while the cluster is in this state.
-
InvalidDBInstanceStateFault–The DB instance isn't in a valid state.
-
ResourceNotFoundFault–The specified resource ID was not found.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To stop a database activity stream The following example stops an activity stream in an Aurora cluster named my-pg-cluster.
>>> client.stop_activity_stream(resource_arn='arn:aws:rds:us-east-1:1234567890123:cluster:my-pg-cluster', apply_immediately=True)
Source code in docs_src/capo_rds/_services/rds.py
15508 15509 15510 15511 15512 15513 15514 15515 15516 15517 15518 15519 15520 15521 15522 15523 15524 15525 15526 15527 15528 15529 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540 15541 15542 15543 15544 15545 15546 15547 15548 15549 15550 15551 15552 15553 15554 15555 15556 15557 15558 15559 15560 15561 15562 15563 15564 15565 15566 15567 | |