Jump to Content

New API Documentation - Developer Preview Available

We are excited to announce the developer preview of our new API documentation for AWS SDK for JavaScript v3. Please follow instructions on the landing page to leave us your feedback.

Class CreateApplicationCommandProtected

Creates an application. In AppConfig, an application is simply an organizational construct like a folder. This organizational construct has a relationship with some unit of executable code. For example, you could create an application called MyMobileApp to organize and manage configuration data for a mobile application installed by your users.

Example

Use a bare-bones client and the command you need to make an API call.

import { AppConfigClient, CreateApplicationCommand } from "@aws-sdk/client-appconfig"; // ES Modules import
// const { AppConfigClient, CreateApplicationCommand } = require("@aws-sdk/client-appconfig"); // CommonJS import
const client = new AppConfigClient(config);
const input = { // CreateApplicationRequest
Name: "STRING_VALUE", // required
Description: "STRING_VALUE",
Tags: { // TagMap
"<keys>": "STRING_VALUE",
},
};
const command = new CreateApplicationCommand(input);
const response = await client.send(command);
// { // Application
// Id: "STRING_VALUE",
// Name: "STRING_VALUE",
// Description: "STRING_VALUE",
// };

Param

CreateApplicationCommandInput

Returns

CreateApplicationCommandOutput

See

Throws

BadRequestException (client fault)

The input fails to satisfy the constraints specified by an Amazon Web Services service.

Throws

InternalServerException (server fault)

There was an internal failure in the AppConfig service.

Throws

AppConfigServiceException

Base exception class for all service exceptions from AppConfig service.

Example

To create an application

// The following create-application example creates an application in AWS AppConfig.
const input = {
"Description": "An application used for creating an example.",
"Name": "example-application"
};
const command = new CreateApplicationCommand(input);
const response = await client.send(command);
/* response ==
{
"Description": "An application used for creating an example.",
"Id": "339ohji",
"Name": "example-application"
}
*/
// example id: to-create-an-application-1632264511615

Hierarchy

Constructors

Properties

Methods