Skip to main content

discoverers

Creates, updates, deletes, gets or lists a discoverers resource.

Overview

Namediscoverers
TypeResource
Idaws.schemas.discoverers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
cross_accountbooleanThe Status if the discoverer will discover schemas from events sent from another account.
descriptionstringThe description of the discoverer.
discoverer_arnstringThe ARN of the discoverer.
discoverer_idstringThe ID of the discoverer.
source_arnstringThe ARN of the event bus.
statestringThe state of the discoverer. (STARTED, STOPPED)
tagsobjectTags associated with the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_discovererselectdiscoverer_id, regionDescribes the discoverer.
list_discoverersselectregiondiscovererIdPrefix, limit, nextToken, sourceArnPrefixList the discoverers.
create_discovererinsertregion, SourceArnCreates a discoverer.
update_discovererupdatediscoverer_id, regionUpdates the discoverer
delete_discovererdeletediscoverer_id, regionDeletes a discoverer.
start_discovererexecdiscoverer_id, regionStarts the discoverer
stop_discovererexecdiscoverer_id, regionStops the discoverer

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
discoverer_idstringThe ID of the discoverer.
regionstringAWS region (default: us-east-1)
discovererIdPrefixstringSpecifying this limits the results to only those discoverer IDs that start with the specified prefix.
limitinteger
nextTokenstringThe token that specifies the next page of results to return. To request the first page, leave NextToken empty. The token will expire in 24 hours, and cannot be shared with other accounts.
sourceArnPrefixstringSpecifying this limits the results to only those ARNs that start with the specified prefix.

SELECT examples

Describes the discoverer.

SELECT
cross_account,
description,
discoverer_arn,
discoverer_id,
source_arn,
state,
tags
FROM aws.schemas.discoverers
WHERE discoverer_id = '{{ discoverer_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a discoverer.

INSERT INTO aws.schemas.discoverers (
Description,
SourceArn,
CrossAccount,
Tags,
region
)
SELECT
'{{ Description }}',
'{{ SourceArn }}' /* required */,
{{ CrossAccount }},
'{{ Tags }}',
'{{ region }}'
RETURNING
cross_account,
description,
discoverer_arn,
discoverer_id,
source_arn,
state,
tags
;

UPDATE examples

Updates the discoverer

UPDATE aws.schemas.discoverers
SET
Description = '{{ Description }}',
CrossAccount = {{ CrossAccount }}
WHERE
discoverer_id = '{{ discoverer_id }}' --required
AND region = '{{ region }}' --required
RETURNING
cross_account,
description,
discoverer_arn,
discoverer_id,
source_arn,
state,
tags;

DELETE examples

Deletes a discoverer.

DELETE FROM aws.schemas.discoverers
WHERE discoverer_id = '{{ discoverer_id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Starts the discoverer

EXEC aws.schemas.discoverers.start_discoverer
@discoverer_id='{{ discoverer_id }}' --required,
@region='{{ region }}' --required
;