Skip to content

/AWS1/IF_KNS=>DELETERESOURCEPOLICY()

About DeleteResourcePolicy

Delete a policy for the specified data stream or consumer. Request patterns can be one of the following:

  • Data stream pattern: arn:aws.*:kinesis:.*:\d{12}:.*stream/\S+

  • Consumer pattern: ^(arn):aws.*:kinesis:.*:\d{12}:.*stream\/[a-zA-Z0-9_.-]+\/consumer\/[a-zA-Z0-9_.-]+:[0-9]+

Method Signature

METHODS /AWS1/IF_KNS~DELETERESOURCEPOLICY
  IMPORTING
    !IV_RESOURCEARN TYPE /AWS1/KNSRESOURCEARN OPTIONAL
    !IV_STREAMID TYPE /AWS1/KNSSTREAMID OPTIONAL
  PREFERRED PARAMETER iv_resourcearn
  RAISING
    /AWS1/CX_KNSACCESSDENIEDEX
    /AWS1/CX_KNSINVALIDARGUMENTEX
    /AWS1/CX_KNSLIMITEXCEEDEDEX
    /AWS1/CX_KNSRESOURCEINUSEEX
    /AWS1/CX_KNSRESOURCENOTFOUNDEX
    /AWS1/CX_KNSCLIENTEXC
    /AWS1/CX_KNSSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_resourcearn TYPE /AWS1/KNSRESOURCEARN /AWS1/KNSRESOURCEARN

The Amazon Resource Name (ARN) of the data stream or consumer.

Optional arguments:

iv_streamid TYPE /AWS1/KNSSTREAMID /AWS1/KNSSTREAMID

Not Implemented. Reserved for future use.

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.

lo_client->deleteresourcepolicy(
  iv_resourcearn = |string|
  iv_streamid = |string|
).