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>
Examples found in repository?
64397 64398 64399 64400 64401 64402 64403 64404 64405 64406 64407 64408 64409 64410 64411 64412 64413 64414 64415 64416 64417 64418 64419 64420 64421 64422 64423 64424 64425 64426 64427 64428 64429 64430 64431 64432 64433 64434 64435 64436 64437 64438 64439
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ModifyImageAttribute,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ModifyImageAttributeError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ModifyImageAttributeOutput,
aws_smithy_http::result::SdkError<crate::error::ModifyImageAttributeError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}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 more