create_snapshot
async
¶
create_snapshot(
directory_id: DirectoryId,
*,
config_overrides: Optional[AsyncDirectoryServiceClientConfig] = None,
name: Optional[SnapshotName] = None,
) -> CreateSnapshotResult
Creates a snapshot of a Simple AD or Microsoft AD directory in the Amazon Web Services cloud.
You cannot take snapshots of AD Connector directories.
Parameters:
-
directory_id(DirectoryId) –The identifier of the directory of which to take a snapshot.
-
name(Optional[SnapshotName], default:None) –The descriptive name to apply to the snapshot.
Raises:
-
ClientException–A client exception has occurred.
-
EntityDoesNotExistException–The specified entity could not be found.
-
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.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To create a snapshot of a directory The following example creates a snapshot of a Simple AD or Microsoft AD directory in the AWS cloud.
Source code in docs_src/capo_directory_service/_services/async_directory_service.py
1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 | |