Name:
interface
Value:
Extend your Amplify Gen 2 app with AWS Blocks — self-contained backend capabilities you compose into your existing backend.
NewDeploy web apps with Git or your AI coding agent using the latest AWS Amplify. Add managed databases and authentication as you grow. Explore the documentation.
NoticeAmplify Gen 1 has entered maintenance mode and will reach end of life on May 1, 2027.

API Reference

These docs cover Amplify Gen 2. For new web apps, we recommend the latest AWS Amplify, with a simplified CLI and native integrations for databases, storage, and AI models. Get started with the latest AWS Amplify.

del

Parameters

OptionRequiredTypeDescription
ctxtrue
inputtrueDeleteInput

Returns

DeleteOperation

del

DELETE HTTP request

Parameters

OptionRequiredTypeDescription
inputtrueDeleteInput
Input for DELETE operation

Throws

  • RestApiError

Returns

DeleteOperation

generateClient

Generates an API client bound to a specific AmplifyContext instead of the global Amplify singleton. Use this overload when you need to scope a client to an explicit context (e.g. multi-tenant or server-side rendering scenarios) rather than the shared singleton configuration.

Parameters

OptionRequiredTypeDescription
ctxtrue
The AmplifyContext the client should resolve its configuration and auth from.
optionsfalse
Optional client options.

Throws

  • Error - Throws error when client cannot be generated due to configuration issues.

Returns

V6Client<, >

generateClient

Generates an API client that can work with models or raw GraphQL

Parameters

OptionRequiredTypeDescription
optionsfalse

Throws

  • Error - Throws error when client cannot be generated due to configuration issues.

Returns

V6Client<, >

get

Parameters

OptionRequiredTypeDescription
ctxtrue
inputtrueGetInput

Returns

GetOperation

get

GET HTTP request

Parameters

OptionRequiredTypeDescription
inputtrueGetInput
Input for GET operation

Throws

  • RestApiError

Returns

GetOperation

head

Parameters

OptionRequiredTypeDescription
ctxtrue
inputtrueHeadInput

Returns

HeadOperation

head

HEAD HTTP request

Parameters

OptionRequiredTypeDescription
inputtrueHeadInput
Input for HEAD operation

Throws

  • RestApiError

Returns

HeadOperation

patch

Parameters

OptionRequiredTypeDescription
ctxtrue
inputtruePatchInput

Returns

PatchOperation

patch

PATCH HTTP request

Parameters

OptionRequiredTypeDescription
inputtruePatchInput
Input for PATCH operation

Throws

  • RestApiError

Returns

PatchOperation

post

Parameters

OptionRequiredTypeDescription
ctxtrue
inputtruePostInput

Returns

PostOperation

post

POST HTTP request

Parameters

OptionRequiredTypeDescription
inputtruePostInput
Input for POST operation

Throws

  • RestApiError

Returns

PostOperation

put

Parameters

OptionRequiredTypeDescription
ctxtrue
inputtruePutInput

Returns

PutOperation

put

PUT HTTP request

Parameters

OptionRequiredTypeDescription
inputtruePutInput
Input for PUT operation

Throws

  • RestApiError

Returns

PutOperation

Link Color Legend

Interface
Reference
Other