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

Description

Shows the status of any inbound or outbound datashares available in the specified account.

This operation returns paginated results.

Synopsis

Creating a Request

data DescribeDataShares Source #

See: newDescribeDataShares smart constructor.

Constructors

DescribeDataShares' 

Fields

  • dataShareArn :: Maybe Text

    The identifier of the datashare to describe details of.

  • marker :: Maybe Text

    An optional parameter that specifies the starting point to return a set of response records. When the results of a DescribeDataShares 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.

Instances

Instances details
ToHeaders DescribeDataShares Source # 
Instance details

Defined in Amazonka.Redshift.DescribeDataShares

ToPath DescribeDataShares Source # 
Instance details

Defined in Amazonka.Redshift.DescribeDataShares

ToQuery DescribeDataShares Source # 
Instance details

Defined in Amazonka.Redshift.DescribeDataShares

AWSPager DescribeDataShares Source # 
Instance details

Defined in Amazonka.Redshift.DescribeDataShares

AWSRequest DescribeDataShares Source # 
Instance details

Defined in Amazonka.Redshift.DescribeDataShares

Associated Types

type AWSResponse DescribeDataShares #

Generic DescribeDataShares Source # 
Instance details

Defined in Amazonka.Redshift.DescribeDataShares

Associated Types

type Rep DescribeDataShares :: Type -> Type #

Read DescribeDataShares Source # 
Instance details

Defined in Amazonka.Redshift.DescribeDataShares

Show DescribeDataShares Source # 
Instance details

Defined in Amazonka.Redshift.DescribeDataShares

NFData DescribeDataShares Source # 
Instance details

Defined in Amazonka.Redshift.DescribeDataShares

Methods

rnf :: DescribeDataShares -> () #

Eq DescribeDataShares Source # 
Instance details

Defined in Amazonka.Redshift.DescribeDataShares

Hashable DescribeDataShares Source # 
Instance details

Defined in Amazonka.Redshift.DescribeDataShares

type AWSResponse DescribeDataShares Source # 
Instance details

Defined in Amazonka.Redshift.DescribeDataShares

type Rep DescribeDataShares Source # 
Instance details

Defined in Amazonka.Redshift.DescribeDataShares

type Rep DescribeDataShares = D1 ('MetaData "DescribeDataShares" "Amazonka.Redshift.DescribeDataShares" "amazonka-redshift-2.0-4tocKxBWIuj2GdXa6djdUl" 'False) (C1 ('MetaCons "DescribeDataShares'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dataShareArn") '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)))))

newDescribeDataShares :: DescribeDataShares Source #

Create a value of DescribeDataShares 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:

DescribeDataShares, describeDataShares_dataShareArn - The identifier of the datashare to describe details of.

DescribeDataShares, describeDataShares_marker - An optional parameter that specifies the starting point to return a set of response records. When the results of a DescribeDataShares 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:DescribeDataShares', describeDataShares_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.

Request Lenses

describeDataShares_dataShareArn :: Lens' DescribeDataShares (Maybe Text) Source #

The identifier of the datashare to describe details of.

describeDataShares_marker :: Lens' DescribeDataShares (Maybe Text) Source #

An optional parameter that specifies the starting point to return a set of response records. When the results of a DescribeDataShares 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.

describeDataShares_maxRecords :: Lens' DescribeDataShares (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.

Destructuring the Response

data DescribeDataSharesResponse Source #

See: newDescribeDataSharesResponse smart constructor.

Constructors

DescribeDataSharesResponse' 

Fields

  • dataShares :: Maybe [DataShare]

    The results returned from describing datashares.

  • marker :: Maybe Text

    An optional parameter that specifies the starting point to return a set of response records. When the results of a DescribeDataShares 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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic DescribeDataSharesResponse Source # 
Instance details

Defined in Amazonka.Redshift.DescribeDataShares

Associated Types

type Rep DescribeDataSharesResponse :: Type -> Type #

Read DescribeDataSharesResponse Source # 
Instance details

Defined in Amazonka.Redshift.DescribeDataShares

Show DescribeDataSharesResponse Source # 
Instance details

Defined in Amazonka.Redshift.DescribeDataShares

NFData DescribeDataSharesResponse Source # 
Instance details

Defined in Amazonka.Redshift.DescribeDataShares

Eq DescribeDataSharesResponse Source # 
Instance details

Defined in Amazonka.Redshift.DescribeDataShares

type Rep DescribeDataSharesResponse Source # 
Instance details

Defined in Amazonka.Redshift.DescribeDataShares

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

newDescribeDataSharesResponse Source #

Create a value of DescribeDataSharesResponse 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:dataShares:DescribeDataSharesResponse', describeDataSharesResponse_dataShares - The results returned from describing datashares.

DescribeDataShares, describeDataSharesResponse_marker - An optional parameter that specifies the starting point to return a set of response records. When the results of a DescribeDataShares 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:httpStatus:DescribeDataSharesResponse', describeDataSharesResponse_httpStatus - The response's http status code.

Response Lenses

describeDataSharesResponse_dataShares :: Lens' DescribeDataSharesResponse (Maybe [DataShare]) Source #

The results returned from describing datashares.

describeDataSharesResponse_marker :: Lens' DescribeDataSharesResponse (Maybe Text) Source #

An optional parameter that specifies the starting point to return a set of response records. When the results of a DescribeDataShares 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.