From e82998a9c9e19dc892fdf55aee4b4c277428ac05 Mon Sep 17 00:00:00 2001 From: awstools Date: Fri, 20 Oct 2023 20:11:32 +0000 Subject: [PATCH] feat(client-application-discovery-service): This release introduces three new APIs: StartBatchDeleteConfigurationTask, DescribeBatchDeleteConfigurationTask, and BatchDeleteAgents. --- .../README.md | 24 + .../src/ApplicationDiscoveryService.ts | 69 +++ .../src/ApplicationDiscoveryServiceClient.ts | 15 + .../src/commands/BatchDeleteAgentsCommand.ts | 181 ++++++ .../commands/BatchDeleteImportDataCommand.ts | 1 + ...ribeBatchDeleteConfigurationTaskCommand.ts | 206 +++++++ ...tartBatchDeleteConfigurationTaskCommand.ts | 193 +++++++ .../src/commands/index.ts | 3 + .../src/models/models_0.ts | 372 ++++++++++++ .../src/pagination/DescribeAgentsPaginator.ts | 50 ++ .../DescribeExportConfigurationsPaginator.ts | 50 ++ .../DescribeExportTasksPaginator.ts | 50 ++ .../src/pagination/DescribeTagsPaginator.ts | 50 ++ .../pagination/ListConfigurationsPaginator.ts | 50 ++ .../src/pagination/index.ts | 9 + .../src/protocols/Aws_json1_1.ts | 301 ++++++++++ .../application-discovery-service.json | 539 +++++++++++++++++- 17 files changed, 2158 insertions(+), 5 deletions(-) create mode 100644 clients/client-application-discovery-service/src/commands/BatchDeleteAgentsCommand.ts create mode 100644 clients/client-application-discovery-service/src/commands/DescribeBatchDeleteConfigurationTaskCommand.ts create mode 100644 clients/client-application-discovery-service/src/commands/StartBatchDeleteConfigurationTaskCommand.ts create mode 100644 clients/client-application-discovery-service/src/pagination/DescribeAgentsPaginator.ts create mode 100644 clients/client-application-discovery-service/src/pagination/DescribeExportConfigurationsPaginator.ts create mode 100644 clients/client-application-discovery-service/src/pagination/DescribeExportTasksPaginator.ts create mode 100644 clients/client-application-discovery-service/src/pagination/DescribeTagsPaginator.ts create mode 100644 clients/client-application-discovery-service/src/pagination/ListConfigurationsPaginator.ts diff --git a/clients/client-application-discovery-service/README.md b/clients/client-application-discovery-service/README.md index a4abe75c4ecf..1da1ebc9ce04 100644 --- a/clients/client-application-discovery-service/README.md +++ b/clients/client-application-discovery-service/README.md @@ -322,6 +322,14 @@ AssociateConfigurationItemsToApplication [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-discovery-service/classes/associateconfigurationitemstoapplicationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-discovery-service/interfaces/associateconfigurationitemstoapplicationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-discovery-service/interfaces/associateconfigurationitemstoapplicationcommandoutput.html) + +
+ +BatchDeleteAgents + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-discovery-service/classes/batchdeleteagentscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-discovery-service/interfaces/batchdeleteagentscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-discovery-service/interfaces/batchdeleteagentscommandoutput.html) +
@@ -370,6 +378,14 @@ DescribeAgents [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-discovery-service/classes/describeagentscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-discovery-service/interfaces/describeagentscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-discovery-service/interfaces/describeagentscommandoutput.html) +
+
+ +DescribeBatchDeleteConfigurationTask + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-discovery-service/classes/describebatchdeleteconfigurationtaskcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-discovery-service/interfaces/describebatchdeleteconfigurationtaskcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-discovery-service/interfaces/describebatchdeleteconfigurationtaskcommandoutput.html) +
@@ -458,6 +474,14 @@ ListServerNeighbors [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-discovery-service/classes/listserverneighborscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-discovery-service/interfaces/listserverneighborscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-discovery-service/interfaces/listserverneighborscommandoutput.html) +
+
+ +StartBatchDeleteConfigurationTask + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-discovery-service/classes/startbatchdeleteconfigurationtaskcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-discovery-service/interfaces/startbatchdeleteconfigurationtaskcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-discovery-service/interfaces/startbatchdeleteconfigurationtaskcommandoutput.html) +
diff --git a/clients/client-application-discovery-service/src/ApplicationDiscoveryService.ts b/clients/client-application-discovery-service/src/ApplicationDiscoveryService.ts index 105cb6ab63f2..67fc9659e7e5 100644 --- a/clients/client-application-discovery-service/src/ApplicationDiscoveryService.ts +++ b/clients/client-application-discovery-service/src/ApplicationDiscoveryService.ts @@ -11,6 +11,11 @@ import { AssociateConfigurationItemsToApplicationCommandInput, AssociateConfigurationItemsToApplicationCommandOutput, } from "./commands/AssociateConfigurationItemsToApplicationCommand"; +import { + BatchDeleteAgentsCommand, + BatchDeleteAgentsCommandInput, + BatchDeleteAgentsCommandOutput, +} from "./commands/BatchDeleteAgentsCommand"; import { BatchDeleteImportDataCommand, BatchDeleteImportDataCommandInput, @@ -33,6 +38,11 @@ import { DescribeAgentsCommandInput, DescribeAgentsCommandOutput, } from "./commands/DescribeAgentsCommand"; +import { + DescribeBatchDeleteConfigurationTaskCommand, + DescribeBatchDeleteConfigurationTaskCommandInput, + DescribeBatchDeleteConfigurationTaskCommandOutput, +} from "./commands/DescribeBatchDeleteConfigurationTaskCommand"; import { DescribeConfigurationsCommand, DescribeConfigurationsCommandInput, @@ -88,6 +98,11 @@ import { ListServerNeighborsCommandInput, ListServerNeighborsCommandOutput, } from "./commands/ListServerNeighborsCommand"; +import { + StartBatchDeleteConfigurationTaskCommand, + StartBatchDeleteConfigurationTaskCommandInput, + StartBatchDeleteConfigurationTaskCommandOutput, +} from "./commands/StartBatchDeleteConfigurationTaskCommand"; import { StartContinuousExportCommand, StartContinuousExportCommandInput, @@ -126,12 +141,14 @@ import { const commands = { AssociateConfigurationItemsToApplicationCommand, + BatchDeleteAgentsCommand, BatchDeleteImportDataCommand, CreateApplicationCommand, CreateTagsCommand, DeleteApplicationsCommand, DeleteTagsCommand, DescribeAgentsCommand, + DescribeBatchDeleteConfigurationTaskCommand, DescribeConfigurationsCommand, DescribeContinuousExportsCommand, DescribeExportConfigurationsCommand, @@ -143,6 +160,7 @@ const commands = { GetDiscoverySummaryCommand, ListConfigurationsCommand, ListServerNeighborsCommand, + StartBatchDeleteConfigurationTaskCommand, StartContinuousExportCommand, StartDataCollectionByAgentIdsCommand, StartExportTaskCommand, @@ -170,6 +188,23 @@ export interface ApplicationDiscoveryService { cb: (err: any, data?: AssociateConfigurationItemsToApplicationCommandOutput) => void ): void; + /** + * @see {@link BatchDeleteAgentsCommand} + */ + batchDeleteAgents( + args: BatchDeleteAgentsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + batchDeleteAgents( + args: BatchDeleteAgentsCommandInput, + cb: (err: any, data?: BatchDeleteAgentsCommandOutput) => void + ): void; + batchDeleteAgents( + args: BatchDeleteAgentsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: BatchDeleteAgentsCommandOutput) => void + ): void; + /** * @see {@link BatchDeleteImportDataCommand} */ @@ -257,6 +292,23 @@ export interface ApplicationDiscoveryService { cb: (err: any, data?: DescribeAgentsCommandOutput) => void ): void; + /** + * @see {@link DescribeBatchDeleteConfigurationTaskCommand} + */ + describeBatchDeleteConfigurationTask( + args: DescribeBatchDeleteConfigurationTaskCommandInput, + options?: __HttpHandlerOptions + ): Promise; + describeBatchDeleteConfigurationTask( + args: DescribeBatchDeleteConfigurationTaskCommandInput, + cb: (err: any, data?: DescribeBatchDeleteConfigurationTaskCommandOutput) => void + ): void; + describeBatchDeleteConfigurationTask( + args: DescribeBatchDeleteConfigurationTaskCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DescribeBatchDeleteConfigurationTaskCommandOutput) => void + ): void; + /** * @see {@link DescribeConfigurationsCommand} */ @@ -438,6 +490,23 @@ export interface ApplicationDiscoveryService { cb: (err: any, data?: ListServerNeighborsCommandOutput) => void ): void; + /** + * @see {@link StartBatchDeleteConfigurationTaskCommand} + */ + startBatchDeleteConfigurationTask( + args: StartBatchDeleteConfigurationTaskCommandInput, + options?: __HttpHandlerOptions + ): Promise; + startBatchDeleteConfigurationTask( + args: StartBatchDeleteConfigurationTaskCommandInput, + cb: (err: any, data?: StartBatchDeleteConfigurationTaskCommandOutput) => void + ): void; + startBatchDeleteConfigurationTask( + args: StartBatchDeleteConfigurationTaskCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: StartBatchDeleteConfigurationTaskCommandOutput) => void + ): void; + /** * @see {@link StartContinuousExportCommand} */ diff --git a/clients/client-application-discovery-service/src/ApplicationDiscoveryServiceClient.ts b/clients/client-application-discovery-service/src/ApplicationDiscoveryServiceClient.ts index 342f5006b6a3..bfb5564a5c0b 100644 --- a/clients/client-application-discovery-service/src/ApplicationDiscoveryServiceClient.ts +++ b/clients/client-application-discovery-service/src/ApplicationDiscoveryServiceClient.ts @@ -54,6 +54,7 @@ import { AssociateConfigurationItemsToApplicationCommandInput, AssociateConfigurationItemsToApplicationCommandOutput, } from "./commands/AssociateConfigurationItemsToApplicationCommand"; +import { BatchDeleteAgentsCommandInput, BatchDeleteAgentsCommandOutput } from "./commands/BatchDeleteAgentsCommand"; import { BatchDeleteImportDataCommandInput, BatchDeleteImportDataCommandOutput, @@ -63,6 +64,10 @@ import { CreateTagsCommandInput, CreateTagsCommandOutput } from "./commands/Crea import { DeleteApplicationsCommandInput, DeleteApplicationsCommandOutput } from "./commands/DeleteApplicationsCommand"; import { DeleteTagsCommandInput, DeleteTagsCommandOutput } from "./commands/DeleteTagsCommand"; import { DescribeAgentsCommandInput, DescribeAgentsCommandOutput } from "./commands/DescribeAgentsCommand"; +import { + DescribeBatchDeleteConfigurationTaskCommandInput, + DescribeBatchDeleteConfigurationTaskCommandOutput, +} from "./commands/DescribeBatchDeleteConfigurationTaskCommand"; import { DescribeConfigurationsCommandInput, DescribeConfigurationsCommandOutput, @@ -101,6 +106,10 @@ import { ListServerNeighborsCommandInput, ListServerNeighborsCommandOutput, } from "./commands/ListServerNeighborsCommand"; +import { + StartBatchDeleteConfigurationTaskCommandInput, + StartBatchDeleteConfigurationTaskCommandOutput, +} from "./commands/StartBatchDeleteConfigurationTaskCommand"; import { StartContinuousExportCommandInput, StartContinuousExportCommandOutput, @@ -136,12 +145,14 @@ export { __Client }; */ export type ServiceInputTypes = | AssociateConfigurationItemsToApplicationCommandInput + | BatchDeleteAgentsCommandInput | BatchDeleteImportDataCommandInput | CreateApplicationCommandInput | CreateTagsCommandInput | DeleteApplicationsCommandInput | DeleteTagsCommandInput | DescribeAgentsCommandInput + | DescribeBatchDeleteConfigurationTaskCommandInput | DescribeConfigurationsCommandInput | DescribeContinuousExportsCommandInput | DescribeExportConfigurationsCommandInput @@ -153,6 +164,7 @@ export type ServiceInputTypes = | GetDiscoverySummaryCommandInput | ListConfigurationsCommandInput | ListServerNeighborsCommandInput + | StartBatchDeleteConfigurationTaskCommandInput | StartContinuousExportCommandInput | StartDataCollectionByAgentIdsCommandInput | StartExportTaskCommandInput @@ -166,12 +178,14 @@ export type ServiceInputTypes = */ export type ServiceOutputTypes = | AssociateConfigurationItemsToApplicationCommandOutput + | BatchDeleteAgentsCommandOutput | BatchDeleteImportDataCommandOutput | CreateApplicationCommandOutput | CreateTagsCommandOutput | DeleteApplicationsCommandOutput | DeleteTagsCommandOutput | DescribeAgentsCommandOutput + | DescribeBatchDeleteConfigurationTaskCommandOutput | DescribeConfigurationsCommandOutput | DescribeContinuousExportsCommandOutput | DescribeExportConfigurationsCommandOutput @@ -183,6 +197,7 @@ export type ServiceOutputTypes = | GetDiscoverySummaryCommandOutput | ListConfigurationsCommandOutput | ListServerNeighborsCommandOutput + | StartBatchDeleteConfigurationTaskCommandOutput | StartContinuousExportCommandOutput | StartDataCollectionByAgentIdsCommandOutput | StartExportTaskCommandOutput diff --git a/clients/client-application-discovery-service/src/commands/BatchDeleteAgentsCommand.ts b/clients/client-application-discovery-service/src/commands/BatchDeleteAgentsCommand.ts new file mode 100644 index 000000000000..8ed32bc0bf52 --- /dev/null +++ b/clients/client-application-discovery-service/src/commands/BatchDeleteAgentsCommand.ts @@ -0,0 +1,181 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, + SMITHY_CONTEXT_KEY, +} from "@smithy/types"; + +import { + ApplicationDiscoveryServiceClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../ApplicationDiscoveryServiceClient"; +import { BatchDeleteAgentsRequest, BatchDeleteAgentsResponse } from "../models/models_0"; +import { de_BatchDeleteAgentsCommand, se_BatchDeleteAgentsCommand } from "../protocols/Aws_json1_1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link BatchDeleteAgentsCommand}. + */ +export interface BatchDeleteAgentsCommandInput extends BatchDeleteAgentsRequest {} +/** + * @public + * + * The output of {@link BatchDeleteAgentsCommand}. + */ +export interface BatchDeleteAgentsCommandOutput extends BatchDeleteAgentsResponse, __MetadataBearer {} + +/** + * @public + *

+ * Deletes one or more agents or collectors as specified by ID. Deleting an agent or collector does not + * delete the previously discovered data. + * To delete the data collected, use StartBatchDeleteConfigurationTask. + * + *

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { ApplicationDiscoveryServiceClient, BatchDeleteAgentsCommand } from "@aws-sdk/client-application-discovery-service"; // ES Modules import + * // const { ApplicationDiscoveryServiceClient, BatchDeleteAgentsCommand } = require("@aws-sdk/client-application-discovery-service"); // CommonJS import + * const client = new ApplicationDiscoveryServiceClient(config); + * const input = { // BatchDeleteAgentsRequest + * deleteAgents: [ // DeleteAgents // required + * { // DeleteAgent + * agentId: "STRING_VALUE", // required + * force: true || false, + * }, + * ], + * }; + * const command = new BatchDeleteAgentsCommand(input); + * const response = await client.send(command); + * // { // BatchDeleteAgentsResponse + * // errors: [ // BatchDeleteAgentErrors + * // { // BatchDeleteAgentError + * // agentId: "STRING_VALUE", // required + * // errorMessage: "STRING_VALUE", // required + * // errorCode: "NOT_FOUND" || "INTERNAL_SERVER_ERROR" || "AGENT_IN_USE", // required + * // }, + * // ], + * // }; + * + * ``` + * + * @param BatchDeleteAgentsCommandInput - {@link BatchDeleteAgentsCommandInput} + * @returns {@link BatchDeleteAgentsCommandOutput} + * @see {@link BatchDeleteAgentsCommandInput} for command's `input` shape. + * @see {@link BatchDeleteAgentsCommandOutput} for command's `response` shape. + * @see {@link ApplicationDiscoveryServiceClientResolvedConfig | config} for ApplicationDiscoveryServiceClient's `config` shape. + * + * @throws {@link AuthorizationErrorException} (client fault) + *

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

+ * + * @throws {@link InvalidParameterException} (client fault) + *

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

+ * + * @throws {@link InvalidParameterValueException} (client fault) + *

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

+ * + * @throws {@link ServerInternalErrorException} (server fault) + *

The server experienced an internal error. Try again.

+ * + * @throws {@link ApplicationDiscoveryServiceServiceException} + *

Base exception class for all service exceptions from ApplicationDiscoveryService service.

+ * + */ +export class BatchDeleteAgentsCommand extends $Command< + BatchDeleteAgentsCommandInput, + BatchDeleteAgentsCommandOutput, + ApplicationDiscoveryServiceClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: BatchDeleteAgentsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: ApplicationDiscoveryServiceClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, BatchDeleteAgentsCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "ApplicationDiscoveryServiceClient"; + const commandName = "BatchDeleteAgentsCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + [SMITHY_CONTEXT_KEY]: { + service: "AWSPoseidonService_V2015_11_01", + operation: "BatchDeleteAgents", + }, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: BatchDeleteAgentsCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_BatchDeleteAgentsCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_BatchDeleteAgentsCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-application-discovery-service/src/commands/BatchDeleteImportDataCommand.ts b/clients/client-application-discovery-service/src/commands/BatchDeleteImportDataCommand.ts index 98846a853263..6a57d71c0fc4 100644 --- a/clients/client-application-discovery-service/src/commands/BatchDeleteImportDataCommand.ts +++ b/clients/client-application-discovery-service/src/commands/BatchDeleteImportDataCommand.ts @@ -58,6 +58,7 @@ export interface BatchDeleteImportDataCommandOutput extends BatchDeleteImportDat * importTaskIds: [ // ToDeleteIdentifierList // required * "STRING_VALUE", * ], + * deleteHistory: true || false, * }; * const command = new BatchDeleteImportDataCommand(input); * const response = await client.send(command); diff --git a/clients/client-application-discovery-service/src/commands/DescribeBatchDeleteConfigurationTaskCommand.ts b/clients/client-application-discovery-service/src/commands/DescribeBatchDeleteConfigurationTaskCommand.ts new file mode 100644 index 000000000000..803d06b3a6f0 --- /dev/null +++ b/clients/client-application-discovery-service/src/commands/DescribeBatchDeleteConfigurationTaskCommand.ts @@ -0,0 +1,206 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, + SMITHY_CONTEXT_KEY, +} from "@smithy/types"; + +import { + ApplicationDiscoveryServiceClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../ApplicationDiscoveryServiceClient"; +import { + DescribeBatchDeleteConfigurationTaskRequest, + DescribeBatchDeleteConfigurationTaskResponse, +} from "../models/models_0"; +import { + de_DescribeBatchDeleteConfigurationTaskCommand, + se_DescribeBatchDeleteConfigurationTaskCommand, +} from "../protocols/Aws_json1_1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link DescribeBatchDeleteConfigurationTaskCommand}. + */ +export interface DescribeBatchDeleteConfigurationTaskCommandInput extends DescribeBatchDeleteConfigurationTaskRequest {} +/** + * @public + * + * The output of {@link DescribeBatchDeleteConfigurationTaskCommand}. + */ +export interface DescribeBatchDeleteConfigurationTaskCommandOutput + extends DescribeBatchDeleteConfigurationTaskResponse, + __MetadataBearer {} + +/** + * @public + *

+ * Takes a unique deletion task identifier as input and returns metadata about a configuration deletion task.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { ApplicationDiscoveryServiceClient, DescribeBatchDeleteConfigurationTaskCommand } from "@aws-sdk/client-application-discovery-service"; // ES Modules import + * // const { ApplicationDiscoveryServiceClient, DescribeBatchDeleteConfigurationTaskCommand } = require("@aws-sdk/client-application-discovery-service"); // CommonJS import + * const client = new ApplicationDiscoveryServiceClient(config); + * const input = { // DescribeBatchDeleteConfigurationTaskRequest + * taskId: "STRING_VALUE", // required + * }; + * const command = new DescribeBatchDeleteConfigurationTaskCommand(input); + * const response = await client.send(command); + * // { // DescribeBatchDeleteConfigurationTaskResponse + * // task: { // BatchDeleteConfigurationTask + * // taskId: "STRING_VALUE", + * // status: "INITIALIZING" || "VALIDATING" || "DELETING" || "COMPLETED" || "FAILED", + * // startTime: new Date("TIMESTAMP"), + * // endTime: new Date("TIMESTAMP"), + * // configurationType: "SERVER", + * // requestedConfigurations: [ // ConfigurationIdList + * // "STRING_VALUE", + * // ], + * // deletedConfigurations: [ + * // "STRING_VALUE", + * // ], + * // failedConfigurations: [ // FailedConfigurationList + * // { // FailedConfiguration + * // configurationId: "STRING_VALUE", + * // errorStatusCode: Number("int"), + * // errorMessage: "STRING_VALUE", + * // }, + * // ], + * // deletionWarnings: [ // DeletionWarningsList + * // { // DeletionWarning + * // configurationId: "STRING_VALUE", + * // warningCode: Number("int"), + * // warningText: "STRING_VALUE", + * // }, + * // ], + * // }, + * // }; + * + * ``` + * + * @param DescribeBatchDeleteConfigurationTaskCommandInput - {@link DescribeBatchDeleteConfigurationTaskCommandInput} + * @returns {@link DescribeBatchDeleteConfigurationTaskCommandOutput} + * @see {@link DescribeBatchDeleteConfigurationTaskCommandInput} for command's `input` shape. + * @see {@link DescribeBatchDeleteConfigurationTaskCommandOutput} for command's `response` shape. + * @see {@link ApplicationDiscoveryServiceClientResolvedConfig | config} for ApplicationDiscoveryServiceClient's `config` shape. + * + * @throws {@link AuthorizationErrorException} (client fault) + *

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

+ * + * @throws {@link HomeRegionNotSetException} (client fault) + *

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

+ * + * @throws {@link InvalidParameterValueException} (client fault) + *

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

+ * + * @throws {@link ServerInternalErrorException} (server fault) + *

The server experienced an internal error. Try again.

+ * + * @throws {@link ApplicationDiscoveryServiceServiceException} + *

Base exception class for all service exceptions from ApplicationDiscoveryService service.

+ * + */ +export class DescribeBatchDeleteConfigurationTaskCommand extends $Command< + DescribeBatchDeleteConfigurationTaskCommandInput, + DescribeBatchDeleteConfigurationTaskCommandOutput, + ApplicationDiscoveryServiceClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: DescribeBatchDeleteConfigurationTaskCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: ApplicationDiscoveryServiceClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DescribeBatchDeleteConfigurationTaskCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "ApplicationDiscoveryServiceClient"; + const commandName = "DescribeBatchDeleteConfigurationTaskCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + [SMITHY_CONTEXT_KEY]: { + service: "AWSPoseidonService_V2015_11_01", + operation: "DescribeBatchDeleteConfigurationTask", + }, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize( + input: DescribeBatchDeleteConfigurationTaskCommandInput, + context: __SerdeContext + ): Promise<__HttpRequest> { + return se_DescribeBatchDeleteConfigurationTaskCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_DescribeBatchDeleteConfigurationTaskCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-application-discovery-service/src/commands/StartBatchDeleteConfigurationTaskCommand.ts b/clients/client-application-discovery-service/src/commands/StartBatchDeleteConfigurationTaskCommand.ts new file mode 100644 index 000000000000..d23e2cde7e88 --- /dev/null +++ b/clients/client-application-discovery-service/src/commands/StartBatchDeleteConfigurationTaskCommand.ts @@ -0,0 +1,193 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, + SMITHY_CONTEXT_KEY, +} from "@smithy/types"; + +import { + ApplicationDiscoveryServiceClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../ApplicationDiscoveryServiceClient"; +import { + StartBatchDeleteConfigurationTaskRequest, + StartBatchDeleteConfigurationTaskResponse, +} from "../models/models_0"; +import { + de_StartBatchDeleteConfigurationTaskCommand, + se_StartBatchDeleteConfigurationTaskCommand, +} from "../protocols/Aws_json1_1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link StartBatchDeleteConfigurationTaskCommand}. + */ +export interface StartBatchDeleteConfigurationTaskCommandInput extends StartBatchDeleteConfigurationTaskRequest {} +/** + * @public + * + * The output of {@link StartBatchDeleteConfigurationTaskCommand}. + */ +export interface StartBatchDeleteConfigurationTaskCommandOutput + extends StartBatchDeleteConfigurationTaskResponse, + __MetadataBearer {} + +/** + * @public + *

+ * Takes a list of configurationId as input and starts an asynchronous deletion + * task to remove the configurationItems. Returns a unique deletion task identifier. + *

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { ApplicationDiscoveryServiceClient, StartBatchDeleteConfigurationTaskCommand } from "@aws-sdk/client-application-discovery-service"; // ES Modules import + * // const { ApplicationDiscoveryServiceClient, StartBatchDeleteConfigurationTaskCommand } = require("@aws-sdk/client-application-discovery-service"); // CommonJS import + * const client = new ApplicationDiscoveryServiceClient(config); + * const input = { // StartBatchDeleteConfigurationTaskRequest + * configurationType: "SERVER", // required + * configurationIds: [ // ConfigurationIdList // required + * "STRING_VALUE", + * ], + * }; + * const command = new StartBatchDeleteConfigurationTaskCommand(input); + * const response = await client.send(command); + * // { // StartBatchDeleteConfigurationTaskResponse + * // taskId: "STRING_VALUE", + * // }; + * + * ``` + * + * @param StartBatchDeleteConfigurationTaskCommandInput - {@link StartBatchDeleteConfigurationTaskCommandInput} + * @returns {@link StartBatchDeleteConfigurationTaskCommandOutput} + * @see {@link StartBatchDeleteConfigurationTaskCommandInput} for command's `input` shape. + * @see {@link StartBatchDeleteConfigurationTaskCommandOutput} for command's `response` shape. + * @see {@link ApplicationDiscoveryServiceClientResolvedConfig | config} for ApplicationDiscoveryServiceClient's `config` shape. + * + * @throws {@link AuthorizationErrorException} (client fault) + *

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

+ * + * @throws {@link HomeRegionNotSetException} (client fault) + *

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

+ * + * @throws {@link InvalidParameterValueException} (client fault) + *

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

+ * + * @throws {@link LimitExceededException} (client fault) + *

+ * The limit of 200 configuration IDs per request has been exceeded. + *

+ * + * @throws {@link OperationNotPermittedException} (client fault) + *

This operation is not permitted.

+ * + * @throws {@link ServerInternalErrorException} (server fault) + *

The server experienced an internal error. Try again.

+ * + * @throws {@link ApplicationDiscoveryServiceServiceException} + *

Base exception class for all service exceptions from ApplicationDiscoveryService service.

+ * + */ +export class StartBatchDeleteConfigurationTaskCommand extends $Command< + StartBatchDeleteConfigurationTaskCommandInput, + StartBatchDeleteConfigurationTaskCommandOutput, + ApplicationDiscoveryServiceClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: StartBatchDeleteConfigurationTaskCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: ApplicationDiscoveryServiceClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, StartBatchDeleteConfigurationTaskCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "ApplicationDiscoveryServiceClient"; + const commandName = "StartBatchDeleteConfigurationTaskCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + [SMITHY_CONTEXT_KEY]: { + service: "AWSPoseidonService_V2015_11_01", + operation: "StartBatchDeleteConfigurationTask", + }, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize( + input: StartBatchDeleteConfigurationTaskCommandInput, + context: __SerdeContext + ): Promise<__HttpRequest> { + return se_StartBatchDeleteConfigurationTaskCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_StartBatchDeleteConfigurationTaskCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-application-discovery-service/src/commands/index.ts b/clients/client-application-discovery-service/src/commands/index.ts index 9a8daeaf7e1d..d37474968a97 100644 --- a/clients/client-application-discovery-service/src/commands/index.ts +++ b/clients/client-application-discovery-service/src/commands/index.ts @@ -1,11 +1,13 @@ // smithy-typescript generated code export * from "./AssociateConfigurationItemsToApplicationCommand"; +export * from "./BatchDeleteAgentsCommand"; export * from "./BatchDeleteImportDataCommand"; export * from "./CreateApplicationCommand"; export * from "./CreateTagsCommand"; export * from "./DeleteApplicationsCommand"; export * from "./DeleteTagsCommand"; export * from "./DescribeAgentsCommand"; +export * from "./DescribeBatchDeleteConfigurationTaskCommand"; export * from "./DescribeConfigurationsCommand"; export * from "./DescribeContinuousExportsCommand"; export * from "./DescribeExportConfigurationsCommand"; @@ -17,6 +19,7 @@ export * from "./ExportConfigurationsCommand"; export * from "./GetDiscoverySummaryCommand"; export * from "./ListConfigurationsCommand"; export * from "./ListServerNeighborsCommand"; +export * from "./StartBatchDeleteConfigurationTaskCommand"; export * from "./StartContinuousExportCommand"; export * from "./StartDataCollectionByAgentIdsCommand"; export * from "./StartExportTaskCommand"; diff --git a/clients/client-application-discovery-service/src/models/models_0.ts b/clients/client-application-discovery-service/src/models/models_0.ts index 09db56fddef5..71e16b77d9cd 100644 --- a/clients/client-application-discovery-service/src/models/models_0.ts +++ b/clients/client-application-discovery-service/src/models/models_0.ts @@ -262,6 +262,108 @@ export class ServerInternalErrorException extends __BaseException { } } +/** + * @public + *

+ * An object representing the agent or data collector to be deleted along with + * the optional configurations for error handling. + *

+ */ +export interface DeleteAgent { + /** + * @public + *

+ * The ID of the agent or data collector to delete. + *

+ */ + agentId: string | undefined; + + /** + * @public + *

+ * Optional flag used to force delete an agent or data collector. It is needed to delete any agent in + * HEALTHY/UNHEALTHY/RUNNING status. Note that deleting an agent that is actively reporting health causes it + * to be re-registered with a different agent ID after data collector re-connects with Amazon Web Services. + *

+ */ + force?: boolean; +} + +/** + * @public + */ +export interface BatchDeleteAgentsRequest { + /** + * @public + *

+ * The list of agents to delete. + *

+ */ + deleteAgents: DeleteAgent[] | undefined; +} + +/** + * @public + * @enum + */ +export const DeleteAgentErrorCode = { + AGENT_IN_USE: "AGENT_IN_USE", + INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR", + NOT_FOUND: "NOT_FOUND", +} as const; + +/** + * @public + */ +export type DeleteAgentErrorCode = (typeof DeleteAgentErrorCode)[keyof typeof DeleteAgentErrorCode]; + +/** + * @public + *

+ * An object representing the agent or data collector that failed to delete, each containing agentId, + * errorMessage, and errorCode. + *

+ */ +export interface BatchDeleteAgentError { + /** + * @public + *

+ * The ID of the agent or data collector to delete. + *

+ */ + agentId: string | undefined; + + /** + * @public + *

+ * The description of the error that occurred for the delete failed agent. + *

+ */ + errorMessage: string | undefined; + + /** + * @public + *

+ * The type of error that occurred for the delete failed agent. + * Valid status are: AGENT_IN_USE | NOT_FOUND | INTERNAL_SERVER_ERROR. + *

+ */ + errorCode: DeleteAgentErrorCode | undefined; +} + +/** + * @public + */ +export interface BatchDeleteAgentsResponse { + /** + * @public + *

+ * A list of agent IDs that failed to delete during the deletion task, each paired with an error message. + *

+ */ + errors?: BatchDeleteAgentError[]; +} + /** * @public */ @@ -271,6 +373,15 @@ export interface BatchDeleteImportDataRequest { *

The IDs for the import tasks that you want to delete.

*/ importTaskIds: string[] | undefined; + + /** + * @public + *

+ * Set to true to remove the deleted import task from + * DescribeImportTasks. + *

+ */ + deleteHistory?: boolean; } /** @@ -561,6 +672,211 @@ export interface DescribeAgentsResponse { nextToken?: string; } +/** + * @public + */ +export interface DescribeBatchDeleteConfigurationTaskRequest { + /** + * @public + *

+ * The ID of the task to delete. + *

+ */ + taskId: string | undefined; +} + +/** + * @public + * @enum + */ +export const DeletionConfigurationItemType = { + SERVER: "SERVER", +} as const; + +/** + * @public + */ +export type DeletionConfigurationItemType = + (typeof DeletionConfigurationItemType)[keyof typeof DeletionConfigurationItemType]; + +/** + * @public + *

+ * A configuration ID paired with a warning message. + *

+ */ +export interface DeletionWarning { + /** + * @public + *

+ * The unique identifier of the configuration that produced a warning. + *

+ */ + configurationId?: string; + + /** + * @public + *

+ * The integer warning code associated with the warning message. + *

+ */ + warningCode?: number; + + /** + * @public + *

+ * A descriptive message of the warning the associated configuration ID produced. + *

+ */ + warningText?: string; +} + +/** + * @public + *

+ * A configuration ID paired with an error message. + *

+ */ +export interface FailedConfiguration { + /** + * @public + *

+ * The unique identifier of the configuration the failed to delete. + *

+ */ + configurationId?: string; + + /** + * @public + *

+ * The integer error code associated with the error message. + *

+ */ + errorStatusCode?: number; + + /** + * @public + *

+ * A descriptive message indicating why the associated configuration failed to delete. + *

+ */ + errorMessage?: string; +} + +/** + * @public + * @enum + */ +export const BatchDeleteConfigurationTaskStatus = { + COMPLETED: "COMPLETED", + DELETING: "DELETING", + FAILED: "FAILED", + INITIALIZING: "INITIALIZING", + VALIDATING: "VALIDATING", +} as const; + +/** + * @public + */ +export type BatchDeleteConfigurationTaskStatus = + (typeof BatchDeleteConfigurationTaskStatus)[keyof typeof BatchDeleteConfigurationTaskStatus]; + +/** + * @public + *

+ * A metadata object that represents the deletion task being executed. + *

+ */ +export interface BatchDeleteConfigurationTask { + /** + * @public + *

+ * The deletion task's unique identifier. + *

+ */ + taskId?: string; + + /** + * @public + *

+ * The current execution status of the deletion task. + * Valid status are: INITIALIZING | VALIDATING | DELETING | COMPLETED | FAILED. + *

+ */ + status?: BatchDeleteConfigurationTaskStatus; + + /** + * @public + *

+ * An epoch seconds timestamp (UTC) of when the deletion task was started. + *

+ */ + startTime?: Date; + + /** + * @public + *

+ * An epoch seconds timestamp (UTC) of when the deletion task was completed or failed. + *

+ */ + endTime?: Date; + + /** + * @public + *

+ * The type of configuration item to delete. Supported types are: SERVER. + *

+ */ + configurationType?: DeletionConfigurationItemType; + + /** + * @public + *

+ * The list of configuration IDs that were originally requested to be deleted by the deletion task. + *

+ */ + requestedConfigurations?: string[]; + + /** + * @public + *

+ * The list of configuration IDs that were successfully deleted by the deletion task. + *

+ */ + deletedConfigurations?: string[]; + + /** + * @public + *

+ * A list of configuration IDs that failed to delete during the deletion task, + * each paired with an error message. + *

+ */ + failedConfigurations?: FailedConfiguration[]; + + /** + * @public + *

+ * A list of configuration IDs that produced warnings regarding their deletion, + * paired with a warning message. + *

+ */ + deletionWarnings?: DeletionWarning[]; +} + +/** + * @public + */ +export interface DescribeBatchDeleteConfigurationTaskResponse { + /** + * @public + *

+ * The BatchDeleteConfigurationTask that represents the deletion task being executed. + *

+ */ + task?: BatchDeleteConfigurationTask; +} + /** * @public */ @@ -1872,6 +2188,62 @@ export interface ListServerNeighborsResponse { knownDependencyCount?: number; } +/** + * @public + *

+ * The limit of 200 configuration IDs per request has been exceeded. + *

+ */ +export class LimitExceededException extends __BaseException { + readonly name: "LimitExceededException" = "LimitExceededException"; + readonly $fault: "client" = "client"; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "LimitExceededException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, LimitExceededException.prototype); + } +} + +/** + * @public + */ +export interface StartBatchDeleteConfigurationTaskRequest { + /** + * @public + *

+ * The type of configuration item to delete. Supported types are: SERVER. + *

+ */ + configurationType: DeletionConfigurationItemType | undefined; + + /** + * @public + *

+ * The list of configuration IDs that will be deleted by the task. + *

+ */ + configurationIds: string[] | undefined; +} + +/** + * @public + */ +export interface StartBatchDeleteConfigurationTaskResponse { + /** + * @public + *

+ * The unique identifier associated with the newly started deletion task. + *

+ */ + taskId?: string; +} + /** * @public *

Conflict error.

diff --git a/clients/client-application-discovery-service/src/pagination/DescribeAgentsPaginator.ts b/clients/client-application-discovery-service/src/pagination/DescribeAgentsPaginator.ts new file mode 100644 index 000000000000..509a8110dde1 --- /dev/null +++ b/clients/client-application-discovery-service/src/pagination/DescribeAgentsPaginator.ts @@ -0,0 +1,50 @@ +// smithy-typescript generated code +import { Paginator } from "@smithy/types"; + +import { ApplicationDiscoveryServiceClient } from "../ApplicationDiscoveryServiceClient"; +import { + DescribeAgentsCommand, + DescribeAgentsCommandInput, + DescribeAgentsCommandOutput, +} from "../commands/DescribeAgentsCommand"; +import { ApplicationDiscoveryServicePaginationConfiguration } from "./Interfaces"; + +/** + * @internal + */ +const makePagedClientRequest = async ( + client: ApplicationDiscoveryServiceClient, + input: DescribeAgentsCommandInput, + ...args: any +): Promise => { + // @ts-ignore + return await client.send(new DescribeAgentsCommand(input), ...args); +}; +/** + * @public + */ +export async function* paginateDescribeAgents( + config: ApplicationDiscoveryServicePaginationConfiguration, + input: DescribeAgentsCommandInput, + ...additionalArguments: any +): Paginator { + // ToDo: replace with actual type instead of typeof input.nextToken + let token: typeof input.nextToken | undefined = config.startingToken || undefined; + let hasNext = true; + let page: DescribeAgentsCommandOutput; + while (hasNext) { + input.nextToken = token; + input["maxResults"] = config.pageSize; + if (config.client instanceof ApplicationDiscoveryServiceClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected ApplicationDiscoveryService | ApplicationDiscoveryServiceClient"); + } + yield page; + const prevToken = token; + token = page.nextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + // @ts-ignore + return undefined; +} diff --git a/clients/client-application-discovery-service/src/pagination/DescribeExportConfigurationsPaginator.ts b/clients/client-application-discovery-service/src/pagination/DescribeExportConfigurationsPaginator.ts new file mode 100644 index 000000000000..30d787766cf4 --- /dev/null +++ b/clients/client-application-discovery-service/src/pagination/DescribeExportConfigurationsPaginator.ts @@ -0,0 +1,50 @@ +// smithy-typescript generated code +import { Paginator } from "@smithy/types"; + +import { ApplicationDiscoveryServiceClient } from "../ApplicationDiscoveryServiceClient"; +import { + DescribeExportConfigurationsCommand, + DescribeExportConfigurationsCommandInput, + DescribeExportConfigurationsCommandOutput, +} from "../commands/DescribeExportConfigurationsCommand"; +import { ApplicationDiscoveryServicePaginationConfiguration } from "./Interfaces"; + +/** + * @internal + */ +const makePagedClientRequest = async ( + client: ApplicationDiscoveryServiceClient, + input: DescribeExportConfigurationsCommandInput, + ...args: any +): Promise => { + // @ts-ignore + return await client.send(new DescribeExportConfigurationsCommand(input), ...args); +}; +/** + * @public + */ +export async function* paginateDescribeExportConfigurations( + config: ApplicationDiscoveryServicePaginationConfiguration, + input: DescribeExportConfigurationsCommandInput, + ...additionalArguments: any +): Paginator { + // ToDo: replace with actual type instead of typeof input.nextToken + let token: typeof input.nextToken | undefined = config.startingToken || undefined; + let hasNext = true; + let page: DescribeExportConfigurationsCommandOutput; + while (hasNext) { + input.nextToken = token; + input["maxResults"] = config.pageSize; + if (config.client instanceof ApplicationDiscoveryServiceClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected ApplicationDiscoveryService | ApplicationDiscoveryServiceClient"); + } + yield page; + const prevToken = token; + token = page.nextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + // @ts-ignore + return undefined; +} diff --git a/clients/client-application-discovery-service/src/pagination/DescribeExportTasksPaginator.ts b/clients/client-application-discovery-service/src/pagination/DescribeExportTasksPaginator.ts new file mode 100644 index 000000000000..6123a65b2c4f --- /dev/null +++ b/clients/client-application-discovery-service/src/pagination/DescribeExportTasksPaginator.ts @@ -0,0 +1,50 @@ +// smithy-typescript generated code +import { Paginator } from "@smithy/types"; + +import { ApplicationDiscoveryServiceClient } from "../ApplicationDiscoveryServiceClient"; +import { + DescribeExportTasksCommand, + DescribeExportTasksCommandInput, + DescribeExportTasksCommandOutput, +} from "../commands/DescribeExportTasksCommand"; +import { ApplicationDiscoveryServicePaginationConfiguration } from "./Interfaces"; + +/** + * @internal + */ +const makePagedClientRequest = async ( + client: ApplicationDiscoveryServiceClient, + input: DescribeExportTasksCommandInput, + ...args: any +): Promise => { + // @ts-ignore + return await client.send(new DescribeExportTasksCommand(input), ...args); +}; +/** + * @public + */ +export async function* paginateDescribeExportTasks( + config: ApplicationDiscoveryServicePaginationConfiguration, + input: DescribeExportTasksCommandInput, + ...additionalArguments: any +): Paginator { + // ToDo: replace with actual type instead of typeof input.nextToken + let token: typeof input.nextToken | undefined = config.startingToken || undefined; + let hasNext = true; + let page: DescribeExportTasksCommandOutput; + while (hasNext) { + input.nextToken = token; + input["maxResults"] = config.pageSize; + if (config.client instanceof ApplicationDiscoveryServiceClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected ApplicationDiscoveryService | ApplicationDiscoveryServiceClient"); + } + yield page; + const prevToken = token; + token = page.nextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + // @ts-ignore + return undefined; +} diff --git a/clients/client-application-discovery-service/src/pagination/DescribeTagsPaginator.ts b/clients/client-application-discovery-service/src/pagination/DescribeTagsPaginator.ts new file mode 100644 index 000000000000..a72e50207611 --- /dev/null +++ b/clients/client-application-discovery-service/src/pagination/DescribeTagsPaginator.ts @@ -0,0 +1,50 @@ +// smithy-typescript generated code +import { Paginator } from "@smithy/types"; + +import { ApplicationDiscoveryServiceClient } from "../ApplicationDiscoveryServiceClient"; +import { + DescribeTagsCommand, + DescribeTagsCommandInput, + DescribeTagsCommandOutput, +} from "../commands/DescribeTagsCommand"; +import { ApplicationDiscoveryServicePaginationConfiguration } from "./Interfaces"; + +/** + * @internal + */ +const makePagedClientRequest = async ( + client: ApplicationDiscoveryServiceClient, + input: DescribeTagsCommandInput, + ...args: any +): Promise => { + // @ts-ignore + return await client.send(new DescribeTagsCommand(input), ...args); +}; +/** + * @public + */ +export async function* paginateDescribeTags( + config: ApplicationDiscoveryServicePaginationConfiguration, + input: DescribeTagsCommandInput, + ...additionalArguments: any +): Paginator { + // ToDo: replace with actual type instead of typeof input.nextToken + let token: typeof input.nextToken | undefined = config.startingToken || undefined; + let hasNext = true; + let page: DescribeTagsCommandOutput; + while (hasNext) { + input.nextToken = token; + input["maxResults"] = config.pageSize; + if (config.client instanceof ApplicationDiscoveryServiceClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected ApplicationDiscoveryService | ApplicationDiscoveryServiceClient"); + } + yield page; + const prevToken = token; + token = page.nextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + // @ts-ignore + return undefined; +} diff --git a/clients/client-application-discovery-service/src/pagination/ListConfigurationsPaginator.ts b/clients/client-application-discovery-service/src/pagination/ListConfigurationsPaginator.ts new file mode 100644 index 000000000000..7e858f688dcd --- /dev/null +++ b/clients/client-application-discovery-service/src/pagination/ListConfigurationsPaginator.ts @@ -0,0 +1,50 @@ +// smithy-typescript generated code +import { Paginator } from "@smithy/types"; + +import { ApplicationDiscoveryServiceClient } from "../ApplicationDiscoveryServiceClient"; +import { + ListConfigurationsCommand, + ListConfigurationsCommandInput, + ListConfigurationsCommandOutput, +} from "../commands/ListConfigurationsCommand"; +import { ApplicationDiscoveryServicePaginationConfiguration } from "./Interfaces"; + +/** + * @internal + */ +const makePagedClientRequest = async ( + client: ApplicationDiscoveryServiceClient, + input: ListConfigurationsCommandInput, + ...args: any +): Promise => { + // @ts-ignore + return await client.send(new ListConfigurationsCommand(input), ...args); +}; +/** + * @public + */ +export async function* paginateListConfigurations( + config: ApplicationDiscoveryServicePaginationConfiguration, + input: ListConfigurationsCommandInput, + ...additionalArguments: any +): Paginator { + // ToDo: replace with actual type instead of typeof input.nextToken + let token: typeof input.nextToken | undefined = config.startingToken || undefined; + let hasNext = true; + let page: ListConfigurationsCommandOutput; + while (hasNext) { + input.nextToken = token; + input["maxResults"] = config.pageSize; + if (config.client instanceof ApplicationDiscoveryServiceClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected ApplicationDiscoveryService | ApplicationDiscoveryServiceClient"); + } + yield page; + const prevToken = token; + token = page.nextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + // @ts-ignore + return undefined; +} diff --git a/clients/client-application-discovery-service/src/pagination/index.ts b/clients/client-application-discovery-service/src/pagination/index.ts index b81cf49526ae..6c1ec662e3b9 100644 --- a/clients/client-application-discovery-service/src/pagination/index.ts +++ b/clients/client-application-discovery-service/src/pagination/index.ts @@ -1,5 +1,14 @@ +export * from "./DescribeAgentsPaginator"; + export * from "./DescribeContinuousExportsPaginator"; +export * from "./DescribeExportConfigurationsPaginator"; + +export * from "./DescribeExportTasksPaginator"; + export * from "./DescribeImportTasksPaginator"; + +export * from "./DescribeTagsPaginator"; // smithy-typescript generated code export * from "./Interfaces"; +export * from "./ListConfigurationsPaginator"; diff --git a/clients/client-application-discovery-service/src/protocols/Aws_json1_1.ts b/clients/client-application-discovery-service/src/protocols/Aws_json1_1.ts index ab21ebc63e7f..21b06b5a6b7d 100644 --- a/clients/client-application-discovery-service/src/protocols/Aws_json1_1.ts +++ b/clients/client-application-discovery-service/src/protocols/Aws_json1_1.ts @@ -26,6 +26,7 @@ import { AssociateConfigurationItemsToApplicationCommandInput, AssociateConfigurationItemsToApplicationCommandOutput, } from "../commands/AssociateConfigurationItemsToApplicationCommand"; +import { BatchDeleteAgentsCommandInput, BatchDeleteAgentsCommandOutput } from "../commands/BatchDeleteAgentsCommand"; import { BatchDeleteImportDataCommandInput, BatchDeleteImportDataCommandOutput, @@ -35,6 +36,10 @@ import { CreateTagsCommandInput, CreateTagsCommandOutput } from "../commands/Cre import { DeleteApplicationsCommandInput, DeleteApplicationsCommandOutput } from "../commands/DeleteApplicationsCommand"; import { DeleteTagsCommandInput, DeleteTagsCommandOutput } from "../commands/DeleteTagsCommand"; import { DescribeAgentsCommandInput, DescribeAgentsCommandOutput } from "../commands/DescribeAgentsCommand"; +import { + DescribeBatchDeleteConfigurationTaskCommandInput, + DescribeBatchDeleteConfigurationTaskCommandOutput, +} from "../commands/DescribeBatchDeleteConfigurationTaskCommand"; import { DescribeConfigurationsCommandInput, DescribeConfigurationsCommandOutput, @@ -73,6 +78,10 @@ import { ListServerNeighborsCommandInput, ListServerNeighborsCommandOutput, } from "../commands/ListServerNeighborsCommand"; +import { + StartBatchDeleteConfigurationTaskCommandInput, + StartBatchDeleteConfigurationTaskCommandOutput, +} from "../commands/StartBatchDeleteConfigurationTaskCommand"; import { StartContinuousExportCommandInput, StartContinuousExportCommandOutput, @@ -96,15 +105,20 @@ import { ApplicationDiscoveryServiceServiceException as __BaseException } from " import { AssociateConfigurationItemsToApplicationRequest, AuthorizationErrorException, + BatchDeleteAgentsRequest, + BatchDeleteConfigurationTask, BatchDeleteImportDataRequest, ConfigurationTag, ConflictErrorException, ContinuousExportDescription, CreateApplicationRequest, CreateTagsRequest, + DeleteAgent, DeleteApplicationsRequest, DeleteTagsRequest, DescribeAgentsRequest, + DescribeBatchDeleteConfigurationTaskRequest, + DescribeBatchDeleteConfigurationTaskResponse, DescribeConfigurationsRequest, DescribeContinuousExportsRequest, DescribeContinuousExportsResponse, @@ -129,6 +143,7 @@ import { ImportTaskFilter, InvalidParameterException, InvalidParameterValueException, + LimitExceededException, ListConfigurationsRequest, ListServerNeighborsRequest, OperationNotPermittedException, @@ -137,6 +152,7 @@ import { ResourceInUseException, ResourceNotFoundException, ServerInternalErrorException, + StartBatchDeleteConfigurationTaskRequest, StartContinuousExportRequest, StartContinuousExportResponse, StartDataCollectionByAgentIdsRequest, @@ -165,6 +181,19 @@ export const se_AssociateConfigurationItemsToApplicationCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_1BatchDeleteAgentsCommand + */ +export const se_BatchDeleteAgentsCommand = async ( + input: BatchDeleteAgentsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("BatchDeleteAgents"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_1BatchDeleteImportDataCommand */ @@ -243,6 +272,19 @@ export const se_DescribeAgentsCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_1DescribeBatchDeleteConfigurationTaskCommand + */ +export const se_DescribeBatchDeleteConfigurationTaskCommand = async ( + input: DescribeBatchDeleteConfigurationTaskCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DescribeBatchDeleteConfigurationTask"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_1DescribeConfigurationsCommand */ @@ -385,6 +427,19 @@ export const se_ListServerNeighborsCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_1StartBatchDeleteConfigurationTaskCommand + */ +export const se_StartBatchDeleteConfigurationTaskCommand = async ( + input: StartBatchDeleteConfigurationTaskCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("StartBatchDeleteConfigurationTask"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_1StartContinuousExportCommand */ @@ -534,6 +589,61 @@ const de_AssociateConfigurationItemsToApplicationCommandError = async ( } }; +/** + * deserializeAws_json1_1BatchDeleteAgentsCommand + */ +export const de_BatchDeleteAgentsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_BatchDeleteAgentsCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: BatchDeleteAgentsCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1BatchDeleteAgentsCommandError + */ +const de_BatchDeleteAgentsCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AuthorizationErrorException": + case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException": + throw await de_AuthorizationErrorExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "InvalidParameterValueException": + case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException": + throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "ServerInternalErrorException": + case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException": + throw await de_ServerInternalErrorExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + /** * deserializeAws_json1_1BatchDeleteImportDataCommand */ @@ -888,6 +998,61 @@ const de_DescribeAgentsCommandError = async ( } }; +/** + * deserializeAws_json1_1DescribeBatchDeleteConfigurationTaskCommand + */ +export const de_DescribeBatchDeleteConfigurationTaskCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_DescribeBatchDeleteConfigurationTaskCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = de_DescribeBatchDeleteConfigurationTaskResponse(data, context); + const response: DescribeBatchDeleteConfigurationTaskCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1DescribeBatchDeleteConfigurationTaskCommandError + */ +const de_DescribeBatchDeleteConfigurationTaskCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AuthorizationErrorException": + case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException": + throw await de_AuthorizationErrorExceptionRes(parsedOutput, context); + case "HomeRegionNotSetException": + case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException": + throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context); + case "InvalidParameterValueException": + case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException": + throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "ServerInternalErrorException": + case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException": + throw await de_ServerInternalErrorExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + /** * deserializeAws_json1_1DescribeConfigurationsCommand */ @@ -1544,6 +1709,67 @@ const de_ListServerNeighborsCommandError = async ( } }; +/** + * deserializeAws_json1_1StartBatchDeleteConfigurationTaskCommand + */ +export const de_StartBatchDeleteConfigurationTaskCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_StartBatchDeleteConfigurationTaskCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: StartBatchDeleteConfigurationTaskCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1StartBatchDeleteConfigurationTaskCommandError + */ +const de_StartBatchDeleteConfigurationTaskCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AuthorizationErrorException": + case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException": + throw await de_AuthorizationErrorExceptionRes(parsedOutput, context); + case "HomeRegionNotSetException": + case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException": + throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context); + case "InvalidParameterValueException": + case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException": + throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "LimitExceededException": + case "com.amazonaws.applicationdiscoveryservice#LimitExceededException": + throw await de_LimitExceededExceptionRes(parsedOutput, context); + case "OperationNotPermittedException": + case "com.amazonaws.applicationdiscoveryservice#OperationNotPermittedException": + throw await de_OperationNotPermittedExceptionRes(parsedOutput, context); + case "ServerInternalErrorException": + case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException": + throw await de_ServerInternalErrorExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + /** * deserializeAws_json1_1StartContinuousExportCommand */ @@ -2054,6 +2280,22 @@ const de_InvalidParameterValueExceptionRes = async ( return __decorateServiceException(exception, body); }; +/** + * deserializeAws_json1_1LimitExceededExceptionRes + */ +const de_LimitExceededExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const body = parsedOutput.body; + const deserialized: any = _json(body); + const exception = new LimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return __decorateServiceException(exception, body); +}; + /** * deserializeAws_json1_1OperationNotPermittedExceptionRes */ @@ -2124,6 +2366,8 @@ const de_ServerInternalErrorExceptionRes = async ( // se_AssociateConfigurationItemsToApplicationRequest omitted. +// se_BatchDeleteAgentsRequest omitted. + // se_BatchDeleteImportDataRequest omitted. // se_ConfigurationIdList omitted. @@ -2134,12 +2378,18 @@ const de_ServerInternalErrorExceptionRes = async ( // se_CreateTagsRequest omitted. +// se_DeleteAgent omitted. + +// se_DeleteAgents omitted. + // se_DeleteApplicationsRequest omitted. // se_DeleteTagsRequest omitted. // se_DescribeAgentsRequest omitted. +// se_DescribeBatchDeleteConfigurationTaskRequest omitted. + // se_DescribeConfigurationsRequest omitted. // se_DescribeContinuousExportsRequest omitted. @@ -2218,6 +2468,8 @@ const se_ExportPreferences = (input: ExportPreferences, context: __SerdeContext) // se_ReservedInstanceOptions omitted. +// se_StartBatchDeleteConfigurationTaskRequest omitted. + // se_StartContinuousExportRequest omitted. // se_StartDataCollectionByAgentIdsRequest omitted. @@ -2288,6 +2540,29 @@ const se_UsageMetricBasis = (input: UsageMetricBasis, context: __SerdeContext): // de_AuthorizationErrorException omitted. +// de_BatchDeleteAgentError omitted. + +// de_BatchDeleteAgentErrors omitted. + +// de_BatchDeleteAgentsResponse omitted. + +/** + * deserializeAws_json1_1BatchDeleteConfigurationTask + */ +const de_BatchDeleteConfigurationTask = (output: any, context: __SerdeContext): BatchDeleteConfigurationTask => { + return take(output, { + configurationType: __expectString, + deletedConfigurations: _json, + deletionWarnings: _json, + endTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + failedConfigurations: _json, + requestedConfigurations: _json, + startTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + status: __expectString, + taskId: __expectString, + }) as any; +}; + // de_BatchDeleteImportDataError omitted. // de_BatchDeleteImportDataErrorList omitted. @@ -2296,6 +2571,8 @@ const se_UsageMetricBasis = (input: UsageMetricBasis, context: __SerdeContext): // de_Configuration omitted. +// de_ConfigurationIdList omitted. + // de_Configurations omitted. /** @@ -2369,8 +2646,24 @@ const de_ContinuousExportDescriptions = (output: any, context: __SerdeContext): // de_DeleteTagsResponse omitted. +// de_DeletionWarning omitted. + +// de_DeletionWarningsList omitted. + // de_DescribeAgentsResponse omitted. +/** + * deserializeAws_json1_1DescribeBatchDeleteConfigurationTaskResponse + */ +const de_DescribeBatchDeleteConfigurationTaskResponse = ( + output: any, + context: __SerdeContext +): DescribeBatchDeleteConfigurationTaskResponse => { + return take(output, { + task: (_: any) => de_BatchDeleteConfigurationTask(_, context), + }) as any; +}; + // de_DescribeConfigurationsAttribute omitted. // de_DescribeConfigurationsAttributes omitted. @@ -2465,6 +2758,10 @@ const de_ExportsInfo = (output: any, context: __SerdeContext): ExportInfo[] => { return retVal; }; +// de_FailedConfiguration omitted. + +// de_FailedConfigurationList omitted. + // de_GetDiscoverySummaryResponse omitted. // de_HomeRegionNotSetException omitted. @@ -2506,6 +2803,8 @@ const de_ImportTaskList = (output: any, context: __SerdeContext): ImportTask[] = // de_InvalidParameterValueException omitted. +// de_LimitExceededException omitted. + // de_ListConfigurationsResponse omitted. // de_ListServerNeighborsResponse omitted. @@ -2524,6 +2823,8 @@ const de_ImportTaskList = (output: any, context: __SerdeContext): ImportTask[] = // de_ServerInternalErrorException omitted. +// de_StartBatchDeleteConfigurationTaskResponse omitted. + /** * deserializeAws_json1_1StartContinuousExportResponse */ diff --git a/codegen/sdk-codegen/aws-models/application-discovery-service.json b/codegen/sdk-codegen/aws-models/application-discovery-service.json index d02dea900129..79afdc4d81d9 100644 --- a/codegen/sdk-codegen/aws-models/application-discovery-service.json +++ b/codegen/sdk-codegen/aws-models/application-discovery-service.json @@ -36,6 +36,9 @@ { "target": "com.amazonaws.applicationdiscoveryservice#AssociateConfigurationItemsToApplication" }, + { + "target": "com.amazonaws.applicationdiscoveryservice#BatchDeleteAgents" + }, { "target": "com.amazonaws.applicationdiscoveryservice#BatchDeleteImportData" }, @@ -54,6 +57,9 @@ { "target": "com.amazonaws.applicationdiscoveryservice#DescribeAgents" }, + { + "target": "com.amazonaws.applicationdiscoveryservice#DescribeBatchDeleteConfigurationTask" + }, { "target": "com.amazonaws.applicationdiscoveryservice#DescribeConfigurations" }, @@ -87,6 +93,9 @@ { "target": "com.amazonaws.applicationdiscoveryservice#ListServerNeighbors" }, + { + "target": "com.amazonaws.applicationdiscoveryservice#StartBatchDeleteConfigurationTask" + }, { "target": "com.amazonaws.applicationdiscoveryservice#StartContinuousExport" }, @@ -1133,6 +1142,193 @@ "smithy.api#httpError": 403 } }, + "com.amazonaws.applicationdiscoveryservice#BatchDeleteAgentError": { + "type": "structure", + "members": { + "agentId": { + "target": "com.amazonaws.applicationdiscoveryservice#AgentId", + "traits": { + "smithy.api#documentation": "

\n The ID of the agent or data collector to delete.\n

", + "smithy.api#required": {} + } + }, + "errorMessage": { + "target": "com.amazonaws.applicationdiscoveryservice#String", + "traits": { + "smithy.api#documentation": "

\n The description of the error that occurred for the delete failed agent.\n

", + "smithy.api#required": {} + } + }, + "errorCode": { + "target": "com.amazonaws.applicationdiscoveryservice#DeleteAgentErrorCode", + "traits": { + "smithy.api#documentation": "

\n The type of error that occurred for the delete failed agent. \n Valid status are: AGENT_IN_USE | NOT_FOUND | INTERNAL_SERVER_ERROR.\n

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

\n An object representing the agent or data collector that failed to delete, each containing agentId, \n errorMessage, and errorCode. \n

" + } + }, + "com.amazonaws.applicationdiscoveryservice#BatchDeleteAgentErrors": { + "type": "list", + "member": { + "target": "com.amazonaws.applicationdiscoveryservice#BatchDeleteAgentError" + } + }, + "com.amazonaws.applicationdiscoveryservice#BatchDeleteAgents": { + "type": "operation", + "input": { + "target": "com.amazonaws.applicationdiscoveryservice#BatchDeleteAgentsRequest" + }, + "output": { + "target": "com.amazonaws.applicationdiscoveryservice#BatchDeleteAgentsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException" + }, + { + "target": "com.amazonaws.applicationdiscoveryservice#InvalidParameterException" + }, + { + "target": "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException" + }, + { + "target": "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException" + } + ], + "traits": { + "smithy.api#documentation": "

\n Deletes one or more agents or collectors as specified by ID. Deleting an agent or collector does not \n delete the previously discovered data. \n To delete the data collected, use StartBatchDeleteConfigurationTask.\n \n

" + } + }, + "com.amazonaws.applicationdiscoveryservice#BatchDeleteAgentsRequest": { + "type": "structure", + "members": { + "deleteAgents": { + "target": "com.amazonaws.applicationdiscoveryservice#DeleteAgents", + "traits": { + "smithy.api#documentation": "

\n The list of agents to delete.\n

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.applicationdiscoveryservice#BatchDeleteAgentsResponse": { + "type": "structure", + "members": { + "errors": { + "target": "com.amazonaws.applicationdiscoveryservice#BatchDeleteAgentErrors", + "traits": { + "smithy.api#documentation": "

\n A list of agent IDs that failed to delete during the deletion task, each paired with an error message.\n

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.applicationdiscoveryservice#BatchDeleteConfigurationTask": { + "type": "structure", + "members": { + "taskId": { + "target": "com.amazonaws.applicationdiscoveryservice#UUID", + "traits": { + "smithy.api#documentation": "

\n The deletion task's unique identifier. \n

" + } + }, + "status": { + "target": "com.amazonaws.applicationdiscoveryservice#BatchDeleteConfigurationTaskStatus", + "traits": { + "smithy.api#documentation": "

\n The current execution status of the deletion task. \n Valid status are: INITIALIZING | VALIDATING | DELETING | COMPLETED | FAILED.\n

" + } + }, + "startTime": { + "target": "com.amazonaws.applicationdiscoveryservice#TimeStamp", + "traits": { + "smithy.api#documentation": "

\n An epoch seconds timestamp (UTC) of when the deletion task was started.\n

" + } + }, + "endTime": { + "target": "com.amazonaws.applicationdiscoveryservice#TimeStamp", + "traits": { + "smithy.api#documentation": "

\n An epoch seconds timestamp (UTC) of when the deletion task was completed or failed.\n

" + } + }, + "configurationType": { + "target": "com.amazonaws.applicationdiscoveryservice#DeletionConfigurationItemType", + "traits": { + "smithy.api#documentation": "

\n The type of configuration item to delete. Supported types are: SERVER.\n

" + } + }, + "requestedConfigurations": { + "target": "com.amazonaws.applicationdiscoveryservice#ConfigurationIdList", + "traits": { + "smithy.api#documentation": "

\n The list of configuration IDs that were originally requested to be deleted by the deletion task.\n

" + } + }, + "deletedConfigurations": { + "target": "com.amazonaws.applicationdiscoveryservice#ConfigurationIdList", + "traits": { + "smithy.api#documentation": "

\n The list of configuration IDs that were successfully deleted by the deletion task.\n

" + } + }, + "failedConfigurations": { + "target": "com.amazonaws.applicationdiscoveryservice#FailedConfigurationList", + "traits": { + "smithy.api#documentation": "

\n A list of configuration IDs that failed to delete during the deletion task, \n each paired with an error message.\n

" + } + }, + "deletionWarnings": { + "target": "com.amazonaws.applicationdiscoveryservice#DeletionWarningsList", + "traits": { + "smithy.api#documentation": "

\n A list of configuration IDs that produced warnings regarding their deletion, \n paired with a warning message.\n

" + } + } + }, + "traits": { + "smithy.api#documentation": "

\n A metadata object that represents the deletion task being executed.\n

" + } + }, + "com.amazonaws.applicationdiscoveryservice#BatchDeleteConfigurationTaskStatus": { + "type": "enum", + "members": { + "INITIALIZING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "INITIALIZING" + } + }, + "VALIDATING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "VALIDATING" + } + }, + "DELETING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DELETING" + } + }, + "COMPLETED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "COMPLETED" + } + }, + "FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "FAILED" + } + } + } + }, "com.amazonaws.applicationdiscoveryservice#BatchDeleteImportData": { "type": "operation", "input": { @@ -1229,6 +1425,13 @@ "smithy.api#documentation": "

The IDs for the import tasks that you want to delete.

", "smithy.api#required": {} } + }, + "deleteHistory": { + "target": "com.amazonaws.applicationdiscoveryservice#Boolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

\n Set to true to remove the deleted import task from \n DescribeImportTasks.\n

" + } } }, "traits": { @@ -1926,6 +2129,63 @@ } } }, + "com.amazonaws.applicationdiscoveryservice#DeleteAgent": { + "type": "structure", + "members": { + "agentId": { + "target": "com.amazonaws.applicationdiscoveryservice#AgentId", + "traits": { + "smithy.api#documentation": "

\n The ID of the agent or data collector to delete.\n

", + "smithy.api#required": {} + } + }, + "force": { + "target": "com.amazonaws.applicationdiscoveryservice#Boolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

\n Optional flag used to force delete an agent or data collector. It is needed to delete any agent in \n HEALTHY/UNHEALTHY/RUNNING status. Note that deleting an agent that is actively reporting health causes it \n to be re-registered with a different agent ID after data collector re-connects with Amazon Web Services.\n

" + } + } + }, + "traits": { + "smithy.api#documentation": "

\n An object representing the agent or data collector to be deleted along with \n the optional configurations for error handling.\n

" + } + }, + "com.amazonaws.applicationdiscoveryservice#DeleteAgentErrorCode": { + "type": "enum", + "members": { + "NOT_FOUND": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "NOT_FOUND" + } + }, + "INTERNAL_SERVER_ERROR": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "INTERNAL_SERVER_ERROR" + } + }, + "AGENT_IN_USE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AGENT_IN_USE" + } + } + } + }, + "com.amazonaws.applicationdiscoveryservice#DeleteAgents": { + "type": "list", + "member": { + "target": "com.amazonaws.applicationdiscoveryservice#DeleteAgent" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 50 + } + } + }, "com.amazonaws.applicationdiscoveryservice#DeleteApplications": { "type": "operation", "input": { @@ -2037,6 +2297,50 @@ "smithy.api#output": {} } }, + "com.amazonaws.applicationdiscoveryservice#DeletionConfigurationItemType": { + "type": "enum", + "members": { + "SERVER": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SERVER" + } + } + } + }, + "com.amazonaws.applicationdiscoveryservice#DeletionWarning": { + "type": "structure", + "members": { + "configurationId": { + "target": "com.amazonaws.applicationdiscoveryservice#ConfigurationId", + "traits": { + "smithy.api#documentation": "

\n The unique identifier of the configuration that produced a warning.\n

" + } + }, + "warningCode": { + "target": "com.amazonaws.applicationdiscoveryservice#WarningCode", + "traits": { + "smithy.api#default": 0, + "smithy.api#documentation": "

\n The integer warning code associated with the warning message.\n

" + } + }, + "warningText": { + "target": "com.amazonaws.applicationdiscoveryservice#WarningText", + "traits": { + "smithy.api#documentation": "

\n A descriptive message of the warning the associated configuration ID produced. \n

" + } + } + }, + "traits": { + "smithy.api#documentation": "

\n A configuration ID paired with a warning message.\n

" + } + }, + "com.amazonaws.applicationdiscoveryservice#DeletionWarningsList": { + "type": "list", + "member": { + "target": "com.amazonaws.applicationdiscoveryservice#DeletionWarning" + } + }, "com.amazonaws.applicationdiscoveryservice#DescribeAgents": { "type": "operation", "input": { @@ -2063,7 +2367,13 @@ } ], "traits": { - "smithy.api#documentation": "

Lists agents or collectors as specified by ID or other filters. All agents/collectors\n associated with your user can be listed if you call DescribeAgents as is\n without passing any parameters.

" + "smithy.api#documentation": "

Lists agents or collectors as specified by ID or other filters. All agents/collectors\n associated with your user can be listed if you call DescribeAgents as is\n without passing any parameters.

", + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "items": "agentsInfo", + "pageSize": "maxResults" + } } }, "com.amazonaws.applicationdiscoveryservice#DescribeAgentsRequest": { @@ -2119,6 +2429,61 @@ "smithy.api#output": {} } }, + "com.amazonaws.applicationdiscoveryservice#DescribeBatchDeleteConfigurationTask": { + "type": "operation", + "input": { + "target": "com.amazonaws.applicationdiscoveryservice#DescribeBatchDeleteConfigurationTaskRequest" + }, + "output": { + "target": "com.amazonaws.applicationdiscoveryservice#DescribeBatchDeleteConfigurationTaskResponse" + }, + "errors": [ + { + "target": "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException" + }, + { + "target": "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException" + }, + { + "target": "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException" + }, + { + "target": "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException" + } + ], + "traits": { + "smithy.api#documentation": "

\n Takes a unique deletion task identifier as input and returns metadata about a configuration deletion task.

" + } + }, + "com.amazonaws.applicationdiscoveryservice#DescribeBatchDeleteConfigurationTaskRequest": { + "type": "structure", + "members": { + "taskId": { + "target": "com.amazonaws.applicationdiscoveryservice#UUID", + "traits": { + "smithy.api#documentation": "

\n The ID of the task to delete.\n

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.applicationdiscoveryservice#DescribeBatchDeleteConfigurationTaskResponse": { + "type": "structure", + "members": { + "task": { + "target": "com.amazonaws.applicationdiscoveryservice#BatchDeleteConfigurationTask", + "traits": { + "smithy.api#documentation": "

\n The BatchDeleteConfigurationTask that represents the deletion task being executed.\n

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.applicationdiscoveryservice#DescribeConfigurations": { "type": "operation", "input": { @@ -2228,6 +2593,7 @@ "smithy.api#paginated": { "inputToken": "nextToken", "outputToken": "nextToken", + "items": "descriptions", "pageSize": "maxResults" } } @@ -2317,7 +2683,13 @@ ], "traits": { "smithy.api#deprecated": {}, - "smithy.api#documentation": "

\n DescribeExportConfigurations is deprecated. Use DescribeExportTasks, instead.

" + "smithy.api#documentation": "

\n DescribeExportConfigurations is deprecated. Use DescribeExportTasks, instead.

", + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "items": "exportsInfo", + "pageSize": "maxResults" + } } }, "com.amazonaws.applicationdiscoveryservice#DescribeExportConfigurationsRequest": { @@ -2393,7 +2765,13 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieve status of one or more export tasks. You can retrieve the status of up to 100\n export tasks.

" + "smithy.api#documentation": "

Retrieve status of one or more export tasks. You can retrieve the status of up to 100\n export tasks.

", + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "items": "exportsInfo", + "pageSize": "maxResults" + } } }, "com.amazonaws.applicationdiscoveryservice#DescribeExportTasksRequest": { @@ -2479,6 +2857,7 @@ "smithy.api#paginated": { "inputToken": "nextToken", "outputToken": "nextToken", + "items": "tasks", "pageSize": "maxResults" } } @@ -2573,7 +2952,13 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieves a list of configuration items that have tags as specified by the key-value\n pairs, name and value, passed to the optional parameter filters.

\n

There are three valid tag filter names:

\n
    \n
  • \n

    tagKey

    \n
  • \n
  • \n

    tagValue

    \n
  • \n
  • \n

    configurationId

    \n
  • \n
\n

Also, all configuration items associated with your user that have tags can be\n listed if you call DescribeTags as is without passing any parameters.

" + "smithy.api#documentation": "

Retrieves a list of configuration items that have tags as specified by the key-value\n pairs, name and value, passed to the optional parameter filters.

\n

There are three valid tag filter names:

\n
    \n
  • \n

    tagKey

    \n
  • \n
  • \n

    tagValue

    \n
  • \n
  • \n

    configurationId

    \n
  • \n
\n

Also, all configuration items associated with your user that have tags can be\n listed if you call DescribeTags as is without passing any parameters.

", + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "items": "tags", + "pageSize": "maxResults" + } } }, "com.amazonaws.applicationdiscoveryservice#DescribeTagsRequest": { @@ -2742,6 +3127,15 @@ "smithy.api#documentation": "

\n Indicates that the exported data must include EC2 instance type matches for on-premises servers \n that are discovered through Amazon Web Services Application Discovery Service.\n

" } }, + "com.amazonaws.applicationdiscoveryservice#ErrorMessage": { + "type": "string" + }, + "com.amazonaws.applicationdiscoveryservice#ErrorStatusCode": { + "type": "integer", + "traits": { + "smithy.api#default": 0 + } + }, "com.amazonaws.applicationdiscoveryservice#ExcludedInstanceTypes": { "type": "list", "member": { @@ -2969,6 +3363,39 @@ "target": "com.amazonaws.applicationdiscoveryservice#ExportInfo" } }, + "com.amazonaws.applicationdiscoveryservice#FailedConfiguration": { + "type": "structure", + "members": { + "configurationId": { + "target": "com.amazonaws.applicationdiscoveryservice#ConfigurationId", + "traits": { + "smithy.api#documentation": "

\n The unique identifier of the configuration the failed to delete.\n

" + } + }, + "errorStatusCode": { + "target": "com.amazonaws.applicationdiscoveryservice#ErrorStatusCode", + "traits": { + "smithy.api#default": 0, + "smithy.api#documentation": "

\n The integer error code associated with the error message.\n

" + } + }, + "errorMessage": { + "target": "com.amazonaws.applicationdiscoveryservice#ErrorMessage", + "traits": { + "smithy.api#documentation": "

\n A descriptive message indicating why the associated configuration failed to delete.\n

" + } + } + }, + "traits": { + "smithy.api#documentation": "

\n A configuration ID paired with an error message.\n

" + } + }, + "com.amazonaws.applicationdiscoveryservice#FailedConfigurationList": { + "type": "list", + "member": { + "target": "com.amazonaws.applicationdiscoveryservice#FailedConfiguration" + } + }, "com.amazonaws.applicationdiscoveryservice#Filter": { "type": "structure", "members": { @@ -3435,6 +3862,19 @@ "smithy.api#httpError": 400 } }, + "com.amazonaws.applicationdiscoveryservice#LimitExceededException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.applicationdiscoveryservice#Message" + } + }, + "traits": { + "smithy.api#documentation": "

\n The limit of 200 configuration IDs per request has been exceeded.\n

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, "com.amazonaws.applicationdiscoveryservice#ListConfigurations": { "type": "operation", "input": { @@ -3464,7 +3904,13 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieves a list of configuration items as specified by the value passed to the\n required parameter configurationType. Optional filtering may be applied to refine\n search results.

" + "smithy.api#documentation": "

Retrieves a list of configuration items as specified by the value passed to the\n required parameter configurationType. Optional filtering may be applied to refine\n search results.

", + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "items": "configurations", + "pageSize": "maxResults" + } } }, "com.amazonaws.applicationdiscoveryservice#ListConfigurationsRequest": { @@ -3858,6 +4304,74 @@ "smithy.api#httpError": 500 } }, + "com.amazonaws.applicationdiscoveryservice#StartBatchDeleteConfigurationTask": { + "type": "operation", + "input": { + "target": "com.amazonaws.applicationdiscoveryservice#StartBatchDeleteConfigurationTaskRequest" + }, + "output": { + "target": "com.amazonaws.applicationdiscoveryservice#StartBatchDeleteConfigurationTaskResponse" + }, + "errors": [ + { + "target": "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException" + }, + { + "target": "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException" + }, + { + "target": "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException" + }, + { + "target": "com.amazonaws.applicationdiscoveryservice#LimitExceededException" + }, + { + "target": "com.amazonaws.applicationdiscoveryservice#OperationNotPermittedException" + }, + { + "target": "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException" + } + ], + "traits": { + "smithy.api#documentation": "

\n Takes a list of configurationId as input and starts an asynchronous deletion \n task to remove the configurationItems. Returns a unique deletion task identifier.\n

" + } + }, + "com.amazonaws.applicationdiscoveryservice#StartBatchDeleteConfigurationTaskRequest": { + "type": "structure", + "members": { + "configurationType": { + "target": "com.amazonaws.applicationdiscoveryservice#DeletionConfigurationItemType", + "traits": { + "smithy.api#documentation": "

\n The type of configuration item to delete. Supported types are: SERVER.\n

", + "smithy.api#required": {} + } + }, + "configurationIds": { + "target": "com.amazonaws.applicationdiscoveryservice#ConfigurationIdList", + "traits": { + "smithy.api#documentation": "

\n The list of configuration IDs that will be deleted by the task.\n

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.applicationdiscoveryservice#StartBatchDeleteConfigurationTaskResponse": { + "type": "structure", + "members": { + "taskId": { + "target": "com.amazonaws.applicationdiscoveryservice#UUID", + "traits": { + "smithy.api#documentation": "

\n The unique identifier associated with the newly started deletion task.\n

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.applicationdiscoveryservice#StartContinuousExport": { "type": "operation", "input": { @@ -4423,6 +4937,12 @@ } } }, + "com.amazonaws.applicationdiscoveryservice#UUID": { + "type": "string", + "traits": { + "smithy.api#pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" + } + }, "com.amazonaws.applicationdiscoveryservice#UpdateApplication": { "type": "operation", "input": { @@ -4531,6 +5051,15 @@ "smithy.api#pattern": "^[a-z]{2}-[a-z\\-]+-[0-9]+$" } }, + "com.amazonaws.applicationdiscoveryservice#WarningCode": { + "type": "integer", + "traits": { + "smithy.api#default": 0 + } + }, + "com.amazonaws.applicationdiscoveryservice#WarningText": { + "type": "string" + }, "com.amazonaws.applicationdiscoveryservice#orderString": { "type": "enum", "members": {