Struct aws_sdk_ec2::input::ModifyImageAttributeInput
source · [−]#[non_exhaustive]pub struct ModifyImageAttributeInput {
pub attribute: Option<String>,
pub description: Option<AttributeValue>,
pub image_id: Option<String>,
pub launch_permission: Option<LaunchPermissionModifications>,
pub operation_type: Option<OperationType>,
pub product_codes: Option<Vec<String>>,
pub user_groups: Option<Vec<String>>,
pub user_ids: Option<Vec<String>>,
pub value: Option<String>,
pub dry_run: Option<bool>,
pub organization_arns: Option<Vec<String>>,
pub organizational_unit_arns: Option<Vec<String>>,
}
Expand description
Contains the parameters for 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.attribute: Option<String>
The name of the attribute to modify.
Valid values: description
| launchPermission
description: Option<AttributeValue>
A new description for the AMI.
image_id: Option<String>
The ID of the AMI.
launch_permission: Option<LaunchPermissionModifications>
A new launch permission for the AMI.
operation_type: Option<OperationType>
The operation type. This parameter can be used only when the Attribute
parameter is launchPermission
.
product_codes: Option<Vec<String>>
Not supported.
user_groups: Option<Vec<String>>
The user groups. This parameter can be used only when the Attribute
parameter is launchPermission
.
user_ids: Option<Vec<String>>
The Amazon Web Services account IDs. This parameter can be used only when the Attribute
parameter is launchPermission
.
value: Option<String>
The value of the attribute being modified. This parameter can be used only when the Attribute
parameter is description
.
dry_run: Option<bool>
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
organization_arns: Option<Vec<String>>
The Amazon Resource Name (ARN) of an organization. This parameter can be used only when the Attribute
parameter is launchPermission
.
organizational_unit_arns: Option<Vec<String>>
The Amazon Resource Name (ARN) of an organizational unit (OU). This parameter can be used only when the Attribute
parameter is launchPermission
.
Implementations
sourceimpl ModifyImageAttributeInput
impl ModifyImageAttributeInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyImageAttribute, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyImageAttribute, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<ModifyImageAttribute
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ModifyImageAttributeInput
.
sourceimpl ModifyImageAttributeInput
impl ModifyImageAttributeInput
sourcepub fn attribute(&self) -> Option<&str>
pub fn attribute(&self) -> Option<&str>
The name of the attribute to modify.
Valid values: description
| launchPermission
sourcepub fn description(&self) -> Option<&AttributeValue>
pub fn description(&self) -> Option<&AttributeValue>
A new description for the AMI.
sourcepub fn launch_permission(&self) -> Option<&LaunchPermissionModifications>
pub fn launch_permission(&self) -> Option<&LaunchPermissionModifications>
A new launch permission for the AMI.
sourcepub fn operation_type(&self) -> Option<&OperationType>
pub fn operation_type(&self) -> Option<&OperationType>
The operation type. This parameter can be used only when the Attribute
parameter is launchPermission
.
sourcepub fn product_codes(&self) -> Option<&[String]>
pub fn product_codes(&self) -> Option<&[String]>
Not supported.
sourcepub fn user_groups(&self) -> Option<&[String]>
pub fn user_groups(&self) -> Option<&[String]>
The user groups. This parameter can be used only when the Attribute
parameter is launchPermission
.
sourcepub fn user_ids(&self) -> Option<&[String]>
pub fn user_ids(&self) -> Option<&[String]>
The Amazon Web Services account IDs. This parameter can be used only when the Attribute
parameter is launchPermission
.
sourcepub fn value(&self) -> Option<&str>
pub fn value(&self) -> Option<&str>
The value of the attribute being modified. This parameter can be used only when the Attribute
parameter is description
.
sourcepub fn dry_run(&self) -> Option<bool>
pub fn dry_run(&self) -> Option<bool>
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn organization_arns(&self) -> Option<&[String]>
pub fn organization_arns(&self) -> Option<&[String]>
The Amazon Resource Name (ARN) of an organization. This parameter can be used only when the Attribute
parameter is launchPermission
.
sourcepub fn organizational_unit_arns(&self) -> Option<&[String]>
pub fn organizational_unit_arns(&self) -> Option<&[String]>
The Amazon Resource Name (ARN) of an organizational unit (OU). This parameter can be used only when the Attribute
parameter is launchPermission
.
Trait Implementations
sourceimpl Clone for ModifyImageAttributeInput
impl Clone for ModifyImageAttributeInput
sourcefn clone(&self) -> ModifyImageAttributeInput
fn clone(&self) -> ModifyImageAttributeInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ModifyImageAttributeInput
impl Debug for ModifyImageAttributeInput
sourceimpl PartialEq<ModifyImageAttributeInput> for ModifyImageAttributeInput
impl PartialEq<ModifyImageAttributeInput> for ModifyImageAttributeInput
sourcefn eq(&self, other: &ModifyImageAttributeInput) -> bool
fn eq(&self, other: &ModifyImageAttributeInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ModifyImageAttributeInput) -> bool
fn ne(&self, other: &ModifyImageAttributeInput) -> bool
This method tests for !=
.
impl StructuralPartialEq for ModifyImageAttributeInput
Auto Trait Implementations
impl RefUnwindSafe for ModifyImageAttributeInput
impl Send for ModifyImageAttributeInput
impl Sync for ModifyImageAttributeInput
impl Unpin for ModifyImageAttributeInput
impl UnwindSafe for ModifyImageAttributeInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more