Skip to main content

source_api_associations

Creates, updates, deletes or gets a source_api_association resource or lists source_api_associations in a region

Overview

Namesource_api_associations
TypeResource
DescriptionResource Type definition for AWS::AppSync::SourceApiAssociation
Idawscc.appsync.source_api_associations

Fields

NameDatatypeDescription
source_api_identifierstringIdentifier of the Source GraphQLApi to associate. It could be either GraphQLApi ApiId or ARN
merged_api_identifierstringIdentifier of the Merged GraphQLApi to associate. It could be either GraphQLApi ApiId or ARN
descriptionstringDescription of the SourceApiAssociation.
source_api_association_configobjectCustomized configuration for SourceApiAssociation.
association_idstringId of the SourceApiAssociation.
association_arnstringARN of the SourceApiAssociation.
source_api_idstringGraphQLApiId of the source API in the association.
source_api_arnstringARN of the source API in the association.
merged_api_idstringGraphQLApiId of the Merged API in the association.
merged_api_arnstringARN of the Merged API in the association.
source_api_association_statusstringCurrent status of SourceApiAssociation.
source_api_association_status_detailstringCurrent SourceApiAssociation status details.
last_successful_merge_datestringDate of last schema successful merge.
regionstringAWS region.

For more information, see AWS::AppSync::SourceApiAssociation.

Methods

NameResourceAccessible byRequired Params
create_resourcesource_api_associationsINSERTregion
delete_resourcesource_api_associationsDELETEIdentifier, region
update_resourcesource_api_associationsUPDATEIdentifier, PatchDocument, region
list_resourcessource_api_associations_list_onlySELECTregion
get_resourcesource_api_associationsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual source_api_association.

SELECT
region,
source_api_identifier,
merged_api_identifier,
description,
source_api_association_config,
association_id,
association_arn,
source_api_id,
source_api_arn,
merged_api_id,
merged_api_arn,
source_api_association_status,
source_api_association_status_detail,
last_successful_merge_date
FROM awscc.appsync.source_api_associations
WHERE
region = 'us-east-1' AND
Identifier = '{{ association_arn }}';

INSERT example

Use the following StackQL query and manifest file to create a new source_api_association resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.appsync.source_api_associations (
SourceApiIdentifier,
MergedApiIdentifier,
Description,
SourceApiAssociationConfig,
region
)
SELECT
'{{ source_api_identifier }}',
'{{ merged_api_identifier }}',
'{{ description }}',
'{{ source_api_association_config }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a source_api_association resource, using stack-deploy.

/*+ update */
UPDATE awscc.appsync.source_api_associations
SET PatchDocument = string('{{ {
"Description": description,
"SourceApiAssociationConfig": source_api_association_config
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ association_arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.appsync.source_api_associations
WHERE
Identifier = '{{ association_arn }}' AND
region = 'us-east-1';

Permissions

To operate on the source_api_associations resource, the following permissions are required:

appsync:AssociateSourceGraphqlApi,
appsync:AssociateMergedGraphqlApi,
appsync:GetSourceApiAssociation