Struct aws_sdk_ec2::input::ModifyImageAttributeInput
source · #[non_exhaustive]pub struct ModifyImageAttributeInput { /* private fields */ }
Expand description
Contains the parameters for ModifyImageAttribute.
Implementations§
source§impl ModifyImageAttributeInput
impl ModifyImageAttributeInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyImageAttribute, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyImageAttribute, AwsResponseRetryClassifier>, 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
.
source§impl 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§
source§impl Clone for ModifyImageAttributeInput
impl Clone for ModifyImageAttributeInput
source§fn clone(&self) -> ModifyImageAttributeInput
fn clone(&self) -> ModifyImageAttributeInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ModifyImageAttributeInput
impl Debug for ModifyImageAttributeInput
source§impl PartialEq<ModifyImageAttributeInput> for ModifyImageAttributeInput
impl PartialEq<ModifyImageAttributeInput> for ModifyImageAttributeInput
source§fn eq(&self, other: &ModifyImageAttributeInput) -> bool
fn eq(&self, other: &ModifyImageAttributeInput) -> bool
self
and other
values to be equal, and is used
by ==
.