1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateInstanceProfile`](crate::operation::create_instance_profile::builders::CreateInstanceProfileFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`instance_profile_name(impl Into<String>)`](crate::operation::create_instance_profile::builders::CreateInstanceProfileFluentBuilder::instance_profile_name) / [`set_instance_profile_name(Option<String>)`](crate::operation::create_instance_profile::builders::CreateInstanceProfileFluentBuilder::set_instance_profile_name):<br>required: **true**<br><p>The name of the instance profile to create.</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>
    ///   - [`path(impl Into<String>)`](crate::operation::create_instance_profile::builders::CreateInstanceProfileFluentBuilder::path) / [`set_path(Option<String>)`](crate::operation::create_instance_profile::builders::CreateInstanceProfileFluentBuilder::set_path):<br>required: **false**<br><p>The path to the instance profile. For more information about paths, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM Identifiers</a> in the <i>IAM User Guide</i>.</p> <p>This parameter is optional. If it is not included, it defaults to a slash (/).</p> <p>This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any ASCII character from the ! (<code>\u0021</code>) through the DEL character (<code>\u007F</code>), including most punctuation characters, digits, and upper and lowercased letters.</p><br>
    ///   - [`tags(Tag)`](crate::operation::create_instance_profile::builders::CreateInstanceProfileFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_instance_profile::builders::CreateInstanceProfileFluentBuilder::set_tags):<br>required: **false**<br><p>A list of tags that you want to attach to the newly created IAM instance profile. Each tag consists of a key name and an associated value. For more information about tagging, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html">Tagging IAM resources</a> in the <i>IAM User Guide</i>.</p><note>  <p>If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request fails and the resource is not created.</p> </note><br>
    /// - On success, responds with [`CreateInstanceProfileOutput`](crate::operation::create_instance_profile::CreateInstanceProfileOutput) with field(s):
    ///   - [`instance_profile(Option<InstanceProfile>)`](crate::operation::create_instance_profile::CreateInstanceProfileOutput::instance_profile): <p>A structure containing details about the new instance profile.</p>
    /// - On failure, responds with [`SdkError<CreateInstanceProfileError>`](crate::operation::create_instance_profile::CreateInstanceProfileError)
    pub fn create_instance_profile(&self) -> crate::operation::create_instance_profile::builders::CreateInstanceProfileFluentBuilder {
        crate::operation::create_instance_profile::builders::CreateInstanceProfileFluentBuilder::new(self.handle.clone())
    }
}