#[non_exhaustive]pub struct AmiDistributionConfiguration {
pub name: Option<String>,
pub description: Option<String>,
pub target_account_ids: Option<Vec<String>>,
pub ami_tags: Option<HashMap<String, String>>,
pub kms_key_id: Option<String>,
pub launch_permission: Option<LaunchPermissionConfiguration>,
}
Expand description
Define and configure the output AMIs of the pipeline.
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.name: Option<String>
The name of the output AMI.
description: Option<String>
The description of the AMI distribution configuration. Minimum and maximum length are in characters.
target_account_ids: Option<Vec<String>>
The ID of an account to which you want to distribute an image.
The tags to apply to AMIs distributed to this Region.
kms_key_id: Option<String>
The KMS key identifier used to encrypt the distributed image.
launch_permission: Option<LaunchPermissionConfiguration>
Launch permissions can be used to configure which Amazon Web Services accounts can use the AMI to launch instances.
Implementations§
source§impl AmiDistributionConfiguration
impl AmiDistributionConfiguration
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the AMI distribution configuration. Minimum and maximum length are in characters.
sourcepub fn target_account_ids(&self) -> &[String]
pub fn target_account_ids(&self) -> &[String]
The ID of an account to which you want to distribute an image.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .target_account_ids.is_none()
.
The tags to apply to AMIs distributed to this Region.
sourcepub fn kms_key_id(&self) -> Option<&str>
pub fn kms_key_id(&self) -> Option<&str>
The KMS key identifier used to encrypt the distributed image.
sourcepub fn launch_permission(&self) -> Option<&LaunchPermissionConfiguration>
pub fn launch_permission(&self) -> Option<&LaunchPermissionConfiguration>
Launch permissions can be used to configure which Amazon Web Services accounts can use the AMI to launch instances.
source§impl AmiDistributionConfiguration
impl AmiDistributionConfiguration
sourcepub fn builder() -> AmiDistributionConfigurationBuilder
pub fn builder() -> AmiDistributionConfigurationBuilder
Creates a new builder-style object to manufacture AmiDistributionConfiguration
.
Trait Implementations§
source§impl Clone for AmiDistributionConfiguration
impl Clone for AmiDistributionConfiguration
source§fn clone(&self) -> AmiDistributionConfiguration
fn clone(&self) -> AmiDistributionConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AmiDistributionConfiguration
impl Debug for AmiDistributionConfiguration
source§impl PartialEq for AmiDistributionConfiguration
impl PartialEq for AmiDistributionConfiguration
source§fn eq(&self, other: &AmiDistributionConfiguration) -> bool
fn eq(&self, other: &AmiDistributionConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AmiDistributionConfiguration
Auto Trait Implementations§
impl Freeze for AmiDistributionConfiguration
impl RefUnwindSafe for AmiDistributionConfiguration
impl Send for AmiDistributionConfiguration
impl Sync for AmiDistributionConfiguration
impl Unpin for AmiDistributionConfiguration
impl UnwindSafe for AmiDistributionConfiguration
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