/AWS1/IF_CFS=>TAGRESOURCE()¶
About TagResource¶
Associates the specified tags to a resource with the specified ResourceArn. If existing tags on a resource are not specified in the request parameters, they are not changed.
If existing tags are specified, however, then their values will be updated. When a resource is deleted, the tags associated with that resource are deleted as well.
Method Signature¶
METHODS /AWS1/IF_CFS~TAGRESOURCE
IMPORTING
!IV_RESOURCEARN TYPE /AWS1/CFSAMAZONRESOURCENAME OPTIONAL
!IT_TAGS TYPE /AWS1/CL_CFSTAG=>TT_TAGLIST OPTIONAL
RAISING
/AWS1/CX_CFSRESOURCENOTFOUNDEX
/AWS1/CX_CFSTOOMANYTAGSEX
/AWS1/CX_CFSVALIDATIONEX
/AWS1/CX_CFSCLIENTEXC
/AWS1/CX_CFSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_resourcearn TYPE /AWS1/CFSAMAZONRESOURCENAME /AWS1/CFSAMAZONRESOURCENAME¶
The Amazon Resource Name (ARN) that identifies the resource for which to list the tags. The following resources are supported:
ConfigurationRecorder
ConfigRule
OrganizationConfigRule
ConformancePack
OrganizationConformancePack
ConfigurationAggregator
AggregationAuthorization
StoredQuery
it_tags TYPE /AWS1/CL_CFSTAG=>TT_TAGLIST TT_TAGLIST¶
An array of tag object.
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_cfstag=>tt_taglist(
(
new /aws1/cl_cfstag(
iv_key = |string|
iv_value = |string|
)
)
)
iv_resourcearn = |string|
).