#[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 ==
.impl StructuralPartialEq for ModifySnapshotAttributeInput
Auto Trait Implementations§
impl Freeze for ModifySnapshotAttributeInput
impl RefUnwindSafe for ModifySnapshotAttributeInput
impl Send for ModifySnapshotAttributeInput
impl Sync for ModifySnapshotAttributeInput
impl Unpin for ModifySnapshotAttributeInput
impl UnwindSafe for ModifySnapshotAttributeInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more