amazonka-iot-1.6.1: Amazon IoT 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.IoT.UpdateThing

Contents

Description

Updates the data for a thing.

Synopsis

Creating a Request

updateThing #

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

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

  • utRemoveThingType - Remove a thing type association. If true , the association is removed.
  • utThingTypeName - The name of the thing type.
  • utExpectedVersion - The expected version of the thing record in the registry. If the version of the record in the registry does not match the expected version specified in the request, the UpdateThing request is rejected with a VersionConflictException .
  • utAttributePayload - A list of thing attributes, a JSON string containing name-value pairs. For example: {"attributes":{"name1":"value2"}} This data is used to add new attributes or update existing attributes.
  • utThingName - The name of the thing to update.

data UpdateThing #

The input for the UpdateThing operation.

See: updateThing smart constructor.

Instances
Eq UpdateThing # 
Instance details

Defined in Network.AWS.IoT.UpdateThing

Data UpdateThing # 
Instance details

Defined in Network.AWS.IoT.UpdateThing

Methods

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

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

toConstr :: UpdateThing -> Constr #

dataTypeOf :: UpdateThing -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateThing # 
Instance details

Defined in Network.AWS.IoT.UpdateThing

Show UpdateThing # 
Instance details

Defined in Network.AWS.IoT.UpdateThing

Generic UpdateThing # 
Instance details

Defined in Network.AWS.IoT.UpdateThing

Associated Types

type Rep UpdateThing :: Type -> Type #

Hashable UpdateThing # 
Instance details

Defined in Network.AWS.IoT.UpdateThing

ToJSON UpdateThing # 
Instance details

Defined in Network.AWS.IoT.UpdateThing

AWSRequest UpdateThing # 
Instance details

Defined in Network.AWS.IoT.UpdateThing

Associated Types

type Rs UpdateThing :: Type #

ToHeaders UpdateThing # 
Instance details

Defined in Network.AWS.IoT.UpdateThing

Methods

toHeaders :: UpdateThing -> [Header] #

ToPath UpdateThing # 
Instance details

Defined in Network.AWS.IoT.UpdateThing

ToQuery UpdateThing # 
Instance details

Defined in Network.AWS.IoT.UpdateThing

NFData UpdateThing # 
Instance details

Defined in Network.AWS.IoT.UpdateThing

Methods

rnf :: UpdateThing -> () #

type Rep UpdateThing # 
Instance details

Defined in Network.AWS.IoT.UpdateThing

type Rep UpdateThing = D1 (MetaData "UpdateThing" "Network.AWS.IoT.UpdateThing" "amazonka-iot-1.6.1-nGAJeezEdVLHUPuibI4m" False) (C1 (MetaCons "UpdateThing'" PrefixI True) ((S1 (MetaSel (Just "_utRemoveThingType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_utThingTypeName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_utExpectedVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Integer)) :*: (S1 (MetaSel (Just "_utAttributePayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AttributePayload)) :*: S1 (MetaSel (Just "_utThingName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs UpdateThing # 
Instance details

Defined in Network.AWS.IoT.UpdateThing

Request Lenses

utRemoveThingType :: Lens' UpdateThing (Maybe Bool) #

Remove a thing type association. If true , the association is removed.

utThingTypeName :: Lens' UpdateThing (Maybe Text) #

The name of the thing type.

utExpectedVersion :: Lens' UpdateThing (Maybe Integer) #

The expected version of the thing record in the registry. If the version of the record in the registry does not match the expected version specified in the request, the UpdateThing request is rejected with a VersionConflictException .

utAttributePayload :: Lens' UpdateThing (Maybe AttributePayload) #

A list of thing attributes, a JSON string containing name-value pairs. For example: {"attributes":{"name1":"value2"}} This data is used to add new attributes or update existing attributes.

utThingName :: Lens' UpdateThing Text #

The name of the thing to update.

Destructuring the Response

updateThingResponse #

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

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

data UpdateThingResponse #

The output from the UpdateThing operation.

See: updateThingResponse smart constructor.

Instances
Eq UpdateThingResponse # 
Instance details

Defined in Network.AWS.IoT.UpdateThing

Data UpdateThingResponse # 
Instance details

Defined in Network.AWS.IoT.UpdateThing

Methods

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

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

toConstr :: UpdateThingResponse -> Constr #

dataTypeOf :: UpdateThingResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateThingResponse # 
Instance details

Defined in Network.AWS.IoT.UpdateThing

Show UpdateThingResponse # 
Instance details

Defined in Network.AWS.IoT.UpdateThing

Generic UpdateThingResponse # 
Instance details

Defined in Network.AWS.IoT.UpdateThing

Associated Types

type Rep UpdateThingResponse :: Type -> Type #

NFData UpdateThingResponse # 
Instance details

Defined in Network.AWS.IoT.UpdateThing

Methods

rnf :: UpdateThingResponse -> () #

type Rep UpdateThingResponse # 
Instance details

Defined in Network.AWS.IoT.UpdateThing

type Rep UpdateThingResponse = D1 (MetaData "UpdateThingResponse" "Network.AWS.IoT.UpdateThing" "amazonka-iot-1.6.1-nGAJeezEdVLHUPuibI4m" True) (C1 (MetaCons "UpdateThingResponse'" PrefixI True) (S1 (MetaSel (Just "_utrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses

utrsResponseStatus :: Lens' UpdateThingResponse Int #

  • - | The response status code.