aws_sdk_iam/client/create_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 [`CreateInstanceProfile`](crate::operation::create_instance_profile::builders::CreateInstanceProfileFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`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>
7 /// - [`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>
8 /// - [`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>
9 /// - On success, responds with [`CreateInstanceProfileOutput`](crate::operation::create_instance_profile::CreateInstanceProfileOutput) with field(s):
10 /// - [`instance_profile(Option<InstanceProfile>)`](crate::operation::create_instance_profile::CreateInstanceProfileOutput::instance_profile): <p>A structure containing details about the new instance profile.</p>
11 /// - On failure, responds with [`SdkError<CreateInstanceProfileError>`](crate::operation::create_instance_profile::CreateInstanceProfileError)
12 pub fn create_instance_profile(&self) -> crate::operation::create_instance_profile::builders::CreateInstanceProfileFluentBuilder {
13 crate::operation::create_instance_profile::builders::CreateInstanceProfileFluentBuilder::new(self.handle.clone())
14 }
15}