Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a new changeset in a FinSpace dataset.
Synopsis
- data CreateChangeset = CreateChangeset' {
- formatParams :: Maybe (HashMap Text Text)
- formatType :: Maybe FormatType
- tags :: Maybe (HashMap Text Text)
- datasetId :: Text
- changeType :: ChangeType
- sourceType :: SourceType
- sourceParams :: HashMap Text Text
- newCreateChangeset :: Text -> ChangeType -> SourceType -> CreateChangeset
- createChangeset_formatParams :: Lens' CreateChangeset (Maybe (HashMap Text Text))
- createChangeset_formatType :: Lens' CreateChangeset (Maybe FormatType)
- createChangeset_tags :: Lens' CreateChangeset (Maybe (HashMap Text Text))
- createChangeset_datasetId :: Lens' CreateChangeset Text
- createChangeset_changeType :: Lens' CreateChangeset ChangeType
- createChangeset_sourceType :: Lens' CreateChangeset SourceType
- createChangeset_sourceParams :: Lens' CreateChangeset (HashMap Text Text)
- data CreateChangesetResponse = CreateChangesetResponse' {}
- newCreateChangesetResponse :: Int -> CreateChangesetResponse
- createChangesetResponse_changeset :: Lens' CreateChangesetResponse (Maybe ChangesetInfo)
- createChangesetResponse_httpStatus :: Lens' CreateChangesetResponse Int
Creating a Request
data CreateChangeset Source #
See: newCreateChangeset
smart constructor.
CreateChangeset' | |
|
Instances
:: Text | |
-> ChangeType | |
-> SourceType | |
-> CreateChangeset |
Create a value of CreateChangeset
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:formatParams:CreateChangeset'
, createChangeset_formatParams
- Options that define the structure of the source file(s).
$sel:formatType:CreateChangeset'
, createChangeset_formatType
- Format type of the input files being loaded into the changeset.
$sel:tags:CreateChangeset'
, createChangeset_tags
- Metadata tags to apply to this changeset.
$sel:datasetId:CreateChangeset'
, createChangeset_datasetId
- The unique identifier for the FinSpace dataset in which the changeset
will be created.
$sel:changeType:CreateChangeset'
, createChangeset_changeType
- Option to indicate how a changeset will be applied to a dataset.
REPLACE
- Changeset will be considered as a replacement to all prior loaded changesets.APPEND
- Changeset will be considered as an addition to the end of all prior loaded changesets.
$sel:sourceType:CreateChangeset'
, createChangeset_sourceType
- Type of the data source from which the files to create the changeset
will be sourced.
S3
- Amazon S3.
$sel:sourceParams:CreateChangeset'
, createChangeset_sourceParams
- Source path from which the files to create the changeset will be
sourced.
Request Lenses
createChangeset_formatParams :: Lens' CreateChangeset (Maybe (HashMap Text Text)) Source #
Options that define the structure of the source file(s).
createChangeset_formatType :: Lens' CreateChangeset (Maybe FormatType) Source #
Format type of the input files being loaded into the changeset.
createChangeset_tags :: Lens' CreateChangeset (Maybe (HashMap Text Text)) Source #
Metadata tags to apply to this changeset.
createChangeset_datasetId :: Lens' CreateChangeset Text Source #
The unique identifier for the FinSpace dataset in which the changeset will be created.
createChangeset_changeType :: Lens' CreateChangeset ChangeType Source #
Option to indicate how a changeset will be applied to a dataset.
REPLACE
- Changeset will be considered as a replacement to all prior loaded changesets.APPEND
- Changeset will be considered as an addition to the end of all prior loaded changesets.
createChangeset_sourceType :: Lens' CreateChangeset SourceType Source #
Type of the data source from which the files to create the changeset will be sourced.
S3
- Amazon S3.
createChangeset_sourceParams :: Lens' CreateChangeset (HashMap Text Text) Source #
Source path from which the files to create the changeset will be sourced.
Destructuring the Response
data CreateChangesetResponse Source #
See: newCreateChangesetResponse
smart constructor.
CreateChangesetResponse' | |
|
Instances
newCreateChangesetResponse Source #
Create a value of CreateChangesetResponse
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:changeset:CreateChangesetResponse'
, createChangesetResponse_changeset
- Returns the changeset details.
$sel:httpStatus:CreateChangesetResponse'
, createChangesetResponse_httpStatus
- The response's http status code.
Response Lenses
createChangesetResponse_changeset :: Lens' CreateChangesetResponse (Maybe ChangesetInfo) Source #
Returns the changeset details.
createChangesetResponse_httpStatus :: Lens' CreateChangesetResponse Int Source #
The response's http status code.