update_resource
¶
update_resource(
organization_id: OrganizationId,
resource_id: EntityIdentifier,
*,
config_overrides: Optional[WorkMailClientConfig] = None,
name: Optional[ResourceName] = None,
booking_options: Optional[BookingOptions] = None,
description: Optional[NewResourceDescription] = None,
type: Optional[ResourceType] = None,
hidden_from_global_address_list: Optional[BooleanObject] = None,
) -> UpdateResourceResponse
Updates data for the resource. To have the latest information, it must be preceded by a DescribeResource call. The dataset in the request should be the one expected when performing another DescribeResource call.
Parameters:
-
organization_id(OrganizationId) –The identifier associated with the organization for which the resource is updated.
-
resource_id(EntityIdentifier) –The identifier of the resource to be updated.
The identifier can accept ResourceId, Resourcename, or email. The following identity formats are available:
-
Resource ID: r-0123456789a0123456789b0123456789
-
Email address: [email protected]
-
Resource name: resource
-
-
name(Optional[ResourceName], default:None) –The name of the resource to be updated.
-
booking_options(Optional[BookingOptions], default:None) –The resource's booking options to be updated.
-
description(Optional[NewResourceDescription], default:None) –Updates the resource description.
-
type(Optional[ResourceType], default:None) –Updates the resource type.
-
hidden_from_global_address_list(Optional[BooleanObject], default:None) –If enabled, the resource is hidden from the global address list.
Raises:
-
DirectoryUnavailableException–The directory is unavailable. It might be located in another Region or deleted.
-
EmailAddressInUseException–The email address that you're trying to assign is already created for a different user, group, or resource.
-
EntityNotFoundException–The identifier supplied for the user, group, or resource does not exist in your organization.
-
EntityStateException–You are performing an operation on a user, group, or resource that isn't in the expected state, such as trying to delete an active user.
-
InvalidConfigurationException–The configuration for a resource isn't valid. A resource must either be able to auto-respond to requests or have at least one delegate associated that can do so on its behalf.
-
InvalidParameterException–One or more of the input parameters don't match the service's restrictions.
-
MailDomainNotFoundException–The domain specified is not found in your organization.
-
MailDomainStateException–After a domain has been added to the organization, it must be verified. The domain is not yet verified.
-
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.
-
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.
Source code in docs_src/capo_workmail/_services/work_mail.py
6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 | |