http://appsync.{region}.amazonaws.com/v1/apisCreates a <code>GraphqlApi</code> object.
A user-supplied name for the <code>GraphqlApi</code>.
A map with keys of <code>TagKey</code> objects and values of <code>TagValue</code> objects.
The Amazon CloudWatch Logs configuration.
A flag indicating whether to use X-Ray tracing for the <code>GraphqlApi</code>.
Describes an Amazon Cognito user pool configuration.
The authentication type: API key, Identity and Access Management (IAM), OpenID Connect (OIDC), Amazon Cognito user pools, or Lambda.
Describes an OpenID Connect (OIDC) configuration.
A <code>LambdaAuthorizerConfig</code> specifies how to authorize AppSync API access when using the <code>AWS_LAMBDA</code> authorizer mode. Be aware that an AppSync API can have only one Lambda authorizer configured at a time.
A list of additional authentication providers for the <code>GraphqlApi</code> API.
{
"success": true,
"data": {
"id": "abc123",
"created_at": "2025-01-01T00:00:00Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request parameters"
}
}1curl --request POST \2 --url 'http://appsync.{region}.amazonaws.com/v1/apis' \3 --header 'accept: application/json' \4 --header 'content-type: application/json'1{2 "success": true,3 "data": {4 "id": "abc123",5 "created_at": "2025-01-01T00:00:00Z"6 }7}http://appsync.{region}.amazonaws.com/v1/apisCreates a <code>GraphqlApi</code> object.
A user-supplied name for the <code>GraphqlApi</code>.
A map with keys of <code>TagKey</code> objects and values of <code>TagValue</code> objects.
The Amazon CloudWatch Logs configuration.
A flag indicating whether to use X-Ray tracing for the <code>GraphqlApi</code>.
Describes an Amazon Cognito user pool configuration.
The authentication type: API key, Identity and Access Management (IAM), OpenID Connect (OIDC), Amazon Cognito user pools, or Lambda.
Describes an OpenID Connect (OIDC) configuration.
A <code>LambdaAuthorizerConfig</code> specifies how to authorize AppSync API access when using the <code>AWS_LAMBDA</code> authorizer mode. Be aware that an AppSync API can have only one Lambda authorizer configured at a time.
A list of additional authentication providers for the <code>GraphqlApi</code> API.
{
"success": true,
"data": {
"id": "abc123",
"created_at": "2025-01-01T00:00:00Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request parameters"
}
}1curl --request POST \2 --url 'http://appsync.{region}.amazonaws.com/v1/apis' \3 --header 'accept: application/json' \4 --header 'content-type: application/json'1{2 "success": true,3 "data": {4 "id": "abc123",5 "created_at": "2025-01-01T00:00:00Z"6 }7}