libZSservicesZSamazonka-iamZSamazonka-iam
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.IAM.CreateInstanceProfile

Description

Creates a new instance profile. For information about instance profiles, see Using roles for applications on Amazon EC2 in the IAM User Guide, and Instance profiles in the Amazon EC2 User Guide.

For information about the number of instance profiles you can create, see IAM object quotas in the IAM User Guide.

Synopsis

Creating a Request

data CreateInstanceProfile Source #

See: newCreateInstanceProfile smart constructor.

Constructors

CreateInstanceProfile' 

Fields

  • path :: Maybe Text

    The path to the instance profile. For more information about paths, see IAM Identifiers in the IAM User Guide.

    This parameter is optional. If it is not included, it defaults to a slash (/).

    This parameter allows (through its regex pattern) 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 ! (\u0021) through the DEL character (\u007F), including most punctuation characters, digits, and upper and lowercased letters.

  • tags :: Maybe [Tag]

    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 Tagging IAM resources in the IAM User Guide.

    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.

  • instanceProfileName :: Text

    The name of the instance profile to create.

    This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

Instances

Instances details
Eq CreateInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.CreateInstanceProfile

Read CreateInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.CreateInstanceProfile

Show CreateInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.CreateInstanceProfile

Generic CreateInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.CreateInstanceProfile

Associated Types

type Rep CreateInstanceProfile :: Type -> Type #

NFData CreateInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.CreateInstanceProfile

Methods

rnf :: CreateInstanceProfile -> () #

Hashable CreateInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.CreateInstanceProfile

AWSRequest CreateInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.CreateInstanceProfile

Associated Types

type AWSResponse CreateInstanceProfile #

ToHeaders CreateInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.CreateInstanceProfile

ToPath CreateInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.CreateInstanceProfile

ToQuery CreateInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.CreateInstanceProfile

type Rep CreateInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.CreateInstanceProfile

type Rep CreateInstanceProfile = D1 ('MetaData "CreateInstanceProfile" "Amazonka.IAM.CreateInstanceProfile" "libZSservicesZSamazonka-iamZSamazonka-iam" 'False) (C1 ('MetaCons "CreateInstanceProfile'" 'PrefixI 'True) (S1 ('MetaSel ('Just "path") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "instanceProfileName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse CreateInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.CreateInstanceProfile

newCreateInstanceProfile Source #

Create a value of CreateInstanceProfile with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:path:CreateInstanceProfile', createInstanceProfile_path - The path to the instance profile. For more information about paths, see IAM Identifiers in the IAM User Guide.

This parameter is optional. If it is not included, it defaults to a slash (/).

This parameter allows (through its regex pattern) 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 ! (\u0021) through the DEL character (\u007F), including most punctuation characters, digits, and upper and lowercased letters.

$sel:tags:CreateInstanceProfile', createInstanceProfile_tags - 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 Tagging IAM resources in the IAM User Guide.

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.

$sel:instanceProfileName:CreateInstanceProfile', createInstanceProfile_instanceProfileName - The name of the instance profile to create.

This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

Request Lenses

createInstanceProfile_path :: Lens' CreateInstanceProfile (Maybe Text) Source #

The path to the instance profile. For more information about paths, see IAM Identifiers in the IAM User Guide.

This parameter is optional. If it is not included, it defaults to a slash (/).

This parameter allows (through its regex pattern) 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 ! (\u0021) through the DEL character (\u007F), including most punctuation characters, digits, and upper and lowercased letters.

createInstanceProfile_tags :: Lens' CreateInstanceProfile (Maybe [Tag]) Source #

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 Tagging IAM resources in the IAM User Guide.

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.

createInstanceProfile_instanceProfileName :: Lens' CreateInstanceProfile Text Source #

The name of the instance profile to create.

This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

Destructuring the Response

data CreateInstanceProfileResponse Source #

Contains the response to a successful CreateInstanceProfile request.

See: newCreateInstanceProfileResponse smart constructor.

Constructors

CreateInstanceProfileResponse' 

Fields

Instances

Instances details
Eq CreateInstanceProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.CreateInstanceProfile

Read CreateInstanceProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.CreateInstanceProfile

Show CreateInstanceProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.CreateInstanceProfile

Generic CreateInstanceProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.CreateInstanceProfile

Associated Types

type Rep CreateInstanceProfileResponse :: Type -> Type #

NFData CreateInstanceProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.CreateInstanceProfile

type Rep CreateInstanceProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.CreateInstanceProfile

type Rep CreateInstanceProfileResponse = D1 ('MetaData "CreateInstanceProfileResponse" "Amazonka.IAM.CreateInstanceProfile" "libZSservicesZSamazonka-iamZSamazonka-iam" 'False) (C1 ('MetaCons "CreateInstanceProfileResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "instanceProfile") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 InstanceProfile)))

newCreateInstanceProfileResponse Source #

Create a value of CreateInstanceProfileResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:httpStatus:CreateInstanceProfileResponse', createInstanceProfileResponse_httpStatus - The response's http status code.

$sel:instanceProfile:CreateInstanceProfileResponse', createInstanceProfileResponse_instanceProfile - A structure containing details about the new instance profile.

Response Lenses

createInstanceProfileResponse_instanceProfile :: Lens' CreateInstanceProfileResponse InstanceProfile Source #

A structure containing details about the new instance profile.