Skip to content

/AWS1/IF_S3F=>TAGRESOURCE()

About TagResource

Creates tags for S3 Files resources using standard Amazon Web Services tagging APIs.

Method Signature

METHODS /AWS1/IF_S3F~TAGRESOURCE
  IMPORTING
    !IV_RESOURCEID TYPE /AWS1/S3FRESOURCEID OPTIONAL
    !IT_TAGS TYPE /AWS1/CL_S3FTAG=>TT_TAGLIST OPTIONAL
  RAISING
    /AWS1/CX_S3FTHROTTLINGEX
    /AWS1/CX_S3FINTERNALSERVEREX
    /AWS1/CX_S3FRESOURCENOTFOUNDEX
    /AWS1/CX_S3FVLDTNEXCEPTION
    /AWS1/CX_S3FCLIENTEXC
    /AWS1/CX_S3FSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_resourceid TYPE /AWS1/S3FRESOURCEID /AWS1/S3FRESOURCEID

The ID or Amazon Resource Name (ARN) of the resource to add tags to.

it_tags TYPE /AWS1/CL_S3FTAG=>TT_TAGLIST TT_TAGLIST

An array of key-value pairs to add as tags to the resource.

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->tagresource(
  it_tags = VALUE /aws1/cl_s3ftag=>tt_taglist(
    (
      new /aws1/cl_s3ftag(
        iv_key = |string|
        iv_value = |string|
      )
    )
  )
  iv_resourceid = |string|
).