Skip to content

/AWS1/IF_XDD=>DELETESTREAM()

About DeleteStream

Deletes a stream from a cluster.

Method Signature

METHODS /AWS1/IF_XDD~DELETESTREAM
  IMPORTING
    !IV_CLUSTERIDENTIFIER TYPE /AWS1/XDDCLUSTERID OPTIONAL
    !IV_STREAMIDENTIFIER TYPE /AWS1/XDDSTREAMID OPTIONAL
    !IV_CLIENTTOKEN TYPE /AWS1/XDDCLIENTTOKEN OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_xdddeletestreamoutput
  RAISING
    /AWS1/CX_XDDACCESSDENIEDEX
    /AWS1/CX_XDDINTERNALSERVEREX
    /AWS1/CX_XDDTHROTTLINGEX
    /AWS1/CX_XDDVALIDATIONEX
    /AWS1/CX_XDDCONFLICTEXCEPTION
    /AWS1/CX_XDDRESOURCENOTFOUNDEX
    /AWS1/CX_XDDCLIENTEXC
    /AWS1/CX_XDDSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_clusteridentifier TYPE /AWS1/XDDCLUSTERID /AWS1/XDDCLUSTERID

The ID of the cluster containing the stream to delete.

iv_streamidentifier TYPE /AWS1/XDDSTREAMID /AWS1/XDDSTREAMID

The ID of the stream to delete.

Optional arguments:

iv_clienttoken TYPE /AWS1/XDDCLIENTTOKEN /AWS1/XDDCLIENTTOKEN

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries with the same client token return the result from the original successful request and they have no additional effect.

If you don't specify a client token, the Amazon Web Services SDK automatically generates one.

RETURNING

oo_output TYPE REF TO /aws1/cl_xdddeletestreamoutput /AWS1/CL_XDDDELETESTREAMOUTPUT

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->deletestream(
  iv_clienttoken = |string|
  iv_clusteridentifier = |string|
  iv_streamidentifier = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_clusterid = lo_result->get_clusteridentifier( ).
  lv_streamid = lo_result->get_streamidentifier( ).
  lv_streamarn = lo_result->get_arn( ).
  lv_streamstatus = lo_result->get_status( ).
  lv_streamcreationtime = lo_result->get_creationtime( ).
ENDIF.