{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.SSM.Types.SessionManagerOutputUrl where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data SessionManagerOutputUrl = SessionManagerOutputUrl'
{
SessionManagerOutputUrl -> Maybe Text
s3OutputUrl :: Prelude.Maybe Prelude.Text,
SessionManagerOutputUrl -> Maybe Text
cloudWatchOutputUrl :: Prelude.Maybe Prelude.Text
}
deriving (SessionManagerOutputUrl -> SessionManagerOutputUrl -> Bool
(SessionManagerOutputUrl -> SessionManagerOutputUrl -> Bool)
-> (SessionManagerOutputUrl -> SessionManagerOutputUrl -> Bool)
-> Eq SessionManagerOutputUrl
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SessionManagerOutputUrl -> SessionManagerOutputUrl -> Bool
$c/= :: SessionManagerOutputUrl -> SessionManagerOutputUrl -> Bool
== :: SessionManagerOutputUrl -> SessionManagerOutputUrl -> Bool
$c== :: SessionManagerOutputUrl -> SessionManagerOutputUrl -> Bool
Prelude.Eq, ReadPrec [SessionManagerOutputUrl]
ReadPrec SessionManagerOutputUrl
Int -> ReadS SessionManagerOutputUrl
ReadS [SessionManagerOutputUrl]
(Int -> ReadS SessionManagerOutputUrl)
-> ReadS [SessionManagerOutputUrl]
-> ReadPrec SessionManagerOutputUrl
-> ReadPrec [SessionManagerOutputUrl]
-> Read SessionManagerOutputUrl
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SessionManagerOutputUrl]
$creadListPrec :: ReadPrec [SessionManagerOutputUrl]
readPrec :: ReadPrec SessionManagerOutputUrl
$creadPrec :: ReadPrec SessionManagerOutputUrl
readList :: ReadS [SessionManagerOutputUrl]
$creadList :: ReadS [SessionManagerOutputUrl]
readsPrec :: Int -> ReadS SessionManagerOutputUrl
$creadsPrec :: Int -> ReadS SessionManagerOutputUrl
Prelude.Read, Int -> SessionManagerOutputUrl -> ShowS
[SessionManagerOutputUrl] -> ShowS
SessionManagerOutputUrl -> String
(Int -> SessionManagerOutputUrl -> ShowS)
-> (SessionManagerOutputUrl -> String)
-> ([SessionManagerOutputUrl] -> ShowS)
-> Show SessionManagerOutputUrl
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SessionManagerOutputUrl] -> ShowS
$cshowList :: [SessionManagerOutputUrl] -> ShowS
show :: SessionManagerOutputUrl -> String
$cshow :: SessionManagerOutputUrl -> String
showsPrec :: Int -> SessionManagerOutputUrl -> ShowS
$cshowsPrec :: Int -> SessionManagerOutputUrl -> ShowS
Prelude.Show, (forall x.
SessionManagerOutputUrl -> Rep SessionManagerOutputUrl x)
-> (forall x.
Rep SessionManagerOutputUrl x -> SessionManagerOutputUrl)
-> Generic SessionManagerOutputUrl
forall x. Rep SessionManagerOutputUrl x -> SessionManagerOutputUrl
forall x. SessionManagerOutputUrl -> Rep SessionManagerOutputUrl x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep SessionManagerOutputUrl x -> SessionManagerOutputUrl
$cfrom :: forall x. SessionManagerOutputUrl -> Rep SessionManagerOutputUrl x
Prelude.Generic)
newSessionManagerOutputUrl ::
SessionManagerOutputUrl
newSessionManagerOutputUrl :: SessionManagerOutputUrl
newSessionManagerOutputUrl =
SessionManagerOutputUrl' :: Maybe Text -> Maybe Text -> SessionManagerOutputUrl
SessionManagerOutputUrl'
{ $sel:s3OutputUrl:SessionManagerOutputUrl' :: Maybe Text
s3OutputUrl =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:cloudWatchOutputUrl:SessionManagerOutputUrl' :: Maybe Text
cloudWatchOutputUrl = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
sessionManagerOutputUrl_s3OutputUrl :: Lens.Lens' SessionManagerOutputUrl (Prelude.Maybe Prelude.Text)
sessionManagerOutputUrl_s3OutputUrl :: (Maybe Text -> f (Maybe Text))
-> SessionManagerOutputUrl -> f SessionManagerOutputUrl
sessionManagerOutputUrl_s3OutputUrl = (SessionManagerOutputUrl -> Maybe Text)
-> (SessionManagerOutputUrl
-> Maybe Text -> SessionManagerOutputUrl)
-> Lens
SessionManagerOutputUrl
SessionManagerOutputUrl
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SessionManagerOutputUrl' {Maybe Text
s3OutputUrl :: Maybe Text
$sel:s3OutputUrl:SessionManagerOutputUrl' :: SessionManagerOutputUrl -> Maybe Text
s3OutputUrl} -> Maybe Text
s3OutputUrl) (\s :: SessionManagerOutputUrl
s@SessionManagerOutputUrl' {} Maybe Text
a -> SessionManagerOutputUrl
s {$sel:s3OutputUrl:SessionManagerOutputUrl' :: Maybe Text
s3OutputUrl = Maybe Text
a} :: SessionManagerOutputUrl)
sessionManagerOutputUrl_cloudWatchOutputUrl :: Lens.Lens' SessionManagerOutputUrl (Prelude.Maybe Prelude.Text)
sessionManagerOutputUrl_cloudWatchOutputUrl :: (Maybe Text -> f (Maybe Text))
-> SessionManagerOutputUrl -> f SessionManagerOutputUrl
sessionManagerOutputUrl_cloudWatchOutputUrl = (SessionManagerOutputUrl -> Maybe Text)
-> (SessionManagerOutputUrl
-> Maybe Text -> SessionManagerOutputUrl)
-> Lens
SessionManagerOutputUrl
SessionManagerOutputUrl
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SessionManagerOutputUrl' {Maybe Text
cloudWatchOutputUrl :: Maybe Text
$sel:cloudWatchOutputUrl:SessionManagerOutputUrl' :: SessionManagerOutputUrl -> Maybe Text
cloudWatchOutputUrl} -> Maybe Text
cloudWatchOutputUrl) (\s :: SessionManagerOutputUrl
s@SessionManagerOutputUrl' {} Maybe Text
a -> SessionManagerOutputUrl
s {$sel:cloudWatchOutputUrl:SessionManagerOutputUrl' :: Maybe Text
cloudWatchOutputUrl = Maybe Text
a} :: SessionManagerOutputUrl)
instance Core.FromJSON SessionManagerOutputUrl where
parseJSON :: Value -> Parser SessionManagerOutputUrl
parseJSON =
String
-> (Object -> Parser SessionManagerOutputUrl)
-> Value
-> Parser SessionManagerOutputUrl
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"SessionManagerOutputUrl"
( \Object
x ->
Maybe Text -> Maybe Text -> SessionManagerOutputUrl
SessionManagerOutputUrl'
(Maybe Text -> Maybe Text -> SessionManagerOutputUrl)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> SessionManagerOutputUrl)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"S3OutputUrl")
Parser (Maybe Text -> SessionManagerOutputUrl)
-> Parser (Maybe Text) -> Parser SessionManagerOutputUrl
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CloudWatchOutputUrl")
)
instance Prelude.Hashable SessionManagerOutputUrl
instance Prelude.NFData SessionManagerOutputUrl