Skip to content

untag_resource async

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

Removes tags from an Cloud9 development environment.

Cloud9 is no longer available to new customers. Existing customers of Cloud9 can continue to use the service as normal. Learn more"

Parameters:

  • resource_arn (EnvironmentArn) –

    The Amazon Resource Name (ARN) of the Cloud9 development environment to remove tags from.

  • tag_keys (TagKeyList) –

    The tag names of the tags to remove from the given Cloud9 development environment.

Raises:

Source code in docs_src/capo_cloud9/_services/async_cloud9.py
async def untag_resource(
    self,
    resource_arn: "capo_cloud9.types.environment_arn.EnvironmentArn",
    tag_keys: "capo_cloud9.types.tag_key_list.TagKeyList",
    *,
    config_overrides: Optional[AsyncCloud9ClientConfig] = None,
) -> "capo_cloud9.types.untag_resource_response.UntagResourceResponse":
    """<p>Removes tags from an Cloud9 development environment.</p> <important> <p>Cloud9 is no longer available to new customers. Existing customers of Cloud9 can continue to use the service as normal. <a href="http://aws.amazon.com/blogs/devops/how-to-migrate-from-aws-cloud9-to-aws-ide-toolkits-or-aws-cloudshell/">Learn more"</a> </p> </important>

    Args:
        resource_arn: <p>The Amazon Resource Name (ARN) of the Cloud9 development environment to remove tags from.</p>
        tag_keys: <p>The tag names of the tags to remove from the given Cloud9 development environment.</p>

    Raises:
        capo_cloud9.errors.bad_request_exception.BadRequestException: <p>The target request is invalid.</p>
        capo_cloud9.errors.concurrent_access_exception.ConcurrentAccessException: <p>A concurrent access issue occurred.</p>
        capo_cloud9.errors.internal_server_error_exception.InternalServerErrorException: <p>An internal server error occurred.</p>
        capo_cloud9.errors.not_found_exception.NotFoundException: <p>The target resource cannot be found.</p>
        capo_cloud9.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

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

        (
            output,
            http_response,
        ) = await capo_cloud9._operations.aws_cloud9_workspace_management_service.untag_resource.async_untag_resource(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    def _redact_input(
        input_: "capo_cloud9.types.untag_resource_request.UntagResourceRequest",
    ) -> dict[str, Any]:
        import capo_cloud9.types.untag_resource_request

        return capo_cloud9.types.untag_resource_request.redact_sensitive(input_)

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("UntagResource", redact_input=_redact_input),
    )
    input_: capo_cloud9.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