{-# 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.Grafana.UpdateWorkspaceAuthentication
(
UpdateWorkspaceAuthentication (..),
newUpdateWorkspaceAuthentication,
updateWorkspaceAuthentication_samlConfiguration,
updateWorkspaceAuthentication_authenticationProviders,
updateWorkspaceAuthentication_workspaceId,
UpdateWorkspaceAuthenticationResponse (..),
newUpdateWorkspaceAuthenticationResponse,
updateWorkspaceAuthenticationResponse_httpStatus,
updateWorkspaceAuthenticationResponse_authentication,
)
where
import qualified Amazonka.Core as Core
import Amazonka.Grafana.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data UpdateWorkspaceAuthentication = UpdateWorkspaceAuthentication'
{
UpdateWorkspaceAuthentication -> Maybe SamlConfiguration
samlConfiguration :: Prelude.Maybe SamlConfiguration,
UpdateWorkspaceAuthentication -> [AuthenticationProviderTypes]
authenticationProviders :: [AuthenticationProviderTypes],
UpdateWorkspaceAuthentication -> Text
workspaceId :: Prelude.Text
}
deriving (UpdateWorkspaceAuthentication
-> UpdateWorkspaceAuthentication -> Bool
(UpdateWorkspaceAuthentication
-> UpdateWorkspaceAuthentication -> Bool)
-> (UpdateWorkspaceAuthentication
-> UpdateWorkspaceAuthentication -> Bool)
-> Eq UpdateWorkspaceAuthentication
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateWorkspaceAuthentication
-> UpdateWorkspaceAuthentication -> Bool
$c/= :: UpdateWorkspaceAuthentication
-> UpdateWorkspaceAuthentication -> Bool
== :: UpdateWorkspaceAuthentication
-> UpdateWorkspaceAuthentication -> Bool
$c== :: UpdateWorkspaceAuthentication
-> UpdateWorkspaceAuthentication -> Bool
Prelude.Eq, ReadPrec [UpdateWorkspaceAuthentication]
ReadPrec UpdateWorkspaceAuthentication
Int -> ReadS UpdateWorkspaceAuthentication
ReadS [UpdateWorkspaceAuthentication]
(Int -> ReadS UpdateWorkspaceAuthentication)
-> ReadS [UpdateWorkspaceAuthentication]
-> ReadPrec UpdateWorkspaceAuthentication
-> ReadPrec [UpdateWorkspaceAuthentication]
-> Read UpdateWorkspaceAuthentication
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateWorkspaceAuthentication]
$creadListPrec :: ReadPrec [UpdateWorkspaceAuthentication]
readPrec :: ReadPrec UpdateWorkspaceAuthentication
$creadPrec :: ReadPrec UpdateWorkspaceAuthentication
readList :: ReadS [UpdateWorkspaceAuthentication]
$creadList :: ReadS [UpdateWorkspaceAuthentication]
readsPrec :: Int -> ReadS UpdateWorkspaceAuthentication
$creadsPrec :: Int -> ReadS UpdateWorkspaceAuthentication
Prelude.Read, Int -> UpdateWorkspaceAuthentication -> ShowS
[UpdateWorkspaceAuthentication] -> ShowS
UpdateWorkspaceAuthentication -> String
(Int -> UpdateWorkspaceAuthentication -> ShowS)
-> (UpdateWorkspaceAuthentication -> String)
-> ([UpdateWorkspaceAuthentication] -> ShowS)
-> Show UpdateWorkspaceAuthentication
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateWorkspaceAuthentication] -> ShowS
$cshowList :: [UpdateWorkspaceAuthentication] -> ShowS
show :: UpdateWorkspaceAuthentication -> String
$cshow :: UpdateWorkspaceAuthentication -> String
showsPrec :: Int -> UpdateWorkspaceAuthentication -> ShowS
$cshowsPrec :: Int -> UpdateWorkspaceAuthentication -> ShowS
Prelude.Show, (forall x.
UpdateWorkspaceAuthentication
-> Rep UpdateWorkspaceAuthentication x)
-> (forall x.
Rep UpdateWorkspaceAuthentication x
-> UpdateWorkspaceAuthentication)
-> Generic UpdateWorkspaceAuthentication
forall x.
Rep UpdateWorkspaceAuthentication x
-> UpdateWorkspaceAuthentication
forall x.
UpdateWorkspaceAuthentication
-> Rep UpdateWorkspaceAuthentication x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateWorkspaceAuthentication x
-> UpdateWorkspaceAuthentication
$cfrom :: forall x.
UpdateWorkspaceAuthentication
-> Rep UpdateWorkspaceAuthentication x
Prelude.Generic)
newUpdateWorkspaceAuthentication ::
Prelude.Text ->
UpdateWorkspaceAuthentication
newUpdateWorkspaceAuthentication :: Text -> UpdateWorkspaceAuthentication
newUpdateWorkspaceAuthentication Text
pWorkspaceId_ =
UpdateWorkspaceAuthentication' :: Maybe SamlConfiguration
-> [AuthenticationProviderTypes]
-> Text
-> UpdateWorkspaceAuthentication
UpdateWorkspaceAuthentication'
{ $sel:samlConfiguration:UpdateWorkspaceAuthentication' :: Maybe SamlConfiguration
samlConfiguration =
Maybe SamlConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:authenticationProviders:UpdateWorkspaceAuthentication' :: [AuthenticationProviderTypes]
authenticationProviders = [AuthenticationProviderTypes]
forall a. Monoid a => a
Prelude.mempty,
$sel:workspaceId:UpdateWorkspaceAuthentication' :: Text
workspaceId = Text
pWorkspaceId_
}
updateWorkspaceAuthentication_samlConfiguration :: Lens.Lens' UpdateWorkspaceAuthentication (Prelude.Maybe SamlConfiguration)
updateWorkspaceAuthentication_samlConfiguration :: (Maybe SamlConfiguration -> f (Maybe SamlConfiguration))
-> UpdateWorkspaceAuthentication -> f UpdateWorkspaceAuthentication
updateWorkspaceAuthentication_samlConfiguration = (UpdateWorkspaceAuthentication -> Maybe SamlConfiguration)
-> (UpdateWorkspaceAuthentication
-> Maybe SamlConfiguration -> UpdateWorkspaceAuthentication)
-> Lens
UpdateWorkspaceAuthentication
UpdateWorkspaceAuthentication
(Maybe SamlConfiguration)
(Maybe SamlConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateWorkspaceAuthentication' {Maybe SamlConfiguration
samlConfiguration :: Maybe SamlConfiguration
$sel:samlConfiguration:UpdateWorkspaceAuthentication' :: UpdateWorkspaceAuthentication -> Maybe SamlConfiguration
samlConfiguration} -> Maybe SamlConfiguration
samlConfiguration) (\s :: UpdateWorkspaceAuthentication
s@UpdateWorkspaceAuthentication' {} Maybe SamlConfiguration
a -> UpdateWorkspaceAuthentication
s {$sel:samlConfiguration:UpdateWorkspaceAuthentication' :: Maybe SamlConfiguration
samlConfiguration = Maybe SamlConfiguration
a} :: UpdateWorkspaceAuthentication)
updateWorkspaceAuthentication_authenticationProviders :: Lens.Lens' UpdateWorkspaceAuthentication [AuthenticationProviderTypes]
updateWorkspaceAuthentication_authenticationProviders :: ([AuthenticationProviderTypes] -> f [AuthenticationProviderTypes])
-> UpdateWorkspaceAuthentication -> f UpdateWorkspaceAuthentication
updateWorkspaceAuthentication_authenticationProviders = (UpdateWorkspaceAuthentication -> [AuthenticationProviderTypes])
-> (UpdateWorkspaceAuthentication
-> [AuthenticationProviderTypes] -> UpdateWorkspaceAuthentication)
-> Lens
UpdateWorkspaceAuthentication
UpdateWorkspaceAuthentication
[AuthenticationProviderTypes]
[AuthenticationProviderTypes]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateWorkspaceAuthentication' {[AuthenticationProviderTypes]
authenticationProviders :: [AuthenticationProviderTypes]
$sel:authenticationProviders:UpdateWorkspaceAuthentication' :: UpdateWorkspaceAuthentication -> [AuthenticationProviderTypes]
authenticationProviders} -> [AuthenticationProviderTypes]
authenticationProviders) (\s :: UpdateWorkspaceAuthentication
s@UpdateWorkspaceAuthentication' {} [AuthenticationProviderTypes]
a -> UpdateWorkspaceAuthentication
s {$sel:authenticationProviders:UpdateWorkspaceAuthentication' :: [AuthenticationProviderTypes]
authenticationProviders = [AuthenticationProviderTypes]
a} :: UpdateWorkspaceAuthentication) (([AuthenticationProviderTypes] -> f [AuthenticationProviderTypes])
-> UpdateWorkspaceAuthentication
-> f UpdateWorkspaceAuthentication)
-> (([AuthenticationProviderTypes]
-> f [AuthenticationProviderTypes])
-> [AuthenticationProviderTypes]
-> f [AuthenticationProviderTypes])
-> ([AuthenticationProviderTypes]
-> f [AuthenticationProviderTypes])
-> UpdateWorkspaceAuthentication
-> f UpdateWorkspaceAuthentication
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([AuthenticationProviderTypes] -> f [AuthenticationProviderTypes])
-> [AuthenticationProviderTypes] -> f [AuthenticationProviderTypes]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateWorkspaceAuthentication_workspaceId :: Lens.Lens' UpdateWorkspaceAuthentication Prelude.Text
updateWorkspaceAuthentication_workspaceId :: (Text -> f Text)
-> UpdateWorkspaceAuthentication -> f UpdateWorkspaceAuthentication
updateWorkspaceAuthentication_workspaceId = (UpdateWorkspaceAuthentication -> Text)
-> (UpdateWorkspaceAuthentication
-> Text -> UpdateWorkspaceAuthentication)
-> Lens
UpdateWorkspaceAuthentication
UpdateWorkspaceAuthentication
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateWorkspaceAuthentication' {Text
workspaceId :: Text
$sel:workspaceId:UpdateWorkspaceAuthentication' :: UpdateWorkspaceAuthentication -> Text
workspaceId} -> Text
workspaceId) (\s :: UpdateWorkspaceAuthentication
s@UpdateWorkspaceAuthentication' {} Text
a -> UpdateWorkspaceAuthentication
s {$sel:workspaceId:UpdateWorkspaceAuthentication' :: Text
workspaceId = Text
a} :: UpdateWorkspaceAuthentication)
instance
Core.AWSRequest
UpdateWorkspaceAuthentication
where
type
AWSResponse UpdateWorkspaceAuthentication =
UpdateWorkspaceAuthenticationResponse
request :: UpdateWorkspaceAuthentication
-> Request UpdateWorkspaceAuthentication
request = Service
-> UpdateWorkspaceAuthentication
-> Request UpdateWorkspaceAuthentication
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateWorkspaceAuthentication
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateWorkspaceAuthentication)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse UpdateWorkspaceAuthentication))
-> Logger
-> Service
-> Proxy UpdateWorkspaceAuthentication
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateWorkspaceAuthentication)))
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 ->
Int
-> AuthenticationDescription
-> UpdateWorkspaceAuthenticationResponse
UpdateWorkspaceAuthenticationResponse'
(Int
-> AuthenticationDescription
-> UpdateWorkspaceAuthenticationResponse)
-> Either String Int
-> Either
String
(AuthenticationDescription
-> UpdateWorkspaceAuthenticationResponse)
forall (f :: * -> *) a b. Functor 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))
Either
String
(AuthenticationDescription
-> UpdateWorkspaceAuthenticationResponse)
-> Either String AuthenticationDescription
-> Either String UpdateWorkspaceAuthenticationResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String AuthenticationDescription
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"authentication")
)
instance
Prelude.Hashable
UpdateWorkspaceAuthentication
instance Prelude.NFData UpdateWorkspaceAuthentication
instance Core.ToHeaders UpdateWorkspaceAuthentication where
toHeaders :: UpdateWorkspaceAuthentication -> ResponseHeaders
toHeaders =
ResponseHeaders -> UpdateWorkspaceAuthentication -> 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 UpdateWorkspaceAuthentication where
toJSON :: UpdateWorkspaceAuthentication -> Value
toJSON UpdateWorkspaceAuthentication' {[AuthenticationProviderTypes]
Maybe SamlConfiguration
Text
workspaceId :: Text
authenticationProviders :: [AuthenticationProviderTypes]
samlConfiguration :: Maybe SamlConfiguration
$sel:workspaceId:UpdateWorkspaceAuthentication' :: UpdateWorkspaceAuthentication -> Text
$sel:authenticationProviders:UpdateWorkspaceAuthentication' :: UpdateWorkspaceAuthentication -> [AuthenticationProviderTypes]
$sel:samlConfiguration:UpdateWorkspaceAuthentication' :: UpdateWorkspaceAuthentication -> Maybe SamlConfiguration
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"samlConfiguration" Text -> SamlConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(SamlConfiguration -> Pair)
-> Maybe SamlConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SamlConfiguration
samlConfiguration,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"authenticationProviders"
Text -> [AuthenticationProviderTypes] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= [AuthenticationProviderTypes]
authenticationProviders
)
]
)
instance Core.ToPath UpdateWorkspaceAuthentication where
toPath :: UpdateWorkspaceAuthentication -> ByteString
toPath UpdateWorkspaceAuthentication' {[AuthenticationProviderTypes]
Maybe SamlConfiguration
Text
workspaceId :: Text
authenticationProviders :: [AuthenticationProviderTypes]
samlConfiguration :: Maybe SamlConfiguration
$sel:workspaceId:UpdateWorkspaceAuthentication' :: UpdateWorkspaceAuthentication -> Text
$sel:authenticationProviders:UpdateWorkspaceAuthentication' :: UpdateWorkspaceAuthentication -> [AuthenticationProviderTypes]
$sel:samlConfiguration:UpdateWorkspaceAuthentication' :: UpdateWorkspaceAuthentication -> Maybe SamlConfiguration
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/workspaces/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
workspaceId,
ByteString
"/authentication"
]
instance Core.ToQuery UpdateWorkspaceAuthentication where
toQuery :: UpdateWorkspaceAuthentication -> QueryString
toQuery = QueryString -> UpdateWorkspaceAuthentication -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdateWorkspaceAuthenticationResponse = UpdateWorkspaceAuthenticationResponse'
{
UpdateWorkspaceAuthenticationResponse -> Int
httpStatus :: Prelude.Int,
UpdateWorkspaceAuthenticationResponse -> AuthenticationDescription
authentication :: AuthenticationDescription
}
deriving (UpdateWorkspaceAuthenticationResponse
-> UpdateWorkspaceAuthenticationResponse -> Bool
(UpdateWorkspaceAuthenticationResponse
-> UpdateWorkspaceAuthenticationResponse -> Bool)
-> (UpdateWorkspaceAuthenticationResponse
-> UpdateWorkspaceAuthenticationResponse -> Bool)
-> Eq UpdateWorkspaceAuthenticationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateWorkspaceAuthenticationResponse
-> UpdateWorkspaceAuthenticationResponse -> Bool
$c/= :: UpdateWorkspaceAuthenticationResponse
-> UpdateWorkspaceAuthenticationResponse -> Bool
== :: UpdateWorkspaceAuthenticationResponse
-> UpdateWorkspaceAuthenticationResponse -> Bool
$c== :: UpdateWorkspaceAuthenticationResponse
-> UpdateWorkspaceAuthenticationResponse -> Bool
Prelude.Eq, ReadPrec [UpdateWorkspaceAuthenticationResponse]
ReadPrec UpdateWorkspaceAuthenticationResponse
Int -> ReadS UpdateWorkspaceAuthenticationResponse
ReadS [UpdateWorkspaceAuthenticationResponse]
(Int -> ReadS UpdateWorkspaceAuthenticationResponse)
-> ReadS [UpdateWorkspaceAuthenticationResponse]
-> ReadPrec UpdateWorkspaceAuthenticationResponse
-> ReadPrec [UpdateWorkspaceAuthenticationResponse]
-> Read UpdateWorkspaceAuthenticationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateWorkspaceAuthenticationResponse]
$creadListPrec :: ReadPrec [UpdateWorkspaceAuthenticationResponse]
readPrec :: ReadPrec UpdateWorkspaceAuthenticationResponse
$creadPrec :: ReadPrec UpdateWorkspaceAuthenticationResponse
readList :: ReadS [UpdateWorkspaceAuthenticationResponse]
$creadList :: ReadS [UpdateWorkspaceAuthenticationResponse]
readsPrec :: Int -> ReadS UpdateWorkspaceAuthenticationResponse
$creadsPrec :: Int -> ReadS UpdateWorkspaceAuthenticationResponse
Prelude.Read, Int -> UpdateWorkspaceAuthenticationResponse -> ShowS
[UpdateWorkspaceAuthenticationResponse] -> ShowS
UpdateWorkspaceAuthenticationResponse -> String
(Int -> UpdateWorkspaceAuthenticationResponse -> ShowS)
-> (UpdateWorkspaceAuthenticationResponse -> String)
-> ([UpdateWorkspaceAuthenticationResponse] -> ShowS)
-> Show UpdateWorkspaceAuthenticationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateWorkspaceAuthenticationResponse] -> ShowS
$cshowList :: [UpdateWorkspaceAuthenticationResponse] -> ShowS
show :: UpdateWorkspaceAuthenticationResponse -> String
$cshow :: UpdateWorkspaceAuthenticationResponse -> String
showsPrec :: Int -> UpdateWorkspaceAuthenticationResponse -> ShowS
$cshowsPrec :: Int -> UpdateWorkspaceAuthenticationResponse -> ShowS
Prelude.Show, (forall x.
UpdateWorkspaceAuthenticationResponse
-> Rep UpdateWorkspaceAuthenticationResponse x)
-> (forall x.
Rep UpdateWorkspaceAuthenticationResponse x
-> UpdateWorkspaceAuthenticationResponse)
-> Generic UpdateWorkspaceAuthenticationResponse
forall x.
Rep UpdateWorkspaceAuthenticationResponse x
-> UpdateWorkspaceAuthenticationResponse
forall x.
UpdateWorkspaceAuthenticationResponse
-> Rep UpdateWorkspaceAuthenticationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateWorkspaceAuthenticationResponse x
-> UpdateWorkspaceAuthenticationResponse
$cfrom :: forall x.
UpdateWorkspaceAuthenticationResponse
-> Rep UpdateWorkspaceAuthenticationResponse x
Prelude.Generic)
newUpdateWorkspaceAuthenticationResponse ::
Prelude.Int ->
AuthenticationDescription ->
UpdateWorkspaceAuthenticationResponse
newUpdateWorkspaceAuthenticationResponse :: Int
-> AuthenticationDescription
-> UpdateWorkspaceAuthenticationResponse
newUpdateWorkspaceAuthenticationResponse
Int
pHttpStatus_
AuthenticationDescription
pAuthentication_ =
UpdateWorkspaceAuthenticationResponse' :: Int
-> AuthenticationDescription
-> UpdateWorkspaceAuthenticationResponse
UpdateWorkspaceAuthenticationResponse'
{ $sel:httpStatus:UpdateWorkspaceAuthenticationResponse' :: Int
httpStatus =
Int
pHttpStatus_,
$sel:authentication:UpdateWorkspaceAuthenticationResponse' :: AuthenticationDescription
authentication = AuthenticationDescription
pAuthentication_
}
updateWorkspaceAuthenticationResponse_httpStatus :: Lens.Lens' UpdateWorkspaceAuthenticationResponse Prelude.Int
updateWorkspaceAuthenticationResponse_httpStatus :: (Int -> f Int)
-> UpdateWorkspaceAuthenticationResponse
-> f UpdateWorkspaceAuthenticationResponse
updateWorkspaceAuthenticationResponse_httpStatus = (UpdateWorkspaceAuthenticationResponse -> Int)
-> (UpdateWorkspaceAuthenticationResponse
-> Int -> UpdateWorkspaceAuthenticationResponse)
-> Lens
UpdateWorkspaceAuthenticationResponse
UpdateWorkspaceAuthenticationResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateWorkspaceAuthenticationResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateWorkspaceAuthenticationResponse' :: UpdateWorkspaceAuthenticationResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateWorkspaceAuthenticationResponse
s@UpdateWorkspaceAuthenticationResponse' {} Int
a -> UpdateWorkspaceAuthenticationResponse
s {$sel:httpStatus:UpdateWorkspaceAuthenticationResponse' :: Int
httpStatus = Int
a} :: UpdateWorkspaceAuthenticationResponse)
updateWorkspaceAuthenticationResponse_authentication :: Lens.Lens' UpdateWorkspaceAuthenticationResponse AuthenticationDescription
updateWorkspaceAuthenticationResponse_authentication :: (AuthenticationDescription -> f AuthenticationDescription)
-> UpdateWorkspaceAuthenticationResponse
-> f UpdateWorkspaceAuthenticationResponse
updateWorkspaceAuthenticationResponse_authentication = (UpdateWorkspaceAuthenticationResponse
-> AuthenticationDescription)
-> (UpdateWorkspaceAuthenticationResponse
-> AuthenticationDescription
-> UpdateWorkspaceAuthenticationResponse)
-> Lens
UpdateWorkspaceAuthenticationResponse
UpdateWorkspaceAuthenticationResponse
AuthenticationDescription
AuthenticationDescription
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateWorkspaceAuthenticationResponse' {AuthenticationDescription
authentication :: AuthenticationDescription
$sel:authentication:UpdateWorkspaceAuthenticationResponse' :: UpdateWorkspaceAuthenticationResponse -> AuthenticationDescription
authentication} -> AuthenticationDescription
authentication) (\s :: UpdateWorkspaceAuthenticationResponse
s@UpdateWorkspaceAuthenticationResponse' {} AuthenticationDescription
a -> UpdateWorkspaceAuthenticationResponse
s {$sel:authentication:UpdateWorkspaceAuthenticationResponse' :: AuthenticationDescription
authentication = AuthenticationDescription
a} :: UpdateWorkspaceAuthenticationResponse)
instance
Prelude.NFData
UpdateWorkspaceAuthenticationResponse