diff --git a/clients/client-database-migration-service/src/DatabaseMigrationService.ts b/clients/client-database-migration-service/src/DatabaseMigrationService.ts index 8d05d26487da..d25208a3f422 100644 --- a/clients/client-database-migration-service/src/DatabaseMigrationService.ts +++ b/clients/client-database-migration-service/src/DatabaseMigrationService.ts @@ -26,6 +26,11 @@ import { CreateEventSubscriptionCommandInput, CreateEventSubscriptionCommandOutput, } from "./commands/CreateEventSubscriptionCommand"; +import { + CreateFleetAdvisorCollectorCommand, + CreateFleetAdvisorCollectorCommandInput, + CreateFleetAdvisorCollectorCommandOutput, +} from "./commands/CreateFleetAdvisorCollectorCommand"; import { CreateReplicationInstanceCommand, CreateReplicationInstanceCommandInput, @@ -61,6 +66,16 @@ import { DeleteEventSubscriptionCommandInput, DeleteEventSubscriptionCommandOutput, } from "./commands/DeleteEventSubscriptionCommand"; +import { + DeleteFleetAdvisorCollectorCommand, + DeleteFleetAdvisorCollectorCommandInput, + DeleteFleetAdvisorCollectorCommandOutput, +} from "./commands/DeleteFleetAdvisorCollectorCommand"; +import { + DeleteFleetAdvisorDatabasesCommand, + DeleteFleetAdvisorDatabasesCommandInput, + DeleteFleetAdvisorDatabasesCommandOutput, +} from "./commands/DeleteFleetAdvisorDatabasesCommand"; import { DeleteReplicationInstanceCommand, DeleteReplicationInstanceCommandInput, @@ -131,6 +146,31 @@ import { DescribeEventSubscriptionsCommandInput, DescribeEventSubscriptionsCommandOutput, } from "./commands/DescribeEventSubscriptionsCommand"; +import { + DescribeFleetAdvisorCollectorsCommand, + DescribeFleetAdvisorCollectorsCommandInput, + DescribeFleetAdvisorCollectorsCommandOutput, +} from "./commands/DescribeFleetAdvisorCollectorsCommand"; +import { + DescribeFleetAdvisorDatabasesCommand, + DescribeFleetAdvisorDatabasesCommandInput, + DescribeFleetAdvisorDatabasesCommandOutput, +} from "./commands/DescribeFleetAdvisorDatabasesCommand"; +import { + DescribeFleetAdvisorLsaAnalysisCommand, + DescribeFleetAdvisorLsaAnalysisCommandInput, + DescribeFleetAdvisorLsaAnalysisCommandOutput, +} from "./commands/DescribeFleetAdvisorLsaAnalysisCommand"; +import { + DescribeFleetAdvisorSchemaObjectSummaryCommand, + DescribeFleetAdvisorSchemaObjectSummaryCommandInput, + DescribeFleetAdvisorSchemaObjectSummaryCommandOutput, +} from "./commands/DescribeFleetAdvisorSchemaObjectSummaryCommand"; +import { + DescribeFleetAdvisorSchemasCommand, + DescribeFleetAdvisorSchemasCommandInput, + DescribeFleetAdvisorSchemasCommandOutput, +} from "./commands/DescribeFleetAdvisorSchemasCommand"; import { DescribeOrderableReplicationInstancesCommand, DescribeOrderableReplicationInstancesCommandInput, @@ -251,6 +291,11 @@ import { RemoveTagsFromResourceCommandInput, RemoveTagsFromResourceCommandOutput, } from "./commands/RemoveTagsFromResourceCommand"; +import { + RunFleetAdvisorLsaAnalysisCommand, + RunFleetAdvisorLsaAnalysisCommandInput, + RunFleetAdvisorLsaAnalysisCommandOutput, +} from "./commands/RunFleetAdvisorLsaAnalysisCommand"; import { StartReplicationTaskAssessmentCommand, StartReplicationTaskAssessmentCommandInput, @@ -481,6 +526,38 @@ export class DatabaseMigrationService extends DatabaseMigrationServiceClient { } } + /** + *

Creates a Fleet Advisor collector using the specified parameters.

+ */ + public createFleetAdvisorCollector( + args: CreateFleetAdvisorCollectorCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public createFleetAdvisorCollector( + args: CreateFleetAdvisorCollectorCommandInput, + cb: (err: any, data?: CreateFleetAdvisorCollectorCommandOutput) => void + ): void; + public createFleetAdvisorCollector( + args: CreateFleetAdvisorCollectorCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CreateFleetAdvisorCollectorCommandOutput) => void + ): void; + public createFleetAdvisorCollector( + args: CreateFleetAdvisorCollectorCommandInput, + optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateFleetAdvisorCollectorCommandOutput) => void), + cb?: (err: any, data?: CreateFleetAdvisorCollectorCommandOutput) => void + ): Promise | void { + const command = new CreateFleetAdvisorCollectorCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + /** *

Creates the replication instance using the specified parameters.

*

DMS requires that your account have certain roles with appropriate permissions @@ -717,6 +794,70 @@ export class DatabaseMigrationService extends DatabaseMigrationServiceClient { } } + /** + *

Deletes the specified Fleet Advisor collector.

+ */ + public deleteFleetAdvisorCollector( + args: DeleteFleetAdvisorCollectorCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public deleteFleetAdvisorCollector( + args: DeleteFleetAdvisorCollectorCommandInput, + cb: (err: any, data?: DeleteFleetAdvisorCollectorCommandOutput) => void + ): void; + public deleteFleetAdvisorCollector( + args: DeleteFleetAdvisorCollectorCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DeleteFleetAdvisorCollectorCommandOutput) => void + ): void; + public deleteFleetAdvisorCollector( + args: DeleteFleetAdvisorCollectorCommandInput, + optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteFleetAdvisorCollectorCommandOutput) => void), + cb?: (err: any, data?: DeleteFleetAdvisorCollectorCommandOutput) => void + ): Promise | void { + const command = new DeleteFleetAdvisorCollectorCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + *

Deletes the specified Fleet Advisor collector databases.

+ */ + public deleteFleetAdvisorDatabases( + args: DeleteFleetAdvisorDatabasesCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public deleteFleetAdvisorDatabases( + args: DeleteFleetAdvisorDatabasesCommandInput, + cb: (err: any, data?: DeleteFleetAdvisorDatabasesCommandOutput) => void + ): void; + public deleteFleetAdvisorDatabases( + args: DeleteFleetAdvisorDatabasesCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DeleteFleetAdvisorDatabasesCommandOutput) => void + ): void; + public deleteFleetAdvisorDatabases( + args: DeleteFleetAdvisorDatabasesCommandInput, + optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteFleetAdvisorDatabasesCommandOutput) => void), + cb?: (err: any, data?: DeleteFleetAdvisorDatabasesCommandOutput) => void + ): Promise | void { + const command = new DeleteFleetAdvisorDatabasesCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + /** *

Deletes the specified replication instance.

* @@ -1210,6 +1351,171 @@ export class DatabaseMigrationService extends DatabaseMigrationServiceClient { } } + /** + *

Returns a list of the Fleet Advisor collectors in your account.

+ */ + public describeFleetAdvisorCollectors( + args: DescribeFleetAdvisorCollectorsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public describeFleetAdvisorCollectors( + args: DescribeFleetAdvisorCollectorsCommandInput, + cb: (err: any, data?: DescribeFleetAdvisorCollectorsCommandOutput) => void + ): void; + public describeFleetAdvisorCollectors( + args: DescribeFleetAdvisorCollectorsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DescribeFleetAdvisorCollectorsCommandOutput) => void + ): void; + public describeFleetAdvisorCollectors( + args: DescribeFleetAdvisorCollectorsCommandInput, + optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeFleetAdvisorCollectorsCommandOutput) => void), + cb?: (err: any, data?: DescribeFleetAdvisorCollectorsCommandOutput) => void + ): Promise | void { + const command = new DescribeFleetAdvisorCollectorsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + *

Returns a list of Fleet Advisor databases in your account.

+ */ + public describeFleetAdvisorDatabases( + args: DescribeFleetAdvisorDatabasesCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public describeFleetAdvisorDatabases( + args: DescribeFleetAdvisorDatabasesCommandInput, + cb: (err: any, data?: DescribeFleetAdvisorDatabasesCommandOutput) => void + ): void; + public describeFleetAdvisorDatabases( + args: DescribeFleetAdvisorDatabasesCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DescribeFleetAdvisorDatabasesCommandOutput) => void + ): void; + public describeFleetAdvisorDatabases( + args: DescribeFleetAdvisorDatabasesCommandInput, + optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeFleetAdvisorDatabasesCommandOutput) => void), + cb?: (err: any, data?: DescribeFleetAdvisorDatabasesCommandOutput) => void + ): Promise | void { + const command = new DescribeFleetAdvisorDatabasesCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + *

Provides descriptions of large-scale assessment (LSA) analyses produced by your + * Fleet Advisor collectors. + *

+ */ + public describeFleetAdvisorLsaAnalysis( + args: DescribeFleetAdvisorLsaAnalysisCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public describeFleetAdvisorLsaAnalysis( + args: DescribeFleetAdvisorLsaAnalysisCommandInput, + cb: (err: any, data?: DescribeFleetAdvisorLsaAnalysisCommandOutput) => void + ): void; + public describeFleetAdvisorLsaAnalysis( + args: DescribeFleetAdvisorLsaAnalysisCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DescribeFleetAdvisorLsaAnalysisCommandOutput) => void + ): void; + public describeFleetAdvisorLsaAnalysis( + args: DescribeFleetAdvisorLsaAnalysisCommandInput, + optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeFleetAdvisorLsaAnalysisCommandOutput) => void), + cb?: (err: any, data?: DescribeFleetAdvisorLsaAnalysisCommandOutput) => void + ): Promise | void { + const command = new DescribeFleetAdvisorLsaAnalysisCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + *

Provides descriptions of the schemas discovered by your Fleet Advisor + * collectors.

+ */ + public describeFleetAdvisorSchemaObjectSummary( + args: DescribeFleetAdvisorSchemaObjectSummaryCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public describeFleetAdvisorSchemaObjectSummary( + args: DescribeFleetAdvisorSchemaObjectSummaryCommandInput, + cb: (err: any, data?: DescribeFleetAdvisorSchemaObjectSummaryCommandOutput) => void + ): void; + public describeFleetAdvisorSchemaObjectSummary( + args: DescribeFleetAdvisorSchemaObjectSummaryCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DescribeFleetAdvisorSchemaObjectSummaryCommandOutput) => void + ): void; + public describeFleetAdvisorSchemaObjectSummary( + args: DescribeFleetAdvisorSchemaObjectSummaryCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: DescribeFleetAdvisorSchemaObjectSummaryCommandOutput) => void), + cb?: (err: any, data?: DescribeFleetAdvisorSchemaObjectSummaryCommandOutput) => void + ): Promise | void { + const command = new DescribeFleetAdvisorSchemaObjectSummaryCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + *

Returns a list of schemas detected by Fleet Advisor Collectors in your account.

+ */ + public describeFleetAdvisorSchemas( + args: DescribeFleetAdvisorSchemasCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public describeFleetAdvisorSchemas( + args: DescribeFleetAdvisorSchemasCommandInput, + cb: (err: any, data?: DescribeFleetAdvisorSchemasCommandOutput) => void + ): void; + public describeFleetAdvisorSchemas( + args: DescribeFleetAdvisorSchemasCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DescribeFleetAdvisorSchemasCommandOutput) => void + ): void; + public describeFleetAdvisorSchemas( + args: DescribeFleetAdvisorSchemasCommandInput, + optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeFleetAdvisorSchemasCommandOutput) => void), + cb?: (err: any, data?: DescribeFleetAdvisorSchemasCommandOutput) => void + ): Promise | void { + const command = new DescribeFleetAdvisorSchemasCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + /** *

Returns information about the replication instance types that can be created in the * specified region.

@@ -2038,6 +2344,38 @@ export class DatabaseMigrationService extends DatabaseMigrationServiceClient { } } + /** + *

Runs large-scale assessment (LSA) analysis on every Fleet Advisor collector in your account.

+ */ + public runFleetAdvisorLsaAnalysis( + args: RunFleetAdvisorLsaAnalysisCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public runFleetAdvisorLsaAnalysis( + args: RunFleetAdvisorLsaAnalysisCommandInput, + cb: (err: any, data?: RunFleetAdvisorLsaAnalysisCommandOutput) => void + ): void; + public runFleetAdvisorLsaAnalysis( + args: RunFleetAdvisorLsaAnalysisCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: RunFleetAdvisorLsaAnalysisCommandOutput) => void + ): void; + public runFleetAdvisorLsaAnalysis( + args: RunFleetAdvisorLsaAnalysisCommandInput, + optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: RunFleetAdvisorLsaAnalysisCommandOutput) => void), + cb?: (err: any, data?: RunFleetAdvisorLsaAnalysisCommandOutput) => void + ): Promise | void { + const command = new RunFleetAdvisorLsaAnalysisCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + /** *

Starts the replication task.

*

For more information about DMS tasks, see Working with Migration Tasks in the diff --git a/clients/client-database-migration-service/src/DatabaseMigrationServiceClient.ts b/clients/client-database-migration-service/src/DatabaseMigrationServiceClient.ts index 692245b41c1f..3ce871230696 100644 --- a/clients/client-database-migration-service/src/DatabaseMigrationServiceClient.ts +++ b/clients/client-database-migration-service/src/DatabaseMigrationServiceClient.ts @@ -67,6 +67,10 @@ import { CreateEventSubscriptionCommandInput, CreateEventSubscriptionCommandOutput, } from "./commands/CreateEventSubscriptionCommand"; +import { + CreateFleetAdvisorCollectorCommandInput, + CreateFleetAdvisorCollectorCommandOutput, +} from "./commands/CreateFleetAdvisorCollectorCommand"; import { CreateReplicationInstanceCommandInput, CreateReplicationInstanceCommandOutput, @@ -86,6 +90,14 @@ import { DeleteEventSubscriptionCommandInput, DeleteEventSubscriptionCommandOutput, } from "./commands/DeleteEventSubscriptionCommand"; +import { + DeleteFleetAdvisorCollectorCommandInput, + DeleteFleetAdvisorCollectorCommandOutput, +} from "./commands/DeleteFleetAdvisorCollectorCommand"; +import { + DeleteFleetAdvisorDatabasesCommandInput, + DeleteFleetAdvisorDatabasesCommandOutput, +} from "./commands/DeleteFleetAdvisorDatabasesCommand"; import { DeleteReplicationInstanceCommandInput, DeleteReplicationInstanceCommandOutput, @@ -136,6 +148,26 @@ import { DescribeEventSubscriptionsCommandInput, DescribeEventSubscriptionsCommandOutput, } from "./commands/DescribeEventSubscriptionsCommand"; +import { + DescribeFleetAdvisorCollectorsCommandInput, + DescribeFleetAdvisorCollectorsCommandOutput, +} from "./commands/DescribeFleetAdvisorCollectorsCommand"; +import { + DescribeFleetAdvisorDatabasesCommandInput, + DescribeFleetAdvisorDatabasesCommandOutput, +} from "./commands/DescribeFleetAdvisorDatabasesCommand"; +import { + DescribeFleetAdvisorLsaAnalysisCommandInput, + DescribeFleetAdvisorLsaAnalysisCommandOutput, +} from "./commands/DescribeFleetAdvisorLsaAnalysisCommand"; +import { + DescribeFleetAdvisorSchemaObjectSummaryCommandInput, + DescribeFleetAdvisorSchemaObjectSummaryCommandOutput, +} from "./commands/DescribeFleetAdvisorSchemaObjectSummaryCommand"; +import { + DescribeFleetAdvisorSchemasCommandInput, + DescribeFleetAdvisorSchemasCommandOutput, +} from "./commands/DescribeFleetAdvisorSchemasCommand"; import { DescribeOrderableReplicationInstancesCommandInput, DescribeOrderableReplicationInstancesCommandOutput, @@ -217,6 +249,10 @@ import { RemoveTagsFromResourceCommandInput, RemoveTagsFromResourceCommandOutput, } from "./commands/RemoveTagsFromResourceCommand"; +import { + RunFleetAdvisorLsaAnalysisCommandInput, + RunFleetAdvisorLsaAnalysisCommandOutput, +} from "./commands/RunFleetAdvisorLsaAnalysisCommand"; import { StartReplicationTaskAssessmentCommandInput, StartReplicationTaskAssessmentCommandOutput, @@ -242,6 +278,7 @@ export type ServiceInputTypes = | CancelReplicationTaskAssessmentRunCommandInput | CreateEndpointCommandInput | CreateEventSubscriptionCommandInput + | CreateFleetAdvisorCollectorCommandInput | CreateReplicationInstanceCommandInput | CreateReplicationSubnetGroupCommandInput | CreateReplicationTaskCommandInput @@ -249,6 +286,8 @@ export type ServiceInputTypes = | DeleteConnectionCommandInput | DeleteEndpointCommandInput | DeleteEventSubscriptionCommandInput + | DeleteFleetAdvisorCollectorCommandInput + | DeleteFleetAdvisorDatabasesCommandInput | DeleteReplicationInstanceCommandInput | DeleteReplicationSubnetGroupCommandInput | DeleteReplicationTaskAssessmentRunCommandInput @@ -263,6 +302,11 @@ export type ServiceInputTypes = | DescribeEventCategoriesCommandInput | DescribeEventSubscriptionsCommandInput | DescribeEventsCommandInput + | DescribeFleetAdvisorCollectorsCommandInput + | DescribeFleetAdvisorDatabasesCommandInput + | DescribeFleetAdvisorLsaAnalysisCommandInput + | DescribeFleetAdvisorSchemaObjectSummaryCommandInput + | DescribeFleetAdvisorSchemasCommandInput | DescribeOrderableReplicationInstancesCommandInput | DescribePendingMaintenanceActionsCommandInput | DescribeRefreshSchemasStatusCommandInput @@ -287,6 +331,7 @@ export type ServiceInputTypes = | RefreshSchemasCommandInput | ReloadTablesCommandInput | RemoveTagsFromResourceCommandInput + | RunFleetAdvisorLsaAnalysisCommandInput | StartReplicationTaskAssessmentCommandInput | StartReplicationTaskAssessmentRunCommandInput | StartReplicationTaskCommandInput @@ -299,6 +344,7 @@ export type ServiceOutputTypes = | CancelReplicationTaskAssessmentRunCommandOutput | CreateEndpointCommandOutput | CreateEventSubscriptionCommandOutput + | CreateFleetAdvisorCollectorCommandOutput | CreateReplicationInstanceCommandOutput | CreateReplicationSubnetGroupCommandOutput | CreateReplicationTaskCommandOutput @@ -306,6 +352,8 @@ export type ServiceOutputTypes = | DeleteConnectionCommandOutput | DeleteEndpointCommandOutput | DeleteEventSubscriptionCommandOutput + | DeleteFleetAdvisorCollectorCommandOutput + | DeleteFleetAdvisorDatabasesCommandOutput | DeleteReplicationInstanceCommandOutput | DeleteReplicationSubnetGroupCommandOutput | DeleteReplicationTaskAssessmentRunCommandOutput @@ -320,6 +368,11 @@ export type ServiceOutputTypes = | DescribeEventCategoriesCommandOutput | DescribeEventSubscriptionsCommandOutput | DescribeEventsCommandOutput + | DescribeFleetAdvisorCollectorsCommandOutput + | DescribeFleetAdvisorDatabasesCommandOutput + | DescribeFleetAdvisorLsaAnalysisCommandOutput + | DescribeFleetAdvisorSchemaObjectSummaryCommandOutput + | DescribeFleetAdvisorSchemasCommandOutput | DescribeOrderableReplicationInstancesCommandOutput | DescribePendingMaintenanceActionsCommandOutput | DescribeRefreshSchemasStatusCommandOutput @@ -344,6 +397,7 @@ export type ServiceOutputTypes = | RefreshSchemasCommandOutput | ReloadTablesCommandOutput | RemoveTagsFromResourceCommandOutput + | RunFleetAdvisorLsaAnalysisCommandOutput | StartReplicationTaskAssessmentCommandOutput | StartReplicationTaskAssessmentRunCommandOutput | StartReplicationTaskCommandOutput diff --git a/clients/client-database-migration-service/src/commands/CreateFleetAdvisorCollectorCommand.ts b/clients/client-database-migration-service/src/commands/CreateFleetAdvisorCollectorCommand.ts new file mode 100644 index 000000000000..772943e8ef94 --- /dev/null +++ b/clients/client-database-migration-service/src/commands/CreateFleetAdvisorCollectorCommand.ts @@ -0,0 +1,105 @@ +// smithy-typescript generated code +import { getSerdePlugin } from "@aws-sdk/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; +import { Command as $Command } from "@aws-sdk/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@aws-sdk/types"; + +import { + DatabaseMigrationServiceClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../DatabaseMigrationServiceClient"; +import { CreateFleetAdvisorCollectorRequest, CreateFleetAdvisorCollectorResponse } from "../models/models_0"; +import { + deserializeAws_json1_1CreateFleetAdvisorCollectorCommand, + serializeAws_json1_1CreateFleetAdvisorCollectorCommand, +} from "../protocols/Aws_json1_1"; + +export interface CreateFleetAdvisorCollectorCommandInput extends CreateFleetAdvisorCollectorRequest {} +export interface CreateFleetAdvisorCollectorCommandOutput + extends CreateFleetAdvisorCollectorResponse, + __MetadataBearer {} + +/** + *

Creates a Fleet Advisor collector using the specified parameters.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { DatabaseMigrationServiceClient, CreateFleetAdvisorCollectorCommand } from "@aws-sdk/client-database-migration-service"; // ES Modules import + * // const { DatabaseMigrationServiceClient, CreateFleetAdvisorCollectorCommand } = require("@aws-sdk/client-database-migration-service"); // CommonJS import + * const client = new DatabaseMigrationServiceClient(config); + * const command = new CreateFleetAdvisorCollectorCommand(input); + * const response = await client.send(command); + * ``` + * + * @see {@link CreateFleetAdvisorCollectorCommandInput} for command's `input` shape. + * @see {@link CreateFleetAdvisorCollectorCommandOutput} for command's `response` shape. + * @see {@link DatabaseMigrationServiceClientResolvedConfig | config} for DatabaseMigrationServiceClient's `config` shape. + * + */ +export class CreateFleetAdvisorCollectorCommand extends $Command< + CreateFleetAdvisorCollectorCommandInput, + CreateFleetAdvisorCollectorCommandOutput, + DatabaseMigrationServiceClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: CreateFleetAdvisorCollectorCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: DatabaseMigrationServiceClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "DatabaseMigrationServiceClient"; + const commandName = "CreateFleetAdvisorCollectorCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: CreateFleetAdvisorCollectorRequest.filterSensitiveLog, + outputFilterSensitiveLog: CreateFleetAdvisorCollectorResponse.filterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize(input: CreateFleetAdvisorCollectorCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return serializeAws_json1_1CreateFleetAdvisorCollectorCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return deserializeAws_json1_1CreateFleetAdvisorCollectorCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-database-migration-service/src/commands/DeleteFleetAdvisorCollectorCommand.ts b/clients/client-database-migration-service/src/commands/DeleteFleetAdvisorCollectorCommand.ts new file mode 100644 index 000000000000..b68535722362 --- /dev/null +++ b/clients/client-database-migration-service/src/commands/DeleteFleetAdvisorCollectorCommand.ts @@ -0,0 +1,103 @@ +// smithy-typescript generated code +import { getSerdePlugin } from "@aws-sdk/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; +import { Command as $Command } from "@aws-sdk/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@aws-sdk/types"; + +import { + DatabaseMigrationServiceClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../DatabaseMigrationServiceClient"; +import { DeleteCollectorRequest } from "../models/models_0"; +import { + deserializeAws_json1_1DeleteFleetAdvisorCollectorCommand, + serializeAws_json1_1DeleteFleetAdvisorCollectorCommand, +} from "../protocols/Aws_json1_1"; + +export interface DeleteFleetAdvisorCollectorCommandInput extends DeleteCollectorRequest {} +export interface DeleteFleetAdvisorCollectorCommandOutput extends __MetadataBearer {} + +/** + *

Deletes the specified Fleet Advisor collector.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { DatabaseMigrationServiceClient, DeleteFleetAdvisorCollectorCommand } from "@aws-sdk/client-database-migration-service"; // ES Modules import + * // const { DatabaseMigrationServiceClient, DeleteFleetAdvisorCollectorCommand } = require("@aws-sdk/client-database-migration-service"); // CommonJS import + * const client = new DatabaseMigrationServiceClient(config); + * const command = new DeleteFleetAdvisorCollectorCommand(input); + * const response = await client.send(command); + * ``` + * + * @see {@link DeleteFleetAdvisorCollectorCommandInput} for command's `input` shape. + * @see {@link DeleteFleetAdvisorCollectorCommandOutput} for command's `response` shape. + * @see {@link DatabaseMigrationServiceClientResolvedConfig | config} for DatabaseMigrationServiceClient's `config` shape. + * + */ +export class DeleteFleetAdvisorCollectorCommand extends $Command< + DeleteFleetAdvisorCollectorCommandInput, + DeleteFleetAdvisorCollectorCommandOutput, + DatabaseMigrationServiceClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: DeleteFleetAdvisorCollectorCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: DatabaseMigrationServiceClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "DatabaseMigrationServiceClient"; + const commandName = "DeleteFleetAdvisorCollectorCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: DeleteCollectorRequest.filterSensitiveLog, + outputFilterSensitiveLog: (output: any) => output, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize(input: DeleteFleetAdvisorCollectorCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return serializeAws_json1_1DeleteFleetAdvisorCollectorCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return deserializeAws_json1_1DeleteFleetAdvisorCollectorCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-database-migration-service/src/commands/DeleteFleetAdvisorDatabasesCommand.ts b/clients/client-database-migration-service/src/commands/DeleteFleetAdvisorDatabasesCommand.ts new file mode 100644 index 000000000000..1bef4e3f7e9c --- /dev/null +++ b/clients/client-database-migration-service/src/commands/DeleteFleetAdvisorDatabasesCommand.ts @@ -0,0 +1,105 @@ +// smithy-typescript generated code +import { getSerdePlugin } from "@aws-sdk/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; +import { Command as $Command } from "@aws-sdk/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@aws-sdk/types"; + +import { + DatabaseMigrationServiceClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../DatabaseMigrationServiceClient"; +import { DeleteFleetAdvisorDatabasesRequest, DeleteFleetAdvisorDatabasesResponse } from "../models/models_0"; +import { + deserializeAws_json1_1DeleteFleetAdvisorDatabasesCommand, + serializeAws_json1_1DeleteFleetAdvisorDatabasesCommand, +} from "../protocols/Aws_json1_1"; + +export interface DeleteFleetAdvisorDatabasesCommandInput extends DeleteFleetAdvisorDatabasesRequest {} +export interface DeleteFleetAdvisorDatabasesCommandOutput + extends DeleteFleetAdvisorDatabasesResponse, + __MetadataBearer {} + +/** + *

Deletes the specified Fleet Advisor collector databases.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { DatabaseMigrationServiceClient, DeleteFleetAdvisorDatabasesCommand } from "@aws-sdk/client-database-migration-service"; // ES Modules import + * // const { DatabaseMigrationServiceClient, DeleteFleetAdvisorDatabasesCommand } = require("@aws-sdk/client-database-migration-service"); // CommonJS import + * const client = new DatabaseMigrationServiceClient(config); + * const command = new DeleteFleetAdvisorDatabasesCommand(input); + * const response = await client.send(command); + * ``` + * + * @see {@link DeleteFleetAdvisorDatabasesCommandInput} for command's `input` shape. + * @see {@link DeleteFleetAdvisorDatabasesCommandOutput} for command's `response` shape. + * @see {@link DatabaseMigrationServiceClientResolvedConfig | config} for DatabaseMigrationServiceClient's `config` shape. + * + */ +export class DeleteFleetAdvisorDatabasesCommand extends $Command< + DeleteFleetAdvisorDatabasesCommandInput, + DeleteFleetAdvisorDatabasesCommandOutput, + DatabaseMigrationServiceClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: DeleteFleetAdvisorDatabasesCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: DatabaseMigrationServiceClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "DatabaseMigrationServiceClient"; + const commandName = "DeleteFleetAdvisorDatabasesCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: DeleteFleetAdvisorDatabasesRequest.filterSensitiveLog, + outputFilterSensitiveLog: DeleteFleetAdvisorDatabasesResponse.filterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize(input: DeleteFleetAdvisorDatabasesCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return serializeAws_json1_1DeleteFleetAdvisorDatabasesCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return deserializeAws_json1_1DeleteFleetAdvisorDatabasesCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-database-migration-service/src/commands/DescribeFleetAdvisorCollectorsCommand.ts b/clients/client-database-migration-service/src/commands/DescribeFleetAdvisorCollectorsCommand.ts new file mode 100644 index 000000000000..f6d4a9cad0e9 --- /dev/null +++ b/clients/client-database-migration-service/src/commands/DescribeFleetAdvisorCollectorsCommand.ts @@ -0,0 +1,108 @@ +// smithy-typescript generated code +import { getSerdePlugin } from "@aws-sdk/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; +import { Command as $Command } from "@aws-sdk/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@aws-sdk/types"; + +import { + DatabaseMigrationServiceClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../DatabaseMigrationServiceClient"; +import { DescribeFleetAdvisorCollectorsRequest, DescribeFleetAdvisorCollectorsResponse } from "../models/models_0"; +import { + deserializeAws_json1_1DescribeFleetAdvisorCollectorsCommand, + serializeAws_json1_1DescribeFleetAdvisorCollectorsCommand, +} from "../protocols/Aws_json1_1"; + +export interface DescribeFleetAdvisorCollectorsCommandInput extends DescribeFleetAdvisorCollectorsRequest {} +export interface DescribeFleetAdvisorCollectorsCommandOutput + extends DescribeFleetAdvisorCollectorsResponse, + __MetadataBearer {} + +/** + *

Returns a list of the Fleet Advisor collectors in your account.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { DatabaseMigrationServiceClient, DescribeFleetAdvisorCollectorsCommand } from "@aws-sdk/client-database-migration-service"; // ES Modules import + * // const { DatabaseMigrationServiceClient, DescribeFleetAdvisorCollectorsCommand } = require("@aws-sdk/client-database-migration-service"); // CommonJS import + * const client = new DatabaseMigrationServiceClient(config); + * const command = new DescribeFleetAdvisorCollectorsCommand(input); + * const response = await client.send(command); + * ``` + * + * @see {@link DescribeFleetAdvisorCollectorsCommandInput} for command's `input` shape. + * @see {@link DescribeFleetAdvisorCollectorsCommandOutput} for command's `response` shape. + * @see {@link DatabaseMigrationServiceClientResolvedConfig | config} for DatabaseMigrationServiceClient's `config` shape. + * + */ +export class DescribeFleetAdvisorCollectorsCommand extends $Command< + DescribeFleetAdvisorCollectorsCommandInput, + DescribeFleetAdvisorCollectorsCommandOutput, + DatabaseMigrationServiceClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: DescribeFleetAdvisorCollectorsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: DatabaseMigrationServiceClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "DatabaseMigrationServiceClient"; + const commandName = "DescribeFleetAdvisorCollectorsCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: DescribeFleetAdvisorCollectorsRequest.filterSensitiveLog, + outputFilterSensitiveLog: DescribeFleetAdvisorCollectorsResponse.filterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: DescribeFleetAdvisorCollectorsCommandInput, + context: __SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_json1_1DescribeFleetAdvisorCollectorsCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return deserializeAws_json1_1DescribeFleetAdvisorCollectorsCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-database-migration-service/src/commands/DescribeFleetAdvisorDatabasesCommand.ts b/clients/client-database-migration-service/src/commands/DescribeFleetAdvisorDatabasesCommand.ts new file mode 100644 index 000000000000..99c5811b9749 --- /dev/null +++ b/clients/client-database-migration-service/src/commands/DescribeFleetAdvisorDatabasesCommand.ts @@ -0,0 +1,105 @@ +// smithy-typescript generated code +import { getSerdePlugin } from "@aws-sdk/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; +import { Command as $Command } from "@aws-sdk/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@aws-sdk/types"; + +import { + DatabaseMigrationServiceClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../DatabaseMigrationServiceClient"; +import { DescribeFleetAdvisorDatabasesRequest, DescribeFleetAdvisorDatabasesResponse } from "../models/models_0"; +import { + deserializeAws_json1_1DescribeFleetAdvisorDatabasesCommand, + serializeAws_json1_1DescribeFleetAdvisorDatabasesCommand, +} from "../protocols/Aws_json1_1"; + +export interface DescribeFleetAdvisorDatabasesCommandInput extends DescribeFleetAdvisorDatabasesRequest {} +export interface DescribeFleetAdvisorDatabasesCommandOutput + extends DescribeFleetAdvisorDatabasesResponse, + __MetadataBearer {} + +/** + *

Returns a list of Fleet Advisor databases in your account.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { DatabaseMigrationServiceClient, DescribeFleetAdvisorDatabasesCommand } from "@aws-sdk/client-database-migration-service"; // ES Modules import + * // const { DatabaseMigrationServiceClient, DescribeFleetAdvisorDatabasesCommand } = require("@aws-sdk/client-database-migration-service"); // CommonJS import + * const client = new DatabaseMigrationServiceClient(config); + * const command = new DescribeFleetAdvisorDatabasesCommand(input); + * const response = await client.send(command); + * ``` + * + * @see {@link DescribeFleetAdvisorDatabasesCommandInput} for command's `input` shape. + * @see {@link DescribeFleetAdvisorDatabasesCommandOutput} for command's `response` shape. + * @see {@link DatabaseMigrationServiceClientResolvedConfig | config} for DatabaseMigrationServiceClient's `config` shape. + * + */ +export class DescribeFleetAdvisorDatabasesCommand extends $Command< + DescribeFleetAdvisorDatabasesCommandInput, + DescribeFleetAdvisorDatabasesCommandOutput, + DatabaseMigrationServiceClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: DescribeFleetAdvisorDatabasesCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: DatabaseMigrationServiceClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "DatabaseMigrationServiceClient"; + const commandName = "DescribeFleetAdvisorDatabasesCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: DescribeFleetAdvisorDatabasesRequest.filterSensitiveLog, + outputFilterSensitiveLog: DescribeFleetAdvisorDatabasesResponse.filterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize(input: DescribeFleetAdvisorDatabasesCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return serializeAws_json1_1DescribeFleetAdvisorDatabasesCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return deserializeAws_json1_1DescribeFleetAdvisorDatabasesCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-database-migration-service/src/commands/DescribeFleetAdvisorLsaAnalysisCommand.ts b/clients/client-database-migration-service/src/commands/DescribeFleetAdvisorLsaAnalysisCommand.ts new file mode 100644 index 000000000000..882371280ba7 --- /dev/null +++ b/clients/client-database-migration-service/src/commands/DescribeFleetAdvisorLsaAnalysisCommand.ts @@ -0,0 +1,110 @@ +// smithy-typescript generated code +import { getSerdePlugin } from "@aws-sdk/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; +import { Command as $Command } from "@aws-sdk/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@aws-sdk/types"; + +import { + DatabaseMigrationServiceClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../DatabaseMigrationServiceClient"; +import { DescribeFleetAdvisorLsaAnalysisRequest, DescribeFleetAdvisorLsaAnalysisResponse } from "../models/models_0"; +import { + deserializeAws_json1_1DescribeFleetAdvisorLsaAnalysisCommand, + serializeAws_json1_1DescribeFleetAdvisorLsaAnalysisCommand, +} from "../protocols/Aws_json1_1"; + +export interface DescribeFleetAdvisorLsaAnalysisCommandInput extends DescribeFleetAdvisorLsaAnalysisRequest {} +export interface DescribeFleetAdvisorLsaAnalysisCommandOutput + extends DescribeFleetAdvisorLsaAnalysisResponse, + __MetadataBearer {} + +/** + *

Provides descriptions of large-scale assessment (LSA) analyses produced by your + * Fleet Advisor collectors. + *

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { DatabaseMigrationServiceClient, DescribeFleetAdvisorLsaAnalysisCommand } from "@aws-sdk/client-database-migration-service"; // ES Modules import + * // const { DatabaseMigrationServiceClient, DescribeFleetAdvisorLsaAnalysisCommand } = require("@aws-sdk/client-database-migration-service"); // CommonJS import + * const client = new DatabaseMigrationServiceClient(config); + * const command = new DescribeFleetAdvisorLsaAnalysisCommand(input); + * const response = await client.send(command); + * ``` + * + * @see {@link DescribeFleetAdvisorLsaAnalysisCommandInput} for command's `input` shape. + * @see {@link DescribeFleetAdvisorLsaAnalysisCommandOutput} for command's `response` shape. + * @see {@link DatabaseMigrationServiceClientResolvedConfig | config} for DatabaseMigrationServiceClient's `config` shape. + * + */ +export class DescribeFleetAdvisorLsaAnalysisCommand extends $Command< + DescribeFleetAdvisorLsaAnalysisCommandInput, + DescribeFleetAdvisorLsaAnalysisCommandOutput, + DatabaseMigrationServiceClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: DescribeFleetAdvisorLsaAnalysisCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: DatabaseMigrationServiceClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "DatabaseMigrationServiceClient"; + const commandName = "DescribeFleetAdvisorLsaAnalysisCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: DescribeFleetAdvisorLsaAnalysisRequest.filterSensitiveLog, + outputFilterSensitiveLog: DescribeFleetAdvisorLsaAnalysisResponse.filterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: DescribeFleetAdvisorLsaAnalysisCommandInput, + context: __SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_json1_1DescribeFleetAdvisorLsaAnalysisCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return deserializeAws_json1_1DescribeFleetAdvisorLsaAnalysisCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-database-migration-service/src/commands/DescribeFleetAdvisorSchemaObjectSummaryCommand.ts b/clients/client-database-migration-service/src/commands/DescribeFleetAdvisorSchemaObjectSummaryCommand.ts new file mode 100644 index 000000000000..99bf509a68b1 --- /dev/null +++ b/clients/client-database-migration-service/src/commands/DescribeFleetAdvisorSchemaObjectSummaryCommand.ts @@ -0,0 +1,116 @@ +// smithy-typescript generated code +import { getSerdePlugin } from "@aws-sdk/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; +import { Command as $Command } from "@aws-sdk/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@aws-sdk/types"; + +import { + DatabaseMigrationServiceClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../DatabaseMigrationServiceClient"; +import { + DescribeFleetAdvisorSchemaObjectSummaryRequest, + DescribeFleetAdvisorSchemaObjectSummaryResponse, +} from "../models/models_0"; +import { + deserializeAws_json1_1DescribeFleetAdvisorSchemaObjectSummaryCommand, + serializeAws_json1_1DescribeFleetAdvisorSchemaObjectSummaryCommand, +} from "../protocols/Aws_json1_1"; + +export interface DescribeFleetAdvisorSchemaObjectSummaryCommandInput + extends DescribeFleetAdvisorSchemaObjectSummaryRequest {} +export interface DescribeFleetAdvisorSchemaObjectSummaryCommandOutput + extends DescribeFleetAdvisorSchemaObjectSummaryResponse, + __MetadataBearer {} + +/** + *

Provides descriptions of the schemas discovered by your Fleet Advisor + * collectors.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { DatabaseMigrationServiceClient, DescribeFleetAdvisorSchemaObjectSummaryCommand } from "@aws-sdk/client-database-migration-service"; // ES Modules import + * // const { DatabaseMigrationServiceClient, DescribeFleetAdvisorSchemaObjectSummaryCommand } = require("@aws-sdk/client-database-migration-service"); // CommonJS import + * const client = new DatabaseMigrationServiceClient(config); + * const command = new DescribeFleetAdvisorSchemaObjectSummaryCommand(input); + * const response = await client.send(command); + * ``` + * + * @see {@link DescribeFleetAdvisorSchemaObjectSummaryCommandInput} for command's `input` shape. + * @see {@link DescribeFleetAdvisorSchemaObjectSummaryCommandOutput} for command's `response` shape. + * @see {@link DatabaseMigrationServiceClientResolvedConfig | config} for DatabaseMigrationServiceClient's `config` shape. + * + */ +export class DescribeFleetAdvisorSchemaObjectSummaryCommand extends $Command< + DescribeFleetAdvisorSchemaObjectSummaryCommandInput, + DescribeFleetAdvisorSchemaObjectSummaryCommandOutput, + DatabaseMigrationServiceClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: DescribeFleetAdvisorSchemaObjectSummaryCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: DatabaseMigrationServiceClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler< + DescribeFleetAdvisorSchemaObjectSummaryCommandInput, + DescribeFleetAdvisorSchemaObjectSummaryCommandOutput + > { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "DatabaseMigrationServiceClient"; + const commandName = "DescribeFleetAdvisorSchemaObjectSummaryCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: DescribeFleetAdvisorSchemaObjectSummaryRequest.filterSensitiveLog, + outputFilterSensitiveLog: DescribeFleetAdvisorSchemaObjectSummaryResponse.filterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: DescribeFleetAdvisorSchemaObjectSummaryCommandInput, + context: __SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_json1_1DescribeFleetAdvisorSchemaObjectSummaryCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return deserializeAws_json1_1DescribeFleetAdvisorSchemaObjectSummaryCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-database-migration-service/src/commands/DescribeFleetAdvisorSchemasCommand.ts b/clients/client-database-migration-service/src/commands/DescribeFleetAdvisorSchemasCommand.ts new file mode 100644 index 000000000000..d787196d4a1e --- /dev/null +++ b/clients/client-database-migration-service/src/commands/DescribeFleetAdvisorSchemasCommand.ts @@ -0,0 +1,105 @@ +// smithy-typescript generated code +import { getSerdePlugin } from "@aws-sdk/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; +import { Command as $Command } from "@aws-sdk/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@aws-sdk/types"; + +import { + DatabaseMigrationServiceClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../DatabaseMigrationServiceClient"; +import { DescribeFleetAdvisorSchemasRequest, DescribeFleetAdvisorSchemasResponse } from "../models/models_0"; +import { + deserializeAws_json1_1DescribeFleetAdvisorSchemasCommand, + serializeAws_json1_1DescribeFleetAdvisorSchemasCommand, +} from "../protocols/Aws_json1_1"; + +export interface DescribeFleetAdvisorSchemasCommandInput extends DescribeFleetAdvisorSchemasRequest {} +export interface DescribeFleetAdvisorSchemasCommandOutput + extends DescribeFleetAdvisorSchemasResponse, + __MetadataBearer {} + +/** + *

Returns a list of schemas detected by Fleet Advisor Collectors in your account.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { DatabaseMigrationServiceClient, DescribeFleetAdvisorSchemasCommand } from "@aws-sdk/client-database-migration-service"; // ES Modules import + * // const { DatabaseMigrationServiceClient, DescribeFleetAdvisorSchemasCommand } = require("@aws-sdk/client-database-migration-service"); // CommonJS import + * const client = new DatabaseMigrationServiceClient(config); + * const command = new DescribeFleetAdvisorSchemasCommand(input); + * const response = await client.send(command); + * ``` + * + * @see {@link DescribeFleetAdvisorSchemasCommandInput} for command's `input` shape. + * @see {@link DescribeFleetAdvisorSchemasCommandOutput} for command's `response` shape. + * @see {@link DatabaseMigrationServiceClientResolvedConfig | config} for DatabaseMigrationServiceClient's `config` shape. + * + */ +export class DescribeFleetAdvisorSchemasCommand extends $Command< + DescribeFleetAdvisorSchemasCommandInput, + DescribeFleetAdvisorSchemasCommandOutput, + DatabaseMigrationServiceClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: DescribeFleetAdvisorSchemasCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: DatabaseMigrationServiceClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "DatabaseMigrationServiceClient"; + const commandName = "DescribeFleetAdvisorSchemasCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: DescribeFleetAdvisorSchemasRequest.filterSensitiveLog, + outputFilterSensitiveLog: DescribeFleetAdvisorSchemasResponse.filterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize(input: DescribeFleetAdvisorSchemasCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return serializeAws_json1_1DescribeFleetAdvisorSchemasCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return deserializeAws_json1_1DescribeFleetAdvisorSchemasCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-database-migration-service/src/commands/RunFleetAdvisorLsaAnalysisCommand.ts b/clients/client-database-migration-service/src/commands/RunFleetAdvisorLsaAnalysisCommand.ts new file mode 100644 index 000000000000..9a5e1cd3599f --- /dev/null +++ b/clients/client-database-migration-service/src/commands/RunFleetAdvisorLsaAnalysisCommand.ts @@ -0,0 +1,103 @@ +// smithy-typescript generated code +import { getSerdePlugin } from "@aws-sdk/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; +import { Command as $Command } from "@aws-sdk/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@aws-sdk/types"; + +import { + DatabaseMigrationServiceClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../DatabaseMigrationServiceClient"; +import { RunFleetAdvisorLsaAnalysisResponse } from "../models/models_0"; +import { + deserializeAws_json1_1RunFleetAdvisorLsaAnalysisCommand, + serializeAws_json1_1RunFleetAdvisorLsaAnalysisCommand, +} from "../protocols/Aws_json1_1"; + +export interface RunFleetAdvisorLsaAnalysisCommandInput {} +export interface RunFleetAdvisorLsaAnalysisCommandOutput extends RunFleetAdvisorLsaAnalysisResponse, __MetadataBearer {} + +/** + *

Runs large-scale assessment (LSA) analysis on every Fleet Advisor collector in your account.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { DatabaseMigrationServiceClient, RunFleetAdvisorLsaAnalysisCommand } from "@aws-sdk/client-database-migration-service"; // ES Modules import + * // const { DatabaseMigrationServiceClient, RunFleetAdvisorLsaAnalysisCommand } = require("@aws-sdk/client-database-migration-service"); // CommonJS import + * const client = new DatabaseMigrationServiceClient(config); + * const command = new RunFleetAdvisorLsaAnalysisCommand(input); + * const response = await client.send(command); + * ``` + * + * @see {@link RunFleetAdvisorLsaAnalysisCommandInput} for command's `input` shape. + * @see {@link RunFleetAdvisorLsaAnalysisCommandOutput} for command's `response` shape. + * @see {@link DatabaseMigrationServiceClientResolvedConfig | config} for DatabaseMigrationServiceClient's `config` shape. + * + */ +export class RunFleetAdvisorLsaAnalysisCommand extends $Command< + RunFleetAdvisorLsaAnalysisCommandInput, + RunFleetAdvisorLsaAnalysisCommandOutput, + DatabaseMigrationServiceClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: RunFleetAdvisorLsaAnalysisCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: DatabaseMigrationServiceClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "DatabaseMigrationServiceClient"; + const commandName = "RunFleetAdvisorLsaAnalysisCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (input: any) => input, + outputFilterSensitiveLog: RunFleetAdvisorLsaAnalysisResponse.filterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize(input: RunFleetAdvisorLsaAnalysisCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return serializeAws_json1_1RunFleetAdvisorLsaAnalysisCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return deserializeAws_json1_1RunFleetAdvisorLsaAnalysisCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-database-migration-service/src/commands/index.ts b/clients/client-database-migration-service/src/commands/index.ts index ac90fb724746..92fe924de547 100644 --- a/clients/client-database-migration-service/src/commands/index.ts +++ b/clients/client-database-migration-service/src/commands/index.ts @@ -4,6 +4,7 @@ export * from "./ApplyPendingMaintenanceActionCommand"; export * from "./CancelReplicationTaskAssessmentRunCommand"; export * from "./CreateEndpointCommand"; export * from "./CreateEventSubscriptionCommand"; +export * from "./CreateFleetAdvisorCollectorCommand"; export * from "./CreateReplicationInstanceCommand"; export * from "./CreateReplicationSubnetGroupCommand"; export * from "./CreateReplicationTaskCommand"; @@ -11,6 +12,8 @@ export * from "./DeleteCertificateCommand"; export * from "./DeleteConnectionCommand"; export * from "./DeleteEndpointCommand"; export * from "./DeleteEventSubscriptionCommand"; +export * from "./DeleteFleetAdvisorCollectorCommand"; +export * from "./DeleteFleetAdvisorDatabasesCommand"; export * from "./DeleteReplicationInstanceCommand"; export * from "./DeleteReplicationSubnetGroupCommand"; export * from "./DeleteReplicationTaskAssessmentRunCommand"; @@ -25,6 +28,11 @@ export * from "./DescribeEndpointsCommand"; export * from "./DescribeEventCategoriesCommand"; export * from "./DescribeEventSubscriptionsCommand"; export * from "./DescribeEventsCommand"; +export * from "./DescribeFleetAdvisorCollectorsCommand"; +export * from "./DescribeFleetAdvisorDatabasesCommand"; +export * from "./DescribeFleetAdvisorLsaAnalysisCommand"; +export * from "./DescribeFleetAdvisorSchemaObjectSummaryCommand"; +export * from "./DescribeFleetAdvisorSchemasCommand"; export * from "./DescribeOrderableReplicationInstancesCommand"; export * from "./DescribePendingMaintenanceActionsCommand"; export * from "./DescribeRefreshSchemasStatusCommand"; @@ -49,6 +57,7 @@ export * from "./RebootReplicationInstanceCommand"; export * from "./RefreshSchemasCommand"; export * from "./ReloadTablesCommand"; export * from "./RemoveTagsFromResourceCommand"; +export * from "./RunFleetAdvisorLsaAnalysisCommand"; export * from "./StartReplicationTaskAssessmentCommand"; export * from "./StartReplicationTaskAssessmentRunCommand"; export * from "./StartReplicationTaskCommand"; diff --git a/clients/client-database-migration-service/src/models/models_0.ts b/clients/client-database-migration-service/src/models/models_0.ts index 3b0831c91f32..71ca6b56b3a9 100644 --- a/clients/client-database-migration-service/src/models/models_0.ts +++ b/clients/client-database-migration-service/src/models/models_0.ts @@ -828,12 +828,12 @@ export interface GcpMySQLSettings { * that allows access to the MySQL endpoint.

* *

You can specify one of two sets of values for these permissions. You can specify - * the values for this setting and SecretsManagerSecretId. Or you can specify clear-text - * values for UserName, Password, ServerName, and Port. - * You can't specify both. For more information on creating this SecretsManagerSecret - * and the SecretsManagerAccessRoleArn and SecretsManagerSecretId required to - * access it, see Using secrets to access Database Migration Service resources in the - * Database Migration Service User Guide. + * the values for this setting and SecretsManagerSecretId. Or you can specify clear-text + * values for UserName, Password, ServerName, and Port. + * You can't specify both. For more information on creating this SecretsManagerSecret + * and the SecretsManagerAccessRoleArn and SecretsManagerSecretId required to + * access it, see Using secrets to access Database Migration Service resources in the + * Database Migration Service User Guide. * *

*
@@ -1493,7 +1493,9 @@ export interface MySQLSettings { /** *

Specifies where to migrate source tables on the target, either - * to a single database or multiple databases.

+ * to a single database or multiple databases. If you specify + * SPECIFIC_DATABASE, specify the database name using the DatabaseName + * parameter of the Endpoint object.

*

Example: targetDbType=MULTIPLE_DATABASES *

*/ @@ -3136,9 +3138,9 @@ export interface S3Settings { * following example.

*

* s3-settings='{"DatePartitionEnabled": true, "DatePartitionSequence": "YYYYMMDDHH", - * "DatePartitionDelimiter": "SLASH", - * "DatePartitionTimezone":"Asia/Seoul", "BucketName": - * "dms-nattarat-test"}' + * "DatePartitionDelimiter": "SLASH", + * "DatePartitionTimezone":"Asia/Seoul", "BucketName": + * "dms-nattarat-test"}' *

*/ DatePartitionTimezone?: string; @@ -3273,7 +3275,8 @@ export interface CreateEndpointMessage { Port?: number; /** - *

The name of the endpoint database. For a MySQL source or target endpoint, do not specify DatabaseName.

+ *

The name of the endpoint database. For a MySQL source or target endpoint, do not specify DatabaseName. + * To migrate to a specific database, use this setting and targetDbType.

*/ DatabaseName?: string; @@ -4163,6 +4166,95 @@ export class SNSNoAuthorizationFault extends __BaseException { } } +export interface CreateFleetAdvisorCollectorRequest { + /** + *

The name of your Fleet Advisor collector (for example, sample-collector).

+ */ + CollectorName: string | undefined; + + /** + *

A summary description of your Fleet Advisor collector.

+ */ + Description?: string; + + /** + *

The IAM role that grants permissions to access the specified Amazon S3 bucket.

+ */ + ServiceAccessRoleArn: string | undefined; + + /** + *

The Amazon S3 bucket that the Fleet Advisor collector uses to store inventory metadata.

+ */ + S3BucketName: string | undefined; +} + +export namespace CreateFleetAdvisorCollectorRequest { + /** + * @internal + */ + export const filterSensitiveLog = (obj: CreateFleetAdvisorCollectorRequest): any => ({ + ...obj, + }); +} + +export interface CreateFleetAdvisorCollectorResponse { + /** + *

The unique ID of the new Fleet Advisor collector, for example: + * 22fda70c-40d5-4acf-b233-a495bd8eb7f5 + *

+ */ + CollectorReferencedId?: string; + + /** + *

The name of the new Fleet Advisor collector.

+ */ + CollectorName?: string; + + /** + *

A summary description of the Fleet Advisor collector.

+ */ + Description?: string; + + /** + *

The IAM role that grants permissions to access the specified Amazon S3 bucket.

+ */ + ServiceAccessRoleArn?: string; + + /** + *

The Amazon S3 bucket that the collector uses to store inventory metadata.

+ */ + S3BucketName?: string; +} + +export namespace CreateFleetAdvisorCollectorResponse { + /** + * @internal + */ + export const filterSensitiveLog = (obj: CreateFleetAdvisorCollectorResponse): any => ({ + ...obj, + }); +} + +/** + *

A specified Amazon S3 bucket, bucket folder, or other object can't be + * found.

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

*/ @@ -5663,6 +5755,92 @@ export namespace DeleteEventSubscriptionResponse { }); } +/** + *

The specified collector doesn't exist.

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

The reference ID of the Fleet Advisor collector to delete.

+ */ + CollectorReferencedId: string | undefined; +} + +export namespace DeleteCollectorRequest { + /** + * @internal + */ + export const filterSensitiveLog = (obj: DeleteCollectorRequest): any => ({ + ...obj, + }); +} + +export interface DeleteFleetAdvisorDatabasesRequest { + /** + *

The IDs of the Fleet Advisor collector databases to delete.

+ */ + DatabaseIds: string[] | undefined; +} + +export namespace DeleteFleetAdvisorDatabasesRequest { + /** + * @internal + */ + export const filterSensitiveLog = (obj: DeleteFleetAdvisorDatabasesRequest): any => ({ + ...obj, + }); +} + +export interface DeleteFleetAdvisorDatabasesResponse { + /** + *

The IDs of the databases that the operation deleted.

+ */ + DatabaseIds?: string[]; +} + +export namespace DeleteFleetAdvisorDatabasesResponse { + /** + * @internal + */ + export const filterSensitiveLog = (obj: DeleteFleetAdvisorDatabasesResponse): any => ({ + ...obj, + }); +} + +/** + *

The action or operation requested isn't valid.

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

*/ @@ -6660,191 +6838,1082 @@ export namespace DescribeEventSubscriptionsResponse { }); } -/** - *

- */ -export interface DescribeOrderableReplicationInstancesMessage { +export interface DescribeFleetAdvisorCollectorsRequest { /** - *

The maximum number of records to include in the response. If more records exist than - * the specified MaxRecords value, a pagination token called a marker is included - * in the response so that the remaining results can be retrieved.

- *

Default: 100

- *

Constraints: Minimum 20, maximum 100.

+ *

If you specify any of the following filters, the output includes information for only + * those collectors that meet the filter criteria:

+ * + *
    + *
  • + *

    + * collector-referenced-id – The ID of the collector agent, for example + * d4610ac5-e323-4ad9-bc50-eaf7249dfe9d.

    + *
  • + *
  • + *

    + * collector-name – The name of the collector agent.

    + *
  • + *
+ * + *

An example is: describe-fleet-advisor-collectors --filter + * Name="collector-referenced-id",Values="d4610ac5-e323-4ad9-bc50-eaf7249dfe9d" + *

+ */ + Filters?: Filter[]; + + /** + *

Sets the maximum number of records returned in the response.

*/ MaxRecords?: number; /** - *

An optional pagination token provided by a previous request. If this parameter is - * specified, the response includes only records beyond the marker, up to the value specified - * by MaxRecords.

+ *

If NextToken is returned by a previous response, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using the returned + * token to retrieve the next page. Keep all other arguments unchanged.

*/ - Marker?: string; + NextToken?: string; } -export namespace DescribeOrderableReplicationInstancesMessage { +export namespace DescribeFleetAdvisorCollectorsRequest { /** * @internal */ - export const filterSensitiveLog = (obj: DescribeOrderableReplicationInstancesMessage): any => ({ + export const filterSensitiveLog = (obj: DescribeFleetAdvisorCollectorsRequest): any => ({ ...obj, }); } -export enum ReleaseStatusValues { - BETA = "beta", +export enum CollectorStatus { + ACTIVE = "ACTIVE", + UNREGISTERED = "UNREGISTERED", } /** - *

In response to the DescribeOrderableReplicationInstances operation, this - * object describes an available replication instance. This description includes the - * replication instance's type, engine version, and allocated storage.

+ *

Describes the last Fleet Advisor collector health check.

*/ -export interface OrderableReplicationInstance { - /** - *

The version of the replication engine.

- */ - EngineVersion?: string; - - /** - *

The compute and memory capacity of the replication instance as defined for the specified - * replication instance class. For example to specify the instance class dms.c4.large, set this parameter to "dms.c4.large".

- *

For more information on the settings and capacities for the available replication instance classes, see - * - * Selecting the right DMS replication instance for your migration. - *

- */ - ReplicationInstanceClass?: string; - - /** - *

The type of storage used by the replication instance.

- */ - StorageType?: string; - - /** - *

The minimum amount of storage (in gigabytes) that can be allocated for the replication - * instance.

- */ - MinAllocatedStorage?: number; - - /** - *

The minimum amount of storage (in gigabytes) that can be allocated for the replication - * instance.

- */ - MaxAllocatedStorage?: number; - +export interface CollectorHealthCheck { /** - *

The default amount of storage (in gigabytes) that is allocated for the replication - * instance.

+ *

The status of the Fleet Advisor collector.

*/ - DefaultAllocatedStorage?: number; + CollectorStatus?: CollectorStatus | string; /** - *

The amount of storage (in gigabytes) that is allocated for the replication - * instance.

+ *

Whether the local collector can access its Amazon S3 bucket.

*/ - IncludedAllocatedStorage?: number; + LocalCollectorS3Access?: boolean; /** - *

List of Availability Zones for this replication instance.

+ *

Whether the web collector can access its Amazon S3 bucket.

*/ - AvailabilityZones?: string[]; + WebCollectorS3Access?: boolean; /** - *

The value returned when the specified EngineVersion of the replication - * instance is in Beta or test mode. This indicates some features might not work as expected.

- * - *

DMS supports the ReleaseStatus parameter in versions 3.1.4 and later.

- *
+ *

Whether the role that you provided when creating the Fleet Advisor collector has sufficient permissions + * to access the Fleet Advisor web collector.

*/ - ReleaseStatus?: ReleaseStatusValues | string; + WebCollectorGrantedRoleBasedAccess?: boolean; } -export namespace OrderableReplicationInstance { +export namespace CollectorHealthCheck { /** * @internal */ - export const filterSensitiveLog = (obj: OrderableReplicationInstance): any => ({ + export const filterSensitiveLog = (obj: CollectorHealthCheck): any => ({ ...obj, }); } /** - *

+ *

Describes a Fleet Advisor collector inventory.

*/ -export interface DescribeOrderableReplicationInstancesResponse { +export interface InventoryData { /** - *

The order-able replication instances available.

+ *

The number of databases in the Fleet Advisor collector inventory.

*/ - OrderableReplicationInstances?: OrderableReplicationInstance[]; + NumberOfDatabases?: number; /** - *

An optional pagination token provided by a previous request. If this parameter is - * specified, the response includes only records beyond the marker, up to the value specified - * by MaxRecords.

+ *

The number of schemas in the Fleet Advisor collector inventory.

*/ - Marker?: string; + NumberOfSchemas?: number; } -export namespace DescribeOrderableReplicationInstancesResponse { +export namespace InventoryData { /** * @internal */ - export const filterSensitiveLog = (obj: DescribeOrderableReplicationInstancesResponse): any => ({ + export const filterSensitiveLog = (obj: InventoryData): any => ({ ...obj, }); } +export enum VersionStatus { + OUTDATED = "OUTDATED", + UNSUPPORTED = "UNSUPPORTED", + UP_TO_DATE = "UP_TO_DATE", +} + /** - *

+ *

Describes a Fleet Advisor collector.

*/ -export interface DescribePendingMaintenanceActionsMessage { +export interface CollectorResponse { /** - *

The Amazon Resource Name (ARN) of the replication instance.

+ *

The reference ID of the Fleet Advisor collector.

*/ - ReplicationInstanceArn?: string; + CollectorReferencedId?: string; /** - *

+ *

The name of the Fleet Advisor collector .

*/ - Filters?: Filter[]; + CollectorName?: string; /** - *

An optional pagination token provided by a previous request. If this parameter is - * specified, the response includes only records beyond the marker, up to the value specified - * by MaxRecords.

+ *

The version of your Fleet Advisor collector, in semantic versioning format, for example + * 1.0.2 + *

*/ - Marker?: string; + CollectorVersion?: string; /** - *

The maximum number of records to include in the response. If more records exist than - * the specified MaxRecords value, a pagination token called a marker is included - * in the response so that the remaining results can be retrieved.

- *

Default: 100

- *

Constraints: Minimum 20, maximum 100.

+ *

Whether the collector version is up to date.

*/ - MaxRecords?: number; -} + VersionStatus?: VersionStatus | string; -export namespace DescribePendingMaintenanceActionsMessage { /** - * @internal + *

A summary description of the Fleet Advisor collector.

*/ - export const filterSensitiveLog = (obj: DescribePendingMaintenanceActionsMessage): any => ({ - ...obj, - }); -} + Description?: string; -/** - *

- */ -export interface DescribePendingMaintenanceActionsResponse { /** - *

The pending maintenance action.

+ *

The Amazon S3 bucket that the Fleet Advisor collector uses to store inventory metadata.

*/ - PendingMaintenanceActions?: ResourcePendingMaintenanceActions[]; + S3BucketName?: string; /** - *

An optional pagination token provided by a previous request. If this parameter is + *

The IAM role that grants permissions to access the specified Amazon S3 bucket.

+ */ + ServiceAccessRoleArn?: string; + + /** + *

Describes the last Fleet Advisor collector health check.

+ */ + CollectorHealthCheck?: CollectorHealthCheck; + + /** + *

The timestamp of the last time the collector received data, in the following format: + * 2022-01-24T19:04:02.596113Z + *

+ */ + LastDataReceived?: string; + + /** + *

The timestamp when DMS registered the collector, in the following format: + * 2022-01-24T19:04:02.596113Z + *

+ */ + RegisteredDate?: string; + + /** + *

The timestamp when you created the collector, in the following format: + * 2022-01-24T19:04:02.596113Z + *

+ */ + CreatedDate?: string; + + /** + *

The timestamp when DMS last modified the collector, in the following format: + * 2022-01-24T19:04:02.596113Z + *

+ */ + ModifiedDate?: string; + + /** + *

Describes a Fleet Advisor collector inventory.

+ */ + InventoryData?: InventoryData; +} + +export namespace CollectorResponse { + /** + * @internal + */ + export const filterSensitiveLog = (obj: CollectorResponse): any => ({ + ...obj, + }); +} + +export interface DescribeFleetAdvisorCollectorsResponse { + /** + *

Provides descriptions of the Fleet Advisor collectors, including the collectors' name + * and ID, and the latest inventory data.

+ */ + Collectors?: CollectorResponse[]; + + /** + *

If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using the returned + * token to retrieve the next page. Keep all other arguments unchanged.

+ */ + NextToken?: string; +} + +export namespace DescribeFleetAdvisorCollectorsResponse { + /** + * @internal + */ + export const filterSensitiveLog = (obj: DescribeFleetAdvisorCollectorsResponse): any => ({ + ...obj, + }); +} + +export interface DescribeFleetAdvisorDatabasesRequest { + /** + *

If you specify any of the following filters, the output includes information for only + * those databases that meet the filter criteria:

+ * + *
    + *
  • + *

    + * database-id – The ID of the database, for example + * d4610ac5-e323-4ad9-bc50-eaf7249dfe9d.

    + *
  • + *
  • + *

    + * database-name – The name of the database.

    + *
  • + *
  • + *

    + * database-engine – The name of the database engine.

    + *
  • + *
  • + *

    + * server-ip-address – The IP address of the database server.

    + *
  • + *
  • + *

    + * database-ip-address – The IP address of the database.

    + *
  • + *
  • + *

    + * collector-name – The name of the associated Fleet Advisor collector.

    + *
  • + *
+ * + *

An example is: describe-fleet-advisor-databases --filter + * Name="database-id",Values="d4610ac5-e323-4ad9-bc50-eaf7249dfe9d" + *

+ */ + Filters?: Filter[]; + + /** + *

Sets the maximum number of records returned in the response.

+ */ + MaxRecords?: number; + + /** + *

If NextToken is returned by a previous response, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using the returned + * token to retrieve the next page. Keep all other arguments unchanged.

+ */ + NextToken?: string; +} + +export namespace DescribeFleetAdvisorDatabasesRequest { + /** + * @internal + */ + export const filterSensitiveLog = (obj: DescribeFleetAdvisorDatabasesRequest): any => ({ + ...obj, + }); +} + +/** + *

Briefly describes a Fleet Advisor collector.

+ */ +export interface CollectorShortInfoResponse { + /** + *

The reference ID of the Fleet Advisor collector.

+ */ + CollectorReferencedId?: string; + + /** + *

The name of the Fleet Advisor collector.

+ */ + CollectorName?: string; +} + +export namespace CollectorShortInfoResponse { + /** + * @internal + */ + export const filterSensitiveLog = (obj: CollectorShortInfoResponse): any => ({ + ...obj, + }); +} + +/** + *

Describes a server in a Fleet Advisor collector inventory.

+ */ +export interface ServerShortInfoResponse { + /** + *

The ID of a server in a Fleet Advisor collector inventory.

+ */ + ServerId?: string; + + /** + *

The IP address of a server in a Fleet Advisor collector inventory.

+ */ + IpAddress?: string; + + /** + *

The name address of a server in a Fleet Advisor collector inventory.

+ */ + ServerName?: string; +} + +export namespace ServerShortInfoResponse { + /** + * @internal + */ + export const filterSensitiveLog = (obj: ServerShortInfoResponse): any => ({ + ...obj, + }); +} + +/** + *

Describes an inventory database instance for a Fleet Advisor collector.

+ */ +export interface DatabaseInstanceSoftwareDetailsResponse { + /** + *

The database engine of a database in a Fleet Advisor collector inventory, for example Microsoft + * SQL Server.

+ */ + Engine?: string; + + /** + *

The database engine version of a database in a Fleet Advisor collector inventory, for example + * 2019.

+ */ + EngineVersion?: string; + + /** + *

The database engine edition of a database in a Fleet Advisor collector inventory, for example + * Express.

+ */ + EngineEdition?: string; + + /** + *

The service pack level of the database.

+ */ + ServicePack?: string; + + /** + *

The support level of the database, for example Mainstream support.

+ */ + SupportLevel?: string; + + /** + *

The operating system architecture of the database.

+ */ + OsArchitecture?: number; + + /** + *

Information about the database engine software, for example Mainstream support + * ends on November 14th, 2024.

+ */ + Tooltip?: string; +} + +export namespace DatabaseInstanceSoftwareDetailsResponse { + /** + * @internal + */ + export const filterSensitiveLog = (obj: DatabaseInstanceSoftwareDetailsResponse): any => ({ + ...obj, + }); +} + +/** + *

Describes a database in a Fleet Advisor collector inventory.

+ */ +export interface DatabaseResponse { + /** + *

The ID of a database in a Fleet Advisor collector inventory.

+ */ + DatabaseId?: string; + + /** + *

The name of a database in a Fleet Advisor collector inventory.

+ */ + DatabaseName?: string; + + /** + *

The IP address of a database in a Fleet Advisor collector inventory.

+ */ + IpAddress?: string; + + /** + *

The number of schemas in a Fleet Advisor collector inventory database.

+ */ + NumberOfSchemas?: number; + + /** + *

The server name of a database in a Fleet Advisor collector inventory.

+ */ + Server?: ServerShortInfoResponse; + + /** + *

The software details of a database in a Fleet Advisor collector inventory, such as database engine and version.

+ */ + SoftwareDetails?: DatabaseInstanceSoftwareDetailsResponse; + + /** + *

A list of collectors associated with the database.

+ */ + Collectors?: CollectorShortInfoResponse[]; +} + +export namespace DatabaseResponse { + /** + * @internal + */ + export const filterSensitiveLog = (obj: DatabaseResponse): any => ({ + ...obj, + }); +} + +export interface DescribeFleetAdvisorDatabasesResponse { + /** + *

Provides descriptions of the Fleet Advisor collector databases, including the database's collector, ID, and name.

+ */ + Databases?: DatabaseResponse[]; + + /** + *

If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using the returned + * token to retrieve the next page. Keep all other arguments unchanged.

+ */ + NextToken?: string; +} + +export namespace DescribeFleetAdvisorDatabasesResponse { + /** + * @internal + */ + export const filterSensitiveLog = (obj: DescribeFleetAdvisorDatabasesResponse): any => ({ + ...obj, + }); +} + +export interface DescribeFleetAdvisorLsaAnalysisRequest { + /** + *

Sets the maximum number of records returned in the response.

+ */ + MaxRecords?: number; + + /** + *

If NextToken is returned by a previous response, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using the returned + * token to retrieve the next page. Keep all other arguments unchanged.

+ */ + NextToken?: string; +} + +export namespace DescribeFleetAdvisorLsaAnalysisRequest { + /** + * @internal + */ + export const filterSensitiveLog = (obj: DescribeFleetAdvisorLsaAnalysisRequest): any => ({ + ...obj, + }); +} + +/** + *

Describes a large-scale assessment (LSA) analysis run by a Fleet Advisor collector.

+ */ +export interface FleetAdvisorLsaAnalysisResponse { + /** + *

The ID of an LSA analysis run by a Fleet Advisor collector.

+ */ + LsaAnalysisId?: string; + + /** + *

The status of an LSA analysis run by a Fleet Advisor collector.

+ */ + Status?: string; +} + +export namespace FleetAdvisorLsaAnalysisResponse { + /** + * @internal + */ + export const filterSensitiveLog = (obj: FleetAdvisorLsaAnalysisResponse): any => ({ + ...obj, + }); +} + +export interface DescribeFleetAdvisorLsaAnalysisResponse { + /** + *

A list of FleetAdvisorLsaAnalysisResponse objects.

+ */ + Analysis?: FleetAdvisorLsaAnalysisResponse[]; + + /** + *

If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using the returned + * token to retrieve the next page. Keep all other arguments unchanged.

+ */ + NextToken?: string; +} + +export namespace DescribeFleetAdvisorLsaAnalysisResponse { + /** + * @internal + */ + export const filterSensitiveLog = (obj: DescribeFleetAdvisorLsaAnalysisResponse): any => ({ + ...obj, + }); +} + +export interface DescribeFleetAdvisorSchemaObjectSummaryRequest { + /** + *

If you specify any of the following filters, the output includes information for only + * those schema objects that meet the filter criteria:

+ * + *
    + *
  • + *

    + * schema-id – The ID of the schema, for example + * d4610ac5-e323-4ad9-bc50-eaf7249dfe9d.

    + *
  • + *
+ * + *

Example: describe-fleet-advisor-schema-object-summary --filter Name="schema-id",Values="50" + *

+ */ + Filters?: Filter[]; + + /** + *

Sets the maximum number of records returned in the response.

+ */ + MaxRecords?: number; + + /** + *

If NextToken is returned by a previous response, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using the returned + * token to retrieve the next page. Keep all other arguments unchanged.

+ */ + NextToken?: string; +} + +export namespace DescribeFleetAdvisorSchemaObjectSummaryRequest { + /** + * @internal + */ + export const filterSensitiveLog = (obj: DescribeFleetAdvisorSchemaObjectSummaryRequest): any => ({ + ...obj, + }); +} + +/** + *

Describes a schema object in a Fleet Advisor collector inventory.

+ */ +export interface FleetAdvisorSchemaObjectResponse { + /** + *

The ID of a schema object in a Fleet Advisor collector inventory.

+ */ + SchemaId?: string; + + /** + *

The type of the schema object, as reported by the database engine. Examples include the following:

+ *
    + *
  • + *

    + * function + *

    + *
  • + *
  • + *

    + * trigger + *

    + *
  • + *
  • + *

    + * SYSTEM_TABLE + *

    + *
  • + *
  • + *

    + * QUEUE + *

    + *
  • + *
+ */ + ObjectType?: string; + + /** + *

The number of objects in a schema object in a Fleet Advisor collector inventory.

+ */ + NumberOfObjects?: number; + + /** + *

The number of lines of code in a schema object in a Fleet Advisor collector inventory.

+ */ + CodeLineCount?: number; + + /** + *

The size level of the code in a schema object in a Fleet Advisor collector inventory.

+ */ + CodeSize?: number; +} + +export namespace FleetAdvisorSchemaObjectResponse { + /** + * @internal + */ + export const filterSensitiveLog = (obj: FleetAdvisorSchemaObjectResponse): any => ({ + ...obj, + }); +} + +export interface DescribeFleetAdvisorSchemaObjectSummaryResponse { + /** + *

A collection of FleetAdvisorSchemaObjectResponse objects.

+ */ + FleetAdvisorSchemaObjects?: FleetAdvisorSchemaObjectResponse[]; + + /** + *

If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using the returned + * token to retrieve the next page. Keep all other arguments unchanged.

+ */ + NextToken?: string; +} + +export namespace DescribeFleetAdvisorSchemaObjectSummaryResponse { + /** + * @internal + */ + export const filterSensitiveLog = (obj: DescribeFleetAdvisorSchemaObjectSummaryResponse): any => ({ + ...obj, + }); +} + +export interface DescribeFleetAdvisorSchemasRequest { + /** + *

If you specify any of the following filters, the output includes information for only + * those schemas that meet the filter criteria:

+ * + *
    + *
  • + *

    + * complexity – The schema's complexity, for example + * Simple.

    + *
  • + *
  • + *

    + * database-id – The ID of the schema's database.

    + *
  • + *
  • + *

    + * database-ip-address – The IP address of the schema's database.

    + *
  • + *
  • + *

    + * database-name – The name of the schema's database.

    + *
  • + *
  • + *

    + * database-engine – The name of the schema database's engine.

    + *
  • + *
  • + *

    + * original-schema-name – The name of the schema's database's main schema.

    + *
  • + *
  • + *

    + * schema-id – The ID of the schema, for example 15.

    + *
  • + *
  • + *

    + * schema-name – The name of the schema.

    + *
  • + *
  • + *

    + * server-ip-address – The IP address of the schema database's server.

    + *
  • + *
+ * + *

An example is: describe-fleet-advisor-schemas --filter + * Name="schema-id",Values="50" + *

+ */ + Filters?: Filter[]; + + /** + *

Sets the maximum number of records returned in the response.

+ */ + MaxRecords?: number; + + /** + *

If NextToken is returned by a previous response, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using the returned + * token to retrieve the next page. Keep all other arguments unchanged.

+ */ + NextToken?: string; +} + +export namespace DescribeFleetAdvisorSchemasRequest { + /** + * @internal + */ + export const filterSensitiveLog = (obj: DescribeFleetAdvisorSchemasRequest): any => ({ + ...obj, + }); +} + +/** + *

Describes a database in a Fleet Advisor collector inventory.

+ */ +export interface DatabaseShortInfoResponse { + /** + *

The ID of a database in a Fleet Advisor collector inventory.

+ */ + DatabaseId?: string; + + /** + *

The name of a database in a Fleet Advisor collector inventory.

+ */ + DatabaseName?: string; + + /** + *

The IP address of a database in a Fleet Advisor collector inventory.

+ */ + DatabaseIpAddress?: string; + + /** + *

The database engine of a database in a Fleet Advisor collector inventory, for example + * PostgreSQL.

+ */ + DatabaseEngine?: string; +} + +export namespace DatabaseShortInfoResponse { + /** + * @internal + */ + export const filterSensitiveLog = (obj: DatabaseShortInfoResponse): any => ({ + ...obj, + }); +} + +/** + *

Describes a schema in a Fleet Advisor collector inventory.

+ */ +export interface SchemaShortInfoResponse { + /** + *

The ID of a schema in a Fleet Advisor collector inventory.

+ */ + SchemaId?: string; + + /** + *

The name of a schema in a Fleet Advisor collector inventory.

+ */ + SchemaName?: string; + + /** + *

The ID of a database in a Fleet Advisor collector inventory.

+ */ + DatabaseId?: string; + + /** + *

The name of a database in a Fleet Advisor collector inventory.

+ */ + DatabaseName?: string; + + /** + *

The IP address of a database in a Fleet Advisor collector inventory.

+ */ + DatabaseIpAddress?: string; +} + +export namespace SchemaShortInfoResponse { + /** + * @internal + */ + export const filterSensitiveLog = (obj: SchemaShortInfoResponse): any => ({ + ...obj, + }); +} + +/** + *

Describes a schema in a Fleet Advisor collector inventory.

+ */ +export interface SchemaResponse { + /** + *

The number of lines of code in a schema in a Fleet Advisor collector inventory.

+ */ + CodeLineCount?: number; + + /** + *

The size level of the code in a schema in a Fleet Advisor collector inventory.

+ */ + CodeSize?: number; + + /** + *

The complexity level of the code in a schema in a Fleet Advisor collector inventory.

+ */ + Complexity?: string; + + /** + *

The database server for a schema in a Fleet Advisor collector inventory.

+ */ + Server?: ServerShortInfoResponse; + + /** + *

The database for a schema in a Fleet Advisor collector inventory.

+ */ + DatabaseInstance?: DatabaseShortInfoResponse; + + /** + *

The ID of a schema in a Fleet Advisor collector inventory.

+ */ + SchemaId?: string; + + /** + *

The name of a schema in a Fleet Advisor collector inventory.

+ */ + SchemaName?: string; + + /** + *

Describes a schema in a Fleet Advisor collector inventory.

+ */ + OriginalSchema?: SchemaShortInfoResponse; + + /** + *

The similarity value for a schema in a Fleet Advisor collector inventory. A higher similarity value + * indicates that a schema is likely to be a duplicate.

+ */ + Similarity?: number; +} + +export namespace SchemaResponse { + /** + * @internal + */ + export const filterSensitiveLog = (obj: SchemaResponse): any => ({ + ...obj, + }); +} + +export interface DescribeFleetAdvisorSchemasResponse { + /** + *

A collection of SchemaResponse objects.

+ */ + FleetAdvisorSchemas?: SchemaResponse[]; + + /** + *

If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using the returned + * token to retrieve the next page. Keep all other arguments unchanged.

+ */ + NextToken?: string; +} + +export namespace DescribeFleetAdvisorSchemasResponse { + /** + * @internal + */ + export const filterSensitiveLog = (obj: DescribeFleetAdvisorSchemasResponse): any => ({ + ...obj, + }); +} + +/** + *

+ */ +export interface DescribeOrderableReplicationInstancesMessage { + /** + *

The maximum number of records to include in the response. If more records exist than + * the specified MaxRecords value, a pagination token called a marker is included + * in the response so that the remaining results can be retrieved.

+ *

Default: 100

+ *

Constraints: Minimum 20, maximum 100.

+ */ + MaxRecords?: number; + + /** + *

An optional pagination token provided by a previous request. If this parameter is + * specified, the response includes only records beyond the marker, up to the value specified + * by MaxRecords.

+ */ + Marker?: string; +} + +export namespace DescribeOrderableReplicationInstancesMessage { + /** + * @internal + */ + export const filterSensitiveLog = (obj: DescribeOrderableReplicationInstancesMessage): any => ({ + ...obj, + }); +} + +export enum ReleaseStatusValues { + BETA = "beta", +} + +/** + *

In response to the DescribeOrderableReplicationInstances operation, this + * object describes an available replication instance. This description includes the + * replication instance's type, engine version, and allocated storage.

+ */ +export interface OrderableReplicationInstance { + /** + *

The version of the replication engine.

+ */ + EngineVersion?: string; + + /** + *

The compute and memory capacity of the replication instance as defined for the specified + * replication instance class. For example to specify the instance class dms.c4.large, set this parameter to "dms.c4.large".

+ *

For more information on the settings and capacities for the available replication instance classes, see + * + * Selecting the right DMS replication instance for your migration. + *

+ */ + ReplicationInstanceClass?: string; + + /** + *

The type of storage used by the replication instance.

+ */ + StorageType?: string; + + /** + *

The minimum amount of storage (in gigabytes) that can be allocated for the replication + * instance.

+ */ + MinAllocatedStorage?: number; + + /** + *

The minimum amount of storage (in gigabytes) that can be allocated for the replication + * instance.

+ */ + MaxAllocatedStorage?: number; + + /** + *

The default amount of storage (in gigabytes) that is allocated for the replication + * instance.

+ */ + DefaultAllocatedStorage?: number; + + /** + *

The amount of storage (in gigabytes) that is allocated for the replication + * instance.

+ */ + IncludedAllocatedStorage?: number; + + /** + *

List of Availability Zones for this replication instance.

+ */ + AvailabilityZones?: string[]; + + /** + *

The value returned when the specified EngineVersion of the replication + * instance is in Beta or test mode. This indicates some features might not work as expected.

+ * + *

DMS supports the ReleaseStatus parameter in versions 3.1.4 and later.

+ *
+ */ + ReleaseStatus?: ReleaseStatusValues | string; +} + +export namespace OrderableReplicationInstance { + /** + * @internal + */ + export const filterSensitiveLog = (obj: OrderableReplicationInstance): any => ({ + ...obj, + }); +} + +/** + *

+ */ +export interface DescribeOrderableReplicationInstancesResponse { + /** + *

The order-able replication instances available.

+ */ + OrderableReplicationInstances?: OrderableReplicationInstance[]; + + /** + *

An optional pagination token provided by a previous request. If this parameter is + * specified, the response includes only records beyond the marker, up to the value specified + * by MaxRecords.

+ */ + Marker?: string; +} + +export namespace DescribeOrderableReplicationInstancesResponse { + /** + * @internal + */ + export const filterSensitiveLog = (obj: DescribeOrderableReplicationInstancesResponse): any => ({ + ...obj, + }); +} + +/** + *

+ */ +export interface DescribePendingMaintenanceActionsMessage { + /** + *

The Amazon Resource Name (ARN) of the replication instance.

+ */ + ReplicationInstanceArn?: string; + + /** + *

+ */ + Filters?: Filter[]; + + /** + *

An optional pagination token provided by a previous request. If this parameter is + * specified, the response includes only records beyond the marker, up to the value specified + * by MaxRecords.

+ */ + Marker?: string; + + /** + *

The maximum number of records to include in the response. If more records exist than + * the specified MaxRecords value, a pagination token called a marker is included + * in the response so that the remaining results can be retrieved.

+ *

Default: 100

+ *

Constraints: Minimum 20, maximum 100.

+ */ + MaxRecords?: number; +} + +export namespace DescribePendingMaintenanceActionsMessage { + /** + * @internal + */ + export const filterSensitiveLog = (obj: DescribePendingMaintenanceActionsMessage): any => ({ + ...obj, + }); +} + +/** + *

+ */ +export interface DescribePendingMaintenanceActionsResponse { + /** + *

The pending maintenance action.

+ */ + PendingMaintenanceActions?: ResourcePendingMaintenanceActions[]; + + /** + *

An optional pagination token provided by a previous request. If this parameter is * specified, the response includes only records beyond the marker, up to the value specified * by MaxRecords.

*/ @@ -8924,6 +9993,27 @@ export namespace RemoveTagsFromResourceResponse { }); } +export interface RunFleetAdvisorLsaAnalysisResponse { + /** + *

The ID of the LSA analysis run.

+ */ + LsaAnalysisId?: string; + + /** + *

The status of the LSA analysis, for example COMPLETED.

+ */ + Status?: string; +} + +export namespace RunFleetAdvisorLsaAnalysisResponse { + /** + * @internal + */ + export const filterSensitiveLog = (obj: RunFleetAdvisorLsaAnalysisResponse): any => ({ + ...obj, + }); +} + export enum StartReplicationTaskTypeValue { RELOAD_TARGET = "reload-target", RESUME_PROCESSING = "resume-processing", @@ -9071,26 +10161,6 @@ export class KMSFault extends __BaseException { } } -/** - *

A specified Amazon S3 bucket, bucket folder, or other object can't be - * found.

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

*/ diff --git a/clients/client-database-migration-service/src/pagination/DescribeFleetAdvisorCollectorsPaginator.ts b/clients/client-database-migration-service/src/pagination/DescribeFleetAdvisorCollectorsPaginator.ts new file mode 100644 index 000000000000..cf0653cd0c51 --- /dev/null +++ b/clients/client-database-migration-service/src/pagination/DescribeFleetAdvisorCollectorsPaginator.ts @@ -0,0 +1,61 @@ +// smithy-typescript generated code +import { Paginator } from "@aws-sdk/types"; + +import { + DescribeFleetAdvisorCollectorsCommand, + DescribeFleetAdvisorCollectorsCommandInput, + DescribeFleetAdvisorCollectorsCommandOutput, +} from "../commands/DescribeFleetAdvisorCollectorsCommand"; +import { DatabaseMigrationService } from "../DatabaseMigrationService"; +import { DatabaseMigrationServiceClient } from "../DatabaseMigrationServiceClient"; +import { DatabaseMigrationServicePaginationConfiguration } from "./Interfaces"; + +/** + * @private + */ +const makePagedClientRequest = async ( + client: DatabaseMigrationServiceClient, + input: DescribeFleetAdvisorCollectorsCommandInput, + ...args: any +): Promise => { + // @ts-ignore + return await client.send(new DescribeFleetAdvisorCollectorsCommand(input), ...args); +}; +/** + * @private + */ +const makePagedRequest = async ( + client: DatabaseMigrationService, + input: DescribeFleetAdvisorCollectorsCommandInput, + ...args: any +): Promise => { + // @ts-ignore + return await client.describeFleetAdvisorCollectors(input, ...args); +}; +export async function* paginateDescribeFleetAdvisorCollectors( + config: DatabaseMigrationServicePaginationConfiguration, + input: DescribeFleetAdvisorCollectorsCommandInput, + ...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: DescribeFleetAdvisorCollectorsCommandOutput; + while (hasNext) { + input.NextToken = token; + input["MaxRecords"] = config.pageSize; + if (config.client instanceof DatabaseMigrationService) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } else if (config.client instanceof DatabaseMigrationServiceClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected DatabaseMigrationService | DatabaseMigrationServiceClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + // @ts-ignore + return undefined; +} diff --git a/clients/client-database-migration-service/src/pagination/DescribeFleetAdvisorDatabasesPaginator.ts b/clients/client-database-migration-service/src/pagination/DescribeFleetAdvisorDatabasesPaginator.ts new file mode 100644 index 000000000000..c8248e5e4ced --- /dev/null +++ b/clients/client-database-migration-service/src/pagination/DescribeFleetAdvisorDatabasesPaginator.ts @@ -0,0 +1,61 @@ +// smithy-typescript generated code +import { Paginator } from "@aws-sdk/types"; + +import { + DescribeFleetAdvisorDatabasesCommand, + DescribeFleetAdvisorDatabasesCommandInput, + DescribeFleetAdvisorDatabasesCommandOutput, +} from "../commands/DescribeFleetAdvisorDatabasesCommand"; +import { DatabaseMigrationService } from "../DatabaseMigrationService"; +import { DatabaseMigrationServiceClient } from "../DatabaseMigrationServiceClient"; +import { DatabaseMigrationServicePaginationConfiguration } from "./Interfaces"; + +/** + * @private + */ +const makePagedClientRequest = async ( + client: DatabaseMigrationServiceClient, + input: DescribeFleetAdvisorDatabasesCommandInput, + ...args: any +): Promise => { + // @ts-ignore + return await client.send(new DescribeFleetAdvisorDatabasesCommand(input), ...args); +}; +/** + * @private + */ +const makePagedRequest = async ( + client: DatabaseMigrationService, + input: DescribeFleetAdvisorDatabasesCommandInput, + ...args: any +): Promise => { + // @ts-ignore + return await client.describeFleetAdvisorDatabases(input, ...args); +}; +export async function* paginateDescribeFleetAdvisorDatabases( + config: DatabaseMigrationServicePaginationConfiguration, + input: DescribeFleetAdvisorDatabasesCommandInput, + ...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: DescribeFleetAdvisorDatabasesCommandOutput; + while (hasNext) { + input.NextToken = token; + input["MaxRecords"] = config.pageSize; + if (config.client instanceof DatabaseMigrationService) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } else if (config.client instanceof DatabaseMigrationServiceClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected DatabaseMigrationService | DatabaseMigrationServiceClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + // @ts-ignore + return undefined; +} diff --git a/clients/client-database-migration-service/src/pagination/DescribeFleetAdvisorLsaAnalysisPaginator.ts b/clients/client-database-migration-service/src/pagination/DescribeFleetAdvisorLsaAnalysisPaginator.ts new file mode 100644 index 000000000000..1de9ee4a4e90 --- /dev/null +++ b/clients/client-database-migration-service/src/pagination/DescribeFleetAdvisorLsaAnalysisPaginator.ts @@ -0,0 +1,61 @@ +// smithy-typescript generated code +import { Paginator } from "@aws-sdk/types"; + +import { + DescribeFleetAdvisorLsaAnalysisCommand, + DescribeFleetAdvisorLsaAnalysisCommandInput, + DescribeFleetAdvisorLsaAnalysisCommandOutput, +} from "../commands/DescribeFleetAdvisorLsaAnalysisCommand"; +import { DatabaseMigrationService } from "../DatabaseMigrationService"; +import { DatabaseMigrationServiceClient } from "../DatabaseMigrationServiceClient"; +import { DatabaseMigrationServicePaginationConfiguration } from "./Interfaces"; + +/** + * @private + */ +const makePagedClientRequest = async ( + client: DatabaseMigrationServiceClient, + input: DescribeFleetAdvisorLsaAnalysisCommandInput, + ...args: any +): Promise => { + // @ts-ignore + return await client.send(new DescribeFleetAdvisorLsaAnalysisCommand(input), ...args); +}; +/** + * @private + */ +const makePagedRequest = async ( + client: DatabaseMigrationService, + input: DescribeFleetAdvisorLsaAnalysisCommandInput, + ...args: any +): Promise => { + // @ts-ignore + return await client.describeFleetAdvisorLsaAnalysis(input, ...args); +}; +export async function* paginateDescribeFleetAdvisorLsaAnalysis( + config: DatabaseMigrationServicePaginationConfiguration, + input: DescribeFleetAdvisorLsaAnalysisCommandInput, + ...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: DescribeFleetAdvisorLsaAnalysisCommandOutput; + while (hasNext) { + input.NextToken = token; + input["MaxRecords"] = config.pageSize; + if (config.client instanceof DatabaseMigrationService) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } else if (config.client instanceof DatabaseMigrationServiceClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected DatabaseMigrationService | DatabaseMigrationServiceClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + // @ts-ignore + return undefined; +} diff --git a/clients/client-database-migration-service/src/pagination/DescribeFleetAdvisorSchemaObjectSummaryPaginator.ts b/clients/client-database-migration-service/src/pagination/DescribeFleetAdvisorSchemaObjectSummaryPaginator.ts new file mode 100644 index 000000000000..1b4f1b13052e --- /dev/null +++ b/clients/client-database-migration-service/src/pagination/DescribeFleetAdvisorSchemaObjectSummaryPaginator.ts @@ -0,0 +1,61 @@ +// smithy-typescript generated code +import { Paginator } from "@aws-sdk/types"; + +import { + DescribeFleetAdvisorSchemaObjectSummaryCommand, + DescribeFleetAdvisorSchemaObjectSummaryCommandInput, + DescribeFleetAdvisorSchemaObjectSummaryCommandOutput, +} from "../commands/DescribeFleetAdvisorSchemaObjectSummaryCommand"; +import { DatabaseMigrationService } from "../DatabaseMigrationService"; +import { DatabaseMigrationServiceClient } from "../DatabaseMigrationServiceClient"; +import { DatabaseMigrationServicePaginationConfiguration } from "./Interfaces"; + +/** + * @private + */ +const makePagedClientRequest = async ( + client: DatabaseMigrationServiceClient, + input: DescribeFleetAdvisorSchemaObjectSummaryCommandInput, + ...args: any +): Promise => { + // @ts-ignore + return await client.send(new DescribeFleetAdvisorSchemaObjectSummaryCommand(input), ...args); +}; +/** + * @private + */ +const makePagedRequest = async ( + client: DatabaseMigrationService, + input: DescribeFleetAdvisorSchemaObjectSummaryCommandInput, + ...args: any +): Promise => { + // @ts-ignore + return await client.describeFleetAdvisorSchemaObjectSummary(input, ...args); +}; +export async function* paginateDescribeFleetAdvisorSchemaObjectSummary( + config: DatabaseMigrationServicePaginationConfiguration, + input: DescribeFleetAdvisorSchemaObjectSummaryCommandInput, + ...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: DescribeFleetAdvisorSchemaObjectSummaryCommandOutput; + while (hasNext) { + input.NextToken = token; + input["MaxRecords"] = config.pageSize; + if (config.client instanceof DatabaseMigrationService) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } else if (config.client instanceof DatabaseMigrationServiceClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected DatabaseMigrationService | DatabaseMigrationServiceClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + // @ts-ignore + return undefined; +} diff --git a/clients/client-database-migration-service/src/pagination/DescribeFleetAdvisorSchemasPaginator.ts b/clients/client-database-migration-service/src/pagination/DescribeFleetAdvisorSchemasPaginator.ts new file mode 100644 index 000000000000..cb2c597351b1 --- /dev/null +++ b/clients/client-database-migration-service/src/pagination/DescribeFleetAdvisorSchemasPaginator.ts @@ -0,0 +1,61 @@ +// smithy-typescript generated code +import { Paginator } from "@aws-sdk/types"; + +import { + DescribeFleetAdvisorSchemasCommand, + DescribeFleetAdvisorSchemasCommandInput, + DescribeFleetAdvisorSchemasCommandOutput, +} from "../commands/DescribeFleetAdvisorSchemasCommand"; +import { DatabaseMigrationService } from "../DatabaseMigrationService"; +import { DatabaseMigrationServiceClient } from "../DatabaseMigrationServiceClient"; +import { DatabaseMigrationServicePaginationConfiguration } from "./Interfaces"; + +/** + * @private + */ +const makePagedClientRequest = async ( + client: DatabaseMigrationServiceClient, + input: DescribeFleetAdvisorSchemasCommandInput, + ...args: any +): Promise => { + // @ts-ignore + return await client.send(new DescribeFleetAdvisorSchemasCommand(input), ...args); +}; +/** + * @private + */ +const makePagedRequest = async ( + client: DatabaseMigrationService, + input: DescribeFleetAdvisorSchemasCommandInput, + ...args: any +): Promise => { + // @ts-ignore + return await client.describeFleetAdvisorSchemas(input, ...args); +}; +export async function* paginateDescribeFleetAdvisorSchemas( + config: DatabaseMigrationServicePaginationConfiguration, + input: DescribeFleetAdvisorSchemasCommandInput, + ...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: DescribeFleetAdvisorSchemasCommandOutput; + while (hasNext) { + input.NextToken = token; + input["MaxRecords"] = config.pageSize; + if (config.client instanceof DatabaseMigrationService) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } else if (config.client instanceof DatabaseMigrationServiceClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected DatabaseMigrationService | DatabaseMigrationServiceClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + // @ts-ignore + return undefined; +} diff --git a/clients/client-database-migration-service/src/pagination/index.ts b/clients/client-database-migration-service/src/pagination/index.ts index 1d55d7d1383e..48d8fbccde3b 100644 --- a/clients/client-database-migration-service/src/pagination/index.ts +++ b/clients/client-database-migration-service/src/pagination/index.ts @@ -14,11 +14,16 @@ export * from "./DescribeEventSubscriptionsPaginator"; export * from "./DescribeEventsPaginator"; -export * from "./DescribeOrderableReplicationInstancesPaginator"; +export * from "./DescribeFleetAdvisorCollectorsPaginator"; -export * from "./DescribePendingMaintenanceActionsPaginator"; +export * from "./DescribeFleetAdvisorDatabasesPaginator"; // smithy-typescript generated code export * from "./Interfaces"; +export * from "./DescribeFleetAdvisorLsaAnalysisPaginator"; +export * from "./DescribeFleetAdvisorSchemaObjectSummaryPaginator"; +export * from "./DescribeFleetAdvisorSchemasPaginator"; +export * from "./DescribeOrderableReplicationInstancesPaginator"; +export * from "./DescribePendingMaintenanceActionsPaginator"; export * from "./DescribeReplicationInstanceTaskLogsPaginator"; export * from "./DescribeReplicationInstancesPaginator"; export * from "./DescribeReplicationSubnetGroupsPaginator"; diff --git a/clients/client-database-migration-service/src/protocols/Aws_json1_1.ts b/clients/client-database-migration-service/src/protocols/Aws_json1_1.ts index cbd1b5efa7ff..9a56dd060ba3 100644 --- a/clients/client-database-migration-service/src/protocols/Aws_json1_1.ts +++ b/clients/client-database-migration-service/src/protocols/Aws_json1_1.ts @@ -8,6 +8,7 @@ import { expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, + limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client"; import { @@ -31,6 +32,10 @@ import { CreateEventSubscriptionCommandInput, CreateEventSubscriptionCommandOutput, } from "../commands/CreateEventSubscriptionCommand"; +import { + CreateFleetAdvisorCollectorCommandInput, + CreateFleetAdvisorCollectorCommandOutput, +} from "../commands/CreateFleetAdvisorCollectorCommand"; import { CreateReplicationInstanceCommandInput, CreateReplicationInstanceCommandOutput, @@ -50,6 +55,14 @@ import { DeleteEventSubscriptionCommandInput, DeleteEventSubscriptionCommandOutput, } from "../commands/DeleteEventSubscriptionCommand"; +import { + DeleteFleetAdvisorCollectorCommandInput, + DeleteFleetAdvisorCollectorCommandOutput, +} from "../commands/DeleteFleetAdvisorCollectorCommand"; +import { + DeleteFleetAdvisorDatabasesCommandInput, + DeleteFleetAdvisorDatabasesCommandOutput, +} from "../commands/DeleteFleetAdvisorDatabasesCommand"; import { DeleteReplicationInstanceCommandInput, DeleteReplicationInstanceCommandOutput, @@ -100,6 +113,26 @@ import { DescribeEventSubscriptionsCommandInput, DescribeEventSubscriptionsCommandOutput, } from "../commands/DescribeEventSubscriptionsCommand"; +import { + DescribeFleetAdvisorCollectorsCommandInput, + DescribeFleetAdvisorCollectorsCommandOutput, +} from "../commands/DescribeFleetAdvisorCollectorsCommand"; +import { + DescribeFleetAdvisorDatabasesCommandInput, + DescribeFleetAdvisorDatabasesCommandOutput, +} from "../commands/DescribeFleetAdvisorDatabasesCommand"; +import { + DescribeFleetAdvisorLsaAnalysisCommandInput, + DescribeFleetAdvisorLsaAnalysisCommandOutput, +} from "../commands/DescribeFleetAdvisorLsaAnalysisCommand"; +import { + DescribeFleetAdvisorSchemaObjectSummaryCommandInput, + DescribeFleetAdvisorSchemaObjectSummaryCommandOutput, +} from "../commands/DescribeFleetAdvisorSchemaObjectSummaryCommand"; +import { + DescribeFleetAdvisorSchemasCommandInput, + DescribeFleetAdvisorSchemasCommandOutput, +} from "../commands/DescribeFleetAdvisorSchemasCommand"; import { DescribeOrderableReplicationInstancesCommandInput, DescribeOrderableReplicationInstancesCommandOutput, @@ -181,6 +214,10 @@ import { RemoveTagsFromResourceCommandInput, RemoveTagsFromResourceCommandOutput, } from "../commands/RemoveTagsFromResourceCommand"; +import { + RunFleetAdvisorLsaAnalysisCommandInput, + RunFleetAdvisorLsaAnalysisCommandOutput, +} from "../commands/RunFleetAdvisorLsaAnalysisCommand"; import { StartReplicationTaskAssessmentCommandInput, StartReplicationTaskAssessmentCommandOutput, @@ -210,25 +247,37 @@ import { CancelReplicationTaskAssessmentRunMessage, CancelReplicationTaskAssessmentRunResponse, Certificate, + CollectorHealthCheck, + CollectorNotFoundFault, + CollectorResponse, + CollectorShortInfoResponse, Connection, CreateEndpointMessage, CreateEndpointResponse, CreateEventSubscriptionMessage, CreateEventSubscriptionResponse, + CreateFleetAdvisorCollectorRequest, + CreateFleetAdvisorCollectorResponse, CreateReplicationInstanceMessage, CreateReplicationInstanceResponse, CreateReplicationSubnetGroupMessage, CreateReplicationSubnetGroupResponse, CreateReplicationTaskMessage, CreateReplicationTaskResponse, + DatabaseInstanceSoftwareDetailsResponse, + DatabaseResponse, + DatabaseShortInfoResponse, DeleteCertificateMessage, DeleteCertificateResponse, + DeleteCollectorRequest, DeleteConnectionMessage, DeleteConnectionResponse, DeleteEndpointMessage, DeleteEndpointResponse, DeleteEventSubscriptionMessage, DeleteEventSubscriptionResponse, + DeleteFleetAdvisorDatabasesRequest, + DeleteFleetAdvisorDatabasesResponse, DeleteReplicationInstanceMessage, DeleteReplicationInstanceResponse, DeleteReplicationSubnetGroupMessage, @@ -257,6 +306,16 @@ import { DescribeEventsResponse, DescribeEventSubscriptionsMessage, DescribeEventSubscriptionsResponse, + DescribeFleetAdvisorCollectorsRequest, + DescribeFleetAdvisorCollectorsResponse, + DescribeFleetAdvisorDatabasesRequest, + DescribeFleetAdvisorDatabasesResponse, + DescribeFleetAdvisorLsaAnalysisRequest, + DescribeFleetAdvisorLsaAnalysisResponse, + DescribeFleetAdvisorSchemaObjectSummaryRequest, + DescribeFleetAdvisorSchemaObjectSummaryResponse, + DescribeFleetAdvisorSchemasRequest, + DescribeFleetAdvisorSchemasResponse, DescribeOrderableReplicationInstancesMessage, DescribeOrderableReplicationInstancesResponse, DescribePendingMaintenanceActionsMessage, @@ -291,14 +350,18 @@ import { EventCategoryGroup, EventSubscription, Filter, + FleetAdvisorLsaAnalysisResponse, + FleetAdvisorSchemaObjectResponse, GcpMySQLSettings, IBMDb2Settings, ImportCertificateMessage, ImportCertificateResponse, InsufficientResourceCapacityFault, InvalidCertificateFault, + InvalidOperationFault, InvalidResourceStateFault, InvalidSubnet, + InventoryData, KafkaSettings, KinesisSettings, KMSAccessDeniedFault, @@ -356,9 +419,13 @@ import { ResourceNotFoundFault, ResourcePendingMaintenanceActions, ResourceQuotaExceededFault, + RunFleetAdvisorLsaAnalysisResponse, S3AccessDeniedFault, S3ResourceNotFoundFault, S3Settings, + SchemaResponse, + SchemaShortInfoResponse, + ServerShortInfoResponse, SNSInvalidTopicFault, SNSNoAuthorizationFault, StartReplicationTaskAssessmentMessage, @@ -448,6 +515,19 @@ export const serializeAws_json1_1CreateEventSubscriptionCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +export const serializeAws_json1_1CreateFleetAdvisorCollectorCommand = async ( + input: CreateFleetAdvisorCollectorCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonDMSv20160101.CreateFleetAdvisorCollector", + }; + let body: any; + body = JSON.stringify(serializeAws_json1_1CreateFleetAdvisorCollectorRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + export const serializeAws_json1_1CreateReplicationInstanceCommand = async ( input: CreateReplicationInstanceCommandInput, context: __SerdeContext @@ -539,6 +619,32 @@ export const serializeAws_json1_1DeleteEventSubscriptionCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +export const serializeAws_json1_1DeleteFleetAdvisorCollectorCommand = async ( + input: DeleteFleetAdvisorCollectorCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonDMSv20160101.DeleteFleetAdvisorCollector", + }; + let body: any; + body = JSON.stringify(serializeAws_json1_1DeleteCollectorRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +export const serializeAws_json1_1DeleteFleetAdvisorDatabasesCommand = async ( + input: DeleteFleetAdvisorDatabasesCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonDMSv20160101.DeleteFleetAdvisorDatabases", + }; + let body: any; + body = JSON.stringify(serializeAws_json1_1DeleteFleetAdvisorDatabasesRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + export const serializeAws_json1_1DeleteReplicationInstanceCommand = async ( input: DeleteReplicationInstanceCommandInput, context: __SerdeContext @@ -721,6 +827,71 @@ export const serializeAws_json1_1DescribeEventSubscriptionsCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +export const serializeAws_json1_1DescribeFleetAdvisorCollectorsCommand = async ( + input: DescribeFleetAdvisorCollectorsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonDMSv20160101.DescribeFleetAdvisorCollectors", + }; + let body: any; + body = JSON.stringify(serializeAws_json1_1DescribeFleetAdvisorCollectorsRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +export const serializeAws_json1_1DescribeFleetAdvisorDatabasesCommand = async ( + input: DescribeFleetAdvisorDatabasesCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonDMSv20160101.DescribeFleetAdvisorDatabases", + }; + let body: any; + body = JSON.stringify(serializeAws_json1_1DescribeFleetAdvisorDatabasesRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +export const serializeAws_json1_1DescribeFleetAdvisorLsaAnalysisCommand = async ( + input: DescribeFleetAdvisorLsaAnalysisCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonDMSv20160101.DescribeFleetAdvisorLsaAnalysis", + }; + let body: any; + body = JSON.stringify(serializeAws_json1_1DescribeFleetAdvisorLsaAnalysisRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +export const serializeAws_json1_1DescribeFleetAdvisorSchemaObjectSummaryCommand = async ( + input: DescribeFleetAdvisorSchemaObjectSummaryCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonDMSv20160101.DescribeFleetAdvisorSchemaObjectSummary", + }; + let body: any; + body = JSON.stringify(serializeAws_json1_1DescribeFleetAdvisorSchemaObjectSummaryRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +export const serializeAws_json1_1DescribeFleetAdvisorSchemasCommand = async ( + input: DescribeFleetAdvisorSchemasCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonDMSv20160101.DescribeFleetAdvisorSchemas", + }; + let body: any; + body = JSON.stringify(serializeAws_json1_1DescribeFleetAdvisorSchemasRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + export const serializeAws_json1_1DescribeOrderableReplicationInstancesCommand = async ( input: DescribeOrderableReplicationInstancesCommandInput, context: __SerdeContext @@ -1033,6 +1204,18 @@ export const serializeAws_json1_1RemoveTagsFromResourceCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +export const serializeAws_json1_1RunFleetAdvisorLsaAnalysisCommand = async ( + input: RunFleetAdvisorLsaAnalysisCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonDMSv20160101.RunFleetAdvisorLsaAnalysis", + }; + const body = "{}"; + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + export const serializeAws_json1_1StartReplicationTaskCommand = async ( input: StartReplicationTaskCommandInput, context: __SerdeContext @@ -1364,6 +1547,61 @@ const deserializeAws_json1_1CreateEventSubscriptionCommandError = async ( } }; +export const deserializeAws_json1_1CreateFleetAdvisorCollectorCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1CreateFleetAdvisorCollectorCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = deserializeAws_json1_1CreateFleetAdvisorCollectorResponse(data, context); + const response: CreateFleetAdvisorCollectorCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; + +const deserializeAws_json1_1CreateFleetAdvisorCollectorCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseBody(output.body, context), + }; + let response: __BaseException; + let errorCode = "UnknownError"; + errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedFault": + case "com.amazonaws.databasemigrationservice#AccessDeniedFault": + throw await deserializeAws_json1_1AccessDeniedFaultResponse(parsedOutput, context); + case "InvalidResourceStateFault": + case "com.amazonaws.databasemigrationservice#InvalidResourceStateFault": + throw await deserializeAws_json1_1InvalidResourceStateFaultResponse(parsedOutput, context); + case "ResourceQuotaExceededFault": + case "com.amazonaws.databasemigrationservice#ResourceQuotaExceededFault": + throw await deserializeAws_json1_1ResourceQuotaExceededFaultResponse(parsedOutput, context); + case "S3AccessDeniedFault": + case "com.amazonaws.databasemigrationservice#S3AccessDeniedFault": + throw await deserializeAws_json1_1S3AccessDeniedFaultResponse(parsedOutput, context); + case "S3ResourceNotFoundFault": + case "com.amazonaws.databasemigrationservice#S3ResourceNotFoundFault": + throw await deserializeAws_json1_1S3ResourceNotFoundFaultResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + response = new __BaseException({ + name: parsedBody.code || parsedBody.Code || errorCode, + $fault: "client", + $metadata: deserializeMetadata(output), + }); + throw __decorateServiceException(response, parsedBody); + } +}; + export const deserializeAws_json1_1CreateReplicationInstanceCommand = async ( output: __HttpResponse, context: __SerdeContext @@ -1737,6 +1975,95 @@ const deserializeAws_json1_1DeleteEventSubscriptionCommandError = async ( } }; +export const deserializeAws_json1_1DeleteFleetAdvisorCollectorCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DeleteFleetAdvisorCollectorCommandError(output, context); + } + await collectBody(output.body, context); + const response: DeleteFleetAdvisorCollectorCommandOutput = { + $metadata: deserializeMetadata(output), + }; + return Promise.resolve(response); +}; + +const deserializeAws_json1_1DeleteFleetAdvisorCollectorCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseBody(output.body, context), + }; + let response: __BaseException; + let errorCode = "UnknownError"; + errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "CollectorNotFoundFault": + case "com.amazonaws.databasemigrationservice#CollectorNotFoundFault": + throw await deserializeAws_json1_1CollectorNotFoundFaultResponse(parsedOutput, context); + case "InvalidResourceStateFault": + case "com.amazonaws.databasemigrationservice#InvalidResourceStateFault": + throw await deserializeAws_json1_1InvalidResourceStateFaultResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + response = new __BaseException({ + name: parsedBody.code || parsedBody.Code || errorCode, + $fault: "client", + $metadata: deserializeMetadata(output), + }); + throw __decorateServiceException(response, parsedBody); + } +}; + +export const deserializeAws_json1_1DeleteFleetAdvisorDatabasesCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DeleteFleetAdvisorDatabasesCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = deserializeAws_json1_1DeleteFleetAdvisorDatabasesResponse(data, context); + const response: DeleteFleetAdvisorDatabasesCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; + +const deserializeAws_json1_1DeleteFleetAdvisorDatabasesCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseBody(output.body, context), + }; + let response: __BaseException; + let errorCode = "UnknownError"; + errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InvalidOperationFault": + case "com.amazonaws.databasemigrationservice#InvalidOperationFault": + throw await deserializeAws_json1_1InvalidOperationFaultResponse(parsedOutput, context); + case "ResourceNotFoundFault": + case "com.amazonaws.databasemigrationservice#ResourceNotFoundFault": + throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + response = new __BaseException({ + name: parsedBody.code || parsedBody.Code || errorCode, + $fault: "client", + $metadata: deserializeMetadata(output), + }); + throw __decorateServiceException(response, parsedBody); + } +}; + export const deserializeAws_json1_1DeleteReplicationInstanceCommand = async ( output: __HttpResponse, context: __SerdeContext @@ -2345,27 +2672,27 @@ const deserializeAws_json1_1DescribeEventSubscriptionsCommandError = async ( } }; -export const deserializeAws_json1_1DescribeOrderableReplicationInstancesCommand = async ( +export const deserializeAws_json1_1DescribeFleetAdvisorCollectorsCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeOrderableReplicationInstancesCommandError(output, context); + return deserializeAws_json1_1DescribeFleetAdvisorCollectorsCommandError(output, context); } const data: any = await parseBody(output.body, context); let contents: any = {}; - contents = deserializeAws_json1_1DescribeOrderableReplicationInstancesResponse(data, context); - const response: DescribeOrderableReplicationInstancesCommandOutput = { + contents = deserializeAws_json1_1DescribeFleetAdvisorCollectorsResponse(data, context); + const response: DescribeFleetAdvisorCollectorsCommandOutput = { $metadata: deserializeMetadata(output), ...contents, }; return Promise.resolve(response); }; -const deserializeAws_json1_1DescribeOrderableReplicationInstancesCommandError = async ( +const deserializeAws_json1_1DescribeFleetAdvisorCollectorsCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseBody(output.body, context), @@ -2374,6 +2701,9 @@ const deserializeAws_json1_1DescribeOrderableReplicationInstancesCommandError = let errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { + case "InvalidResourceStateFault": + case "com.amazonaws.databasemigrationservice#InvalidResourceStateFault": + throw await deserializeAws_json1_1InvalidResourceStateFaultResponse(parsedOutput, context); default: const parsedBody = parsedOutput.body; response = new __BaseException({ @@ -2385,27 +2715,27 @@ const deserializeAws_json1_1DescribeOrderableReplicationInstancesCommandError = } }; -export const deserializeAws_json1_1DescribePendingMaintenanceActionsCommand = async ( +export const deserializeAws_json1_1DescribeFleetAdvisorDatabasesCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribePendingMaintenanceActionsCommandError(output, context); + return deserializeAws_json1_1DescribeFleetAdvisorDatabasesCommandError(output, context); } const data: any = await parseBody(output.body, context); let contents: any = {}; - contents = deserializeAws_json1_1DescribePendingMaintenanceActionsResponse(data, context); - const response: DescribePendingMaintenanceActionsCommandOutput = { + contents = deserializeAws_json1_1DescribeFleetAdvisorDatabasesResponse(data, context); + const response: DescribeFleetAdvisorDatabasesCommandOutput = { $metadata: deserializeMetadata(output), ...contents, }; return Promise.resolve(response); }; -const deserializeAws_json1_1DescribePendingMaintenanceActionsCommandError = async ( +const deserializeAws_json1_1DescribeFleetAdvisorDatabasesCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseBody(output.body, context), @@ -2414,9 +2744,9 @@ const deserializeAws_json1_1DescribePendingMaintenanceActionsCommandError = asyn let errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "ResourceNotFoundFault": - case "com.amazonaws.databasemigrationservice#ResourceNotFoundFault": - throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context); + case "InvalidResourceStateFault": + case "com.amazonaws.databasemigrationservice#InvalidResourceStateFault": + throw await deserializeAws_json1_1InvalidResourceStateFaultResponse(parsedOutput, context); default: const parsedBody = parsedOutput.body; response = new __BaseException({ @@ -2428,27 +2758,27 @@ const deserializeAws_json1_1DescribePendingMaintenanceActionsCommandError = asyn } }; -export const deserializeAws_json1_1DescribeRefreshSchemasStatusCommand = async ( +export const deserializeAws_json1_1DescribeFleetAdvisorLsaAnalysisCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeRefreshSchemasStatusCommandError(output, context); + return deserializeAws_json1_1DescribeFleetAdvisorLsaAnalysisCommandError(output, context); } const data: any = await parseBody(output.body, context); let contents: any = {}; - contents = deserializeAws_json1_1DescribeRefreshSchemasStatusResponse(data, context); - const response: DescribeRefreshSchemasStatusCommandOutput = { + contents = deserializeAws_json1_1DescribeFleetAdvisorLsaAnalysisResponse(data, context); + const response: DescribeFleetAdvisorLsaAnalysisCommandOutput = { $metadata: deserializeMetadata(output), ...contents, }; return Promise.resolve(response); }; -const deserializeAws_json1_1DescribeRefreshSchemasStatusCommandError = async ( +const deserializeAws_json1_1DescribeFleetAdvisorLsaAnalysisCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseBody(output.body, context), @@ -2460,9 +2790,6 @@ const deserializeAws_json1_1DescribeRefreshSchemasStatusCommandError = async ( case "InvalidResourceStateFault": case "com.amazonaws.databasemigrationservice#InvalidResourceStateFault": throw await deserializeAws_json1_1InvalidResourceStateFaultResponse(parsedOutput, context); - case "ResourceNotFoundFault": - case "com.amazonaws.databasemigrationservice#ResourceNotFoundFault": - throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context); default: const parsedBody = parsedOutput.body; response = new __BaseException({ @@ -2474,27 +2801,27 @@ const deserializeAws_json1_1DescribeRefreshSchemasStatusCommandError = async ( } }; -export const deserializeAws_json1_1DescribeReplicationInstancesCommand = async ( +export const deserializeAws_json1_1DescribeFleetAdvisorSchemaObjectSummaryCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeReplicationInstancesCommandError(output, context); + return deserializeAws_json1_1DescribeFleetAdvisorSchemaObjectSummaryCommandError(output, context); } const data: any = await parseBody(output.body, context); let contents: any = {}; - contents = deserializeAws_json1_1DescribeReplicationInstancesResponse(data, context); - const response: DescribeReplicationInstancesCommandOutput = { + contents = deserializeAws_json1_1DescribeFleetAdvisorSchemaObjectSummaryResponse(data, context); + const response: DescribeFleetAdvisorSchemaObjectSummaryCommandOutput = { $metadata: deserializeMetadata(output), ...contents, }; return Promise.resolve(response); }; -const deserializeAws_json1_1DescribeReplicationInstancesCommandError = async ( +const deserializeAws_json1_1DescribeFleetAdvisorSchemaObjectSummaryCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseBody(output.body, context), @@ -2503,9 +2830,9 @@ const deserializeAws_json1_1DescribeReplicationInstancesCommandError = async ( let errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "ResourceNotFoundFault": - case "com.amazonaws.databasemigrationservice#ResourceNotFoundFault": - throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context); + case "InvalidResourceStateFault": + case "com.amazonaws.databasemigrationservice#InvalidResourceStateFault": + throw await deserializeAws_json1_1InvalidResourceStateFaultResponse(parsedOutput, context); default: const parsedBody = parsedOutput.body; response = new __BaseException({ @@ -2517,16 +2844,231 @@ const deserializeAws_json1_1DescribeReplicationInstancesCommandError = async ( } }; -export const deserializeAws_json1_1DescribeReplicationInstanceTaskLogsCommand = async ( +export const deserializeAws_json1_1DescribeFleetAdvisorSchemasCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeReplicationInstanceTaskLogsCommandError(output, context); + return deserializeAws_json1_1DescribeFleetAdvisorSchemasCommandError(output, context); } const data: any = await parseBody(output.body, context); let contents: any = {}; - contents = deserializeAws_json1_1DescribeReplicationInstanceTaskLogsResponse(data, context); + contents = deserializeAws_json1_1DescribeFleetAdvisorSchemasResponse(data, context); + const response: DescribeFleetAdvisorSchemasCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; + +const deserializeAws_json1_1DescribeFleetAdvisorSchemasCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseBody(output.body, context), + }; + let response: __BaseException; + let errorCode = "UnknownError"; + errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InvalidResourceStateFault": + case "com.amazonaws.databasemigrationservice#InvalidResourceStateFault": + throw await deserializeAws_json1_1InvalidResourceStateFaultResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + response = new __BaseException({ + name: parsedBody.code || parsedBody.Code || errorCode, + $fault: "client", + $metadata: deserializeMetadata(output), + }); + throw __decorateServiceException(response, parsedBody); + } +}; + +export const deserializeAws_json1_1DescribeOrderableReplicationInstancesCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DescribeOrderableReplicationInstancesCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = deserializeAws_json1_1DescribeOrderableReplicationInstancesResponse(data, context); + const response: DescribeOrderableReplicationInstancesCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; + +const deserializeAws_json1_1DescribeOrderableReplicationInstancesCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseBody(output.body, context), + }; + let response: __BaseException; + let errorCode = "UnknownError"; + errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + default: + const parsedBody = parsedOutput.body; + response = new __BaseException({ + name: parsedBody.code || parsedBody.Code || errorCode, + $fault: "client", + $metadata: deserializeMetadata(output), + }); + throw __decorateServiceException(response, parsedBody); + } +}; + +export const deserializeAws_json1_1DescribePendingMaintenanceActionsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DescribePendingMaintenanceActionsCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = deserializeAws_json1_1DescribePendingMaintenanceActionsResponse(data, context); + const response: DescribePendingMaintenanceActionsCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; + +const deserializeAws_json1_1DescribePendingMaintenanceActionsCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseBody(output.body, context), + }; + let response: __BaseException; + let errorCode = "UnknownError"; + errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ResourceNotFoundFault": + case "com.amazonaws.databasemigrationservice#ResourceNotFoundFault": + throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + response = new __BaseException({ + name: parsedBody.code || parsedBody.Code || errorCode, + $fault: "client", + $metadata: deserializeMetadata(output), + }); + throw __decorateServiceException(response, parsedBody); + } +}; + +export const deserializeAws_json1_1DescribeRefreshSchemasStatusCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DescribeRefreshSchemasStatusCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = deserializeAws_json1_1DescribeRefreshSchemasStatusResponse(data, context); + const response: DescribeRefreshSchemasStatusCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; + +const deserializeAws_json1_1DescribeRefreshSchemasStatusCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseBody(output.body, context), + }; + let response: __BaseException; + let errorCode = "UnknownError"; + errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InvalidResourceStateFault": + case "com.amazonaws.databasemigrationservice#InvalidResourceStateFault": + throw await deserializeAws_json1_1InvalidResourceStateFaultResponse(parsedOutput, context); + case "ResourceNotFoundFault": + case "com.amazonaws.databasemigrationservice#ResourceNotFoundFault": + throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + response = new __BaseException({ + name: parsedBody.code || parsedBody.Code || errorCode, + $fault: "client", + $metadata: deserializeMetadata(output), + }); + throw __decorateServiceException(response, parsedBody); + } +}; + +export const deserializeAws_json1_1DescribeReplicationInstancesCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DescribeReplicationInstancesCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = deserializeAws_json1_1DescribeReplicationInstancesResponse(data, context); + const response: DescribeReplicationInstancesCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; + +const deserializeAws_json1_1DescribeReplicationInstancesCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseBody(output.body, context), + }; + let response: __BaseException; + let errorCode = "UnknownError"; + errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ResourceNotFoundFault": + case "com.amazonaws.databasemigrationservice#ResourceNotFoundFault": + throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + response = new __BaseException({ + name: parsedBody.code || parsedBody.Code || errorCode, + $fault: "client", + $metadata: deserializeMetadata(output), + }); + throw __decorateServiceException(response, parsedBody); + } +}; + +export const deserializeAws_json1_1DescribeReplicationInstanceTaskLogsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DescribeReplicationInstanceTaskLogsCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = deserializeAws_json1_1DescribeReplicationInstanceTaskLogsResponse(data, context); const response: DescribeReplicationInstanceTaskLogsCommandOutput = { $metadata: deserializeMetadata(output), ...contents, @@ -3497,6 +4039,52 @@ const deserializeAws_json1_1RemoveTagsFromResourceCommandError = async ( } }; +export const deserializeAws_json1_1RunFleetAdvisorLsaAnalysisCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1RunFleetAdvisorLsaAnalysisCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = deserializeAws_json1_1RunFleetAdvisorLsaAnalysisResponse(data, context); + const response: RunFleetAdvisorLsaAnalysisCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; + +const deserializeAws_json1_1RunFleetAdvisorLsaAnalysisCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseBody(output.body, context), + }; + let response: __BaseException; + let errorCode = "UnknownError"; + errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InvalidResourceStateFault": + case "com.amazonaws.databasemigrationservice#InvalidResourceStateFault": + throw await deserializeAws_json1_1InvalidResourceStateFaultResponse(parsedOutput, context); + case "ResourceNotFoundFault": + case "com.amazonaws.databasemigrationservice#ResourceNotFoundFault": + throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + response = new __BaseException({ + name: parsedBody.code || parsedBody.Code || errorCode, + $fault: "client", + $metadata: deserializeMetadata(output), + }); + throw __decorateServiceException(response, parsedBody); + } +}; + export const deserializeAws_json1_1StartReplicationTaskCommand = async ( output: __HttpResponse, context: __SerdeContext @@ -3782,6 +4370,19 @@ const deserializeAws_json1_1AccessDeniedFaultResponse = async ( return __decorateServiceException(exception, body); }; +const deserializeAws_json1_1CollectorNotFoundFaultResponse = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const body = parsedOutput.body; + const deserialized: any = deserializeAws_json1_1CollectorNotFoundFault(body, context); + const exception = new CollectorNotFoundFault({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return __decorateServiceException(exception, body); +}; + const deserializeAws_json1_1InsufficientResourceCapacityFaultResponse = async ( parsedOutput: any, context: __SerdeContext @@ -3808,6 +4409,19 @@ const deserializeAws_json1_1InvalidCertificateFaultResponse = async ( return __decorateServiceException(exception, body); }; +const deserializeAws_json1_1InvalidOperationFaultResponse = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const body = parsedOutput.body; + const deserialized: any = deserializeAws_json1_1InvalidOperationFault(body, context); + const exception = new InvalidOperationFault({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return __decorateServiceException(exception, body); +}; + const deserializeAws_json1_1InvalidResourceStateFaultResponse = async ( parsedOutput: any, context: __SerdeContext @@ -4233,6 +4847,19 @@ const serializeAws_json1_1CreateEventSubscriptionMessage = ( }; }; +const serializeAws_json1_1CreateFleetAdvisorCollectorRequest = ( + input: CreateFleetAdvisorCollectorRequest, + context: __SerdeContext +): any => { + return { + ...(input.CollectorName !== undefined && input.CollectorName !== null && { CollectorName: input.CollectorName }), + ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }), + ...(input.S3BucketName !== undefined && input.S3BucketName !== null && { S3BucketName: input.S3BucketName }), + ...(input.ServiceAccessRoleArn !== undefined && + input.ServiceAccessRoleArn !== null && { ServiceAccessRoleArn: input.ServiceAccessRoleArn }), + }; +}; + const serializeAws_json1_1CreateReplicationInstanceMessage = ( input: CreateReplicationInstanceMessage, context: __SerdeContext @@ -4332,6 +4959,13 @@ const serializeAws_json1_1DeleteCertificateMessage = ( }; }; +const serializeAws_json1_1DeleteCollectorRequest = (input: DeleteCollectorRequest, context: __SerdeContext): any => { + return { + ...(input.CollectorReferencedId !== undefined && + input.CollectorReferencedId !== null && { CollectorReferencedId: input.CollectorReferencedId }), + }; +}; + const serializeAws_json1_1DeleteConnectionMessage = (input: DeleteConnectionMessage, context: __SerdeContext): any => { return { ...(input.EndpointArn !== undefined && input.EndpointArn !== null && { EndpointArn: input.EndpointArn }), @@ -4356,6 +4990,16 @@ const serializeAws_json1_1DeleteEventSubscriptionMessage = ( }; }; +const serializeAws_json1_1DeleteFleetAdvisorDatabasesRequest = ( + input: DeleteFleetAdvisorDatabasesRequest, + context: __SerdeContext +): any => { + return { + ...(input.DatabaseIds !== undefined && + input.DatabaseIds !== null && { DatabaseIds: serializeAws_json1_1StringList(input.DatabaseIds, context) }), + }; +}; + const serializeAws_json1_1DeleteReplicationInstanceMessage = ( input: DeleteReplicationInstanceMessage, context: __SerdeContext @@ -4496,38 +5140,96 @@ const serializeAws_json1_1DescribeEventCategoriesMessage = ( }; }; -const serializeAws_json1_1DescribeEventsMessage = (input: DescribeEventsMessage, context: __SerdeContext): any => { +const serializeAws_json1_1DescribeEventsMessage = (input: DescribeEventsMessage, context: __SerdeContext): any => { + return { + ...(input.Duration !== undefined && input.Duration !== null && { Duration: input.Duration }), + ...(input.EndTime !== undefined && + input.EndTime !== null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }), + ...(input.EventCategories !== undefined && + input.EventCategories !== null && { + EventCategories: serializeAws_json1_1EventCategoriesList(input.EventCategories, context), + }), + ...(input.Filters !== undefined && + input.Filters !== null && { Filters: serializeAws_json1_1FilterList(input.Filters, context) }), + ...(input.Marker !== undefined && input.Marker !== null && { Marker: input.Marker }), + ...(input.MaxRecords !== undefined && input.MaxRecords !== null && { MaxRecords: input.MaxRecords }), + ...(input.SourceIdentifier !== undefined && + input.SourceIdentifier !== null && { SourceIdentifier: input.SourceIdentifier }), + ...(input.SourceType !== undefined && input.SourceType !== null && { SourceType: input.SourceType }), + ...(input.StartTime !== undefined && + input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }), + }; +}; + +const serializeAws_json1_1DescribeEventSubscriptionsMessage = ( + input: DescribeEventSubscriptionsMessage, + context: __SerdeContext +): any => { + return { + ...(input.Filters !== undefined && + input.Filters !== null && { Filters: serializeAws_json1_1FilterList(input.Filters, context) }), + ...(input.Marker !== undefined && input.Marker !== null && { Marker: input.Marker }), + ...(input.MaxRecords !== undefined && input.MaxRecords !== null && { MaxRecords: input.MaxRecords }), + ...(input.SubscriptionName !== undefined && + input.SubscriptionName !== null && { SubscriptionName: input.SubscriptionName }), + }; +}; + +const serializeAws_json1_1DescribeFleetAdvisorCollectorsRequest = ( + input: DescribeFleetAdvisorCollectorsRequest, + context: __SerdeContext +): any => { + return { + ...(input.Filters !== undefined && + input.Filters !== null && { Filters: serializeAws_json1_1FilterList(input.Filters, context) }), + ...(input.MaxRecords !== undefined && input.MaxRecords !== null && { MaxRecords: input.MaxRecords }), + ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }), + }; +}; + +const serializeAws_json1_1DescribeFleetAdvisorDatabasesRequest = ( + input: DescribeFleetAdvisorDatabasesRequest, + context: __SerdeContext +): any => { + return { + ...(input.Filters !== undefined && + input.Filters !== null && { Filters: serializeAws_json1_1FilterList(input.Filters, context) }), + ...(input.MaxRecords !== undefined && input.MaxRecords !== null && { MaxRecords: input.MaxRecords }), + ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }), + }; +}; + +const serializeAws_json1_1DescribeFleetAdvisorLsaAnalysisRequest = ( + input: DescribeFleetAdvisorLsaAnalysisRequest, + context: __SerdeContext +): any => { + return { + ...(input.MaxRecords !== undefined && input.MaxRecords !== null && { MaxRecords: input.MaxRecords }), + ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }), + }; +}; + +const serializeAws_json1_1DescribeFleetAdvisorSchemaObjectSummaryRequest = ( + input: DescribeFleetAdvisorSchemaObjectSummaryRequest, + context: __SerdeContext +): any => { return { - ...(input.Duration !== undefined && input.Duration !== null && { Duration: input.Duration }), - ...(input.EndTime !== undefined && - input.EndTime !== null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }), - ...(input.EventCategories !== undefined && - input.EventCategories !== null && { - EventCategories: serializeAws_json1_1EventCategoriesList(input.EventCategories, context), - }), ...(input.Filters !== undefined && input.Filters !== null && { Filters: serializeAws_json1_1FilterList(input.Filters, context) }), - ...(input.Marker !== undefined && input.Marker !== null && { Marker: input.Marker }), ...(input.MaxRecords !== undefined && input.MaxRecords !== null && { MaxRecords: input.MaxRecords }), - ...(input.SourceIdentifier !== undefined && - input.SourceIdentifier !== null && { SourceIdentifier: input.SourceIdentifier }), - ...(input.SourceType !== undefined && input.SourceType !== null && { SourceType: input.SourceType }), - ...(input.StartTime !== undefined && - input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }), + ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }), }; }; -const serializeAws_json1_1DescribeEventSubscriptionsMessage = ( - input: DescribeEventSubscriptionsMessage, +const serializeAws_json1_1DescribeFleetAdvisorSchemasRequest = ( + input: DescribeFleetAdvisorSchemasRequest, context: __SerdeContext ): any => { return { ...(input.Filters !== undefined && input.Filters !== null && { Filters: serializeAws_json1_1FilterList(input.Filters, context) }), - ...(input.Marker !== undefined && input.Marker !== null && { Marker: input.Marker }), ...(input.MaxRecords !== undefined && input.MaxRecords !== null && { MaxRecords: input.MaxRecords }), - ...(input.SubscriptionName !== undefined && - input.SubscriptionName !== null && { SubscriptionName: input.SubscriptionName }), + ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }), }; }; @@ -5604,6 +6306,17 @@ const serializeAws_json1_1StopReplicationTaskMessage = ( }; }; +const serializeAws_json1_1StringList = (input: string[], context: __SerdeContext): any => { + return input + .filter((e: any) => e != null) + .map((entry) => { + if (entry === null) { + return null as any; + } + return entry; + }); +}; + const serializeAws_json1_1SubnetIdentifierList = (input: string[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) @@ -5799,6 +6512,79 @@ const deserializeAws_json1_1CertificateList = (output: any, context: __SerdeCont return retVal; }; +const deserializeAws_json1_1CollectorHealthCheck = (output: any, context: __SerdeContext): CollectorHealthCheck => { + return { + CollectorStatus: __expectString(output.CollectorStatus), + LocalCollectorS3Access: __expectBoolean(output.LocalCollectorS3Access), + WebCollectorGrantedRoleBasedAccess: __expectBoolean(output.WebCollectorGrantedRoleBasedAccess), + WebCollectorS3Access: __expectBoolean(output.WebCollectorS3Access), + } as any; +}; + +const deserializeAws_json1_1CollectorNotFoundFault = (output: any, context: __SerdeContext): CollectorNotFoundFault => { + return { + message: __expectString(output.message), + } as any; +}; + +const deserializeAws_json1_1CollectorResponse = (output: any, context: __SerdeContext): CollectorResponse => { + return { + CollectorHealthCheck: + output.CollectorHealthCheck !== undefined && output.CollectorHealthCheck !== null + ? deserializeAws_json1_1CollectorHealthCheck(output.CollectorHealthCheck, context) + : undefined, + CollectorName: __expectString(output.CollectorName), + CollectorReferencedId: __expectString(output.CollectorReferencedId), + CollectorVersion: __expectString(output.CollectorVersion), + CreatedDate: __expectString(output.CreatedDate), + Description: __expectString(output.Description), + InventoryData: + output.InventoryData !== undefined && output.InventoryData !== null + ? deserializeAws_json1_1InventoryData(output.InventoryData, context) + : undefined, + LastDataReceived: __expectString(output.LastDataReceived), + ModifiedDate: __expectString(output.ModifiedDate), + RegisteredDate: __expectString(output.RegisteredDate), + S3BucketName: __expectString(output.S3BucketName), + ServiceAccessRoleArn: __expectString(output.ServiceAccessRoleArn), + VersionStatus: __expectString(output.VersionStatus), + } as any; +}; + +const deserializeAws_json1_1CollectorResponses = (output: any, context: __SerdeContext): CollectorResponse[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + if (entry === null) { + return null as any; + } + return deserializeAws_json1_1CollectorResponse(entry, context); + }); + return retVal; +}; + +const deserializeAws_json1_1CollectorShortInfoResponse = ( + output: any, + context: __SerdeContext +): CollectorShortInfoResponse => { + return { + CollectorName: __expectString(output.CollectorName), + CollectorReferencedId: __expectString(output.CollectorReferencedId), + } as any; +}; + +const deserializeAws_json1_1CollectorsList = (output: any, context: __SerdeContext): CollectorShortInfoResponse[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + if (entry === null) { + return null as any; + } + return deserializeAws_json1_1CollectorShortInfoResponse(entry, context); + }); + return retVal; +}; + const deserializeAws_json1_1Connection = (output: any, context: __SerdeContext): Connection => { return { EndpointArn: __expectString(output.EndpointArn), @@ -5843,6 +6629,19 @@ const deserializeAws_json1_1CreateEventSubscriptionResponse = ( } as any; }; +const deserializeAws_json1_1CreateFleetAdvisorCollectorResponse = ( + output: any, + context: __SerdeContext +): CreateFleetAdvisorCollectorResponse => { + return { + CollectorName: __expectString(output.CollectorName), + CollectorReferencedId: __expectString(output.CollectorReferencedId), + Description: __expectString(output.Description), + S3BucketName: __expectString(output.S3BucketName), + ServiceAccessRoleArn: __expectString(output.ServiceAccessRoleArn), + } as any; +}; + const deserializeAws_json1_1CreateReplicationInstanceResponse = ( output: any, context: __SerdeContext @@ -5879,6 +6678,66 @@ const deserializeAws_json1_1CreateReplicationTaskResponse = ( } as any; }; +const deserializeAws_json1_1DatabaseInstanceSoftwareDetailsResponse = ( + output: any, + context: __SerdeContext +): DatabaseInstanceSoftwareDetailsResponse => { + return { + Engine: __expectString(output.Engine), + EngineEdition: __expectString(output.EngineEdition), + EngineVersion: __expectString(output.EngineVersion), + OsArchitecture: __expectInt32(output.OsArchitecture), + ServicePack: __expectString(output.ServicePack), + SupportLevel: __expectString(output.SupportLevel), + Tooltip: __expectString(output.Tooltip), + } as any; +}; + +const deserializeAws_json1_1DatabaseList = (output: any, context: __SerdeContext): DatabaseResponse[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + if (entry === null) { + return null as any; + } + return deserializeAws_json1_1DatabaseResponse(entry, context); + }); + return retVal; +}; + +const deserializeAws_json1_1DatabaseResponse = (output: any, context: __SerdeContext): DatabaseResponse => { + return { + Collectors: + output.Collectors !== undefined && output.Collectors !== null + ? deserializeAws_json1_1CollectorsList(output.Collectors, context) + : undefined, + DatabaseId: __expectString(output.DatabaseId), + DatabaseName: __expectString(output.DatabaseName), + IpAddress: __expectString(output.IpAddress), + NumberOfSchemas: __expectLong(output.NumberOfSchemas), + Server: + output.Server !== undefined && output.Server !== null + ? deserializeAws_json1_1ServerShortInfoResponse(output.Server, context) + : undefined, + SoftwareDetails: + output.SoftwareDetails !== undefined && output.SoftwareDetails !== null + ? deserializeAws_json1_1DatabaseInstanceSoftwareDetailsResponse(output.SoftwareDetails, context) + : undefined, + } as any; +}; + +const deserializeAws_json1_1DatabaseShortInfoResponse = ( + output: any, + context: __SerdeContext +): DatabaseShortInfoResponse => { + return { + DatabaseEngine: __expectString(output.DatabaseEngine), + DatabaseId: __expectString(output.DatabaseId), + DatabaseIpAddress: __expectString(output.DatabaseIpAddress), + DatabaseName: __expectString(output.DatabaseName), + } as any; +}; + const deserializeAws_json1_1DeleteCertificateResponse = ( output: any, context: __SerdeContext @@ -5924,6 +6783,18 @@ const deserializeAws_json1_1DeleteEventSubscriptionResponse = ( } as any; }; +const deserializeAws_json1_1DeleteFleetAdvisorDatabasesResponse = ( + output: any, + context: __SerdeContext +): DeleteFleetAdvisorDatabasesResponse => { + return { + DatabaseIds: + output.DatabaseIds !== undefined && output.DatabaseIds !== null + ? deserializeAws_json1_1StringList(output.DatabaseIds, context) + : undefined, + } as any; +}; + const deserializeAws_json1_1DeleteReplicationInstanceResponse = ( output: any, context: __SerdeContext @@ -6093,6 +6964,71 @@ const deserializeAws_json1_1DescribeEventSubscriptionsResponse = ( } as any; }; +const deserializeAws_json1_1DescribeFleetAdvisorCollectorsResponse = ( + output: any, + context: __SerdeContext +): DescribeFleetAdvisorCollectorsResponse => { + return { + Collectors: + output.Collectors !== undefined && output.Collectors !== null + ? deserializeAws_json1_1CollectorResponses(output.Collectors, context) + : undefined, + NextToken: __expectString(output.NextToken), + } as any; +}; + +const deserializeAws_json1_1DescribeFleetAdvisorDatabasesResponse = ( + output: any, + context: __SerdeContext +): DescribeFleetAdvisorDatabasesResponse => { + return { + Databases: + output.Databases !== undefined && output.Databases !== null + ? deserializeAws_json1_1DatabaseList(output.Databases, context) + : undefined, + NextToken: __expectString(output.NextToken), + } as any; +}; + +const deserializeAws_json1_1DescribeFleetAdvisorLsaAnalysisResponse = ( + output: any, + context: __SerdeContext +): DescribeFleetAdvisorLsaAnalysisResponse => { + return { + Analysis: + output.Analysis !== undefined && output.Analysis !== null + ? deserializeAws_json1_1FleetAdvisorLsaAnalysisResponseList(output.Analysis, context) + : undefined, + NextToken: __expectString(output.NextToken), + } as any; +}; + +const deserializeAws_json1_1DescribeFleetAdvisorSchemaObjectSummaryResponse = ( + output: any, + context: __SerdeContext +): DescribeFleetAdvisorSchemaObjectSummaryResponse => { + return { + FleetAdvisorSchemaObjects: + output.FleetAdvisorSchemaObjects !== undefined && output.FleetAdvisorSchemaObjects !== null + ? deserializeAws_json1_1FleetAdvisorSchemaObjectList(output.FleetAdvisorSchemaObjects, context) + : undefined, + NextToken: __expectString(output.NextToken), + } as any; +}; + +const deserializeAws_json1_1DescribeFleetAdvisorSchemasResponse = ( + output: any, + context: __SerdeContext +): DescribeFleetAdvisorSchemasResponse => { + return { + FleetAdvisorSchemas: + output.FleetAdvisorSchemas !== undefined && output.FleetAdvisorSchemas !== null + ? deserializeAws_json1_1FleetAdvisorSchemaList(output.FleetAdvisorSchemas, context) + : undefined, + NextToken: __expectString(output.NextToken), + } as any; +}; + const deserializeAws_json1_1DescribeOrderableReplicationInstancesResponse = ( output: any, context: __SerdeContext @@ -6533,6 +7469,71 @@ const deserializeAws_json1_1EventSubscriptionsList = (output: any, context: __Se return retVal; }; +const deserializeAws_json1_1FleetAdvisorLsaAnalysisResponse = ( + output: any, + context: __SerdeContext +): FleetAdvisorLsaAnalysisResponse => { + return { + LsaAnalysisId: __expectString(output.LsaAnalysisId), + Status: __expectString(output.Status), + } as any; +}; + +const deserializeAws_json1_1FleetAdvisorLsaAnalysisResponseList = ( + output: any, + context: __SerdeContext +): FleetAdvisorLsaAnalysisResponse[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + if (entry === null) { + return null as any; + } + return deserializeAws_json1_1FleetAdvisorLsaAnalysisResponse(entry, context); + }); + return retVal; +}; + +const deserializeAws_json1_1FleetAdvisorSchemaList = (output: any, context: __SerdeContext): SchemaResponse[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + if (entry === null) { + return null as any; + } + return deserializeAws_json1_1SchemaResponse(entry, context); + }); + return retVal; +}; + +const deserializeAws_json1_1FleetAdvisorSchemaObjectList = ( + output: any, + context: __SerdeContext +): FleetAdvisorSchemaObjectResponse[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + if (entry === null) { + return null as any; + } + return deserializeAws_json1_1FleetAdvisorSchemaObjectResponse(entry, context); + }); + return retVal; +}; + +const deserializeAws_json1_1FleetAdvisorSchemaObjectResponse = ( + output: any, + context: __SerdeContext +): FleetAdvisorSchemaObjectResponse => { + return { + CodeLineCount: __expectLong(output.CodeLineCount), + CodeSize: __expectLong(output.CodeSize), + NumberOfObjects: __expectLong(output.NumberOfObjects), + ObjectType: __expectString(output.ObjectType), + SchemaId: __expectString(output.SchemaId), + } as any; +}; + const deserializeAws_json1_1GcpMySQLSettings = (output: any, context: __SerdeContext): GcpMySQLSettings => { return { AfterConnectScript: __expectString(output.AfterConnectScript), @@ -6621,6 +7622,12 @@ const deserializeAws_json1_1InvalidCertificateFault = ( } as any; }; +const deserializeAws_json1_1InvalidOperationFault = (output: any, context: __SerdeContext): InvalidOperationFault => { + return { + message: __expectString(output.message), + } as any; +}; + const deserializeAws_json1_1InvalidResourceStateFault = ( output: any, context: __SerdeContext @@ -6636,6 +7643,13 @@ const deserializeAws_json1_1InvalidSubnet = (output: any, context: __SerdeContex } as any; }; +const deserializeAws_json1_1InventoryData = (output: any, context: __SerdeContext): InventoryData => { + return { + NumberOfDatabases: __expectInt32(output.NumberOfDatabases), + NumberOfSchemas: __expectInt32(output.NumberOfSchemas), + } as any; +}; + const deserializeAws_json1_1KafkaSettings = (output: any, context: __SerdeContext): KafkaSettings => { return { Broker: __expectString(output.Broker), @@ -7529,6 +8543,16 @@ const deserializeAws_json1_1ResourceQuotaExceededFault = ( } as any; }; +const deserializeAws_json1_1RunFleetAdvisorLsaAnalysisResponse = ( + output: any, + context: __SerdeContext +): RunFleetAdvisorLsaAnalysisResponse => { + return { + LsaAnalysisId: __expectString(output.LsaAnalysisId), + Status: __expectString(output.Status), + } as any; +}; + const deserializeAws_json1_1S3AccessDeniedFault = (output: any, context: __SerdeContext): S3AccessDeniedFault => { return { message: __expectString(output.message), @@ -7599,6 +8623,53 @@ const deserializeAws_json1_1SchemaList = (output: any, context: __SerdeContext): return retVal; }; +const deserializeAws_json1_1SchemaResponse = (output: any, context: __SerdeContext): SchemaResponse => { + return { + CodeLineCount: __expectLong(output.CodeLineCount), + CodeSize: __expectLong(output.CodeSize), + Complexity: __expectString(output.Complexity), + DatabaseInstance: + output.DatabaseInstance !== undefined && output.DatabaseInstance !== null + ? deserializeAws_json1_1DatabaseShortInfoResponse(output.DatabaseInstance, context) + : undefined, + OriginalSchema: + output.OriginalSchema !== undefined && output.OriginalSchema !== null + ? deserializeAws_json1_1SchemaShortInfoResponse(output.OriginalSchema, context) + : undefined, + SchemaId: __expectString(output.SchemaId), + SchemaName: __expectString(output.SchemaName), + Server: + output.Server !== undefined && output.Server !== null + ? deserializeAws_json1_1ServerShortInfoResponse(output.Server, context) + : undefined, + Similarity: __limitedParseDouble(output.Similarity), + } as any; +}; + +const deserializeAws_json1_1SchemaShortInfoResponse = ( + output: any, + context: __SerdeContext +): SchemaShortInfoResponse => { + return { + DatabaseId: __expectString(output.DatabaseId), + DatabaseIpAddress: __expectString(output.DatabaseIpAddress), + DatabaseName: __expectString(output.DatabaseName), + SchemaId: __expectString(output.SchemaId), + SchemaName: __expectString(output.SchemaName), + } as any; +}; + +const deserializeAws_json1_1ServerShortInfoResponse = ( + output: any, + context: __SerdeContext +): ServerShortInfoResponse => { + return { + IpAddress: __expectString(output.IpAddress), + ServerId: __expectString(output.ServerId), + ServerName: __expectString(output.ServerName), + } as any; +}; + const deserializeAws_json1_1SNSInvalidTopicFault = (output: any, context: __SerdeContext): SNSInvalidTopicFault => { return { message: __expectString(output.message), @@ -7683,6 +8754,18 @@ const deserializeAws_json1_1StorageQuotaExceededFault = ( } as any; }; +const deserializeAws_json1_1StringList = (output: any, context: __SerdeContext): string[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + if (entry === null) { + return null as any; + } + return __expectString(entry) as any; + }); + return retVal; +}; + const deserializeAws_json1_1Subnet = (output: any, context: __SerdeContext): Subnet => { return { SubnetAvailabilityZone: diff --git a/codegen/sdk-codegen/aws-models/database-migration-service.json b/codegen/sdk-codegen/aws-models/database-migration-service.json index 822d1fa3ac45..ff402dbd379a 100644 --- a/codegen/sdk-codegen/aws-models/database-migration-service.json +++ b/codegen/sdk-codegen/aws-models/database-migration-service.json @@ -162,6 +162,9 @@ { "target": "com.amazonaws.databasemigrationservice#CreateEventSubscription" }, + { + "target": "com.amazonaws.databasemigrationservice#CreateFleetAdvisorCollector" + }, { "target": "com.amazonaws.databasemigrationservice#CreateReplicationInstance" }, @@ -183,6 +186,12 @@ { "target": "com.amazonaws.databasemigrationservice#DeleteEventSubscription" }, + { + "target": "com.amazonaws.databasemigrationservice#DeleteFleetAdvisorCollector" + }, + { + "target": "com.amazonaws.databasemigrationservice#DeleteFleetAdvisorDatabases" + }, { "target": "com.amazonaws.databasemigrationservice#DeleteReplicationInstance" }, @@ -225,6 +234,21 @@ { "target": "com.amazonaws.databasemigrationservice#DescribeEventSubscriptions" }, + { + "target": "com.amazonaws.databasemigrationservice#DescribeFleetAdvisorCollectors" + }, + { + "target": "com.amazonaws.databasemigrationservice#DescribeFleetAdvisorDatabases" + }, + { + "target": "com.amazonaws.databasemigrationservice#DescribeFleetAdvisorLsaAnalysis" + }, + { + "target": "com.amazonaws.databasemigrationservice#DescribeFleetAdvisorSchemaObjectSummary" + }, + { + "target": "com.amazonaws.databasemigrationservice#DescribeFleetAdvisorSchemas" + }, { "target": "com.amazonaws.databasemigrationservice#DescribeOrderableReplicationInstances" }, @@ -297,6 +321,9 @@ { "target": "com.amazonaws.databasemigrationservice#RemoveTagsFromResource" }, + { + "target": "com.amazonaws.databasemigrationservice#RunFleetAdvisorLsaAnalysis" + }, { "target": "com.amazonaws.databasemigrationservice#StartReplicationTask" }, @@ -633,6 +660,178 @@ ] } }, + "com.amazonaws.databasemigrationservice#CollectorHealthCheck": { + "type": "structure", + "members": { + "CollectorStatus": { + "target": "com.amazonaws.databasemigrationservice#CollectorStatus", + "traits": { + "smithy.api#documentation": "

The status of the Fleet Advisor collector.

" + } + }, + "LocalCollectorS3Access": { + "target": "com.amazonaws.databasemigrationservice#BooleanOptional", + "traits": { + "smithy.api#documentation": "

Whether the local collector can access its Amazon S3 bucket.

" + } + }, + "WebCollectorS3Access": { + "target": "com.amazonaws.databasemigrationservice#BooleanOptional", + "traits": { + "smithy.api#documentation": "

Whether the web collector can access its Amazon S3 bucket.

" + } + }, + "WebCollectorGrantedRoleBasedAccess": { + "target": "com.amazonaws.databasemigrationservice#BooleanOptional", + "traits": { + "smithy.api#documentation": "

Whether the role that you provided when creating the Fleet Advisor collector has sufficient permissions\n to access the Fleet Advisor web collector.

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

Describes the last Fleet Advisor collector health check.

" + } + }, + "com.amazonaws.databasemigrationservice#CollectorNotFoundFault": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.databasemigrationservice#ExceptionMessage" + } + }, + "traits": { + "smithy.api#documentation": "

The specified collector doesn't exist.

", + "smithy.api#error": "client", + "smithy.api#httpError": 404 + } + }, + "com.amazonaws.databasemigrationservice#CollectorResponse": { + "type": "structure", + "members": { + "CollectorReferencedId": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The reference ID of the Fleet Advisor collector.

" + } + }, + "CollectorName": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The name of the Fleet Advisor collector .

" + } + }, + "CollectorVersion": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The version of your Fleet Advisor collector, in semantic versioning format, for example\n 1.0.2\n

" + } + }, + "VersionStatus": { + "target": "com.amazonaws.databasemigrationservice#VersionStatus", + "traits": { + "smithy.api#documentation": "

Whether the collector version is up to date.

" + } + }, + "Description": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

A summary description of the Fleet Advisor collector.

" + } + }, + "S3BucketName": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The Amazon S3 bucket that the Fleet Advisor collector uses to store inventory metadata.

" + } + }, + "ServiceAccessRoleArn": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The IAM role that grants permissions to access the specified Amazon S3 bucket.

" + } + }, + "CollectorHealthCheck": { + "target": "com.amazonaws.databasemigrationservice#CollectorHealthCheck" + }, + "LastDataReceived": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The timestamp of the last time the collector received data, in the following format:\n 2022-01-24T19:04:02.596113Z\n

" + } + }, + "RegisteredDate": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The timestamp when DMS registered the collector, in the following format:\n 2022-01-24T19:04:02.596113Z\n

" + } + }, + "CreatedDate": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The timestamp when you created the collector, in the following format:\n 2022-01-24T19:04:02.596113Z\n

" + } + }, + "ModifiedDate": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The timestamp when DMS last modified the collector, in the following format:\n 2022-01-24T19:04:02.596113Z\n

" + } + }, + "InventoryData": { + "target": "com.amazonaws.databasemigrationservice#InventoryData" + } + }, + "traits": { + "smithy.api#documentation": "

Describes a Fleet Advisor collector.

" + } + }, + "com.amazonaws.databasemigrationservice#CollectorResponses": { + "type": "list", + "member": { + "target": "com.amazonaws.databasemigrationservice#CollectorResponse" + } + }, + "com.amazonaws.databasemigrationservice#CollectorShortInfoResponse": { + "type": "structure", + "members": { + "CollectorReferencedId": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The reference ID of the Fleet Advisor collector.

" + } + }, + "CollectorName": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The name of the Fleet Advisor collector.

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

Briefly describes a Fleet Advisor collector.

" + } + }, + "com.amazonaws.databasemigrationservice#CollectorStatus": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "UNREGISTERED", + "name": "UNREGISTERED" + }, + { + "value": "ACTIVE", + "name": "ACTIVE" + } + ] + } + }, + "com.amazonaws.databasemigrationservice#CollectorsList": { + "type": "list", + "member": { + "target": "com.amazonaws.databasemigrationservice#CollectorShortInfoResponse" + } + }, "com.amazonaws.databasemigrationservice#CompressionTypeValue": { "type": "string", "traits": { @@ -787,7 +986,7 @@ "DatabaseName": { "target": "com.amazonaws.databasemigrationservice#String", "traits": { - "smithy.api#documentation": "

The name of the endpoint database. For a MySQL source or target endpoint, do not specify DatabaseName.

" + "smithy.api#documentation": "

The name of the endpoint database. For a MySQL source or target endpoint, do not specify DatabaseName.\n To migrate to a specific database, use this setting and targetDbType.

" } }, "ExtraConnectionAttributes": { @@ -1069,6 +1268,102 @@ "smithy.api#documentation": "

" } }, + "com.amazonaws.databasemigrationservice#CreateFleetAdvisorCollector": { + "type": "operation", + "input": { + "target": "com.amazonaws.databasemigrationservice#CreateFleetAdvisorCollectorRequest" + }, + "output": { + "target": "com.amazonaws.databasemigrationservice#CreateFleetAdvisorCollectorResponse" + }, + "errors": [ + { + "target": "com.amazonaws.databasemigrationservice#AccessDeniedFault" + }, + { + "target": "com.amazonaws.databasemigrationservice#InvalidResourceStateFault" + }, + { + "target": "com.amazonaws.databasemigrationservice#ResourceQuotaExceededFault" + }, + { + "target": "com.amazonaws.databasemigrationservice#S3AccessDeniedFault" + }, + { + "target": "com.amazonaws.databasemigrationservice#S3ResourceNotFoundFault" + } + ], + "traits": { + "smithy.api#documentation": "

Creates a Fleet Advisor collector using the specified parameters.

" + } + }, + "com.amazonaws.databasemigrationservice#CreateFleetAdvisorCollectorRequest": { + "type": "structure", + "members": { + "CollectorName": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The name of your Fleet Advisor collector (for example, sample-collector).

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

A summary description of your Fleet Advisor collector.

" + } + }, + "ServiceAccessRoleArn": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The IAM role that grants permissions to access the specified Amazon S3 bucket.

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

The Amazon S3 bucket that the Fleet Advisor collector uses to store inventory metadata.

", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.databasemigrationservice#CreateFleetAdvisorCollectorResponse": { + "type": "structure", + "members": { + "CollectorReferencedId": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The unique ID of the new Fleet Advisor collector, for example:\n 22fda70c-40d5-4acf-b233-a495bd8eb7f5\n

" + } + }, + "CollectorName": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The name of the new Fleet Advisor collector.

" + } + }, + "Description": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

A summary description of the Fleet Advisor collector.

" + } + }, + "ServiceAccessRoleArn": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The IAM role that grants permissions to access the specified Amazon S3 bucket.

" + } + }, + "S3BucketName": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The Amazon S3 bucket that the collector uses to store inventory metadata.

" + } + } + } + }, "com.amazonaws.databasemigrationservice#CreateReplicationInstance": { "type": "operation", "input": { @@ -1461,46 +1756,184 @@ ] } }, - "com.amazonaws.databasemigrationservice#DatePartitionDelimiterValue": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "SLASH", - "name": "SLASH" - }, - { - "value": "UNDERSCORE", - "name": "UNDERSCORE" - }, - { - "value": "DASH", - "name": "DASH" - }, - { - "value": "NONE", - "name": "NONE" + "com.amazonaws.databasemigrationservice#DatabaseInstanceSoftwareDetailsResponse": { + "type": "structure", + "members": { + "Engine": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The database engine of a database in a Fleet Advisor collector inventory, for example Microsoft\n SQL Server.

" } - ] - } - }, - "com.amazonaws.databasemigrationservice#DatePartitionSequenceValue": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "YYYYMMDD", - "name": "YYYYMMDD" - }, - { - "value": "YYYYMMDDHH", - "name": "YYYYMMDDHH" - }, - { - "value": "YYYYMM", - "name": "YYYYMM" - }, - { + }, + "EngineVersion": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The database engine version of a database in a Fleet Advisor collector inventory, for example\n 2019.

" + } + }, + "EngineEdition": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The database engine edition of a database in a Fleet Advisor collector inventory, for example\n Express.

" + } + }, + "ServicePack": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The service pack level of the database.

" + } + }, + "SupportLevel": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The support level of the database, for example Mainstream support.

" + } + }, + "OsArchitecture": { + "target": "com.amazonaws.databasemigrationservice#IntegerOptional", + "traits": { + "smithy.api#documentation": "

The operating system architecture of the database.

" + } + }, + "Tooltip": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

Information about the database engine software, for example Mainstream support\n ends on November 14th, 2024.

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

Describes an inventory database instance for a Fleet Advisor collector.

" + } + }, + "com.amazonaws.databasemigrationservice#DatabaseList": { + "type": "list", + "member": { + "target": "com.amazonaws.databasemigrationservice#DatabaseResponse" + } + }, + "com.amazonaws.databasemigrationservice#DatabaseResponse": { + "type": "structure", + "members": { + "DatabaseId": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The ID of a database in a Fleet Advisor collector inventory.

" + } + }, + "DatabaseName": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The name of a database in a Fleet Advisor collector inventory.

" + } + }, + "IpAddress": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The IP address of a database in a Fleet Advisor collector inventory.

" + } + }, + "NumberOfSchemas": { + "target": "com.amazonaws.databasemigrationservice#LongOptional", + "traits": { + "smithy.api#documentation": "

The number of schemas in a Fleet Advisor collector inventory database.

" + } + }, + "Server": { + "target": "com.amazonaws.databasemigrationservice#ServerShortInfoResponse", + "traits": { + "smithy.api#documentation": "

The server name of a database in a Fleet Advisor collector inventory.

" + } + }, + "SoftwareDetails": { + "target": "com.amazonaws.databasemigrationservice#DatabaseInstanceSoftwareDetailsResponse", + "traits": { + "smithy.api#documentation": "

The software details of a database in a Fleet Advisor collector inventory, such as database engine and version.

" + } + }, + "Collectors": { + "target": "com.amazonaws.databasemigrationservice#CollectorsList", + "traits": { + "smithy.api#documentation": "

A list of collectors associated with the database.

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

Describes a database in a Fleet Advisor collector inventory.

" + } + }, + "com.amazonaws.databasemigrationservice#DatabaseShortInfoResponse": { + "type": "structure", + "members": { + "DatabaseId": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The ID of a database in a Fleet Advisor collector inventory.

" + } + }, + "DatabaseName": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The name of a database in a Fleet Advisor collector inventory.

" + } + }, + "DatabaseIpAddress": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The IP address of a database in a Fleet Advisor collector inventory.

" + } + }, + "DatabaseEngine": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The database engine of a database in a Fleet Advisor collector inventory, for example\n PostgreSQL.

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

Describes a database in a Fleet Advisor collector inventory.

" + } + }, + "com.amazonaws.databasemigrationservice#DatePartitionDelimiterValue": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "SLASH", + "name": "SLASH" + }, + { + "value": "UNDERSCORE", + "name": "UNDERSCORE" + }, + { + "value": "DASH", + "name": "DASH" + }, + { + "value": "NONE", + "name": "NONE" + } + ] + } + }, + "com.amazonaws.databasemigrationservice#DatePartitionSequenceValue": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "YYYYMMDD", + "name": "YYYYMMDD" + }, + { + "value": "YYYYMMDDHH", + "name": "YYYYMMDDHH" + }, + { + "value": "YYYYMM", + "name": "YYYYMM" + }, + { "value": "MMYYYYDD", "name": "MMYYYYDD" }, @@ -1554,6 +1987,18 @@ } } }, + "com.amazonaws.databasemigrationservice#DeleteCollectorRequest": { + "type": "structure", + "members": { + "CollectorReferencedId": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The reference ID of the Fleet Advisor collector to delete.

", + "smithy.api#required": {} + } + } + } + }, "com.amazonaws.databasemigrationservice#DeleteConnection": { "type": "operation", "input": { @@ -1711,6 +2156,69 @@ "smithy.api#documentation": "

" } }, + "com.amazonaws.databasemigrationservice#DeleteFleetAdvisorCollector": { + "type": "operation", + "input": { + "target": "com.amazonaws.databasemigrationservice#DeleteCollectorRequest" + }, + "output": { + "target": "smithy.api#Unit" + }, + "errors": [ + { + "target": "com.amazonaws.databasemigrationservice#CollectorNotFoundFault" + }, + { + "target": "com.amazonaws.databasemigrationservice#InvalidResourceStateFault" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes the specified Fleet Advisor collector.

" + } + }, + "com.amazonaws.databasemigrationservice#DeleteFleetAdvisorDatabases": { + "type": "operation", + "input": { + "target": "com.amazonaws.databasemigrationservice#DeleteFleetAdvisorDatabasesRequest" + }, + "output": { + "target": "com.amazonaws.databasemigrationservice#DeleteFleetAdvisorDatabasesResponse" + }, + "errors": [ + { + "target": "com.amazonaws.databasemigrationservice#InvalidOperationFault" + }, + { + "target": "com.amazonaws.databasemigrationservice#ResourceNotFoundFault" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes the specified Fleet Advisor collector databases.

" + } + }, + "com.amazonaws.databasemigrationservice#DeleteFleetAdvisorDatabasesRequest": { + "type": "structure", + "members": { + "DatabaseIds": { + "target": "com.amazonaws.databasemigrationservice#StringList", + "traits": { + "smithy.api#documentation": "

The IDs of the Fleet Advisor collector databases to delete.

", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.databasemigrationservice#DeleteFleetAdvisorDatabasesResponse": { + "type": "structure", + "members": { + "DatabaseIds": { + "target": "com.amazonaws.databasemigrationservice#StringList", + "traits": { + "smithy.api#documentation": "

The IDs of the databases that the operation deleted.

" + } + } + } + }, "com.amazonaws.databasemigrationservice#DeleteReplicationInstance": { "type": "operation", "input": { @@ -2588,56 +3096,360 @@ "Duration": { "target": "com.amazonaws.databasemigrationservice#IntegerOptional", "traits": { - "smithy.api#documentation": "

The duration of the events to be listed.

" + "smithy.api#documentation": "

The duration of the events to be listed.

" + } + }, + "EventCategories": { + "target": "com.amazonaws.databasemigrationservice#EventCategoriesList", + "traits": { + "smithy.api#documentation": "

A list of event categories for the source type that you've chosen.

" + } + }, + "Filters": { + "target": "com.amazonaws.databasemigrationservice#FilterList", + "traits": { + "smithy.api#documentation": "

Filters applied to events. The only valid filter is replication-instance-id.

" + } + }, + "MaxRecords": { + "target": "com.amazonaws.databasemigrationservice#IntegerOptional", + "traits": { + "smithy.api#documentation": "

The maximum number of records to include in the response. If more records exist than\n the specified MaxRecords value, a pagination token called a marker is included\n in the response so that the remaining results can be retrieved.

\n

Default: 100

\n

Constraints: Minimum 20, maximum 100.

" + } + }, + "Marker": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

An optional pagination token provided by a previous request. If this parameter is\n specified, the response includes only records beyond the marker, up to the value specified\n by MaxRecords.

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

" + } + }, + "com.amazonaws.databasemigrationservice#DescribeEventsResponse": { + "type": "structure", + "members": { + "Marker": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

An optional pagination token provided by a previous request. If this parameter is\n specified, the response includes only records beyond the marker, up to the value specified\n by MaxRecords.

" + } + }, + "Events": { + "target": "com.amazonaws.databasemigrationservice#EventList", + "traits": { + "smithy.api#documentation": "

The events described.

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

" + } + }, + "com.amazonaws.databasemigrationservice#DescribeFleetAdvisorCollectors": { + "type": "operation", + "input": { + "target": "com.amazonaws.databasemigrationservice#DescribeFleetAdvisorCollectorsRequest" + }, + "output": { + "target": "com.amazonaws.databasemigrationservice#DescribeFleetAdvisorCollectorsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.databasemigrationservice#InvalidResourceStateFault" + } + ], + "traits": { + "smithy.api#documentation": "

Returns a list of the Fleet Advisor collectors in your account.

", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "pageSize": "MaxRecords" + } + } + }, + "com.amazonaws.databasemigrationservice#DescribeFleetAdvisorCollectorsRequest": { + "type": "structure", + "members": { + "Filters": { + "target": "com.amazonaws.databasemigrationservice#FilterList", + "traits": { + "smithy.api#documentation": "

If you specify any of the following filters, the output includes information for only\n those collectors that meet the filter criteria:

\n \n
    \n
  • \n

    \n collector-referenced-id – The ID of the collector agent, for example\n d4610ac5-e323-4ad9-bc50-eaf7249dfe9d.

    \n
  • \n
  • \n

    \n collector-name – The name of the collector agent.

    \n
  • \n
\n \n

An example is: describe-fleet-advisor-collectors --filter\n Name=\"collector-referenced-id\",Values=\"d4610ac5-e323-4ad9-bc50-eaf7249dfe9d\"\n

" + } + }, + "MaxRecords": { + "target": "com.amazonaws.databasemigrationservice#IntegerOptional", + "traits": { + "smithy.api#documentation": "

Sets the maximum number of records returned in the response.

" + } + }, + "NextToken": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

If NextToken is returned by a previous response, there are more results available. The value of \n NextToken is a unique pagination token for each page. Make the call again using the returned \n token to retrieve the next page. Keep all other arguments unchanged.

" + } + } + } + }, + "com.amazonaws.databasemigrationservice#DescribeFleetAdvisorCollectorsResponse": { + "type": "structure", + "members": { + "Collectors": { + "target": "com.amazonaws.databasemigrationservice#CollectorResponses", + "traits": { + "smithy.api#documentation": "

Provides descriptions of the Fleet Advisor collectors, including the collectors' name\n and ID, and the latest inventory data.

" + } + }, + "NextToken": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

If NextToken is returned, there are more results available. The value of \n NextToken is a unique pagination token for each page. Make the call again using the returned \n token to retrieve the next page. Keep all other arguments unchanged.

" + } + } + } + }, + "com.amazonaws.databasemigrationservice#DescribeFleetAdvisorDatabases": { + "type": "operation", + "input": { + "target": "com.amazonaws.databasemigrationservice#DescribeFleetAdvisorDatabasesRequest" + }, + "output": { + "target": "com.amazonaws.databasemigrationservice#DescribeFleetAdvisorDatabasesResponse" + }, + "errors": [ + { + "target": "com.amazonaws.databasemigrationservice#InvalidResourceStateFault" + } + ], + "traits": { + "smithy.api#documentation": "

Returns a list of Fleet Advisor databases in your account.

", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "pageSize": "MaxRecords" + } + } + }, + "com.amazonaws.databasemigrationservice#DescribeFleetAdvisorDatabasesRequest": { + "type": "structure", + "members": { + "Filters": { + "target": "com.amazonaws.databasemigrationservice#FilterList", + "traits": { + "smithy.api#documentation": "

If you specify any of the following filters, the output includes information for only\n those databases that meet the filter criteria:

\n \n
    \n
  • \n

    \n database-id – The ID of the database, for example\n d4610ac5-e323-4ad9-bc50-eaf7249dfe9d.

    \n
  • \n
  • \n

    \n database-name – The name of the database.

    \n
  • \n
  • \n

    \n database-engine – The name of the database engine.

    \n
  • \n
  • \n

    \n server-ip-address – The IP address of the database server.

    \n
  • \n
  • \n

    \n database-ip-address – The IP address of the database.

    \n
  • \n
  • \n

    \n collector-name – The name of the associated Fleet Advisor collector.

    \n
  • \n
\n \n

An example is: describe-fleet-advisor-databases --filter\n Name=\"database-id\",Values=\"d4610ac5-e323-4ad9-bc50-eaf7249dfe9d\"\n

" + } + }, + "MaxRecords": { + "target": "com.amazonaws.databasemigrationservice#IntegerOptional", + "traits": { + "smithy.api#documentation": "

Sets the maximum number of records returned in the response.

" + } + }, + "NextToken": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

If NextToken is returned by a previous response, there are more results available. The value of \n NextToken is a unique pagination token for each page. Make the call again using the returned \n token to retrieve the next page. Keep all other arguments unchanged.

" + } + } + } + }, + "com.amazonaws.databasemigrationservice#DescribeFleetAdvisorDatabasesResponse": { + "type": "structure", + "members": { + "Databases": { + "target": "com.amazonaws.databasemigrationservice#DatabaseList", + "traits": { + "smithy.api#documentation": "

Provides descriptions of the Fleet Advisor collector databases, including the database's collector, ID, and name.

" + } + }, + "NextToken": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

If NextToken is returned, there are more results available. The value of \n NextToken is a unique pagination token for each page. Make the call again using the returned \n token to retrieve the next page. Keep all other arguments unchanged.

" + } + } + } + }, + "com.amazonaws.databasemigrationservice#DescribeFleetAdvisorLsaAnalysis": { + "type": "operation", + "input": { + "target": "com.amazonaws.databasemigrationservice#DescribeFleetAdvisorLsaAnalysisRequest" + }, + "output": { + "target": "com.amazonaws.databasemigrationservice#DescribeFleetAdvisorLsaAnalysisResponse" + }, + "errors": [ + { + "target": "com.amazonaws.databasemigrationservice#InvalidResourceStateFault" + } + ], + "traits": { + "smithy.api#documentation": "

Provides descriptions of large-scale assessment (LSA) analyses produced by your\n Fleet Advisor collectors.\n

", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "pageSize": "MaxRecords" + } + } + }, + "com.amazonaws.databasemigrationservice#DescribeFleetAdvisorLsaAnalysisRequest": { + "type": "structure", + "members": { + "MaxRecords": { + "target": "com.amazonaws.databasemigrationservice#IntegerOptional", + "traits": { + "smithy.api#documentation": "

Sets the maximum number of records returned in the response.

" + } + }, + "NextToken": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

If NextToken is returned by a previous response, there are more results available. The value of \n NextToken is a unique pagination token for each page. Make the call again using the returned \n token to retrieve the next page. Keep all other arguments unchanged.

" + } + } + } + }, + "com.amazonaws.databasemigrationservice#DescribeFleetAdvisorLsaAnalysisResponse": { + "type": "structure", + "members": { + "Analysis": { + "target": "com.amazonaws.databasemigrationservice#FleetAdvisorLsaAnalysisResponseList", + "traits": { + "smithy.api#documentation": "

A list of FleetAdvisorLsaAnalysisResponse objects.

" + } + }, + "NextToken": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

If NextToken is returned, there are more results available. The value of \n NextToken is a unique pagination token for each page. Make the call again using the returned \n token to retrieve the next page. Keep all other arguments unchanged.

" + } + } + } + }, + "com.amazonaws.databasemigrationservice#DescribeFleetAdvisorSchemaObjectSummary": { + "type": "operation", + "input": { + "target": "com.amazonaws.databasemigrationservice#DescribeFleetAdvisorSchemaObjectSummaryRequest" + }, + "output": { + "target": "com.amazonaws.databasemigrationservice#DescribeFleetAdvisorSchemaObjectSummaryResponse" + }, + "errors": [ + { + "target": "com.amazonaws.databasemigrationservice#InvalidResourceStateFault" + } + ], + "traits": { + "smithy.api#documentation": "

Provides descriptions of the schemas discovered by your Fleet Advisor\n collectors.

", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "pageSize": "MaxRecords" + } + } + }, + "com.amazonaws.databasemigrationservice#DescribeFleetAdvisorSchemaObjectSummaryRequest": { + "type": "structure", + "members": { + "Filters": { + "target": "com.amazonaws.databasemigrationservice#FilterList", + "traits": { + "smithy.api#documentation": "

If you specify any of the following filters, the output includes information for only\n those schema objects that meet the filter criteria:

\n \n
    \n
  • \n

    \n schema-id – The ID of the schema, for example\n d4610ac5-e323-4ad9-bc50-eaf7249dfe9d.

    \n
  • \n
\n \n

Example: describe-fleet-advisor-schema-object-summary --filter Name=\"schema-id\",Values=\"50\"\n

" + } + }, + "MaxRecords": { + "target": "com.amazonaws.databasemigrationservice#IntegerOptional", + "traits": { + "smithy.api#documentation": "

Sets the maximum number of records returned in the response.

" + } + }, + "NextToken": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

If NextToken is returned by a previous response, there are more results available. The value of \n NextToken is a unique pagination token for each page. Make the call again using the returned \n token to retrieve the next page. Keep all other arguments unchanged.

" + } + } + } + }, + "com.amazonaws.databasemigrationservice#DescribeFleetAdvisorSchemaObjectSummaryResponse": { + "type": "structure", + "members": { + "FleetAdvisorSchemaObjects": { + "target": "com.amazonaws.databasemigrationservice#FleetAdvisorSchemaObjectList", + "traits": { + "smithy.api#documentation": "

A collection of FleetAdvisorSchemaObjectResponse objects.

" } }, - "EventCategories": { - "target": "com.amazonaws.databasemigrationservice#EventCategoriesList", + "NextToken": { + "target": "com.amazonaws.databasemigrationservice#String", "traits": { - "smithy.api#documentation": "

A list of event categories for the source type that you've chosen.

" + "smithy.api#documentation": "

If NextToken is returned, there are more results available. The value of \n NextToken is a unique pagination token for each page. Make the call again using the returned \n token to retrieve the next page. Keep all other arguments unchanged.

" } - }, + } + } + }, + "com.amazonaws.databasemigrationservice#DescribeFleetAdvisorSchemas": { + "type": "operation", + "input": { + "target": "com.amazonaws.databasemigrationservice#DescribeFleetAdvisorSchemasRequest" + }, + "output": { + "target": "com.amazonaws.databasemigrationservice#DescribeFleetAdvisorSchemasResponse" + }, + "errors": [ + { + "target": "com.amazonaws.databasemigrationservice#InvalidResourceStateFault" + } + ], + "traits": { + "smithy.api#documentation": "

Returns a list of schemas detected by Fleet Advisor Collectors in your account.

", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "pageSize": "MaxRecords" + } + } + }, + "com.amazonaws.databasemigrationservice#DescribeFleetAdvisorSchemasRequest": { + "type": "structure", + "members": { "Filters": { "target": "com.amazonaws.databasemigrationservice#FilterList", "traits": { - "smithy.api#documentation": "

Filters applied to events. The only valid filter is replication-instance-id.

" + "smithy.api#documentation": "

If you specify any of the following filters, the output includes information for only\n those schemas that meet the filter criteria:

\n \n
    \n
  • \n

    \n complexity – The schema's complexity, for example\n Simple.

    \n
  • \n
  • \n

    \n database-id – The ID of the schema's database.

    \n
  • \n
  • \n

    \n database-ip-address – The IP address of the schema's database.

    \n
  • \n
  • \n

    \n database-name – The name of the schema's database.

    \n
  • \n
  • \n

    \n database-engine – The name of the schema database's engine.

    \n
  • \n
  • \n

    \n original-schema-name – The name of the schema's database's main schema.

    \n
  • \n
  • \n

    \n schema-id – The ID of the schema, for example 15.

    \n
  • \n
  • \n

    \n schema-name – The name of the schema.

    \n
  • \n
  • \n

    \n server-ip-address – The IP address of the schema database's server.

    \n
  • \n
\n \n

An example is: describe-fleet-advisor-schemas --filter\n Name=\"schema-id\",Values=\"50\"\n

" } }, "MaxRecords": { "target": "com.amazonaws.databasemigrationservice#IntegerOptional", "traits": { - "smithy.api#documentation": "

The maximum number of records to include in the response. If more records exist than\n the specified MaxRecords value, a pagination token called a marker is included\n in the response so that the remaining results can be retrieved.

\n

Default: 100

\n

Constraints: Minimum 20, maximum 100.

" + "smithy.api#documentation": "

Sets the maximum number of records returned in the response.

" } }, - "Marker": { + "NextToken": { "target": "com.amazonaws.databasemigrationservice#String", "traits": { - "smithy.api#documentation": "

An optional pagination token provided by a previous request. If this parameter is\n specified, the response includes only records beyond the marker, up to the value specified\n by MaxRecords.

" + "smithy.api#documentation": "

If NextToken is returned by a previous response, there are more results available. The value of \n NextToken is a unique pagination token for each page. Make the call again using the returned \n token to retrieve the next page. Keep all other arguments unchanged.

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

" } }, - "com.amazonaws.databasemigrationservice#DescribeEventsResponse": { + "com.amazonaws.databasemigrationservice#DescribeFleetAdvisorSchemasResponse": { "type": "structure", "members": { - "Marker": { - "target": "com.amazonaws.databasemigrationservice#String", + "FleetAdvisorSchemas": { + "target": "com.amazonaws.databasemigrationservice#FleetAdvisorSchemaList", "traits": { - "smithy.api#documentation": "

An optional pagination token provided by a previous request. If this parameter is\n specified, the response includes only records beyond the marker, up to the value specified\n by MaxRecords.

" + "smithy.api#documentation": "

A collection of SchemaResponse objects.

" } }, - "Events": { - "target": "com.amazonaws.databasemigrationservice#EventList", + "NextToken": { + "target": "com.amazonaws.databasemigrationservice#String", "traits": { - "smithy.api#documentation": "

The events described.

" + "smithy.api#documentation": "

If NextToken is returned, there are more results available. The value of \n NextToken is a unique pagination token for each page. Make the call again using the returned \n token to retrieve the next page. Keep all other arguments unchanged.

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

" } }, "com.amazonaws.databasemigrationservice#DescribeOrderableReplicationInstances": { @@ -4007,6 +4819,12 @@ "smithy.api#documentation": "

Provides information that defines a DocumentDB endpoint.

" } }, + "com.amazonaws.databasemigrationservice#DoubleOptional": { + "type": "double", + "traits": { + "smithy.api#box": {} + } + }, "com.amazonaws.databasemigrationservice#DynamoDbSettings": { "type": "structure", "members": { @@ -4616,13 +5434,89 @@ } } }, + "com.amazonaws.databasemigrationservice#FleetAdvisorLsaAnalysisResponse": { + "type": "structure", + "members": { + "LsaAnalysisId": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The ID of an LSA analysis run by a Fleet Advisor collector.

" + } + }, + "Status": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The status of an LSA analysis run by a Fleet Advisor collector.

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

Describes a large-scale assessment (LSA) analysis run by a Fleet Advisor collector.

" + } + }, + "com.amazonaws.databasemigrationservice#FleetAdvisorLsaAnalysisResponseList": { + "type": "list", + "member": { + "target": "com.amazonaws.databasemigrationservice#FleetAdvisorLsaAnalysisResponse" + } + }, + "com.amazonaws.databasemigrationservice#FleetAdvisorSchemaList": { + "type": "list", + "member": { + "target": "com.amazonaws.databasemigrationservice#SchemaResponse" + } + }, + "com.amazonaws.databasemigrationservice#FleetAdvisorSchemaObjectList": { + "type": "list", + "member": { + "target": "com.amazonaws.databasemigrationservice#FleetAdvisorSchemaObjectResponse" + } + }, + "com.amazonaws.databasemigrationservice#FleetAdvisorSchemaObjectResponse": { + "type": "structure", + "members": { + "SchemaId": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The ID of a schema object in a Fleet Advisor collector inventory.

" + } + }, + "ObjectType": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The type of the schema object, as reported by the database engine. Examples include the following:

\n
    \n
  • \n

    \n function\n

    \n
  • \n
  • \n

    \n trigger\n

    \n
  • \n
  • \n

    \n SYSTEM_TABLE\n

    \n
  • \n
  • \n

    \n QUEUE\n

    \n
  • \n
" + } + }, + "NumberOfObjects": { + "target": "com.amazonaws.databasemigrationservice#LongOptional", + "traits": { + "smithy.api#documentation": "

The number of objects in a schema object in a Fleet Advisor collector inventory.

" + } + }, + "CodeLineCount": { + "target": "com.amazonaws.databasemigrationservice#LongOptional", + "traits": { + "smithy.api#documentation": "

The number of lines of code in a schema object in a Fleet Advisor collector inventory.

" + } + }, + "CodeSize": { + "target": "com.amazonaws.databasemigrationservice#LongOptional", + "traits": { + "smithy.api#documentation": "

The size level of the code in a schema object in a Fleet Advisor collector inventory.

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

Describes a schema object in a Fleet Advisor collector inventory.

" + } + }, "com.amazonaws.databasemigrationservice#GcpMySQLSettings": { "type": "structure", "members": { "AfterConnectScript": { "target": "com.amazonaws.databasemigrationservice#String", "traits": { - "smithy.api#documentation": "

Specifies a script to run immediately after DMS connects to the endpoint. \n The migration task continues running regardless if the SQL statement succeeds or fails.

\n \n

For this parameter, provide the code of the script itself, not the name of a file containing the script.

" + "smithy.api#documentation": "

Specifies a script to run immediately after DMS connects to the endpoint. \n The migration task continues running regardless if the SQL statement succeeds or fails.

\n \n

For this parameter, provide the code of the script itself, not the name of a file containing the script.

" } }, "CleanSourceMetadataOnMismatch": { @@ -4658,7 +5552,7 @@ "ParallelLoadThreads": { "target": "com.amazonaws.databasemigrationservice#IntegerOptional", "traits": { - "smithy.api#documentation": "

Improves performance when loading data into the MySQL-compatible target database. Specifies how many \n threads to use to load the data into the MySQL-compatible target database. Setting a large number of \n threads can have an adverse effect on database performance, because a separate connection is required \n for each thread. The default is one.

\n \n

Example: parallelLoadThreads=1 \n

" + "smithy.api#documentation": "

Improves performance when loading data into the MySQL-compatible target database. Specifies how many \n threads to use to load the data into the MySQL-compatible target database. Setting a large number of \n threads can have an adverse effect on database performance, because a separate connection is required \n for each thread. The default is one.

\n \n

Example: parallelLoadThreads=1 \n

" } }, "Password": { @@ -4682,7 +5576,7 @@ "ServerTimezone": { "target": "com.amazonaws.databasemigrationservice#String", "traits": { - "smithy.api#documentation": "

Specifies the time zone for the source MySQL database.

\n \n

Example: serverTimezone=US/Pacific;\n

\n \n

Note: Do not enclose time zones in single quotes.

" + "smithy.api#documentation": "

Specifies the time zone for the source MySQL database.

\n \n

Example: serverTimezone=US/Pacific;\n

\n \n

Note: Do not enclose time zones in single quotes.

" } }, "Username": { @@ -4694,7 +5588,7 @@ "SecretsManagerAccessRoleArn": { "target": "com.amazonaws.databasemigrationservice#String", "traits": { - "smithy.api#documentation": "

The full Amazon Resource Name (ARN) of the IAM role that specifies DMS\n as the trusted entity and grants the required permissions to access the value in \n SecretsManagerSecret. The role must allow the iam:PassRole action. \n SecretsManagerSecret has the value of the Amazon Web Services Secrets Manager secret \n that allows access to the MySQL endpoint.

\n \n

You can specify one of two sets of values for these permissions. You can specify \n the values for this setting and SecretsManagerSecretId. Or you can specify clear-text\n values for UserName, Password, ServerName, and Port.\n You can't specify both. For more information on creating this SecretsManagerSecret \n and the SecretsManagerAccessRoleArn and SecretsManagerSecretId required to \n access it, see Using secrets to access Database Migration Service resources in the \n Database Migration Service User Guide.\n \n

\n
" + "smithy.api#documentation": "

The full Amazon Resource Name (ARN) of the IAM role that specifies DMS\n as the trusted entity and grants the required permissions to access the value in \n SecretsManagerSecret. The role must allow the iam:PassRole action. \n SecretsManagerSecret has the value of the Amazon Web Services Secrets Manager secret \n that allows access to the MySQL endpoint.

\n \n

You can specify one of two sets of values for these permissions. You can specify \n the values for this setting and SecretsManagerSecretId. Or you can specify clear-text\n values for UserName, Password, ServerName, and Port.\n You can't specify both. For more information on creating this SecretsManagerSecret \n and the SecretsManagerAccessRoleArn and SecretsManagerSecretId required to \n access it, see Using secrets to access Database Migration Service resources in the \n Database Migration Service User Guide.\n \n

\n
" } }, "SecretsManagerSecretId": { @@ -4894,6 +5788,18 @@ "smithy.api#error": "client" } }, + "com.amazonaws.databasemigrationservice#InvalidOperationFault": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.databasemigrationservice#ExceptionMessage" + } + }, + "traits": { + "smithy.api#documentation": "

The action or operation requested isn't valid.

", + "smithy.api#error": "client" + } + }, "com.amazonaws.databasemigrationservice#InvalidResourceStateFault": { "type": "structure", "members": { @@ -4924,6 +5830,26 @@ "smithy.api#error": "client" } }, + "com.amazonaws.databasemigrationservice#InventoryData": { + "type": "structure", + "members": { + "NumberOfDatabases": { + "target": "com.amazonaws.databasemigrationservice#IntegerOptional", + "traits": { + "smithy.api#documentation": "

The number of databases in the Fleet Advisor collector inventory.

" + } + }, + "NumberOfSchemas": { + "target": "com.amazonaws.databasemigrationservice#IntegerOptional", + "traits": { + "smithy.api#documentation": "

The number of schemas in the Fleet Advisor collector inventory.

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

Describes a Fleet Advisor collector inventory.

" + } + }, "com.amazonaws.databasemigrationservice#KMSAccessDeniedFault": { "type": "structure", "members": { @@ -5278,6 +6204,12 @@ "com.amazonaws.databasemigrationservice#Long": { "type": "long" }, + "com.amazonaws.databasemigrationservice#LongOptional": { + "type": "long", + "traits": { + "smithy.api#box": {} + } + }, "com.amazonaws.databasemigrationservice#MessageFormatValue": { "type": "string", "traits": { @@ -6233,7 +7165,7 @@ "TargetDbType": { "target": "com.amazonaws.databasemigrationservice#TargetDbType", "traits": { - "smithy.api#documentation": "

Specifies where to migrate source tables on the target, either\n to a single database or multiple databases.

\n

Example: targetDbType=MULTIPLE_DATABASES\n

" + "smithy.api#documentation": "

Specifies where to migrate source tables on the target, either\n to a single database or multiple databases. If you specify\n SPECIFIC_DATABASE, specify the database name using the DatabaseName\n parameter of the Endpoint object.

\n

Example: targetDbType=MULTIPLE_DATABASES\n

" } }, "MaxFileSize": { @@ -8249,6 +9181,43 @@ "smithy.api#error": "client" } }, + "com.amazonaws.databasemigrationservice#RunFleetAdvisorLsaAnalysis": { + "type": "operation", + "input": { + "target": "smithy.api#Unit" + }, + "output": { + "target": "com.amazonaws.databasemigrationservice#RunFleetAdvisorLsaAnalysisResponse" + }, + "errors": [ + { + "target": "com.amazonaws.databasemigrationservice#InvalidResourceStateFault" + }, + { + "target": "com.amazonaws.databasemigrationservice#ResourceNotFoundFault" + } + ], + "traits": { + "smithy.api#documentation": "

Runs large-scale assessment (LSA) analysis on every Fleet Advisor collector in your account.

" + } + }, + "com.amazonaws.databasemigrationservice#RunFleetAdvisorLsaAnalysisResponse": { + "type": "structure", + "members": { + "LsaAnalysisId": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The ID of the LSA analysis run.

" + } + }, + "Status": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The status of the LSA analysis, for example COMPLETED.

" + } + } + } + }, "com.amazonaws.databasemigrationservice#S3AccessDeniedFault": { "type": "structure", "members": { @@ -8447,7 +9416,7 @@ "UseTaskStartTimeForFullLoadTimestamp": { "target": "com.amazonaws.databasemigrationservice#BooleanOptional", "traits": { - "smithy.api#documentation": "

When set to true, this parameter uses the task start time as the timestamp column value instead of \n the time data is written to target. For full load, when useTaskStartTimeForFullLoadTimestamp\n is set to true, each row of the timestamp column contains the task start time. For CDC loads, \n each row of the timestamp column contains the transaction commit time.

\n \n

When useTaskStartTimeForFullLoadTimestamp is set to false, the full load timestamp \n in the timestamp column increments with the time data arrives at the target.

" + "smithy.api#documentation": "

When set to true, this parameter uses the task start time as the timestamp column value instead of \n the time data is written to target. For full load, when useTaskStartTimeForFullLoadTimestamp\n is set to true, each row of the timestamp column contains the task start time. For CDC loads, \n each row of the timestamp column contains the transaction commit time.

\n \n

When useTaskStartTimeForFullLoadTimestamp is set to false, the full load timestamp \n in the timestamp column increments with the time data arrives at the target.

" } }, "CannedAclForObjects": { @@ -8501,7 +9470,7 @@ "DatePartitionTimezone": { "target": "com.amazonaws.databasemigrationservice#String", "traits": { - "smithy.api#documentation": "

When creating an S3 target endpoint, set DatePartitionTimezone to convert\n the current UTC time into a specified time zone. The conversion occurs when a date\n partition folder is created and a CDC filename is generated. The time zone format is Area/Location.\n Use this parameter when DatePartitionedEnabled is set to true, as shown in the\n following example.

\n

\n s3-settings='{\"DatePartitionEnabled\": true, \"DatePartitionSequence\": \"YYYYMMDDHH\",\n \"DatePartitionDelimiter\": \"SLASH\",\n \"DatePartitionTimezone\":\"Asia/Seoul\", \"BucketName\":\n \"dms-nattarat-test\"}'\n

" + "smithy.api#documentation": "

When creating an S3 target endpoint, set DatePartitionTimezone to convert\n the current UTC time into a specified time zone. The conversion occurs when a date\n partition folder is created and a CDC filename is generated. The time zone format is Area/Location.\n Use this parameter when DatePartitionedEnabled is set to true, as shown in the\n following example.

\n

\n s3-settings='{\"DatePartitionEnabled\": true, \"DatePartitionSequence\": \"YYYYMMDDHH\",\n \"DatePartitionDelimiter\": \"SLASH\",\n \"DatePartitionTimezone\":\"Asia/Seoul\", \"BucketName\":\n \"dms-nattarat-test\"}'\n

" } } }, @@ -8564,12 +9533,135 @@ "target": "com.amazonaws.databasemigrationservice#String" } }, + "com.amazonaws.databasemigrationservice#SchemaResponse": { + "type": "structure", + "members": { + "CodeLineCount": { + "target": "com.amazonaws.databasemigrationservice#LongOptional", + "traits": { + "smithy.api#documentation": "

The number of lines of code in a schema in a Fleet Advisor collector inventory.

" + } + }, + "CodeSize": { + "target": "com.amazonaws.databasemigrationservice#LongOptional", + "traits": { + "smithy.api#documentation": "

The size level of the code in a schema in a Fleet Advisor collector inventory.

" + } + }, + "Complexity": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The complexity level of the code in a schema in a Fleet Advisor collector inventory.

" + } + }, + "Server": { + "target": "com.amazonaws.databasemigrationservice#ServerShortInfoResponse", + "traits": { + "smithy.api#documentation": "

The database server for a schema in a Fleet Advisor collector inventory.

" + } + }, + "DatabaseInstance": { + "target": "com.amazonaws.databasemigrationservice#DatabaseShortInfoResponse", + "traits": { + "smithy.api#documentation": "

The database for a schema in a Fleet Advisor collector inventory.

" + } + }, + "SchemaId": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The ID of a schema in a Fleet Advisor collector inventory.

" + } + }, + "SchemaName": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The name of a schema in a Fleet Advisor collector inventory.

" + } + }, + "OriginalSchema": { + "target": "com.amazonaws.databasemigrationservice#SchemaShortInfoResponse" + }, + "Similarity": { + "target": "com.amazonaws.databasemigrationservice#DoubleOptional", + "traits": { + "smithy.api#documentation": "

The similarity value for a schema in a Fleet Advisor collector inventory. A higher similarity value\n indicates that a schema is likely to be a duplicate.

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

Describes a schema in a Fleet Advisor collector inventory.

" + } + }, + "com.amazonaws.databasemigrationservice#SchemaShortInfoResponse": { + "type": "structure", + "members": { + "SchemaId": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The ID of a schema in a Fleet Advisor collector inventory.

" + } + }, + "SchemaName": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The name of a schema in a Fleet Advisor collector inventory.

" + } + }, + "DatabaseId": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The ID of a database in a Fleet Advisor collector inventory.

" + } + }, + "DatabaseName": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The name of a database in a Fleet Advisor collector inventory.

" + } + }, + "DatabaseIpAddress": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The IP address of a database in a Fleet Advisor collector inventory.

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

Describes a schema in a Fleet Advisor collector inventory.

" + } + }, "com.amazonaws.databasemigrationservice#SecretString": { "type": "string", "traits": { "smithy.api#sensitive": {} } }, + "com.amazonaws.databasemigrationservice#ServerShortInfoResponse": { + "type": "structure", + "members": { + "ServerId": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The ID of a server in a Fleet Advisor collector inventory.

" + } + }, + "IpAddress": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The IP address of a server in a Fleet Advisor collector inventory.

" + } + }, + "ServerName": { + "target": "com.amazonaws.databasemigrationservice#String", + "traits": { + "smithy.api#documentation": "

The name address of a server in a Fleet Advisor collector inventory.

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

Describes a server in a Fleet Advisor collector inventory.

" + } + }, "com.amazonaws.databasemigrationservice#SourceIdsList": { "type": "list", "member": { @@ -8947,6 +10039,12 @@ "com.amazonaws.databasemigrationservice#String": { "type": "string" }, + "com.amazonaws.databasemigrationservice#StringList": { + "type": "list", + "member": { + "target": "com.amazonaws.databasemigrationservice#String" + } + }, "com.amazonaws.databasemigrationservice#Subnet": { "type": "structure", "members": { @@ -9392,6 +10490,25 @@ "smithy.api#error": "client" } }, + "com.amazonaws.databasemigrationservice#VersionStatus": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "UP_TO_DATE", + "name": "UP_TO_DATE" + }, + { + "value": "OUTDATED", + "name": "OUTDATED" + }, + { + "value": "UNSUPPORTED", + "name": "UNSUPPORTED" + } + ] + } + }, "com.amazonaws.databasemigrationservice#VpcSecurityGroupIdList": { "type": "list", "member": {