Skip to content

untag_resource async

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

Removes one or more tags from a signing profile. To remove the tags, specify a list of tag keys.

Parameters:

  • resource_arn (String) –

    The Amazon Resource Name (ARN) for the signing profile.

  • tag_keys (TagKeyList) –

    A list of tag keys to be removed from the signing profile.

Raises:

Source code in docs_src/capo_signer/_services/async_signer.py
async def untag_resource(
    self,
    resource_arn: "capo_signer.types.string.String",
    tag_keys: "capo_signer.types.tag_key_list.TagKeyList",
    *,
    config_overrides: Optional[AsyncsignerClientConfig] = None,
) -> "capo_signer.types.untag_resource_response.UntagResourceResponse":
    """<p>Removes one or more tags from a signing profile. To remove the tags, specify a list of tag keys.</p>

    Args:
        resource_arn: <p>The Amazon Resource Name (ARN) for the signing profile.</p>
        tag_keys: <p>A list of tag keys to be removed from the signing profile.</p>

    Raises:
        capo_signer.errors.bad_request_exception.BadRequestException: <p>The request contains invalid parameters for the ARN or tags. This exception also occurs when you call a tagging API on a cancelled signing profile.</p>
        capo_signer.errors.internal_service_error_exception.InternalServiceErrorException: <p>An internal error occurred.</p>
        capo_signer.errors.not_found_exception.NotFoundException: <p>The signing profile was not found.</p>
        capo_signer.errors.too_many_requests_exception.TooManyRequestsException: <p>The allowed number of job-signing requests has been exceeded.</p> <p>This error supersedes the error <code>ThrottlingException</code>.</p>
        capo_signer.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

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

        (
            output,
            http_response,
        ) = await capo_signer._operations.wallaby_service.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_signer.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