restore_cluster_from_snapshot
async
¶
restore_cluster_from_snapshot(
cluster_name: str,
snapshot_arn: str,
*,
config_overrides: Optional[AsyncDocDBElasticClientConfig] = None,
vpc_security_group_ids: Optional[StringList] = None,
subnet_ids: Optional[StringList] = None,
kms_key_id: Optional[str] = None,
tags: Optional[TagMap] = None,
shard_capacity: Optional[int] = None,
shard_instance_count: Optional[int] = None,
) -> RestoreClusterFromSnapshotOutput
Restores an elastic cluster from a snapshot.
Parameters:
-
cluster_name(str) –The name of the elastic cluster.
-
snapshot_arn(str) –The ARN identifier of the elastic cluster snapshot.
-
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.
-
kms_key_id(Optional[str], default:None) –The KMS key identifier to use to encrypt the new Amazon DocumentDB elastic clusters cluster.
The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are creating a cluster using the same Amazon account that owns this KMS encryption key, you can use the KMS key alias instead of the ARN as the KMS encryption key.
If an encryption key is not specified here, Amazon DocumentDB uses the default encryption key that KMS creates for your account. Your account has a different default encryption key for each Amazon Region.
-
tags(Optional[TagMap], default:None) –A list of the tag names to be assigned to the restored elastic cluster, in the form of an array of key-value pairs in which the key is the tag name and the value is the key value.
-
shard_capacity(Optional[int], default:None) –The capacity of each shard in the new restored elastic cluster.
-
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.
-
ServiceQuotaExceededException–The service quota for the action was exceeded.
-
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
1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 | |