Removes metadata tags from an elastic cluster resource
Parameters:
-
resource_arn
(Arn)
–
The ARN identifier of the elastic cluster resource.
-
tag_keys
(TagKeyList)
–
The tag keys to be removed from the elastic cluster resource.
Raises:
Source code in docs_src/capo_docdb_elastic/_services/async_doc_db_elastic.py
| async def untag_resource(
self,
resource_arn: "capo_docdb_elastic.types.arn.Arn",
tag_keys: "capo_docdb_elastic.types.tag_key_list.TagKeyList",
*,
config_overrides: Optional[AsyncDocDBElasticClientConfig] = None,
) -> "capo_docdb_elastic.types.untag_resource_response.UntagResourceResponse":
"""<p>Removes metadata tags from an elastic cluster resource</p>
Args:
resource_arn: <p>The ARN identifier of the elastic cluster resource.</p>
tag_keys: <p>The tag keys to be removed from the elastic cluster resource.</p>
Raises:
capo_docdb_elastic.errors.internal_server_exception.InternalServerException: <p>There was an internal server error.</p>
capo_docdb_elastic.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource could not be located.</p>
capo_docdb_elastic.errors.throttling_exception.ThrottlingException: <p>ThrottlingException will be thrown when request was denied due to request throttling.</p>
capo_docdb_elastic.errors.validation_exception.ValidationException: <p>A structure defining a validation exception.</p>
capo_docdb_elastic.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_docdb_elastic.types.untag_resource_request.UntagResourceRequest]",
) -> AsyncOperationResponse[
"capo_docdb_elastic.types.untag_resource_response.UntagResourceResponse"
]:
import capo_docdb_elastic._operations.chimera_db_lionfish_service_lambda.untag_resource
(
output,
http_response,
) = await capo_docdb_elastic._operations.chimera_db_lionfish_service_lambda.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_docdb_elastic.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
|