Skip to content

untag_resource async

untag_resource(
    resource_arn: SimSpaceWeaverArn,
    tag_keys: TagKeyList,
    *,
    config_overrides: Optional[AsyncSimSpaceWeaverClientConfig] = None,
) -> UntagResourceOutput

Removes tags from a SimSpace Weaver resource. For more information about tags, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference.

Parameters:

  • resource_arn (SimSpaceWeaverArn) –

    The Amazon Resource Name (ARN) of the resource that you want to remove tags from. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.

  • tag_keys (TagKeyList) –

    A list of tag keys to remove from the resource.

Raises:

Source code in docs_src/capo_simspaceweaver/_services/async_sim_space_weaver.py
async def untag_resource(
    self,
    resource_arn: "capo_simspaceweaver.types.sim_space_weaver_arn.SimSpaceWeaverArn",
    tag_keys: "capo_simspaceweaver.types.tag_key_list.TagKeyList",
    *,
    config_overrides: Optional[AsyncSimSpaceWeaverClientConfig] = None,
) -> "capo_simspaceweaver.types.untag_resource_output.UntagResourceOutput":
    """<p>Removes tags from a SimSpace Weaver resource. For more information about tags, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a> in the <i>Amazon Web Services General Reference</i>.</p>

    Args:
        resource_arn: <p>The Amazon Resource Name (ARN) of the resource that you want to remove tags from. For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i>.</p>
        tag_keys: <p>A list of tag keys to remove from the resource.</p>

    Raises:
        capo_simspaceweaver.errors.resource_not_found_exception.ResourceNotFoundException: <p/>
        capo_simspaceweaver.errors.validation_exception.ValidationException: <p/>
        capo_simspaceweaver.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_simspaceweaver.types.untag_resource_input.UntagResourceInput]",
    ) -> AsyncOperationResponse[
        "capo_simspaceweaver.types.untag_resource_output.UntagResourceOutput"
    ]:
        import capo_simspaceweaver._operations.sim_space_weaver.untag_resource

        (
            output,
            http_response,
        ) = await capo_simspaceweaver._operations.sim_space_weaver.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_simspaceweaver.types.untag_resource_input.UntagResourceInput = {
        "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