v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1451205197.1 KB

Creates a <code>DataSource</code> object.

post/v1/apis/{apiId}/datasources

Path parameters

apiIdstring required

The API ID for the GraphQL API for the <code>DataSource</code>.

Request body

namestring required

A user-supplied name for the <code>DataSource</code>.

descriptionstring

A description of the <code>DataSource</code>.

type'AWS_LAMBDA' | 'AMAZON_DYNAMODB' | 'AMAZON_ELASTICSEARCH' | 'NONE' | 'HTTP' | 'RELATIONAL_DATABASE' | 'AMAZON_OPENSEARCH_SERVICE' | 'AMAZON_EVENTBRIDGE' required

The type of the <code>DataSource</code>.

serviceRoleArnstring

The Identity and Access Management (IAM) service role Amazon Resource Name (ARN) for the data source. The system assumes this role when accessing the data source.

Response

Success