Skip to content

untag_resource async

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

Removes one or more tags from the specified resource.

Parameters:

  • resource_arn (AmazonResourceName) –

    The Amazon Resource Name (ARN) of the CloudWatch resource that you want to delete tags from.

    The ARN format of an Application Signals SLO is arn:aws:cloudwatch:Region:account-id:slo:slo-name

    For more information about ARN format, see Resource Types Defined by Amazon CloudWatch in the Amazon Web Services General Reference.

  • tag_keys (TagKeyList) –

    The list of tag keys to remove from the resource.

Raises:

Source code in docs_src/capo_application_signals/_services/async_application_signals.py
async def untag_resource(
    self,
    resource_arn: "capo_application_signals.types.amazon_resource_name.AmazonResourceName",
    tag_keys: "capo_application_signals.types.tag_key_list.TagKeyList",
    *,
    config_overrides: Optional[AsyncApplicationSignalsClientConfig] = None,
) -> "capo_application_signals.types.untag_resource_response.UntagResourceResponse":
    """<p>Removes one or more tags from the specified resource.</p>

    Args:
        resource_arn: <p>The Amazon Resource Name (ARN) of the CloudWatch resource that you want to delete tags from.</p> <p>The ARN format of an Application Signals SLO is <code>arn:aws:cloudwatch:<i>Region</i>:<i>account-id</i>:slo:<i>slo-name</i> </code> </p> <p>For more information about ARN format, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazoncloudwatch.html#amazoncloudwatch-resources-for-iam-policies"> Resource Types Defined by Amazon CloudWatch</a> in the <i>Amazon Web Services General Reference</i>.</p>
        tag_keys: <p>The list of tag keys to remove from the resource.</p>

    Raises:
        capo_application_signals.errors.resource_not_found_exception.ResourceNotFoundException: <p>Resource not found.</p>
        capo_application_signals.errors.throttling_exception.ThrottlingException: <p>The request was throttled because of quota limits.</p>
        capo_application_signals.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

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

        (
            output,
            http_response,
        ) = await capo_application_signals._operations.application_signals.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_application_signals.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