#[non_exhaustive]pub struct EbsSnapshotConfigurationBuilder { /* private fields */ }
Expand description
A builder for EbsSnapshotConfiguration
.
Implementations§
source§impl EbsSnapshotConfigurationBuilder
impl EbsSnapshotConfigurationBuilder
sourcepub fn user_ids(self, input: impl Into<String>) -> Self
pub fn user_ids(self, input: impl Into<String>) -> Self
Appends an item to user_ids
.
To override the contents of this collection use set_user_ids
.
The IDs of the Amazon Web Services accounts that have access to the Amazon EBS volume snapshot.
-
If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
userIds
, then the access preview uses the existing shareduserIds
for the snapshot. -
If the access preview is for a new resource and you do not specify the
userIds
, then the access preview considers the snapshot without anyuserIds
. -
To propose deletion of existing shared
accountIds
, you can specify an empty list foruserIds
.
sourcepub fn set_user_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_user_ids(self, input: Option<Vec<String>>) -> Self
The IDs of the Amazon Web Services accounts that have access to the Amazon EBS volume snapshot.
-
If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
userIds
, then the access preview uses the existing shareduserIds
for the snapshot. -
If the access preview is for a new resource and you do not specify the
userIds
, then the access preview considers the snapshot without anyuserIds
. -
To propose deletion of existing shared
accountIds
, you can specify an empty list foruserIds
.
sourcepub fn get_user_ids(&self) -> &Option<Vec<String>>
pub fn get_user_ids(&self) -> &Option<Vec<String>>
The IDs of the Amazon Web Services accounts that have access to the Amazon EBS volume snapshot.
-
If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
userIds
, then the access preview uses the existing shareduserIds
for the snapshot. -
If the access preview is for a new resource and you do not specify the
userIds
, then the access preview considers the snapshot without anyuserIds
. -
To propose deletion of existing shared
accountIds
, you can specify an empty list foruserIds
.
sourcepub fn groups(self, input: impl Into<String>) -> Self
pub fn groups(self, input: impl Into<String>) -> Self
Appends an item to groups
.
To override the contents of this collection use set_groups
.
The groups that have access to the Amazon EBS volume snapshot. If the value all
is specified, then the Amazon EBS volume snapshot is public.
-
If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
groups
, then the access preview uses the existing sharedgroups
for the snapshot. -
If the access preview is for a new resource and you do not specify the
groups
, then the access preview considers the snapshot without anygroups
. -
To propose deletion of existing shared
groups
, you can specify an empty list forgroups
.
sourcepub fn set_groups(self, input: Option<Vec<String>>) -> Self
pub fn set_groups(self, input: Option<Vec<String>>) -> Self
The groups that have access to the Amazon EBS volume snapshot. If the value all
is specified, then the Amazon EBS volume snapshot is public.
-
If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
groups
, then the access preview uses the existing sharedgroups
for the snapshot. -
If the access preview is for a new resource and you do not specify the
groups
, then the access preview considers the snapshot without anygroups
. -
To propose deletion of existing shared
groups
, you can specify an empty list forgroups
.
sourcepub fn get_groups(&self) -> &Option<Vec<String>>
pub fn get_groups(&self) -> &Option<Vec<String>>
The groups that have access to the Amazon EBS volume snapshot. If the value all
is specified, then the Amazon EBS volume snapshot is public.
-
If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
groups
, then the access preview uses the existing sharedgroups
for the snapshot. -
If the access preview is for a new resource and you do not specify the
groups
, then the access preview considers the snapshot without anygroups
. -
To propose deletion of existing shared
groups
, you can specify an empty list forgroups
.
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
The KMS key identifier for an encrypted Amazon EBS volume snapshot. The KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.
-
If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
kmsKeyId
, or you specify an empty string, then the access preview uses the existingkmsKeyId
of the snapshot. -
If the access preview is for a new resource and you do not specify the
kmsKeyId
, the access preview considers the snapshot as unencrypted.
sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
The KMS key identifier for an encrypted Amazon EBS volume snapshot. The KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.
-
If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
kmsKeyId
, or you specify an empty string, then the access preview uses the existingkmsKeyId
of the snapshot. -
If the access preview is for a new resource and you do not specify the
kmsKeyId
, the access preview considers the snapshot as unencrypted.
sourcepub fn get_kms_key_id(&self) -> &Option<String>
pub fn get_kms_key_id(&self) -> &Option<String>
The KMS key identifier for an encrypted Amazon EBS volume snapshot. The KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.
-
If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
kmsKeyId
, or you specify an empty string, then the access preview uses the existingkmsKeyId
of the snapshot. -
If the access preview is for a new resource and you do not specify the
kmsKeyId
, the access preview considers the snapshot as unencrypted.
sourcepub fn build(self) -> EbsSnapshotConfiguration
pub fn build(self) -> EbsSnapshotConfiguration
Consumes the builder and constructs a EbsSnapshotConfiguration
.
Trait Implementations§
source§impl Clone for EbsSnapshotConfigurationBuilder
impl Clone for EbsSnapshotConfigurationBuilder
source§fn clone(&self) -> EbsSnapshotConfigurationBuilder
fn clone(&self) -> EbsSnapshotConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for EbsSnapshotConfigurationBuilder
impl Default for EbsSnapshotConfigurationBuilder
source§fn default() -> EbsSnapshotConfigurationBuilder
fn default() -> EbsSnapshotConfigurationBuilder
source§impl PartialEq for EbsSnapshotConfigurationBuilder
impl PartialEq for EbsSnapshotConfigurationBuilder
source§fn eq(&self, other: &EbsSnapshotConfigurationBuilder) -> bool
fn eq(&self, other: &EbsSnapshotConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EbsSnapshotConfigurationBuilder
Auto Trait Implementations§
impl Freeze for EbsSnapshotConfigurationBuilder
impl RefUnwindSafe for EbsSnapshotConfigurationBuilder
impl Send for EbsSnapshotConfigurationBuilder
impl Sync for EbsSnapshotConfigurationBuilder
impl Unpin for EbsSnapshotConfigurationBuilder
impl UnwindSafe for EbsSnapshotConfigurationBuilder
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