Skip to content

untag_resource async

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

Removes one or more tags from the specified Amazon Connect Customer Profiles resource. In Connect Customer Profiles, domains, profile object types, and integrations can be tagged.

Parameters:

  • resource_arn (TagArn) –

    The ARN of the resource from which you are removing tags.

  • tag_keys (TagKeyList) –

    The list of tag keys to remove from the resource.

Raises:

Source code in docs_src/capo_customer_profiles/_services/async_customer_profiles.py
async def untag_resource(
    self,
    resource_arn: "capo_customer_profiles.types.tag_arn.TagArn",
    tag_keys: "capo_customer_profiles.types.tag_key_list.TagKeyList",
    *,
    config_overrides: Optional[AsyncCustomerProfilesClientConfig] = None,
) -> "capo_customer_profiles.types.untag_resource_response.UntagResourceResponse":
    """<p>Removes one or more tags from the specified Amazon Connect Customer Profiles resource. In Connect Customer Profiles, domains, profile object types, and integrations can be tagged.</p>

    Args:
        resource_arn: <p>The ARN of the resource from which you are removing tags.</p>
        tag_keys: <p>The list of tag keys to remove from the resource.</p>

    Raises:
        capo_customer_profiles.errors.bad_request_exception.BadRequestException: <p>The input you provided is invalid.</p>
        capo_customer_profiles.errors.internal_server_exception.InternalServerException: <p>An internal service error occurred.</p>
        capo_customer_profiles.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource does not exist, or access was denied.</p>
        capo_customer_profiles.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

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

        (
            output,
            http_response,
        ) = await capo_customer_profiles._operations.customer_profiles_20200815.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_customer_profiles.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