Removes tags from a WorkSpace Instance.
Parameters:
-
workspace_instance_id
(WorkspaceInstanceId)
–
Unique identifier of the WorkSpace Instance to untag.
-
tag_keys
(TagKeyList)
–
Keys of tags to be removed.
Raises:
Source code in docs_src/capo_workspaces_instances/_services/workspaces_instances.py
| def untag_resource(
self,
workspace_instance_id: "capo_workspaces_instances.types.workspace_instance_id.WorkspaceInstanceId",
tag_keys: "capo_workspaces_instances.types.tag_key_list.TagKeyList",
*,
config_overrides: Optional[WorkspacesInstancesClientConfig] = None,
) -> (
"capo_workspaces_instances.types.untag_resource_response.UntagResourceResponse"
):
"""<p>Removes tags from a WorkSpace Instance.</p>
Args:
workspace_instance_id: <p>Unique identifier of the WorkSpace Instance to untag.</p>
tag_keys: <p>Keys of tags to be removed.</p>
Raises:
capo_workspaces_instances.errors.access_denied_exception.AccessDeniedException: <p>Indicates insufficient permissions to perform the requested action.</p>
capo_workspaces_instances.errors.internal_server_exception.InternalServerException: <p>Indicates an unexpected server-side error occurred.</p>
capo_workspaces_instances.errors.resource_not_found_exception.ResourceNotFoundException: <p>Indicates the requested resource could not be found.</p>
capo_workspaces_instances.errors.throttling_exception.ThrottlingException: <p>Indicates the request rate has exceeded limits.</p>
capo_workspaces_instances.errors.validation_exception.ValidationException: <p>Indicates invalid input parameters in the request.</p>
capo_workspaces_instances.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_workspaces_instances.types.untag_resource_request.UntagResourceRequest]",
) -> OperationResponse[
"capo_workspaces_instances.types.untag_resource_response.UntagResourceResponse"
]:
import capo_workspaces_instances._operations.eucmi_frontend_api_service.untag_resource
output, http_response = (
capo_workspaces_instances._operations.eucmi_frontend_api_service.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_workspaces_instances.types.untag_resource_request.UntagResourceRequest = {
"workspace_instance_id": workspace_instance_id,
"tag_keys": tag_keys,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|