CreateApplication - AWS Application Discovery Service

CreateApplication

Creates an application with the given name and description.

Request Syntax

{ "description": "string", "name": "string" }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

description

Description of the application to be created.

Type: String

Length Constraints: Maximum length of 1000.

Pattern: (^$|[\s\S]*\S[\s\S]*)

Required: No

name

Name of the application to be created.

Type: String

Length Constraints: Maximum length of 127.

Pattern: [\s\S]*\S[\s\S]*

Required: Yes

Response Syntax

{ "configurationId": "string" }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

configurationId

Configuration ID of an application to be created.

Type: String

Length Constraints: Maximum length of 10000.

Pattern: [\s\S]*

Errors

For information about the errors that are common to all actions, see Common Errors.

AuthorizationErrorException

The user does not have permission to perform the action. Check the IAM policy associated with this user.

HTTP Status Code: 400

HomeRegionNotSetException

The home Region is not set. Set the home Region to continue.

HTTP Status Code: 400

InvalidParameterException

One or more parameters are not valid. Verify the parameters and try again.

HTTP Status Code: 400

InvalidParameterValueException

The value of one or more parameters are either invalid or out of range. Verify the parameter values and try again.

HTTP Status Code: 400

ServerInternalErrorException

The server experienced an internal error. Try again.

HTTP Status Code: 500

Examples

Create an application

The following example creates an application specified by value passed the required parameter of name as well as a description passed to the optional parameter description in the request.

Sample Request

{ "name":"PeopleSoft_phase1", "description":"components related to payroll app to be migrated" }

Sample Response

{ "configurationId": "d-application-0282ccd1ba7c211ca" }

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: