{-# 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.ElasticInference.DescribeAcceleratorOfferings
-- 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 locations in which a given accelerator type or set of
-- types is present in a given region.
module Amazonka.ElasticInference.DescribeAcceleratorOfferings
  ( -- * Creating a Request
    DescribeAcceleratorOfferings (..),
    newDescribeAcceleratorOfferings,

    -- * Request Lenses
    describeAcceleratorOfferings_acceleratorTypes,
    describeAcceleratorOfferings_locationType,

    -- * Destructuring the Response
    DescribeAcceleratorOfferingsResponse (..),
    newDescribeAcceleratorOfferingsResponse,

    -- * Response Lenses
    describeAcceleratorOfferingsResponse_acceleratorTypeOfferings,
    describeAcceleratorOfferingsResponse_httpStatus,
  )
where

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

-- | /See:/ 'newDescribeAcceleratorOfferings' smart constructor.
data DescribeAcceleratorOfferings = DescribeAcceleratorOfferings'
  { -- | The list of accelerator types to describe.
    DescribeAcceleratorOfferings -> Maybe [Text]
acceleratorTypes :: Prelude.Maybe [Prelude.Text],
    -- | The location type that you want to describe accelerator type offerings
    -- for. It can assume the following values: region: will return the
    -- accelerator type offering at the regional level. availability-zone: will
    -- return the accelerator type offering at the availability zone level.
    -- availability-zone-id: will return the accelerator type offering at the
    -- availability zone level returning the availability zone id.
    DescribeAcceleratorOfferings -> LocationType
locationType :: LocationType
  }
  deriving (DescribeAcceleratorOfferings
-> DescribeAcceleratorOfferings -> Bool
(DescribeAcceleratorOfferings
 -> DescribeAcceleratorOfferings -> Bool)
-> (DescribeAcceleratorOfferings
    -> DescribeAcceleratorOfferings -> Bool)
-> Eq DescribeAcceleratorOfferings
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeAcceleratorOfferings
-> DescribeAcceleratorOfferings -> Bool
$c/= :: DescribeAcceleratorOfferings
-> DescribeAcceleratorOfferings -> Bool
== :: DescribeAcceleratorOfferings
-> DescribeAcceleratorOfferings -> Bool
$c== :: DescribeAcceleratorOfferings
-> DescribeAcceleratorOfferings -> Bool
Prelude.Eq, ReadPrec [DescribeAcceleratorOfferings]
ReadPrec DescribeAcceleratorOfferings
Int -> ReadS DescribeAcceleratorOfferings
ReadS [DescribeAcceleratorOfferings]
(Int -> ReadS DescribeAcceleratorOfferings)
-> ReadS [DescribeAcceleratorOfferings]
-> ReadPrec DescribeAcceleratorOfferings
-> ReadPrec [DescribeAcceleratorOfferings]
-> Read DescribeAcceleratorOfferings
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeAcceleratorOfferings]
$creadListPrec :: ReadPrec [DescribeAcceleratorOfferings]
readPrec :: ReadPrec DescribeAcceleratorOfferings
$creadPrec :: ReadPrec DescribeAcceleratorOfferings
readList :: ReadS [DescribeAcceleratorOfferings]
$creadList :: ReadS [DescribeAcceleratorOfferings]
readsPrec :: Int -> ReadS DescribeAcceleratorOfferings
$creadsPrec :: Int -> ReadS DescribeAcceleratorOfferings
Prelude.Read, Int -> DescribeAcceleratorOfferings -> ShowS
[DescribeAcceleratorOfferings] -> ShowS
DescribeAcceleratorOfferings -> String
(Int -> DescribeAcceleratorOfferings -> ShowS)
-> (DescribeAcceleratorOfferings -> String)
-> ([DescribeAcceleratorOfferings] -> ShowS)
-> Show DescribeAcceleratorOfferings
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeAcceleratorOfferings] -> ShowS
$cshowList :: [DescribeAcceleratorOfferings] -> ShowS
show :: DescribeAcceleratorOfferings -> String
$cshow :: DescribeAcceleratorOfferings -> String
showsPrec :: Int -> DescribeAcceleratorOfferings -> ShowS
$cshowsPrec :: Int -> DescribeAcceleratorOfferings -> ShowS
Prelude.Show, (forall x.
 DescribeAcceleratorOfferings -> Rep DescribeAcceleratorOfferings x)
-> (forall x.
    Rep DescribeAcceleratorOfferings x -> DescribeAcceleratorOfferings)
-> Generic DescribeAcceleratorOfferings
forall x.
Rep DescribeAcceleratorOfferings x -> DescribeAcceleratorOfferings
forall x.
DescribeAcceleratorOfferings -> Rep DescribeAcceleratorOfferings x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeAcceleratorOfferings x -> DescribeAcceleratorOfferings
$cfrom :: forall x.
DescribeAcceleratorOfferings -> Rep DescribeAcceleratorOfferings x
Prelude.Generic)

-- |
-- Create a value of 'DescribeAcceleratorOfferings' 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:
--
-- 'acceleratorTypes', 'describeAcceleratorOfferings_acceleratorTypes' - The list of accelerator types to describe.
--
-- 'locationType', 'describeAcceleratorOfferings_locationType' - The location type that you want to describe accelerator type offerings
-- for. It can assume the following values: region: will return the
-- accelerator type offering at the regional level. availability-zone: will
-- return the accelerator type offering at the availability zone level.
-- availability-zone-id: will return the accelerator type offering at the
-- availability zone level returning the availability zone id.
newDescribeAcceleratorOfferings ::
  -- | 'locationType'
  LocationType ->
  DescribeAcceleratorOfferings
newDescribeAcceleratorOfferings :: LocationType -> DescribeAcceleratorOfferings
newDescribeAcceleratorOfferings LocationType
pLocationType_ =
  DescribeAcceleratorOfferings' :: Maybe [Text] -> LocationType -> DescribeAcceleratorOfferings
DescribeAcceleratorOfferings'
    { $sel:acceleratorTypes:DescribeAcceleratorOfferings' :: Maybe [Text]
acceleratorTypes =
        Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:locationType:DescribeAcceleratorOfferings' :: LocationType
locationType = LocationType
pLocationType_
    }

-- | The list of accelerator types to describe.
describeAcceleratorOfferings_acceleratorTypes :: Lens.Lens' DescribeAcceleratorOfferings (Prelude.Maybe [Prelude.Text])
describeAcceleratorOfferings_acceleratorTypes :: (Maybe [Text] -> f (Maybe [Text]))
-> DescribeAcceleratorOfferings -> f DescribeAcceleratorOfferings
describeAcceleratorOfferings_acceleratorTypes = (DescribeAcceleratorOfferings -> Maybe [Text])
-> (DescribeAcceleratorOfferings
    -> Maybe [Text] -> DescribeAcceleratorOfferings)
-> Lens
     DescribeAcceleratorOfferings
     DescribeAcceleratorOfferings
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAcceleratorOfferings' {Maybe [Text]
acceleratorTypes :: Maybe [Text]
$sel:acceleratorTypes:DescribeAcceleratorOfferings' :: DescribeAcceleratorOfferings -> Maybe [Text]
acceleratorTypes} -> Maybe [Text]
acceleratorTypes) (\s :: DescribeAcceleratorOfferings
s@DescribeAcceleratorOfferings' {} Maybe [Text]
a -> DescribeAcceleratorOfferings
s {$sel:acceleratorTypes:DescribeAcceleratorOfferings' :: Maybe [Text]
acceleratorTypes = Maybe [Text]
a} :: DescribeAcceleratorOfferings) ((Maybe [Text] -> f (Maybe [Text]))
 -> DescribeAcceleratorOfferings -> f DescribeAcceleratorOfferings)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> DescribeAcceleratorOfferings
-> f DescribeAcceleratorOfferings
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The location type that you want to describe accelerator type offerings
-- for. It can assume the following values: region: will return the
-- accelerator type offering at the regional level. availability-zone: will
-- return the accelerator type offering at the availability zone level.
-- availability-zone-id: will return the accelerator type offering at the
-- availability zone level returning the availability zone id.
describeAcceleratorOfferings_locationType :: Lens.Lens' DescribeAcceleratorOfferings LocationType
describeAcceleratorOfferings_locationType :: (LocationType -> f LocationType)
-> DescribeAcceleratorOfferings -> f DescribeAcceleratorOfferings
describeAcceleratorOfferings_locationType = (DescribeAcceleratorOfferings -> LocationType)
-> (DescribeAcceleratorOfferings
    -> LocationType -> DescribeAcceleratorOfferings)
-> Lens
     DescribeAcceleratorOfferings
     DescribeAcceleratorOfferings
     LocationType
     LocationType
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAcceleratorOfferings' {LocationType
locationType :: LocationType
$sel:locationType:DescribeAcceleratorOfferings' :: DescribeAcceleratorOfferings -> LocationType
locationType} -> LocationType
locationType) (\s :: DescribeAcceleratorOfferings
s@DescribeAcceleratorOfferings' {} LocationType
a -> DescribeAcceleratorOfferings
s {$sel:locationType:DescribeAcceleratorOfferings' :: LocationType
locationType = LocationType
a} :: DescribeAcceleratorOfferings)

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

instance Prelude.NFData DescribeAcceleratorOfferings

instance Core.ToHeaders DescribeAcceleratorOfferings where
  toHeaders :: DescribeAcceleratorOfferings -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DescribeAcceleratorOfferings -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ 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 DescribeAcceleratorOfferings where
  toJSON :: DescribeAcceleratorOfferings -> Value
toJSON DescribeAcceleratorOfferings' {Maybe [Text]
LocationType
locationType :: LocationType
acceleratorTypes :: Maybe [Text]
$sel:locationType:DescribeAcceleratorOfferings' :: DescribeAcceleratorOfferings -> LocationType
$sel:acceleratorTypes:DescribeAcceleratorOfferings' :: DescribeAcceleratorOfferings -> Maybe [Text]
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"acceleratorTypes" 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]
acceleratorTypes,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"locationType" Text -> LocationType -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= LocationType
locationType)
          ]
      )

instance Core.ToPath DescribeAcceleratorOfferings where
  toPath :: DescribeAcceleratorOfferings -> ByteString
toPath =
    ByteString -> DescribeAcceleratorOfferings -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/describe-accelerator-offerings"

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

-- | /See:/ 'newDescribeAcceleratorOfferingsResponse' smart constructor.
data DescribeAcceleratorOfferingsResponse = DescribeAcceleratorOfferingsResponse'
  { -- | The list of accelerator type offerings for a specific location.
    DescribeAcceleratorOfferingsResponse
-> Maybe [AcceleratorTypeOffering]
acceleratorTypeOfferings :: Prelude.Maybe [AcceleratorTypeOffering],
    -- | The response's http status code.
    DescribeAcceleratorOfferingsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeAcceleratorOfferingsResponse
-> DescribeAcceleratorOfferingsResponse -> Bool
(DescribeAcceleratorOfferingsResponse
 -> DescribeAcceleratorOfferingsResponse -> Bool)
-> (DescribeAcceleratorOfferingsResponse
    -> DescribeAcceleratorOfferingsResponse -> Bool)
-> Eq DescribeAcceleratorOfferingsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeAcceleratorOfferingsResponse
-> DescribeAcceleratorOfferingsResponse -> Bool
$c/= :: DescribeAcceleratorOfferingsResponse
-> DescribeAcceleratorOfferingsResponse -> Bool
== :: DescribeAcceleratorOfferingsResponse
-> DescribeAcceleratorOfferingsResponse -> Bool
$c== :: DescribeAcceleratorOfferingsResponse
-> DescribeAcceleratorOfferingsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeAcceleratorOfferingsResponse]
ReadPrec DescribeAcceleratorOfferingsResponse
Int -> ReadS DescribeAcceleratorOfferingsResponse
ReadS [DescribeAcceleratorOfferingsResponse]
(Int -> ReadS DescribeAcceleratorOfferingsResponse)
-> ReadS [DescribeAcceleratorOfferingsResponse]
-> ReadPrec DescribeAcceleratorOfferingsResponse
-> ReadPrec [DescribeAcceleratorOfferingsResponse]
-> Read DescribeAcceleratorOfferingsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeAcceleratorOfferingsResponse]
$creadListPrec :: ReadPrec [DescribeAcceleratorOfferingsResponse]
readPrec :: ReadPrec DescribeAcceleratorOfferingsResponse
$creadPrec :: ReadPrec DescribeAcceleratorOfferingsResponse
readList :: ReadS [DescribeAcceleratorOfferingsResponse]
$creadList :: ReadS [DescribeAcceleratorOfferingsResponse]
readsPrec :: Int -> ReadS DescribeAcceleratorOfferingsResponse
$creadsPrec :: Int -> ReadS DescribeAcceleratorOfferingsResponse
Prelude.Read, Int -> DescribeAcceleratorOfferingsResponse -> ShowS
[DescribeAcceleratorOfferingsResponse] -> ShowS
DescribeAcceleratorOfferingsResponse -> String
(Int -> DescribeAcceleratorOfferingsResponse -> ShowS)
-> (DescribeAcceleratorOfferingsResponse -> String)
-> ([DescribeAcceleratorOfferingsResponse] -> ShowS)
-> Show DescribeAcceleratorOfferingsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeAcceleratorOfferingsResponse] -> ShowS
$cshowList :: [DescribeAcceleratorOfferingsResponse] -> ShowS
show :: DescribeAcceleratorOfferingsResponse -> String
$cshow :: DescribeAcceleratorOfferingsResponse -> String
showsPrec :: Int -> DescribeAcceleratorOfferingsResponse -> ShowS
$cshowsPrec :: Int -> DescribeAcceleratorOfferingsResponse -> ShowS
Prelude.Show, (forall x.
 DescribeAcceleratorOfferingsResponse
 -> Rep DescribeAcceleratorOfferingsResponse x)
-> (forall x.
    Rep DescribeAcceleratorOfferingsResponse x
    -> DescribeAcceleratorOfferingsResponse)
-> Generic DescribeAcceleratorOfferingsResponse
forall x.
Rep DescribeAcceleratorOfferingsResponse x
-> DescribeAcceleratorOfferingsResponse
forall x.
DescribeAcceleratorOfferingsResponse
-> Rep DescribeAcceleratorOfferingsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeAcceleratorOfferingsResponse x
-> DescribeAcceleratorOfferingsResponse
$cfrom :: forall x.
DescribeAcceleratorOfferingsResponse
-> Rep DescribeAcceleratorOfferingsResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeAcceleratorOfferingsResponse' 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:
--
-- 'acceleratorTypeOfferings', 'describeAcceleratorOfferingsResponse_acceleratorTypeOfferings' - The list of accelerator type offerings for a specific location.
--
-- 'httpStatus', 'describeAcceleratorOfferingsResponse_httpStatus' - The response's http status code.
newDescribeAcceleratorOfferingsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeAcceleratorOfferingsResponse
newDescribeAcceleratorOfferingsResponse :: Int -> DescribeAcceleratorOfferingsResponse
newDescribeAcceleratorOfferingsResponse Int
pHttpStatus_ =
  DescribeAcceleratorOfferingsResponse' :: Maybe [AcceleratorTypeOffering]
-> Int -> DescribeAcceleratorOfferingsResponse
DescribeAcceleratorOfferingsResponse'
    { $sel:acceleratorTypeOfferings:DescribeAcceleratorOfferingsResponse' :: Maybe [AcceleratorTypeOffering]
acceleratorTypeOfferings =
        Maybe [AcceleratorTypeOffering]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeAcceleratorOfferingsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The list of accelerator type offerings for a specific location.
describeAcceleratorOfferingsResponse_acceleratorTypeOfferings :: Lens.Lens' DescribeAcceleratorOfferingsResponse (Prelude.Maybe [AcceleratorTypeOffering])
describeAcceleratorOfferingsResponse_acceleratorTypeOfferings :: (Maybe [AcceleratorTypeOffering]
 -> f (Maybe [AcceleratorTypeOffering]))
-> DescribeAcceleratorOfferingsResponse
-> f DescribeAcceleratorOfferingsResponse
describeAcceleratorOfferingsResponse_acceleratorTypeOfferings = (DescribeAcceleratorOfferingsResponse
 -> Maybe [AcceleratorTypeOffering])
-> (DescribeAcceleratorOfferingsResponse
    -> Maybe [AcceleratorTypeOffering]
    -> DescribeAcceleratorOfferingsResponse)
-> Lens
     DescribeAcceleratorOfferingsResponse
     DescribeAcceleratorOfferingsResponse
     (Maybe [AcceleratorTypeOffering])
     (Maybe [AcceleratorTypeOffering])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAcceleratorOfferingsResponse' {Maybe [AcceleratorTypeOffering]
acceleratorTypeOfferings :: Maybe [AcceleratorTypeOffering]
$sel:acceleratorTypeOfferings:DescribeAcceleratorOfferingsResponse' :: DescribeAcceleratorOfferingsResponse
-> Maybe [AcceleratorTypeOffering]
acceleratorTypeOfferings} -> Maybe [AcceleratorTypeOffering]
acceleratorTypeOfferings) (\s :: DescribeAcceleratorOfferingsResponse
s@DescribeAcceleratorOfferingsResponse' {} Maybe [AcceleratorTypeOffering]
a -> DescribeAcceleratorOfferingsResponse
s {$sel:acceleratorTypeOfferings:DescribeAcceleratorOfferingsResponse' :: Maybe [AcceleratorTypeOffering]
acceleratorTypeOfferings = Maybe [AcceleratorTypeOffering]
a} :: DescribeAcceleratorOfferingsResponse) ((Maybe [AcceleratorTypeOffering]
  -> f (Maybe [AcceleratorTypeOffering]))
 -> DescribeAcceleratorOfferingsResponse
 -> f DescribeAcceleratorOfferingsResponse)
-> ((Maybe [AcceleratorTypeOffering]
     -> f (Maybe [AcceleratorTypeOffering]))
    -> Maybe [AcceleratorTypeOffering]
    -> f (Maybe [AcceleratorTypeOffering]))
-> (Maybe [AcceleratorTypeOffering]
    -> f (Maybe [AcceleratorTypeOffering]))
-> DescribeAcceleratorOfferingsResponse
-> f DescribeAcceleratorOfferingsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [AcceleratorTypeOffering]
  [AcceleratorTypeOffering]
  [AcceleratorTypeOffering]
  [AcceleratorTypeOffering]
-> Iso
     (Maybe [AcceleratorTypeOffering])
     (Maybe [AcceleratorTypeOffering])
     (Maybe [AcceleratorTypeOffering])
     (Maybe [AcceleratorTypeOffering])
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
  [AcceleratorTypeOffering]
  [AcceleratorTypeOffering]
  [AcceleratorTypeOffering]
  [AcceleratorTypeOffering]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance
  Prelude.NFData
    DescribeAcceleratorOfferingsResponse