Skip to content

untag_resource async

untag_resource(
    resource_arn: String,
    tag_keys: StringList,
    *,
    config_overrides: Optional[AsyncdeadlineClientConfig] = None,
) -> UntagResourceResponse

Removes a tag from a resource using the resource's ARN and tag to remove.

Parameters:

  • resource_arn (String) –

    The ARN of the resource to remove the tag from.

  • tag_keys (StringList) –

    They keys of the tag.

Raises:

Source code in docs_src/capo_deadline/_services/async_deadline.py
async def untag_resource(
    self,
    resource_arn: "capo_deadline.types.string.String",
    tag_keys: "capo_deadline.types.string_list.StringList",
    *,
    config_overrides: Optional[AsyncdeadlineClientConfig] = None,
) -> "capo_deadline.types.untag_resource_response.UntagResourceResponse":
    """<p>Removes a tag from a resource using the resource's ARN and tag to remove.</p>

    Args:
        resource_arn: <p>The ARN of the resource to remove the tag from.</p>
        tag_keys: <p>They keys of the tag.</p>

    Raises:
        capo_deadline.errors.access_denied_exception.AccessDeniedException: <p>You don't have permission to perform the action.</p>
        capo_deadline.errors.conflict_exception.ConflictException: <p>Your request has conflicting operations. This can occur if you're trying to perform more than one operation on the same resource at the same time.</p>
        capo_deadline.errors.internal_server_error_exception.InternalServerErrorException: <p>Deadline Cloud can't process your request right now. Try again later.</p>
        capo_deadline.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource can't be found.</p>
        capo_deadline.errors.throttling_exception.ThrottlingException: <p>Your request exceeded a request rate quota.</p>
        capo_deadline.errors.validation_exception.ValidationException: <p>The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters.</p>
        capo_deadline.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_deadline.types.untag_resource_request.UntagResourceRequest]",
    ) -> AsyncOperationResponse[
        "capo_deadline.types.untag_resource_response.UntagResourceResponse"
    ]:
        import capo_deadline._operations.deadline.untag_resource

        (
            output,
            http_response,
        ) = await capo_deadline._operations.deadline.untag_resource.async_untag_resource(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UntagResource")
    )
    input_: capo_deadline.types.untag_resource_request.UntagResourceRequest = {
        "resource_arn": resource_arn,
        "tag_keys": tag_keys,
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output