{-# 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.EKS.UpdateAddon
(
UpdateAddon (..),
newUpdateAddon,
updateAddon_addonVersion,
updateAddon_clientRequestToken,
updateAddon_configurationValues,
updateAddon_resolveConflicts,
updateAddon_serviceAccountRoleArn,
updateAddon_clusterName,
updateAddon_addonName,
UpdateAddonResponse (..),
newUpdateAddonResponse,
updateAddonResponse_update,
updateAddonResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.EKS.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data UpdateAddon = UpdateAddon'
{
UpdateAddon -> Maybe Text
addonVersion :: Prelude.Maybe Prelude.Text,
UpdateAddon -> Maybe Text
clientRequestToken :: Prelude.Maybe Prelude.Text,
UpdateAddon -> Maybe Text
configurationValues :: Prelude.Maybe Prelude.Text,
UpdateAddon -> Maybe ResolveConflicts
resolveConflicts :: Prelude.Maybe ResolveConflicts,
UpdateAddon -> Maybe Text
serviceAccountRoleArn :: Prelude.Maybe Prelude.Text,
UpdateAddon -> Text
clusterName :: Prelude.Text,
UpdateAddon -> Text
addonName :: Prelude.Text
}
deriving (UpdateAddon -> UpdateAddon -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateAddon -> UpdateAddon -> Bool
$c/= :: UpdateAddon -> UpdateAddon -> Bool
== :: UpdateAddon -> UpdateAddon -> Bool
$c== :: UpdateAddon -> UpdateAddon -> Bool
Prelude.Eq, ReadPrec [UpdateAddon]
ReadPrec UpdateAddon
Int -> ReadS UpdateAddon
ReadS [UpdateAddon]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateAddon]
$creadListPrec :: ReadPrec [UpdateAddon]
readPrec :: ReadPrec UpdateAddon
$creadPrec :: ReadPrec UpdateAddon
readList :: ReadS [UpdateAddon]
$creadList :: ReadS [UpdateAddon]
readsPrec :: Int -> ReadS UpdateAddon
$creadsPrec :: Int -> ReadS UpdateAddon
Prelude.Read, Int -> UpdateAddon -> ShowS
[UpdateAddon] -> ShowS
UpdateAddon -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateAddon] -> ShowS
$cshowList :: [UpdateAddon] -> ShowS
show :: UpdateAddon -> String
$cshow :: UpdateAddon -> String
showsPrec :: Int -> UpdateAddon -> ShowS
$cshowsPrec :: Int -> UpdateAddon -> ShowS
Prelude.Show, forall x. Rep UpdateAddon x -> UpdateAddon
forall x. UpdateAddon -> Rep UpdateAddon x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateAddon x -> UpdateAddon
$cfrom :: forall x. UpdateAddon -> Rep UpdateAddon x
Prelude.Generic)
newUpdateAddon ::
Prelude.Text ->
Prelude.Text ->
UpdateAddon
newUpdateAddon :: Text -> Text -> UpdateAddon
newUpdateAddon Text
pClusterName_ Text
pAddonName_ =
UpdateAddon'
{ $sel:addonVersion:UpdateAddon' :: Maybe Text
addonVersion = forall a. Maybe a
Prelude.Nothing,
$sel:clientRequestToken:UpdateAddon' :: Maybe Text
clientRequestToken = forall a. Maybe a
Prelude.Nothing,
$sel:configurationValues:UpdateAddon' :: Maybe Text
configurationValues = forall a. Maybe a
Prelude.Nothing,
$sel:resolveConflicts:UpdateAddon' :: Maybe ResolveConflicts
resolveConflicts = forall a. Maybe a
Prelude.Nothing,
$sel:serviceAccountRoleArn:UpdateAddon' :: Maybe Text
serviceAccountRoleArn = forall a. Maybe a
Prelude.Nothing,
$sel:clusterName:UpdateAddon' :: Text
clusterName = Text
pClusterName_,
$sel:addonName:UpdateAddon' :: Text
addonName = Text
pAddonName_
}
updateAddon_addonVersion :: Lens.Lens' UpdateAddon (Prelude.Maybe Prelude.Text)
updateAddon_addonVersion :: Lens' UpdateAddon (Maybe Text)
updateAddon_addonVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAddon' {Maybe Text
addonVersion :: Maybe Text
$sel:addonVersion:UpdateAddon' :: UpdateAddon -> Maybe Text
addonVersion} -> Maybe Text
addonVersion) (\s :: UpdateAddon
s@UpdateAddon' {} Maybe Text
a -> UpdateAddon
s {$sel:addonVersion:UpdateAddon' :: Maybe Text
addonVersion = Maybe Text
a} :: UpdateAddon)
updateAddon_clientRequestToken :: Lens.Lens' UpdateAddon (Prelude.Maybe Prelude.Text)
updateAddon_clientRequestToken :: Lens' UpdateAddon (Maybe Text)
updateAddon_clientRequestToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAddon' {Maybe Text
clientRequestToken :: Maybe Text
$sel:clientRequestToken:UpdateAddon' :: UpdateAddon -> Maybe Text
clientRequestToken} -> Maybe Text
clientRequestToken) (\s :: UpdateAddon
s@UpdateAddon' {} Maybe Text
a -> UpdateAddon
s {$sel:clientRequestToken:UpdateAddon' :: Maybe Text
clientRequestToken = Maybe Text
a} :: UpdateAddon)
updateAddon_configurationValues :: Lens.Lens' UpdateAddon (Prelude.Maybe Prelude.Text)
updateAddon_configurationValues :: Lens' UpdateAddon (Maybe Text)
updateAddon_configurationValues = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAddon' {Maybe Text
configurationValues :: Maybe Text
$sel:configurationValues:UpdateAddon' :: UpdateAddon -> Maybe Text
configurationValues} -> Maybe Text
configurationValues) (\s :: UpdateAddon
s@UpdateAddon' {} Maybe Text
a -> UpdateAddon
s {$sel:configurationValues:UpdateAddon' :: Maybe Text
configurationValues = Maybe Text
a} :: UpdateAddon)
updateAddon_resolveConflicts :: Lens.Lens' UpdateAddon (Prelude.Maybe ResolveConflicts)
updateAddon_resolveConflicts :: Lens' UpdateAddon (Maybe ResolveConflicts)
updateAddon_resolveConflicts = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAddon' {Maybe ResolveConflicts
resolveConflicts :: Maybe ResolveConflicts
$sel:resolveConflicts:UpdateAddon' :: UpdateAddon -> Maybe ResolveConflicts
resolveConflicts} -> Maybe ResolveConflicts
resolveConflicts) (\s :: UpdateAddon
s@UpdateAddon' {} Maybe ResolveConflicts
a -> UpdateAddon
s {$sel:resolveConflicts:UpdateAddon' :: Maybe ResolveConflicts
resolveConflicts = Maybe ResolveConflicts
a} :: UpdateAddon)
updateAddon_serviceAccountRoleArn :: Lens.Lens' UpdateAddon (Prelude.Maybe Prelude.Text)
updateAddon_serviceAccountRoleArn :: Lens' UpdateAddon (Maybe Text)
updateAddon_serviceAccountRoleArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAddon' {Maybe Text
serviceAccountRoleArn :: Maybe Text
$sel:serviceAccountRoleArn:UpdateAddon' :: UpdateAddon -> Maybe Text
serviceAccountRoleArn} -> Maybe Text
serviceAccountRoleArn) (\s :: UpdateAddon
s@UpdateAddon' {} Maybe Text
a -> UpdateAddon
s {$sel:serviceAccountRoleArn:UpdateAddon' :: Maybe Text
serviceAccountRoleArn = Maybe Text
a} :: UpdateAddon)
updateAddon_clusterName :: Lens.Lens' UpdateAddon Prelude.Text
updateAddon_clusterName :: Lens' UpdateAddon Text
updateAddon_clusterName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAddon' {Text
clusterName :: Text
$sel:clusterName:UpdateAddon' :: UpdateAddon -> Text
clusterName} -> Text
clusterName) (\s :: UpdateAddon
s@UpdateAddon' {} Text
a -> UpdateAddon
s {$sel:clusterName:UpdateAddon' :: Text
clusterName = Text
a} :: UpdateAddon)
updateAddon_addonName :: Lens.Lens' UpdateAddon Prelude.Text
updateAddon_addonName :: Lens' UpdateAddon Text
updateAddon_addonName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAddon' {Text
addonName :: Text
$sel:addonName:UpdateAddon' :: UpdateAddon -> Text
addonName} -> Text
addonName) (\s :: UpdateAddon
s@UpdateAddon' {} Text
a -> UpdateAddon
s {$sel:addonName:UpdateAddon' :: Text
addonName = Text
a} :: UpdateAddon)
instance Core.AWSRequest UpdateAddon where
type AWSResponse UpdateAddon = UpdateAddonResponse
request :: (Service -> Service) -> UpdateAddon -> Request UpdateAddon
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 UpdateAddon
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateAddon)))
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 Update -> Int -> UpdateAddonResponse
UpdateAddonResponse'
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
"update")
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))
)
instance Prelude.Hashable UpdateAddon where
hashWithSalt :: Int -> UpdateAddon -> Int
hashWithSalt Int
_salt UpdateAddon' {Maybe Text
Maybe ResolveConflicts
Text
addonName :: Text
clusterName :: Text
serviceAccountRoleArn :: Maybe Text
resolveConflicts :: Maybe ResolveConflicts
configurationValues :: Maybe Text
clientRequestToken :: Maybe Text
addonVersion :: Maybe Text
$sel:addonName:UpdateAddon' :: UpdateAddon -> Text
$sel:clusterName:UpdateAddon' :: UpdateAddon -> Text
$sel:serviceAccountRoleArn:UpdateAddon' :: UpdateAddon -> Maybe Text
$sel:resolveConflicts:UpdateAddon' :: UpdateAddon -> Maybe ResolveConflicts
$sel:configurationValues:UpdateAddon' :: UpdateAddon -> Maybe Text
$sel:clientRequestToken:UpdateAddon' :: UpdateAddon -> Maybe Text
$sel:addonVersion:UpdateAddon' :: UpdateAddon -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
addonVersion
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
clientRequestToken
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
configurationValues
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ResolveConflicts
resolveConflicts
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
serviceAccountRoleArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
clusterName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
addonName
instance Prelude.NFData UpdateAddon where
rnf :: UpdateAddon -> ()
rnf UpdateAddon' {Maybe Text
Maybe ResolveConflicts
Text
addonName :: Text
clusterName :: Text
serviceAccountRoleArn :: Maybe Text
resolveConflicts :: Maybe ResolveConflicts
configurationValues :: Maybe Text
clientRequestToken :: Maybe Text
addonVersion :: Maybe Text
$sel:addonName:UpdateAddon' :: UpdateAddon -> Text
$sel:clusterName:UpdateAddon' :: UpdateAddon -> Text
$sel:serviceAccountRoleArn:UpdateAddon' :: UpdateAddon -> Maybe Text
$sel:resolveConflicts:UpdateAddon' :: UpdateAddon -> Maybe ResolveConflicts
$sel:configurationValues:UpdateAddon' :: UpdateAddon -> Maybe Text
$sel:clientRequestToken:UpdateAddon' :: UpdateAddon -> Maybe Text
$sel:addonVersion:UpdateAddon' :: UpdateAddon -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
addonVersion
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
clientRequestToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
configurationValues
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ResolveConflicts
resolveConflicts
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
serviceAccountRoleArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
clusterName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
addonName
instance Data.ToHeaders UpdateAddon where
toHeaders :: UpdateAddon -> 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 UpdateAddon where
toJSON :: UpdateAddon -> Value
toJSON UpdateAddon' {Maybe Text
Maybe ResolveConflicts
Text
addonName :: Text
clusterName :: Text
serviceAccountRoleArn :: Maybe Text
resolveConflicts :: Maybe ResolveConflicts
configurationValues :: Maybe Text
clientRequestToken :: Maybe Text
addonVersion :: Maybe Text
$sel:addonName:UpdateAddon' :: UpdateAddon -> Text
$sel:clusterName:UpdateAddon' :: UpdateAddon -> Text
$sel:serviceAccountRoleArn:UpdateAddon' :: UpdateAddon -> Maybe Text
$sel:resolveConflicts:UpdateAddon' :: UpdateAddon -> Maybe ResolveConflicts
$sel:configurationValues:UpdateAddon' :: UpdateAddon -> Maybe Text
$sel:clientRequestToken:UpdateAddon' :: UpdateAddon -> Maybe Text
$sel:addonVersion:UpdateAddon' :: UpdateAddon -> Maybe Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"addonVersion" 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
addonVersion,
(Key
"clientRequestToken" 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
clientRequestToken,
(Key
"configurationValues" 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
configurationValues,
(Key
"resolveConflicts" 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 ResolveConflicts
resolveConflicts,
(Key
"serviceAccountRoleArn" 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
serviceAccountRoleArn
]
)
instance Data.ToPath UpdateAddon where
toPath :: UpdateAddon -> ByteString
toPath UpdateAddon' {Maybe Text
Maybe ResolveConflicts
Text
addonName :: Text
clusterName :: Text
serviceAccountRoleArn :: Maybe Text
resolveConflicts :: Maybe ResolveConflicts
configurationValues :: Maybe Text
clientRequestToken :: Maybe Text
addonVersion :: Maybe Text
$sel:addonName:UpdateAddon' :: UpdateAddon -> Text
$sel:clusterName:UpdateAddon' :: UpdateAddon -> Text
$sel:serviceAccountRoleArn:UpdateAddon' :: UpdateAddon -> Maybe Text
$sel:resolveConflicts:UpdateAddon' :: UpdateAddon -> Maybe ResolveConflicts
$sel:configurationValues:UpdateAddon' :: UpdateAddon -> Maybe Text
$sel:clientRequestToken:UpdateAddon' :: UpdateAddon -> Maybe Text
$sel:addonVersion:UpdateAddon' :: UpdateAddon -> Maybe Text
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/clusters/",
forall a. ToByteString a => a -> ByteString
Data.toBS Text
clusterName,
ByteString
"/addons/",
forall a. ToByteString a => a -> ByteString
Data.toBS Text
addonName,
ByteString
"/update"
]
instance Data.ToQuery UpdateAddon where
toQuery :: UpdateAddon -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data UpdateAddonResponse = UpdateAddonResponse'
{ UpdateAddonResponse -> Maybe Update
update :: Prelude.Maybe Update,
UpdateAddonResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateAddonResponse -> UpdateAddonResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateAddonResponse -> UpdateAddonResponse -> Bool
$c/= :: UpdateAddonResponse -> UpdateAddonResponse -> Bool
== :: UpdateAddonResponse -> UpdateAddonResponse -> Bool
$c== :: UpdateAddonResponse -> UpdateAddonResponse -> Bool
Prelude.Eq, ReadPrec [UpdateAddonResponse]
ReadPrec UpdateAddonResponse
Int -> ReadS UpdateAddonResponse
ReadS [UpdateAddonResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateAddonResponse]
$creadListPrec :: ReadPrec [UpdateAddonResponse]
readPrec :: ReadPrec UpdateAddonResponse
$creadPrec :: ReadPrec UpdateAddonResponse
readList :: ReadS [UpdateAddonResponse]
$creadList :: ReadS [UpdateAddonResponse]
readsPrec :: Int -> ReadS UpdateAddonResponse
$creadsPrec :: Int -> ReadS UpdateAddonResponse
Prelude.Read, Int -> UpdateAddonResponse -> ShowS
[UpdateAddonResponse] -> ShowS
UpdateAddonResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateAddonResponse] -> ShowS
$cshowList :: [UpdateAddonResponse] -> ShowS
show :: UpdateAddonResponse -> String
$cshow :: UpdateAddonResponse -> String
showsPrec :: Int -> UpdateAddonResponse -> ShowS
$cshowsPrec :: Int -> UpdateAddonResponse -> ShowS
Prelude.Show, forall x. Rep UpdateAddonResponse x -> UpdateAddonResponse
forall x. UpdateAddonResponse -> Rep UpdateAddonResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateAddonResponse x -> UpdateAddonResponse
$cfrom :: forall x. UpdateAddonResponse -> Rep UpdateAddonResponse x
Prelude.Generic)
newUpdateAddonResponse ::
Prelude.Int ->
UpdateAddonResponse
newUpdateAddonResponse :: Int -> UpdateAddonResponse
newUpdateAddonResponse Int
pHttpStatus_ =
UpdateAddonResponse'
{ $sel:update:UpdateAddonResponse' :: Maybe Update
update = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateAddonResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateAddonResponse_update :: Lens.Lens' UpdateAddonResponse (Prelude.Maybe Update)
updateAddonResponse_update :: Lens' UpdateAddonResponse (Maybe Update)
updateAddonResponse_update = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAddonResponse' {Maybe Update
update :: Maybe Update
$sel:update:UpdateAddonResponse' :: UpdateAddonResponse -> Maybe Update
update} -> Maybe Update
update) (\s :: UpdateAddonResponse
s@UpdateAddonResponse' {} Maybe Update
a -> UpdateAddonResponse
s {$sel:update:UpdateAddonResponse' :: Maybe Update
update = Maybe Update
a} :: UpdateAddonResponse)
updateAddonResponse_httpStatus :: Lens.Lens' UpdateAddonResponse Prelude.Int
updateAddonResponse_httpStatus :: Lens' UpdateAddonResponse Int
updateAddonResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAddonResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateAddonResponse' :: UpdateAddonResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateAddonResponse
s@UpdateAddonResponse' {} Int
a -> UpdateAddonResponse
s {$sel:httpStatus:UpdateAddonResponse' :: Int
httpStatus = Int
a} :: UpdateAddonResponse)
instance Prelude.NFData UpdateAddonResponse where
rnf :: UpdateAddonResponse -> ()
rnf UpdateAddonResponse' {Int
Maybe Update
httpStatus :: Int
update :: Maybe Update
$sel:httpStatus:UpdateAddonResponse' :: UpdateAddonResponse -> Int
$sel:update:UpdateAddonResponse' :: UpdateAddonResponse -> Maybe Update
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Update
update
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus