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 # 
Data 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 # 
Show GetInstanceProfile # 
Generic GetInstanceProfile # 
Hashable GetInstanceProfile # 
NFData GetInstanceProfile # 

Methods

rnf :: GetInstanceProfile -> () #

AWSRequest GetInstanceProfile # 
ToHeaders GetInstanceProfile # 
ToPath GetInstanceProfile # 
ToQuery GetInstanceProfile # 
type Rep GetInstanceProfile # 
type Rep GetInstanceProfile = D1 * (MetaData "GetInstanceProfile" "Network.AWS.IAM.GetInstanceProfile" "amazonka-iam-1.6.0-1EzdHSXYgBWIEzsCXYmity" True) (C1 * (MetaCons "GetInstanceProfile'" PrefixI True) (S1 * (MetaSel (Just Symbol "_gipInstanceProfileName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text)))
type Rs 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 # 
Data GetInstanceProfileResponse # 

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 # 
Show GetInstanceProfileResponse # 
Generic GetInstanceProfileResponse # 
NFData GetInstanceProfileResponse # 
type Rep GetInstanceProfileResponse # 
type Rep GetInstanceProfileResponse = D1 * (MetaData "GetInstanceProfileResponse" "Network.AWS.IAM.GetInstanceProfile" "amazonka-iam-1.6.0-1EzdHSXYgBWIEzsCXYmity" False) (C1 * (MetaCons "GetInstanceProfileResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_giprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)) (S1 * (MetaSel (Just Symbol "_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.