def untag_resource(
self,
resource_arn: "capo_iot_wireless.types.amazon_resource_name.AmazonResourceName",
tag_keys: "capo_iot_wireless.types.tag_key_list.TagKeyList",
*,
config_overrides: Optional[IoTWirelessClientConfig] = None,
) -> "capo_iot_wireless.types.untag_resource_response.UntagResourceResponse":
"""<p>Removes one or more tags from a resource.</p>
Args:
resource_arn: <p>The ARN of the resource to remove tags from.</p>
tag_keys: <p>A list of the keys of the tags to remove from the resource.</p>
Raises:
capo_iot_wireless.errors.conflict_exception.ConflictException: <p>Adding, updating, or deleting the resource can cause an inconsistent state.</p>
capo_iot_wireless.errors.internal_server_exception.InternalServerException: <p>An unexpected error occurred while processing a request.</p>
capo_iot_wireless.errors.resource_not_found_exception.ResourceNotFoundException: <p>Resource does not exist.</p>
capo_iot_wireless.errors.throttling_exception.ThrottlingException: <p>The request was denied because it exceeded the allowed API request rate.</p>
capo_iot_wireless.errors.validation_exception.ValidationException: <p>The input did not meet the specified constraints.</p>
capo_iot_wireless.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_iot_wireless.types.untag_resource_request.UntagResourceRequest]",
) -> OperationResponse[
"capo_iot_wireless.types.untag_resource_response.UntagResourceResponse"
]:
import capo_iot_wireless._operations.iotwireless.untag_resource
output, http_response = (
capo_iot_wireless._operations.iotwireless.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_iot_wireless.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