/AWS1/CL_RDS=>STOPACTIVITYSTREAM()
¶
About StopActivityStream¶
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.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_resourcearn
TYPE /AWS1/RDSSTRING
/AWS1/RDSSTRING
¶
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
.
Optional arguments:¶
iv_applyimmediately
TYPE /AWS1/RDSBOOLEANOPTIONAL
/AWS1/RDSBOOLEANOPTIONAL
¶
Specifies whether or not the database activity stream is to stop as soon as possible, regardless of the maintenance window for the database.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_rdsstopactivitystrm01
/AWS1/CL_RDSSTOPACTIVITYSTRM01
¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->/aws1/if_rds~stopactivitystream(
iv_applyimmediately = ABAP_TRUE
iv_resourcearn = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_string = lo_result->get_kmskeyid( ).
lv_string = lo_result->get_kinesisstreamname( ).
lv_activitystreamstatus = lo_result->get_status( ).
ENDIF.
To stop a database activity stream¶
The following example stops an activity stream in an Aurora cluster named my-pg-cluster.
DATA(lo_result) = lo_client->/aws1/if_rds~stopactivitystream(
iv_applyimmediately = ABAP_TRUE
iv_resourcearn = |arn:aws:rds:us-east-1:1234567890123:cluster:my-pg-cluster|
).