This operation removes one or more tags from a resource.
Parameters:
-
resource_arn
(__string)
–
An Amazon Resource Name (ARN) that uniquely identifies an AWS resource.
-
tag_keys
(ListOf__string)
–
Raises:
Source code in docs_src/capo_dataexchange/_services/async_data_exchange.py
| async def untag_resource(
self,
resource_arn: "capo_dataexchange.types.__string.__string",
tag_keys: "capo_dataexchange.types.list_of__string.ListOf__string",
*,
config_overrides: Optional[AsyncDataExchangeClientConfig] = None,
) -> None:
"""<p>This operation removes one or more tags from a resource.</p>
Args:
resource_arn: <p>An Amazon Resource Name (ARN) that uniquely identifies an AWS resource.</p>
tag_keys: <p>The key tags.</p>
Raises:
capo_dataexchange.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_dataexchange.types.untag_resource_request.UntagResourceRequest]",
) -> AsyncOperationResponse[None]:
import capo_dataexchange._operations.data_exchange.untag_resource
(
output,
http_response,
) = await capo_dataexchange._operations.data_exchange.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_dataexchange.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
|