{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.SSM.Types.SessionManagerOutputUrl
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.SSM.Types.SessionManagerOutputUrl where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Reserved for future use.
--
-- /See:/ 'newSessionManagerOutputUrl' smart constructor.
data SessionManagerOutputUrl = SessionManagerOutputUrl'
  { -- | Reserved for future use.
    SessionManagerOutputUrl -> Maybe Text
s3OutputUrl :: Prelude.Maybe Prelude.Text,
    -- | Reserved for future use.
    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)

-- |
-- Create a value of 'SessionManagerOutputUrl' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 's3OutputUrl', 'sessionManagerOutputUrl_s3OutputUrl' - Reserved for future use.
--
-- 'cloudWatchOutputUrl', 'sessionManagerOutputUrl_cloudWatchOutputUrl' - Reserved for future use.
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
    }

-- | Reserved for future use.
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)

-- | Reserved for future use.
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