amazonka-greengrass-1.5.0: Amazon Greengrass SDK.

Copyright(c) 2013-2017 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.CreateDeviceDefinition

Contents

Description

Creates a device definition. You may optinally provide the initial version of the device definition or use `CreateDeviceDefinitionVersion` at a later time.

Synopsis

Creating a Request

createDeviceDefinition :: CreateDeviceDefinition Source #

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

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

data CreateDeviceDefinition Source #

See: createDeviceDefinition smart constructor.

Instances

Eq CreateDeviceDefinition Source # 
Data CreateDeviceDefinition Source # 

Methods

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

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

toConstr :: CreateDeviceDefinition -> Constr #

dataTypeOf :: CreateDeviceDefinition -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateDeviceDefinition Source # 
Show CreateDeviceDefinition Source # 
Generic CreateDeviceDefinition Source # 
Hashable CreateDeviceDefinition Source # 
ToJSON CreateDeviceDefinition Source # 
NFData CreateDeviceDefinition Source # 

Methods

rnf :: CreateDeviceDefinition -> () #

AWSRequest CreateDeviceDefinition Source # 
ToQuery CreateDeviceDefinition Source # 
ToPath CreateDeviceDefinition Source # 
ToHeaders CreateDeviceDefinition Source # 
type Rep CreateDeviceDefinition Source # 
type Rep CreateDeviceDefinition = D1 (MetaData "CreateDeviceDefinition" "Network.AWS.Greengrass.CreateDeviceDefinition" "amazonka-greengrass-1.5.0-71LOjgHB2qBUcTjNYOmi4" False) (C1 (MetaCons "CreateDeviceDefinition'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cddAmznClientToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_cddInitialVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DeviceDefinitionVersion))) (S1 (MetaSel (Just Symbol "_cddName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Rs CreateDeviceDefinition Source # 

Request Lenses

cddAmznClientToken :: Lens' CreateDeviceDefinition (Maybe Text) Source #

The client token used to request idempotent operations.

cddName :: Lens' CreateDeviceDefinition (Maybe Text) Source #

name of the device definition

Destructuring the Response

createDeviceDefinitionResponse Source #

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

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

data CreateDeviceDefinitionResponse Source #

See: createDeviceDefinitionResponse smart constructor.

Instances

Eq CreateDeviceDefinitionResponse Source # 
Data CreateDeviceDefinitionResponse Source # 

Methods

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

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

toConstr :: CreateDeviceDefinitionResponse -> Constr #

dataTypeOf :: CreateDeviceDefinitionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateDeviceDefinitionResponse Source # 
Show CreateDeviceDefinitionResponse Source # 
Generic CreateDeviceDefinitionResponse Source # 
NFData CreateDeviceDefinitionResponse Source # 
type Rep CreateDeviceDefinitionResponse Source # 
type Rep CreateDeviceDefinitionResponse = D1 (MetaData "CreateDeviceDefinitionResponse" "Network.AWS.Greengrass.CreateDeviceDefinition" "amazonka-greengrass-1.5.0-71LOjgHB2qBUcTjNYOmi4" False) (C1 (MetaCons "CreateDeviceDefinitionResponse'" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_cddrsLatestVersionARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_cddrsARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_cddrsName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_cddrsCreationTimestamp") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_cddrsId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_cddrsLatestVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_cddrsLastUpdatedTimestamp") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_cddrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))))

Response Lenses

cddrsLatestVersionARN :: Lens' CreateDeviceDefinitionResponse (Maybe Text) Source #

Latest version arn of the definition.

cddrsCreationTimestamp :: Lens' CreateDeviceDefinitionResponse (Maybe Text) Source #

Timestamp of when the definition was created.

cddrsLastUpdatedTimestamp :: Lens' CreateDeviceDefinitionResponse (Maybe Text) Source #

Last updated timestamp of the definition.