aws_sdk_iam/client/get_role.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 [`GetRole`](crate::operation::get_role::builders::GetRoleFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`role_name(impl Into<String>)`](crate::operation::get_role::builders::GetRoleFluentBuilder::role_name) / [`set_role_name(Option<String>)`](crate::operation::get_role::builders::GetRoleFluentBuilder::set_role_name):<br>required: **true**<br><p>The name of the IAM role 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 [`GetRoleOutput`](crate::operation::get_role::GetRoleOutput) with field(s):
8 /// - [`role(Option<Role>)`](crate::operation::get_role::GetRoleOutput::role): <p>A structure containing details about the IAM role.</p>
9 /// - On failure, responds with [`SdkError<GetRoleError>`](crate::operation::get_role::GetRoleError)
10 pub fn get_role(&self) -> crate::operation::get_role::builders::GetRoleFluentBuilder {
11 crate::operation::get_role::builders::GetRoleFluentBuilder::new(self.handle.clone())
12 }
13}