#[non_exhaustive]pub struct EbsSnapshotConfiguration {
pub user_ids: Option<Vec<String>>,
pub groups: Option<Vec<String>>,
pub kms_key_id: Option<String>,
}
Expand description
The proposed access control configuration for an Amazon EBS volume snapshot. You can propose a configuration for a new Amazon EBS volume snapshot or an Amazon EBS volume snapshot that you own by specifying the user IDs, groups, and optional KMS encryption key. For more information, see ModifySnapshotAttribute.
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.user_ids: 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
.
groups: 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
.
kms_key_id: 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.
Implementations§
source§impl EbsSnapshotConfiguration
impl EbsSnapshotConfiguration
sourcepub fn user_ids(&self) -> &[String]
pub fn user_ids(&self) -> &[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
.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .user_ids.is_none()
.
sourcepub fn groups(&self) -> &[String]
pub fn groups(&self) -> &[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
.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .groups.is_none()
.
sourcepub fn kms_key_id(&self) -> Option<&str>
pub fn kms_key_id(&self) -> Option<&str>
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.
source§impl EbsSnapshotConfiguration
impl EbsSnapshotConfiguration
sourcepub fn builder() -> EbsSnapshotConfigurationBuilder
pub fn builder() -> EbsSnapshotConfigurationBuilder
Creates a new builder-style object to manufacture EbsSnapshotConfiguration
.
Trait Implementations§
source§impl Clone for EbsSnapshotConfiguration
impl Clone for EbsSnapshotConfiguration
source§fn clone(&self) -> EbsSnapshotConfiguration
fn clone(&self) -> EbsSnapshotConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EbsSnapshotConfiguration
impl Debug for EbsSnapshotConfiguration
source§impl PartialEq for EbsSnapshotConfiguration
impl PartialEq for EbsSnapshotConfiguration
source§fn eq(&self, other: &EbsSnapshotConfiguration) -> bool
fn eq(&self, other: &EbsSnapshotConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EbsSnapshotConfiguration
Auto Trait Implementations§
impl Freeze for EbsSnapshotConfiguration
impl RefUnwindSafe for EbsSnapshotConfiguration
impl Send for EbsSnapshotConfiguration
impl Sync for EbsSnapshotConfiguration
impl Unpin for EbsSnapshotConfiguration
impl UnwindSafe for EbsSnapshotConfiguration
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