amazonka-greengrass-1.6.0: Amazon Greengrass 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.Greengrass.GetServiceRoleForAccount

Contents

Description

Retrieves the service role that is attached to your account.

Synopsis

Creating a Request

getServiceRoleForAccount :: GetServiceRoleForAccount Source #

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

data GetServiceRoleForAccount Source #

See: getServiceRoleForAccount smart constructor.

Instances

Eq GetServiceRoleForAccount Source # 
Data GetServiceRoleForAccount Source # 

Methods

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

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

toConstr :: GetServiceRoleForAccount -> Constr #

dataTypeOf :: GetServiceRoleForAccount -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetServiceRoleForAccount Source # 
Show GetServiceRoleForAccount Source # 
Generic GetServiceRoleForAccount Source # 
Hashable GetServiceRoleForAccount Source # 
NFData GetServiceRoleForAccount Source # 
AWSRequest GetServiceRoleForAccount Source # 
ToHeaders GetServiceRoleForAccount Source # 
ToPath GetServiceRoleForAccount Source # 
ToQuery GetServiceRoleForAccount Source # 
type Rep GetServiceRoleForAccount Source # 
type Rep GetServiceRoleForAccount = D1 * (MetaData "GetServiceRoleForAccount" "Network.AWS.Greengrass.GetServiceRoleForAccount" "amazonka-greengrass-1.6.0-UQvTNoJiEcHgaWALQEura" False) (C1 * (MetaCons "GetServiceRoleForAccount'" PrefixI False) (U1 *))
type Rs GetServiceRoleForAccount Source # 

Destructuring the Response

getServiceRoleForAccountResponse Source #

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

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

data GetServiceRoleForAccountResponse Source #

See: getServiceRoleForAccountResponse smart constructor.

Instances

Eq GetServiceRoleForAccountResponse Source # 
Data GetServiceRoleForAccountResponse Source # 

Methods

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

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

toConstr :: GetServiceRoleForAccountResponse -> Constr #

dataTypeOf :: GetServiceRoleForAccountResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetServiceRoleForAccountResponse Source # 
Show GetServiceRoleForAccountResponse Source # 
Generic GetServiceRoleForAccountResponse Source # 
NFData GetServiceRoleForAccountResponse Source # 
type Rep GetServiceRoleForAccountResponse Source # 
type Rep GetServiceRoleForAccountResponse = D1 * (MetaData "GetServiceRoleForAccountResponse" "Network.AWS.Greengrass.GetServiceRoleForAccount" "amazonka-greengrass-1.6.0-UQvTNoJiEcHgaWALQEura" False) (C1 * (MetaCons "GetServiceRoleForAccountResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_gsrfarsAssociatedAt") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_gsrfarsRoleARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_gsrfarsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

gsrfarsAssociatedAt :: Lens' GetServiceRoleForAccountResponse (Maybe Text) Source #

The time when the service role was associated with the account.

gsrfarsRoleARN :: Lens' GetServiceRoleForAccountResponse (Maybe Text) Source #

The ARN of the role which is associated with the account.