import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateApplicationRequest, CreateApplicationResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateApplicationCommand}. */ export interface CreateApplicationCommandInput extends CreateApplicationRequest { } /** * @public * * The output of {@link CreateApplicationCommand}. */ export interface CreateApplicationCommandOutput extends CreateApplicationResponse, __MetadataBearer { } declare const CreateApplicationCommand_base: { new (input: CreateApplicationCommandInput): import("@smithy/core/client").CommandImpl; new (...[input]: [] | [CreateApplicationCommandInput]): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Adds an application that is created from a resource group.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ApplicationInsightsClient, CreateApplicationCommand } from "@aws-sdk/client-application-insights"; // ES Modules import * // const { ApplicationInsightsClient, CreateApplicationCommand } = require("@aws-sdk/client-application-insights"); // CommonJS import * // import type { ApplicationInsightsClientConfig } from "@aws-sdk/client-application-insights"; * const config = {}; // type is ApplicationInsightsClientConfig * const client = new ApplicationInsightsClient(config); * const input = { // CreateApplicationRequest * ResourceGroupName: "STRING_VALUE", * OpsCenterEnabled: true || false, * CWEMonitorEnabled: true || false, * OpsItemSNSTopicArn: "STRING_VALUE", * SNSNotificationArn: "STRING_VALUE", * Tags: [ // TagList * { // Tag * Key: "STRING_VALUE", // required * Value: "STRING_VALUE", // required * }, * ], * AutoConfigEnabled: true || false, * AutoCreate: true || false, * GroupingType: "ACCOUNT_BASED", * AttachMissingPermission: true || false, * }; * const command = new CreateApplicationCommand(input); * const response = await client.send(command); * // { // CreateApplicationResponse * // ApplicationInfo: { // ApplicationInfo * // AccountId: "STRING_VALUE", * // ResourceGroupName: "STRING_VALUE", * // LifeCycle: "STRING_VALUE", * // OpsItemSNSTopicArn: "STRING_VALUE", * // SNSNotificationArn: "STRING_VALUE", * // OpsCenterEnabled: true || false, * // CWEMonitorEnabled: true || false, * // Remarks: "STRING_VALUE", * // AutoConfigEnabled: true || false, * // DiscoveryType: "RESOURCE_GROUP_BASED" || "ACCOUNT_BASED", * // AttachMissingPermission: true || false, * // }, * // }; * * ``` * * @param CreateApplicationCommandInput - {@link CreateApplicationCommandInput} * @returns {@link CreateApplicationCommandOutput} * @see {@link CreateApplicationCommandInput} for command's `input` shape. * @see {@link CreateApplicationCommandOutput} for command's `response` shape. * @see {@link ApplicationInsightsClientResolvedConfig | config} for ApplicationInsightsClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

User does not have permissions to perform this action.

* * @throws {@link InternalServerException} (server fault) *

The server encountered an internal error and is unable to complete the request.

* * @throws {@link ResourceInUseException} (client fault) *

The resource is already created or in use.

* * @throws {@link ResourceNotFoundException} (client fault) *

The resource does not exist in the customer account.

* * @throws {@link TagsAlreadyExistException} (client fault) *

Tags are already registered for the specified application ARN.

* * @throws {@link ValidationException} (client fault) *

The parameter is not valid.

* * @throws {@link ApplicationInsightsServiceException} *

Base exception class for all service exceptions from ApplicationInsights service.

* * * @public */ export declare class CreateApplicationCommand extends CreateApplicationCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateApplicationRequest; output: CreateApplicationResponse; }; sdk: { input: CreateApplicationCommandInput; output: CreateApplicationCommandOutput; }; }; }