{-# 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.RDS.DescribeReservedDBInstances
(
DescribeReservedDBInstances (..),
newDescribeReservedDBInstances,
describeReservedDBInstances_productDescription,
describeReservedDBInstances_filters,
describeReservedDBInstances_leaseId,
describeReservedDBInstances_reservedDBInstanceId,
describeReservedDBInstances_dbInstanceClass,
describeReservedDBInstances_marker,
describeReservedDBInstances_maxRecords,
describeReservedDBInstances_multiAZ,
describeReservedDBInstances_reservedDBInstancesOfferingId,
describeReservedDBInstances_offeringType,
describeReservedDBInstances_duration,
DescribeReservedDBInstancesResponse (..),
newDescribeReservedDBInstancesResponse,
describeReservedDBInstancesResponse_reservedDBInstances,
describeReservedDBInstancesResponse_marker,
describeReservedDBInstancesResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.RDS.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DescribeReservedDBInstances = DescribeReservedDBInstances'
{
DescribeReservedDBInstances -> Maybe Text
productDescription :: Prelude.Maybe Prelude.Text,
DescribeReservedDBInstances -> Maybe [Filter]
filters :: Prelude.Maybe [Filter],
DescribeReservedDBInstances -> Maybe Text
leaseId :: Prelude.Maybe Prelude.Text,
DescribeReservedDBInstances -> Maybe Text
reservedDBInstanceId :: Prelude.Maybe Prelude.Text,
DescribeReservedDBInstances -> Maybe Text
dbInstanceClass :: Prelude.Maybe Prelude.Text,
DescribeReservedDBInstances -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeReservedDBInstances -> Maybe Int
maxRecords :: Prelude.Maybe Prelude.Int,
DescribeReservedDBInstances -> Maybe Bool
multiAZ :: Prelude.Maybe Prelude.Bool,
DescribeReservedDBInstances -> Maybe Text
reservedDBInstancesOfferingId :: Prelude.Maybe Prelude.Text,
DescribeReservedDBInstances -> Maybe Text
offeringType :: Prelude.Maybe Prelude.Text,
DescribeReservedDBInstances -> Maybe Text
duration :: Prelude.Maybe Prelude.Text
}
deriving (DescribeReservedDBInstances -> DescribeReservedDBInstances -> Bool
(DescribeReservedDBInstances
-> DescribeReservedDBInstances -> Bool)
-> (DescribeReservedDBInstances
-> DescribeReservedDBInstances -> Bool)
-> Eq DescribeReservedDBInstances
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeReservedDBInstances -> DescribeReservedDBInstances -> Bool
$c/= :: DescribeReservedDBInstances -> DescribeReservedDBInstances -> Bool
== :: DescribeReservedDBInstances -> DescribeReservedDBInstances -> Bool
$c== :: DescribeReservedDBInstances -> DescribeReservedDBInstances -> Bool
Prelude.Eq, ReadPrec [DescribeReservedDBInstances]
ReadPrec DescribeReservedDBInstances
Int -> ReadS DescribeReservedDBInstances
ReadS [DescribeReservedDBInstances]
(Int -> ReadS DescribeReservedDBInstances)
-> ReadS [DescribeReservedDBInstances]
-> ReadPrec DescribeReservedDBInstances
-> ReadPrec [DescribeReservedDBInstances]
-> Read DescribeReservedDBInstances
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeReservedDBInstances]
$creadListPrec :: ReadPrec [DescribeReservedDBInstances]
readPrec :: ReadPrec DescribeReservedDBInstances
$creadPrec :: ReadPrec DescribeReservedDBInstances
readList :: ReadS [DescribeReservedDBInstances]
$creadList :: ReadS [DescribeReservedDBInstances]
readsPrec :: Int -> ReadS DescribeReservedDBInstances
$creadsPrec :: Int -> ReadS DescribeReservedDBInstances
Prelude.Read, Int -> DescribeReservedDBInstances -> ShowS
[DescribeReservedDBInstances] -> ShowS
DescribeReservedDBInstances -> String
(Int -> DescribeReservedDBInstances -> ShowS)
-> (DescribeReservedDBInstances -> String)
-> ([DescribeReservedDBInstances] -> ShowS)
-> Show DescribeReservedDBInstances
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeReservedDBInstances] -> ShowS
$cshowList :: [DescribeReservedDBInstances] -> ShowS
show :: DescribeReservedDBInstances -> String
$cshow :: DescribeReservedDBInstances -> String
showsPrec :: Int -> DescribeReservedDBInstances -> ShowS
$cshowsPrec :: Int -> DescribeReservedDBInstances -> ShowS
Prelude.Show, (forall x.
DescribeReservedDBInstances -> Rep DescribeReservedDBInstances x)
-> (forall x.
Rep DescribeReservedDBInstances x -> DescribeReservedDBInstances)
-> Generic DescribeReservedDBInstances
forall x.
Rep DescribeReservedDBInstances x -> DescribeReservedDBInstances
forall x.
DescribeReservedDBInstances -> Rep DescribeReservedDBInstances x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeReservedDBInstances x -> DescribeReservedDBInstances
$cfrom :: forall x.
DescribeReservedDBInstances -> Rep DescribeReservedDBInstances x
Prelude.Generic)
newDescribeReservedDBInstances ::
DescribeReservedDBInstances
newDescribeReservedDBInstances :: DescribeReservedDBInstances
newDescribeReservedDBInstances =
DescribeReservedDBInstances' :: Maybe Text
-> Maybe [Filter]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> DescribeReservedDBInstances
DescribeReservedDBInstances'
{ $sel:productDescription:DescribeReservedDBInstances' :: Maybe Text
productDescription =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:filters:DescribeReservedDBInstances' :: Maybe [Filter]
filters = Maybe [Filter]
forall a. Maybe a
Prelude.Nothing,
$sel:leaseId:DescribeReservedDBInstances' :: Maybe Text
leaseId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:reservedDBInstanceId:DescribeReservedDBInstances' :: Maybe Text
reservedDBInstanceId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:dbInstanceClass:DescribeReservedDBInstances' :: Maybe Text
dbInstanceClass = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:marker:DescribeReservedDBInstances' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxRecords:DescribeReservedDBInstances' :: Maybe Int
maxRecords = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:multiAZ:DescribeReservedDBInstances' :: Maybe Bool
multiAZ = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:reservedDBInstancesOfferingId:DescribeReservedDBInstances' :: Maybe Text
reservedDBInstancesOfferingId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:offeringType:DescribeReservedDBInstances' :: Maybe Text
offeringType = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:duration:DescribeReservedDBInstances' :: Maybe Text
duration = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
describeReservedDBInstances_productDescription :: Lens.Lens' DescribeReservedDBInstances (Prelude.Maybe Prelude.Text)
describeReservedDBInstances_productDescription :: (Maybe Text -> f (Maybe Text))
-> DescribeReservedDBInstances -> f DescribeReservedDBInstances
describeReservedDBInstances_productDescription = (DescribeReservedDBInstances -> Maybe Text)
-> (DescribeReservedDBInstances
-> Maybe Text -> DescribeReservedDBInstances)
-> Lens
DescribeReservedDBInstances
DescribeReservedDBInstances
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReservedDBInstances' {Maybe Text
productDescription :: Maybe Text
$sel:productDescription:DescribeReservedDBInstances' :: DescribeReservedDBInstances -> Maybe Text
productDescription} -> Maybe Text
productDescription) (\s :: DescribeReservedDBInstances
s@DescribeReservedDBInstances' {} Maybe Text
a -> DescribeReservedDBInstances
s {$sel:productDescription:DescribeReservedDBInstances' :: Maybe Text
productDescription = Maybe Text
a} :: DescribeReservedDBInstances)
describeReservedDBInstances_filters :: Lens.Lens' DescribeReservedDBInstances (Prelude.Maybe [Filter])
describeReservedDBInstances_filters :: (Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeReservedDBInstances -> f DescribeReservedDBInstances
describeReservedDBInstances_filters = (DescribeReservedDBInstances -> Maybe [Filter])
-> (DescribeReservedDBInstances
-> Maybe [Filter] -> DescribeReservedDBInstances)
-> Lens
DescribeReservedDBInstances
DescribeReservedDBInstances
(Maybe [Filter])
(Maybe [Filter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReservedDBInstances' {Maybe [Filter]
filters :: Maybe [Filter]
$sel:filters:DescribeReservedDBInstances' :: DescribeReservedDBInstances -> Maybe [Filter]
filters} -> Maybe [Filter]
filters) (\s :: DescribeReservedDBInstances
s@DescribeReservedDBInstances' {} Maybe [Filter]
a -> DescribeReservedDBInstances
s {$sel:filters:DescribeReservedDBInstances' :: Maybe [Filter]
filters = Maybe [Filter]
a} :: DescribeReservedDBInstances) ((Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeReservedDBInstances -> f DescribeReservedDBInstances)
-> ((Maybe [Filter] -> f (Maybe [Filter]))
-> Maybe [Filter] -> f (Maybe [Filter]))
-> (Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeReservedDBInstances
-> f DescribeReservedDBInstances
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Filter] [Filter] [Filter] [Filter]
-> Iso
(Maybe [Filter]) (Maybe [Filter]) (Maybe [Filter]) (Maybe [Filter])
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 [Filter] [Filter] [Filter] [Filter]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeReservedDBInstances_leaseId :: Lens.Lens' DescribeReservedDBInstances (Prelude.Maybe Prelude.Text)
describeReservedDBInstances_leaseId :: (Maybe Text -> f (Maybe Text))
-> DescribeReservedDBInstances -> f DescribeReservedDBInstances
describeReservedDBInstances_leaseId = (DescribeReservedDBInstances -> Maybe Text)
-> (DescribeReservedDBInstances
-> Maybe Text -> DescribeReservedDBInstances)
-> Lens
DescribeReservedDBInstances
DescribeReservedDBInstances
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReservedDBInstances' {Maybe Text
leaseId :: Maybe Text
$sel:leaseId:DescribeReservedDBInstances' :: DescribeReservedDBInstances -> Maybe Text
leaseId} -> Maybe Text
leaseId) (\s :: DescribeReservedDBInstances
s@DescribeReservedDBInstances' {} Maybe Text
a -> DescribeReservedDBInstances
s {$sel:leaseId:DescribeReservedDBInstances' :: Maybe Text
leaseId = Maybe Text
a} :: DescribeReservedDBInstances)
describeReservedDBInstances_reservedDBInstanceId :: Lens.Lens' DescribeReservedDBInstances (Prelude.Maybe Prelude.Text)
describeReservedDBInstances_reservedDBInstanceId :: (Maybe Text -> f (Maybe Text))
-> DescribeReservedDBInstances -> f DescribeReservedDBInstances
describeReservedDBInstances_reservedDBInstanceId = (DescribeReservedDBInstances -> Maybe Text)
-> (DescribeReservedDBInstances
-> Maybe Text -> DescribeReservedDBInstances)
-> Lens
DescribeReservedDBInstances
DescribeReservedDBInstances
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReservedDBInstances' {Maybe Text
reservedDBInstanceId :: Maybe Text
$sel:reservedDBInstanceId:DescribeReservedDBInstances' :: DescribeReservedDBInstances -> Maybe Text
reservedDBInstanceId} -> Maybe Text
reservedDBInstanceId) (\s :: DescribeReservedDBInstances
s@DescribeReservedDBInstances' {} Maybe Text
a -> DescribeReservedDBInstances
s {$sel:reservedDBInstanceId:DescribeReservedDBInstances' :: Maybe Text
reservedDBInstanceId = Maybe Text
a} :: DescribeReservedDBInstances)
describeReservedDBInstances_dbInstanceClass :: Lens.Lens' DescribeReservedDBInstances (Prelude.Maybe Prelude.Text)
describeReservedDBInstances_dbInstanceClass :: (Maybe Text -> f (Maybe Text))
-> DescribeReservedDBInstances -> f DescribeReservedDBInstances
describeReservedDBInstances_dbInstanceClass = (DescribeReservedDBInstances -> Maybe Text)
-> (DescribeReservedDBInstances
-> Maybe Text -> DescribeReservedDBInstances)
-> Lens
DescribeReservedDBInstances
DescribeReservedDBInstances
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReservedDBInstances' {Maybe Text
dbInstanceClass :: Maybe Text
$sel:dbInstanceClass:DescribeReservedDBInstances' :: DescribeReservedDBInstances -> Maybe Text
dbInstanceClass} -> Maybe Text
dbInstanceClass) (\s :: DescribeReservedDBInstances
s@DescribeReservedDBInstances' {} Maybe Text
a -> DescribeReservedDBInstances
s {$sel:dbInstanceClass:DescribeReservedDBInstances' :: Maybe Text
dbInstanceClass = Maybe Text
a} :: DescribeReservedDBInstances)
describeReservedDBInstances_marker :: Lens.Lens' DescribeReservedDBInstances (Prelude.Maybe Prelude.Text)
describeReservedDBInstances_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeReservedDBInstances -> f DescribeReservedDBInstances
describeReservedDBInstances_marker = (DescribeReservedDBInstances -> Maybe Text)
-> (DescribeReservedDBInstances
-> Maybe Text -> DescribeReservedDBInstances)
-> Lens
DescribeReservedDBInstances
DescribeReservedDBInstances
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReservedDBInstances' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeReservedDBInstances' :: DescribeReservedDBInstances -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeReservedDBInstances
s@DescribeReservedDBInstances' {} Maybe Text
a -> DescribeReservedDBInstances
s {$sel:marker:DescribeReservedDBInstances' :: Maybe Text
marker = Maybe Text
a} :: DescribeReservedDBInstances)
describeReservedDBInstances_maxRecords :: Lens.Lens' DescribeReservedDBInstances (Prelude.Maybe Prelude.Int)
describeReservedDBInstances_maxRecords :: (Maybe Int -> f (Maybe Int))
-> DescribeReservedDBInstances -> f DescribeReservedDBInstances
describeReservedDBInstances_maxRecords = (DescribeReservedDBInstances -> Maybe Int)
-> (DescribeReservedDBInstances
-> Maybe Int -> DescribeReservedDBInstances)
-> Lens
DescribeReservedDBInstances
DescribeReservedDBInstances
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReservedDBInstances' {Maybe Int
maxRecords :: Maybe Int
$sel:maxRecords:DescribeReservedDBInstances' :: DescribeReservedDBInstances -> Maybe Int
maxRecords} -> Maybe Int
maxRecords) (\s :: DescribeReservedDBInstances
s@DescribeReservedDBInstances' {} Maybe Int
a -> DescribeReservedDBInstances
s {$sel:maxRecords:DescribeReservedDBInstances' :: Maybe Int
maxRecords = Maybe Int
a} :: DescribeReservedDBInstances)
describeReservedDBInstances_multiAZ :: Lens.Lens' DescribeReservedDBInstances (Prelude.Maybe Prelude.Bool)
describeReservedDBInstances_multiAZ :: (Maybe Bool -> f (Maybe Bool))
-> DescribeReservedDBInstances -> f DescribeReservedDBInstances
describeReservedDBInstances_multiAZ = (DescribeReservedDBInstances -> Maybe Bool)
-> (DescribeReservedDBInstances
-> Maybe Bool -> DescribeReservedDBInstances)
-> Lens
DescribeReservedDBInstances
DescribeReservedDBInstances
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReservedDBInstances' {Maybe Bool
multiAZ :: Maybe Bool
$sel:multiAZ:DescribeReservedDBInstances' :: DescribeReservedDBInstances -> Maybe Bool
multiAZ} -> Maybe Bool
multiAZ) (\s :: DescribeReservedDBInstances
s@DescribeReservedDBInstances' {} Maybe Bool
a -> DescribeReservedDBInstances
s {$sel:multiAZ:DescribeReservedDBInstances' :: Maybe Bool
multiAZ = Maybe Bool
a} :: DescribeReservedDBInstances)
describeReservedDBInstances_reservedDBInstancesOfferingId :: Lens.Lens' DescribeReservedDBInstances (Prelude.Maybe Prelude.Text)
describeReservedDBInstances_reservedDBInstancesOfferingId :: (Maybe Text -> f (Maybe Text))
-> DescribeReservedDBInstances -> f DescribeReservedDBInstances
describeReservedDBInstances_reservedDBInstancesOfferingId = (DescribeReservedDBInstances -> Maybe Text)
-> (DescribeReservedDBInstances
-> Maybe Text -> DescribeReservedDBInstances)
-> Lens
DescribeReservedDBInstances
DescribeReservedDBInstances
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReservedDBInstances' {Maybe Text
reservedDBInstancesOfferingId :: Maybe Text
$sel:reservedDBInstancesOfferingId:DescribeReservedDBInstances' :: DescribeReservedDBInstances -> Maybe Text
reservedDBInstancesOfferingId} -> Maybe Text
reservedDBInstancesOfferingId) (\s :: DescribeReservedDBInstances
s@DescribeReservedDBInstances' {} Maybe Text
a -> DescribeReservedDBInstances
s {$sel:reservedDBInstancesOfferingId:DescribeReservedDBInstances' :: Maybe Text
reservedDBInstancesOfferingId = Maybe Text
a} :: DescribeReservedDBInstances)
describeReservedDBInstances_offeringType :: Lens.Lens' DescribeReservedDBInstances (Prelude.Maybe Prelude.Text)
describeReservedDBInstances_offeringType :: (Maybe Text -> f (Maybe Text))
-> DescribeReservedDBInstances -> f DescribeReservedDBInstances
describeReservedDBInstances_offeringType = (DescribeReservedDBInstances -> Maybe Text)
-> (DescribeReservedDBInstances
-> Maybe Text -> DescribeReservedDBInstances)
-> Lens
DescribeReservedDBInstances
DescribeReservedDBInstances
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReservedDBInstances' {Maybe Text
offeringType :: Maybe Text
$sel:offeringType:DescribeReservedDBInstances' :: DescribeReservedDBInstances -> Maybe Text
offeringType} -> Maybe Text
offeringType) (\s :: DescribeReservedDBInstances
s@DescribeReservedDBInstances' {} Maybe Text
a -> DescribeReservedDBInstances
s {$sel:offeringType:DescribeReservedDBInstances' :: Maybe Text
offeringType = Maybe Text
a} :: DescribeReservedDBInstances)
describeReservedDBInstances_duration :: Lens.Lens' DescribeReservedDBInstances (Prelude.Maybe Prelude.Text)
describeReservedDBInstances_duration :: (Maybe Text -> f (Maybe Text))
-> DescribeReservedDBInstances -> f DescribeReservedDBInstances
describeReservedDBInstances_duration = (DescribeReservedDBInstances -> Maybe Text)
-> (DescribeReservedDBInstances
-> Maybe Text -> DescribeReservedDBInstances)
-> Lens
DescribeReservedDBInstances
DescribeReservedDBInstances
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReservedDBInstances' {Maybe Text
duration :: Maybe Text
$sel:duration:DescribeReservedDBInstances' :: DescribeReservedDBInstances -> Maybe Text
duration} -> Maybe Text
duration) (\s :: DescribeReservedDBInstances
s@DescribeReservedDBInstances' {} Maybe Text
a -> DescribeReservedDBInstances
s {$sel:duration:DescribeReservedDBInstances' :: Maybe Text
duration = Maybe Text
a} :: DescribeReservedDBInstances)
instance Core.AWSPager DescribeReservedDBInstances where
page :: DescribeReservedDBInstances
-> AWSResponse DescribeReservedDBInstances
-> Maybe DescribeReservedDBInstances
page DescribeReservedDBInstances
rq AWSResponse DescribeReservedDBInstances
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeReservedDBInstances
DescribeReservedDBInstancesResponse
rs
DescribeReservedDBInstancesResponse
-> Getting (First Text) DescribeReservedDBInstancesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeReservedDBInstancesResponse
-> Const (First Text) DescribeReservedDBInstancesResponse
Lens' DescribeReservedDBInstancesResponse (Maybe Text)
describeReservedDBInstancesResponse_marker
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeReservedDBInstancesResponse
-> Const (First Text) DescribeReservedDBInstancesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeReservedDBInstancesResponse 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 DescribeReservedDBInstances
forall a. Maybe a
Prelude.Nothing
| Maybe [ReservedDBInstance] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeReservedDBInstances
DescribeReservedDBInstancesResponse
rs
DescribeReservedDBInstancesResponse
-> Getting
(First [ReservedDBInstance])
DescribeReservedDBInstancesResponse
[ReservedDBInstance]
-> Maybe [ReservedDBInstance]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [ReservedDBInstance]
-> Const (First [ReservedDBInstance]) (Maybe [ReservedDBInstance]))
-> DescribeReservedDBInstancesResponse
-> Const
(First [ReservedDBInstance]) DescribeReservedDBInstancesResponse
Lens'
DescribeReservedDBInstancesResponse (Maybe [ReservedDBInstance])
describeReservedDBInstancesResponse_reservedDBInstances
((Maybe [ReservedDBInstance]
-> Const (First [ReservedDBInstance]) (Maybe [ReservedDBInstance]))
-> DescribeReservedDBInstancesResponse
-> Const
(First [ReservedDBInstance]) DescribeReservedDBInstancesResponse)
-> (([ReservedDBInstance]
-> Const (First [ReservedDBInstance]) [ReservedDBInstance])
-> Maybe [ReservedDBInstance]
-> Const (First [ReservedDBInstance]) (Maybe [ReservedDBInstance]))
-> Getting
(First [ReservedDBInstance])
DescribeReservedDBInstancesResponse
[ReservedDBInstance]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([ReservedDBInstance]
-> Const (First [ReservedDBInstance]) [ReservedDBInstance])
-> Maybe [ReservedDBInstance]
-> Const (First [ReservedDBInstance]) (Maybe [ReservedDBInstance])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeReservedDBInstances
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
DescribeReservedDBInstances -> Maybe DescribeReservedDBInstances
forall a. a -> Maybe a
Prelude.Just (DescribeReservedDBInstances -> Maybe DescribeReservedDBInstances)
-> DescribeReservedDBInstances -> Maybe DescribeReservedDBInstances
forall a b. (a -> b) -> a -> b
Prelude.$
DescribeReservedDBInstances
rq
DescribeReservedDBInstances
-> (DescribeReservedDBInstances -> DescribeReservedDBInstances)
-> DescribeReservedDBInstances
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeReservedDBInstances
-> Identity DescribeReservedDBInstances
Lens
DescribeReservedDBInstances
DescribeReservedDBInstances
(Maybe Text)
(Maybe Text)
describeReservedDBInstances_marker
((Maybe Text -> Identity (Maybe Text))
-> DescribeReservedDBInstances
-> Identity DescribeReservedDBInstances)
-> Maybe Text
-> DescribeReservedDBInstances
-> DescribeReservedDBInstances
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeReservedDBInstances
DescribeReservedDBInstancesResponse
rs
DescribeReservedDBInstancesResponse
-> Getting (First Text) DescribeReservedDBInstancesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeReservedDBInstancesResponse
-> Const (First Text) DescribeReservedDBInstancesResponse
Lens' DescribeReservedDBInstancesResponse (Maybe Text)
describeReservedDBInstancesResponse_marker
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeReservedDBInstancesResponse
-> Const (First Text) DescribeReservedDBInstancesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeReservedDBInstancesResponse 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 DescribeReservedDBInstances where
type
AWSResponse DescribeReservedDBInstances =
DescribeReservedDBInstancesResponse
request :: DescribeReservedDBInstances -> Request DescribeReservedDBInstances
request = Service
-> DescribeReservedDBInstances
-> Request DescribeReservedDBInstances
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeReservedDBInstances
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeReservedDBInstances)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse DescribeReservedDBInstances))
-> Logger
-> Service
-> Proxy DescribeReservedDBInstances
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeReservedDBInstances)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
-> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
Text
"DescribeReservedDBInstancesResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe [ReservedDBInstance]
-> Maybe Text -> Int -> DescribeReservedDBInstancesResponse
DescribeReservedDBInstancesResponse'
(Maybe [ReservedDBInstance]
-> Maybe Text -> Int -> DescribeReservedDBInstancesResponse)
-> Either String (Maybe [ReservedDBInstance])
-> Either
String (Maybe Text -> Int -> DescribeReservedDBInstancesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( [Node]
x [Node] -> Text -> Either String (Maybe [Node])
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"ReservedDBInstances"
Either String (Maybe [Node]) -> [Node] -> Either String [Node]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Node]
forall a. Monoid a => a
Prelude.mempty
Either String [Node]
-> ([Node] -> Either String (Maybe [ReservedDBInstance]))
-> Either String (Maybe [ReservedDBInstance])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [ReservedDBInstance])
-> [Node] -> Either String (Maybe [ReservedDBInstance])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [ReservedDBInstance]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"ReservedDBInstance")
)
Either
String (Maybe Text -> Int -> DescribeReservedDBInstancesResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeReservedDBInstancesResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Marker")
Either String (Int -> DescribeReservedDBInstancesResponse)
-> Either String Int
-> Either String DescribeReservedDBInstancesResponse
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 DescribeReservedDBInstances
instance Prelude.NFData DescribeReservedDBInstances
instance Core.ToHeaders DescribeReservedDBInstances where
toHeaders :: DescribeReservedDBInstances -> ResponseHeaders
toHeaders = ResponseHeaders -> DescribeReservedDBInstances -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath DescribeReservedDBInstances where
toPath :: DescribeReservedDBInstances -> ByteString
toPath = ByteString -> DescribeReservedDBInstances -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeReservedDBInstances where
toQuery :: DescribeReservedDBInstances -> QueryString
toQuery DescribeReservedDBInstances' {Maybe Bool
Maybe Int
Maybe [Filter]
Maybe Text
duration :: Maybe Text
offeringType :: Maybe Text
reservedDBInstancesOfferingId :: Maybe Text
multiAZ :: Maybe Bool
maxRecords :: Maybe Int
marker :: Maybe Text
dbInstanceClass :: Maybe Text
reservedDBInstanceId :: Maybe Text
leaseId :: Maybe Text
filters :: Maybe [Filter]
productDescription :: Maybe Text
$sel:duration:DescribeReservedDBInstances' :: DescribeReservedDBInstances -> Maybe Text
$sel:offeringType:DescribeReservedDBInstances' :: DescribeReservedDBInstances -> Maybe Text
$sel:reservedDBInstancesOfferingId:DescribeReservedDBInstances' :: DescribeReservedDBInstances -> Maybe Text
$sel:multiAZ:DescribeReservedDBInstances' :: DescribeReservedDBInstances -> Maybe Bool
$sel:maxRecords:DescribeReservedDBInstances' :: DescribeReservedDBInstances -> Maybe Int
$sel:marker:DescribeReservedDBInstances' :: DescribeReservedDBInstances -> Maybe Text
$sel:dbInstanceClass:DescribeReservedDBInstances' :: DescribeReservedDBInstances -> Maybe Text
$sel:reservedDBInstanceId:DescribeReservedDBInstances' :: DescribeReservedDBInstances -> Maybe Text
$sel:leaseId:DescribeReservedDBInstances' :: DescribeReservedDBInstances -> Maybe Text
$sel:filters:DescribeReservedDBInstances' :: DescribeReservedDBInstances -> Maybe [Filter]
$sel:productDescription:DescribeReservedDBInstances' :: DescribeReservedDBInstances -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: ( ByteString
"DescribeReservedDBInstances" ::
Prelude.ByteString
),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2014-10-31" :: Prelude.ByteString),
ByteString
"ProductDescription" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
productDescription,
ByteString
"Filters"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
(ByteString -> [Filter] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"Filter" ([Filter] -> QueryString) -> Maybe [Filter] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Filter]
filters),
ByteString
"LeaseId" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
leaseId,
ByteString
"ReservedDBInstanceId" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
reservedDBInstanceId,
ByteString
"DBInstanceClass" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
dbInstanceClass,
ByteString
"Marker" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
marker,
ByteString
"MaxRecords" ByteString -> Maybe Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
maxRecords,
ByteString
"MultiAZ" ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
multiAZ,
ByteString
"ReservedDBInstancesOfferingId"
ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
reservedDBInstancesOfferingId,
ByteString
"OfferingType" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
offeringType,
ByteString
"Duration" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
duration
]
data DescribeReservedDBInstancesResponse = DescribeReservedDBInstancesResponse'
{
DescribeReservedDBInstancesResponse -> Maybe [ReservedDBInstance]
reservedDBInstances :: Prelude.Maybe [ReservedDBInstance],
DescribeReservedDBInstancesResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeReservedDBInstancesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeReservedDBInstancesResponse
-> DescribeReservedDBInstancesResponse -> Bool
(DescribeReservedDBInstancesResponse
-> DescribeReservedDBInstancesResponse -> Bool)
-> (DescribeReservedDBInstancesResponse
-> DescribeReservedDBInstancesResponse -> Bool)
-> Eq DescribeReservedDBInstancesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeReservedDBInstancesResponse
-> DescribeReservedDBInstancesResponse -> Bool
$c/= :: DescribeReservedDBInstancesResponse
-> DescribeReservedDBInstancesResponse -> Bool
== :: DescribeReservedDBInstancesResponse
-> DescribeReservedDBInstancesResponse -> Bool
$c== :: DescribeReservedDBInstancesResponse
-> DescribeReservedDBInstancesResponse -> Bool
Prelude.Eq, ReadPrec [DescribeReservedDBInstancesResponse]
ReadPrec DescribeReservedDBInstancesResponse
Int -> ReadS DescribeReservedDBInstancesResponse
ReadS [DescribeReservedDBInstancesResponse]
(Int -> ReadS DescribeReservedDBInstancesResponse)
-> ReadS [DescribeReservedDBInstancesResponse]
-> ReadPrec DescribeReservedDBInstancesResponse
-> ReadPrec [DescribeReservedDBInstancesResponse]
-> Read DescribeReservedDBInstancesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeReservedDBInstancesResponse]
$creadListPrec :: ReadPrec [DescribeReservedDBInstancesResponse]
readPrec :: ReadPrec DescribeReservedDBInstancesResponse
$creadPrec :: ReadPrec DescribeReservedDBInstancesResponse
readList :: ReadS [DescribeReservedDBInstancesResponse]
$creadList :: ReadS [DescribeReservedDBInstancesResponse]
readsPrec :: Int -> ReadS DescribeReservedDBInstancesResponse
$creadsPrec :: Int -> ReadS DescribeReservedDBInstancesResponse
Prelude.Read, Int -> DescribeReservedDBInstancesResponse -> ShowS
[DescribeReservedDBInstancesResponse] -> ShowS
DescribeReservedDBInstancesResponse -> String
(Int -> DescribeReservedDBInstancesResponse -> ShowS)
-> (DescribeReservedDBInstancesResponse -> String)
-> ([DescribeReservedDBInstancesResponse] -> ShowS)
-> Show DescribeReservedDBInstancesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeReservedDBInstancesResponse] -> ShowS
$cshowList :: [DescribeReservedDBInstancesResponse] -> ShowS
show :: DescribeReservedDBInstancesResponse -> String
$cshow :: DescribeReservedDBInstancesResponse -> String
showsPrec :: Int -> DescribeReservedDBInstancesResponse -> ShowS
$cshowsPrec :: Int -> DescribeReservedDBInstancesResponse -> ShowS
Prelude.Show, (forall x.
DescribeReservedDBInstancesResponse
-> Rep DescribeReservedDBInstancesResponse x)
-> (forall x.
Rep DescribeReservedDBInstancesResponse x
-> DescribeReservedDBInstancesResponse)
-> Generic DescribeReservedDBInstancesResponse
forall x.
Rep DescribeReservedDBInstancesResponse x
-> DescribeReservedDBInstancesResponse
forall x.
DescribeReservedDBInstancesResponse
-> Rep DescribeReservedDBInstancesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeReservedDBInstancesResponse x
-> DescribeReservedDBInstancesResponse
$cfrom :: forall x.
DescribeReservedDBInstancesResponse
-> Rep DescribeReservedDBInstancesResponse x
Prelude.Generic)
newDescribeReservedDBInstancesResponse ::
Prelude.Int ->
DescribeReservedDBInstancesResponse
newDescribeReservedDBInstancesResponse :: Int -> DescribeReservedDBInstancesResponse
newDescribeReservedDBInstancesResponse Int
pHttpStatus_ =
DescribeReservedDBInstancesResponse' :: Maybe [ReservedDBInstance]
-> Maybe Text -> Int -> DescribeReservedDBInstancesResponse
DescribeReservedDBInstancesResponse'
{ $sel:reservedDBInstances:DescribeReservedDBInstancesResponse' :: Maybe [ReservedDBInstance]
reservedDBInstances =
Maybe [ReservedDBInstance]
forall a. Maybe a
Prelude.Nothing,
$sel:marker:DescribeReservedDBInstancesResponse' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeReservedDBInstancesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeReservedDBInstancesResponse_reservedDBInstances :: Lens.Lens' DescribeReservedDBInstancesResponse (Prelude.Maybe [ReservedDBInstance])
describeReservedDBInstancesResponse_reservedDBInstances :: (Maybe [ReservedDBInstance] -> f (Maybe [ReservedDBInstance]))
-> DescribeReservedDBInstancesResponse
-> f DescribeReservedDBInstancesResponse
describeReservedDBInstancesResponse_reservedDBInstances = (DescribeReservedDBInstancesResponse -> Maybe [ReservedDBInstance])
-> (DescribeReservedDBInstancesResponse
-> Maybe [ReservedDBInstance]
-> DescribeReservedDBInstancesResponse)
-> Lens'
DescribeReservedDBInstancesResponse (Maybe [ReservedDBInstance])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReservedDBInstancesResponse' {Maybe [ReservedDBInstance]
reservedDBInstances :: Maybe [ReservedDBInstance]
$sel:reservedDBInstances:DescribeReservedDBInstancesResponse' :: DescribeReservedDBInstancesResponse -> Maybe [ReservedDBInstance]
reservedDBInstances} -> Maybe [ReservedDBInstance]
reservedDBInstances) (\s :: DescribeReservedDBInstancesResponse
s@DescribeReservedDBInstancesResponse' {} Maybe [ReservedDBInstance]
a -> DescribeReservedDBInstancesResponse
s {$sel:reservedDBInstances:DescribeReservedDBInstancesResponse' :: Maybe [ReservedDBInstance]
reservedDBInstances = Maybe [ReservedDBInstance]
a} :: DescribeReservedDBInstancesResponse) ((Maybe [ReservedDBInstance] -> f (Maybe [ReservedDBInstance]))
-> DescribeReservedDBInstancesResponse
-> f DescribeReservedDBInstancesResponse)
-> ((Maybe [ReservedDBInstance] -> f (Maybe [ReservedDBInstance]))
-> Maybe [ReservedDBInstance] -> f (Maybe [ReservedDBInstance]))
-> (Maybe [ReservedDBInstance] -> f (Maybe [ReservedDBInstance]))
-> DescribeReservedDBInstancesResponse
-> f DescribeReservedDBInstancesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ReservedDBInstance]
[ReservedDBInstance]
[ReservedDBInstance]
[ReservedDBInstance]
-> Iso
(Maybe [ReservedDBInstance])
(Maybe [ReservedDBInstance])
(Maybe [ReservedDBInstance])
(Maybe [ReservedDBInstance])
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
[ReservedDBInstance]
[ReservedDBInstance]
[ReservedDBInstance]
[ReservedDBInstance]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeReservedDBInstancesResponse_marker :: Lens.Lens' DescribeReservedDBInstancesResponse (Prelude.Maybe Prelude.Text)
describeReservedDBInstancesResponse_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeReservedDBInstancesResponse
-> f DescribeReservedDBInstancesResponse
describeReservedDBInstancesResponse_marker = (DescribeReservedDBInstancesResponse -> Maybe Text)
-> (DescribeReservedDBInstancesResponse
-> Maybe Text -> DescribeReservedDBInstancesResponse)
-> Lens' DescribeReservedDBInstancesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReservedDBInstancesResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeReservedDBInstancesResponse' :: DescribeReservedDBInstancesResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeReservedDBInstancesResponse
s@DescribeReservedDBInstancesResponse' {} Maybe Text
a -> DescribeReservedDBInstancesResponse
s {$sel:marker:DescribeReservedDBInstancesResponse' :: Maybe Text
marker = Maybe Text
a} :: DescribeReservedDBInstancesResponse)
describeReservedDBInstancesResponse_httpStatus :: Lens.Lens' DescribeReservedDBInstancesResponse Prelude.Int
describeReservedDBInstancesResponse_httpStatus :: (Int -> f Int)
-> DescribeReservedDBInstancesResponse
-> f DescribeReservedDBInstancesResponse
describeReservedDBInstancesResponse_httpStatus = (DescribeReservedDBInstancesResponse -> Int)
-> (DescribeReservedDBInstancesResponse
-> Int -> DescribeReservedDBInstancesResponse)
-> Lens
DescribeReservedDBInstancesResponse
DescribeReservedDBInstancesResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReservedDBInstancesResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeReservedDBInstancesResponse' :: DescribeReservedDBInstancesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeReservedDBInstancesResponse
s@DescribeReservedDBInstancesResponse' {} Int
a -> DescribeReservedDBInstancesResponse
s {$sel:httpStatus:DescribeReservedDBInstancesResponse' :: Int
httpStatus = Int
a} :: DescribeReservedDBInstancesResponse)
instance
Prelude.NFData
DescribeReservedDBInstancesResponse