{-# 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.OpsWorks.DescribeAgentVersions
-- 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)
--
-- Describes the available AWS OpsWorks Stacks agent versions. You must
-- specify a stack ID or a configuration manager. @DescribeAgentVersions@
-- returns a list of available agent versions for the specified stack or
-- configuration manager.
module Amazonka.OpsWorks.DescribeAgentVersions
  ( -- * Creating a Request
    DescribeAgentVersions (..),
    newDescribeAgentVersions,

    -- * Request Lenses
    describeAgentVersions_configurationManager,
    describeAgentVersions_stackId,

    -- * Destructuring the Response
    DescribeAgentVersionsResponse (..),
    newDescribeAgentVersionsResponse,

    -- * Response Lenses
    describeAgentVersionsResponse_agentVersions,
    describeAgentVersionsResponse_httpStatus,
  )
where

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

-- | /See:/ 'newDescribeAgentVersions' smart constructor.
data DescribeAgentVersions = DescribeAgentVersions'
  { -- | The configuration manager.
    DescribeAgentVersions -> Maybe StackConfigurationManager
configurationManager :: Prelude.Maybe StackConfigurationManager,
    -- | The stack ID.
    DescribeAgentVersions -> Maybe Text
stackId :: Prelude.Maybe Prelude.Text
  }
  deriving (DescribeAgentVersions -> DescribeAgentVersions -> Bool
(DescribeAgentVersions -> DescribeAgentVersions -> Bool)
-> (DescribeAgentVersions -> DescribeAgentVersions -> Bool)
-> Eq DescribeAgentVersions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeAgentVersions -> DescribeAgentVersions -> Bool
$c/= :: DescribeAgentVersions -> DescribeAgentVersions -> Bool
== :: DescribeAgentVersions -> DescribeAgentVersions -> Bool
$c== :: DescribeAgentVersions -> DescribeAgentVersions -> Bool
Prelude.Eq, ReadPrec [DescribeAgentVersions]
ReadPrec DescribeAgentVersions
Int -> ReadS DescribeAgentVersions
ReadS [DescribeAgentVersions]
(Int -> ReadS DescribeAgentVersions)
-> ReadS [DescribeAgentVersions]
-> ReadPrec DescribeAgentVersions
-> ReadPrec [DescribeAgentVersions]
-> Read DescribeAgentVersions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeAgentVersions]
$creadListPrec :: ReadPrec [DescribeAgentVersions]
readPrec :: ReadPrec DescribeAgentVersions
$creadPrec :: ReadPrec DescribeAgentVersions
readList :: ReadS [DescribeAgentVersions]
$creadList :: ReadS [DescribeAgentVersions]
readsPrec :: Int -> ReadS DescribeAgentVersions
$creadsPrec :: Int -> ReadS DescribeAgentVersions
Prelude.Read, Int -> DescribeAgentVersions -> ShowS
[DescribeAgentVersions] -> ShowS
DescribeAgentVersions -> String
(Int -> DescribeAgentVersions -> ShowS)
-> (DescribeAgentVersions -> String)
-> ([DescribeAgentVersions] -> ShowS)
-> Show DescribeAgentVersions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeAgentVersions] -> ShowS
$cshowList :: [DescribeAgentVersions] -> ShowS
show :: DescribeAgentVersions -> String
$cshow :: DescribeAgentVersions -> String
showsPrec :: Int -> DescribeAgentVersions -> ShowS
$cshowsPrec :: Int -> DescribeAgentVersions -> ShowS
Prelude.Show, (forall x. DescribeAgentVersions -> Rep DescribeAgentVersions x)
-> (forall x. Rep DescribeAgentVersions x -> DescribeAgentVersions)
-> Generic DescribeAgentVersions
forall x. Rep DescribeAgentVersions x -> DescribeAgentVersions
forall x. DescribeAgentVersions -> Rep DescribeAgentVersions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeAgentVersions x -> DescribeAgentVersions
$cfrom :: forall x. DescribeAgentVersions -> Rep DescribeAgentVersions x
Prelude.Generic)

-- |
-- Create a value of 'DescribeAgentVersions' 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:
--
-- 'configurationManager', 'describeAgentVersions_configurationManager' - The configuration manager.
--
-- 'stackId', 'describeAgentVersions_stackId' - The stack ID.
newDescribeAgentVersions ::
  DescribeAgentVersions
newDescribeAgentVersions :: DescribeAgentVersions
newDescribeAgentVersions =
  DescribeAgentVersions' :: Maybe StackConfigurationManager
-> Maybe Text -> DescribeAgentVersions
DescribeAgentVersions'
    { $sel:configurationManager:DescribeAgentVersions' :: Maybe StackConfigurationManager
configurationManager =
        Maybe StackConfigurationManager
forall a. Maybe a
Prelude.Nothing,
      $sel:stackId:DescribeAgentVersions' :: Maybe Text
stackId = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | The configuration manager.
describeAgentVersions_configurationManager :: Lens.Lens' DescribeAgentVersions (Prelude.Maybe StackConfigurationManager)
describeAgentVersions_configurationManager :: (Maybe StackConfigurationManager
 -> f (Maybe StackConfigurationManager))
-> DescribeAgentVersions -> f DescribeAgentVersions
describeAgentVersions_configurationManager = (DescribeAgentVersions -> Maybe StackConfigurationManager)
-> (DescribeAgentVersions
    -> Maybe StackConfigurationManager -> DescribeAgentVersions)
-> Lens
     DescribeAgentVersions
     DescribeAgentVersions
     (Maybe StackConfigurationManager)
     (Maybe StackConfigurationManager)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAgentVersions' {Maybe StackConfigurationManager
configurationManager :: Maybe StackConfigurationManager
$sel:configurationManager:DescribeAgentVersions' :: DescribeAgentVersions -> Maybe StackConfigurationManager
configurationManager} -> Maybe StackConfigurationManager
configurationManager) (\s :: DescribeAgentVersions
s@DescribeAgentVersions' {} Maybe StackConfigurationManager
a -> DescribeAgentVersions
s {$sel:configurationManager:DescribeAgentVersions' :: Maybe StackConfigurationManager
configurationManager = Maybe StackConfigurationManager
a} :: DescribeAgentVersions)

-- | The stack ID.
describeAgentVersions_stackId :: Lens.Lens' DescribeAgentVersions (Prelude.Maybe Prelude.Text)
describeAgentVersions_stackId :: (Maybe Text -> f (Maybe Text))
-> DescribeAgentVersions -> f DescribeAgentVersions
describeAgentVersions_stackId = (DescribeAgentVersions -> Maybe Text)
-> (DescribeAgentVersions -> Maybe Text -> DescribeAgentVersions)
-> Lens
     DescribeAgentVersions
     DescribeAgentVersions
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAgentVersions' {Maybe Text
stackId :: Maybe Text
$sel:stackId:DescribeAgentVersions' :: DescribeAgentVersions -> Maybe Text
stackId} -> Maybe Text
stackId) (\s :: DescribeAgentVersions
s@DescribeAgentVersions' {} Maybe Text
a -> DescribeAgentVersions
s {$sel:stackId:DescribeAgentVersions' :: Maybe Text
stackId = Maybe Text
a} :: DescribeAgentVersions)

instance Core.AWSRequest DescribeAgentVersions where
  type
    AWSResponse DescribeAgentVersions =
      DescribeAgentVersionsResponse
  request :: DescribeAgentVersions -> Request DescribeAgentVersions
request = Service -> DescribeAgentVersions -> Request DescribeAgentVersions
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeAgentVersions
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeAgentVersions)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeAgentVersions))
-> Logger
-> Service
-> Proxy DescribeAgentVersions
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeAgentVersions)))
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 [AgentVersion] -> Int -> DescribeAgentVersionsResponse
DescribeAgentVersionsResponse'
            (Maybe [AgentVersion] -> Int -> DescribeAgentVersionsResponse)
-> Either String (Maybe [AgentVersion])
-> Either String (Int -> DescribeAgentVersionsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [AgentVersion]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"AgentVersions" Either String (Maybe (Maybe [AgentVersion]))
-> Maybe [AgentVersion] -> Either String (Maybe [AgentVersion])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [AgentVersion]
forall a. Monoid a => a
Prelude.mempty)
            Either String (Int -> DescribeAgentVersionsResponse)
-> Either String Int -> Either String DescribeAgentVersionsResponse
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 DescribeAgentVersions

instance Prelude.NFData DescribeAgentVersions

instance Core.ToHeaders DescribeAgentVersions where
  toHeaders :: DescribeAgentVersions -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DescribeAgentVersions -> 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
"OpsWorks_20130218.DescribeAgentVersions" ::
                          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 DescribeAgentVersions where
  toJSON :: DescribeAgentVersions -> Value
toJSON DescribeAgentVersions' {Maybe Text
Maybe StackConfigurationManager
stackId :: Maybe Text
configurationManager :: Maybe StackConfigurationManager
$sel:stackId:DescribeAgentVersions' :: DescribeAgentVersions -> Maybe Text
$sel:configurationManager:DescribeAgentVersions' :: DescribeAgentVersions -> Maybe StackConfigurationManager
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"ConfigurationManager" Text -> StackConfigurationManager -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (StackConfigurationManager -> Pair)
-> Maybe StackConfigurationManager -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe StackConfigurationManager
configurationManager,
            (Text
"StackId" 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
stackId
          ]
      )

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

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

-- | Contains the response to a @DescribeAgentVersions@ request.
--
-- /See:/ 'newDescribeAgentVersionsResponse' smart constructor.
data DescribeAgentVersionsResponse = DescribeAgentVersionsResponse'
  { -- | The agent versions for the specified stack or configuration manager.
    -- Note that this value is the complete version number, not the abbreviated
    -- number used by the console.
    DescribeAgentVersionsResponse -> Maybe [AgentVersion]
agentVersions :: Prelude.Maybe [AgentVersion],
    -- | The response's http status code.
    DescribeAgentVersionsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeAgentVersionsResponse
-> DescribeAgentVersionsResponse -> Bool
(DescribeAgentVersionsResponse
 -> DescribeAgentVersionsResponse -> Bool)
-> (DescribeAgentVersionsResponse
    -> DescribeAgentVersionsResponse -> Bool)
-> Eq DescribeAgentVersionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeAgentVersionsResponse
-> DescribeAgentVersionsResponse -> Bool
$c/= :: DescribeAgentVersionsResponse
-> DescribeAgentVersionsResponse -> Bool
== :: DescribeAgentVersionsResponse
-> DescribeAgentVersionsResponse -> Bool
$c== :: DescribeAgentVersionsResponse
-> DescribeAgentVersionsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeAgentVersionsResponse]
ReadPrec DescribeAgentVersionsResponse
Int -> ReadS DescribeAgentVersionsResponse
ReadS [DescribeAgentVersionsResponse]
(Int -> ReadS DescribeAgentVersionsResponse)
-> ReadS [DescribeAgentVersionsResponse]
-> ReadPrec DescribeAgentVersionsResponse
-> ReadPrec [DescribeAgentVersionsResponse]
-> Read DescribeAgentVersionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeAgentVersionsResponse]
$creadListPrec :: ReadPrec [DescribeAgentVersionsResponse]
readPrec :: ReadPrec DescribeAgentVersionsResponse
$creadPrec :: ReadPrec DescribeAgentVersionsResponse
readList :: ReadS [DescribeAgentVersionsResponse]
$creadList :: ReadS [DescribeAgentVersionsResponse]
readsPrec :: Int -> ReadS DescribeAgentVersionsResponse
$creadsPrec :: Int -> ReadS DescribeAgentVersionsResponse
Prelude.Read, Int -> DescribeAgentVersionsResponse -> ShowS
[DescribeAgentVersionsResponse] -> ShowS
DescribeAgentVersionsResponse -> String
(Int -> DescribeAgentVersionsResponse -> ShowS)
-> (DescribeAgentVersionsResponse -> String)
-> ([DescribeAgentVersionsResponse] -> ShowS)
-> Show DescribeAgentVersionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeAgentVersionsResponse] -> ShowS
$cshowList :: [DescribeAgentVersionsResponse] -> ShowS
show :: DescribeAgentVersionsResponse -> String
$cshow :: DescribeAgentVersionsResponse -> String
showsPrec :: Int -> DescribeAgentVersionsResponse -> ShowS
$cshowsPrec :: Int -> DescribeAgentVersionsResponse -> ShowS
Prelude.Show, (forall x.
 DescribeAgentVersionsResponse
 -> Rep DescribeAgentVersionsResponse x)
-> (forall x.
    Rep DescribeAgentVersionsResponse x
    -> DescribeAgentVersionsResponse)
-> Generic DescribeAgentVersionsResponse
forall x.
Rep DescribeAgentVersionsResponse x
-> DescribeAgentVersionsResponse
forall x.
DescribeAgentVersionsResponse
-> Rep DescribeAgentVersionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeAgentVersionsResponse x
-> DescribeAgentVersionsResponse
$cfrom :: forall x.
DescribeAgentVersionsResponse
-> Rep DescribeAgentVersionsResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeAgentVersionsResponse' 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:
--
-- 'agentVersions', 'describeAgentVersionsResponse_agentVersions' - The agent versions for the specified stack or configuration manager.
-- Note that this value is the complete version number, not the abbreviated
-- number used by the console.
--
-- 'httpStatus', 'describeAgentVersionsResponse_httpStatus' - The response's http status code.
newDescribeAgentVersionsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeAgentVersionsResponse
newDescribeAgentVersionsResponse :: Int -> DescribeAgentVersionsResponse
newDescribeAgentVersionsResponse Int
pHttpStatus_ =
  DescribeAgentVersionsResponse' :: Maybe [AgentVersion] -> Int -> DescribeAgentVersionsResponse
DescribeAgentVersionsResponse'
    { $sel:agentVersions:DescribeAgentVersionsResponse' :: Maybe [AgentVersion]
agentVersions =
        Maybe [AgentVersion]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeAgentVersionsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The agent versions for the specified stack or configuration manager.
-- Note that this value is the complete version number, not the abbreviated
-- number used by the console.
describeAgentVersionsResponse_agentVersions :: Lens.Lens' DescribeAgentVersionsResponse (Prelude.Maybe [AgentVersion])
describeAgentVersionsResponse_agentVersions :: (Maybe [AgentVersion] -> f (Maybe [AgentVersion]))
-> DescribeAgentVersionsResponse -> f DescribeAgentVersionsResponse
describeAgentVersionsResponse_agentVersions = (DescribeAgentVersionsResponse -> Maybe [AgentVersion])
-> (DescribeAgentVersionsResponse
    -> Maybe [AgentVersion] -> DescribeAgentVersionsResponse)
-> Lens
     DescribeAgentVersionsResponse
     DescribeAgentVersionsResponse
     (Maybe [AgentVersion])
     (Maybe [AgentVersion])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAgentVersionsResponse' {Maybe [AgentVersion]
agentVersions :: Maybe [AgentVersion]
$sel:agentVersions:DescribeAgentVersionsResponse' :: DescribeAgentVersionsResponse -> Maybe [AgentVersion]
agentVersions} -> Maybe [AgentVersion]
agentVersions) (\s :: DescribeAgentVersionsResponse
s@DescribeAgentVersionsResponse' {} Maybe [AgentVersion]
a -> DescribeAgentVersionsResponse
s {$sel:agentVersions:DescribeAgentVersionsResponse' :: Maybe [AgentVersion]
agentVersions = Maybe [AgentVersion]
a} :: DescribeAgentVersionsResponse) ((Maybe [AgentVersion] -> f (Maybe [AgentVersion]))
 -> DescribeAgentVersionsResponse
 -> f DescribeAgentVersionsResponse)
-> ((Maybe [AgentVersion] -> f (Maybe [AgentVersion]))
    -> Maybe [AgentVersion] -> f (Maybe [AgentVersion]))
-> (Maybe [AgentVersion] -> f (Maybe [AgentVersion]))
-> DescribeAgentVersionsResponse
-> f DescribeAgentVersionsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [AgentVersion] [AgentVersion] [AgentVersion] [AgentVersion]
-> Iso
     (Maybe [AgentVersion])
     (Maybe [AgentVersion])
     (Maybe [AgentVersion])
     (Maybe [AgentVersion])
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 [AgentVersion] [AgentVersion] [AgentVersion] [AgentVersion]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance Prelude.NFData DescribeAgentVersionsResponse