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,
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
-
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
1045 1046 1047 1048 1049 1050 1051 1052 1053 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 | |