create_availability_configuration
async
¶
create_availability_configuration(
organization_id: OrganizationId,
domain_name: DomainName,
*,
config_overrides: Optional[AsyncWorkMailClientConfig] = None,
client_token: Optional[IdempotencyClientToken] = None,
ews_provider: Optional[EwsAvailabilityProvider] = None,
lambda_provider: Optional[LambdaAvailabilityProvider] = None,
) -> CreateAvailabilityConfigurationResponse
Creates an AvailabilityConfiguration for the given WorkMail organization and domain.
Parameters:
-
client_token(Optional[IdempotencyClientToken], default:None) –An idempotent token that ensures that an API request is executed only once.
-
organization_id(OrganizationId) –The WorkMail organization for which the
AvailabilityConfigurationwill be created. -
domain_name(DomainName) –The domain to which the provider applies.
-
ews_provider(Optional[EwsAvailabilityProvider], default:None) –Exchange Web Services (EWS) availability provider definition. The request must contain exactly one provider definition, either
EwsProviderorLambdaProvider. -
lambda_provider(Optional[LambdaAvailabilityProvider], default:None) –Lambda availability provider definition. The request must contain exactly one provider definition, either
EwsProviderorLambdaProvider.
Raises:
-
InvalidParameterException–One or more of the input parameters don't match the service's restrictions.
-
LimitExceededException–The request exceeds the limit of the resource.
-
NameAvailabilityException–The user, group, or resource name isn't unique in WorkMail.
-
OrganizationNotFoundException–An operation received a valid organization identifier that either doesn't belong or exist in the system.
-
OrganizationStateException–The organization must have a valid state to perform certain operations on the organization or its members.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_workmail/_services/async_work_mail.py
696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 | |