#[non_exhaustive]pub struct LaunchPermissionConfiguration {
pub user_ids: Option<Vec<String>>,
pub user_groups: Option<Vec<String>>,
pub organization_arns: Option<Vec<String>>,
pub organizational_unit_arns: Option<Vec<String>>,
}
Expand description
Describes the configuration for a launch permission. The launch permission modification request is sent to the Amazon EC2 ModifyImageAttribute API on behalf of the user for each Region they have selected to distribute the AMI. To make an AMI public, set the launch permission authorized accounts to all
. See the examples for making an AMI public at Amazon EC2 ModifyImageAttribute.
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 Amazon Web Services account ID.
user_groups: Option<Vec<String>>
The name of the group.
organization_arns: Option<Vec<String>>
The ARN for an Amazon Web Services Organization that you want to share your AMI with. For more information, see What is Organizations?.
organizational_unit_arns: Option<Vec<String>>
The ARN for an Organizations organizational unit (OU) that you want to share your AMI with. For more information about key concepts for Organizations, see Organizations terminology and concepts.
Implementations§
source§impl LaunchPermissionConfiguration
impl LaunchPermissionConfiguration
sourcepub fn user_ids(&self) -> &[String]
pub fn user_ids(&self) -> &[String]
The Amazon Web Services account ID.
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 user_groups(&self) -> &[String]
pub fn user_groups(&self) -> &[String]
The name of the group.
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_groups.is_none()
.
sourcepub fn organization_arns(&self) -> &[String]
pub fn organization_arns(&self) -> &[String]
The ARN for an Amazon Web Services Organization that you want to share your AMI with. For more information, see What is Organizations?.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .organization_arns.is_none()
.
sourcepub fn organizational_unit_arns(&self) -> &[String]
pub fn organizational_unit_arns(&self) -> &[String]
The ARN for an Organizations organizational unit (OU) that you want to share your AMI with. For more information about key concepts for Organizations, see Organizations terminology and concepts.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .organizational_unit_arns.is_none()
.
source§impl LaunchPermissionConfiguration
impl LaunchPermissionConfiguration
sourcepub fn builder() -> LaunchPermissionConfigurationBuilder
pub fn builder() -> LaunchPermissionConfigurationBuilder
Creates a new builder-style object to manufacture LaunchPermissionConfiguration
.
Trait Implementations§
source§impl Clone for LaunchPermissionConfiguration
impl Clone for LaunchPermissionConfiguration
source§fn clone(&self) -> LaunchPermissionConfiguration
fn clone(&self) -> LaunchPermissionConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for LaunchPermissionConfiguration
impl PartialEq for LaunchPermissionConfiguration
source§fn eq(&self, other: &LaunchPermissionConfiguration) -> bool
fn eq(&self, other: &LaunchPermissionConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LaunchPermissionConfiguration
Auto Trait Implementations§
impl Freeze for LaunchPermissionConfiguration
impl RefUnwindSafe for LaunchPermissionConfiguration
impl Send for LaunchPermissionConfiguration
impl Sync for LaunchPermissionConfiguration
impl Unpin for LaunchPermissionConfiguration
impl UnwindSafe for LaunchPermissionConfiguration
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