{-# 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 #-}
module Amazonka.OpenSearch.DescribeReservedInstanceOfferings
(
DescribeReservedInstanceOfferings (..),
newDescribeReservedInstanceOfferings,
describeReservedInstanceOfferings_nextToken,
describeReservedInstanceOfferings_reservedInstanceOfferingId,
describeReservedInstanceOfferings_maxResults,
DescribeReservedInstanceOfferingsResponse (..),
newDescribeReservedInstanceOfferingsResponse,
describeReservedInstanceOfferingsResponse_nextToken,
describeReservedInstanceOfferingsResponse_reservedInstanceOfferings,
describeReservedInstanceOfferingsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.OpenSearch.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DescribeReservedInstanceOfferings = DescribeReservedInstanceOfferings'
{
DescribeReservedInstanceOfferings -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeReservedInstanceOfferings -> Maybe Text
reservedInstanceOfferingId :: Prelude.Maybe Prelude.Text,
DescribeReservedInstanceOfferings -> Maybe Int
maxResults :: Prelude.Maybe Prelude.Int
}
deriving (DescribeReservedInstanceOfferings
-> DescribeReservedInstanceOfferings -> Bool
(DescribeReservedInstanceOfferings
-> DescribeReservedInstanceOfferings -> Bool)
-> (DescribeReservedInstanceOfferings
-> DescribeReservedInstanceOfferings -> Bool)
-> Eq DescribeReservedInstanceOfferings
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeReservedInstanceOfferings
-> DescribeReservedInstanceOfferings -> Bool
$c/= :: DescribeReservedInstanceOfferings
-> DescribeReservedInstanceOfferings -> Bool
== :: DescribeReservedInstanceOfferings
-> DescribeReservedInstanceOfferings -> Bool
$c== :: DescribeReservedInstanceOfferings
-> DescribeReservedInstanceOfferings -> Bool
Prelude.Eq, ReadPrec [DescribeReservedInstanceOfferings]
ReadPrec DescribeReservedInstanceOfferings
Int -> ReadS DescribeReservedInstanceOfferings
ReadS [DescribeReservedInstanceOfferings]
(Int -> ReadS DescribeReservedInstanceOfferings)
-> ReadS [DescribeReservedInstanceOfferings]
-> ReadPrec DescribeReservedInstanceOfferings
-> ReadPrec [DescribeReservedInstanceOfferings]
-> Read DescribeReservedInstanceOfferings
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeReservedInstanceOfferings]
$creadListPrec :: ReadPrec [DescribeReservedInstanceOfferings]
readPrec :: ReadPrec DescribeReservedInstanceOfferings
$creadPrec :: ReadPrec DescribeReservedInstanceOfferings
readList :: ReadS [DescribeReservedInstanceOfferings]
$creadList :: ReadS [DescribeReservedInstanceOfferings]
readsPrec :: Int -> ReadS DescribeReservedInstanceOfferings
$creadsPrec :: Int -> ReadS DescribeReservedInstanceOfferings
Prelude.Read, Int -> DescribeReservedInstanceOfferings -> ShowS
[DescribeReservedInstanceOfferings] -> ShowS
DescribeReservedInstanceOfferings -> String
(Int -> DescribeReservedInstanceOfferings -> ShowS)
-> (DescribeReservedInstanceOfferings -> String)
-> ([DescribeReservedInstanceOfferings] -> ShowS)
-> Show DescribeReservedInstanceOfferings
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeReservedInstanceOfferings] -> ShowS
$cshowList :: [DescribeReservedInstanceOfferings] -> ShowS
show :: DescribeReservedInstanceOfferings -> String
$cshow :: DescribeReservedInstanceOfferings -> String
showsPrec :: Int -> DescribeReservedInstanceOfferings -> ShowS
$cshowsPrec :: Int -> DescribeReservedInstanceOfferings -> ShowS
Prelude.Show, (forall x.
DescribeReservedInstanceOfferings
-> Rep DescribeReservedInstanceOfferings x)
-> (forall x.
Rep DescribeReservedInstanceOfferings x
-> DescribeReservedInstanceOfferings)
-> Generic DescribeReservedInstanceOfferings
forall x.
Rep DescribeReservedInstanceOfferings x
-> DescribeReservedInstanceOfferings
forall x.
DescribeReservedInstanceOfferings
-> Rep DescribeReservedInstanceOfferings x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeReservedInstanceOfferings x
-> DescribeReservedInstanceOfferings
$cfrom :: forall x.
DescribeReservedInstanceOfferings
-> Rep DescribeReservedInstanceOfferings x
Prelude.Generic)
newDescribeReservedInstanceOfferings ::
DescribeReservedInstanceOfferings
newDescribeReservedInstanceOfferings :: DescribeReservedInstanceOfferings
newDescribeReservedInstanceOfferings =
DescribeReservedInstanceOfferings' :: Maybe Text
-> Maybe Text -> Maybe Int -> DescribeReservedInstanceOfferings
DescribeReservedInstanceOfferings'
{ $sel:nextToken:DescribeReservedInstanceOfferings' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:reservedInstanceOfferingId:DescribeReservedInstanceOfferings' :: Maybe Text
reservedInstanceOfferingId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:DescribeReservedInstanceOfferings' :: Maybe Int
maxResults = Maybe Int
forall a. Maybe a
Prelude.Nothing
}
describeReservedInstanceOfferings_nextToken :: Lens.Lens' DescribeReservedInstanceOfferings (Prelude.Maybe Prelude.Text)
describeReservedInstanceOfferings_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeReservedInstanceOfferings
-> f DescribeReservedInstanceOfferings
describeReservedInstanceOfferings_nextToken = (DescribeReservedInstanceOfferings -> Maybe Text)
-> (DescribeReservedInstanceOfferings
-> Maybe Text -> DescribeReservedInstanceOfferings)
-> Lens
DescribeReservedInstanceOfferings
DescribeReservedInstanceOfferings
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReservedInstanceOfferings' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeReservedInstanceOfferings' :: DescribeReservedInstanceOfferings -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeReservedInstanceOfferings
s@DescribeReservedInstanceOfferings' {} Maybe Text
a -> DescribeReservedInstanceOfferings
s {$sel:nextToken:DescribeReservedInstanceOfferings' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeReservedInstanceOfferings)
describeReservedInstanceOfferings_reservedInstanceOfferingId :: Lens.Lens' DescribeReservedInstanceOfferings (Prelude.Maybe Prelude.Text)
describeReservedInstanceOfferings_reservedInstanceOfferingId :: (Maybe Text -> f (Maybe Text))
-> DescribeReservedInstanceOfferings
-> f DescribeReservedInstanceOfferings
describeReservedInstanceOfferings_reservedInstanceOfferingId = (DescribeReservedInstanceOfferings -> Maybe Text)
-> (DescribeReservedInstanceOfferings
-> Maybe Text -> DescribeReservedInstanceOfferings)
-> Lens
DescribeReservedInstanceOfferings
DescribeReservedInstanceOfferings
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReservedInstanceOfferings' {Maybe Text
reservedInstanceOfferingId :: Maybe Text
$sel:reservedInstanceOfferingId:DescribeReservedInstanceOfferings' :: DescribeReservedInstanceOfferings -> Maybe Text
reservedInstanceOfferingId} -> Maybe Text
reservedInstanceOfferingId) (\s :: DescribeReservedInstanceOfferings
s@DescribeReservedInstanceOfferings' {} Maybe Text
a -> DescribeReservedInstanceOfferings
s {$sel:reservedInstanceOfferingId:DescribeReservedInstanceOfferings' :: Maybe Text
reservedInstanceOfferingId = Maybe Text
a} :: DescribeReservedInstanceOfferings)
describeReservedInstanceOfferings_maxResults :: Lens.Lens' DescribeReservedInstanceOfferings (Prelude.Maybe Prelude.Int)
describeReservedInstanceOfferings_maxResults :: (Maybe Int -> f (Maybe Int))
-> DescribeReservedInstanceOfferings
-> f DescribeReservedInstanceOfferings
describeReservedInstanceOfferings_maxResults = (DescribeReservedInstanceOfferings -> Maybe Int)
-> (DescribeReservedInstanceOfferings
-> Maybe Int -> DescribeReservedInstanceOfferings)
-> Lens
DescribeReservedInstanceOfferings
DescribeReservedInstanceOfferings
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReservedInstanceOfferings' {Maybe Int
maxResults :: Maybe Int
$sel:maxResults:DescribeReservedInstanceOfferings' :: DescribeReservedInstanceOfferings -> Maybe Int
maxResults} -> Maybe Int
maxResults) (\s :: DescribeReservedInstanceOfferings
s@DescribeReservedInstanceOfferings' {} Maybe Int
a -> DescribeReservedInstanceOfferings
s {$sel:maxResults:DescribeReservedInstanceOfferings' :: Maybe Int
maxResults = Maybe Int
a} :: DescribeReservedInstanceOfferings)
instance
Core.AWSRequest
DescribeReservedInstanceOfferings
where
type
AWSResponse DescribeReservedInstanceOfferings =
DescribeReservedInstanceOfferingsResponse
request :: DescribeReservedInstanceOfferings
-> Request DescribeReservedInstanceOfferings
request = Service
-> DescribeReservedInstanceOfferings
-> Request DescribeReservedInstanceOfferings
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeReservedInstanceOfferings
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribeReservedInstanceOfferings)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeReservedInstanceOfferings))
-> Logger
-> Service
-> Proxy DescribeReservedInstanceOfferings
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribeReservedInstanceOfferings)))
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 [ReservedInstanceOffering]
-> Int
-> DescribeReservedInstanceOfferingsResponse
DescribeReservedInstanceOfferingsResponse'
(Maybe Text
-> Maybe [ReservedInstanceOffering]
-> Int
-> DescribeReservedInstanceOfferingsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [ReservedInstanceOffering]
-> Int -> DescribeReservedInstanceOfferingsResponse)
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 [ReservedInstanceOffering]
-> Int -> DescribeReservedInstanceOfferingsResponse)
-> Either String (Maybe [ReservedInstanceOffering])
-> Either String (Int -> DescribeReservedInstanceOfferingsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [ReservedInstanceOffering]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ReservedInstanceOfferings"
Either String (Maybe (Maybe [ReservedInstanceOffering]))
-> Maybe [ReservedInstanceOffering]
-> Either String (Maybe [ReservedInstanceOffering])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ReservedInstanceOffering]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> DescribeReservedInstanceOfferingsResponse)
-> Either String Int
-> Either String DescribeReservedInstanceOfferingsResponse
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
DescribeReservedInstanceOfferings
instance
Prelude.NFData
DescribeReservedInstanceOfferings
instance
Core.ToHeaders
DescribeReservedInstanceOfferings
where
toHeaders :: DescribeReservedInstanceOfferings -> ResponseHeaders
toHeaders = ResponseHeaders
-> DescribeReservedInstanceOfferings -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance
Core.ToPath
DescribeReservedInstanceOfferings
where
toPath :: DescribeReservedInstanceOfferings -> ByteString
toPath =
ByteString -> DescribeReservedInstanceOfferings -> ByteString
forall a b. a -> b -> a
Prelude.const
ByteString
"/2021-01-01/opensearch/reservedInstanceOfferings"
instance
Core.ToQuery
DescribeReservedInstanceOfferings
where
toQuery :: DescribeReservedInstanceOfferings -> QueryString
toQuery DescribeReservedInstanceOfferings' {Maybe Int
Maybe Text
maxResults :: Maybe Int
reservedInstanceOfferingId :: Maybe Text
nextToken :: Maybe Text
$sel:maxResults:DescribeReservedInstanceOfferings' :: DescribeReservedInstanceOfferings -> Maybe Int
$sel:reservedInstanceOfferingId:DescribeReservedInstanceOfferings' :: DescribeReservedInstanceOfferings -> Maybe Text
$sel:nextToken:DescribeReservedInstanceOfferings' :: DescribeReservedInstanceOfferings -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
ByteString
"offeringId" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
reservedInstanceOfferingId,
ByteString
"maxResults" ByteString -> Maybe Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
maxResults
]
data DescribeReservedInstanceOfferingsResponse = DescribeReservedInstanceOfferingsResponse'
{
DescribeReservedInstanceOfferingsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeReservedInstanceOfferingsResponse
-> Maybe [ReservedInstanceOffering]
reservedInstanceOfferings :: Prelude.Maybe [ReservedInstanceOffering],
DescribeReservedInstanceOfferingsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeReservedInstanceOfferingsResponse
-> DescribeReservedInstanceOfferingsResponse -> Bool
(DescribeReservedInstanceOfferingsResponse
-> DescribeReservedInstanceOfferingsResponse -> Bool)
-> (DescribeReservedInstanceOfferingsResponse
-> DescribeReservedInstanceOfferingsResponse -> Bool)
-> Eq DescribeReservedInstanceOfferingsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeReservedInstanceOfferingsResponse
-> DescribeReservedInstanceOfferingsResponse -> Bool
$c/= :: DescribeReservedInstanceOfferingsResponse
-> DescribeReservedInstanceOfferingsResponse -> Bool
== :: DescribeReservedInstanceOfferingsResponse
-> DescribeReservedInstanceOfferingsResponse -> Bool
$c== :: DescribeReservedInstanceOfferingsResponse
-> DescribeReservedInstanceOfferingsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeReservedInstanceOfferingsResponse]
ReadPrec DescribeReservedInstanceOfferingsResponse
Int -> ReadS DescribeReservedInstanceOfferingsResponse
ReadS [DescribeReservedInstanceOfferingsResponse]
(Int -> ReadS DescribeReservedInstanceOfferingsResponse)
-> ReadS [DescribeReservedInstanceOfferingsResponse]
-> ReadPrec DescribeReservedInstanceOfferingsResponse
-> ReadPrec [DescribeReservedInstanceOfferingsResponse]
-> Read DescribeReservedInstanceOfferingsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeReservedInstanceOfferingsResponse]
$creadListPrec :: ReadPrec [DescribeReservedInstanceOfferingsResponse]
readPrec :: ReadPrec DescribeReservedInstanceOfferingsResponse
$creadPrec :: ReadPrec DescribeReservedInstanceOfferingsResponse
readList :: ReadS [DescribeReservedInstanceOfferingsResponse]
$creadList :: ReadS [DescribeReservedInstanceOfferingsResponse]
readsPrec :: Int -> ReadS DescribeReservedInstanceOfferingsResponse
$creadsPrec :: Int -> ReadS DescribeReservedInstanceOfferingsResponse
Prelude.Read, Int -> DescribeReservedInstanceOfferingsResponse -> ShowS
[DescribeReservedInstanceOfferingsResponse] -> ShowS
DescribeReservedInstanceOfferingsResponse -> String
(Int -> DescribeReservedInstanceOfferingsResponse -> ShowS)
-> (DescribeReservedInstanceOfferingsResponse -> String)
-> ([DescribeReservedInstanceOfferingsResponse] -> ShowS)
-> Show DescribeReservedInstanceOfferingsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeReservedInstanceOfferingsResponse] -> ShowS
$cshowList :: [DescribeReservedInstanceOfferingsResponse] -> ShowS
show :: DescribeReservedInstanceOfferingsResponse -> String
$cshow :: DescribeReservedInstanceOfferingsResponse -> String
showsPrec :: Int -> DescribeReservedInstanceOfferingsResponse -> ShowS
$cshowsPrec :: Int -> DescribeReservedInstanceOfferingsResponse -> ShowS
Prelude.Show, (forall x.
DescribeReservedInstanceOfferingsResponse
-> Rep DescribeReservedInstanceOfferingsResponse x)
-> (forall x.
Rep DescribeReservedInstanceOfferingsResponse x
-> DescribeReservedInstanceOfferingsResponse)
-> Generic DescribeReservedInstanceOfferingsResponse
forall x.
Rep DescribeReservedInstanceOfferingsResponse x
-> DescribeReservedInstanceOfferingsResponse
forall x.
DescribeReservedInstanceOfferingsResponse
-> Rep DescribeReservedInstanceOfferingsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeReservedInstanceOfferingsResponse x
-> DescribeReservedInstanceOfferingsResponse
$cfrom :: forall x.
DescribeReservedInstanceOfferingsResponse
-> Rep DescribeReservedInstanceOfferingsResponse x
Prelude.Generic)
newDescribeReservedInstanceOfferingsResponse ::
Prelude.Int ->
DescribeReservedInstanceOfferingsResponse
newDescribeReservedInstanceOfferingsResponse :: Int -> DescribeReservedInstanceOfferingsResponse
newDescribeReservedInstanceOfferingsResponse
Int
pHttpStatus_ =
DescribeReservedInstanceOfferingsResponse' :: Maybe Text
-> Maybe [ReservedInstanceOffering]
-> Int
-> DescribeReservedInstanceOfferingsResponse
DescribeReservedInstanceOfferingsResponse'
{ $sel:nextToken:DescribeReservedInstanceOfferingsResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:reservedInstanceOfferings:DescribeReservedInstanceOfferingsResponse' :: Maybe [ReservedInstanceOffering]
reservedInstanceOfferings =
Maybe [ReservedInstanceOffering]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeReservedInstanceOfferingsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeReservedInstanceOfferingsResponse_nextToken :: Lens.Lens' DescribeReservedInstanceOfferingsResponse (Prelude.Maybe Prelude.Text)
describeReservedInstanceOfferingsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeReservedInstanceOfferingsResponse
-> f DescribeReservedInstanceOfferingsResponse
describeReservedInstanceOfferingsResponse_nextToken = (DescribeReservedInstanceOfferingsResponse -> Maybe Text)
-> (DescribeReservedInstanceOfferingsResponse
-> Maybe Text -> DescribeReservedInstanceOfferingsResponse)
-> Lens
DescribeReservedInstanceOfferingsResponse
DescribeReservedInstanceOfferingsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReservedInstanceOfferingsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeReservedInstanceOfferingsResponse' :: DescribeReservedInstanceOfferingsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeReservedInstanceOfferingsResponse
s@DescribeReservedInstanceOfferingsResponse' {} Maybe Text
a -> DescribeReservedInstanceOfferingsResponse
s {$sel:nextToken:DescribeReservedInstanceOfferingsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeReservedInstanceOfferingsResponse)
describeReservedInstanceOfferingsResponse_reservedInstanceOfferings :: Lens.Lens' DescribeReservedInstanceOfferingsResponse (Prelude.Maybe [ReservedInstanceOffering])
describeReservedInstanceOfferingsResponse_reservedInstanceOfferings :: (Maybe [ReservedInstanceOffering]
-> f (Maybe [ReservedInstanceOffering]))
-> DescribeReservedInstanceOfferingsResponse
-> f DescribeReservedInstanceOfferingsResponse
describeReservedInstanceOfferingsResponse_reservedInstanceOfferings = (DescribeReservedInstanceOfferingsResponse
-> Maybe [ReservedInstanceOffering])
-> (DescribeReservedInstanceOfferingsResponse
-> Maybe [ReservedInstanceOffering]
-> DescribeReservedInstanceOfferingsResponse)
-> Lens
DescribeReservedInstanceOfferingsResponse
DescribeReservedInstanceOfferingsResponse
(Maybe [ReservedInstanceOffering])
(Maybe [ReservedInstanceOffering])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReservedInstanceOfferingsResponse' {Maybe [ReservedInstanceOffering]
reservedInstanceOfferings :: Maybe [ReservedInstanceOffering]
$sel:reservedInstanceOfferings:DescribeReservedInstanceOfferingsResponse' :: DescribeReservedInstanceOfferingsResponse
-> Maybe [ReservedInstanceOffering]
reservedInstanceOfferings} -> Maybe [ReservedInstanceOffering]
reservedInstanceOfferings) (\s :: DescribeReservedInstanceOfferingsResponse
s@DescribeReservedInstanceOfferingsResponse' {} Maybe [ReservedInstanceOffering]
a -> DescribeReservedInstanceOfferingsResponse
s {$sel:reservedInstanceOfferings:DescribeReservedInstanceOfferingsResponse' :: Maybe [ReservedInstanceOffering]
reservedInstanceOfferings = Maybe [ReservedInstanceOffering]
a} :: DescribeReservedInstanceOfferingsResponse) ((Maybe [ReservedInstanceOffering]
-> f (Maybe [ReservedInstanceOffering]))
-> DescribeReservedInstanceOfferingsResponse
-> f DescribeReservedInstanceOfferingsResponse)
-> ((Maybe [ReservedInstanceOffering]
-> f (Maybe [ReservedInstanceOffering]))
-> Maybe [ReservedInstanceOffering]
-> f (Maybe [ReservedInstanceOffering]))
-> (Maybe [ReservedInstanceOffering]
-> f (Maybe [ReservedInstanceOffering]))
-> DescribeReservedInstanceOfferingsResponse
-> f DescribeReservedInstanceOfferingsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ReservedInstanceOffering]
[ReservedInstanceOffering]
[ReservedInstanceOffering]
[ReservedInstanceOffering]
-> Iso
(Maybe [ReservedInstanceOffering])
(Maybe [ReservedInstanceOffering])
(Maybe [ReservedInstanceOffering])
(Maybe [ReservedInstanceOffering])
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
[ReservedInstanceOffering]
[ReservedInstanceOffering]
[ReservedInstanceOffering]
[ReservedInstanceOffering]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeReservedInstanceOfferingsResponse_httpStatus :: Lens.Lens' DescribeReservedInstanceOfferingsResponse Prelude.Int
describeReservedInstanceOfferingsResponse_httpStatus :: (Int -> f Int)
-> DescribeReservedInstanceOfferingsResponse
-> f DescribeReservedInstanceOfferingsResponse
describeReservedInstanceOfferingsResponse_httpStatus = (DescribeReservedInstanceOfferingsResponse -> Int)
-> (DescribeReservedInstanceOfferingsResponse
-> Int -> DescribeReservedInstanceOfferingsResponse)
-> Lens
DescribeReservedInstanceOfferingsResponse
DescribeReservedInstanceOfferingsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReservedInstanceOfferingsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeReservedInstanceOfferingsResponse' :: DescribeReservedInstanceOfferingsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeReservedInstanceOfferingsResponse
s@DescribeReservedInstanceOfferingsResponse' {} Int
a -> DescribeReservedInstanceOfferingsResponse
s {$sel:httpStatus:DescribeReservedInstanceOfferingsResponse' :: Int
httpStatus = Int
a} :: DescribeReservedInstanceOfferingsResponse)
instance
Prelude.NFData
DescribeReservedInstanceOfferingsResponse