#[non_exhaustive]pub struct ModifySnapshotAttributeInput {
pub attribute: Option<SnapshotAttributeName>,
pub create_volume_permission: Option<CreateVolumePermissionModifications>,
pub group_names: Option<Vec<String>>,
pub operation_type: Option<OperationType>,
pub snapshot_id: Option<String>,
pub user_ids: Option<Vec<String>>,
pub dry_run: Option<bool>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.attribute: Option<SnapshotAttributeName>
The snapshot attribute to modify. Only volume creation permissions can be modified.
create_volume_permission: Option<CreateVolumePermissionModifications>
A JSON representation of the snapshot attribute modification.
group_names: Option<Vec<String>>
The group to modify for the snapshot.
operation_type: Option<OperationType>
The type of operation to perform to the attribute.
snapshot_id: Option<String>
The ID of the snapshot.
user_ids: Option<Vec<String>>
The account ID to modify for the snapshot.
dry_run: Option<bool>
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
.
Implementations§
source§impl ModifySnapshotAttributeInput
impl ModifySnapshotAttributeInput
sourcepub fn attribute(&self) -> Option<&SnapshotAttributeName>
pub fn attribute(&self) -> Option<&SnapshotAttributeName>
The snapshot attribute to modify. Only volume creation permissions can be modified.
sourcepub fn create_volume_permission(
&self
) -> Option<&CreateVolumePermissionModifications>
pub fn create_volume_permission( &self ) -> Option<&CreateVolumePermissionModifications>
A JSON representation of the snapshot attribute modification.
sourcepub fn group_names(&self) -> &[String]
pub fn group_names(&self) -> &[String]
The group to modify for the snapshot.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .group_names.is_none()
.
sourcepub fn operation_type(&self) -> Option<&OperationType>
pub fn operation_type(&self) -> Option<&OperationType>
The type of operation to perform to the attribute.
sourcepub fn snapshot_id(&self) -> Option<&str>
pub fn snapshot_id(&self) -> Option<&str>
The ID of the snapshot.
source§impl ModifySnapshotAttributeInput
impl ModifySnapshotAttributeInput
sourcepub fn builder() -> ModifySnapshotAttributeInputBuilder
pub fn builder() -> ModifySnapshotAttributeInputBuilder
Creates a new builder-style object to manufacture ModifySnapshotAttributeInput
.
Trait Implementations§
source§impl Clone for ModifySnapshotAttributeInput
impl Clone for ModifySnapshotAttributeInput
source§fn clone(&self) -> ModifySnapshotAttributeInput
fn clone(&self) -> ModifySnapshotAttributeInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ModifySnapshotAttributeInput
impl Debug for ModifySnapshotAttributeInput
source§impl PartialEq for ModifySnapshotAttributeInput
impl PartialEq for ModifySnapshotAttributeInput
source§fn eq(&self, other: &ModifySnapshotAttributeInput) -> bool
fn eq(&self, other: &ModifySnapshotAttributeInput) -> bool
self
and other
values to be equal, and is used
by ==
.