modify_cluster
¶
modify_cluster(
cluster_id: ClusterId,
*,
config_overrides: Optional[CloudHSMV2ClientConfig] = None,
hsm_type: Optional[HsmType] = None,
backup_retention_policy: Optional[BackupRetentionPolicy] = None,
) -> ModifyClusterResponse
Modifies CloudHSM cluster.
Cross-account use: No. You cannot perform this operation on an CloudHSM cluster in a different Amazon Web Services account.
Parameters:
-
hsm_type(Optional[HsmType], default:None) –The desired HSM type of the cluster.
-
backup_retention_policy(Optional[BackupRetentionPolicy], default:None) –A policy that defines how the service retains backups.
-
cluster_id(ClusterId) –The identifier (ID) of the cluster that you want to modify. To find the cluster ID, use DescribeClusters.
Raises:
-
CloudHsmAccessDeniedException–The request was rejected because the requester does not have permission to perform the requested operation.
-
CloudHsmInternalFailureException–The request was rejected because of an CloudHSM internal failure. The request can be retried.
-
CloudHsmInvalidRequestException–The request was rejected because it is not a valid request.
-
CloudHsmResourceNotFoundException–The request was rejected because it refers to a resource that cannot be found.
-
CloudHsmServiceException–The request was rejected because an error occurred.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cloudhsm_v2/_services/cloud_hsmv2.py
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 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 | |