Skip to main content

source_api_associations

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

Overview

Namesource_api_associations
TypeResource
Idaws.appsync.source_api_associations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
association_arnstringThe Amazon Resource Name (ARN) of the source API association.
association_idstringThe ID generated by the AppSync service for the source API association.
descriptionstringThe description field.
last_successful_merge_datestring (date-time)The datetime value of the last successful merge of the source API association. The result will be in UTC format and your local time zone.
merged_api_arnstringThe Amazon Resource Name (ARN) of the AppSync Merged API.
merged_api_idstringThe ID of the AppSync Merged API.
source_api_arnstringThe Amazon Resource Name (ARN) of the AppSync source API.
source_api_association_configobjectDescribes properties used to specify configurations related to a source API.
source_api_association_statusstringThe state of the source API association. (MERGE_SCHEDULED, MERGE_FAILED, MERGE_SUCCESS, MERGE_IN_PROGRESS, AUTO_MERGE_SCHEDULE_FAILED, DELETION_SCHEDULED, DELETION_IN_PROGRESS, DELETION_FAILED)
source_api_association_status_detailstringThe detailed message related to the current state of the source API association.
source_api_idstringThe ID of the AppSync source API.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_source_api_associationselectmerged_api_identifier, association_id, regionRetrieves a SourceApiAssociation object.
list_source_api_associationsselectapi_id, regionnextToken, maxResultsLists the SourceApiAssociationSummary data.
update_source_api_associationupdateassociation_id, merged_api_identifier, regionUpdates some of the configuration choices of a particular source API association.

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
api_idstringThe API ID.
association_idstringThe ID generated by the AppSync service for the source API association.
merged_api_identifierstringThe identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged APIs (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs in other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results that you want the request to return.
nextTokenstringAn identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list.

SELECT examples

Retrieves a SourceApiAssociation object.

SELECT
association_arn,
association_id,
description,
last_successful_merge_date,
merged_api_arn,
merged_api_id,
source_api_arn,
source_api_association_config,
source_api_association_status,
source_api_association_status_detail,
source_api_id
FROM aws.appsync.source_api_associations
WHERE merged_api_identifier = '{{ merged_api_identifier }}' -- required
AND association_id = '{{ association_id }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Updates some of the configuration choices of a particular source API association.

UPDATE aws.appsync.source_api_associations
SET
description = '{{ description }}',
sourceApiAssociationConfig = '{{ sourceApiAssociationConfig }}'
WHERE
association_id = '{{ association_id }}' --required
AND merged_api_identifier = '{{ merged_api_identifier }}' --required
AND region = '{{ region }}' --required
RETURNING
source_api_association;