pub struct Builder { /* private fields */ }
Expand description

Implementations§

The name of the attribute to modify.

Valid values: description | launchPermission

Examples found in repository?
src/client.rs (line 64443)
64442
64443
64444
64445
        pub fn attribute(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.attribute(input.into());
            self
        }

The name of the attribute to modify.

Valid values: description | launchPermission

Examples found in repository?
src/client.rs (line 64449)
64448
64449
64450
64451
        pub fn set_attribute(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_attribute(input);
            self
        }

A new description for the AMI.

Examples found in repository?
src/client.rs (line 64454)
64453
64454
64455
64456
        pub fn description(mut self, input: crate::model::AttributeValue) -> Self {
            self.inner = self.inner.description(input);
            self
        }

A new description for the AMI.

Examples found in repository?
src/client.rs (line 64462)
64458
64459
64460
64461
64462
64463
64464
        pub fn set_description(
            mut self,
            input: std::option::Option<crate::model::AttributeValue>,
        ) -> Self {
            self.inner = self.inner.set_description(input);
            self
        }

The ID of the AMI.

Examples found in repository?
src/client.rs (line 64467)
64466
64467
64468
64469
        pub fn image_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.image_id(input.into());
            self
        }

The ID of the AMI.

Examples found in repository?
src/client.rs (line 64472)
64471
64472
64473
64474
        pub fn set_image_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_image_id(input);
            self
        }

A new launch permission for the AMI.

Examples found in repository?
src/client.rs (line 64480)
64476
64477
64478
64479
64480
64481
64482
        pub fn launch_permission(
            mut self,
            input: crate::model::LaunchPermissionModifications,
        ) -> Self {
            self.inner = self.inner.launch_permission(input);
            self
        }

A new launch permission for the AMI.

Examples found in repository?
src/client.rs (line 64488)
64484
64485
64486
64487
64488
64489
64490
        pub fn set_launch_permission(
            mut self,
            input: std::option::Option<crate::model::LaunchPermissionModifications>,
        ) -> Self {
            self.inner = self.inner.set_launch_permission(input);
            self
        }

The operation type. This parameter can be used only when the Attribute parameter is launchPermission.

Examples found in repository?
src/client.rs (line 64493)
64492
64493
64494
64495
        pub fn operation_type(mut self, input: crate::model::OperationType) -> Self {
            self.inner = self.inner.operation_type(input);
            self
        }

The operation type. This parameter can be used only when the Attribute parameter is launchPermission.

Examples found in repository?
src/client.rs (line 64501)
64497
64498
64499
64500
64501
64502
64503
        pub fn set_operation_type(
            mut self,
            input: std::option::Option<crate::model::OperationType>,
        ) -> Self {
            self.inner = self.inner.set_operation_type(input);
            self
        }

Appends an item to product_codes.

To override the contents of this collection use set_product_codes.

Not supported.

Examples found in repository?
src/client.rs (line 64510)
64509
64510
64511
64512
        pub fn product_codes(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.product_codes(input.into());
            self
        }

Not supported.

Examples found in repository?
src/client.rs (line 64518)
64514
64515
64516
64517
64518
64519
64520
        pub fn set_product_codes(
            mut self,
            input: std::option::Option<std::vec::Vec<std::string::String>>,
        ) -> Self {
            self.inner = self.inner.set_product_codes(input);
            self
        }

Appends an item to user_groups.

To override the contents of this collection use set_user_groups.

The user groups. This parameter can be used only when the Attribute parameter is launchPermission.

Examples found in repository?
src/client.rs (line 64527)
64526
64527
64528
64529
        pub fn user_groups(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.user_groups(input.into());
            self
        }

The user groups. This parameter can be used only when the Attribute parameter is launchPermission.

Examples found in repository?
src/client.rs (line 64535)
64531
64532
64533
64534
64535
64536
64537
        pub fn set_user_groups(
            mut self,
            input: std::option::Option<std::vec::Vec<std::string::String>>,
        ) -> Self {
            self.inner = self.inner.set_user_groups(input);
            self
        }

Appends an item to user_ids.

To override the contents of this collection use set_user_ids.

The Amazon Web Services account IDs. This parameter can be used only when the Attribute parameter is launchPermission.

Examples found in repository?
src/client.rs (line 64544)
64543
64544
64545
64546
        pub fn user_ids(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.user_ids(input.into());
            self
        }

The Amazon Web Services account IDs. This parameter can be used only when the Attribute parameter is launchPermission.

Examples found in repository?
src/client.rs (line 64552)
64548
64549
64550
64551
64552
64553
64554
        pub fn set_user_ids(
            mut self,
            input: std::option::Option<std::vec::Vec<std::string::String>>,
        ) -> Self {
            self.inner = self.inner.set_user_ids(input);
            self
        }

The value of the attribute being modified. This parameter can be used only when the Attribute parameter is description.

Examples found in repository?
src/client.rs (line 64557)
64556
64557
64558
64559
        pub fn value(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.value(input.into());
            self
        }

The value of the attribute being modified. This parameter can be used only when the Attribute parameter is description.

Examples found in repository?
src/client.rs (line 64562)
64561
64562
64563
64564
        pub fn set_value(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_value(input);
            self
        }

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.

Examples found in repository?
src/client.rs (line 64567)
64566
64567
64568
64569
        pub fn dry_run(mut self, input: bool) -> Self {
            self.inner = self.inner.dry_run(input);
            self
        }

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.

Examples found in repository?
src/client.rs (line 64572)
64571
64572
64573
64574
        pub fn set_dry_run(mut self, input: std::option::Option<bool>) -> Self {
            self.inner = self.inner.set_dry_run(input);
            self
        }

Appends an item to organization_arns.

To override the contents of this collection use set_organization_arns.

The Amazon Resource Name (ARN) of an organization. This parameter can be used only when the Attribute parameter is launchPermission.

Examples found in repository?
src/client.rs (line 64581)
64580
64581
64582
64583
        pub fn organization_arns(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.organization_arns(input.into());
            self
        }

The Amazon Resource Name (ARN) of an organization. This parameter can be used only when the Attribute parameter is launchPermission.

Examples found in repository?
src/client.rs (line 64589)
64585
64586
64587
64588
64589
64590
64591
        pub fn set_organization_arns(
            mut self,
            input: std::option::Option<std::vec::Vec<std::string::String>>,
        ) -> Self {
            self.inner = self.inner.set_organization_arns(input);
            self
        }

Appends an item to organizational_unit_arns.

To override the contents of this collection use set_organizational_unit_arns.

The Amazon Resource Name (ARN) of an organizational unit (OU). This parameter can be used only when the Attribute parameter is launchPermission.

Examples found in repository?
src/client.rs (line 64598)
64597
64598
64599
64600
        pub fn organizational_unit_arns(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.organizational_unit_arns(input.into());
            self
        }

The Amazon Resource Name (ARN) of an organizational unit (OU). This parameter can be used only when the Attribute parameter is launchPermission.

Examples found in repository?
src/client.rs (line 64606)
64602
64603
64604
64605
64606
64607
64608
        pub fn set_organizational_unit_arns(
            mut self,
            input: std::option::Option<std::vec::Vec<std::string::String>>,
        ) -> Self {
            self.inner = self.inner.set_organizational_unit_arns(input);
            self
        }

Consumes the builder and constructs a ModifyImageAttributeInput.

Examples found in repository?
src/client.rs (line 64409)
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
        }

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more