update_snapmirror_policy
async
¶
update_snapmirror_policy(
*,
config_overrides: Optional[AsyncFSxClientConfig] = None,
client_request_token: Optional[ClientRequestToken] = None,
snapmirror_policy_id: Optional[SnapmirrorPolicyId] = None,
retention_rules: Optional[SnapmirrorPolicyRetentionRules] = None,
transfer_schedule: Optional[SnapmirrorTransferScheduleName] = None,
network_compression_enabled: Optional[Flag] = None,
throttle_in_kbps: Optional[ThrottleInKbps] = None,
) -> UpdateSnapmirrorPolicyResponse
Updates an Amazon FSx for NetApp ONTAP SnapMirror policy.
Parameters:
-
snapmirror_policy_id(Optional[SnapmirrorPolicyId], default:None) –The ID of the SnapMirror policy that you want to update.
-
retention_rules(Optional[SnapmirrorPolicyRetentionRules], default:None) –Specifies the rules that determine which snapshots SnapMirror retains on the destination volume, based on their SnapMirror labels. The rules that you specify replace all the SnapMirror policy's existing retention rules. To keep an existing rule, include it in the list. To remove all retention rules, specify an empty list.
-
transfer_schedule(Optional[SnapmirrorTransferScheduleName], default:None) –Specifies the name of the ONTAP schedule that determines when SnapMirror transfers data. To remove the transfer schedule, specify an empty string.
-
network_compression_enabled(Optional[Flag], default:None) –Specifies whether SnapMirror compresses data when it transfers the data over the network.
-
throttle_in_kbps(Optional[ThrottleInKbps], default:None) –Specifies the maximum bandwidth, in kilobytes per second (KBps), that SnapMirror uses to transfer data. A value of
0means that the bandwidth is unlimited.
Raises:
-
BadRequest–A generic error indicating a failure with a client request.
-
IncompatibleParameterError–The error returned when a second request is received with the same client request token but different parameters settings. A client request token should always uniquely identify a single request.
-
InternalServerError–A generic error indicating a server-side failure.
-
SnapmirrorPolicyNotFound–No Amazon FSx SnapMirror policies were found based on the supplied parameters.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_fsx/_services/async_f_sx.py
5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 | |