Skip to content

untag_resource async

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

You can delete tags for an Amazon Web Services Supply chain resource such as instance, data flow, or dataset in AWS Supply Chain. During the data ingestion process, you can delete tags such as dev, test, or prod to data flows created during the data ingestion process in the AWS Supply Chain datasets.

Parameters:

  • resource_arn (AscResourceArn) –

    The Amazon Web Services Supply chain resource ARN that needs to be untagged.

  • tag_keys (TagKeyList) –

    The list of tag keys to be deleted for an Amazon Web Services Supply Chain resource.

Raises:

Examples:

Successful UntagResource

>>> await client.untag_resource(resource_arn='arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/data-integration-flows/my_flow1', tag_keys=['tagKey1'])
Source code in docs_src/capo_supplychain/_services/async_supply_chain.py
async def untag_resource(
    self,
    resource_arn: "capo_supplychain.types.asc_resource_arn.AscResourceArn",
    tag_keys: "capo_supplychain.types.tag_key_list.TagKeyList",
    *,
    config_overrides: Optional[AsyncSupplyChainClientConfig] = None,
) -> "capo_supplychain.types.untag_resource_response.UntagResourceResponse":
    """<p>You can delete tags for an Amazon Web Services Supply chain resource such as instance, data flow, or dataset in AWS Supply Chain. During the data ingestion process, you can delete tags such as dev, test, or prod to data flows created during the data ingestion process in the AWS Supply Chain datasets. </p>

    Args:
        resource_arn: <p>The Amazon Web Services Supply chain resource ARN that needs to be untagged.</p>
        tag_keys: <p>The list of tag keys to be deleted for an Amazon Web Services Supply Chain resource.</p>

    Raises:
        capo_supplychain.errors.access_denied_exception.AccessDeniedException: <p>You do not have the required privileges to perform this action.</p>
        capo_supplychain.errors.conflict_exception.ConflictException: <p>Updating or deleting a resource can cause an inconsistent state.</p>
        capo_supplychain.errors.internal_server_exception.InternalServerException: <p>Unexpected error during processing of request.</p>
        capo_supplychain.errors.resource_not_found_exception.ResourceNotFoundException: <p>Request references a resource which does not exist.</p>
        capo_supplychain.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>Request would cause a service quota to be exceeded.</p>
        capo_supplychain.errors.throttling_exception.ThrottlingException: <p>Request was denied due to request throttling.</p>
        capo_supplychain.errors.validation_exception.ValidationException: <p>The input does not satisfy the constraints specified by an AWS service.</p>
        capo_supplychain.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        Successful UntagResource

        >>> await client.untag_resource(resource_arn='arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/data-integration-flows/my_flow1', tag_keys=['tagKey1'])
    """

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

        (
            output,
            http_response,
        ) = await capo_supplychain._operations.galaxy_public_api_gateway.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_supplychain.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