create_group
¶
create_group(
organization_id: OrganizationId,
name: GroupName,
*,
config_overrides: Optional[WorkMailClientConfig] = None,
hidden_from_global_address_list: Optional[Boolean] = None,
) -> CreateGroupResponse
Creates a group that can be used in WorkMail by calling the RegisterToWorkMail operation.
Parameters:
-
organization_id(OrganizationId) –The organization under which the group is to be created.
-
name(GroupName) –The name of the group.
-
hidden_from_global_address_list(Optional[Boolean], default:None) –If this parameter is enabled, the group will be hidden from the address book.
Raises:
-
DirectoryServiceAuthenticationFailedException–The directory service doesn't recognize the credentials supplied by WorkMail.
-
DirectoryUnavailableException–The directory is unavailable. It might be located in another Region or deleted.
-
InvalidParameterException–One or more of the input parameters don't match the service's restrictions.
-
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.
-
ReservedNameException–This user, group, or resource name is not allowed in WorkMail.
-
UnsupportedOperationException–You can't perform a write operation against a read-only directory.
-
UnknownServiceError–The service returned an error code this client does not model.