delete_cluster
¶
delete_cluster(
cluster_name: String,
*,
config_overrides: Optional[MemoryDBClientConfig] = None,
multi_region_cluster_name: Optional[String] = None,
final_snapshot_name: Optional[String] = None,
) -> DeleteClusterResponse
Deletes a cluster. It also deletes all associated nodes and node endpoints.
CreateSnapshot permission is required to create a final snapshot. Without this permission, the API call will fail with an Access Denied exception.
Parameters:
-
cluster_name(String) –The name of the cluster to be deleted
-
multi_region_cluster_name(Optional[String], default:None) –The name of the multi-Region cluster to be deleted.
-
final_snapshot_name(Optional[String], default:None) –The user-supplied name of a final cluster snapshot. This is the unique name that identifies the snapshot. MemoryDB creates the snapshot, and then deletes the cluster immediately afterward.
Raises:
-
ClusterNotFoundFault–The specified cluster does not exist.
-
InvalidClusterStateFault–The cluster is not in a valid state for the requested operation.
-
InvalidParameterCombinationException–The specified parameter combination is not valid.
-
InvalidParameterValueException–The specified parameter value is not valid.
-
ServiceLinkedRoleNotFoundFault–The required service-linked role was not found.
-
SnapshotAlreadyExistsFault–A snapshot with the specified name already exists.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_memorydb/_services/memory_db.py
1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 | |