tag_resource
¶
tag_resource(
resource_arn: Arn,
tags: RequestTagMap,
*,
config_overrides: Optional[PCSClientConfig] = None,
) -> TagResourceResponse
Adds or edits tags on an PCS resource. Each tag consists of a tag key and a tag value. The tag key and tag value are case-sensitive strings. The tag value can be an empty (null) string. To add a tag, specify a new tag key and a tag value. To edit a tag, specify an existing tag key and a new tag value.
Parameters:
-
resource_arn(Arn) –The Amazon Resource Name (ARN) of the resource.
-
tags(RequestTagMap) –1 or more tags added to the resource. Each tag consists of a tag key and tag value. The tag value is optional and can be an empty string.
Raises:
-
ResourceNotFoundException–The requested resource can't be found. The cluster, node group, or queue you're attempting to get, update, list, or delete doesn't exist.
Examples
-
ServiceQuotaExceededException–You exceeded your service quota. Service quotas, also referred to as limits, are the maximum number of service resources or operations for your Amazon Web Services account. To learn how to increase your service quota, see Requesting a quota increase in the Service Quotas User Guide
Examples
-
The max number of clusters or queues has been reached for the account.
-
The max number of compute node groups has been reached for the associated cluster.
-
The total of
maxInstancesacross all compute node groups has been reached for associated cluster.
-
-
UnknownServiceError–The service returned an error code this client does not model.