CreateApplicationCommand

Create application.

Example Syntax

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

import { MgnClient, CreateApplicationCommand } from "@aws-sdk/client-mgn"; // ES Modules import
// const { MgnClient, CreateApplicationCommand } = require("@aws-sdk/client-mgn"); // CommonJS import
const client = new MgnClient(config);
const input = { // CreateApplicationRequest
  name: "STRING_VALUE", // required
  description: "STRING_VALUE",
  tags: { // TagsMap
    "<keys>": "STRING_VALUE",
  },
  accountID: "STRING_VALUE",
};
const command = new CreateApplicationCommand(input);
const response = await client.send(command);
// { // Application
//   applicationID: "STRING_VALUE",
//   arn: "STRING_VALUE",
//   name: "STRING_VALUE",
//   description: "STRING_VALUE",
//   isArchived: true || false,
//   applicationAggregatedStatus: { // ApplicationAggregatedStatus
//     lastUpdateDateTime: "STRING_VALUE",
//     healthStatus: "STRING_VALUE",
//     progressStatus: "STRING_VALUE",
//     totalSourceServers: Number("long"),
//   },
//   creationDateTime: "STRING_VALUE",
//   lastModifiedDateTime: "STRING_VALUE",
//   tags: { // TagsMap
//     "<keys>": "STRING_VALUE",
//   },
//   waveID: "STRING_VALUE",
// };

CreateApplicationCommand Input

See CreateApplicationCommandInput for more details

Parameter
Type
Description
name
Required
string | undefined

Application name.

accountID
string | undefined

Account ID.

description
string | undefined

Application description.

tags
Record<string, string> | undefined

Application tags.

CreateApplicationCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.
applicationAggregatedStatus
ApplicationAggregatedStatus | undefined

Application aggregated status.

applicationID
string | undefined

Application ID.

arn
string | undefined

Application ARN.

creationDateTime
string | undefined

Application creation dateTime.

description
string | undefined

Application description.

isArchived
boolean | undefined

Application archival status.

lastModifiedDateTime
string | undefined

Application last modified dateTime.

name
string | undefined

Application name.

tags
Record<string, string> | undefined

Application tags.

waveID
string | undefined

Application wave ID.

Throws

Name
Fault
Details
ConflictException
client

The request could not be completed due to a conflict with the current state of the target resource.

ServiceQuotaExceededException
client

The request could not be completed because its exceeded the service quota.

UninitializedAccountException
client

Uninitialized account exception.

MgnServiceException
Base exception class for all service exceptions from Mgn service.