tag_resource
async
¶
tag_resource(
resource_arn: ResourceArn,
tag_list: TagList,
*,
config_overrides: Optional[AsyncFMSClientConfig] = None,
) -> TagResourceResponse
Adds one or more tags to an Amazon Web Services resource.
Parameters:
-
resource_arn(ResourceArn) –The Amazon Resource Name (ARN) of the resource to return tags for. The Firewall Manager resources that support tagging are policies, applications lists, and protocols lists.
-
tag_list(TagList) –The tags to add to the resource.
Raises:
-
InternalErrorException–The operation failed because of a system problem, even though the request was valid. Retry your request.
-
InvalidInputException–The parameters of the request were invalid.
-
InvalidOperationException–The operation failed because there was nothing to do or the operation wasn't possible. For example, you might have submitted an
AssociateAdminAccountrequest for an account ID that was already set as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by default, and that you need to enable for the Firewall Manager administrator account and for Organizations before you can access it. -
LimitExceededException–The operation exceeds a resource limit, for example, the maximum number of
policyobjects that you can create for an Amazon Web Services account. For more information, see Firewall Manager Limits in the WAF Developer Guide. -
ResourceNotFoundException–The specified resource was not found.
-
UnknownServiceError–The service returned an error code this client does not model.