modify_backup_attributes
async
¶
modify_backup_attributes(
backup_id: BackupId,
never_expires: Boolean,
*,
config_overrides: Optional[AsyncCloudHSMV2ClientConfig] = None,
) -> ModifyBackupAttributesResponse
Modifies attributes for CloudHSM backup.
Cross-account use: No. You cannot perform this operation on an CloudHSM backup in a different Amazon Web Services account.
Parameters:
-
backup_id(BackupId) –The identifier (ID) of the backup to modify. To find the ID of a backup, use the DescribeBackups operation.
-
never_expires(Boolean) –Specifies whether the service should exempt a backup from the retention policy for the cluster.
Trueexempts a backup from the retention policy.Falsemeans the service applies the backup retention policy defined at the cluster.
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/async_cloud_hsmv2.py
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 | |