{-# 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.MQ.UpdateBroker
(
UpdateBroker (..),
newUpdateBroker,
updateBroker_engineVersion,
updateBroker_autoMinorVersionUpgrade,
updateBroker_securityGroups,
updateBroker_authenticationStrategy,
updateBroker_ldapServerMetadata,
updateBroker_maintenanceWindowStartTime,
updateBroker_logs,
updateBroker_configuration,
updateBroker_hostInstanceType,
updateBroker_brokerId,
UpdateBrokerResponse (..),
newUpdateBrokerResponse,
updateBrokerResponse_engineVersion,
updateBrokerResponse_autoMinorVersionUpgrade,
updateBrokerResponse_securityGroups,
updateBrokerResponse_authenticationStrategy,
updateBrokerResponse_ldapServerMetadata,
updateBrokerResponse_maintenanceWindowStartTime,
updateBrokerResponse_logs,
updateBrokerResponse_configuration,
updateBrokerResponse_brokerId,
updateBrokerResponse_hostInstanceType,
updateBrokerResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MQ.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data UpdateBroker = UpdateBroker'
{
UpdateBroker -> Maybe Text
engineVersion :: Prelude.Maybe Prelude.Text,
UpdateBroker -> Maybe Bool
autoMinorVersionUpgrade :: Prelude.Maybe Prelude.Bool,
UpdateBroker -> Maybe [Text]
securityGroups :: Prelude.Maybe [Prelude.Text],
UpdateBroker -> Maybe AuthenticationStrategy
authenticationStrategy :: Prelude.Maybe AuthenticationStrategy,
UpdateBroker -> Maybe LdapServerMetadataInput
ldapServerMetadata :: Prelude.Maybe LdapServerMetadataInput,
UpdateBroker -> Maybe WeeklyStartTime
maintenanceWindowStartTime :: Prelude.Maybe WeeklyStartTime,
UpdateBroker -> Maybe Logs
logs :: Prelude.Maybe Logs,
UpdateBroker -> Maybe ConfigurationId
configuration :: Prelude.Maybe ConfigurationId,
UpdateBroker -> Maybe Text
hostInstanceType :: Prelude.Maybe Prelude.Text,
UpdateBroker -> Text
brokerId :: Prelude.Text
}
deriving (UpdateBroker -> UpdateBroker -> Bool
(UpdateBroker -> UpdateBroker -> Bool)
-> (UpdateBroker -> UpdateBroker -> Bool) -> Eq UpdateBroker
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateBroker -> UpdateBroker -> Bool
$c/= :: UpdateBroker -> UpdateBroker -> Bool
== :: UpdateBroker -> UpdateBroker -> Bool
$c== :: UpdateBroker -> UpdateBroker -> Bool
Prelude.Eq, ReadPrec [UpdateBroker]
ReadPrec UpdateBroker
Int -> ReadS UpdateBroker
ReadS [UpdateBroker]
(Int -> ReadS UpdateBroker)
-> ReadS [UpdateBroker]
-> ReadPrec UpdateBroker
-> ReadPrec [UpdateBroker]
-> Read UpdateBroker
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateBroker]
$creadListPrec :: ReadPrec [UpdateBroker]
readPrec :: ReadPrec UpdateBroker
$creadPrec :: ReadPrec UpdateBroker
readList :: ReadS [UpdateBroker]
$creadList :: ReadS [UpdateBroker]
readsPrec :: Int -> ReadS UpdateBroker
$creadsPrec :: Int -> ReadS UpdateBroker
Prelude.Read, Int -> UpdateBroker -> ShowS
[UpdateBroker] -> ShowS
UpdateBroker -> String
(Int -> UpdateBroker -> ShowS)
-> (UpdateBroker -> String)
-> ([UpdateBroker] -> ShowS)
-> Show UpdateBroker
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateBroker] -> ShowS
$cshowList :: [UpdateBroker] -> ShowS
show :: UpdateBroker -> String
$cshow :: UpdateBroker -> String
showsPrec :: Int -> UpdateBroker -> ShowS
$cshowsPrec :: Int -> UpdateBroker -> ShowS
Prelude.Show, (forall x. UpdateBroker -> Rep UpdateBroker x)
-> (forall x. Rep UpdateBroker x -> UpdateBroker)
-> Generic UpdateBroker
forall x. Rep UpdateBroker x -> UpdateBroker
forall x. UpdateBroker -> Rep UpdateBroker x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateBroker x -> UpdateBroker
$cfrom :: forall x. UpdateBroker -> Rep UpdateBroker x
Prelude.Generic)
newUpdateBroker ::
Prelude.Text ->
UpdateBroker
newUpdateBroker :: Text -> UpdateBroker
newUpdateBroker Text
pBrokerId_ =
UpdateBroker' :: Maybe Text
-> Maybe Bool
-> Maybe [Text]
-> Maybe AuthenticationStrategy
-> Maybe LdapServerMetadataInput
-> Maybe WeeklyStartTime
-> Maybe Logs
-> Maybe ConfigurationId
-> Maybe Text
-> Text
-> UpdateBroker
UpdateBroker'
{ $sel:engineVersion:UpdateBroker' :: Maybe Text
engineVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:autoMinorVersionUpgrade:UpdateBroker' :: Maybe Bool
autoMinorVersionUpgrade = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:securityGroups:UpdateBroker' :: Maybe [Text]
securityGroups = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:authenticationStrategy:UpdateBroker' :: Maybe AuthenticationStrategy
authenticationStrategy = Maybe AuthenticationStrategy
forall a. Maybe a
Prelude.Nothing,
$sel:ldapServerMetadata:UpdateBroker' :: Maybe LdapServerMetadataInput
ldapServerMetadata = Maybe LdapServerMetadataInput
forall a. Maybe a
Prelude.Nothing,
$sel:maintenanceWindowStartTime:UpdateBroker' :: Maybe WeeklyStartTime
maintenanceWindowStartTime = Maybe WeeklyStartTime
forall a. Maybe a
Prelude.Nothing,
$sel:logs:UpdateBroker' :: Maybe Logs
logs = Maybe Logs
forall a. Maybe a
Prelude.Nothing,
$sel:configuration:UpdateBroker' :: Maybe ConfigurationId
configuration = Maybe ConfigurationId
forall a. Maybe a
Prelude.Nothing,
$sel:hostInstanceType:UpdateBroker' :: Maybe Text
hostInstanceType = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:brokerId:UpdateBroker' :: Text
brokerId = Text
pBrokerId_
}
updateBroker_engineVersion :: Lens.Lens' UpdateBroker (Prelude.Maybe Prelude.Text)
updateBroker_engineVersion :: (Maybe Text -> f (Maybe Text)) -> UpdateBroker -> f UpdateBroker
updateBroker_engineVersion = (UpdateBroker -> Maybe Text)
-> (UpdateBroker -> Maybe Text -> UpdateBroker)
-> Lens UpdateBroker UpdateBroker (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBroker' {Maybe Text
engineVersion :: Maybe Text
$sel:engineVersion:UpdateBroker' :: UpdateBroker -> Maybe Text
engineVersion} -> Maybe Text
engineVersion) (\s :: UpdateBroker
s@UpdateBroker' {} Maybe Text
a -> UpdateBroker
s {$sel:engineVersion:UpdateBroker' :: Maybe Text
engineVersion = Maybe Text
a} :: UpdateBroker)
updateBroker_autoMinorVersionUpgrade :: Lens.Lens' UpdateBroker (Prelude.Maybe Prelude.Bool)
updateBroker_autoMinorVersionUpgrade :: (Maybe Bool -> f (Maybe Bool)) -> UpdateBroker -> f UpdateBroker
updateBroker_autoMinorVersionUpgrade = (UpdateBroker -> Maybe Bool)
-> (UpdateBroker -> Maybe Bool -> UpdateBroker)
-> Lens UpdateBroker UpdateBroker (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBroker' {Maybe Bool
autoMinorVersionUpgrade :: Maybe Bool
$sel:autoMinorVersionUpgrade:UpdateBroker' :: UpdateBroker -> Maybe Bool
autoMinorVersionUpgrade} -> Maybe Bool
autoMinorVersionUpgrade) (\s :: UpdateBroker
s@UpdateBroker' {} Maybe Bool
a -> UpdateBroker
s {$sel:autoMinorVersionUpgrade:UpdateBroker' :: Maybe Bool
autoMinorVersionUpgrade = Maybe Bool
a} :: UpdateBroker)
updateBroker_securityGroups :: Lens.Lens' UpdateBroker (Prelude.Maybe [Prelude.Text])
updateBroker_securityGroups :: (Maybe [Text] -> f (Maybe [Text]))
-> UpdateBroker -> f UpdateBroker
updateBroker_securityGroups = (UpdateBroker -> Maybe [Text])
-> (UpdateBroker -> Maybe [Text] -> UpdateBroker)
-> Lens UpdateBroker UpdateBroker (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBroker' {Maybe [Text]
securityGroups :: Maybe [Text]
$sel:securityGroups:UpdateBroker' :: UpdateBroker -> Maybe [Text]
securityGroups} -> Maybe [Text]
securityGroups) (\s :: UpdateBroker
s@UpdateBroker' {} Maybe [Text]
a -> UpdateBroker
s {$sel:securityGroups:UpdateBroker' :: Maybe [Text]
securityGroups = Maybe [Text]
a} :: UpdateBroker) ((Maybe [Text] -> f (Maybe [Text]))
-> UpdateBroker -> f UpdateBroker)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> UpdateBroker
-> f UpdateBroker
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateBroker_authenticationStrategy :: Lens.Lens' UpdateBroker (Prelude.Maybe AuthenticationStrategy)
updateBroker_authenticationStrategy :: (Maybe AuthenticationStrategy -> f (Maybe AuthenticationStrategy))
-> UpdateBroker -> f UpdateBroker
updateBroker_authenticationStrategy = (UpdateBroker -> Maybe AuthenticationStrategy)
-> (UpdateBroker -> Maybe AuthenticationStrategy -> UpdateBroker)
-> Lens
UpdateBroker
UpdateBroker
(Maybe AuthenticationStrategy)
(Maybe AuthenticationStrategy)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBroker' {Maybe AuthenticationStrategy
authenticationStrategy :: Maybe AuthenticationStrategy
$sel:authenticationStrategy:UpdateBroker' :: UpdateBroker -> Maybe AuthenticationStrategy
authenticationStrategy} -> Maybe AuthenticationStrategy
authenticationStrategy) (\s :: UpdateBroker
s@UpdateBroker' {} Maybe AuthenticationStrategy
a -> UpdateBroker
s {$sel:authenticationStrategy:UpdateBroker' :: Maybe AuthenticationStrategy
authenticationStrategy = Maybe AuthenticationStrategy
a} :: UpdateBroker)
updateBroker_ldapServerMetadata :: Lens.Lens' UpdateBroker (Prelude.Maybe LdapServerMetadataInput)
updateBroker_ldapServerMetadata :: (Maybe LdapServerMetadataInput
-> f (Maybe LdapServerMetadataInput))
-> UpdateBroker -> f UpdateBroker
updateBroker_ldapServerMetadata = (UpdateBroker -> Maybe LdapServerMetadataInput)
-> (UpdateBroker -> Maybe LdapServerMetadataInput -> UpdateBroker)
-> Lens
UpdateBroker
UpdateBroker
(Maybe LdapServerMetadataInput)
(Maybe LdapServerMetadataInput)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBroker' {Maybe LdapServerMetadataInput
ldapServerMetadata :: Maybe LdapServerMetadataInput
$sel:ldapServerMetadata:UpdateBroker' :: UpdateBroker -> Maybe LdapServerMetadataInput
ldapServerMetadata} -> Maybe LdapServerMetadataInput
ldapServerMetadata) (\s :: UpdateBroker
s@UpdateBroker' {} Maybe LdapServerMetadataInput
a -> UpdateBroker
s {$sel:ldapServerMetadata:UpdateBroker' :: Maybe LdapServerMetadataInput
ldapServerMetadata = Maybe LdapServerMetadataInput
a} :: UpdateBroker)
updateBroker_maintenanceWindowStartTime :: Lens.Lens' UpdateBroker (Prelude.Maybe WeeklyStartTime)
updateBroker_maintenanceWindowStartTime :: (Maybe WeeklyStartTime -> f (Maybe WeeklyStartTime))
-> UpdateBroker -> f UpdateBroker
updateBroker_maintenanceWindowStartTime = (UpdateBroker -> Maybe WeeklyStartTime)
-> (UpdateBroker -> Maybe WeeklyStartTime -> UpdateBroker)
-> Lens
UpdateBroker
UpdateBroker
(Maybe WeeklyStartTime)
(Maybe WeeklyStartTime)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBroker' {Maybe WeeklyStartTime
maintenanceWindowStartTime :: Maybe WeeklyStartTime
$sel:maintenanceWindowStartTime:UpdateBroker' :: UpdateBroker -> Maybe WeeklyStartTime
maintenanceWindowStartTime} -> Maybe WeeklyStartTime
maintenanceWindowStartTime) (\s :: UpdateBroker
s@UpdateBroker' {} Maybe WeeklyStartTime
a -> UpdateBroker
s {$sel:maintenanceWindowStartTime:UpdateBroker' :: Maybe WeeklyStartTime
maintenanceWindowStartTime = Maybe WeeklyStartTime
a} :: UpdateBroker)
updateBroker_logs :: Lens.Lens' UpdateBroker (Prelude.Maybe Logs)
updateBroker_logs :: (Maybe Logs -> f (Maybe Logs)) -> UpdateBroker -> f UpdateBroker
updateBroker_logs = (UpdateBroker -> Maybe Logs)
-> (UpdateBroker -> Maybe Logs -> UpdateBroker)
-> Lens UpdateBroker UpdateBroker (Maybe Logs) (Maybe Logs)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBroker' {Maybe Logs
logs :: Maybe Logs
$sel:logs:UpdateBroker' :: UpdateBroker -> Maybe Logs
logs} -> Maybe Logs
logs) (\s :: UpdateBroker
s@UpdateBroker' {} Maybe Logs
a -> UpdateBroker
s {$sel:logs:UpdateBroker' :: Maybe Logs
logs = Maybe Logs
a} :: UpdateBroker)
updateBroker_configuration :: Lens.Lens' UpdateBroker (Prelude.Maybe ConfigurationId)
updateBroker_configuration :: (Maybe ConfigurationId -> f (Maybe ConfigurationId))
-> UpdateBroker -> f UpdateBroker
updateBroker_configuration = (UpdateBroker -> Maybe ConfigurationId)
-> (UpdateBroker -> Maybe ConfigurationId -> UpdateBroker)
-> Lens
UpdateBroker
UpdateBroker
(Maybe ConfigurationId)
(Maybe ConfigurationId)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBroker' {Maybe ConfigurationId
configuration :: Maybe ConfigurationId
$sel:configuration:UpdateBroker' :: UpdateBroker -> Maybe ConfigurationId
configuration} -> Maybe ConfigurationId
configuration) (\s :: UpdateBroker
s@UpdateBroker' {} Maybe ConfigurationId
a -> UpdateBroker
s {$sel:configuration:UpdateBroker' :: Maybe ConfigurationId
configuration = Maybe ConfigurationId
a} :: UpdateBroker)
updateBroker_hostInstanceType :: Lens.Lens' UpdateBroker (Prelude.Maybe Prelude.Text)
updateBroker_hostInstanceType :: (Maybe Text -> f (Maybe Text)) -> UpdateBroker -> f UpdateBroker
updateBroker_hostInstanceType = (UpdateBroker -> Maybe Text)
-> (UpdateBroker -> Maybe Text -> UpdateBroker)
-> Lens UpdateBroker UpdateBroker (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBroker' {Maybe Text
hostInstanceType :: Maybe Text
$sel:hostInstanceType:UpdateBroker' :: UpdateBroker -> Maybe Text
hostInstanceType} -> Maybe Text
hostInstanceType) (\s :: UpdateBroker
s@UpdateBroker' {} Maybe Text
a -> UpdateBroker
s {$sel:hostInstanceType:UpdateBroker' :: Maybe Text
hostInstanceType = Maybe Text
a} :: UpdateBroker)
updateBroker_brokerId :: Lens.Lens' UpdateBroker Prelude.Text
updateBroker_brokerId :: (Text -> f Text) -> UpdateBroker -> f UpdateBroker
updateBroker_brokerId = (UpdateBroker -> Text)
-> (UpdateBroker -> Text -> UpdateBroker)
-> Lens UpdateBroker UpdateBroker Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBroker' {Text
brokerId :: Text
$sel:brokerId:UpdateBroker' :: UpdateBroker -> Text
brokerId} -> Text
brokerId) (\s :: UpdateBroker
s@UpdateBroker' {} Text
a -> UpdateBroker
s {$sel:brokerId:UpdateBroker' :: Text
brokerId = Text
a} :: UpdateBroker)
instance Core.AWSRequest UpdateBroker where
type AWSResponse UpdateBroker = UpdateBrokerResponse
request :: UpdateBroker -> Request UpdateBroker
request = Service -> UpdateBroker -> Request UpdateBroker
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateBroker
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateBroker)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse UpdateBroker))
-> Logger
-> Service
-> Proxy UpdateBroker
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateBroker)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe Bool
-> Maybe [Text]
-> Maybe AuthenticationStrategy
-> Maybe LdapServerMetadataOutput
-> Maybe WeeklyStartTime
-> Maybe Logs
-> Maybe ConfigurationId
-> Maybe Text
-> Maybe Text
-> Int
-> UpdateBrokerResponse
UpdateBrokerResponse'
(Maybe Text
-> Maybe Bool
-> Maybe [Text]
-> Maybe AuthenticationStrategy
-> Maybe LdapServerMetadataOutput
-> Maybe WeeklyStartTime
-> Maybe Logs
-> Maybe ConfigurationId
-> Maybe Text
-> Maybe Text
-> Int
-> UpdateBrokerResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Bool
-> Maybe [Text]
-> Maybe AuthenticationStrategy
-> Maybe LdapServerMetadataOutput
-> Maybe WeeklyStartTime
-> Maybe Logs
-> Maybe ConfigurationId
-> Maybe Text
-> Maybe Text
-> Int
-> UpdateBrokerResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"engineVersion")
Either
String
(Maybe Bool
-> Maybe [Text]
-> Maybe AuthenticationStrategy
-> Maybe LdapServerMetadataOutput
-> Maybe WeeklyStartTime
-> Maybe Logs
-> Maybe ConfigurationId
-> Maybe Text
-> Maybe Text
-> Int
-> UpdateBrokerResponse)
-> Either String (Maybe Bool)
-> Either
String
(Maybe [Text]
-> Maybe AuthenticationStrategy
-> Maybe LdapServerMetadataOutput
-> Maybe WeeklyStartTime
-> Maybe Logs
-> Maybe ConfigurationId
-> Maybe Text
-> Maybe Text
-> Int
-> UpdateBrokerResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"autoMinorVersionUpgrade")
Either
String
(Maybe [Text]
-> Maybe AuthenticationStrategy
-> Maybe LdapServerMetadataOutput
-> Maybe WeeklyStartTime
-> Maybe Logs
-> Maybe ConfigurationId
-> Maybe Text
-> Maybe Text
-> Int
-> UpdateBrokerResponse)
-> Either String (Maybe [Text])
-> Either
String
(Maybe AuthenticationStrategy
-> Maybe LdapServerMetadataOutput
-> Maybe WeeklyStartTime
-> Maybe Logs
-> Maybe ConfigurationId
-> Maybe Text
-> Maybe Text
-> Int
-> UpdateBrokerResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"securityGroups" Either String (Maybe (Maybe [Text]))
-> Maybe [Text] -> Either String (Maybe [Text])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Text]
forall a. Monoid a => a
Prelude.mempty)
Either
String
(Maybe AuthenticationStrategy
-> Maybe LdapServerMetadataOutput
-> Maybe WeeklyStartTime
-> Maybe Logs
-> Maybe ConfigurationId
-> Maybe Text
-> Maybe Text
-> Int
-> UpdateBrokerResponse)
-> Either String (Maybe AuthenticationStrategy)
-> Either
String
(Maybe LdapServerMetadataOutput
-> Maybe WeeklyStartTime
-> Maybe Logs
-> Maybe ConfigurationId
-> Maybe Text
-> Maybe Text
-> Int
-> UpdateBrokerResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe AuthenticationStrategy)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"authenticationStrategy")
Either
String
(Maybe LdapServerMetadataOutput
-> Maybe WeeklyStartTime
-> Maybe Logs
-> Maybe ConfigurationId
-> Maybe Text
-> Maybe Text
-> Int
-> UpdateBrokerResponse)
-> Either String (Maybe LdapServerMetadataOutput)
-> Either
String
(Maybe WeeklyStartTime
-> Maybe Logs
-> Maybe ConfigurationId
-> Maybe Text
-> Maybe Text
-> Int
-> UpdateBrokerResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe LdapServerMetadataOutput)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ldapServerMetadata")
Either
String
(Maybe WeeklyStartTime
-> Maybe Logs
-> Maybe ConfigurationId
-> Maybe Text
-> Maybe Text
-> Int
-> UpdateBrokerResponse)
-> Either String (Maybe WeeklyStartTime)
-> Either
String
(Maybe Logs
-> Maybe ConfigurationId
-> Maybe Text
-> Maybe Text
-> Int
-> UpdateBrokerResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe WeeklyStartTime)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"maintenanceWindowStartTime")
Either
String
(Maybe Logs
-> Maybe ConfigurationId
-> Maybe Text
-> Maybe Text
-> Int
-> UpdateBrokerResponse)
-> Either String (Maybe Logs)
-> Either
String
(Maybe ConfigurationId
-> Maybe Text -> Maybe Text -> Int -> UpdateBrokerResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Logs)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"logs")
Either
String
(Maybe ConfigurationId
-> Maybe Text -> Maybe Text -> Int -> UpdateBrokerResponse)
-> Either String (Maybe ConfigurationId)
-> Either
String (Maybe Text -> Maybe Text -> Int -> UpdateBrokerResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe ConfigurationId)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"configuration")
Either
String (Maybe Text -> Maybe Text -> Int -> UpdateBrokerResponse)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> Int -> UpdateBrokerResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"brokerId")
Either String (Maybe Text -> Int -> UpdateBrokerResponse)
-> Either String (Maybe Text)
-> Either String (Int -> UpdateBrokerResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"hostInstanceType")
Either String (Int -> UpdateBrokerResponse)
-> Either String Int -> Either String UpdateBrokerResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable UpdateBroker
instance Prelude.NFData UpdateBroker
instance Core.ToHeaders UpdateBroker where
toHeaders :: UpdateBroker -> ResponseHeaders
toHeaders =
ResponseHeaders -> UpdateBroker -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON UpdateBroker where
toJSON :: UpdateBroker -> Value
toJSON UpdateBroker' {Maybe Bool
Maybe [Text]
Maybe Text
Maybe AuthenticationStrategy
Maybe ConfigurationId
Maybe LdapServerMetadataInput
Maybe Logs
Maybe WeeklyStartTime
Text
brokerId :: Text
hostInstanceType :: Maybe Text
configuration :: Maybe ConfigurationId
logs :: Maybe Logs
maintenanceWindowStartTime :: Maybe WeeklyStartTime
ldapServerMetadata :: Maybe LdapServerMetadataInput
authenticationStrategy :: Maybe AuthenticationStrategy
securityGroups :: Maybe [Text]
autoMinorVersionUpgrade :: Maybe Bool
engineVersion :: Maybe Text
$sel:brokerId:UpdateBroker' :: UpdateBroker -> Text
$sel:hostInstanceType:UpdateBroker' :: UpdateBroker -> Maybe Text
$sel:configuration:UpdateBroker' :: UpdateBroker -> Maybe ConfigurationId
$sel:logs:UpdateBroker' :: UpdateBroker -> Maybe Logs
$sel:maintenanceWindowStartTime:UpdateBroker' :: UpdateBroker -> Maybe WeeklyStartTime
$sel:ldapServerMetadata:UpdateBroker' :: UpdateBroker -> Maybe LdapServerMetadataInput
$sel:authenticationStrategy:UpdateBroker' :: UpdateBroker -> Maybe AuthenticationStrategy
$sel:securityGroups:UpdateBroker' :: UpdateBroker -> Maybe [Text]
$sel:autoMinorVersionUpgrade:UpdateBroker' :: UpdateBroker -> Maybe Bool
$sel:engineVersion:UpdateBroker' :: UpdateBroker -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"engineVersion" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
engineVersion,
(Text
"autoMinorVersionUpgrade" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
autoMinorVersionUpgrade,
(Text
"securityGroups" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
([Text] -> Pair) -> Maybe [Text] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
securityGroups,
(Text
"authenticationStrategy" Text -> AuthenticationStrategy -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(AuthenticationStrategy -> Pair)
-> Maybe AuthenticationStrategy -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AuthenticationStrategy
authenticationStrategy,
(Text
"ldapServerMetadata" Text -> LdapServerMetadataInput -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(LdapServerMetadataInput -> Pair)
-> Maybe LdapServerMetadataInput -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LdapServerMetadataInput
ldapServerMetadata,
(Text
"maintenanceWindowStartTime" Text -> WeeklyStartTime -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(WeeklyStartTime -> Pair) -> Maybe WeeklyStartTime -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe WeeklyStartTime
maintenanceWindowStartTime,
(Text
"logs" Text -> Logs -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Logs -> Pair) -> Maybe Logs -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Logs
logs,
(Text
"configuration" Text -> ConfigurationId -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (ConfigurationId -> Pair) -> Maybe ConfigurationId -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ConfigurationId
configuration,
(Text
"hostInstanceType" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
hostInstanceType
]
)
instance Core.ToPath UpdateBroker where
toPath :: UpdateBroker -> ByteString
toPath UpdateBroker' {Maybe Bool
Maybe [Text]
Maybe Text
Maybe AuthenticationStrategy
Maybe ConfigurationId
Maybe LdapServerMetadataInput
Maybe Logs
Maybe WeeklyStartTime
Text
brokerId :: Text
hostInstanceType :: Maybe Text
configuration :: Maybe ConfigurationId
logs :: Maybe Logs
maintenanceWindowStartTime :: Maybe WeeklyStartTime
ldapServerMetadata :: Maybe LdapServerMetadataInput
authenticationStrategy :: Maybe AuthenticationStrategy
securityGroups :: Maybe [Text]
autoMinorVersionUpgrade :: Maybe Bool
engineVersion :: Maybe Text
$sel:brokerId:UpdateBroker' :: UpdateBroker -> Text
$sel:hostInstanceType:UpdateBroker' :: UpdateBroker -> Maybe Text
$sel:configuration:UpdateBroker' :: UpdateBroker -> Maybe ConfigurationId
$sel:logs:UpdateBroker' :: UpdateBroker -> Maybe Logs
$sel:maintenanceWindowStartTime:UpdateBroker' :: UpdateBroker -> Maybe WeeklyStartTime
$sel:ldapServerMetadata:UpdateBroker' :: UpdateBroker -> Maybe LdapServerMetadataInput
$sel:authenticationStrategy:UpdateBroker' :: UpdateBroker -> Maybe AuthenticationStrategy
$sel:securityGroups:UpdateBroker' :: UpdateBroker -> Maybe [Text]
$sel:autoMinorVersionUpgrade:UpdateBroker' :: UpdateBroker -> Maybe Bool
$sel:engineVersion:UpdateBroker' :: UpdateBroker -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/v1/brokers/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
brokerId]
instance Core.ToQuery UpdateBroker where
toQuery :: UpdateBroker -> QueryString
toQuery = QueryString -> UpdateBroker -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdateBrokerResponse = UpdateBrokerResponse'
{
UpdateBrokerResponse -> Maybe Text
engineVersion :: Prelude.Maybe Prelude.Text,
UpdateBrokerResponse -> Maybe Bool
autoMinorVersionUpgrade :: Prelude.Maybe Prelude.Bool,
UpdateBrokerResponse -> Maybe [Text]
securityGroups :: Prelude.Maybe [Prelude.Text],
UpdateBrokerResponse -> Maybe AuthenticationStrategy
authenticationStrategy :: Prelude.Maybe AuthenticationStrategy,
UpdateBrokerResponse -> Maybe LdapServerMetadataOutput
ldapServerMetadata :: Prelude.Maybe LdapServerMetadataOutput,
UpdateBrokerResponse -> Maybe WeeklyStartTime
maintenanceWindowStartTime :: Prelude.Maybe WeeklyStartTime,
UpdateBrokerResponse -> Maybe Logs
logs :: Prelude.Maybe Logs,
UpdateBrokerResponse -> Maybe ConfigurationId
configuration :: Prelude.Maybe ConfigurationId,
UpdateBrokerResponse -> Maybe Text
brokerId :: Prelude.Maybe Prelude.Text,
UpdateBrokerResponse -> Maybe Text
hostInstanceType :: Prelude.Maybe Prelude.Text,
UpdateBrokerResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateBrokerResponse -> UpdateBrokerResponse -> Bool
(UpdateBrokerResponse -> UpdateBrokerResponse -> Bool)
-> (UpdateBrokerResponse -> UpdateBrokerResponse -> Bool)
-> Eq UpdateBrokerResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateBrokerResponse -> UpdateBrokerResponse -> Bool
$c/= :: UpdateBrokerResponse -> UpdateBrokerResponse -> Bool
== :: UpdateBrokerResponse -> UpdateBrokerResponse -> Bool
$c== :: UpdateBrokerResponse -> UpdateBrokerResponse -> Bool
Prelude.Eq, ReadPrec [UpdateBrokerResponse]
ReadPrec UpdateBrokerResponse
Int -> ReadS UpdateBrokerResponse
ReadS [UpdateBrokerResponse]
(Int -> ReadS UpdateBrokerResponse)
-> ReadS [UpdateBrokerResponse]
-> ReadPrec UpdateBrokerResponse
-> ReadPrec [UpdateBrokerResponse]
-> Read UpdateBrokerResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateBrokerResponse]
$creadListPrec :: ReadPrec [UpdateBrokerResponse]
readPrec :: ReadPrec UpdateBrokerResponse
$creadPrec :: ReadPrec UpdateBrokerResponse
readList :: ReadS [UpdateBrokerResponse]
$creadList :: ReadS [UpdateBrokerResponse]
readsPrec :: Int -> ReadS UpdateBrokerResponse
$creadsPrec :: Int -> ReadS UpdateBrokerResponse
Prelude.Read, Int -> UpdateBrokerResponse -> ShowS
[UpdateBrokerResponse] -> ShowS
UpdateBrokerResponse -> String
(Int -> UpdateBrokerResponse -> ShowS)
-> (UpdateBrokerResponse -> String)
-> ([UpdateBrokerResponse] -> ShowS)
-> Show UpdateBrokerResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateBrokerResponse] -> ShowS
$cshowList :: [UpdateBrokerResponse] -> ShowS
show :: UpdateBrokerResponse -> String
$cshow :: UpdateBrokerResponse -> String
showsPrec :: Int -> UpdateBrokerResponse -> ShowS
$cshowsPrec :: Int -> UpdateBrokerResponse -> ShowS
Prelude.Show, (forall x. UpdateBrokerResponse -> Rep UpdateBrokerResponse x)
-> (forall x. Rep UpdateBrokerResponse x -> UpdateBrokerResponse)
-> Generic UpdateBrokerResponse
forall x. Rep UpdateBrokerResponse x -> UpdateBrokerResponse
forall x. UpdateBrokerResponse -> Rep UpdateBrokerResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateBrokerResponse x -> UpdateBrokerResponse
$cfrom :: forall x. UpdateBrokerResponse -> Rep UpdateBrokerResponse x
Prelude.Generic)
newUpdateBrokerResponse ::
Prelude.Int ->
UpdateBrokerResponse
newUpdateBrokerResponse :: Int -> UpdateBrokerResponse
newUpdateBrokerResponse Int
pHttpStatus_ =
UpdateBrokerResponse' :: Maybe Text
-> Maybe Bool
-> Maybe [Text]
-> Maybe AuthenticationStrategy
-> Maybe LdapServerMetadataOutput
-> Maybe WeeklyStartTime
-> Maybe Logs
-> Maybe ConfigurationId
-> Maybe Text
-> Maybe Text
-> Int
-> UpdateBrokerResponse
UpdateBrokerResponse'
{ $sel:engineVersion:UpdateBrokerResponse' :: Maybe Text
engineVersion =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:autoMinorVersionUpgrade:UpdateBrokerResponse' :: Maybe Bool
autoMinorVersionUpgrade = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:securityGroups:UpdateBrokerResponse' :: Maybe [Text]
securityGroups = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:authenticationStrategy:UpdateBrokerResponse' :: Maybe AuthenticationStrategy
authenticationStrategy = Maybe AuthenticationStrategy
forall a. Maybe a
Prelude.Nothing,
$sel:ldapServerMetadata:UpdateBrokerResponse' :: Maybe LdapServerMetadataOutput
ldapServerMetadata = Maybe LdapServerMetadataOutput
forall a. Maybe a
Prelude.Nothing,
$sel:maintenanceWindowStartTime:UpdateBrokerResponse' :: Maybe WeeklyStartTime
maintenanceWindowStartTime = Maybe WeeklyStartTime
forall a. Maybe a
Prelude.Nothing,
$sel:logs:UpdateBrokerResponse' :: Maybe Logs
logs = Maybe Logs
forall a. Maybe a
Prelude.Nothing,
$sel:configuration:UpdateBrokerResponse' :: Maybe ConfigurationId
configuration = Maybe ConfigurationId
forall a. Maybe a
Prelude.Nothing,
$sel:brokerId:UpdateBrokerResponse' :: Maybe Text
brokerId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:hostInstanceType:UpdateBrokerResponse' :: Maybe Text
hostInstanceType = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateBrokerResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateBrokerResponse_engineVersion :: Lens.Lens' UpdateBrokerResponse (Prelude.Maybe Prelude.Text)
updateBrokerResponse_engineVersion :: (Maybe Text -> f (Maybe Text))
-> UpdateBrokerResponse -> f UpdateBrokerResponse
updateBrokerResponse_engineVersion = (UpdateBrokerResponse -> Maybe Text)
-> (UpdateBrokerResponse -> Maybe Text -> UpdateBrokerResponse)
-> Lens
UpdateBrokerResponse UpdateBrokerResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBrokerResponse' {Maybe Text
engineVersion :: Maybe Text
$sel:engineVersion:UpdateBrokerResponse' :: UpdateBrokerResponse -> Maybe Text
engineVersion} -> Maybe Text
engineVersion) (\s :: UpdateBrokerResponse
s@UpdateBrokerResponse' {} Maybe Text
a -> UpdateBrokerResponse
s {$sel:engineVersion:UpdateBrokerResponse' :: Maybe Text
engineVersion = Maybe Text
a} :: UpdateBrokerResponse)
updateBrokerResponse_autoMinorVersionUpgrade :: Lens.Lens' UpdateBrokerResponse (Prelude.Maybe Prelude.Bool)
updateBrokerResponse_autoMinorVersionUpgrade :: (Maybe Bool -> f (Maybe Bool))
-> UpdateBrokerResponse -> f UpdateBrokerResponse
updateBrokerResponse_autoMinorVersionUpgrade = (UpdateBrokerResponse -> Maybe Bool)
-> (UpdateBrokerResponse -> Maybe Bool -> UpdateBrokerResponse)
-> Lens
UpdateBrokerResponse UpdateBrokerResponse (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBrokerResponse' {Maybe Bool
autoMinorVersionUpgrade :: Maybe Bool
$sel:autoMinorVersionUpgrade:UpdateBrokerResponse' :: UpdateBrokerResponse -> Maybe Bool
autoMinorVersionUpgrade} -> Maybe Bool
autoMinorVersionUpgrade) (\s :: UpdateBrokerResponse
s@UpdateBrokerResponse' {} Maybe Bool
a -> UpdateBrokerResponse
s {$sel:autoMinorVersionUpgrade:UpdateBrokerResponse' :: Maybe Bool
autoMinorVersionUpgrade = Maybe Bool
a} :: UpdateBrokerResponse)
updateBrokerResponse_securityGroups :: Lens.Lens' UpdateBrokerResponse (Prelude.Maybe [Prelude.Text])
updateBrokerResponse_securityGroups :: (Maybe [Text] -> f (Maybe [Text]))
-> UpdateBrokerResponse -> f UpdateBrokerResponse
updateBrokerResponse_securityGroups = (UpdateBrokerResponse -> Maybe [Text])
-> (UpdateBrokerResponse -> Maybe [Text] -> UpdateBrokerResponse)
-> Lens
UpdateBrokerResponse
UpdateBrokerResponse
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBrokerResponse' {Maybe [Text]
securityGroups :: Maybe [Text]
$sel:securityGroups:UpdateBrokerResponse' :: UpdateBrokerResponse -> Maybe [Text]
securityGroups} -> Maybe [Text]
securityGroups) (\s :: UpdateBrokerResponse
s@UpdateBrokerResponse' {} Maybe [Text]
a -> UpdateBrokerResponse
s {$sel:securityGroups:UpdateBrokerResponse' :: Maybe [Text]
securityGroups = Maybe [Text]
a} :: UpdateBrokerResponse) ((Maybe [Text] -> f (Maybe [Text]))
-> UpdateBrokerResponse -> f UpdateBrokerResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> UpdateBrokerResponse
-> f UpdateBrokerResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateBrokerResponse_authenticationStrategy :: Lens.Lens' UpdateBrokerResponse (Prelude.Maybe AuthenticationStrategy)
updateBrokerResponse_authenticationStrategy :: (Maybe AuthenticationStrategy -> f (Maybe AuthenticationStrategy))
-> UpdateBrokerResponse -> f UpdateBrokerResponse
updateBrokerResponse_authenticationStrategy = (UpdateBrokerResponse -> Maybe AuthenticationStrategy)
-> (UpdateBrokerResponse
-> Maybe AuthenticationStrategy -> UpdateBrokerResponse)
-> Lens
UpdateBrokerResponse
UpdateBrokerResponse
(Maybe AuthenticationStrategy)
(Maybe AuthenticationStrategy)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBrokerResponse' {Maybe AuthenticationStrategy
authenticationStrategy :: Maybe AuthenticationStrategy
$sel:authenticationStrategy:UpdateBrokerResponse' :: UpdateBrokerResponse -> Maybe AuthenticationStrategy
authenticationStrategy} -> Maybe AuthenticationStrategy
authenticationStrategy) (\s :: UpdateBrokerResponse
s@UpdateBrokerResponse' {} Maybe AuthenticationStrategy
a -> UpdateBrokerResponse
s {$sel:authenticationStrategy:UpdateBrokerResponse' :: Maybe AuthenticationStrategy
authenticationStrategy = Maybe AuthenticationStrategy
a} :: UpdateBrokerResponse)
updateBrokerResponse_ldapServerMetadata :: Lens.Lens' UpdateBrokerResponse (Prelude.Maybe LdapServerMetadataOutput)
updateBrokerResponse_ldapServerMetadata :: (Maybe LdapServerMetadataOutput
-> f (Maybe LdapServerMetadataOutput))
-> UpdateBrokerResponse -> f UpdateBrokerResponse
updateBrokerResponse_ldapServerMetadata = (UpdateBrokerResponse -> Maybe LdapServerMetadataOutput)
-> (UpdateBrokerResponse
-> Maybe LdapServerMetadataOutput -> UpdateBrokerResponse)
-> Lens
UpdateBrokerResponse
UpdateBrokerResponse
(Maybe LdapServerMetadataOutput)
(Maybe LdapServerMetadataOutput)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBrokerResponse' {Maybe LdapServerMetadataOutput
ldapServerMetadata :: Maybe LdapServerMetadataOutput
$sel:ldapServerMetadata:UpdateBrokerResponse' :: UpdateBrokerResponse -> Maybe LdapServerMetadataOutput
ldapServerMetadata} -> Maybe LdapServerMetadataOutput
ldapServerMetadata) (\s :: UpdateBrokerResponse
s@UpdateBrokerResponse' {} Maybe LdapServerMetadataOutput
a -> UpdateBrokerResponse
s {$sel:ldapServerMetadata:UpdateBrokerResponse' :: Maybe LdapServerMetadataOutput
ldapServerMetadata = Maybe LdapServerMetadataOutput
a} :: UpdateBrokerResponse)
updateBrokerResponse_maintenanceWindowStartTime :: Lens.Lens' UpdateBrokerResponse (Prelude.Maybe WeeklyStartTime)
updateBrokerResponse_maintenanceWindowStartTime :: (Maybe WeeklyStartTime -> f (Maybe WeeklyStartTime))
-> UpdateBrokerResponse -> f UpdateBrokerResponse
updateBrokerResponse_maintenanceWindowStartTime = (UpdateBrokerResponse -> Maybe WeeklyStartTime)
-> (UpdateBrokerResponse
-> Maybe WeeklyStartTime -> UpdateBrokerResponse)
-> Lens
UpdateBrokerResponse
UpdateBrokerResponse
(Maybe WeeklyStartTime)
(Maybe WeeklyStartTime)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBrokerResponse' {Maybe WeeklyStartTime
maintenanceWindowStartTime :: Maybe WeeklyStartTime
$sel:maintenanceWindowStartTime:UpdateBrokerResponse' :: UpdateBrokerResponse -> Maybe WeeklyStartTime
maintenanceWindowStartTime} -> Maybe WeeklyStartTime
maintenanceWindowStartTime) (\s :: UpdateBrokerResponse
s@UpdateBrokerResponse' {} Maybe WeeklyStartTime
a -> UpdateBrokerResponse
s {$sel:maintenanceWindowStartTime:UpdateBrokerResponse' :: Maybe WeeklyStartTime
maintenanceWindowStartTime = Maybe WeeklyStartTime
a} :: UpdateBrokerResponse)
updateBrokerResponse_logs :: Lens.Lens' UpdateBrokerResponse (Prelude.Maybe Logs)
updateBrokerResponse_logs :: (Maybe Logs -> f (Maybe Logs))
-> UpdateBrokerResponse -> f UpdateBrokerResponse
updateBrokerResponse_logs = (UpdateBrokerResponse -> Maybe Logs)
-> (UpdateBrokerResponse -> Maybe Logs -> UpdateBrokerResponse)
-> Lens
UpdateBrokerResponse UpdateBrokerResponse (Maybe Logs) (Maybe Logs)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBrokerResponse' {Maybe Logs
logs :: Maybe Logs
$sel:logs:UpdateBrokerResponse' :: UpdateBrokerResponse -> Maybe Logs
logs} -> Maybe Logs
logs) (\s :: UpdateBrokerResponse
s@UpdateBrokerResponse' {} Maybe Logs
a -> UpdateBrokerResponse
s {$sel:logs:UpdateBrokerResponse' :: Maybe Logs
logs = Maybe Logs
a} :: UpdateBrokerResponse)
updateBrokerResponse_configuration :: Lens.Lens' UpdateBrokerResponse (Prelude.Maybe ConfigurationId)
updateBrokerResponse_configuration :: (Maybe ConfigurationId -> f (Maybe ConfigurationId))
-> UpdateBrokerResponse -> f UpdateBrokerResponse
updateBrokerResponse_configuration = (UpdateBrokerResponse -> Maybe ConfigurationId)
-> (UpdateBrokerResponse
-> Maybe ConfigurationId -> UpdateBrokerResponse)
-> Lens
UpdateBrokerResponse
UpdateBrokerResponse
(Maybe ConfigurationId)
(Maybe ConfigurationId)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBrokerResponse' {Maybe ConfigurationId
configuration :: Maybe ConfigurationId
$sel:configuration:UpdateBrokerResponse' :: UpdateBrokerResponse -> Maybe ConfigurationId
configuration} -> Maybe ConfigurationId
configuration) (\s :: UpdateBrokerResponse
s@UpdateBrokerResponse' {} Maybe ConfigurationId
a -> UpdateBrokerResponse
s {$sel:configuration:UpdateBrokerResponse' :: Maybe ConfigurationId
configuration = Maybe ConfigurationId
a} :: UpdateBrokerResponse)
updateBrokerResponse_brokerId :: Lens.Lens' UpdateBrokerResponse (Prelude.Maybe Prelude.Text)
updateBrokerResponse_brokerId :: (Maybe Text -> f (Maybe Text))
-> UpdateBrokerResponse -> f UpdateBrokerResponse
updateBrokerResponse_brokerId = (UpdateBrokerResponse -> Maybe Text)
-> (UpdateBrokerResponse -> Maybe Text -> UpdateBrokerResponse)
-> Lens
UpdateBrokerResponse UpdateBrokerResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBrokerResponse' {Maybe Text
brokerId :: Maybe Text
$sel:brokerId:UpdateBrokerResponse' :: UpdateBrokerResponse -> Maybe Text
brokerId} -> Maybe Text
brokerId) (\s :: UpdateBrokerResponse
s@UpdateBrokerResponse' {} Maybe Text
a -> UpdateBrokerResponse
s {$sel:brokerId:UpdateBrokerResponse' :: Maybe Text
brokerId = Maybe Text
a} :: UpdateBrokerResponse)
updateBrokerResponse_hostInstanceType :: Lens.Lens' UpdateBrokerResponse (Prelude.Maybe Prelude.Text)
updateBrokerResponse_hostInstanceType :: (Maybe Text -> f (Maybe Text))
-> UpdateBrokerResponse -> f UpdateBrokerResponse
updateBrokerResponse_hostInstanceType = (UpdateBrokerResponse -> Maybe Text)
-> (UpdateBrokerResponse -> Maybe Text -> UpdateBrokerResponse)
-> Lens
UpdateBrokerResponse UpdateBrokerResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBrokerResponse' {Maybe Text
hostInstanceType :: Maybe Text
$sel:hostInstanceType:UpdateBrokerResponse' :: UpdateBrokerResponse -> Maybe Text
hostInstanceType} -> Maybe Text
hostInstanceType) (\s :: UpdateBrokerResponse
s@UpdateBrokerResponse' {} Maybe Text
a -> UpdateBrokerResponse
s {$sel:hostInstanceType:UpdateBrokerResponse' :: Maybe Text
hostInstanceType = Maybe Text
a} :: UpdateBrokerResponse)
updateBrokerResponse_httpStatus :: Lens.Lens' UpdateBrokerResponse Prelude.Int
updateBrokerResponse_httpStatus :: (Int -> f Int) -> UpdateBrokerResponse -> f UpdateBrokerResponse
updateBrokerResponse_httpStatus = (UpdateBrokerResponse -> Int)
-> (UpdateBrokerResponse -> Int -> UpdateBrokerResponse)
-> Lens UpdateBrokerResponse UpdateBrokerResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBrokerResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateBrokerResponse' :: UpdateBrokerResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateBrokerResponse
s@UpdateBrokerResponse' {} Int
a -> UpdateBrokerResponse
s {$sel:httpStatus:UpdateBrokerResponse' :: Int
httpStatus = Int
a} :: UpdateBrokerResponse)
instance Prelude.NFData UpdateBrokerResponse