Deletes the specified quota share. You must first disable submissions for the share by updating the state to DISABLED using the UpdateQuotaShare operation. All jobs in the share are eventually terminated when you delete a quota share.
Parameters:
-
quota_share_arn
(Optional[String], default:
None
)
–
The Amazon Resource Name (ARN) of the quota share.
Raises:
-
ClientException
–
These errors are usually caused by a client action. One example cause is using an action or resource on behalf of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier that's not valid.
-
ServerException
–
These errors are usually caused by a server issue.
-
UnknownServiceError
–
The service returned an error code this client does not model.
Source code in docs_src/capo_batch/_services/async_batch.py
| async def delete_quota_share(
self,
*,
config_overrides: Optional[AsyncBatchClientConfig] = None,
quota_share_arn: Optional["capo_batch.types.string.String"] = None,
) -> "capo_batch.types.delete_quota_share_response.DeleteQuotaShareResponse":
"""<p>Deletes the specified quota share. You must first disable submissions for the share by updating the state to <code>DISABLED</code> using the <a>UpdateQuotaShare</a> operation. All jobs in the share are eventually terminated when you delete a quota share.</p>
Args:
quota_share_arn: <p>The Amazon Resource Name (ARN) of the quota share.</p>
Raises:
capo_batch.errors.client_exception.ClientException: <p>These errors are usually caused by a client action. One example cause is using an action or resource on behalf of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier that's not valid.</p>
capo_batch.errors.server_exception.ServerException: <p>These errors are usually caused by a server issue.</p>
capo_batch.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_batch.types.delete_quota_share_request.DeleteQuotaShareRequest]",
) -> AsyncOperationResponse[
"capo_batch.types.delete_quota_share_response.DeleteQuotaShareResponse"
]:
import capo_batch._operations.aws_batch_v20160810.delete_quota_share
(
output,
http_response,
) = await capo_batch._operations.aws_batch_v20160810.delete_quota_share.async_delete_quota_share(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteQuotaShare")
)
input_: capo_batch.types.delete_quota_share_request.DeleteQuotaShareRequest = {}
if quota_share_arn is not None:
input_["quota_share_arn"] = quota_share_arn
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|