{-# 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.DescribeInstancePatchStatesForPatchGroup
-- 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)
--
-- Retrieves the high-level patch state for the instances in the specified
-- patch group.
--
-- This operation returns paginated results.
module Amazonka.SSM.DescribeInstancePatchStatesForPatchGroup
  ( -- * Creating a Request
    DescribeInstancePatchStatesForPatchGroup (..),
    newDescribeInstancePatchStatesForPatchGroup,

    -- * Request Lenses
    describeInstancePatchStatesForPatchGroup_filters,
    describeInstancePatchStatesForPatchGroup_nextToken,
    describeInstancePatchStatesForPatchGroup_maxResults,
    describeInstancePatchStatesForPatchGroup_patchGroup,

    -- * Destructuring the Response
    DescribeInstancePatchStatesForPatchGroupResponse (..),
    newDescribeInstancePatchStatesForPatchGroupResponse,

    -- * Response Lenses
    describeInstancePatchStatesForPatchGroupResponse_nextToken,
    describeInstancePatchStatesForPatchGroupResponse_instancePatchStates,
    describeInstancePatchStatesForPatchGroupResponse_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:/ 'newDescribeInstancePatchStatesForPatchGroup' smart constructor.
data DescribeInstancePatchStatesForPatchGroup = DescribeInstancePatchStatesForPatchGroup'
  { -- | Each entry in the array is a structure containing:
    --
    -- -   Key (string between 1 and 200 characters)
    --
    -- -   Values (array containing a single string)
    --
    -- -   Type (string \"Equal\", \"NotEqual\", \"LessThan\", \"GreaterThan\")
    DescribeInstancePatchStatesForPatchGroup
-> Maybe [InstancePatchStateFilter]
filters :: Prelude.Maybe [InstancePatchStateFilter],
    -- | The token for the next set of items to return. (You received this token
    -- from a previous call.)
    DescribeInstancePatchStatesForPatchGroup -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of patches to return (per page).
    DescribeInstancePatchStatesForPatchGroup -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The name of the patch group for which the patch state information should
    -- be retrieved.
    DescribeInstancePatchStatesForPatchGroup -> Text
patchGroup :: Prelude.Text
  }
  deriving (DescribeInstancePatchStatesForPatchGroup
-> DescribeInstancePatchStatesForPatchGroup -> Bool
(DescribeInstancePatchStatesForPatchGroup
 -> DescribeInstancePatchStatesForPatchGroup -> Bool)
-> (DescribeInstancePatchStatesForPatchGroup
    -> DescribeInstancePatchStatesForPatchGroup -> Bool)
-> Eq DescribeInstancePatchStatesForPatchGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeInstancePatchStatesForPatchGroup
-> DescribeInstancePatchStatesForPatchGroup -> Bool
$c/= :: DescribeInstancePatchStatesForPatchGroup
-> DescribeInstancePatchStatesForPatchGroup -> Bool
== :: DescribeInstancePatchStatesForPatchGroup
-> DescribeInstancePatchStatesForPatchGroup -> Bool
$c== :: DescribeInstancePatchStatesForPatchGroup
-> DescribeInstancePatchStatesForPatchGroup -> Bool
Prelude.Eq, ReadPrec [DescribeInstancePatchStatesForPatchGroup]
ReadPrec DescribeInstancePatchStatesForPatchGroup
Int -> ReadS DescribeInstancePatchStatesForPatchGroup
ReadS [DescribeInstancePatchStatesForPatchGroup]
(Int -> ReadS DescribeInstancePatchStatesForPatchGroup)
-> ReadS [DescribeInstancePatchStatesForPatchGroup]
-> ReadPrec DescribeInstancePatchStatesForPatchGroup
-> ReadPrec [DescribeInstancePatchStatesForPatchGroup]
-> Read DescribeInstancePatchStatesForPatchGroup
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeInstancePatchStatesForPatchGroup]
$creadListPrec :: ReadPrec [DescribeInstancePatchStatesForPatchGroup]
readPrec :: ReadPrec DescribeInstancePatchStatesForPatchGroup
$creadPrec :: ReadPrec DescribeInstancePatchStatesForPatchGroup
readList :: ReadS [DescribeInstancePatchStatesForPatchGroup]
$creadList :: ReadS [DescribeInstancePatchStatesForPatchGroup]
readsPrec :: Int -> ReadS DescribeInstancePatchStatesForPatchGroup
$creadsPrec :: Int -> ReadS DescribeInstancePatchStatesForPatchGroup
Prelude.Read, Int -> DescribeInstancePatchStatesForPatchGroup -> ShowS
[DescribeInstancePatchStatesForPatchGroup] -> ShowS
DescribeInstancePatchStatesForPatchGroup -> String
(Int -> DescribeInstancePatchStatesForPatchGroup -> ShowS)
-> (DescribeInstancePatchStatesForPatchGroup -> String)
-> ([DescribeInstancePatchStatesForPatchGroup] -> ShowS)
-> Show DescribeInstancePatchStatesForPatchGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeInstancePatchStatesForPatchGroup] -> ShowS
$cshowList :: [DescribeInstancePatchStatesForPatchGroup] -> ShowS
show :: DescribeInstancePatchStatesForPatchGroup -> String
$cshow :: DescribeInstancePatchStatesForPatchGroup -> String
showsPrec :: Int -> DescribeInstancePatchStatesForPatchGroup -> ShowS
$cshowsPrec :: Int -> DescribeInstancePatchStatesForPatchGroup -> ShowS
Prelude.Show, (forall x.
 DescribeInstancePatchStatesForPatchGroup
 -> Rep DescribeInstancePatchStatesForPatchGroup x)
-> (forall x.
    Rep DescribeInstancePatchStatesForPatchGroup x
    -> DescribeInstancePatchStatesForPatchGroup)
-> Generic DescribeInstancePatchStatesForPatchGroup
forall x.
Rep DescribeInstancePatchStatesForPatchGroup x
-> DescribeInstancePatchStatesForPatchGroup
forall x.
DescribeInstancePatchStatesForPatchGroup
-> Rep DescribeInstancePatchStatesForPatchGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeInstancePatchStatesForPatchGroup x
-> DescribeInstancePatchStatesForPatchGroup
$cfrom :: forall x.
DescribeInstancePatchStatesForPatchGroup
-> Rep DescribeInstancePatchStatesForPatchGroup x
Prelude.Generic)

-- |
-- Create a value of 'DescribeInstancePatchStatesForPatchGroup' 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:
--
-- 'filters', 'describeInstancePatchStatesForPatchGroup_filters' - Each entry in the array is a structure containing:
--
-- -   Key (string between 1 and 200 characters)
--
-- -   Values (array containing a single string)
--
-- -   Type (string \"Equal\", \"NotEqual\", \"LessThan\", \"GreaterThan\")
--
-- 'nextToken', 'describeInstancePatchStatesForPatchGroup_nextToken' - The token for the next set of items to return. (You received this token
-- from a previous call.)
--
-- 'maxResults', 'describeInstancePatchStatesForPatchGroup_maxResults' - The maximum number of patches to return (per page).
--
-- 'patchGroup', 'describeInstancePatchStatesForPatchGroup_patchGroup' - The name of the patch group for which the patch state information should
-- be retrieved.
newDescribeInstancePatchStatesForPatchGroup ::
  -- | 'patchGroup'
  Prelude.Text ->
  DescribeInstancePatchStatesForPatchGroup
newDescribeInstancePatchStatesForPatchGroup :: Text -> DescribeInstancePatchStatesForPatchGroup
newDescribeInstancePatchStatesForPatchGroup
  Text
pPatchGroup_ =
    DescribeInstancePatchStatesForPatchGroup' :: Maybe [InstancePatchStateFilter]
-> Maybe Text
-> Maybe Natural
-> Text
-> DescribeInstancePatchStatesForPatchGroup
DescribeInstancePatchStatesForPatchGroup'
      { $sel:filters:DescribeInstancePatchStatesForPatchGroup' :: Maybe [InstancePatchStateFilter]
filters =
          Maybe [InstancePatchStateFilter]
forall a. Maybe a
Prelude.Nothing,
        $sel:nextToken:DescribeInstancePatchStatesForPatchGroup' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:maxResults:DescribeInstancePatchStatesForPatchGroup' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
        $sel:patchGroup:DescribeInstancePatchStatesForPatchGroup' :: Text
patchGroup = Text
pPatchGroup_
      }

-- | Each entry in the array is a structure containing:
--
-- -   Key (string between 1 and 200 characters)
--
-- -   Values (array containing a single string)
--
-- -   Type (string \"Equal\", \"NotEqual\", \"LessThan\", \"GreaterThan\")
describeInstancePatchStatesForPatchGroup_filters :: Lens.Lens' DescribeInstancePatchStatesForPatchGroup (Prelude.Maybe [InstancePatchStateFilter])
describeInstancePatchStatesForPatchGroup_filters :: (Maybe [InstancePatchStateFilter]
 -> f (Maybe [InstancePatchStateFilter]))
-> DescribeInstancePatchStatesForPatchGroup
-> f DescribeInstancePatchStatesForPatchGroup
describeInstancePatchStatesForPatchGroup_filters = (DescribeInstancePatchStatesForPatchGroup
 -> Maybe [InstancePatchStateFilter])
-> (DescribeInstancePatchStatesForPatchGroup
    -> Maybe [InstancePatchStateFilter]
    -> DescribeInstancePatchStatesForPatchGroup)
-> Lens
     DescribeInstancePatchStatesForPatchGroup
     DescribeInstancePatchStatesForPatchGroup
     (Maybe [InstancePatchStateFilter])
     (Maybe [InstancePatchStateFilter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeInstancePatchStatesForPatchGroup' {Maybe [InstancePatchStateFilter]
filters :: Maybe [InstancePatchStateFilter]
$sel:filters:DescribeInstancePatchStatesForPatchGroup' :: DescribeInstancePatchStatesForPatchGroup
-> Maybe [InstancePatchStateFilter]
filters} -> Maybe [InstancePatchStateFilter]
filters) (\s :: DescribeInstancePatchStatesForPatchGroup
s@DescribeInstancePatchStatesForPatchGroup' {} Maybe [InstancePatchStateFilter]
a -> DescribeInstancePatchStatesForPatchGroup
s {$sel:filters:DescribeInstancePatchStatesForPatchGroup' :: Maybe [InstancePatchStateFilter]
filters = Maybe [InstancePatchStateFilter]
a} :: DescribeInstancePatchStatesForPatchGroup) ((Maybe [InstancePatchStateFilter]
  -> f (Maybe [InstancePatchStateFilter]))
 -> DescribeInstancePatchStatesForPatchGroup
 -> f DescribeInstancePatchStatesForPatchGroup)
-> ((Maybe [InstancePatchStateFilter]
     -> f (Maybe [InstancePatchStateFilter]))
    -> Maybe [InstancePatchStateFilter]
    -> f (Maybe [InstancePatchStateFilter]))
-> (Maybe [InstancePatchStateFilter]
    -> f (Maybe [InstancePatchStateFilter]))
-> DescribeInstancePatchStatesForPatchGroup
-> f DescribeInstancePatchStatesForPatchGroup
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [InstancePatchStateFilter]
  [InstancePatchStateFilter]
  [InstancePatchStateFilter]
  [InstancePatchStateFilter]
-> Iso
     (Maybe [InstancePatchStateFilter])
     (Maybe [InstancePatchStateFilter])
     (Maybe [InstancePatchStateFilter])
     (Maybe [InstancePatchStateFilter])
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
  [InstancePatchStateFilter]
  [InstancePatchStateFilter]
  [InstancePatchStateFilter]
  [InstancePatchStateFilter]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The token for the next set of items to return. (You received this token
-- from a previous call.)
describeInstancePatchStatesForPatchGroup_nextToken :: Lens.Lens' DescribeInstancePatchStatesForPatchGroup (Prelude.Maybe Prelude.Text)
describeInstancePatchStatesForPatchGroup_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeInstancePatchStatesForPatchGroup
-> f DescribeInstancePatchStatesForPatchGroup
describeInstancePatchStatesForPatchGroup_nextToken = (DescribeInstancePatchStatesForPatchGroup -> Maybe Text)
-> (DescribeInstancePatchStatesForPatchGroup
    -> Maybe Text -> DescribeInstancePatchStatesForPatchGroup)
-> Lens
     DescribeInstancePatchStatesForPatchGroup
     DescribeInstancePatchStatesForPatchGroup
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeInstancePatchStatesForPatchGroup' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeInstancePatchStatesForPatchGroup' :: DescribeInstancePatchStatesForPatchGroup -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeInstancePatchStatesForPatchGroup
s@DescribeInstancePatchStatesForPatchGroup' {} Maybe Text
a -> DescribeInstancePatchStatesForPatchGroup
s {$sel:nextToken:DescribeInstancePatchStatesForPatchGroup' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeInstancePatchStatesForPatchGroup)

-- | The maximum number of patches to return (per page).
describeInstancePatchStatesForPatchGroup_maxResults :: Lens.Lens' DescribeInstancePatchStatesForPatchGroup (Prelude.Maybe Prelude.Natural)
describeInstancePatchStatesForPatchGroup_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> DescribeInstancePatchStatesForPatchGroup
-> f DescribeInstancePatchStatesForPatchGroup
describeInstancePatchStatesForPatchGroup_maxResults = (DescribeInstancePatchStatesForPatchGroup -> Maybe Natural)
-> (DescribeInstancePatchStatesForPatchGroup
    -> Maybe Natural -> DescribeInstancePatchStatesForPatchGroup)
-> Lens
     DescribeInstancePatchStatesForPatchGroup
     DescribeInstancePatchStatesForPatchGroup
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeInstancePatchStatesForPatchGroup' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:DescribeInstancePatchStatesForPatchGroup' :: DescribeInstancePatchStatesForPatchGroup -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: DescribeInstancePatchStatesForPatchGroup
s@DescribeInstancePatchStatesForPatchGroup' {} Maybe Natural
a -> DescribeInstancePatchStatesForPatchGroup
s {$sel:maxResults:DescribeInstancePatchStatesForPatchGroup' :: Maybe Natural
maxResults = Maybe Natural
a} :: DescribeInstancePatchStatesForPatchGroup)

-- | The name of the patch group for which the patch state information should
-- be retrieved.
describeInstancePatchStatesForPatchGroup_patchGroup :: Lens.Lens' DescribeInstancePatchStatesForPatchGroup Prelude.Text
describeInstancePatchStatesForPatchGroup_patchGroup :: (Text -> f Text)
-> DescribeInstancePatchStatesForPatchGroup
-> f DescribeInstancePatchStatesForPatchGroup
describeInstancePatchStatesForPatchGroup_patchGroup = (DescribeInstancePatchStatesForPatchGroup -> Text)
-> (DescribeInstancePatchStatesForPatchGroup
    -> Text -> DescribeInstancePatchStatesForPatchGroup)
-> Lens
     DescribeInstancePatchStatesForPatchGroup
     DescribeInstancePatchStatesForPatchGroup
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeInstancePatchStatesForPatchGroup' {Text
patchGroup :: Text
$sel:patchGroup:DescribeInstancePatchStatesForPatchGroup' :: DescribeInstancePatchStatesForPatchGroup -> Text
patchGroup} -> Text
patchGroup) (\s :: DescribeInstancePatchStatesForPatchGroup
s@DescribeInstancePatchStatesForPatchGroup' {} Text
a -> DescribeInstancePatchStatesForPatchGroup
s {$sel:patchGroup:DescribeInstancePatchStatesForPatchGroup' :: Text
patchGroup = Text
a} :: DescribeInstancePatchStatesForPatchGroup)

instance
  Core.AWSPager
    DescribeInstancePatchStatesForPatchGroup
  where
  page :: DescribeInstancePatchStatesForPatchGroup
-> AWSResponse DescribeInstancePatchStatesForPatchGroup
-> Maybe DescribeInstancePatchStatesForPatchGroup
page DescribeInstancePatchStatesForPatchGroup
rq AWSResponse DescribeInstancePatchStatesForPatchGroup
rs
    | Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse DescribeInstancePatchStatesForPatchGroup
DescribeInstancePatchStatesForPatchGroupResponse
rs
            DescribeInstancePatchStatesForPatchGroupResponse
-> Getting
     (First Text) DescribeInstancePatchStatesForPatchGroupResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeInstancePatchStatesForPatchGroupResponse
-> Const
     (First Text) DescribeInstancePatchStatesForPatchGroupResponse
Lens' DescribeInstancePatchStatesForPatchGroupResponse (Maybe Text)
describeInstancePatchStatesForPatchGroupResponse_nextToken
              ((Maybe Text -> Const (First Text) (Maybe Text))
 -> DescribeInstancePatchStatesForPatchGroupResponse
 -> Const
      (First Text) DescribeInstancePatchStatesForPatchGroupResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
     (First Text) DescribeInstancePatchStatesForPatchGroupResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe DescribeInstancePatchStatesForPatchGroup
forall a. Maybe a
Prelude.Nothing
    | Maybe [InstancePatchState] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse DescribeInstancePatchStatesForPatchGroup
DescribeInstancePatchStatesForPatchGroupResponse
rs
            DescribeInstancePatchStatesForPatchGroupResponse
-> Getting
     (First [InstancePatchState])
     DescribeInstancePatchStatesForPatchGroupResponse
     [InstancePatchState]
-> Maybe [InstancePatchState]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe (NonEmpty InstancePatchState)
 -> Const
      (First [InstancePatchState]) (Maybe (NonEmpty InstancePatchState)))
-> DescribeInstancePatchStatesForPatchGroupResponse
-> Const
     (First [InstancePatchState])
     DescribeInstancePatchStatesForPatchGroupResponse
Lens'
  DescribeInstancePatchStatesForPatchGroupResponse
  (Maybe (NonEmpty InstancePatchState))
describeInstancePatchStatesForPatchGroupResponse_instancePatchStates
              ((Maybe (NonEmpty InstancePatchState)
  -> Const
       (First [InstancePatchState]) (Maybe (NonEmpty InstancePatchState)))
 -> DescribeInstancePatchStatesForPatchGroupResponse
 -> Const
      (First [InstancePatchState])
      DescribeInstancePatchStatesForPatchGroupResponse)
-> (([InstancePatchState]
     -> Const (First [InstancePatchState]) [InstancePatchState])
    -> Maybe (NonEmpty InstancePatchState)
    -> Const
         (First [InstancePatchState]) (Maybe (NonEmpty InstancePatchState)))
-> Getting
     (First [InstancePatchState])
     DescribeInstancePatchStatesForPatchGroupResponse
     [InstancePatchState]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (NonEmpty InstancePatchState
 -> Const
      (First [InstancePatchState]) (NonEmpty InstancePatchState))
-> Maybe (NonEmpty InstancePatchState)
-> Const
     (First [InstancePatchState]) (Maybe (NonEmpty InstancePatchState))
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
              ((NonEmpty InstancePatchState
  -> Const
       (First [InstancePatchState]) (NonEmpty InstancePatchState))
 -> Maybe (NonEmpty InstancePatchState)
 -> Const
      (First [InstancePatchState]) (Maybe (NonEmpty InstancePatchState)))
-> (([InstancePatchState]
     -> Const (First [InstancePatchState]) [InstancePatchState])
    -> NonEmpty InstancePatchState
    -> Const
         (First [InstancePatchState]) (NonEmpty InstancePatchState))
-> ([InstancePatchState]
    -> Const (First [InstancePatchState]) [InstancePatchState])
-> Maybe (NonEmpty InstancePatchState)
-> Const
     (First [InstancePatchState]) (Maybe (NonEmpty InstancePatchState))
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (NonEmpty InstancePatchState -> [InstancePatchState])
-> ([InstancePatchState]
    -> Const (First [InstancePatchState]) [InstancePatchState])
-> NonEmpty InstancePatchState
-> Const (First [InstancePatchState]) (NonEmpty InstancePatchState)
forall (p :: * -> * -> *) (f :: * -> *) s a.
(Profunctor p, Contravariant f) =>
(s -> a) -> Optic' p f s a
Lens.to NonEmpty InstancePatchState -> [InstancePatchState]
forall l. IsList l => l -> [Item l]
Prelude.toList
        ) =
      Maybe DescribeInstancePatchStatesForPatchGroup
forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
      DescribeInstancePatchStatesForPatchGroup
-> Maybe DescribeInstancePatchStatesForPatchGroup
forall a. a -> Maybe a
Prelude.Just (DescribeInstancePatchStatesForPatchGroup
 -> Maybe DescribeInstancePatchStatesForPatchGroup)
-> DescribeInstancePatchStatesForPatchGroup
-> Maybe DescribeInstancePatchStatesForPatchGroup
forall a b. (a -> b) -> a -> b
Prelude.$
        DescribeInstancePatchStatesForPatchGroup
rq
          DescribeInstancePatchStatesForPatchGroup
-> (DescribeInstancePatchStatesForPatchGroup
    -> DescribeInstancePatchStatesForPatchGroup)
-> DescribeInstancePatchStatesForPatchGroup
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeInstancePatchStatesForPatchGroup
-> Identity DescribeInstancePatchStatesForPatchGroup
Lens
  DescribeInstancePatchStatesForPatchGroup
  DescribeInstancePatchStatesForPatchGroup
  (Maybe Text)
  (Maybe Text)
describeInstancePatchStatesForPatchGroup_nextToken
          ((Maybe Text -> Identity (Maybe Text))
 -> DescribeInstancePatchStatesForPatchGroup
 -> Identity DescribeInstancePatchStatesForPatchGroup)
-> Maybe Text
-> DescribeInstancePatchStatesForPatchGroup
-> DescribeInstancePatchStatesForPatchGroup
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeInstancePatchStatesForPatchGroup
DescribeInstancePatchStatesForPatchGroupResponse
rs
            DescribeInstancePatchStatesForPatchGroupResponse
-> Getting
     (First Text) DescribeInstancePatchStatesForPatchGroupResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeInstancePatchStatesForPatchGroupResponse
-> Const
     (First Text) DescribeInstancePatchStatesForPatchGroupResponse
Lens' DescribeInstancePatchStatesForPatchGroupResponse (Maybe Text)
describeInstancePatchStatesForPatchGroupResponse_nextToken
              ((Maybe Text -> Const (First Text) (Maybe Text))
 -> DescribeInstancePatchStatesForPatchGroupResponse
 -> Const
      (First Text) DescribeInstancePatchStatesForPatchGroupResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
     (First Text) DescribeInstancePatchStatesForPatchGroupResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

instance
  Core.AWSRequest
    DescribeInstancePatchStatesForPatchGroup
  where
  type
    AWSResponse
      DescribeInstancePatchStatesForPatchGroup =
      DescribeInstancePatchStatesForPatchGroupResponse
  request :: DescribeInstancePatchStatesForPatchGroup
-> Request DescribeInstancePatchStatesForPatchGroup
request = Service
-> DescribeInstancePatchStatesForPatchGroup
-> Request DescribeInstancePatchStatesForPatchGroup
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeInstancePatchStatesForPatchGroup
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse DescribeInstancePatchStatesForPatchGroup)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either
      String (AWSResponse DescribeInstancePatchStatesForPatchGroup))
-> Logger
-> Service
-> Proxy DescribeInstancePatchStatesForPatchGroup
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse DescribeInstancePatchStatesForPatchGroup)))
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 (NonEmpty InstancePatchState)
-> Int
-> DescribeInstancePatchStatesForPatchGroupResponse
DescribeInstancePatchStatesForPatchGroupResponse'
            (Maybe Text
 -> Maybe (NonEmpty InstancePatchState)
 -> Int
 -> DescribeInstancePatchStatesForPatchGroupResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe (NonEmpty InstancePatchState)
      -> Int -> DescribeInstancePatchStatesForPatchGroupResponse)
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
"NextToken")
              Either
  String
  (Maybe (NonEmpty InstancePatchState)
   -> Int -> DescribeInstancePatchStatesForPatchGroupResponse)
-> Either String (Maybe (NonEmpty InstancePatchState))
-> Either
     String (Int -> DescribeInstancePatchStatesForPatchGroupResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Either String (Maybe (NonEmpty InstancePatchState))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"InstancePatchStates")
              Either
  String (Int -> DescribeInstancePatchStatesForPatchGroupResponse)
-> Either String Int
-> Either String DescribeInstancePatchStatesForPatchGroupResponse
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
    DescribeInstancePatchStatesForPatchGroup

instance
  Prelude.NFData
    DescribeInstancePatchStatesForPatchGroup

instance
  Core.ToHeaders
    DescribeInstancePatchStatesForPatchGroup
  where
  toHeaders :: DescribeInstancePatchStatesForPatchGroup -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> DescribeInstancePatchStatesForPatchGroup -> 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.DescribeInstancePatchStatesForPatchGroup" ::
                          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
    DescribeInstancePatchStatesForPatchGroup
  where
  toJSON :: DescribeInstancePatchStatesForPatchGroup -> Value
toJSON DescribeInstancePatchStatesForPatchGroup' {Maybe Natural
Maybe [InstancePatchStateFilter]
Maybe Text
Text
patchGroup :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
filters :: Maybe [InstancePatchStateFilter]
$sel:patchGroup:DescribeInstancePatchStatesForPatchGroup' :: DescribeInstancePatchStatesForPatchGroup -> Text
$sel:maxResults:DescribeInstancePatchStatesForPatchGroup' :: DescribeInstancePatchStatesForPatchGroup -> Maybe Natural
$sel:nextToken:DescribeInstancePatchStatesForPatchGroup' :: DescribeInstancePatchStatesForPatchGroup -> Maybe Text
$sel:filters:DescribeInstancePatchStatesForPatchGroup' :: DescribeInstancePatchStatesForPatchGroup
-> Maybe [InstancePatchStateFilter]
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"Filters" Text -> [InstancePatchStateFilter] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([InstancePatchStateFilter] -> Pair)
-> Maybe [InstancePatchStateFilter] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [InstancePatchStateFilter]
filters,
            (Text
"NextToken" 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
nextToken,
            (Text
"MaxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
            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
    DescribeInstancePatchStatesForPatchGroup
  where
  toPath :: DescribeInstancePatchStatesForPatchGroup -> ByteString
toPath = ByteString
-> DescribeInstancePatchStatesForPatchGroup -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

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

-- | /See:/ 'newDescribeInstancePatchStatesForPatchGroupResponse' smart constructor.
data DescribeInstancePatchStatesForPatchGroupResponse = DescribeInstancePatchStatesForPatchGroupResponse'
  { -- | The token to use when requesting the next set of items. If there are no
    -- additional items to return, the string is empty.
    DescribeInstancePatchStatesForPatchGroupResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The high-level patch state for the requested instances.
    DescribeInstancePatchStatesForPatchGroupResponse
-> Maybe (NonEmpty InstancePatchState)
instancePatchStates :: Prelude.Maybe (Prelude.NonEmpty InstancePatchState),
    -- | The response's http status code.
    DescribeInstancePatchStatesForPatchGroupResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeInstancePatchStatesForPatchGroupResponse
-> DescribeInstancePatchStatesForPatchGroupResponse -> Bool
(DescribeInstancePatchStatesForPatchGroupResponse
 -> DescribeInstancePatchStatesForPatchGroupResponse -> Bool)
-> (DescribeInstancePatchStatesForPatchGroupResponse
    -> DescribeInstancePatchStatesForPatchGroupResponse -> Bool)
-> Eq DescribeInstancePatchStatesForPatchGroupResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeInstancePatchStatesForPatchGroupResponse
-> DescribeInstancePatchStatesForPatchGroupResponse -> Bool
$c/= :: DescribeInstancePatchStatesForPatchGroupResponse
-> DescribeInstancePatchStatesForPatchGroupResponse -> Bool
== :: DescribeInstancePatchStatesForPatchGroupResponse
-> DescribeInstancePatchStatesForPatchGroupResponse -> Bool
$c== :: DescribeInstancePatchStatesForPatchGroupResponse
-> DescribeInstancePatchStatesForPatchGroupResponse -> Bool
Prelude.Eq, Int -> DescribeInstancePatchStatesForPatchGroupResponse -> ShowS
[DescribeInstancePatchStatesForPatchGroupResponse] -> ShowS
DescribeInstancePatchStatesForPatchGroupResponse -> String
(Int -> DescribeInstancePatchStatesForPatchGroupResponse -> ShowS)
-> (DescribeInstancePatchStatesForPatchGroupResponse -> String)
-> ([DescribeInstancePatchStatesForPatchGroupResponse] -> ShowS)
-> Show DescribeInstancePatchStatesForPatchGroupResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeInstancePatchStatesForPatchGroupResponse] -> ShowS
$cshowList :: [DescribeInstancePatchStatesForPatchGroupResponse] -> ShowS
show :: DescribeInstancePatchStatesForPatchGroupResponse -> String
$cshow :: DescribeInstancePatchStatesForPatchGroupResponse -> String
showsPrec :: Int -> DescribeInstancePatchStatesForPatchGroupResponse -> ShowS
$cshowsPrec :: Int -> DescribeInstancePatchStatesForPatchGroupResponse -> ShowS
Prelude.Show, (forall x.
 DescribeInstancePatchStatesForPatchGroupResponse
 -> Rep DescribeInstancePatchStatesForPatchGroupResponse x)
-> (forall x.
    Rep DescribeInstancePatchStatesForPatchGroupResponse x
    -> DescribeInstancePatchStatesForPatchGroupResponse)
-> Generic DescribeInstancePatchStatesForPatchGroupResponse
forall x.
Rep DescribeInstancePatchStatesForPatchGroupResponse x
-> DescribeInstancePatchStatesForPatchGroupResponse
forall x.
DescribeInstancePatchStatesForPatchGroupResponse
-> Rep DescribeInstancePatchStatesForPatchGroupResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeInstancePatchStatesForPatchGroupResponse x
-> DescribeInstancePatchStatesForPatchGroupResponse
$cfrom :: forall x.
DescribeInstancePatchStatesForPatchGroupResponse
-> Rep DescribeInstancePatchStatesForPatchGroupResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeInstancePatchStatesForPatchGroupResponse' 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:
--
-- 'nextToken', 'describeInstancePatchStatesForPatchGroupResponse_nextToken' - The token to use when requesting the next set of items. If there are no
-- additional items to return, the string is empty.
--
-- 'instancePatchStates', 'describeInstancePatchStatesForPatchGroupResponse_instancePatchStates' - The high-level patch state for the requested instances.
--
-- 'httpStatus', 'describeInstancePatchStatesForPatchGroupResponse_httpStatus' - The response's http status code.
newDescribeInstancePatchStatesForPatchGroupResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeInstancePatchStatesForPatchGroupResponse
newDescribeInstancePatchStatesForPatchGroupResponse :: Int -> DescribeInstancePatchStatesForPatchGroupResponse
newDescribeInstancePatchStatesForPatchGroupResponse
  Int
pHttpStatus_ =
    DescribeInstancePatchStatesForPatchGroupResponse' :: Maybe Text
-> Maybe (NonEmpty InstancePatchState)
-> Int
-> DescribeInstancePatchStatesForPatchGroupResponse
DescribeInstancePatchStatesForPatchGroupResponse'
      { $sel:nextToken:DescribeInstancePatchStatesForPatchGroupResponse' :: Maybe Text
nextToken =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:instancePatchStates:DescribeInstancePatchStatesForPatchGroupResponse' :: Maybe (NonEmpty InstancePatchState)
instancePatchStates =
          Maybe (NonEmpty InstancePatchState)
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribeInstancePatchStatesForPatchGroupResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The token to use when requesting the next set of items. If there are no
-- additional items to return, the string is empty.
describeInstancePatchStatesForPatchGroupResponse_nextToken :: Lens.Lens' DescribeInstancePatchStatesForPatchGroupResponse (Prelude.Maybe Prelude.Text)
describeInstancePatchStatesForPatchGroupResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeInstancePatchStatesForPatchGroupResponse
-> f DescribeInstancePatchStatesForPatchGroupResponse
describeInstancePatchStatesForPatchGroupResponse_nextToken = (DescribeInstancePatchStatesForPatchGroupResponse -> Maybe Text)
-> (DescribeInstancePatchStatesForPatchGroupResponse
    -> Maybe Text -> DescribeInstancePatchStatesForPatchGroupResponse)
-> Lens'
     DescribeInstancePatchStatesForPatchGroupResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeInstancePatchStatesForPatchGroupResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeInstancePatchStatesForPatchGroupResponse' :: DescribeInstancePatchStatesForPatchGroupResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeInstancePatchStatesForPatchGroupResponse
s@DescribeInstancePatchStatesForPatchGroupResponse' {} Maybe Text
a -> DescribeInstancePatchStatesForPatchGroupResponse
s {$sel:nextToken:DescribeInstancePatchStatesForPatchGroupResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeInstancePatchStatesForPatchGroupResponse)

-- | The high-level patch state for the requested instances.
describeInstancePatchStatesForPatchGroupResponse_instancePatchStates :: Lens.Lens' DescribeInstancePatchStatesForPatchGroupResponse (Prelude.Maybe (Prelude.NonEmpty InstancePatchState))
describeInstancePatchStatesForPatchGroupResponse_instancePatchStates :: (Maybe (NonEmpty InstancePatchState)
 -> f (Maybe (NonEmpty InstancePatchState)))
-> DescribeInstancePatchStatesForPatchGroupResponse
-> f DescribeInstancePatchStatesForPatchGroupResponse
describeInstancePatchStatesForPatchGroupResponse_instancePatchStates = (DescribeInstancePatchStatesForPatchGroupResponse
 -> Maybe (NonEmpty InstancePatchState))
-> (DescribeInstancePatchStatesForPatchGroupResponse
    -> Maybe (NonEmpty InstancePatchState)
    -> DescribeInstancePatchStatesForPatchGroupResponse)
-> Lens'
     DescribeInstancePatchStatesForPatchGroupResponse
     (Maybe (NonEmpty InstancePatchState))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeInstancePatchStatesForPatchGroupResponse' {Maybe (NonEmpty InstancePatchState)
instancePatchStates :: Maybe (NonEmpty InstancePatchState)
$sel:instancePatchStates:DescribeInstancePatchStatesForPatchGroupResponse' :: DescribeInstancePatchStatesForPatchGroupResponse
-> Maybe (NonEmpty InstancePatchState)
instancePatchStates} -> Maybe (NonEmpty InstancePatchState)
instancePatchStates) (\s :: DescribeInstancePatchStatesForPatchGroupResponse
s@DescribeInstancePatchStatesForPatchGroupResponse' {} Maybe (NonEmpty InstancePatchState)
a -> DescribeInstancePatchStatesForPatchGroupResponse
s {$sel:instancePatchStates:DescribeInstancePatchStatesForPatchGroupResponse' :: Maybe (NonEmpty InstancePatchState)
instancePatchStates = Maybe (NonEmpty InstancePatchState)
a} :: DescribeInstancePatchStatesForPatchGroupResponse) ((Maybe (NonEmpty InstancePatchState)
  -> f (Maybe (NonEmpty InstancePatchState)))
 -> DescribeInstancePatchStatesForPatchGroupResponse
 -> f DescribeInstancePatchStatesForPatchGroupResponse)
-> ((Maybe (NonEmpty InstancePatchState)
     -> f (Maybe (NonEmpty InstancePatchState)))
    -> Maybe (NonEmpty InstancePatchState)
    -> f (Maybe (NonEmpty InstancePatchState)))
-> (Maybe (NonEmpty InstancePatchState)
    -> f (Maybe (NonEmpty InstancePatchState)))
-> DescribeInstancePatchStatesForPatchGroupResponse
-> f DescribeInstancePatchStatesForPatchGroupResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (NonEmpty InstancePatchState)
  (NonEmpty InstancePatchState)
  (NonEmpty InstancePatchState)
  (NonEmpty InstancePatchState)
-> Iso
     (Maybe (NonEmpty InstancePatchState))
     (Maybe (NonEmpty InstancePatchState))
     (Maybe (NonEmpty InstancePatchState))
     (Maybe (NonEmpty InstancePatchState))
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
  (NonEmpty InstancePatchState)
  (NonEmpty InstancePatchState)
  (NonEmpty InstancePatchState)
  (NonEmpty InstancePatchState)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance
  Prelude.NFData
    DescribeInstancePatchStatesForPatchGroupResponse