async def delete_trust_store(
self,
*,
config_overrides: Optional[AsyncElasticLoadBalancingv2ClientConfig] = None,
trust_store_arn: Optional[
"capo_elastic_load_balancing_v2.types.trust_store_arn.TrustStoreArn"
] = None,
) -> "capo_elastic_load_balancing_v2.types.delete_trust_store_output.DeleteTrustStoreOutput":
"""<p>Deletes a trust store.</p>
Args:
trust_store_arn: <p>The Amazon Resource Name (ARN) of the trust store.</p>
Raises:
capo_elastic_load_balancing_v2.errors.trust_store_in_use_exception.TrustStoreInUseException: <p>The specified trust store is currently in use.</p>
capo_elastic_load_balancing_v2.errors.trust_store_not_found_exception.TrustStoreNotFoundException: <p>The specified trust store does not exist.</p>
capo_elastic_load_balancing_v2.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_elastic_load_balancing_v2.types.delete_trust_store_input.DeleteTrustStoreInput]",
) -> AsyncOperationResponse[
"capo_elastic_load_balancing_v2.types.delete_trust_store_output.DeleteTrustStoreOutput"
]:
import capo_elastic_load_balancing_v2._operations.elastic_load_balancing_v10.delete_trust_store
(
output,
http_response,
) = await capo_elastic_load_balancing_v2._operations.elastic_load_balancing_v10.delete_trust_store.async_delete_trust_store(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteTrustStore")
)
input_: capo_elastic_load_balancing_v2.types.delete_trust_store_input.DeleteTrustStoreInput = {}
if trust_store_arn is not None:
input_["trust_store_arn"] = trust_store_arn
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output