Skip to content

untag_resource

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

Removes tags from an app, pricing plan, billing metric or one-time price.

Parameters:

  • resource_arn (TaggableResourceArn) –

    ARN of the app, pricing plan, billing metric or one-time price to remove tags from.

  • tag_keys (TagKeyList) –

    Keys of the tags to remove. A key that is not on the resource is ignored.

Raises:

Source code in docs_src/capo_appmonetization/_services/app_monetization.py
def untag_resource(
    self,
    resource_arn: "capo_appmonetization.types.taggable_resource_arn.TaggableResourceArn",
    tag_keys: "capo_appmonetization.types.tag_key_list.TagKeyList",
    *,
    config_overrides: Optional[AppMonetizationClientConfig] = None,
) -> "capo_appmonetization.types.untag_resource_response.UntagResourceResponse":
    """Removes tags from an app, pricing plan, billing metric or one-time price.

    Args:
        resource_arn: ARN of the app, pricing plan, billing metric or one-time price to remove tags from.
        tag_keys: Keys of the tags to remove. A key that is not on the resource is ignored.

    Raises:
        capo_appmonetization.errors.access_denied_exception.AccessDeniedException: The caller does not have sufficient permission to perform this action.
        capo_appmonetization.errors.conflict_exception.ConflictException: The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
        capo_appmonetization.errors.internal_server_exception.InternalServerException: An unexpected error occurred while processing the request.
        capo_appmonetization.errors.resource_not_found_exception.ResourceNotFoundException: The referenced resource does not exist.
        capo_appmonetization.errors.throttling_exception.ThrottlingException: The request was denied due to request throttling.
        capo_appmonetization.errors.validation_exception.ValidationException: The request failed input validation.
        capo_appmonetization.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_appmonetization.types.untag_resource_request.UntagResourceRequest]",
    ) -> OperationResponse[
        "capo_appmonetization.types.untag_resource_response.UntagResourceResponse"
    ]:
        import capo_appmonetization._operations.aws_monetization_ai_front_end.untag_resource

        output, http_response = (
            capo_appmonetization._operations.aws_monetization_ai_front_end.untag_resource.untag_resource(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UntagResource")
    )
    input_: capo_appmonetization.types.untag_resource_request.UntagResourceRequest = {
        "resource_arn": resource_arn,
        "tag_keys": tag_keys,
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output