amazonka-greengrass-1.6.1: 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.CreateDeviceDefinition

Contents

Description

Creates a device definition. You may provide the initial version of the device definition now 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 # 
Instance details

Defined in Network.AWS.Greengrass.CreateDeviceDefinition

Data CreateDeviceDefinition Source # 
Instance details

Defined in Network.AWS.Greengrass.CreateDeviceDefinition

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 # 
Instance details

Defined in Network.AWS.Greengrass.CreateDeviceDefinition

Show CreateDeviceDefinition Source # 
Instance details

Defined in Network.AWS.Greengrass.CreateDeviceDefinition

Generic CreateDeviceDefinition Source # 
Instance details

Defined in Network.AWS.Greengrass.CreateDeviceDefinition

Associated Types

type Rep CreateDeviceDefinition :: Type -> Type #

Hashable CreateDeviceDefinition Source # 
Instance details

Defined in Network.AWS.Greengrass.CreateDeviceDefinition

ToJSON CreateDeviceDefinition Source # 
Instance details

Defined in Network.AWS.Greengrass.CreateDeviceDefinition

AWSRequest CreateDeviceDefinition Source # 
Instance details

Defined in Network.AWS.Greengrass.CreateDeviceDefinition

Associated Types

type Rs CreateDeviceDefinition :: Type #

ToHeaders CreateDeviceDefinition Source # 
Instance details

Defined in Network.AWS.Greengrass.CreateDeviceDefinition

ToPath CreateDeviceDefinition Source # 
Instance details

Defined in Network.AWS.Greengrass.CreateDeviceDefinition

ToQuery CreateDeviceDefinition Source # 
Instance details

Defined in Network.AWS.Greengrass.CreateDeviceDefinition

NFData CreateDeviceDefinition Source # 
Instance details

Defined in Network.AWS.Greengrass.CreateDeviceDefinition

Methods

rnf :: CreateDeviceDefinition -> () #

type Rep CreateDeviceDefinition Source # 
Instance details

Defined in Network.AWS.Greengrass.CreateDeviceDefinition

type Rep CreateDeviceDefinition = D1 (MetaData "CreateDeviceDefinition" "Network.AWS.Greengrass.CreateDeviceDefinition" "amazonka-greengrass-1.6.1-8Yb8rCOrAv2821KEQdBGt6" False) (C1 (MetaCons "CreateDeviceDefinition'" PrefixI True) (S1 (MetaSel (Just "_cddAmznClientToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_cddInitialVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DeviceDefinitionVersion)) :*: S1 (MetaSel (Just "_cddName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))
type Rs CreateDeviceDefinition Source # 
Instance details

Defined in Network.AWS.Greengrass.CreateDeviceDefinition

Request Lenses

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

A client token used to correlate requests and responses.

cddInitialVersion :: Lens' CreateDeviceDefinition (Maybe DeviceDefinitionVersion) Source #

Information about the initial version of the device definition.

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

The 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 # 
Instance details

Defined in Network.AWS.Greengrass.CreateDeviceDefinition

Data CreateDeviceDefinitionResponse Source # 
Instance details

Defined in Network.AWS.Greengrass.CreateDeviceDefinition

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 # 
Instance details

Defined in Network.AWS.Greengrass.CreateDeviceDefinition

Show CreateDeviceDefinitionResponse Source # 
Instance details

Defined in Network.AWS.Greengrass.CreateDeviceDefinition

Generic CreateDeviceDefinitionResponse Source # 
Instance details

Defined in Network.AWS.Greengrass.CreateDeviceDefinition

Associated Types

type Rep CreateDeviceDefinitionResponse :: Type -> Type #

NFData CreateDeviceDefinitionResponse Source # 
Instance details

Defined in Network.AWS.Greengrass.CreateDeviceDefinition

type Rep CreateDeviceDefinitionResponse Source # 
Instance details

Defined in Network.AWS.Greengrass.CreateDeviceDefinition

type Rep CreateDeviceDefinitionResponse = D1 (MetaData "CreateDeviceDefinitionResponse" "Network.AWS.Greengrass.CreateDeviceDefinition" "amazonka-greengrass-1.6.1-8Yb8rCOrAv2821KEQdBGt6" False) (C1 (MetaCons "CreateDeviceDefinitionResponse'" PrefixI True) (((S1 (MetaSel (Just "_cddrsLatestVersionARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cddrsARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_cddrsName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cddrsCreationTimestamp") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_cddrsId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cddrsLatestVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_cddrsLastUpdatedTimestamp") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cddrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

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

The ARN of the latest version of the definition.

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

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

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

The latest version of the definition.

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

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