amazonka-iam-2.0: Amazon Identity and Access Management SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.IAM.GetInstanceProfile

Description

Retrieves information about the specified instance profile, including the instance profile's path, GUID, ARN, and role. For more information about instance profiles, see About instance profiles in the IAM User Guide.

Synopsis

Creating a Request

data GetInstanceProfile Source #

See: newGetInstanceProfile smart constructor.

Constructors

GetInstanceProfile' 

Fields

  • instanceProfileName :: Text

    The name of the instance profile to get information about.

    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
ToHeaders GetInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.GetInstanceProfile

ToPath GetInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.GetInstanceProfile

ToQuery GetInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.GetInstanceProfile

AWSRequest GetInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.GetInstanceProfile

Associated Types

type AWSResponse GetInstanceProfile #

Generic GetInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.GetInstanceProfile

Associated Types

type Rep GetInstanceProfile :: Type -> Type #

Read GetInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.GetInstanceProfile

Show GetInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.GetInstanceProfile

NFData GetInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.GetInstanceProfile

Methods

rnf :: GetInstanceProfile -> () #

Eq GetInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.GetInstanceProfile

Hashable GetInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.GetInstanceProfile

type AWSResponse GetInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.GetInstanceProfile

type Rep GetInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.GetInstanceProfile

type Rep GetInstanceProfile = D1 ('MetaData "GetInstanceProfile" "Amazonka.IAM.GetInstanceProfile" "amazonka-iam-2.0-5DxkArXx9sD3CCYYGFyGET" 'False) (C1 ('MetaCons "GetInstanceProfile'" 'PrefixI 'True) (S1 ('MetaSel ('Just "instanceProfileName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newGetInstanceProfile Source #

Create a value of GetInstanceProfile 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:

GetInstanceProfile, getInstanceProfile_instanceProfileName - The name of the instance profile to get information about.

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

getInstanceProfile_instanceProfileName :: Lens' GetInstanceProfile Text Source #

The name of the instance profile to get information about.

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 GetInstanceProfileResponse Source #

Contains the response to a successful GetInstanceProfile request.

See: newGetInstanceProfileResponse smart constructor.

Constructors

GetInstanceProfileResponse' 

Fields

Instances

Instances details
Generic GetInstanceProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.GetInstanceProfile

Associated Types

type Rep GetInstanceProfileResponse :: Type -> Type #

Read GetInstanceProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.GetInstanceProfile

Show GetInstanceProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.GetInstanceProfile

NFData GetInstanceProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.GetInstanceProfile

Eq GetInstanceProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.GetInstanceProfile

type Rep GetInstanceProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.GetInstanceProfile

type Rep GetInstanceProfileResponse = D1 ('MetaData "GetInstanceProfileResponse" "Amazonka.IAM.GetInstanceProfile" "amazonka-iam-2.0-5DxkArXx9sD3CCYYGFyGET" 'False) (C1 ('MetaCons "GetInstanceProfileResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "instanceProfile") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 InstanceProfile)))

newGetInstanceProfileResponse Source #

Create a value of GetInstanceProfileResponse 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:GetInstanceProfileResponse', getInstanceProfileResponse_httpStatus - The response's http status code.

$sel:instanceProfile:GetInstanceProfileResponse', getInstanceProfileResponse_instanceProfile - A structure containing details about the instance profile.

Response Lenses

getInstanceProfileResponse_instanceProfile :: Lens' GetInstanceProfileResponse InstanceProfile Source #

A structure containing details about the instance profile.