Skip to content

ModifySnapshotAttributeRequest

Source code in docs_src/capo_ec2/types/modify_snapshot_attribute_request.py
class ModifySnapshotAttributeRequest(TypedDict, closed=True):
    attribute: NotRequired[
        "capo_ec2.types.snapshot_attribute_name.SnapshotAttributeName"
    ]
    """<p>The snapshot attribute to modify. Only volume creation permissions can be modified.</p>"""
    create_volume_permission: NotRequired[
        "capo_ec2.types.create_volume_permission_modifications.CreateVolumePermissionModifications"
    ]
    """<p>A JSON representation of the snapshot attribute modification.</p>"""
    group_names: NotRequired[
        "capo_ec2.types.group_name_string_list.GroupNameStringList"
    ]
    """<p>The group to modify for the snapshot.</p>"""
    operation_type: NotRequired["capo_ec2.types.operation_type.OperationType"]
    """<p>The type of operation to perform to the attribute.</p>"""
    snapshot_id: NotRequired["capo_ec2.types.snapshot_id.SnapshotId"]
    """<p>The ID of the snapshot.</p>"""
    user_ids: NotRequired["capo_ec2.types.user_id_string_list.UserIdStringList"]
    """<p>The account ID to modify for the snapshot.</p>"""
    dry_run: NotRequired["capo_ec2.types.boolean.Boolean"]
    """<p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>"""

attribute instance-attribute

attribute: NotRequired[SnapshotAttributeName]

The snapshot attribute to modify. Only volume creation permissions can be modified.

create_volume_permission instance-attribute

create_volume_permission: NotRequired[CreateVolumePermissionModifications]

A JSON representation of the snapshot attribute modification.

dry_run instance-attribute

dry_run: NotRequired[Boolean]

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

group_names instance-attribute

group_names: NotRequired[GroupNameStringList]

The group to modify for the snapshot.

operation_type instance-attribute

operation_type: NotRequired[OperationType]

The type of operation to perform to the attribute.

snapshot_id instance-attribute

snapshot_id: NotRequired[SnapshotId]

The ID of the snapshot.

user_ids instance-attribute

user_ids: NotRequired[UserIdStringList]

The account ID to modify for the snapshot.