v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1451205197.1 KB

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

post/v1/apis/{apiId}/datasources/{name}

Path parameters

apiIdstring required

The API ID.

namestring required

The new name for the data source.

Request body

descriptionstring

The new description for the data source.

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

The new data source type.

serviceRoleArnstring

The new service role Amazon Resource Name (ARN) for the data source.

Response

Success