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

Implementations§

The affinity setting for the instance.

Examples found in repository?
src/client.rs (line 65722)
65721
65722
65723
65724
        pub fn affinity(mut self, input: crate::model::Affinity) -> Self {
            self.inner = self.inner.affinity(input);
            self
        }

The affinity setting for the instance.

Examples found in repository?
src/client.rs (line 65727)
65726
65727
65728
65729
        pub fn set_affinity(mut self, input: std::option::Option<crate::model::Affinity>) -> Self {
            self.inner = self.inner.set_affinity(input);
            self
        }

The name of the placement group in which to place the instance. For spread placement groups, the instance must have a tenancy of default. For cluster and partition placement groups, the instance must have a tenancy of default or dedicated.

To remove an instance from a placement group, specify an empty string ("").

Examples found in repository?
src/client.rs (line 65733)
65732
65733
65734
65735
        pub fn group_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.group_name(input.into());
            self
        }

The name of the placement group in which to place the instance. For spread placement groups, the instance must have a tenancy of default. For cluster and partition placement groups, the instance must have a tenancy of default or dedicated.

To remove an instance from a placement group, specify an empty string ("").

Examples found in repository?
src/client.rs (line 65739)
65738
65739
65740
65741
        pub fn set_group_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_group_name(input);
            self
        }

The ID of the Dedicated Host with which to associate the instance.

Examples found in repository?
src/client.rs (line 65744)
65743
65744
65745
65746
        pub fn host_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.host_id(input.into());
            self
        }

The ID of the Dedicated Host with which to associate the instance.

Examples found in repository?
src/client.rs (line 65749)
65748
65749
65750
65751
        pub fn set_host_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_host_id(input);
            self
        }

The ID of the instance that you are modifying.

Examples found in repository?
src/client.rs (line 65754)
65753
65754
65755
65756
        pub fn instance_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.instance_id(input.into());
            self
        }

The ID of the instance that you are modifying.

Examples found in repository?
src/client.rs (line 65759)
65758
65759
65760
65761
        pub fn set_instance_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_instance_id(input);
            self
        }

The tenancy for the instance.

For T3 instances, you can't change the tenancy from dedicated to host, or from host to dedicated. Attempting to make one of these unsupported tenancy changes results in the InvalidTenancy error code.

Examples found in repository?
src/client.rs (line 65766)
65765
65766
65767
65768
        pub fn tenancy(mut self, input: crate::model::HostTenancy) -> Self {
            self.inner = self.inner.tenancy(input);
            self
        }

The tenancy for the instance.

For T3 instances, you can't change the tenancy from dedicated to host, or from host to dedicated. Attempting to make one of these unsupported tenancy changes results in the InvalidTenancy error code.

Examples found in repository?
src/client.rs (line 65776)
65772
65773
65774
65775
65776
65777
65778
        pub fn set_tenancy(
            mut self,
            input: std::option::Option<crate::model::HostTenancy>,
        ) -> Self {
            self.inner = self.inner.set_tenancy(input);
            self
        }

The number of the partition in which to place the instance. Valid only if the placement group strategy is set to partition.

Examples found in repository?
src/client.rs (line 65781)
65780
65781
65782
65783
        pub fn partition_number(mut self, input: i32) -> Self {
            self.inner = self.inner.partition_number(input);
            self
        }

The number of the partition in which to place the instance. Valid only if the placement group strategy is set to partition.

Examples found in repository?
src/client.rs (line 65786)
65785
65786
65787
65788
        pub fn set_partition_number(mut self, input: std::option::Option<i32>) -> Self {
            self.inner = self.inner.set_partition_number(input);
            self
        }

The ARN of the host resource group in which to place the instance.

Examples found in repository?
src/client.rs (line 65791)
65790
65791
65792
65793
        pub fn host_resource_group_arn(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.host_resource_group_arn(input.into());
            self
        }

The ARN of the host resource group in which to place the instance.

Examples found in repository?
src/client.rs (line 65799)
65795
65796
65797
65798
65799
65800
65801
        pub fn set_host_resource_group_arn(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_host_resource_group_arn(input);
            self
        }

Consumes the builder and constructs a ModifyInstancePlacementInput.

Examples found in repository?
src/client.rs (line 65689)
65677
65678
65679
65680
65681
65682
65683
65684
65685
65686
65687
65688
65689
65690
65691
65692
65693
65694
65695
65696
65697
65698
65699
65700
65701
65702
65703
65704
65705
65706
65707
65708
65709
65710
65711
65712
65713
65714
65715
65716
65717
65718
65719
        pub async fn customize(
            self,
        ) -> std::result::Result<
            crate::operation::customize::CustomizableOperation<
                crate::operation::ModifyInstancePlacement,
                aws_http::retry::AwsResponseRetryClassifier,
            >,
            aws_smithy_http::result::SdkError<crate::error::ModifyInstancePlacementError>,
        > {
            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::ModifyInstancePlacementOutput,
            aws_smithy_http::result::SdkError<crate::error::ModifyInstancePlacementError>,
        > {
            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