Skip to content

untag_resource async

untag_resource(
    resource_arn: AnyArn,
    tag_keys: TagKeys,
    *,
    config_overrides: Optional[AsyncGroundStationClientConfig] = None,
) -> UntagResourceResponse

Deassigns a resource tag.

Parameters:

  • resource_arn (AnyArn) –

    ARN of a resource.

  • tag_keys (TagKeys) –

    Keys of a resource tag.

Raises:

Source code in docs_src/capo_groundstation/_services/async_ground_station.py
async def untag_resource(
    self,
    resource_arn: "capo_groundstation.types.any_arn.AnyArn",
    tag_keys: "capo_groundstation.types.tag_keys.TagKeys",
    *,
    config_overrides: Optional[AsyncGroundStationClientConfig] = None,
) -> "capo_groundstation.types.untag_resource_response.UntagResourceResponse":
    """<p>Deassigns a resource tag.</p>

    Args:
        resource_arn: <p>ARN of a resource.</p>
        tag_keys: <p>Keys of a resource tag.</p>

    Raises:
        capo_groundstation.errors.dependency_exception.DependencyException: <p>Dependency encountered an error.</p>
        capo_groundstation.errors.invalid_parameter_exception.InvalidParameterException: <p>One or more parameters are not valid.</p>
        capo_groundstation.errors.resource_not_found_exception.ResourceNotFoundException: <p>Resource was not found.</p>
        capo_groundstation.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

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

        (
            output,
            http_response,
        ) = await capo_groundstation._operations.ground_station.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_groundstation.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