Skip to content

untag_resource async

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

Removes a tag from the specified flow.

Parameters:

  • resource_arn (ARN) –

    The Amazon Resource Name (ARN) of the flow that you want to untag.

  • tag_keys (TagKeyList) –

    The tag keys associated with the tag that you want to remove from your flow.

Raises:

Source code in docs_src/capo_appflow/_services/async_appflow.py
async def untag_resource(
    self,
    resource_arn: "capo_appflow.types.arn.ARN",
    tag_keys: "capo_appflow.types.tag_key_list.TagKeyList",
    *,
    config_overrides: Optional[AsyncAppflowClientConfig] = None,
) -> "capo_appflow.types.untag_resource_response.UntagResourceResponse":
    """<p> Removes a tag from the specified flow. </p>

    Args:
        resource_arn: <p> The Amazon Resource Name (ARN) of the flow that you want to untag. </p>
        tag_keys: <p> The tag keys associated with the tag that you want to remove from your flow. </p>

    Raises:
        capo_appflow.errors.internal_server_exception.InternalServerException: <p> An internal service error occurred during the processing of your request. Try again later. </p>
        capo_appflow.errors.resource_not_found_exception.ResourceNotFoundException: <p> The resource specified in the request (such as the source or destination connector profile) is not found. </p>
        capo_appflow.errors.validation_exception.ValidationException: <p> The request has invalid or missing parameters. </p>
        capo_appflow.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

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

        (
            output,
            http_response,
        ) = await capo_appflow._operations.sandstone_configuration_service_lambda.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_appflow.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