Skip to content

untag_resource async

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

Untags a resource with a specified Amazon Resource Name (ARN).

Parameters:

  • resource_arn (str) –

    The Amazon Resource Name (ARN) to use to untag a resource.

  • tag_keys (TagKeyList) –

    The tag keys to use to untag a resource.

Raises:

Source code in docs_src/capo_amplifyuibuilder/_services/async_amplify_ui_builder.py
async def untag_resource(
    self,
    resource_arn: str,
    tag_keys: "capo_amplifyuibuilder.types.tag_key_list.TagKeyList",
    *,
    config_overrides: Optional[AsyncAmplifyUIBuilderClientConfig] = None,
) -> "capo_amplifyuibuilder.types.untag_resource_response.UntagResourceResponse":
    """<p>Untags a resource with a specified Amazon Resource Name (ARN).</p>

    Args:
        resource_arn: <p>The Amazon Resource Name (ARN) to use to untag a resource.</p>
        tag_keys: <p>The tag keys to use to untag a resource.</p>

    Raises:
        capo_amplifyuibuilder.errors.internal_server_exception.InternalServerException: <p>An internal error has occurred. Please retry your request.</p>
        capo_amplifyuibuilder.errors.invalid_parameter_exception.InvalidParameterException: <p>An invalid or out-of-range value was supplied for the input parameter.</p>
        capo_amplifyuibuilder.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource does not exist, or access was denied.</p>
        capo_amplifyuibuilder.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
        capo_amplifyuibuilder.errors.unauthorized_exception.UnauthorizedException: <p>You don't have permission to perform this operation.</p>
        capo_amplifyuibuilder.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

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

        (
            output,
            http_response,
        ) = await capo_amplifyuibuilder._operations.amplify_ui_builder.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_amplifyuibuilder.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