amazonka-iam-1.6.0: Amazon Identity and Access Management SDK.

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

Network.AWS.IAM.GetInstanceProfile

Contents

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

getInstanceProfile #

Creates a value of GetInstanceProfile with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • gipInstanceProfileName - The name of the instance profile to get information about. This parameter allows (per 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: _+=,.@-

data GetInstanceProfile #

See: getInstanceProfile smart constructor.

Instances
Eq GetInstanceProfile # 
Instance details

Defined in Network.AWS.IAM.GetInstanceProfile

Data GetInstanceProfile # 
Instance details

Defined in Network.AWS.IAM.GetInstanceProfile

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetInstanceProfile -> c GetInstanceProfile #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetInstanceProfile #

toConstr :: GetInstanceProfile -> Constr #

dataTypeOf :: GetInstanceProfile -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c GetInstanceProfile) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetInstanceProfile) #

gmapT :: (forall b. Data b => b -> b) -> GetInstanceProfile -> GetInstanceProfile #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetInstanceProfile -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetInstanceProfile -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetInstanceProfile -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetInstanceProfile -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetInstanceProfile -> m GetInstanceProfile #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetInstanceProfile -> m GetInstanceProfile #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetInstanceProfile -> m GetInstanceProfile #

Read GetInstanceProfile # 
Instance details

Defined in Network.AWS.IAM.GetInstanceProfile

Show GetInstanceProfile # 
Instance details

Defined in Network.AWS.IAM.GetInstanceProfile

Generic GetInstanceProfile # 
Instance details

Defined in Network.AWS.IAM.GetInstanceProfile

Associated Types

type Rep GetInstanceProfile :: * -> * #

Hashable GetInstanceProfile # 
Instance details

Defined in Network.AWS.IAM.GetInstanceProfile

AWSRequest GetInstanceProfile # 
Instance details

Defined in Network.AWS.IAM.GetInstanceProfile

Associated Types

type Rs GetInstanceProfile :: * #

ToHeaders GetInstanceProfile # 
Instance details

Defined in Network.AWS.IAM.GetInstanceProfile

ToPath GetInstanceProfile # 
Instance details

Defined in Network.AWS.IAM.GetInstanceProfile

ToQuery GetInstanceProfile # 
Instance details

Defined in Network.AWS.IAM.GetInstanceProfile

NFData GetInstanceProfile # 
Instance details

Defined in Network.AWS.IAM.GetInstanceProfile

Methods

rnf :: GetInstanceProfile -> () #

type Rep GetInstanceProfile # 
Instance details

Defined in Network.AWS.IAM.GetInstanceProfile

type Rep GetInstanceProfile = D1 (MetaData "GetInstanceProfile" "Network.AWS.IAM.GetInstanceProfile" "amazonka-iam-1.6.0-KLHg33OPBsA2oss7MTCyZq" True) (C1 (MetaCons "GetInstanceProfile'" PrefixI True) (S1 (MetaSel (Just "_gipInstanceProfileName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs GetInstanceProfile # 
Instance details

Defined in Network.AWS.IAM.GetInstanceProfile

Request Lenses

gipInstanceProfileName :: Lens' GetInstanceProfile Text #

The name of the instance profile to get information about. This parameter allows (per 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

getInstanceProfileResponse #

Creates a value of GetInstanceProfileResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data GetInstanceProfileResponse #

Contains the response to a successful GetInstanceProfile request.

See: getInstanceProfileResponse smart constructor.

Instances
Eq GetInstanceProfileResponse # 
Instance details

Defined in Network.AWS.IAM.GetInstanceProfile

Data GetInstanceProfileResponse # 
Instance details

Defined in Network.AWS.IAM.GetInstanceProfile

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetInstanceProfileResponse -> c GetInstanceProfileResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetInstanceProfileResponse #

toConstr :: GetInstanceProfileResponse -> Constr #

dataTypeOf :: GetInstanceProfileResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c GetInstanceProfileResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetInstanceProfileResponse) #

gmapT :: (forall b. Data b => b -> b) -> GetInstanceProfileResponse -> GetInstanceProfileResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetInstanceProfileResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetInstanceProfileResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetInstanceProfileResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetInstanceProfileResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetInstanceProfileResponse -> m GetInstanceProfileResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetInstanceProfileResponse -> m GetInstanceProfileResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetInstanceProfileResponse -> m GetInstanceProfileResponse #

Read GetInstanceProfileResponse # 
Instance details

Defined in Network.AWS.IAM.GetInstanceProfile

Show GetInstanceProfileResponse # 
Instance details

Defined in Network.AWS.IAM.GetInstanceProfile

Generic GetInstanceProfileResponse # 
Instance details

Defined in Network.AWS.IAM.GetInstanceProfile

Associated Types

type Rep GetInstanceProfileResponse :: * -> * #

NFData GetInstanceProfileResponse # 
Instance details

Defined in Network.AWS.IAM.GetInstanceProfile

type Rep GetInstanceProfileResponse # 
Instance details

Defined in Network.AWS.IAM.GetInstanceProfile

type Rep GetInstanceProfileResponse = D1 (MetaData "GetInstanceProfileResponse" "Network.AWS.IAM.GetInstanceProfile" "amazonka-iam-1.6.0-KLHg33OPBsA2oss7MTCyZq" False) (C1 (MetaCons "GetInstanceProfileResponse'" PrefixI True) (S1 (MetaSel (Just "_giprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int) :*: S1 (MetaSel (Just "_giprsInstanceProfile") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 InstanceProfile)))

Response Lenses

giprsResponseStatus :: Lens' GetInstanceProfileResponse Int #

  • - | The response status code.

giprsInstanceProfile :: Lens' GetInstanceProfileResponse InstanceProfile #

A structure containing details about the instance profile.