Create and Manage an Amazon S3 Data Source
This page describes the native-s3
(Amazon S3 data sources) endpoint.
Private preview: The Amazon S3 integration is available to select accounts. Reach out to your Immuta representative for details.
Additional fields may be included in some responses you receive; however, these attributes are for internal purposes and are therefore undocumented.
Amazon S3 workflow
Create a data source
POST
/native-s3/handler
Save the provided connection information as a data source.
Payload parameters
The table below outlines the parameters for creating an S3 data source.
type string
The type of integration.
Required
Native S3
integrationId number
The unique identifier of the S3 integration.
Required
-
dataSources.dataSourceName string
The name of the S3 data source you want to create.
Required
-
dataSources.prefix string
The S3 prefix that creates a data source for the prefix, bucket, or object provided in the path.
Required
-
Response schema
The table below outlines the response schema for successful requests.
dataSourceId integer
The unique identifier of the data source.
prefix string
The S3 path of the prefix, bucket, or object used to create the data source.
dataSourceName string
The name of the data source.
Request example
The following request saves the provided connection information as a data source.
Response example
The response returns the ID, name, and prefix of the data source. See the response schema above for details about the response schema. An unsuccessful response returns the status code and an error message.
Search Amazon S3 data sources
GET
/native-s3/handler/{handlerId}
Get the handler metadata associated with the provided handler ID.
Query parameter
handlerId integer
The specific handler ID.
Required
Response schema
id integer
The data source ID.
metadata.prefix string
The S3 path of the prefix, bucket, or object used to create the data source.
metadata.integrationId integer
The unique identifier of the integration.
metadata.dataSourceName string
The name of the data source.
type string
The handler type (nativeS3Handler
).
awsLocationPath string
The base S3 location prefix that Immuta used to register the S3 data source.
Request example
The following request returns the handler metadata associated with the provided handler ID.
Response example
Delete an Amazon S3 data source
DELETE
/dataSource/{dataSourceId}
Delete a data source. This will perform a soft delete on the first call and a hard delete the second time.
Query parameters
dataSourceId
integer
The data source ID.
Yes
Response schema
success boolean
If true
, the request to disable or delete the data source was successful.
id integer
The data source ID.
schemaEvolutionId integer
The schema evolution ID.
name string
The data source name.
disabled boolean
If true
, the data source is disabled.
handlerDeleteErrorMessage string
The delete error message.
Request example
The following request disables the data source 1
.
Response example
Last updated