#[non_exhaustive]pub struct CreateDiskSnapshotInput {
pub disk_name: Option<String>,
pub disk_snapshot_name: Option<String>,
pub instance_name: Option<String>,
pub tags: Option<Vec<Tag>>,
}
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.disk_name: Option<String>
The unique name of the source disk (Disk-Virginia-1
).
This parameter cannot be defined together with the instance name
parameter. The disk name
and instance name
parameters are mutually exclusive.
disk_snapshot_name: Option<String>
The name of the destination disk snapshot (my-disk-snapshot
) based on the source disk.
instance_name: Option<String>
The unique name of the source instance (Amazon_Linux-512MB-Virginia-1
). When this is defined, a snapshot of the instance's system volume is created.
This parameter cannot be defined together with the disk name
parameter. The instance name
and disk name
parameters are mutually exclusive.
The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
Implementations§
source§impl CreateDiskSnapshotInput
impl CreateDiskSnapshotInput
sourcepub fn disk_name(&self) -> Option<&str>
pub fn disk_name(&self) -> Option<&str>
The unique name of the source disk (Disk-Virginia-1
).
This parameter cannot be defined together with the instance name
parameter. The disk name
and instance name
parameters are mutually exclusive.
sourcepub fn disk_snapshot_name(&self) -> Option<&str>
pub fn disk_snapshot_name(&self) -> Option<&str>
The name of the destination disk snapshot (my-disk-snapshot
) based on the source disk.
sourcepub fn instance_name(&self) -> Option<&str>
pub fn instance_name(&self) -> Option<&str>
The unique name of the source instance (Amazon_Linux-512MB-Virginia-1
). When this is defined, a snapshot of the instance's system volume is created.
This parameter cannot be defined together with the disk name
parameter. The instance name
and disk name
parameters are mutually exclusive.
The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none()
.
source§impl CreateDiskSnapshotInput
impl CreateDiskSnapshotInput
sourcepub fn builder() -> CreateDiskSnapshotInputBuilder
pub fn builder() -> CreateDiskSnapshotInputBuilder
Creates a new builder-style object to manufacture CreateDiskSnapshotInput
.
Trait Implementations§
source§impl Clone for CreateDiskSnapshotInput
impl Clone for CreateDiskSnapshotInput
source§fn clone(&self) -> CreateDiskSnapshotInput
fn clone(&self) -> CreateDiskSnapshotInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateDiskSnapshotInput
impl Debug for CreateDiskSnapshotInput
source§impl PartialEq for CreateDiskSnapshotInput
impl PartialEq for CreateDiskSnapshotInput
source§fn eq(&self, other: &CreateDiskSnapshotInput) -> bool
fn eq(&self, other: &CreateDiskSnapshotInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateDiskSnapshotInput
Auto Trait Implementations§
impl Freeze for CreateDiskSnapshotInput
impl RefUnwindSafe for CreateDiskSnapshotInput
impl Send for CreateDiskSnapshotInput
impl Sync for CreateDiskSnapshotInput
impl Unpin for CreateDiskSnapshotInput
impl UnwindSafe for CreateDiskSnapshotInput
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