tag_resource
async
¶
tag_resource(
resource_arn: str,
*,
config_overrides: Optional[AsyncResourceExplorer2ClientConfig] = None,
tags: Optional[TagMap] = None,
) -> TagResourceOutput
Adds one or more tag key and value pairs to an Amazon Web Services Resource Explorer view or index.
Parameters:
-
resource_arn(str) –The Amazon Resource Name (ARN) of the view or index that you want to attach tags to.
-
tags(Optional[TagMap], default:None) –A list of tag key and value pairs that you want to attach to the specified view or index.
Raises:
-
AccessDeniedException–The credentials that you used to call this operation don't have the minimum required permissions.
-
ConflictException–If you attempted to create a view, then the request failed because either you specified parameters that didn’t match the original request, or you attempted to create a view with a name that already exists in this Amazon Web Services Region.
If you attempted to create an index, then the request failed because either you specified parameters that didn't match the original request, or an index already exists in the current Amazon Web Services Region.
If you attempted to update an index type to
AGGREGATOR, then the request failed because you already have anAGGREGATORindex in a different Amazon Web Services Region. -
InternalServerException–The request failed because of internal service error. Try your request again later.
-
ThrottlingException–The request failed because you exceeded a rate limit for this operation. For more information, see Quotas for Resource Explorer.
-
UnauthorizedException–The principal making the request isn't permitted to perform the operation.
-
ValidationException–You provided an invalid value for one of the operation's parameters. Check the syntax for the operation, and try again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_resource_explorer_2/_services/async_resource_explorer2.py
1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 | |