libZSservicesZSamazonka-honeycodeZSamazonka-honeycode
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.HoneyCode.ListTables

Description

The ListTables API allows you to retrieve a list of all the tables in a workbook.

This operation returns paginated results.

Synopsis

Creating a Request

data ListTables Source #

See: newListTables smart constructor.

Constructors

ListTables' 

Fields

  • nextToken :: Maybe Text

    This parameter is optional. If a nextToken is not specified, the API returns the first page of data.

    Pagination tokens expire after 1 hour. If you use a token that was returned more than an hour back, the API will throw ValidationException.

  • maxResults :: Maybe Natural

    The maximum number of tables to return in each page of the results.

  • workbookId :: Text

    The ID of the workbook whose tables are being retrieved.

    If a workbook with the specified id could not be found, this API throws ResourceNotFoundException.

Instances

Instances details
Eq ListTables Source # 
Instance details

Defined in Amazonka.HoneyCode.ListTables

Read ListTables Source # 
Instance details

Defined in Amazonka.HoneyCode.ListTables

Show ListTables Source # 
Instance details

Defined in Amazonka.HoneyCode.ListTables

Generic ListTables Source # 
Instance details

Defined in Amazonka.HoneyCode.ListTables

Associated Types

type Rep ListTables :: Type -> Type #

NFData ListTables Source # 
Instance details

Defined in Amazonka.HoneyCode.ListTables

Methods

rnf :: ListTables -> () #

Hashable ListTables Source # 
Instance details

Defined in Amazonka.HoneyCode.ListTables

AWSPager ListTables Source # 
Instance details

Defined in Amazonka.HoneyCode.ListTables

AWSRequest ListTables Source # 
Instance details

Defined in Amazonka.HoneyCode.ListTables

Associated Types

type AWSResponse ListTables #

ToHeaders ListTables Source # 
Instance details

Defined in Amazonka.HoneyCode.ListTables

Methods

toHeaders :: ListTables -> [Header] #

ToPath ListTables Source # 
Instance details

Defined in Amazonka.HoneyCode.ListTables

ToQuery ListTables Source # 
Instance details

Defined in Amazonka.HoneyCode.ListTables

type Rep ListTables Source # 
Instance details

Defined in Amazonka.HoneyCode.ListTables

type Rep ListTables = D1 ('MetaData "ListTables" "Amazonka.HoneyCode.ListTables" "libZSservicesZSamazonka-honeycodeZSamazonka-honeycode" 'False) (C1 ('MetaCons "ListTables'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "workbookId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse ListTables Source # 
Instance details

Defined in Amazonka.HoneyCode.ListTables

newListTables Source #

Create a value of ListTables 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:nextToken:ListTables', listTables_nextToken - This parameter is optional. If a nextToken is not specified, the API returns the first page of data.

Pagination tokens expire after 1 hour. If you use a token that was returned more than an hour back, the API will throw ValidationException.

$sel:maxResults:ListTables', listTables_maxResults - The maximum number of tables to return in each page of the results.

$sel:workbookId:ListTables', listTables_workbookId - The ID of the workbook whose tables are being retrieved.

If a workbook with the specified id could not be found, this API throws ResourceNotFoundException.

Request Lenses

listTables_nextToken :: Lens' ListTables (Maybe Text) Source #

This parameter is optional. If a nextToken is not specified, the API returns the first page of data.

Pagination tokens expire after 1 hour. If you use a token that was returned more than an hour back, the API will throw ValidationException.

listTables_maxResults :: Lens' ListTables (Maybe Natural) Source #

The maximum number of tables to return in each page of the results.

listTables_workbookId :: Lens' ListTables Text Source #

The ID of the workbook whose tables are being retrieved.

If a workbook with the specified id could not be found, this API throws ResourceNotFoundException.

Destructuring the Response

data ListTablesResponse Source #

See: newListTablesResponse smart constructor.

Constructors

ListTablesResponse' 

Fields

  • nextToken :: Maybe Text

    Provides the pagination token to load the next page if there are more results matching the request. If a pagination token is not present in the response, it means that all data matching the request has been loaded.

  • workbookCursor :: Maybe Integer

    Indicates the cursor of the workbook at which the data returned by this request is read. Workbook cursor keeps increasing with every update and the increments are not sequential.

  • httpStatus :: Int

    The response's http status code.

  • tables :: [Table]

    The list of tables in the workbook.

Instances

Instances details
Eq ListTablesResponse Source # 
Instance details

Defined in Amazonka.HoneyCode.ListTables

Read ListTablesResponse Source # 
Instance details

Defined in Amazonka.HoneyCode.ListTables

Show ListTablesResponse Source # 
Instance details

Defined in Amazonka.HoneyCode.ListTables

Generic ListTablesResponse Source # 
Instance details

Defined in Amazonka.HoneyCode.ListTables

Associated Types

type Rep ListTablesResponse :: Type -> Type #

NFData ListTablesResponse Source # 
Instance details

Defined in Amazonka.HoneyCode.ListTables

Methods

rnf :: ListTablesResponse -> () #

type Rep ListTablesResponse Source # 
Instance details

Defined in Amazonka.HoneyCode.ListTables

type Rep ListTablesResponse = D1 ('MetaData "ListTablesResponse" "Amazonka.HoneyCode.ListTables" "libZSservicesZSamazonka-honeycodeZSamazonka-honeycode" 'False) (C1 ('MetaCons "ListTablesResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "workbookCursor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer))) :*: (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "tables") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Table]))))

newListTablesResponse Source #

Create a value of ListTablesResponse 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:nextToken:ListTables', listTablesResponse_nextToken - Provides the pagination token to load the next page if there are more results matching the request. If a pagination token is not present in the response, it means that all data matching the request has been loaded.

$sel:workbookCursor:ListTablesResponse', listTablesResponse_workbookCursor - Indicates the cursor of the workbook at which the data returned by this request is read. Workbook cursor keeps increasing with every update and the increments are not sequential.

$sel:httpStatus:ListTablesResponse', listTablesResponse_httpStatus - The response's http status code.

$sel:tables:ListTablesResponse', listTablesResponse_tables - The list of tables in the workbook.

Response Lenses

listTablesResponse_nextToken :: Lens' ListTablesResponse (Maybe Text) Source #

Provides the pagination token to load the next page if there are more results matching the request. If a pagination token is not present in the response, it means that all data matching the request has been loaded.

listTablesResponse_workbookCursor :: Lens' ListTablesResponse (Maybe Integer) Source #

Indicates the cursor of the workbook at which the data returned by this request is read. Workbook cursor keeps increasing with every update and the increments are not sequential.

listTablesResponse_tables :: Lens' ListTablesResponse [Table] Source #

The list of tables in the workbook.