untag_resource(
resource_arn: ARN,
tag_keys: TagKeyList,
*,
config_overrides: Optional[AsyncConnectClientConfig] = None,
) -> None
Removes the specified tags from the specified resource.
Parameters:
-
resource_arn
(ARN)
–
The Amazon Resource Name (ARN) of the resource.
-
tag_keys
(TagKeyList)
–
Raises:
Source code in docs_src/capo_connect/_services/async_connect.py
| async def untag_resource(
self,
resource_arn: "capo_connect.types.arn.ARN",
tag_keys: "capo_connect.types.tag_key_list.TagKeyList",
*,
config_overrides: Optional[AsyncConnectClientConfig] = None,
) -> None:
"""<p>Removes the specified tags from the specified resource.</p>
Args:
resource_arn: <p>The Amazon Resource Name (ARN) of the resource.</p>
tag_keys: <p>The tag keys.</p>
Raises:
capo_connect.errors.internal_service_exception.InternalServiceException: <p>Request processing failed because of an error or failure with the service.</p>
capo_connect.errors.invalid_parameter_exception.InvalidParameterException: <p>One or more of the specified parameters are not valid.</p>
capo_connect.errors.invalid_request_exception.InvalidRequestException: <p>The request is not valid.</p>
capo_connect.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource was not found.</p>
capo_connect.errors.throttling_exception.ThrottlingException: <p>The throttling limit has been exceeded.</p>
capo_connect.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_connect.types.untag_resource_request.UntagResourceRequest]",
) -> AsyncOperationResponse[None]:
import capo_connect._operations.amazon_connect_service.untag_resource
(
output,
http_response,
) = await capo_connect._operations.amazon_connect_service.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_connect.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
|