aws_sdk_iam/client/
get_instance_profile.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`GetInstanceProfile`](crate::operation::get_instance_profile::builders::GetInstanceProfileFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`instance_profile_name(impl Into<String>)`](crate::operation::get_instance_profile::builders::GetInstanceProfileFluentBuilder::instance_profile_name) / [`set_instance_profile_name(Option<String>)`](crate::operation::get_instance_profile::builders::GetInstanceProfileFluentBuilder::set_instance_profile_name):<br>required: **true**<br><p>The name of the instance profile to get information about.</p> <p>This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-</p><br>
7    /// - On success, responds with [`GetInstanceProfileOutput`](crate::operation::get_instance_profile::GetInstanceProfileOutput) with field(s):
8    ///   - [`instance_profile(Option<InstanceProfile>)`](crate::operation::get_instance_profile::GetInstanceProfileOutput::instance_profile): <p>A structure containing details about the instance profile.</p>
9    /// - On failure, responds with [`SdkError<GetInstanceProfileError>`](crate::operation::get_instance_profile::GetInstanceProfileError)
10    pub fn get_instance_profile(&self) -> crate::operation::get_instance_profile::builders::GetInstanceProfileFluentBuilder {
11        crate::operation::get_instance_profile::builders::GetInstanceProfileFluentBuilder::new(self.handle.clone())
12    }
13}