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

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

Network.AWS.IAM.AddRoleToInstanceProfile

Contents

Description

Adds the specified IAM role to the specified instance profile.

For more information about roles, go to Working with Roles . For more information about instance profiles, go to About Instance Profiles .

Synopsis

Creating a Request

addRoleToInstanceProfile Source #

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

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

  • artipInstanceProfileName - The name of the instance profile to update. The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
  • artipRoleName - The name of the role to add. The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

data AddRoleToInstanceProfile Source #

See: addRoleToInstanceProfile smart constructor.

Instances

Eq AddRoleToInstanceProfile Source # 
Data AddRoleToInstanceProfile Source # 

Methods

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

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

toConstr :: AddRoleToInstanceProfile -> Constr #

dataTypeOf :: AddRoleToInstanceProfile -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AddRoleToInstanceProfile Source # 
Show AddRoleToInstanceProfile Source # 
Generic AddRoleToInstanceProfile Source # 
Hashable AddRoleToInstanceProfile Source # 
NFData AddRoleToInstanceProfile Source # 
AWSRequest AddRoleToInstanceProfile Source # 
ToPath AddRoleToInstanceProfile Source # 
ToHeaders AddRoleToInstanceProfile Source # 
ToQuery AddRoleToInstanceProfile Source # 
type Rep AddRoleToInstanceProfile Source # 
type Rep AddRoleToInstanceProfile = D1 (MetaData "AddRoleToInstanceProfile" "Network.AWS.IAM.AddRoleToInstanceProfile" "amazonka-iam-1.4.5-tAuuyG7nyKEp3j6LBO0rr" False) (C1 (MetaCons "AddRoleToInstanceProfile'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_artipInstanceProfileName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_artipRoleName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs AddRoleToInstanceProfile Source # 

Request Lenses

artipInstanceProfileName :: Lens' AddRoleToInstanceProfile Text Source #

The name of the instance profile to update. The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

artipRoleName :: Lens' AddRoleToInstanceProfile Text Source #

The name of the role to add. The regex pattern for this parameter is 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

addRoleToInstanceProfileResponse :: AddRoleToInstanceProfileResponse Source #

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

data AddRoleToInstanceProfileResponse Source #

See: addRoleToInstanceProfileResponse smart constructor.

Instances

Eq AddRoleToInstanceProfileResponse Source # 
Data AddRoleToInstanceProfileResponse Source # 

Methods

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

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

toConstr :: AddRoleToInstanceProfileResponse -> Constr #

dataTypeOf :: AddRoleToInstanceProfileResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AddRoleToInstanceProfileResponse Source # 
Show AddRoleToInstanceProfileResponse Source # 
Generic AddRoleToInstanceProfileResponse Source # 
NFData AddRoleToInstanceProfileResponse Source # 
type Rep AddRoleToInstanceProfileResponse Source # 
type Rep AddRoleToInstanceProfileResponse = D1 (MetaData "AddRoleToInstanceProfileResponse" "Network.AWS.IAM.AddRoleToInstanceProfile" "amazonka-iam-1.4.5-tAuuyG7nyKEp3j6LBO0rr" False) (C1 (MetaCons "AddRoleToInstanceProfileResponse'" PrefixI False) U1)