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

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

-- |
-- Module      : Amazonka.SSM.RegisterPatchBaselineForPatchGroup
-- 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)
--
-- Registers a patch baseline for a patch group.
module Amazonka.SSM.RegisterPatchBaselineForPatchGroup
  ( -- * Creating a Request
    RegisterPatchBaselineForPatchGroup (..),
    newRegisterPatchBaselineForPatchGroup,

    -- * Request Lenses
    registerPatchBaselineForPatchGroup_baselineId,
    registerPatchBaselineForPatchGroup_patchGroup,

    -- * Destructuring the Response
    RegisterPatchBaselineForPatchGroupResponse (..),
    newRegisterPatchBaselineForPatchGroupResponse,

    -- * Response Lenses
    registerPatchBaselineForPatchGroupResponse_baselineId,
    registerPatchBaselineForPatchGroupResponse_patchGroup,
    registerPatchBaselineForPatchGroupResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.SSM.Types

-- | /See:/ 'newRegisterPatchBaselineForPatchGroup' smart constructor.
data RegisterPatchBaselineForPatchGroup = RegisterPatchBaselineForPatchGroup'
  { -- | The ID of the patch baseline to register with the patch group.
    RegisterPatchBaselineForPatchGroup -> Text
baselineId :: Prelude.Text,
    -- | The name of the patch group to be registered with the patch baseline.
    RegisterPatchBaselineForPatchGroup -> Text
patchGroup :: Prelude.Text
  }
  deriving (RegisterPatchBaselineForPatchGroup
-> RegisterPatchBaselineForPatchGroup -> Bool
(RegisterPatchBaselineForPatchGroup
 -> RegisterPatchBaselineForPatchGroup -> Bool)
-> (RegisterPatchBaselineForPatchGroup
    -> RegisterPatchBaselineForPatchGroup -> Bool)
-> Eq RegisterPatchBaselineForPatchGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RegisterPatchBaselineForPatchGroup
-> RegisterPatchBaselineForPatchGroup -> Bool
$c/= :: RegisterPatchBaselineForPatchGroup
-> RegisterPatchBaselineForPatchGroup -> Bool
== :: RegisterPatchBaselineForPatchGroup
-> RegisterPatchBaselineForPatchGroup -> Bool
$c== :: RegisterPatchBaselineForPatchGroup
-> RegisterPatchBaselineForPatchGroup -> Bool
Prelude.Eq, ReadPrec [RegisterPatchBaselineForPatchGroup]
ReadPrec RegisterPatchBaselineForPatchGroup
Int -> ReadS RegisterPatchBaselineForPatchGroup
ReadS [RegisterPatchBaselineForPatchGroup]
(Int -> ReadS RegisterPatchBaselineForPatchGroup)
-> ReadS [RegisterPatchBaselineForPatchGroup]
-> ReadPrec RegisterPatchBaselineForPatchGroup
-> ReadPrec [RegisterPatchBaselineForPatchGroup]
-> Read RegisterPatchBaselineForPatchGroup
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RegisterPatchBaselineForPatchGroup]
$creadListPrec :: ReadPrec [RegisterPatchBaselineForPatchGroup]
readPrec :: ReadPrec RegisterPatchBaselineForPatchGroup
$creadPrec :: ReadPrec RegisterPatchBaselineForPatchGroup
readList :: ReadS [RegisterPatchBaselineForPatchGroup]
$creadList :: ReadS [RegisterPatchBaselineForPatchGroup]
readsPrec :: Int -> ReadS RegisterPatchBaselineForPatchGroup
$creadsPrec :: Int -> ReadS RegisterPatchBaselineForPatchGroup
Prelude.Read, Int -> RegisterPatchBaselineForPatchGroup -> ShowS
[RegisterPatchBaselineForPatchGroup] -> ShowS
RegisterPatchBaselineForPatchGroup -> String
(Int -> RegisterPatchBaselineForPatchGroup -> ShowS)
-> (RegisterPatchBaselineForPatchGroup -> String)
-> ([RegisterPatchBaselineForPatchGroup] -> ShowS)
-> Show RegisterPatchBaselineForPatchGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RegisterPatchBaselineForPatchGroup] -> ShowS
$cshowList :: [RegisterPatchBaselineForPatchGroup] -> ShowS
show :: RegisterPatchBaselineForPatchGroup -> String
$cshow :: RegisterPatchBaselineForPatchGroup -> String
showsPrec :: Int -> RegisterPatchBaselineForPatchGroup -> ShowS
$cshowsPrec :: Int -> RegisterPatchBaselineForPatchGroup -> ShowS
Prelude.Show, (forall x.
 RegisterPatchBaselineForPatchGroup
 -> Rep RegisterPatchBaselineForPatchGroup x)
-> (forall x.
    Rep RegisterPatchBaselineForPatchGroup x
    -> RegisterPatchBaselineForPatchGroup)
-> Generic RegisterPatchBaselineForPatchGroup
forall x.
Rep RegisterPatchBaselineForPatchGroup x
-> RegisterPatchBaselineForPatchGroup
forall x.
RegisterPatchBaselineForPatchGroup
-> Rep RegisterPatchBaselineForPatchGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RegisterPatchBaselineForPatchGroup x
-> RegisterPatchBaselineForPatchGroup
$cfrom :: forall x.
RegisterPatchBaselineForPatchGroup
-> Rep RegisterPatchBaselineForPatchGroup x
Prelude.Generic)

-- |
-- Create a value of 'RegisterPatchBaselineForPatchGroup' 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:
--
-- 'baselineId', 'registerPatchBaselineForPatchGroup_baselineId' - The ID of the patch baseline to register with the patch group.
--
-- 'patchGroup', 'registerPatchBaselineForPatchGroup_patchGroup' - The name of the patch group to be registered with the patch baseline.
newRegisterPatchBaselineForPatchGroup ::
  -- | 'baselineId'
  Prelude.Text ->
  -- | 'patchGroup'
  Prelude.Text ->
  RegisterPatchBaselineForPatchGroup
newRegisterPatchBaselineForPatchGroup :: Text -> Text -> RegisterPatchBaselineForPatchGroup
newRegisterPatchBaselineForPatchGroup
  Text
pBaselineId_
  Text
pPatchGroup_ =
    RegisterPatchBaselineForPatchGroup' :: Text -> Text -> RegisterPatchBaselineForPatchGroup
RegisterPatchBaselineForPatchGroup'
      { $sel:baselineId:RegisterPatchBaselineForPatchGroup' :: Text
baselineId =
          Text
pBaselineId_,
        $sel:patchGroup:RegisterPatchBaselineForPatchGroup' :: Text
patchGroup = Text
pPatchGroup_
      }

-- | The ID of the patch baseline to register with the patch group.
registerPatchBaselineForPatchGroup_baselineId :: Lens.Lens' RegisterPatchBaselineForPatchGroup Prelude.Text
registerPatchBaselineForPatchGroup_baselineId :: (Text -> f Text)
-> RegisterPatchBaselineForPatchGroup
-> f RegisterPatchBaselineForPatchGroup
registerPatchBaselineForPatchGroup_baselineId = (RegisterPatchBaselineForPatchGroup -> Text)
-> (RegisterPatchBaselineForPatchGroup
    -> Text -> RegisterPatchBaselineForPatchGroup)
-> Lens
     RegisterPatchBaselineForPatchGroup
     RegisterPatchBaselineForPatchGroup
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RegisterPatchBaselineForPatchGroup' {Text
baselineId :: Text
$sel:baselineId:RegisterPatchBaselineForPatchGroup' :: RegisterPatchBaselineForPatchGroup -> Text
baselineId} -> Text
baselineId) (\s :: RegisterPatchBaselineForPatchGroup
s@RegisterPatchBaselineForPatchGroup' {} Text
a -> RegisterPatchBaselineForPatchGroup
s {$sel:baselineId:RegisterPatchBaselineForPatchGroup' :: Text
baselineId = Text
a} :: RegisterPatchBaselineForPatchGroup)

-- | The name of the patch group to be registered with the patch baseline.
registerPatchBaselineForPatchGroup_patchGroup :: Lens.Lens' RegisterPatchBaselineForPatchGroup Prelude.Text
registerPatchBaselineForPatchGroup_patchGroup :: (Text -> f Text)
-> RegisterPatchBaselineForPatchGroup
-> f RegisterPatchBaselineForPatchGroup
registerPatchBaselineForPatchGroup_patchGroup = (RegisterPatchBaselineForPatchGroup -> Text)
-> (RegisterPatchBaselineForPatchGroup
    -> Text -> RegisterPatchBaselineForPatchGroup)
-> Lens
     RegisterPatchBaselineForPatchGroup
     RegisterPatchBaselineForPatchGroup
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RegisterPatchBaselineForPatchGroup' {Text
patchGroup :: Text
$sel:patchGroup:RegisterPatchBaselineForPatchGroup' :: RegisterPatchBaselineForPatchGroup -> Text
patchGroup} -> Text
patchGroup) (\s :: RegisterPatchBaselineForPatchGroup
s@RegisterPatchBaselineForPatchGroup' {} Text
a -> RegisterPatchBaselineForPatchGroup
s {$sel:patchGroup:RegisterPatchBaselineForPatchGroup' :: Text
patchGroup = Text
a} :: RegisterPatchBaselineForPatchGroup)

instance
  Core.AWSRequest
    RegisterPatchBaselineForPatchGroup
  where
  type
    AWSResponse RegisterPatchBaselineForPatchGroup =
      RegisterPatchBaselineForPatchGroupResponse
  request :: RegisterPatchBaselineForPatchGroup
-> Request RegisterPatchBaselineForPatchGroup
request = Service
-> RegisterPatchBaselineForPatchGroup
-> Request RegisterPatchBaselineForPatchGroup
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy RegisterPatchBaselineForPatchGroup
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse RegisterPatchBaselineForPatchGroup)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse RegisterPatchBaselineForPatchGroup))
-> Logger
-> Service
-> Proxy RegisterPatchBaselineForPatchGroup
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse RegisterPatchBaselineForPatchGroup)))
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 Text -> Int -> RegisterPatchBaselineForPatchGroupResponse
RegisterPatchBaselineForPatchGroupResponse'
            (Maybe Text
 -> Maybe Text -> Int -> RegisterPatchBaselineForPatchGroupResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text -> Int -> RegisterPatchBaselineForPatchGroupResponse)
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
"BaselineId")
              Either
  String
  (Maybe Text -> Int -> RegisterPatchBaselineForPatchGroupResponse)
-> Either String (Maybe Text)
-> Either
     String (Int -> RegisterPatchBaselineForPatchGroupResponse)
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
"PatchGroup")
              Either String (Int -> RegisterPatchBaselineForPatchGroupResponse)
-> Either String Int
-> Either String RegisterPatchBaselineForPatchGroupResponse
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
    RegisterPatchBaselineForPatchGroup

instance
  Prelude.NFData
    RegisterPatchBaselineForPatchGroup

instance
  Core.ToHeaders
    RegisterPatchBaselineForPatchGroup
  where
  toHeaders :: RegisterPatchBaselineForPatchGroup -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> RegisterPatchBaselineForPatchGroup -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AmazonSSM.RegisterPatchBaselineForPatchGroup" ::
                          Prelude.ByteString
                      ),
            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
    RegisterPatchBaselineForPatchGroup
  where
  toJSON :: RegisterPatchBaselineForPatchGroup -> Value
toJSON RegisterPatchBaselineForPatchGroup' {Text
patchGroup :: Text
baselineId :: Text
$sel:patchGroup:RegisterPatchBaselineForPatchGroup' :: RegisterPatchBaselineForPatchGroup -> Text
$sel:baselineId:RegisterPatchBaselineForPatchGroup' :: RegisterPatchBaselineForPatchGroup -> Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"BaselineId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
baselineId),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"PatchGroup" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
patchGroup)
          ]
      )

instance
  Core.ToPath
    RegisterPatchBaselineForPatchGroup
  where
  toPath :: RegisterPatchBaselineForPatchGroup -> ByteString
toPath = ByteString -> RegisterPatchBaselineForPatchGroup -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance
  Core.ToQuery
    RegisterPatchBaselineForPatchGroup
  where
  toQuery :: RegisterPatchBaselineForPatchGroup -> QueryString
toQuery = QueryString -> RegisterPatchBaselineForPatchGroup -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newRegisterPatchBaselineForPatchGroupResponse' smart constructor.
data RegisterPatchBaselineForPatchGroupResponse = RegisterPatchBaselineForPatchGroupResponse'
  { -- | The ID of the patch baseline the patch group was registered with.
    RegisterPatchBaselineForPatchGroupResponse -> Maybe Text
baselineId :: Prelude.Maybe Prelude.Text,
    -- | The name of the patch group registered with the patch baseline.
    RegisterPatchBaselineForPatchGroupResponse -> Maybe Text
patchGroup :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    RegisterPatchBaselineForPatchGroupResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (RegisterPatchBaselineForPatchGroupResponse
-> RegisterPatchBaselineForPatchGroupResponse -> Bool
(RegisterPatchBaselineForPatchGroupResponse
 -> RegisterPatchBaselineForPatchGroupResponse -> Bool)
-> (RegisterPatchBaselineForPatchGroupResponse
    -> RegisterPatchBaselineForPatchGroupResponse -> Bool)
-> Eq RegisterPatchBaselineForPatchGroupResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RegisterPatchBaselineForPatchGroupResponse
-> RegisterPatchBaselineForPatchGroupResponse -> Bool
$c/= :: RegisterPatchBaselineForPatchGroupResponse
-> RegisterPatchBaselineForPatchGroupResponse -> Bool
== :: RegisterPatchBaselineForPatchGroupResponse
-> RegisterPatchBaselineForPatchGroupResponse -> Bool
$c== :: RegisterPatchBaselineForPatchGroupResponse
-> RegisterPatchBaselineForPatchGroupResponse -> Bool
Prelude.Eq, ReadPrec [RegisterPatchBaselineForPatchGroupResponse]
ReadPrec RegisterPatchBaselineForPatchGroupResponse
Int -> ReadS RegisterPatchBaselineForPatchGroupResponse
ReadS [RegisterPatchBaselineForPatchGroupResponse]
(Int -> ReadS RegisterPatchBaselineForPatchGroupResponse)
-> ReadS [RegisterPatchBaselineForPatchGroupResponse]
-> ReadPrec RegisterPatchBaselineForPatchGroupResponse
-> ReadPrec [RegisterPatchBaselineForPatchGroupResponse]
-> Read RegisterPatchBaselineForPatchGroupResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RegisterPatchBaselineForPatchGroupResponse]
$creadListPrec :: ReadPrec [RegisterPatchBaselineForPatchGroupResponse]
readPrec :: ReadPrec RegisterPatchBaselineForPatchGroupResponse
$creadPrec :: ReadPrec RegisterPatchBaselineForPatchGroupResponse
readList :: ReadS [RegisterPatchBaselineForPatchGroupResponse]
$creadList :: ReadS [RegisterPatchBaselineForPatchGroupResponse]
readsPrec :: Int -> ReadS RegisterPatchBaselineForPatchGroupResponse
$creadsPrec :: Int -> ReadS RegisterPatchBaselineForPatchGroupResponse
Prelude.Read, Int -> RegisterPatchBaselineForPatchGroupResponse -> ShowS
[RegisterPatchBaselineForPatchGroupResponse] -> ShowS
RegisterPatchBaselineForPatchGroupResponse -> String
(Int -> RegisterPatchBaselineForPatchGroupResponse -> ShowS)
-> (RegisterPatchBaselineForPatchGroupResponse -> String)
-> ([RegisterPatchBaselineForPatchGroupResponse] -> ShowS)
-> Show RegisterPatchBaselineForPatchGroupResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RegisterPatchBaselineForPatchGroupResponse] -> ShowS
$cshowList :: [RegisterPatchBaselineForPatchGroupResponse] -> ShowS
show :: RegisterPatchBaselineForPatchGroupResponse -> String
$cshow :: RegisterPatchBaselineForPatchGroupResponse -> String
showsPrec :: Int -> RegisterPatchBaselineForPatchGroupResponse -> ShowS
$cshowsPrec :: Int -> RegisterPatchBaselineForPatchGroupResponse -> ShowS
Prelude.Show, (forall x.
 RegisterPatchBaselineForPatchGroupResponse
 -> Rep RegisterPatchBaselineForPatchGroupResponse x)
-> (forall x.
    Rep RegisterPatchBaselineForPatchGroupResponse x
    -> RegisterPatchBaselineForPatchGroupResponse)
-> Generic RegisterPatchBaselineForPatchGroupResponse
forall x.
Rep RegisterPatchBaselineForPatchGroupResponse x
-> RegisterPatchBaselineForPatchGroupResponse
forall x.
RegisterPatchBaselineForPatchGroupResponse
-> Rep RegisterPatchBaselineForPatchGroupResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RegisterPatchBaselineForPatchGroupResponse x
-> RegisterPatchBaselineForPatchGroupResponse
$cfrom :: forall x.
RegisterPatchBaselineForPatchGroupResponse
-> Rep RegisterPatchBaselineForPatchGroupResponse x
Prelude.Generic)

-- |
-- Create a value of 'RegisterPatchBaselineForPatchGroupResponse' 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:
--
-- 'baselineId', 'registerPatchBaselineForPatchGroupResponse_baselineId' - The ID of the patch baseline the patch group was registered with.
--
-- 'patchGroup', 'registerPatchBaselineForPatchGroupResponse_patchGroup' - The name of the patch group registered with the patch baseline.
--
-- 'httpStatus', 'registerPatchBaselineForPatchGroupResponse_httpStatus' - The response's http status code.
newRegisterPatchBaselineForPatchGroupResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  RegisterPatchBaselineForPatchGroupResponse
newRegisterPatchBaselineForPatchGroupResponse :: Int -> RegisterPatchBaselineForPatchGroupResponse
newRegisterPatchBaselineForPatchGroupResponse
  Int
pHttpStatus_ =
    RegisterPatchBaselineForPatchGroupResponse' :: Maybe Text
-> Maybe Text -> Int -> RegisterPatchBaselineForPatchGroupResponse
RegisterPatchBaselineForPatchGroupResponse'
      { $sel:baselineId:RegisterPatchBaselineForPatchGroupResponse' :: Maybe Text
baselineId =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:patchGroup:RegisterPatchBaselineForPatchGroupResponse' :: Maybe Text
patchGroup = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:RegisterPatchBaselineForPatchGroupResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The ID of the patch baseline the patch group was registered with.
registerPatchBaselineForPatchGroupResponse_baselineId :: Lens.Lens' RegisterPatchBaselineForPatchGroupResponse (Prelude.Maybe Prelude.Text)
registerPatchBaselineForPatchGroupResponse_baselineId :: (Maybe Text -> f (Maybe Text))
-> RegisterPatchBaselineForPatchGroupResponse
-> f RegisterPatchBaselineForPatchGroupResponse
registerPatchBaselineForPatchGroupResponse_baselineId = (RegisterPatchBaselineForPatchGroupResponse -> Maybe Text)
-> (RegisterPatchBaselineForPatchGroupResponse
    -> Maybe Text -> RegisterPatchBaselineForPatchGroupResponse)
-> Lens
     RegisterPatchBaselineForPatchGroupResponse
     RegisterPatchBaselineForPatchGroupResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RegisterPatchBaselineForPatchGroupResponse' {Maybe Text
baselineId :: Maybe Text
$sel:baselineId:RegisterPatchBaselineForPatchGroupResponse' :: RegisterPatchBaselineForPatchGroupResponse -> Maybe Text
baselineId} -> Maybe Text
baselineId) (\s :: RegisterPatchBaselineForPatchGroupResponse
s@RegisterPatchBaselineForPatchGroupResponse' {} Maybe Text
a -> RegisterPatchBaselineForPatchGroupResponse
s {$sel:baselineId:RegisterPatchBaselineForPatchGroupResponse' :: Maybe Text
baselineId = Maybe Text
a} :: RegisterPatchBaselineForPatchGroupResponse)

-- | The name of the patch group registered with the patch baseline.
registerPatchBaselineForPatchGroupResponse_patchGroup :: Lens.Lens' RegisterPatchBaselineForPatchGroupResponse (Prelude.Maybe Prelude.Text)
registerPatchBaselineForPatchGroupResponse_patchGroup :: (Maybe Text -> f (Maybe Text))
-> RegisterPatchBaselineForPatchGroupResponse
-> f RegisterPatchBaselineForPatchGroupResponse
registerPatchBaselineForPatchGroupResponse_patchGroup = (RegisterPatchBaselineForPatchGroupResponse -> Maybe Text)
-> (RegisterPatchBaselineForPatchGroupResponse
    -> Maybe Text -> RegisterPatchBaselineForPatchGroupResponse)
-> Lens
     RegisterPatchBaselineForPatchGroupResponse
     RegisterPatchBaselineForPatchGroupResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RegisterPatchBaselineForPatchGroupResponse' {Maybe Text
patchGroup :: Maybe Text
$sel:patchGroup:RegisterPatchBaselineForPatchGroupResponse' :: RegisterPatchBaselineForPatchGroupResponse -> Maybe Text
patchGroup} -> Maybe Text
patchGroup) (\s :: RegisterPatchBaselineForPatchGroupResponse
s@RegisterPatchBaselineForPatchGroupResponse' {} Maybe Text
a -> RegisterPatchBaselineForPatchGroupResponse
s {$sel:patchGroup:RegisterPatchBaselineForPatchGroupResponse' :: Maybe Text
patchGroup = Maybe Text
a} :: RegisterPatchBaselineForPatchGroupResponse)

-- | The response's http status code.
registerPatchBaselineForPatchGroupResponse_httpStatus :: Lens.Lens' RegisterPatchBaselineForPatchGroupResponse Prelude.Int
registerPatchBaselineForPatchGroupResponse_httpStatus :: (Int -> f Int)
-> RegisterPatchBaselineForPatchGroupResponse
-> f RegisterPatchBaselineForPatchGroupResponse
registerPatchBaselineForPatchGroupResponse_httpStatus = (RegisterPatchBaselineForPatchGroupResponse -> Int)
-> (RegisterPatchBaselineForPatchGroupResponse
    -> Int -> RegisterPatchBaselineForPatchGroupResponse)
-> Lens
     RegisterPatchBaselineForPatchGroupResponse
     RegisterPatchBaselineForPatchGroupResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RegisterPatchBaselineForPatchGroupResponse' {Int
httpStatus :: Int
$sel:httpStatus:RegisterPatchBaselineForPatchGroupResponse' :: RegisterPatchBaselineForPatchGroupResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: RegisterPatchBaselineForPatchGroupResponse
s@RegisterPatchBaselineForPatchGroupResponse' {} Int
a -> RegisterPatchBaselineForPatchGroupResponse
s {$sel:httpStatus:RegisterPatchBaselineForPatchGroupResponse' :: Int
httpStatus = Int
a} :: RegisterPatchBaselineForPatchGroupResponse)

instance
  Prelude.NFData
    RegisterPatchBaselineForPatchGroupResponse