/AWS1/IF_RDS=>ADDTAGSTORESOURCE()¶
About AddTagsToResource¶
Adds metadata tags to an Amazon RDS resource. These tags can also be used with cost allocation reporting to track cost associated with Amazon RDS resources, or used in a Condition statement in an IAM policy for Amazon RDS.
For an overview on tagging your relational database resources, see Tagging Amazon RDS Resources or Tagging Amazon Aurora and Amazon RDS Resources.
Method Signature¶
METHODS /AWS1/IF_RDS~ADDTAGSTORESOURCE
IMPORTING
!IV_RESOURCENAME TYPE /AWS1/RDSSTRING OPTIONAL
!IT_TAGS TYPE /AWS1/CL_RDSTAG=>TT_TAGLIST OPTIONAL
RAISING
/AWS1/CX_RDSBLUEGREENDEPLOYM00
/AWS1/CX_RDSDBCLUSTNOTFNDFAULT
/AWS1/CX_RDSDBINSTNOTFNDFAULT
/AWS1/CX_RDSDBPROXYENDPTNOTF00
/AWS1/CX_RDSDBPROXYNOTFNDFAULT
/AWS1/CX_RDSDBPROXYTGTGRNOTF00
/AWS1/CX_RDSDBSHARDGRNOTFNDF00
/AWS1/CX_RDSDBSNAPNOTFNDFAULT
/AWS1/CX_RDSDBSNAPTENANTDATA00
/AWS1/CX_RDSINTEGRATIONNOTFN00
/AWS1/CX_RDSINVDBCLSTENDPTST00
/AWS1/CX_RDSINVDBCLSTSTATEFA00
/AWS1/CX_RDSINVDBINSTSTATEFA00
/AWS1/CX_RDSTENANTDATABASENO00
/AWS1/CX_RDSCLIENTEXC
/AWS1/CX_RDSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_resourcename TYPE /AWS1/RDSSTRING /AWS1/RDSSTRING¶
The Amazon RDS resource that the tags are added to. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN).
it_tags TYPE /AWS1/CL_RDSTAG=>TT_TAGLIST TT_TAGLIST¶
The tags to be assigned to the Amazon RDS 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->addtagstoresource(
it_tags = VALUE /aws1/cl_rdstag=>tt_taglist(
(
new /aws1/cl_rdstag(
iv_key = |string|
iv_value = |string|
)
)
)
iv_resourcename = |string|
).
To add tags to a resource¶
This example adds a tag to an option group.
lo_client->addtagstoresource(
it_tags = VALUE /aws1/cl_rdstag=>tt_taglist(
(
new /aws1/cl_rdstag(
iv_key = |Staging|
iv_value = |LocationDB|
)
)
)
iv_resourcename = |arn:aws:rds:us-east-1:992648334831:og:mymysqloptiongroup|
).