modify_backup_attributes
¶
modify_backup_attributes(
backup_id: BackupId,
never_expires: Boolean,
*,
config_overrides: Optional[CloudHSMV2ClientConfig] = 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/cloud_hsmv2.py
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 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 | |