Detaches a key-value pair from a resource, as identified by its Amazon Resource Name (ARN). Resources are users, servers, roles, and other entities.
Parameters:
-
resource_arn
(AmazonResourceName)
–
The value of the resource that will have the tag removed. An Amazon Resource Name (ARN) is an identifier for a specific AWS resource, such as a server, user, or role.
-
tag_keys
(TagKeyList)
–
TagKeys are key-value pairs assigned to ARNs that can be used to group and search for resources by type. This metadata can be attached to resources for any purpose.
Raises:
Source code in docs_src/capo_chatbot/_services/chatbot.py
| def untag_resource(
self,
resource_arn: "capo_chatbot.types.amazon_resource_name.AmazonResourceName",
tag_keys: "capo_chatbot.types.tag_key_list.TagKeyList",
*,
config_overrides: Optional[chatbotClientConfig] = None,
) -> "capo_chatbot.types.untag_resource_response.UntagResourceResponse":
"""<p>Detaches a key-value pair from a resource, as identified by its Amazon Resource Name (ARN). Resources are users, servers, roles, and other entities.</p>
Args:
resource_arn: <p>The value of the resource that will have the tag removed. An Amazon Resource Name (ARN) is an identifier for a specific AWS resource, such as a server, user, or role.</p>
tag_keys: <p>TagKeys are key-value pairs assigned to ARNs that can be used to group and search for resources by type. This metadata can be attached to resources for any purpose.</p>
Raises:
capo_chatbot.errors.internal_service_error.InternalServiceError: <p>Unexpected error during processing of request.</p>
capo_chatbot.errors.resource_not_found_exception.ResourceNotFoundException: <p>We were unable to find the resource for your request</p>
capo_chatbot.errors.service_unavailable_exception.ServiceUnavailableException: <p>We can’t process your request right now because of a server issue. Try again later.</p>
capo_chatbot.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_chatbot.types.untag_resource_request.UntagResourceRequest]",
) -> OperationResponse[
"capo_chatbot.types.untag_resource_response.UntagResourceResponse"
]:
import capo_chatbot._operations.wheatley_orchestration_20171011.untag_resource
output, http_response = (
capo_chatbot._operations.wheatley_orchestration_20171011.untag_resource.untag_resource(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UntagResource")
)
input_: capo_chatbot.types.untag_resource_request.UntagResourceRequest = {
"resource_arn": resource_arn,
"tag_keys": tag_keys,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|