amazonka-redshift-1.4.5: Amazon Redshift SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.Redshift.DescribeReservedNodeOfferings

Contents

Description

Returns a list of the available reserved node offerings by Amazon Redshift with their descriptions including the node type, the fixed and recurring costs of reserving the node and duration the node will be reserved for you. These descriptions help you determine which reserve node offering you want to purchase. You then use the unique offering ID in you call to PurchaseReservedNodeOffering to reserve one or more nodes for your Amazon Redshift cluster.

For more information about reserved node offerings, go to Purchasing Reserved Nodes in the Amazon Redshift Cluster Management Guide .

This operation returns paginated results.

Synopsis

Creating a Request

describeReservedNodeOfferings :: DescribeReservedNodeOfferings Source #

Creates a value of DescribeReservedNodeOfferings with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • drnoReservedNodeOfferingId - The unique identifier for the offering.
  • drnoMarker - An optional parameter that specifies the starting point to return a set of response records. When the results of a DescribeReservedNodeOfferings request exceed the value specified in MaxRecords , AWS returns a value in the Marker field of the response. You can retrieve the next set of response records by providing the returned marker value in the Marker parameter and retrying the request.
  • drnoMaxRecords - The maximum number of response records to return in each call. If the number of remaining response records exceeds the specified MaxRecords value, a value is returned in a marker field of the response. You can retrieve the next set of records by retrying the command with the returned marker value. Default: 100 Constraints: minimum 20, maximum 100.

data DescribeReservedNodeOfferings Source #

See: describeReservedNodeOfferings smart constructor.

Instances

Eq DescribeReservedNodeOfferings Source # 
Data DescribeReservedNodeOfferings Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeReservedNodeOfferings -> c DescribeReservedNodeOfferings #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeReservedNodeOfferings #

toConstr :: DescribeReservedNodeOfferings -> Constr #

dataTypeOf :: DescribeReservedNodeOfferings -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DescribeReservedNodeOfferings) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeReservedNodeOfferings) #

gmapT :: (forall b. Data b => b -> b) -> DescribeReservedNodeOfferings -> DescribeReservedNodeOfferings #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeReservedNodeOfferings -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeReservedNodeOfferings -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeReservedNodeOfferings -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeReservedNodeOfferings -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeReservedNodeOfferings -> m DescribeReservedNodeOfferings #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeReservedNodeOfferings -> m DescribeReservedNodeOfferings #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeReservedNodeOfferings -> m DescribeReservedNodeOfferings #

Read DescribeReservedNodeOfferings Source # 
Show DescribeReservedNodeOfferings Source # 
Generic DescribeReservedNodeOfferings Source # 
Hashable DescribeReservedNodeOfferings Source # 
NFData DescribeReservedNodeOfferings Source # 
AWSPager DescribeReservedNodeOfferings Source # 
AWSRequest DescribeReservedNodeOfferings Source # 
ToPath DescribeReservedNodeOfferings Source # 
ToHeaders DescribeReservedNodeOfferings Source # 
ToQuery DescribeReservedNodeOfferings Source # 
type Rep DescribeReservedNodeOfferings Source # 
type Rep DescribeReservedNodeOfferings = D1 (MetaData "DescribeReservedNodeOfferings" "Network.AWS.Redshift.DescribeReservedNodeOfferings" "amazonka-redshift-1.4.5-2iQeXmFrftS29tYZtVOT2g" False) (C1 (MetaCons "DescribeReservedNodeOfferings'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_drnoReservedNodeOfferingId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_drnoMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_drnoMaxRecords") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int))))))
type Rs DescribeReservedNodeOfferings Source # 

Request Lenses

drnoMarker :: Lens' DescribeReservedNodeOfferings (Maybe Text) Source #

An optional parameter that specifies the starting point to return a set of response records. When the results of a DescribeReservedNodeOfferings request exceed the value specified in MaxRecords , AWS returns a value in the Marker field of the response. You can retrieve the next set of response records by providing the returned marker value in the Marker parameter and retrying the request.

drnoMaxRecords :: Lens' DescribeReservedNodeOfferings (Maybe Int) Source #

The maximum number of response records to return in each call. If the number of remaining response records exceeds the specified MaxRecords value, a value is returned in a marker field of the response. You can retrieve the next set of records by retrying the command with the returned marker value. Default: 100 Constraints: minimum 20, maximum 100.

Destructuring the Response

describeReservedNodeOfferingsResponse Source #

Creates a value of DescribeReservedNodeOfferingsResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • drnorsReservedNodeOfferings - A list of ReservedNodeOffering objects.
  • drnorsMarker - A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned marker value in the Marker parameter and retrying the command. If the Marker field is empty, all response records have been retrieved for the request.
  • drnorsResponseStatus - -- | The response status code.

data DescribeReservedNodeOfferingsResponse Source #

Instances

Eq DescribeReservedNodeOfferingsResponse Source # 
Data DescribeReservedNodeOfferingsResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeReservedNodeOfferingsResponse -> c DescribeReservedNodeOfferingsResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeReservedNodeOfferingsResponse #

toConstr :: DescribeReservedNodeOfferingsResponse -> Constr #

dataTypeOf :: DescribeReservedNodeOfferingsResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DescribeReservedNodeOfferingsResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeReservedNodeOfferingsResponse) #

gmapT :: (forall b. Data b => b -> b) -> DescribeReservedNodeOfferingsResponse -> DescribeReservedNodeOfferingsResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeReservedNodeOfferingsResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeReservedNodeOfferingsResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeReservedNodeOfferingsResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeReservedNodeOfferingsResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeReservedNodeOfferingsResponse -> m DescribeReservedNodeOfferingsResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeReservedNodeOfferingsResponse -> m DescribeReservedNodeOfferingsResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeReservedNodeOfferingsResponse -> m DescribeReservedNodeOfferingsResponse #

Read DescribeReservedNodeOfferingsResponse Source # 
Show DescribeReservedNodeOfferingsResponse Source # 
Generic DescribeReservedNodeOfferingsResponse Source # 
NFData DescribeReservedNodeOfferingsResponse Source # 
type Rep DescribeReservedNodeOfferingsResponse Source # 
type Rep DescribeReservedNodeOfferingsResponse = D1 (MetaData "DescribeReservedNodeOfferingsResponse" "Network.AWS.Redshift.DescribeReservedNodeOfferings" "amazonka-redshift-1.4.5-2iQeXmFrftS29tYZtVOT2g" False) (C1 (MetaCons "DescribeReservedNodeOfferingsResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_drnorsReservedNodeOfferings") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [ReservedNodeOffering]))) ((:*:) (S1 (MetaSel (Just Symbol "_drnorsMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_drnorsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))

Response Lenses

drnorsMarker :: Lens' DescribeReservedNodeOfferingsResponse (Maybe Text) Source #

A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned marker value in the Marker parameter and retrying the command. If the Marker field is empty, all response records have been retrieved for the request.