Deletes the AvailabilityConfiguration for the given WorkMail organization and domain.
Parameters:
-
organization_id
(OrganizationId)
–
The WorkMail organization for which the AvailabilityConfiguration will be deleted.
-
domain_name
(DomainName)
–
The domain for which the AvailabilityConfiguration will be deleted.
Raises:
Source code in docs_src/capo_workmail/_services/async_work_mail.py
| async def delete_availability_configuration(
self,
organization_id: "capo_workmail.types.organization_id.OrganizationId",
domain_name: "capo_workmail.types.domain_name.DomainName",
*,
config_overrides: Optional[AsyncWorkMailClientConfig] = None,
) -> "capo_workmail.types.delete_availability_configuration_response.DeleteAvailabilityConfigurationResponse":
"""<p>Deletes the <code>AvailabilityConfiguration</code> for the given WorkMail organization and domain.</p>
Args:
organization_id: <p>The WorkMail organization for which the <code>AvailabilityConfiguration</code> will be deleted.</p>
domain_name: <p>The domain for which the <code>AvailabilityConfiguration</code> will be deleted.</p>
Raises:
capo_workmail.errors.organization_not_found_exception.OrganizationNotFoundException: <p>An operation received a valid organization identifier that either doesn't belong or exist in the system.</p>
capo_workmail.errors.organization_state_exception.OrganizationStateException: <p>The organization must have a valid state to perform certain operations on the organization or its members.</p>
capo_workmail.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_workmail.types.delete_availability_configuration_request.DeleteAvailabilityConfigurationRequest]",
) -> AsyncOperationResponse[
"capo_workmail.types.delete_availability_configuration_response.DeleteAvailabilityConfigurationResponse"
]:
import capo_workmail._operations.work_mail_service.delete_availability_configuration
(
output,
http_response,
) = await capo_workmail._operations.work_mail_service.delete_availability_configuration.async_delete_availability_configuration(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteAvailabilityConfiguration")
)
input_: capo_workmail.types.delete_availability_configuration_request.DeleteAvailabilityConfigurationRequest = {
"organization_id": organization_id,
"domain_name": domain_name,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|