/AWS1/IF_FNT=>TAGRESOURCE()¶
About TagResource¶
Add tags to a CloudFront resource. For more information, see Tagging a distribution in the Amazon CloudFront Developer Guide.
Method Signature¶
METHODS /AWS1/IF_FNT~TAGRESOURCE
IMPORTING
!IV_RESOURCE TYPE /AWS1/FNTRESOURCEARN OPTIONAL
!IO_TAGS TYPE REF TO /AWS1/CL_FNTTAGS OPTIONAL
RAISING
/AWS1/CX_FNTACCESSDENIED
/AWS1/CX_FNTINVALIDARGUMENT
/AWS1/CX_FNTINVALIDTAGGING
/AWS1/CX_FNTNOSUCHRESOURCE
/AWS1/CX_FNTCLIENTEXC
/AWS1/CX_FNTSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_resource TYPE /AWS1/FNTRESOURCEARN /AWS1/FNTRESOURCEARN¶
An ARN of a CloudFront resource.
io_tags TYPE REF TO /AWS1/CL_FNTTAGS /AWS1/CL_FNTTAGS¶
A complex type that contains zero or more
Tagelements.
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(
io_tags = new /aws1/cl_fnttags(
it_items = VALUE /aws1/cl_fnttag=>tt_taglist(
(
new /aws1/cl_fnttag(
iv_key = |string|
iv_value = |string|
)
)
)
)
iv_resource = |string|
).