update_cluster
async
¶
update_cluster(
cluster_arn: str,
*,
config_overrides: Optional[AsyncDocDBElasticClientConfig] = None,
auth_type: Optional[Auth] = None,
shard_capacity: Optional[int] = None,
shard_count: Optional[int] = None,
vpc_security_group_ids: Optional[StringList] = None,
subnet_ids: Optional[StringList] = None,
admin_user_password: Optional[Password] = None,
client_token: Optional[str] = None,
preferred_maintenance_window: Optional[str] = None,
backup_retention_period: Optional[int] = None,
preferred_backup_window: Optional[str] = None,
shard_instance_count: Optional[int] = None,
) -> UpdateClusterOutput
Modifies an elastic cluster. This includes updating admin-username/password, upgrading the API version, and setting up a backup window and maintenance window
Parameters:
-
cluster_arn(str) –The ARN identifier of the elastic cluster.
-
auth_type(Optional[Auth], default:None) –The authentication type used to determine where to fetch the password used for accessing the elastic cluster. Valid types are
PLAIN_TEXTorSECRET_ARN. -
shard_capacity(Optional[int], default:None) –The number of vCPUs assigned to each elastic cluster shard. Maximum is 64. Allowed values are 2, 4, 8, 16, 32, 64.
-
shard_count(Optional[int], default:None) –The number of shards assigned to the elastic cluster. Maximum is 32.
-
vpc_security_group_ids(Optional[StringList], default:None) –A list of EC2 VPC security groups to associate with the elastic cluster.
-
subnet_ids(Optional[StringList], default:None) –The Amazon EC2 subnet IDs for the elastic cluster.
-
admin_user_password(Optional[Password], default:None) –The password associated with the elastic cluster administrator. This password can contain any printable ASCII character except forward slash (/), double quote ("), or the "at" symbol (@).
Constraints: Must contain from 8 to 100 characters.
-
client_token(Optional[str], default:None) –The client token for the elastic cluster.
-
preferred_maintenance_window(Optional[str], default:None) –The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
Format:
ddd:hh24:mi-ddd:hh24:miDefault: a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week.
Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
Constraints: Minimum 30-minute window.
-
backup_retention_period(Optional[int], default:None) –The number of days for which automatic snapshots are retained.
-
preferred_backup_window(Optional[str], default:None) –The daily time range during which automated backups are created if automated backups are enabled, as determined by the
backupRetentionPeriod. -
shard_instance_count(Optional[int], default:None) –The number of replica instances applying to all shards in the elastic cluster. A
shardInstanceCountvalue of 1 means there is one writer instance, and any additional instances are replicas that can be used for reads and to improve availability.
Raises:
-
AccessDeniedException–An exception that occurs when there are not sufficient permissions to perform an action.
-
ConflictException–There was an access conflict.
-
InternalServerException–There was an internal server error.
-
ResourceNotFoundException–The specified resource could not be located.
-
ThrottlingException–ThrottlingException will be thrown when request was denied due to request throttling.
-
ValidationException–A structure defining a validation exception.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_docdb_elastic/_services/async_doc_db_elastic.py
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 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 | |