aws_sdk_iam/client/add_role_to_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 [`AddRoleToInstanceProfile`](crate::operation::add_role_to_instance_profile::builders::AddRoleToInstanceProfileFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`instance_profile_name(impl Into<String>)`](crate::operation::add_role_to_instance_profile::builders::AddRoleToInstanceProfileFluentBuilder::instance_profile_name) / [`set_instance_profile_name(Option<String>)`](crate::operation::add_role_to_instance_profile::builders::AddRoleToInstanceProfileFluentBuilder::set_instance_profile_name):<br>required: **true**<br><p>The name of the instance profile to update.</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 /// - [`role_name(impl Into<String>)`](crate::operation::add_role_to_instance_profile::builders::AddRoleToInstanceProfileFluentBuilder::role_name) / [`set_role_name(Option<String>)`](crate::operation::add_role_to_instance_profile::builders::AddRoleToInstanceProfileFluentBuilder::set_role_name):<br>required: **true**<br><p>The name of the role to add.</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>
8 /// - On success, responds with [`AddRoleToInstanceProfileOutput`](crate::operation::add_role_to_instance_profile::AddRoleToInstanceProfileOutput)
9 /// - On failure, responds with [`SdkError<AddRoleToInstanceProfileError>`](crate::operation::add_role_to_instance_profile::AddRoleToInstanceProfileError)
10 pub fn add_role_to_instance_profile(&self) -> crate::operation::add_role_to_instance_profile::builders::AddRoleToInstanceProfileFluentBuilder {
11 crate::operation::add_role_to_instance_profile::builders::AddRoleToInstanceProfileFluentBuilder::new(self.handle.clone())
12 }
13}