update_snapmirror_policy
¶
update_snapmirror_policy(
*,
config_overrides: Optional[FSxClientConfig] = 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/f_sx.py
5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 | |