update_directory_setup
¶
update_directory_setup(
directory_id: DirectoryId,
update_type: UpdateType,
*,
config_overrides: Optional[DirectoryServiceClientConfig] = None,
os_update_settings: Optional[OSUpdateSettings] = None,
directory_size_update_settings: Optional[DirectorySizeUpdateSettings] = None,
network_update_settings: Optional[NetworkUpdateSettings] = None,
create_snapshot_before_update: Optional[CreateSnapshotBeforeUpdate] = None,
) -> UpdateDirectorySetupResult
Updates directory configuration for the specified update type.
Parameters:
-
directory_id(DirectoryId) –The identifier of the directory to update.
-
update_type(UpdateType) –The type of update to perform on the directory.
-
os_update_settings(Optional[OSUpdateSettings], default:None) –Operating system configuration to apply during the directory update operation.
-
directory_size_update_settings(Optional[DirectorySizeUpdateSettings], default:None) –Directory size configuration to apply during the update operation.
-
network_update_settings(Optional[NetworkUpdateSettings], default:None) –Network configuration to apply during the directory update operation.
-
create_snapshot_before_update(Optional[CreateSnapshotBeforeUpdate], default:None) –Specifies whether to create a directory snapshot before performing the update.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ClientException–A client exception has occurred.
-
DirectoryDoesNotExistException–The specified directory does not exist in the system.
-
DirectoryInDesiredStateException–The directory is already updated to desired update type settings.
-
DirectoryUnavailableException–The specified directory is unavailable.
-
InvalidParameterException–One or more parameters are not valid.
-
ServiceException–An exception has occurred in Directory Service.
-
SnapshotLimitExceededException–The maximum number of manual snapshots for the directory has been reached. You can use the GetSnapshotLimits operation to determine the snapshot limits for a directory.
-
UnsupportedOperationException–The operation is not supported.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_directory_service/_services/directory_service.py
6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 | |