Table of Contents
A low-level client representing FinSpace Public API (FinSpace Data)
The FinSpace APIs let you take actions inside the FinSpace environment.
import boto3
client = boto3.client('finspace-data')
These are the available methods:
Check if an operation can be paginated.
Creates a new changeset in a FinSpace dataset.
See also: AWS API Documentation
Request Syntax
response = client.create_changeset(
datasetId='string',
changeType='REPLACE'|'APPEND'|'MODIFY',
sourceType='S3',
sourceParams={
'string': 'string'
},
formatType='CSV'|'JSON'|'PARQUET'|'XML',
formatParams={
'string': 'string'
},
tags={
'string': 'string'
}
)
[REQUIRED]
The unique identifier for the FinSpace dataset in which the changeset will be created.
[REQUIRED]
Option to indicate how a changeset will be applied to a dataset.
[REQUIRED]
Type of the data source from which the files to create the changeset will be sourced.
[REQUIRED]
Source path from which the files to create the changeset will be sourced.
Options that define the structure of the source file(s).
Metadata tags to apply to this changeset.
dict
Response Syntax
{
'changeset': {
'id': 'string',
'changesetArn': 'string',
'datasetId': 'string',
'changeType': 'REPLACE'|'APPEND'|'MODIFY',
'sourceType': 'S3',
'sourceParams': {
'string': 'string'
},
'formatType': 'CSV'|'JSON'|'PARQUET'|'XML',
'formatParams': {
'string': 'string'
},
'createTimestamp': datetime(2015, 1, 1),
'status': 'PENDING'|'FAILED'|'SUCCESS'|'RUNNING'|'STOP_REQUESTED',
'errorInfo': {
'errorMessage': 'string',
'errorCategory': 'The_inputs_to_this_request_are_invalid'|'Service_limits_have_been_exceeded'|'Missing_required_permission_to_perform_this_request'|'One_or_more_inputs_to_this_request_were_not_found'|'The_system_temporarily_lacks_sufficient_resources_to_process_the_request'|'An_internal_error_has_occurred'|'Cancelled'|'A_user_recoverable_error_has_occurred'
},
'changesetLabels': {
'string': 'string'
},
'updatesChangesetId': 'string',
'updatedByChangesetId': 'string'
}
}
Response Structure
(dict) --
changeset (dict) --
Returns the changeset details.
id (string) --
Unique identifier for a changeset.
changesetArn (string) --
The ARN identifier of the changeset.
datasetId (string) --
The unique identifier for the FinSpace dataset in which the changeset is created.
changeType (string) --
Change type indicates how a changeset is applied to a dataset.
sourceType (string) --
Type of the data source from which the files to create the changeset are sourced.
sourceParams (dict) --
Source path from which the files to create the changeset are sourced.
formatType (string) --
Format type of the input files loaded into the changeset.
formatParams (dict) --
Structure of the source file(s).
createTimestamp (datetime) --
The timestamp at which the changeset was created in FinSpace.
status (string) --
The status of changeset creation operation.
errorInfo (dict) --
The structure with error messages.
errorMessage (string) --
The text of the error message.
errorCategory (string) --
The category of the error.
changesetLabels (dict) --
Tags associated with the changeset.
updatesChangesetId (string) --
Unique identifier of the changeset that is updated.
updatedByChangesetId (string) --
Unique identifier of the changeset that is updated a changeset.
Exceptions
Create a paginator for an operation.
Request programmatic credentials to use with Habanero SDK.
See also: AWS API Documentation
Request Syntax
response = client.get_programmatic_access_credentials(
durationInMinutes=123,
environmentId='string'
)
[REQUIRED]
The habanero environment identifier.
dict
Response Syntax
{
'credentials': {
'accessKeyId': 'string',
'secretAccessKey': 'string',
'sessionToken': 'string'
},
'durationInMinutes': 123
}
Response Structure
(dict) --
credentials (dict) --
Returns the programmatic credentials.
accessKeyId (string) --
The access key identifier.
secretAccessKey (string) --
The access key.
sessionToken (string) --
The session token.
durationInMinutes (integer) --
Returns the duration in which the credentials will remain valid.
Exceptions
Returns an object that can wait for some condition.
A temporary Amazon S3 location to copy your files from a source location to stage or use as a scratch space in Habanero notebook.
See also: AWS API Documentation
Request Syntax
response = client.get_working_location(
locationType='INGESTION'|'SAGEMAKER'
)
Specify the type of the working location.
{
's3Uri': 'string',
's3Path': 'string',
's3Bucket': 'string'
}
Response Structure
Returns the Amazon S3 URI for the working location.
Returns the Amazon S3 Path for the working location.
Returns the Amazon S3 bucket name for the working location.
Exceptions
The available paginators are: