+ * 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
.
+ *
+ *
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+ * 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+ * 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+ * 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.
+ *
+ * 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.
+ *
+ * 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+ * 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\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
\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
\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.
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.
\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
\n DescribeExportConfigurations
is deprecated. Use DescribeExportTasks, instead.
\n DescribeExportConfigurations
is deprecated. Use DescribeExportTasks, instead.
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
.
There are three valid tag filter names:
\ntagKey
\ntagValue
\nconfigurationId
\nAlso, all configuration items associated with your user that have tags can be\n listed if you call DescribeTags
as is without passing any parameters.
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
.
There are three valid tag filter names:
\ntagKey
\ntagValue
\nconfigurationId
\nAlso, all configuration items associated with your user that have tags can be\n listed if you call DescribeTags
as is without passing any parameters.
\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.
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.
\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": {