Skip to main content

ingestions

Creates, updates, deletes, gets or lists an ingestions resource.

Overview

Nameingestions
TypeResource
Idaws.appfabric.ingestions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
appstringThe name of the application.
app_bundle_arnstringThe Amazon Resource Name (ARN) of the app bundle for the ingestion. (pattern: <code>arn:.+</code>)
arnstringThe Amazon Resource Name (ARN) of the ingestion. (pattern: <code>arn:.+</code>)
created_atstring (date-time)The timestamp of when the ingestion was created.
ingestion_typestringThe type of the ingestion. (auditLog)
statestringThe status of the ingestion. (enabled, disabled)
tenant_idstringThe ID of the application tenant.
updated_atstring (date-time)The timestamp of when the ingestion was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_ingestionselectapp_bundle_identifier, ingestion_identifier, regionReturns information about an ingestion.
list_ingestionsselectapp_bundle_identifier, regionmaxResults, nextTokenReturns a list of all ingestions configured for an app bundle.
create_ingestioninsertapp_bundle_identifier, region, app, tenantId, ingestionTypeCreates a data ingestion for an application.
delete_ingestiondeleteapp_bundle_identifier, ingestion_identifier, regionDeletes an ingestion. You must stop (disable) the ingestion and you must delete all associated ingestion destinations before you can delete an app ingestion.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
app_bundle_identifierstringThe Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle to use for the request.
ingestion_identifierstringThe Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the ingestion to use for the request.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results that are returned per call. You can use nextToken to obtain further pages of results. This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum.
nextTokenstringIf nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.

SELECT examples

Returns information about an ingestion.

SELECT
app,
app_bundle_arn,
arn,
created_at,
ingestion_type,
state,
tenant_id,
updated_at
FROM aws.appfabric.ingestions
WHERE app_bundle_identifier = '{{ app_bundle_identifier }}' -- required
AND ingestion_identifier = '{{ ingestion_identifier }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a data ingestion for an application.

INSERT INTO aws.appfabric.ingestions (
app,
tenantId,
ingestionType,
clientToken,
tags,
app_bundle_identifier,
region
)
SELECT
'{{ app }}' /* required */,
'{{ tenantId }}' /* required */,
'{{ ingestionType }}' /* required */,
'{{ clientToken }}',
'{{ tags }}',
'{{ app_bundle_identifier }}',
'{{ region }}'
RETURNING
ingestion
;

DELETE examples

Deletes an ingestion. You must stop (disable) the ingestion and you must delete all associated ingestion destinations before you can delete an app ingestion.

DELETE FROM aws.appfabric.ingestions
WHERE app_bundle_identifier = '{{ app_bundle_identifier }}' --required
AND ingestion_identifier = '{{ ingestion_identifier }}' --required
AND region = '{{ region }}' --required
;