Add an new API

$ amplify add api
? Please select from one of the below mentioned services: Gr
aphQL
? Provide API name: ntalatodo
? Choose the default authorization type for the API Amazon C
ognito User Pool
Use a Cognito user pool configured as a part of this project
.
? Do you want to configure advanced settings for the GraphQL
API No, I am done.
? Do you have an annotated GraphQL schema? No
? Do you want a guided schema creation? Yes
? What best describes your project: Single object with field
s (e.g., “Todo” with ID, name, description)
? Do you want to edit the schema now? Yes
Please edit the file in your editor: /home/ntala/Desktop/rea
ctaws/ntalatodo/amplify/backend/api/ntalatodo/schema.graphql
? Press enter to continue 
The following types do not have '@auth' enabled. Consider using @auth with @model
- Todo
Learn more about @auth here: https://aws-amplify.github.io/docs/cli-toolchain/graphql#auth 
GraphQL schema compiled successfully.
Edit your schema at /home/ntala/Desktop/reactaws/ntalatodo/amplify/backend/api/ntalatodo/schema.graphql or place .graphql files in a directory at /home/ntala/Desktop/reactaws/ntalatodo/amplify/backend/api/ntalatodo/schema
Successfully added resource ntalatodo locally
Some next steps:
"amplify push" will build all your local backend resources and provision it in the cloud
"amplify publish" will build all your local backend and frontend resources (if you have hosting category added) and provision it in the cloud

That will create new changes locally, now those need to be published

$ amplify push
$ amplify add api
? Please select from one of the below mentioned services: Gr
aphQL
? Provide API name: ntalatodo
? Choose the default authorization type for the API Amazon C
ognito User Pool
Use a Cognito user pool configured as a part of this project
.
? Do you want to configure advanced settings for the GraphQL
API No, I am done.
? Do you have an annotated GraphQL schema? No
? Do you want a guided schema creation? Yes
? What best describes your project: Single object with field
s (e.g., “Todo” with ID, name, description)
? Do you want to edit the schema now? Yes
Please edit the file in your editor: /home/ntala/Desktop/rea
ctaws/ntalatodo/amplify/backend/api/ntalatodo/schema.graphql
? Press enter to continue 
The following types do not have '@auth' enabled. Consider using @auth with @model
- Todo
Learn more about @auth here: https://aws-amplify.github.io/docs/cli-toolchain/graphql#auth 
GraphQL schema compiled successfully.
Edit your schema at /home/ntala/Desktop/reactaws/ntalatodo/amplify/backend/api/ntalatodo/schema.graphql or place .graphql files in a directory at /home/ntala/Desktop/reactaws/ntalatodo/amplify/backend/api/ntalatodo/schema
Successfully added resource ntalatodo locally
Some next steps:
"amplify push" will build all your local backend resources and provision it in the cloud
"amplify publish" will build all your local backend and frontend resources (if you have hosting category added) and provision it in the cloud
(base) ntala@ntalaptop:~/Desktop/reactaws/ntalatodo$ amplify push
✔ Successfully pulled backend environment ntalaenvir from the cloud.
Current Environment: ntalaenvir
| Category | Resource name                  | Operation | Provider plugin   |
| -------- | ------------------------------ | --------- | ----------------- |
| Api      | ntalatodo                      | Create    | awscloudformation |
| Hosting  | S3AndCloudFront                | No Change | awscloudformation |
| Function | ntalatodoe355a3e1CustomMessage | No Change | awscloudformation |
| Auth     | ntalatodoe355a3e1              | No Change | awscloudformation |
? Are you sure you want to continue? Yes
The following types do not have '@auth' enabled. Consider using @auth with @model
- Todo
Learn more about @auth here: https://aws-amplify.github.io/docs/cli-toolchain/graphql#auth 
GraphQL schema compiled successfully.
Edit your schema at /home/ntala/Desktop/reactaws/ntalatodo/amplify/backend/api/ntalatodo/schema.graphql or place .graphql files in a directory at /home/ntala/Desktop/reactaws/ntalatodo/amplify/backend/api/ntalatodo/schema
? Do you want to generate code for your newly created GraphQ
L API Yes
? Choose the code generation language target javascript
? Enter the file name pattern of graphql queries, mutations 
and subscriptions src/graphql/**/*.js
? Do you want to generate/update all possible GraphQL operat
ions - queries, mutations and subscriptions Yes
? Enter maximum statement depth [increase from default if yo
ur schema is deeply nested] 2
⠼ Updating resources in the cloud. This may take a few minutes...
UPDATE_IN_PROGRESS amplify-ntalatodo-ntalaenvir-125812    AWS::CloudFormation::Stack Thu Feb 13 2020 16:29:59 GMT+1100 (Australian Eastern Daylight Time) User Initiated
UPDATE_IN_PROGRESS functionntalatodoe355a3e1CustomMessage AWS::CloudFormation::Stack Thu Feb 13 2020 16:30:04 GMT+1100 (Australian Eastern Daylight Time)               
UPDATE_IN_PROGRESS hostingS3AndCloudFront                 AWS::CloudFormation::Stack Thu Feb 13 2020 16:30:04 GMT+1100 (⠦ Updating resources in the cloud. This may take a few minut
es...
UPDATE_COMPLETE    hostingS3AndCloudFront                 AWS::CloudFormation::Stack Thu Feb 13 2020 16:30:05 GMT+1100 (Australian Eastern Daylight Time) 
UPDATE_COMPLETE    functionntalatodoe355a3e1CustomMessage AWS::CloudFormation::Stack Thu Feb 13 2020 16:30:05 GMT+1100 (Australian Eastern Daylight Time) 
UPDATE_IN_PROGRESS authntalatodoe355a3e1                  AWS::CloudFormation::Stack Thu Feb 13 2020 16:30:08 GMT+1100 (Australian Eastern Daylight Time) 
UPDATE_COMPLETE    authntalatodoe355a3e1                  AWS::CloudFormation::Stack Thu Feb 13 2020 16:30:09 GMT+1100 (⠋ Updating resources in the cloud. This may take a few minut
es...
CREATE_IN_PROGRESS apintalatodo AWS::CloudFormation::Stack Thu Feb 13 2020 16:30:11 GMT+1100 (Australian Eastern Daylight Time)                            
CREATE_IN_PROGRESS apintalatodo AWS::CloudFormation::Stack Thu Feb 13 2020 16:30:12 GMT+1100 (Australian Eastern Dayligh⠹ Updating resources in the cloud. This may take a few minut
es...
CREATE_IN_PROGRESS amplify-ntalatodo-ntalaenvir-125812-apintalatodo-1TVQU7OE0DPOH AWS::CloudFormation::Stack Thu Feb 13 2020 16:30:12 GMT+1100 (Australian Eastern Daylight Time) Us⠹ Updating resources in the cloud. This may take a few minut
es...
CREATE_IN_PROGRESS GraphQLAPI AWS::AppSync::GraphQLApi Thu Feb 13 2020 16:30:16 GMT+1100 (Australian Eastern Daylight Time)                            
CREATE_IN_PROGRESS GraphQLAPI AWS::AppSync::GraphQLApi Thu Feb 13 2020 16:30:19 GMT+1100 (Australian Eastern Daylight Time) Resource creation Initiated
CREATE_COMPLETE    GraphQLAPI AWS::AppSync::GraphQLApi Thu Feb 13 2020 16:30:19 GMT+1100 (Australian Eastern Daylight Ti⠼ Updating resources in the cloud. This may take a few minut
es...
CREATE_IN_PROGRESS GraphQLSchema AWS::AppSync::GraphQLSchema Thu Feb 13 2020 16:30:21 GMT+1100 (Australian Eastern Daylight Time)                            
CREATE_IN_PROGRESS GraphQLSchema AWS::AppSync::GraphQLSchema Thu Feb 13 2020 16:30:24 GMT+1100 (Australian Eastern Dayli⠏ Updating resources in the cloud. This may take a few minut
es...
CREATE_COMPLETE GraphQLSchema AWS::AppSync::GraphQLSchema Thu Feb 13 2020 16:30:24 GMT+1100 (Australian Eastern Daylight⠦ Updating resources in the cloud. This may take a few minut
es...
⠦ Updating resources in the cloud. This may take a few minutes...
CREATE_IN_PROGRESS ListTodoResolver   AWS::AppSync::Resolver Thu Feb 13 2020 16:31:03 GMT+1100 (Australian Eastern Daylight Time) Resou
rce creation InitiatedCREATE_IN_PROGRESS ListTodoResolver   AWS::AppSync::Resolver Thu Feb 13 2020 16:31:01 GMT+1100 (Australian Eastern Daylight Time)      
CREATE_IN_PROGRESS DeleteTodoResolver AWS::AppSync::Resolver Thu Feb 13 2020 16:31:01 GMT+1100 (Australian Eastern Daylight Time)      
✔ All resources are updated in the cloud
GraphQL endpoint: https://rb4ozhvjxfbgppzl4peej5xrdq.appsync-api.ap-southeast-2.amazonaws.com/graphql

All these changes could be reflected in the Appsync section on the cloud in the AWS AppSync