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.AssociateServiceRoleToAccount

Contents

Description

Associates a role with your account. AWS Greengrass will use the role to access your Lambda functions and AWS IoT resources. This is necessary for deployments to succeed. The role must have at least minimum permissions in the policy 'AWSGreengrassResourceAccessRolePolicy'.

Synopsis

Creating a Request

associateServiceRoleToAccount :: AssociateServiceRoleToAccount Source #

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

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

  • asrtaRoleARN - The ARN of the service role you wish to associate with your account.

data AssociateServiceRoleToAccount Source #

See: associateServiceRoleToAccount smart constructor.

Instances

Eq AssociateServiceRoleToAccount Source # 
Data AssociateServiceRoleToAccount Source # 

Methods

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

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

toConstr :: AssociateServiceRoleToAccount -> Constr #

dataTypeOf :: AssociateServiceRoleToAccount -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AssociateServiceRoleToAccount Source # 
Show AssociateServiceRoleToAccount Source # 
Generic AssociateServiceRoleToAccount Source # 
Hashable AssociateServiceRoleToAccount Source # 
ToJSON AssociateServiceRoleToAccount Source # 
NFData AssociateServiceRoleToAccount Source # 
AWSRequest AssociateServiceRoleToAccount Source # 
ToHeaders AssociateServiceRoleToAccount Source # 
ToPath AssociateServiceRoleToAccount Source # 
ToQuery AssociateServiceRoleToAccount Source # 
type Rep AssociateServiceRoleToAccount Source # 
type Rep AssociateServiceRoleToAccount = D1 * (MetaData "AssociateServiceRoleToAccount" "Network.AWS.Greengrass.AssociateServiceRoleToAccount" "amazonka-greengrass-1.6.0-UQvTNoJiEcHgaWALQEura" True) (C1 * (MetaCons "AssociateServiceRoleToAccount'" PrefixI True) (S1 * (MetaSel (Just Symbol "_asrtaRoleARN") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe Text))))
type Rs AssociateServiceRoleToAccount Source # 

Request Lenses

asrtaRoleARN :: Lens' AssociateServiceRoleToAccount (Maybe Text) Source #

The ARN of the service role you wish to associate with your account.

Destructuring the Response

associateServiceRoleToAccountResponse Source #

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

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

data AssociateServiceRoleToAccountResponse Source #

Instances

Eq AssociateServiceRoleToAccountResponse Source # 
Data AssociateServiceRoleToAccountResponse Source # 

Methods

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

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

toConstr :: AssociateServiceRoleToAccountResponse -> Constr #

dataTypeOf :: AssociateServiceRoleToAccountResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Response Lenses

asrtarsAssociatedAt :: Lens' AssociateServiceRoleToAccountResponse (Maybe Text) Source #

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