Skip to content

/AWS1/CL_AMF=>CREATEBACKENDENVIRONMENT()

About CreateBackendEnvironment

Creates a new backend environment for an Amplify app.

This API is available only to Amplify Gen 1 applications where the backend is created using Amplify Studio or the Amplify command line interface (CLI). This API isn’t available to Amplify Gen 2 applications. When you deploy an application with Amplify Gen 2, you provision the app's backend infrastructure using Typescript code.

Method Signature

IMPORTING

Required arguments:

IV_APPID TYPE /AWS1/AMFAPPID /AWS1/AMFAPPID

The unique ID for an Amplify app.

IV_ENVIRONMENTNAME TYPE /AWS1/AMFENVIRONMENTNAME /AWS1/AMFENVIRONMENTNAME

The name for the backend environment.

Optional arguments:

IV_STACKNAME TYPE /AWS1/AMFSTACKNAME /AWS1/AMFSTACKNAME

The AWS CloudFormation stack name of a backend environment.

IV_DEPLOYMENTARTIFACTS TYPE /AWS1/AMFDEPLOYMENTARTIFACTS /AWS1/AMFDEPLOYMENTARTIFACTS

The name of deployment artifacts.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_AMFCREBACKENDENVIRO01 /AWS1/CL_AMFCREBACKENDENVIRO01