Removes tags from a resource.
This operation returns an empty response if the call was successful.
Parameters:
-
resource_arn
(Arn)
–
The Amazon resource name (ARN) that specifies the resource.
-
tag_keys
(TagKeys)
–
A list of the tag keys to remove from the specified resource.
Raises:
Source code in docs_src/capo_service_catalog_appregistry/_services/async_service_catalog_app_registry.py
| async def untag_resource(
self,
resource_arn: "capo_service_catalog_appregistry.types.arn.Arn",
tag_keys: "capo_service_catalog_appregistry.types.tag_keys.TagKeys",
*,
config_overrides: Optional[AsyncServiceCatalogAppRegistryClientConfig] = None,
) -> "capo_service_catalog_appregistry.types.untag_resource_response.UntagResourceResponse":
"""<p>Removes tags from a resource.</p> <p>This operation returns an empty response if the call was successful.</p>
Args:
resource_arn: <p>The Amazon resource name (ARN) that specifies the resource.</p>
tag_keys: <p>A list of the tag keys to remove from the specified resource.</p>
Raises:
capo_service_catalog_appregistry.errors.internal_server_exception.InternalServerException: <p>The service is experiencing internal problems.</p>
capo_service_catalog_appregistry.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource does not exist.</p>
capo_service_catalog_appregistry.errors.validation_exception.ValidationException: <p>The request has invalid or missing parameters.</p>
capo_service_catalog_appregistry.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_service_catalog_appregistry.types.untag_resource_request.UntagResourceRequest]",
) -> AsyncOperationResponse[
"capo_service_catalog_appregistry.types.untag_resource_response.UntagResourceResponse"
]:
import capo_service_catalog_appregistry._operations.aws242_app_registry.untag_resource
(
output,
http_response,
) = await capo_service_catalog_appregistry._operations.aws242_app_registry.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_service_catalog_appregistry.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
|