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

Description

The BatchCreateTableRows API allows you to create one or more rows at the end of a table in a workbook. The API allows you to specify the values to set in some or all of the columns in the new rows.

If a column is not explicitly set in a specific row, then the column level formula specified in the table will be applied to the new row. If there is no column level formula but the last row of the table has a formula, then that formula will be copied down to the new row. If there is no column level formula and no formula in the last row of the table, then that column will be left blank for the new rows.

Synopsis

Creating a Request

data BatchCreateTableRows Source #

See: newBatchCreateTableRows smart constructor.

Constructors

BatchCreateTableRows' 

Fields

  • clientRequestToken :: Maybe Text

    The request token for performing the batch create operation. Request tokens help to identify duplicate requests. If a call times out or fails due to a transient error like a failed network connection, you can retry the call with the same request token. The service ensures that if the first call using that request token is successfully performed, the second call will not perform the operation again.

    Note that request tokens are valid only for a few minutes. You cannot use request tokens to dedupe requests spanning hours or days.

  • workbookId :: Text

    The ID of the workbook where the new rows are being added.

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

  • tableId :: Text

    The ID of the table where the new rows are being added.

    If a table with the specified ID could not be found, this API throws ResourceNotFoundException.

  • rowsToCreate :: NonEmpty CreateRowData

    The list of rows to create at the end of the table. Each item in this list needs to have a batch item id to uniquely identify the element in the request and the cells to create for that row. You need to specify at least one item in this list.

    Note that if one of the column ids in any of the rows in the request does not exist in the table, then the request fails and no updates are made to the table.

Instances

Instances details
Eq BatchCreateTableRows Source # 
Instance details

Defined in Amazonka.HoneyCode.BatchCreateTableRows

Show BatchCreateTableRows Source # 
Instance details

Defined in Amazonka.HoneyCode.BatchCreateTableRows

Generic BatchCreateTableRows Source # 
Instance details

Defined in Amazonka.HoneyCode.BatchCreateTableRows

Associated Types

type Rep BatchCreateTableRows :: Type -> Type #

NFData BatchCreateTableRows Source # 
Instance details

Defined in Amazonka.HoneyCode.BatchCreateTableRows

Methods

rnf :: BatchCreateTableRows -> () #

Hashable BatchCreateTableRows Source # 
Instance details

Defined in Amazonka.HoneyCode.BatchCreateTableRows

ToJSON BatchCreateTableRows Source # 
Instance details

Defined in Amazonka.HoneyCode.BatchCreateTableRows

AWSRequest BatchCreateTableRows Source # 
Instance details

Defined in Amazonka.HoneyCode.BatchCreateTableRows

Associated Types

type AWSResponse BatchCreateTableRows #

ToHeaders BatchCreateTableRows Source # 
Instance details

Defined in Amazonka.HoneyCode.BatchCreateTableRows

ToPath BatchCreateTableRows Source # 
Instance details

Defined in Amazonka.HoneyCode.BatchCreateTableRows

ToQuery BatchCreateTableRows Source # 
Instance details

Defined in Amazonka.HoneyCode.BatchCreateTableRows

type Rep BatchCreateTableRows Source # 
Instance details

Defined in Amazonka.HoneyCode.BatchCreateTableRows

type Rep BatchCreateTableRows = D1 ('MetaData "BatchCreateTableRows" "Amazonka.HoneyCode.BatchCreateTableRows" "libZSservicesZSamazonka-honeycodeZSamazonka-honeycode" 'False) (C1 ('MetaCons "BatchCreateTableRows'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientRequestToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "workbookId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "tableId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "rowsToCreate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty CreateRowData)))))
type AWSResponse BatchCreateTableRows Source # 
Instance details

Defined in Amazonka.HoneyCode.BatchCreateTableRows

newBatchCreateTableRows Source #

Create a value of BatchCreateTableRows 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:clientRequestToken:BatchCreateTableRows', batchCreateTableRows_clientRequestToken - The request token for performing the batch create operation. Request tokens help to identify duplicate requests. If a call times out or fails due to a transient error like a failed network connection, you can retry the call with the same request token. The service ensures that if the first call using that request token is successfully performed, the second call will not perform the operation again.

Note that request tokens are valid only for a few minutes. You cannot use request tokens to dedupe requests spanning hours or days.

$sel:workbookId:BatchCreateTableRows', batchCreateTableRows_workbookId - The ID of the workbook where the new rows are being added.

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

$sel:tableId:BatchCreateTableRows', batchCreateTableRows_tableId - The ID of the table where the new rows are being added.

If a table with the specified ID could not be found, this API throws ResourceNotFoundException.

$sel:rowsToCreate:BatchCreateTableRows', batchCreateTableRows_rowsToCreate - The list of rows to create at the end of the table. Each item in this list needs to have a batch item id to uniquely identify the element in the request and the cells to create for that row. You need to specify at least one item in this list.

Note that if one of the column ids in any of the rows in the request does not exist in the table, then the request fails and no updates are made to the table.

Request Lenses

batchCreateTableRows_clientRequestToken :: Lens' BatchCreateTableRows (Maybe Text) Source #

The request token for performing the batch create operation. Request tokens help to identify duplicate requests. If a call times out or fails due to a transient error like a failed network connection, you can retry the call with the same request token. The service ensures that if the first call using that request token is successfully performed, the second call will not perform the operation again.

Note that request tokens are valid only for a few minutes. You cannot use request tokens to dedupe requests spanning hours or days.

batchCreateTableRows_workbookId :: Lens' BatchCreateTableRows Text Source #

The ID of the workbook where the new rows are being added.

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

batchCreateTableRows_tableId :: Lens' BatchCreateTableRows Text Source #

The ID of the table where the new rows are being added.

If a table with the specified ID could not be found, this API throws ResourceNotFoundException.

batchCreateTableRows_rowsToCreate :: Lens' BatchCreateTableRows (NonEmpty CreateRowData) Source #

The list of rows to create at the end of the table. Each item in this list needs to have a batch item id to uniquely identify the element in the request and the cells to create for that row. You need to specify at least one item in this list.

Note that if one of the column ids in any of the rows in the request does not exist in the table, then the request fails and no updates are made to the table.

Destructuring the Response

data BatchCreateTableRowsResponse Source #

See: newBatchCreateTableRowsResponse smart constructor.

Constructors

BatchCreateTableRowsResponse' 

Fields

  • failedBatchItems :: Maybe [FailedBatchItem]

    The list of batch items in the request that could not be added to the table. Each element in this list contains one item from the request that could not be added to the table along with the reason why that item could not be added.

  • httpStatus :: Int

    The response's http status code.

  • workbookCursor :: Integer

    The updated workbook cursor after adding the new rows at the end of the table.

  • createdRows :: HashMap Text Text

    The map of batch item id to the row id that was created for that item.

Instances

Instances details
Eq BatchCreateTableRowsResponse Source # 
Instance details

Defined in Amazonka.HoneyCode.BatchCreateTableRows

Read BatchCreateTableRowsResponse Source # 
Instance details

Defined in Amazonka.HoneyCode.BatchCreateTableRows

Show BatchCreateTableRowsResponse Source # 
Instance details

Defined in Amazonka.HoneyCode.BatchCreateTableRows

Generic BatchCreateTableRowsResponse Source # 
Instance details

Defined in Amazonka.HoneyCode.BatchCreateTableRows

Associated Types

type Rep BatchCreateTableRowsResponse :: Type -> Type #

NFData BatchCreateTableRowsResponse Source # 
Instance details

Defined in Amazonka.HoneyCode.BatchCreateTableRows

type Rep BatchCreateTableRowsResponse Source # 
Instance details

Defined in Amazonka.HoneyCode.BatchCreateTableRows

type Rep BatchCreateTableRowsResponse = D1 ('MetaData "BatchCreateTableRowsResponse" "Amazonka.HoneyCode.BatchCreateTableRows" "libZSservicesZSamazonka-honeycodeZSamazonka-honeycode" 'False) (C1 ('MetaCons "BatchCreateTableRowsResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "failedBatchItems") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [FailedBatchItem])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)) :*: (S1 ('MetaSel ('Just "workbookCursor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Integer) :*: S1 ('MetaSel ('Just "createdRows") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HashMap Text Text)))))

newBatchCreateTableRowsResponse Source #

Create a value of BatchCreateTableRowsResponse 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:failedBatchItems:BatchCreateTableRowsResponse', batchCreateTableRowsResponse_failedBatchItems - The list of batch items in the request that could not be added to the table. Each element in this list contains one item from the request that could not be added to the table along with the reason why that item could not be added.

$sel:httpStatus:BatchCreateTableRowsResponse', batchCreateTableRowsResponse_httpStatus - The response's http status code.

$sel:workbookCursor:BatchCreateTableRowsResponse', batchCreateTableRowsResponse_workbookCursor - The updated workbook cursor after adding the new rows at the end of the table.

$sel:createdRows:BatchCreateTableRowsResponse', batchCreateTableRowsResponse_createdRows - The map of batch item id to the row id that was created for that item.

Response Lenses

batchCreateTableRowsResponse_failedBatchItems :: Lens' BatchCreateTableRowsResponse (Maybe [FailedBatchItem]) Source #

The list of batch items in the request that could not be added to the table. Each element in this list contains one item from the request that could not be added to the table along with the reason why that item could not be added.

batchCreateTableRowsResponse_workbookCursor :: Lens' BatchCreateTableRowsResponse Integer Source #

The updated workbook cursor after adding the new rows at the end of the table.

batchCreateTableRowsResponse_createdRows :: Lens' BatchCreateTableRowsResponse (HashMap Text Text) Source #

The map of batch item id to the row id that was created for that item.