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

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

  • reservedNodeId :: Maybe Text

    Identifier for the node reservation.

  • 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.

Instances

Instances details
Eq DescribeReservedNodes Source # 
Instance details

Defined in Amazonka.Redshift.DescribeReservedNodes

Read DescribeReservedNodes Source # 
Instance details

Defined in Amazonka.Redshift.DescribeReservedNodes

Show DescribeReservedNodes Source # 
Instance details

Defined in Amazonka.Redshift.DescribeReservedNodes

Generic DescribeReservedNodes Source # 
Instance details

Defined in Amazonka.Redshift.DescribeReservedNodes

Associated Types

type Rep DescribeReservedNodes :: Type -> Type #

NFData DescribeReservedNodes Source # 
Instance details

Defined in Amazonka.Redshift.DescribeReservedNodes

Methods

rnf :: DescribeReservedNodes -> () #

Hashable 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 #

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

type Rep DescribeReservedNodes Source # 
Instance details

Defined in Amazonka.Redshift.DescribeReservedNodes

type Rep DescribeReservedNodes = D1 ('MetaData "DescribeReservedNodes" "Amazonka.Redshift.DescribeReservedNodes" "libZSservicesZSamazonka-redshiftZSamazonka-redshift" 'False) (C1 ('MetaCons "DescribeReservedNodes'" 'PrefixI 'True) (S1 ('MetaSel ('Just "reservedNodeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "marker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxRecords") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)))))
type AWSResponse DescribeReservedNodes Source # 
Instance details

Defined in Amazonka.Redshift.DescribeReservedNodes

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:

$sel:reservedNodeId:DescribeReservedNodes', describeReservedNodes_reservedNodeId - Identifier for the node reservation.

$sel:marker: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.

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

  • reservedNodes :: Maybe [ReservedNode]

    The list of ReservedNode objects.

  • 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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq DescribeReservedNodesResponse Source # 
Instance details

Defined in Amazonka.Redshift.DescribeReservedNodes

Read DescribeReservedNodesResponse Source # 
Instance details

Defined in Amazonka.Redshift.DescribeReservedNodes

Show DescribeReservedNodesResponse Source # 
Instance details

Defined in Amazonka.Redshift.DescribeReservedNodes

Generic DescribeReservedNodesResponse Source # 
Instance details

Defined in Amazonka.Redshift.DescribeReservedNodes

Associated Types

type Rep DescribeReservedNodesResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-redshiftZSamazonka-redshift" 'False) (C1 ('MetaCons "DescribeReservedNodesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "reservedNodes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ReservedNode])) :*: (S1 ('MetaSel ('Just "marker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: 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:

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

$sel:marker: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: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.