restore_graph_from_snapshot
async
¶
restore_graph_from_snapshot(
snapshot_identifier: SnapshotIdentifier,
graph_name: GraphName,
*,
config_overrides: Optional[AsyncNeptuneGraphClientConfig] = None,
provisioned_memory: Optional[ProvisionedMemory] = None,
compute_configuration: Optional[ComputeConfiguration] = None,
deletion_protection: Optional[bool] = None,
tags: Optional[TagMap] = None,
replica_count: Optional[ReplicaCount] = None,
public_connectivity: Optional[bool] = None,
) -> RestoreGraphFromSnapshotOutput
Restores a graph from a snapshot.
Parameters:
-
snapshot_identifier(SnapshotIdentifier) –The ID of the snapshot in question.
-
graph_name(GraphName) –A name for the new Neptune Analytics graph to be created from the snapshot.
The name must contain from 1 to 63 letters, numbers, or hyphens, and its first character must be a letter. It cannot end with a hyphen or contain two consecutive hyphens. Only lowercase letters are allowed.
-
provisioned_memory(Optional[ProvisionedMemory], default:None) –The provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph.
Min = 16
This field is deprecated. We recommend using
computeConfigurationinstead. -
compute_configuration(Optional[ComputeConfiguration], default:None) –The compute configuration for the restored graph. A snapshot can be restored into either a provisioned graph or a graph session, regardless of the compute type of the source graph. A snapshot taken from a provisioned graph can be restored into a graph session as long as the data in the snapshot fits within the graph session.
-
deletion_protection(Optional[bool], default:None) –A value that indicates whether the graph has deletion protection enabled. The graph can't be deleted when deletion protection is enabled.
-
tags(Optional[TagMap], default:None) –Adds metadata tags to the snapshot. These tags can also be used with cost allocation reporting, or used in a Condition statement in an IAM policy.
-
replica_count(Optional[ReplicaCount], default:None) –The number of replicas in other AZs. Min =0, Max = 2, Default =1
Additional charges equivalent to the m-NCUs selected for the graph apply for each replica.
-
public_connectivity(Optional[bool], default:None) –Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (
trueto enable, orfalseto disable).
Raises:
-
ConflictException–Raised when a conflict is encountered.
-
InternalServerException–A failure occurred on the server.
-
ResourceNotFoundException–A specified resource could not be located.
-
ServiceQuotaExceededException–A service quota was exceeded.
-
ThrottlingException–The exception was interrupted by throttling.
-
ValidationException–A resource could not be validated.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_neptune_graph/_services/async_neptune_graph.py
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 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 | |