#[non_exhaustive]pub struct ReplaceIamInstanceProfileAssociationInput { /* private fields */ }
Implementations§
source§impl ReplaceIamInstanceProfileAssociationInput
impl ReplaceIamInstanceProfileAssociationInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ReplaceIamInstanceProfileAssociation, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ReplaceIamInstanceProfileAssociation, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ReplaceIamInstanceProfileAssociation
>
Examples found in repository?
src/client.rs (line 73400)
73384 73385 73386 73387 73388 73389 73390 73391 73392 73393 73394 73395 73396 73397 73398 73399 73400 73401 73402 73403 73404 73405 73406 73407 73408 73409 73410 73411 73412 73413 73414 73415 73416 73417 73418 73419 73420 73421 73422 73423 73424 73425 73426 73427 73428 73429 73430
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ReplaceIamInstanceProfileAssociation,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<
crate::error::ReplaceIamInstanceProfileAssociationError,
>,
> {
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::ReplaceIamInstanceProfileAssociationOutput,
aws_smithy_http::result::SdkError<
crate::error::ReplaceIamInstanceProfileAssociationError,
>,
> {
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 ReplaceIamInstanceProfileAssociationInput
.
source§impl ReplaceIamInstanceProfileAssociationInput
impl ReplaceIamInstanceProfileAssociationInput
sourcepub fn iam_instance_profile(&self) -> Option<&IamInstanceProfileSpecification>
pub fn iam_instance_profile(&self) -> Option<&IamInstanceProfileSpecification>
The IAM instance profile.
sourcepub fn association_id(&self) -> Option<&str>
pub fn association_id(&self) -> Option<&str>
The ID of the existing IAM instance profile association.
Trait Implementations§
source§impl Clone for ReplaceIamInstanceProfileAssociationInput
impl Clone for ReplaceIamInstanceProfileAssociationInput
source§fn clone(&self) -> ReplaceIamInstanceProfileAssociationInput
fn clone(&self) -> ReplaceIamInstanceProfileAssociationInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more