Skip to content

CreateSnapmirrorPolicyRequest

Source code in docs_src/capo_fsx/types/create_snapmirror_policy_request.py
class CreateSnapmirrorPolicyRequest(TypedDict, closed=True):
    client_request_token: NotRequired[
        "capo_fsx.types.client_request_token.ClientRequestToken"
    ]
    file_system_id: NotRequired["capo_fsx.types.file_system_id.FileSystemId"]
    """<p>Specifies the ID of the Amazon FSx for NetApp ONTAP file system on which to create the SnapMirror policy. You must specify either a <code>FileSystemId</code> or a <code>StorageVirtualMachineId</code>, but not both.</p>"""
    storage_virtual_machine_id: NotRequired[
        "capo_fsx.types.storage_virtual_machine_id.StorageVirtualMachineId"
    ]
    """<p>Specifies the ID of the SVM on which to create the SnapMirror policy. You must specify either a <code>FileSystemId</code> or a <code>StorageVirtualMachineId</code>, but not both.</p>"""
    name: NotRequired["capo_fsx.types.snapmirror_policy_name.SnapmirrorPolicyName"]
    """<p>Specifies the name of the SnapMirror policy.</p>"""
    snapshot_copy_mode: NotRequired[
        "capo_fsx.types.snapmirror_policy_snapshot_copy_mode.SnapmirrorPolicySnapshotCopyMode"
    ]
    """<p>Specifies which snapshots SnapMirror transfers to the destination volume:</p> <ul> <li> <p> <code>COPY_ALL_SOURCE_SNAPSHOTS</code> – SnapMirror copies all snapshots of the source volume to the destination volume on a transfer. You can't specify <code>RetentionRules</code> along with this property.</p> </li> <li> <p> <code>COPY_LATEST_SOURCE_SNAPSHOT</code> – SnapMirror copies the latest snapshot of the source volume to the destination volume on a transfer. You can't specify <code>RetentionRules</code> along with this property.</p> </li> <li> <p> <code>NO_CREATE_SNAPSHOT_ON_SOURCE</code> – SnapMirror doesn't create a snapshot on the source volume at beginning of an update or resync operation. You must specify <code>RetentionRules</code> along with this property.</p> </li> </ul> <p>If you don't specify a <code>SnapshotCopyMode</code>, SnapMirror creates a new snapshot of the source volume and copies it, along with any snapshots that match <code>RetentionRules</code>, to the destination volume on a transfer. <code>RetentionRules</code> is optional.</p>"""
    retention_rules: NotRequired[
        "capo_fsx.types.snapmirror_policy_retention_rules.SnapmirrorPolicyRetentionRules"
    ]
    """<p>Specifies the rules that determine which snapshots SnapMirror retains on the destination volume, based on their SnapMirror labels.</p>"""
    transfer_schedule: NotRequired[
        "capo_fsx.types.snapmirror_transfer_schedule_name.SnapmirrorTransferScheduleName"
    ]
    """<p>Specifies the name of the ONTAP schedule that determines when SnapMirror transfers data.</p>"""
    network_compression_enabled: NotRequired["capo_fsx.types.flag.Flag"]
    """<p>Specifies whether SnapMirror compresses data when it transfers the data over the network. This value defaults to <code>false</code>.</p>"""
    throttle_in_kbps: NotRequired["capo_fsx.types.throttle_in_kbps.ThrottleInKbps"]
    """<p>Specifies the maximum bandwidth, in kilobytes per second (KBps), that SnapMirror uses to transfer data. A value of <code>0</code> means that the bandwidth is unlimited.</p>"""
    tags: NotRequired["capo_fsx.types.tags.Tags"]

client_request_token instance-attribute

client_request_token: NotRequired[ClientRequestToken]

file_system_id instance-attribute

file_system_id: NotRequired[FileSystemId]

Specifies the ID of the Amazon FSx for NetApp ONTAP file system on which to create the SnapMirror policy. You must specify either a FileSystemId or a StorageVirtualMachineId, but not both.

name instance-attribute

name: NotRequired[SnapmirrorPolicyName]

Specifies the name of the SnapMirror policy.

network_compression_enabled instance-attribute

network_compression_enabled: NotRequired[Flag]

Specifies whether SnapMirror compresses data when it transfers the data over the network. This value defaults to false.

retention_rules instance-attribute

retention_rules: NotRequired[SnapmirrorPolicyRetentionRules]

Specifies the rules that determine which snapshots SnapMirror retains on the destination volume, based on their SnapMirror labels.

snapshot_copy_mode instance-attribute

snapshot_copy_mode: NotRequired[SnapmirrorPolicySnapshotCopyMode]

Specifies which snapshots SnapMirror transfers to the destination volume:

  • COPY_ALL_SOURCE_SNAPSHOTS – SnapMirror copies all snapshots of the source volume to the destination volume on a transfer. You can't specify RetentionRules along with this property.

  • COPY_LATEST_SOURCE_SNAPSHOT – SnapMirror copies the latest snapshot of the source volume to the destination volume on a transfer. You can't specify RetentionRules along with this property.

  • NO_CREATE_SNAPSHOT_ON_SOURCE – SnapMirror doesn't create a snapshot on the source volume at beginning of an update or resync operation. You must specify RetentionRules along with this property.

If you don't specify a SnapshotCopyMode, SnapMirror creates a new snapshot of the source volume and copies it, along with any snapshots that match RetentionRules, to the destination volume on a transfer. RetentionRules is optional.

storage_virtual_machine_id instance-attribute

storage_virtual_machine_id: NotRequired[StorageVirtualMachineId]

Specifies the ID of the SVM on which to create the SnapMirror policy. You must specify either a FileSystemId or a StorageVirtualMachineId, but not both.

tags instance-attribute

tags: NotRequired[Tags]

throttle_in_kbps instance-attribute

throttle_in_kbps: NotRequired[ThrottleInKbps]

Specifies the maximum bandwidth, in kilobytes per second (KBps), that SnapMirror uses to transfer data. A value of 0 means that the bandwidth is unlimited.

transfer_schedule instance-attribute

transfer_schedule: NotRequired[SnapmirrorTransferScheduleName]

Specifies the name of the ONTAP schedule that determines when SnapMirror transfers data.