/AWS1/IF_RSH=>CREATETAGS()¶
About CreateTags¶
Adds tags to a cluster.
A resource can have up to 50 tags. If you try to create more than 50 tags for a resource, you will receive an error and the attempt will fail.
If you specify a key that already exists for the resource, the value for that key will be updated with the new value.
Method Signature¶
METHODS /AWS1/IF_RSH~CREATETAGS
IMPORTING
!IV_RESOURCENAME TYPE /AWS1/RSHSTRING OPTIONAL
!IT_TAGS TYPE /AWS1/CL_RSHTAG=>TT_TAGLIST OPTIONAL
RAISING
/AWS1/CX_RSHINVCLUSTSTATEFAULT
/AWS1/CX_RSHINVALIDTAGFAULT
/AWS1/CX_RSHRESRCNOTFOUNDFAULT
/AWS1/CX_RSHTAGLIMITEXCDFAULT
/AWS1/CX_RSHCLIENTEXC
/AWS1/CX_RSHSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_resourcename TYPE /AWS1/RSHSTRING /AWS1/RSHSTRING¶
The Amazon Resource Name (ARN) to which you want to add the tag or tags. For example,
arn:aws:redshift:us-east-2:123456789:cluster:t1.
it_tags TYPE /AWS1/CL_RSHTAG=>TT_TAGLIST TT_TAGLIST¶
One or more name/value pairs to add as tags to the specified resource. Each tag name is passed in with the parameter
Keyand the corresponding value is passed in with the parameterValue. TheKeyandValueparameters are separated by a comma (,). Separate multiple tags with a space. For example,--tags "Key"="owner","Value"="admin" "Key"="environment","Value"="test" "Key"="version","Value"="1.0".
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->createtags(
it_tags = VALUE /aws1/cl_rshtag=>tt_taglist(
(
new /aws1/cl_rshtag(
iv_key = |string|
iv_value = |string|
)
)
)
iv_resourcename = |string|
).