Skip to main content

types_by_associations

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

Overview

Nametypes_by_associations
TypeResource
Idaws.appsync.types_by_associations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe type name. (pattern: <code>[_A-Za-z][_0-9A-Za-z]*</code>)
arnstringThe type Amazon Resource Name (ARN).
definitionstringThe type definition.
descriptionstringThe type description.
format_stringThe type format: SDL or JSON. (SDL, JSON)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_types_by_associationselectmerged_api_identifier, association_id, format, regionnextToken, maxResultsLists Type objects by the source API association ID.

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
association_idstringThe ID generated by the AppSync service for the source API association.
formatstringThe format type.
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

Lists Type objects by the source API association ID.

SELECT
name,
arn,
definition,
description,
format_
FROM aws.appsync.types_by_associations
WHERE merged_api_identifier = '{{ merged_api_identifier }}' -- required
AND association_id = '{{ association_id }}' -- required
AND format = '{{ format }}' -- required
AND region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
;