amazonka-redshift-2.0: Amazon Redshift SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Redshift.DescribeReservedNodes

Description

Returns the descriptions of the reserved nodes.

This operation returns paginated results.

Synopsis

Creating a Request

data DescribeReservedNodes Source #

See: newDescribeReservedNodes smart constructor.

Constructors

DescribeReservedNodes' 

Fields

  • marker :: Maybe Text

    An optional parameter that specifies the starting point to return a set of response records. When the results of a DescribeReservedNodes request exceed the value specified in MaxRecords, Amazon Web Services 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.

  • maxRecords :: Maybe Int

    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.

  • reservedNodeId :: Maybe Text

    Identifier for the node reservation.

Instances

Instances details
ToHeaders DescribeReservedNodes Source # 
Instance details

Defined in Amazonka.Redshift.DescribeReservedNodes

ToPath DescribeReservedNodes Source # 
Instance details

Defined in Amazonka.Redshift.DescribeReservedNodes

ToQuery DescribeReservedNodes Source # 
Instance details

Defined in Amazonka.Redshift.DescribeReservedNodes

AWSPager DescribeReservedNodes Source # 
Instance details

Defined in Amazonka.Redshift.DescribeReservedNodes

AWSRequest DescribeReservedNodes Source # 
Instance details

Defined in Amazonka.Redshift.DescribeReservedNodes

Associated Types

type AWSResponse DescribeReservedNodes #

Generic DescribeReservedNodes Source # 
Instance details

Defined in Amazonka.Redshift.DescribeReservedNodes

Associated Types

type Rep DescribeReservedNodes :: Type -> Type #

Read DescribeReservedNodes Source # 
Instance details

Defined in Amazonka.Redshift.DescribeReservedNodes

Show DescribeReservedNodes Source # 
Instance details

Defined in Amazonka.Redshift.DescribeReservedNodes

NFData DescribeReservedNodes Source # 
Instance details

Defined in Amazonka.Redshift.DescribeReservedNodes

Methods

rnf :: DescribeReservedNodes -> () #

Eq DescribeReservedNodes Source # 
Instance details

Defined in Amazonka.Redshift.DescribeReservedNodes

Hashable DescribeReservedNodes Source # 
Instance details

Defined in Amazonka.Redshift.DescribeReservedNodes

type AWSResponse DescribeReservedNodes Source # 
Instance details

Defined in Amazonka.Redshift.DescribeReservedNodes

type Rep DescribeReservedNodes Source # 
Instance details

Defined in Amazonka.Redshift.DescribeReservedNodes

type Rep DescribeReservedNodes = D1 ('MetaData "DescribeReservedNodes" "Amazonka.Redshift.DescribeReservedNodes" "amazonka-redshift-2.0-4tocKxBWIuj2GdXa6djdUl" 'False) (C1 ('MetaCons "DescribeReservedNodes'" 'PrefixI 'True) (S1 ('MetaSel ('Just "marker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "maxRecords") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "reservedNodeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newDescribeReservedNodes :: DescribeReservedNodes Source #

Create a value of DescribeReservedNodes with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

DescribeReservedNodes, describeReservedNodes_marker - An optional parameter that specifies the starting point to return a set of response records. When the results of a DescribeReservedNodes request exceed the value specified in MaxRecords, Amazon Web Services 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.

$sel:maxRecords:DescribeReservedNodes', describeReservedNodes_maxRecords - 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.

DescribeReservedNodes, describeReservedNodes_reservedNodeId - Identifier for the node reservation.

Request Lenses

describeReservedNodes_marker :: Lens' DescribeReservedNodes (Maybe Text) Source #

An optional parameter that specifies the starting point to return a set of response records. When the results of a DescribeReservedNodes request exceed the value specified in MaxRecords, Amazon Web Services 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.

describeReservedNodes_maxRecords :: Lens' DescribeReservedNodes (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

data DescribeReservedNodesResponse Source #

See: newDescribeReservedNodesResponse smart constructor.

Constructors

DescribeReservedNodesResponse' 

Fields

  • marker :: Maybe Text

    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.

  • reservedNodes :: Maybe [ReservedNode]

    The list of ReservedNode objects.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic DescribeReservedNodesResponse Source # 
Instance details

Defined in Amazonka.Redshift.DescribeReservedNodes

Associated Types

type Rep DescribeReservedNodesResponse :: Type -> Type #

Read DescribeReservedNodesResponse Source # 
Instance details

Defined in Amazonka.Redshift.DescribeReservedNodes

Show DescribeReservedNodesResponse Source # 
Instance details

Defined in Amazonka.Redshift.DescribeReservedNodes

NFData DescribeReservedNodesResponse Source # 
Instance details

Defined in Amazonka.Redshift.DescribeReservedNodes

Eq DescribeReservedNodesResponse Source # 
Instance details

Defined in Amazonka.Redshift.DescribeReservedNodes

type Rep DescribeReservedNodesResponse Source # 
Instance details

Defined in Amazonka.Redshift.DescribeReservedNodes

type Rep DescribeReservedNodesResponse = D1 ('MetaData "DescribeReservedNodesResponse" "Amazonka.Redshift.DescribeReservedNodes" "amazonka-redshift-2.0-4tocKxBWIuj2GdXa6djdUl" 'False) (C1 ('MetaCons "DescribeReservedNodesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "marker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "reservedNodes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ReservedNode])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDescribeReservedNodesResponse Source #

Create a value of DescribeReservedNodesResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

DescribeReservedNodes, describeReservedNodesResponse_marker - 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.

$sel:reservedNodes:DescribeReservedNodesResponse', describeReservedNodesResponse_reservedNodes - The list of ReservedNode objects.

$sel:httpStatus:DescribeReservedNodesResponse', describeReservedNodesResponse_httpStatus - The response's http status code.

Response Lenses

describeReservedNodesResponse_marker :: Lens' DescribeReservedNodesResponse (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.