stop_activity_stream
async
¶
stop_activity_stream(
*,
config_overrides: Optional[AsyncRDSClientConfig] = 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.
>>> await 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/async_rds.py
15675 15676 15677 15678 15679 15680 15681 15682 15683 15684 15685 15686 15687 15688 15689 15690 15691 15692 15693 15694 15695 15696 15697 15698 15699 15700 15701 15702 15703 15704 15705 15706 15707 15708 15709 15710 15711 15712 15713 15714 15715 15716 15717 15718 15719 15720 15721 15722 15723 15724 15725 15726 15727 15728 15729 15730 15731 15732 15733 15734 15735 | |