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

Contents

Description

Creates a Lambda function definition which contains a list of Lambda functions and their configurations to be used in a group. You can create an initial version of the definition by providing a list of Lambda functions and their configurations now, or use 'CreateFunctionDefinitionVersion' later.

Synopsis

Creating a Request

createFunctionDefinition :: CreateFunctionDefinition Source #

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

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

data CreateFunctionDefinition Source #

See: createFunctionDefinition smart constructor.

Instances

Eq CreateFunctionDefinition Source # 
Data CreateFunctionDefinition Source # 

Methods

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

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

toConstr :: CreateFunctionDefinition -> Constr #

dataTypeOf :: CreateFunctionDefinition -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateFunctionDefinition Source # 
Show CreateFunctionDefinition Source # 
Generic CreateFunctionDefinition Source # 
Hashable CreateFunctionDefinition Source # 
ToJSON CreateFunctionDefinition Source # 
NFData CreateFunctionDefinition Source # 
AWSRequest CreateFunctionDefinition Source # 
ToHeaders CreateFunctionDefinition Source # 
ToPath CreateFunctionDefinition Source # 
ToQuery CreateFunctionDefinition Source # 
type Rep CreateFunctionDefinition Source # 
type Rep CreateFunctionDefinition = D1 * (MetaData "CreateFunctionDefinition" "Network.AWS.Greengrass.CreateFunctionDefinition" "amazonka-greengrass-1.6.0-UQvTNoJiEcHgaWALQEura" False) (C1 * (MetaCons "CreateFunctionDefinition'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_cfdAmznClientToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cfdInitialVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe FunctionDefinitionVersion))) (S1 * (MetaSel (Just Symbol "_cfdName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))))))
type Rs CreateFunctionDefinition Source # 

Request Lenses

cfdAmznClientToken :: Lens' CreateFunctionDefinition (Maybe Text) Source #

A client token used to correlate requests and responses.

cfdInitialVersion :: Lens' CreateFunctionDefinition (Maybe FunctionDefinitionVersion) Source #

Information about the initial version of the function definition.

cfdName :: Lens' CreateFunctionDefinition (Maybe Text) Source #

The name of the function definition.

Destructuring the Response

createFunctionDefinitionResponse Source #

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

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

data CreateFunctionDefinitionResponse Source #

See: createFunctionDefinitionResponse smart constructor.

Instances

Eq CreateFunctionDefinitionResponse Source # 
Data CreateFunctionDefinitionResponse Source # 

Methods

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

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

toConstr :: CreateFunctionDefinitionResponse -> Constr #

dataTypeOf :: CreateFunctionDefinitionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateFunctionDefinitionResponse Source # 
Show CreateFunctionDefinitionResponse Source # 
Generic CreateFunctionDefinitionResponse Source # 
NFData CreateFunctionDefinitionResponse Source # 
type Rep CreateFunctionDefinitionResponse Source # 
type Rep CreateFunctionDefinitionResponse = D1 * (MetaData "CreateFunctionDefinitionResponse" "Network.AWS.Greengrass.CreateFunctionDefinition" "amazonka-greengrass-1.6.0-UQvTNoJiEcHgaWALQEura" False) (C1 * (MetaCons "CreateFunctionDefinitionResponse'" PrefixI True) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_cfdrsLatestVersionARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_cfdrsARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cfdrsName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_cfdrsCreationTimestamp") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_cfdrsId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_cfdrsLatestVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cfdrsLastUpdatedTimestamp") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_cfdrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))))

Response Lenses

cfdrsLatestVersionARN :: Lens' CreateFunctionDefinitionResponse (Maybe Text) Source #

The ARN of the latest version of the definition.

cfdrsCreationTimestamp :: Lens' CreateFunctionDefinitionResponse (Maybe Text) Source #

The time, in milliseconds since the epoch, when the definition was created.

cfdrsLatestVersion :: Lens' CreateFunctionDefinitionResponse (Maybe Text) Source #

The latest version of the definition.

cfdrsLastUpdatedTimestamp :: Lens' CreateFunctionDefinitionResponse (Maybe Text) Source #

The time, in milliseconds since the epoch, when the definition was last updated.