tag_resource
¶
tag_resource(
arn: Arn, tags: Tags, *, config_overrides: Optional[TransferClientConfig] = None
) -> None
Attaches a key-value pair to a resource, as identified by its Amazon Resource Name (ARN). Resources are users, servers, roles, and other entities.
There is no response returned from this call.
Parameters:
-
arn(Arn) –An Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a server, user, or role.
-
tags(Tags) –Key-value pairs assigned to ARNs that you can use to group and search for resources by type. You can attach this metadata to resources (servers, users, workflows, and so on) for any purpose.
Raises:
-
InternalServiceError–This exception is thrown when an error occurs in the Transfer Family service.
-
InvalidRequestException–This exception is thrown when the client submits a malformed request.
-
ResourceNotFoundException–This exception is thrown when a resource is not found by the Amazon Web ServicesTransfer Family service.
-
ServiceUnavailableException–The request has failed because the Amazon Web ServicesTransfer Family service is not available.
-
UnknownServiceError–The service returned an error code this client does not model.