{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.IoTRoboRunner.UpdateDestination
(
UpdateDestination (..),
newUpdateDestination,
updateDestination_additionalFixedProperties,
updateDestination_name,
updateDestination_state,
updateDestination_id,
UpdateDestinationResponse (..),
newUpdateDestinationResponse,
updateDestinationResponse_additionalFixedProperties,
updateDestinationResponse_httpStatus,
updateDestinationResponse_arn,
updateDestinationResponse_id,
updateDestinationResponse_name,
updateDestinationResponse_updatedAt,
updateDestinationResponse_state,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.IoTRoboRunner.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data UpdateDestination = UpdateDestination'
{ UpdateDestination -> Maybe Text
additionalFixedProperties :: Prelude.Maybe Prelude.Text,
UpdateDestination -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
UpdateDestination -> Maybe DestinationState
state :: Prelude.Maybe DestinationState,
UpdateDestination -> Text
id :: Prelude.Text
}
deriving (UpdateDestination -> UpdateDestination -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateDestination -> UpdateDestination -> Bool
$c/= :: UpdateDestination -> UpdateDestination -> Bool
== :: UpdateDestination -> UpdateDestination -> Bool
$c== :: UpdateDestination -> UpdateDestination -> Bool
Prelude.Eq, ReadPrec [UpdateDestination]
ReadPrec UpdateDestination
Int -> ReadS UpdateDestination
ReadS [UpdateDestination]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateDestination]
$creadListPrec :: ReadPrec [UpdateDestination]
readPrec :: ReadPrec UpdateDestination
$creadPrec :: ReadPrec UpdateDestination
readList :: ReadS [UpdateDestination]
$creadList :: ReadS [UpdateDestination]
readsPrec :: Int -> ReadS UpdateDestination
$creadsPrec :: Int -> ReadS UpdateDestination
Prelude.Read, Int -> UpdateDestination -> ShowS
[UpdateDestination] -> ShowS
UpdateDestination -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateDestination] -> ShowS
$cshowList :: [UpdateDestination] -> ShowS
show :: UpdateDestination -> String
$cshow :: UpdateDestination -> String
showsPrec :: Int -> UpdateDestination -> ShowS
$cshowsPrec :: Int -> UpdateDestination -> ShowS
Prelude.Show, forall x. Rep UpdateDestination x -> UpdateDestination
forall x. UpdateDestination -> Rep UpdateDestination x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateDestination x -> UpdateDestination
$cfrom :: forall x. UpdateDestination -> Rep UpdateDestination x
Prelude.Generic)
newUpdateDestination ::
Prelude.Text ->
UpdateDestination
newUpdateDestination :: Text -> UpdateDestination
newUpdateDestination Text
pId_ =
UpdateDestination'
{ $sel:additionalFixedProperties:UpdateDestination' :: Maybe Text
additionalFixedProperties =
forall a. Maybe a
Prelude.Nothing,
$sel:name:UpdateDestination' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
$sel:state:UpdateDestination' :: Maybe DestinationState
state = forall a. Maybe a
Prelude.Nothing,
$sel:id:UpdateDestination' :: Text
id = Text
pId_
}
updateDestination_additionalFixedProperties :: Lens.Lens' UpdateDestination (Prelude.Maybe Prelude.Text)
updateDestination_additionalFixedProperties :: Lens' UpdateDestination (Maybe Text)
updateDestination_additionalFixedProperties = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateDestination' {Maybe Text
additionalFixedProperties :: Maybe Text
$sel:additionalFixedProperties:UpdateDestination' :: UpdateDestination -> Maybe Text
additionalFixedProperties} -> Maybe Text
additionalFixedProperties) (\s :: UpdateDestination
s@UpdateDestination' {} Maybe Text
a -> UpdateDestination
s {$sel:additionalFixedProperties:UpdateDestination' :: Maybe Text
additionalFixedProperties = Maybe Text
a} :: UpdateDestination)
updateDestination_name :: Lens.Lens' UpdateDestination (Prelude.Maybe Prelude.Text)
updateDestination_name :: Lens' UpdateDestination (Maybe Text)
updateDestination_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateDestination' {Maybe Text
name :: Maybe Text
$sel:name:UpdateDestination' :: UpdateDestination -> Maybe Text
name} -> Maybe Text
name) (\s :: UpdateDestination
s@UpdateDestination' {} Maybe Text
a -> UpdateDestination
s {$sel:name:UpdateDestination' :: Maybe Text
name = Maybe Text
a} :: UpdateDestination)
updateDestination_state :: Lens.Lens' UpdateDestination (Prelude.Maybe DestinationState)
updateDestination_state :: Lens' UpdateDestination (Maybe DestinationState)
updateDestination_state = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateDestination' {Maybe DestinationState
state :: Maybe DestinationState
$sel:state:UpdateDestination' :: UpdateDestination -> Maybe DestinationState
state} -> Maybe DestinationState
state) (\s :: UpdateDestination
s@UpdateDestination' {} Maybe DestinationState
a -> UpdateDestination
s {$sel:state:UpdateDestination' :: Maybe DestinationState
state = Maybe DestinationState
a} :: UpdateDestination)
updateDestination_id :: Lens.Lens' UpdateDestination Prelude.Text
updateDestination_id :: Lens' UpdateDestination Text
updateDestination_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateDestination' {Text
id :: Text
$sel:id:UpdateDestination' :: UpdateDestination -> Text
id} -> Text
id) (\s :: UpdateDestination
s@UpdateDestination' {} Text
a -> UpdateDestination
s {$sel:id:UpdateDestination' :: Text
id = Text
a} :: UpdateDestination)
instance Core.AWSRequest UpdateDestination where
type
AWSResponse UpdateDestination =
UpdateDestinationResponse
request :: (Service -> Service)
-> UpdateDestination -> Request UpdateDestination
request Service -> Service
overrides =
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy UpdateDestination
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateDestination)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Int
-> Text
-> Text
-> Text
-> POSIX
-> DestinationState
-> UpdateDestinationResponse
UpdateDestinationResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"additionalFixedProperties")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String a
Data..:> Key
"arn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String a
Data..:> Key
"id")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String a
Data..:> Key
"name")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String a
Data..:> Key
"updatedAt")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String a
Data..:> Key
"state")
)
instance Prelude.Hashable UpdateDestination where
hashWithSalt :: Int -> UpdateDestination -> Int
hashWithSalt Int
_salt UpdateDestination' {Maybe Text
Maybe DestinationState
Text
id :: Text
state :: Maybe DestinationState
name :: Maybe Text
additionalFixedProperties :: Maybe Text
$sel:id:UpdateDestination' :: UpdateDestination -> Text
$sel:state:UpdateDestination' :: UpdateDestination -> Maybe DestinationState
$sel:name:UpdateDestination' :: UpdateDestination -> Maybe Text
$sel:additionalFixedProperties:UpdateDestination' :: UpdateDestination -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
additionalFixedProperties
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DestinationState
state
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
id
instance Prelude.NFData UpdateDestination where
rnf :: UpdateDestination -> ()
rnf UpdateDestination' {Maybe Text
Maybe DestinationState
Text
id :: Text
state :: Maybe DestinationState
name :: Maybe Text
additionalFixedProperties :: Maybe Text
$sel:id:UpdateDestination' :: UpdateDestination -> Text
$sel:state:UpdateDestination' :: UpdateDestination -> Maybe DestinationState
$sel:name:UpdateDestination' :: UpdateDestination -> Maybe Text
$sel:additionalFixedProperties:UpdateDestination' :: UpdateDestination -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
additionalFixedProperties
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DestinationState
state
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
id
instance Data.ToHeaders UpdateDestination where
toHeaders :: UpdateDestination -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToJSON UpdateDestination where
toJSON :: UpdateDestination -> Value
toJSON UpdateDestination' {Maybe Text
Maybe DestinationState
Text
id :: Text
state :: Maybe DestinationState
name :: Maybe Text
additionalFixedProperties :: Maybe Text
$sel:id:UpdateDestination' :: UpdateDestination -> Text
$sel:state:UpdateDestination' :: UpdateDestination -> Maybe DestinationState
$sel:name:UpdateDestination' :: UpdateDestination -> Maybe Text
$sel:additionalFixedProperties:UpdateDestination' :: UpdateDestination -> Maybe Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"additionalFixedProperties" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
additionalFixedProperties,
(Key
"name" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
name,
(Key
"state" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DestinationState
state,
forall a. a -> Maybe a
Prelude.Just (Key
"id" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
id)
]
)
instance Data.ToPath UpdateDestination where
toPath :: UpdateDestination -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/updateDestination"
instance Data.ToQuery UpdateDestination where
toQuery :: UpdateDestination -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data UpdateDestinationResponse = UpdateDestinationResponse'
{ UpdateDestinationResponse -> Maybe Text
additionalFixedProperties :: Prelude.Maybe Prelude.Text,
UpdateDestinationResponse -> Int
httpStatus :: Prelude.Int,
UpdateDestinationResponse -> Text
arn :: Prelude.Text,
UpdateDestinationResponse -> Text
id :: Prelude.Text,
UpdateDestinationResponse -> Text
name :: Prelude.Text,
UpdateDestinationResponse -> POSIX
updatedAt :: Data.POSIX,
UpdateDestinationResponse -> DestinationState
state :: DestinationState
}
deriving (UpdateDestinationResponse -> UpdateDestinationResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateDestinationResponse -> UpdateDestinationResponse -> Bool
$c/= :: UpdateDestinationResponse -> UpdateDestinationResponse -> Bool
== :: UpdateDestinationResponse -> UpdateDestinationResponse -> Bool
$c== :: UpdateDestinationResponse -> UpdateDestinationResponse -> Bool
Prelude.Eq, ReadPrec [UpdateDestinationResponse]
ReadPrec UpdateDestinationResponse
Int -> ReadS UpdateDestinationResponse
ReadS [UpdateDestinationResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateDestinationResponse]
$creadListPrec :: ReadPrec [UpdateDestinationResponse]
readPrec :: ReadPrec UpdateDestinationResponse
$creadPrec :: ReadPrec UpdateDestinationResponse
readList :: ReadS [UpdateDestinationResponse]
$creadList :: ReadS [UpdateDestinationResponse]
readsPrec :: Int -> ReadS UpdateDestinationResponse
$creadsPrec :: Int -> ReadS UpdateDestinationResponse
Prelude.Read, Int -> UpdateDestinationResponse -> ShowS
[UpdateDestinationResponse] -> ShowS
UpdateDestinationResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateDestinationResponse] -> ShowS
$cshowList :: [UpdateDestinationResponse] -> ShowS
show :: UpdateDestinationResponse -> String
$cshow :: UpdateDestinationResponse -> String
showsPrec :: Int -> UpdateDestinationResponse -> ShowS
$cshowsPrec :: Int -> UpdateDestinationResponse -> ShowS
Prelude.Show, forall x.
Rep UpdateDestinationResponse x -> UpdateDestinationResponse
forall x.
UpdateDestinationResponse -> Rep UpdateDestinationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateDestinationResponse x -> UpdateDestinationResponse
$cfrom :: forall x.
UpdateDestinationResponse -> Rep UpdateDestinationResponse x
Prelude.Generic)
newUpdateDestinationResponse ::
Prelude.Int ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.UTCTime ->
DestinationState ->
UpdateDestinationResponse
newUpdateDestinationResponse :: Int
-> Text
-> Text
-> Text
-> UTCTime
-> DestinationState
-> UpdateDestinationResponse
newUpdateDestinationResponse
Int
pHttpStatus_
Text
pArn_
Text
pId_
Text
pName_
UTCTime
pUpdatedAt_
DestinationState
pState_ =
UpdateDestinationResponse'
{ $sel:additionalFixedProperties:UpdateDestinationResponse' :: Maybe Text
additionalFixedProperties =
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateDestinationResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:arn:UpdateDestinationResponse' :: Text
arn = Text
pArn_,
$sel:id:UpdateDestinationResponse' :: Text
id = Text
pId_,
$sel:name:UpdateDestinationResponse' :: Text
name = Text
pName_,
$sel:updatedAt:UpdateDestinationResponse' :: POSIX
updatedAt = forall (a :: Format). Iso' (Time a) UTCTime
Data._Time forall t b. AReview t b -> b -> t
Lens.# UTCTime
pUpdatedAt_,
$sel:state:UpdateDestinationResponse' :: DestinationState
state = DestinationState
pState_
}
updateDestinationResponse_additionalFixedProperties :: Lens.Lens' UpdateDestinationResponse (Prelude.Maybe Prelude.Text)
updateDestinationResponse_additionalFixedProperties :: Lens' UpdateDestinationResponse (Maybe Text)
updateDestinationResponse_additionalFixedProperties = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateDestinationResponse' {Maybe Text
additionalFixedProperties :: Maybe Text
$sel:additionalFixedProperties:UpdateDestinationResponse' :: UpdateDestinationResponse -> Maybe Text
additionalFixedProperties} -> Maybe Text
additionalFixedProperties) (\s :: UpdateDestinationResponse
s@UpdateDestinationResponse' {} Maybe Text
a -> UpdateDestinationResponse
s {$sel:additionalFixedProperties:UpdateDestinationResponse' :: Maybe Text
additionalFixedProperties = Maybe Text
a} :: UpdateDestinationResponse)
updateDestinationResponse_httpStatus :: Lens.Lens' UpdateDestinationResponse Prelude.Int
updateDestinationResponse_httpStatus :: Lens' UpdateDestinationResponse Int
updateDestinationResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateDestinationResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateDestinationResponse' :: UpdateDestinationResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateDestinationResponse
s@UpdateDestinationResponse' {} Int
a -> UpdateDestinationResponse
s {$sel:httpStatus:UpdateDestinationResponse' :: Int
httpStatus = Int
a} :: UpdateDestinationResponse)
updateDestinationResponse_arn :: Lens.Lens' UpdateDestinationResponse Prelude.Text
updateDestinationResponse_arn :: Lens' UpdateDestinationResponse Text
updateDestinationResponse_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateDestinationResponse' {Text
arn :: Text
$sel:arn:UpdateDestinationResponse' :: UpdateDestinationResponse -> Text
arn} -> Text
arn) (\s :: UpdateDestinationResponse
s@UpdateDestinationResponse' {} Text
a -> UpdateDestinationResponse
s {$sel:arn:UpdateDestinationResponse' :: Text
arn = Text
a} :: UpdateDestinationResponse)
updateDestinationResponse_id :: Lens.Lens' UpdateDestinationResponse Prelude.Text
updateDestinationResponse_id :: Lens' UpdateDestinationResponse Text
updateDestinationResponse_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateDestinationResponse' {Text
id :: Text
$sel:id:UpdateDestinationResponse' :: UpdateDestinationResponse -> Text
id} -> Text
id) (\s :: UpdateDestinationResponse
s@UpdateDestinationResponse' {} Text
a -> UpdateDestinationResponse
s {$sel:id:UpdateDestinationResponse' :: Text
id = Text
a} :: UpdateDestinationResponse)
updateDestinationResponse_name :: Lens.Lens' UpdateDestinationResponse Prelude.Text
updateDestinationResponse_name :: Lens' UpdateDestinationResponse Text
updateDestinationResponse_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateDestinationResponse' {Text
name :: Text
$sel:name:UpdateDestinationResponse' :: UpdateDestinationResponse -> Text
name} -> Text
name) (\s :: UpdateDestinationResponse
s@UpdateDestinationResponse' {} Text
a -> UpdateDestinationResponse
s {$sel:name:UpdateDestinationResponse' :: Text
name = Text
a} :: UpdateDestinationResponse)
updateDestinationResponse_updatedAt :: Lens.Lens' UpdateDestinationResponse Prelude.UTCTime
updateDestinationResponse_updatedAt :: Lens' UpdateDestinationResponse UTCTime
updateDestinationResponse_updatedAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateDestinationResponse' {POSIX
updatedAt :: POSIX
$sel:updatedAt:UpdateDestinationResponse' :: UpdateDestinationResponse -> POSIX
updatedAt} -> POSIX
updatedAt) (\s :: UpdateDestinationResponse
s@UpdateDestinationResponse' {} POSIX
a -> UpdateDestinationResponse
s {$sel:updatedAt:UpdateDestinationResponse' :: POSIX
updatedAt = POSIX
a} :: UpdateDestinationResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
updateDestinationResponse_state :: Lens.Lens' UpdateDestinationResponse DestinationState
updateDestinationResponse_state :: Lens' UpdateDestinationResponse DestinationState
updateDestinationResponse_state = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateDestinationResponse' {DestinationState
state :: DestinationState
$sel:state:UpdateDestinationResponse' :: UpdateDestinationResponse -> DestinationState
state} -> DestinationState
state) (\s :: UpdateDestinationResponse
s@UpdateDestinationResponse' {} DestinationState
a -> UpdateDestinationResponse
s {$sel:state:UpdateDestinationResponse' :: DestinationState
state = DestinationState
a} :: UpdateDestinationResponse)
instance Prelude.NFData UpdateDestinationResponse where
rnf :: UpdateDestinationResponse -> ()
rnf UpdateDestinationResponse' {Int
Maybe Text
Text
POSIX
DestinationState
state :: DestinationState
updatedAt :: POSIX
name :: Text
id :: Text
arn :: Text
httpStatus :: Int
additionalFixedProperties :: Maybe Text
$sel:state:UpdateDestinationResponse' :: UpdateDestinationResponse -> DestinationState
$sel:updatedAt:UpdateDestinationResponse' :: UpdateDestinationResponse -> POSIX
$sel:name:UpdateDestinationResponse' :: UpdateDestinationResponse -> Text
$sel:id:UpdateDestinationResponse' :: UpdateDestinationResponse -> Text
$sel:arn:UpdateDestinationResponse' :: UpdateDestinationResponse -> Text
$sel:httpStatus:UpdateDestinationResponse' :: UpdateDestinationResponse -> Int
$sel:additionalFixedProperties:UpdateDestinationResponse' :: UpdateDestinationResponse -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
additionalFixedProperties
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
arn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
id
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
name
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf POSIX
updatedAt
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf DestinationState
state