@aws-sdk/client-opensearch 3.1079.0 → 3.1081.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/README.md +21 -0
  2. package/dist-cjs/index.js +147 -1
  3. package/dist-es/OpenSearch.js +6 -0
  4. package/dist-es/commands/GetMigrationCommand.js +4 -0
  5. package/dist-es/commands/ListMigrationsCommand.js +4 -0
  6. package/dist-es/commands/StartMigrationCommand.js +4 -0
  7. package/dist-es/commands/index.js +3 -0
  8. package/dist-es/schemas/schemas_0.js +115 -0
  9. package/dist-types/OpenSearch.d.ts +21 -0
  10. package/dist-types/OpenSearchClient.d.ts +5 -2
  11. package/dist-types/commands/GetMigrationCommand.d.ts +99 -0
  12. package/dist-types/commands/ListMigrationsCommand.d.ts +104 -0
  13. package/dist-types/commands/ListVpcEndpointAccessCommand.d.ts +1 -1
  14. package/dist-types/commands/ListVpcEndpointsCommand.d.ts +1 -1
  15. package/dist-types/commands/ListVpcEndpointsForDomainCommand.d.ts +1 -1
  16. package/dist-types/commands/PurchaseReservedInstanceOfferingCommand.d.ts +1 -2
  17. package/dist-types/commands/StartMigrationCommand.d.ts +115 -0
  18. package/dist-types/commands/index.d.ts +3 -0
  19. package/dist-types/models/models_0.d.ts +178 -123
  20. package/dist-types/models/models_1.d.ts +248 -1
  21. package/dist-types/schemas/schemas_0.d.ts +16 -0
  22. package/dist-types/ts3.4/OpenSearch.d.ts +51 -0
  23. package/dist-types/ts3.4/OpenSearchClient.d.ts +18 -0
  24. package/dist-types/ts3.4/commands/GetMigrationCommand.d.ts +40 -0
  25. package/dist-types/ts3.4/commands/ListMigrationsCommand.d.ts +43 -0
  26. package/dist-types/ts3.4/commands/ListVpcEndpointAccessCommand.d.ts +1 -1
  27. package/dist-types/ts3.4/commands/ListVpcEndpointsCommand.d.ts +1 -1
  28. package/dist-types/ts3.4/commands/ListVpcEndpointsForDomainCommand.d.ts +1 -1
  29. package/dist-types/ts3.4/commands/PurchaseReservedInstanceOfferingCommand.d.ts +4 -2
  30. package/dist-types/ts3.4/commands/StartMigrationCommand.d.ts +43 -0
  31. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  32. package/dist-types/ts3.4/models/models_0.d.ts +42 -28
  33. package/dist-types/ts3.4/models/models_1.d.ts +61 -0
  34. package/dist-types/ts3.4/schemas/schemas_0.d.ts +16 -0
  35. package/package.json +3 -3
@@ -0,0 +1,115 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { StartMigrationRequest, StartMigrationResponse } from "../models/models_1";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link StartMigrationCommand}.
11
+ */
12
+ export interface StartMigrationCommandInput extends StartMigrationRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link StartMigrationCommand}.
18
+ */
19
+ export interface StartMigrationCommandOutput extends StartMigrationResponse, __MetadataBearer {
20
+ }
21
+ declare const StartMigrationCommand_base: {
22
+ new (input: StartMigrationCommandInput): import("@smithy/core/client").CommandImpl<StartMigrationCommandInput, StartMigrationCommandOutput, import("..").OpenSearchClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: StartMigrationCommandInput): import("@smithy/core/client").CommandImpl<StartMigrationCommandInput, StartMigrationCommandOutput, import("..").OpenSearchClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Initiates a migration job to migrate saved objects from a data source to an Amazon OpenSearch Service application workspace. Saved objects include dashboards, visualizations, index patterns, and searches. You can specify export filters to control the scope of the migration and a conflict resolution strategy for handling existing objects in the target workspace.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { OpenSearchClient, StartMigrationCommand } from "@aws-sdk/client-opensearch"; // ES Modules import
32
+ * // const { OpenSearchClient, StartMigrationCommand } = require("@aws-sdk/client-opensearch"); // CommonJS import
33
+ * // import type { OpenSearchClientConfig } from "@aws-sdk/client-opensearch";
34
+ * const config = {}; // type is OpenSearchClientConfig
35
+ * const client = new OpenSearchClient(config);
36
+ * const input = { // StartMigrationRequest
37
+ * applicationId: "STRING_VALUE", // required
38
+ * migrationOptions: { // MigrationOptions
39
+ * source: { // MigrationSource
40
+ * datasourceArn: "STRING_VALUE", // required
41
+ * },
42
+ * workspace: { // MigrationWorkspace
43
+ * workspaceId: "STRING_VALUE",
44
+ * createWorkspace: true || false,
45
+ * name: "STRING_VALUE",
46
+ * type: "STRING_VALUE",
47
+ * },
48
+ * exportOptions: { // ExportOptions
49
+ * types: [ // StringList
50
+ * "STRING_VALUE",
51
+ * ],
52
+ * objects: [ // SavedObjectIdentifierList
53
+ * { // SavedObjectIdentifier
54
+ * type: "STRING_VALUE", // required
55
+ * id: "STRING_VALUE", // required
56
+ * },
57
+ * ],
58
+ * includeReferencesDeep: true || false,
59
+ * },
60
+ * conflictResolution: "STRING_VALUE",
61
+ * },
62
+ * clientToken: "STRING_VALUE",
63
+ * };
64
+ * const command = new StartMigrationCommand(input);
65
+ * const response = await client.send(command);
66
+ * // { // StartMigrationResponse
67
+ * // migrationId: "STRING_VALUE",
68
+ * // status: "STRING_VALUE",
69
+ * // };
70
+ *
71
+ * ```
72
+ *
73
+ * @param StartMigrationCommandInput - {@link StartMigrationCommandInput}
74
+ * @returns {@link StartMigrationCommandOutput}
75
+ * @see {@link StartMigrationCommandInput} for command's `input` shape.
76
+ * @see {@link StartMigrationCommandOutput} for command's `response` shape.
77
+ * @see {@link OpenSearchClientResolvedConfig | config} for OpenSearchClient's `config` shape.
78
+ *
79
+ * @throws {@link AccessDeniedException} (client fault)
80
+ * <p>An error occurred because you don't have permissions to access the resource.</p>
81
+ *
82
+ * @throws {@link ConflictException} (client fault)
83
+ * <p>An error occurred because the client attempts to remove a resource that is currently in use.</p>
84
+ *
85
+ * @throws {@link DisabledOperationException} (client fault)
86
+ * <p>An error occured because the client wanted to access an unsupported operation.</p>
87
+ *
88
+ * @throws {@link InternalException} (server fault)
89
+ * <p>Request processing failed because of an unknown error, exception, or internal failure.</p>
90
+ *
91
+ * @throws {@link ResourceNotFoundException} (client fault)
92
+ * <p>An exception for accessing or deleting a resource that doesn't exist.</p>
93
+ *
94
+ * @throws {@link ValidationException} (client fault)
95
+ * <p>An exception for accessing or deleting a resource that doesn't exist.</p>
96
+ *
97
+ * @throws {@link OpenSearchServiceException}
98
+ * <p>Base exception class for all service exceptions from OpenSearch service.</p>
99
+ *
100
+ *
101
+ * @public
102
+ */
103
+ export declare class StartMigrationCommand extends StartMigrationCommand_base {
104
+ /** @internal type navigation helper, not in runtime. */
105
+ protected static __types: {
106
+ api: {
107
+ input: StartMigrationRequest;
108
+ output: StartMigrationResponse;
109
+ };
110
+ sdk: {
111
+ input: StartMigrationCommandInput;
112
+ output: StartMigrationCommandOutput;
113
+ };
114
+ };
115
+ }
@@ -52,6 +52,7 @@ export * from "./GetDefaultApplicationSettingCommand";
52
52
  export * from "./GetDirectQueryDataSourceCommand";
53
53
  export * from "./GetDomainMaintenanceStatusCommand";
54
54
  export * from "./GetIndexCommand";
55
+ export * from "./GetMigrationCommand";
55
56
  export * from "./GetPackageVersionHistoryCommand";
56
57
  export * from "./GetUpgradeHistoryCommand";
57
58
  export * from "./GetUpgradeStatusCommand";
@@ -65,6 +66,7 @@ export * from "./ListDomainNamesCommand";
65
66
  export * from "./ListDomainsForPackageCommand";
66
67
  export * from "./ListInsightsCommand";
67
68
  export * from "./ListInstanceTypeDetailsCommand";
69
+ export * from "./ListMigrationsCommand";
68
70
  export * from "./ListPackagesForDomainCommand";
69
71
  export * from "./ListScheduledActionsCommand";
70
72
  export * from "./ListTagsCommand";
@@ -80,6 +82,7 @@ export * from "./RemoveTagsCommand";
80
82
  export * from "./RevokeVpcEndpointAccessCommand";
81
83
  export * from "./RollbackServiceSoftwareUpdateCommand";
82
84
  export * from "./StartDomainMaintenanceCommand";
85
+ export * from "./StartMigrationCommand";
83
86
  export * from "./StartServiceSoftwareUpdateCommand";
84
87
  export * from "./UpdateApplicationCommand";
85
88
  export * from "./UpdateDataSourceCommand";
@@ -6173,6 +6173,93 @@ export interface GetIndexResponse {
6173
6173
  */
6174
6174
  IndexSchema: __DocumentType | undefined;
6175
6175
  }
6176
+ /**
6177
+ * @public
6178
+ */
6179
+ export interface GetMigrationRequest {
6180
+ /**
6181
+ * <p>The unique identifier of the migration job to retrieve.</p>
6182
+ * @public
6183
+ */
6184
+ migrationId: string | undefined;
6185
+ }
6186
+ /**
6187
+ * <p>Contains error details for a migration that failed or completed with errors.</p>
6188
+ * @public
6189
+ */
6190
+ export interface MigrationError {
6191
+ /**
6192
+ * <p>The error code identifying the type of failure.</p>
6193
+ * @public
6194
+ */
6195
+ code?: string | undefined;
6196
+ /**
6197
+ * <p>A human-readable description of the error.</p>
6198
+ * @public
6199
+ */
6200
+ message?: string | undefined;
6201
+ }
6202
+ /**
6203
+ * <p>The source configuration for a migration, specifying the data source from which to export saved objects.</p>
6204
+ * @public
6205
+ */
6206
+ export interface MigrationSource {
6207
+ /**
6208
+ * <p>The Amazon Resource Name (ARN) of the data source to migrate saved objects from.</p>
6209
+ * @public
6210
+ */
6211
+ datasourceArn: string | undefined;
6212
+ }
6213
+ /**
6214
+ * @public
6215
+ */
6216
+ export interface GetMigrationResponse {
6217
+ /**
6218
+ * <p>The unique identifier of the migration job.</p>
6219
+ * @public
6220
+ */
6221
+ migrationId?: string | undefined;
6222
+ /**
6223
+ * <p>The current status of the migration job. Valid values are <code>PENDING</code>, <code>IN_PROGRESS</code>, <code>SUCCEEDED</code>, and <code>FAILED</code>.</p>
6224
+ * @public
6225
+ */
6226
+ status?: string | undefined;
6227
+ /**
6228
+ * <p>The unique identifier of the OpenSearch application associated with the migration.</p>
6229
+ * @public
6230
+ */
6231
+ applicationId?: string | undefined;
6232
+ /**
6233
+ * <p>The source configuration for the migration, including the data source ARN.</p>
6234
+ * @public
6235
+ */
6236
+ source?: MigrationSource | undefined;
6237
+ /**
6238
+ * <p>The number of saved objects exported from the source data source.</p>
6239
+ * @public
6240
+ */
6241
+ exportedCount?: number | undefined;
6242
+ /**
6243
+ * <p>The number of saved objects successfully imported into the target workspace.</p>
6244
+ * @public
6245
+ */
6246
+ importedCount?: number | undefined;
6247
+ /**
6248
+ * <p>Error details if the migration failed or completed with errors.</p>
6249
+ * @public
6250
+ */
6251
+ error?: MigrationError | undefined;
6252
+ /**
6253
+ * <p>The date and time when the migration job was created.</p>
6254
+ * @public
6255
+ */
6256
+ createdAt?: Date | undefined;
6257
+ /**
6258
+ * <p>The date and time when the migration job was last updated.</p>
6259
+ * @public
6260
+ */
6261
+ updatedAt?: Date | undefined;
6262
+ }
6176
6263
  /**
6177
6264
  * <p>Container for the request parameters to the <code>GetPackageVersionHistory</code>
6178
6265
  * operation.</p>
@@ -7166,6 +7253,97 @@ export interface ListInstanceTypeDetailsResponse {
7166
7253
  */
7167
7254
  NextToken?: string | undefined;
7168
7255
  }
7256
+ /**
7257
+ * @public
7258
+ */
7259
+ export interface ListMigrationsRequest {
7260
+ /**
7261
+ * <p>The unique identifier of the OpenSearch application to list migrations for.</p>
7262
+ * @public
7263
+ */
7264
+ applicationId: string | undefined;
7265
+ /**
7266
+ * <p>Filters the results by migration status. Valid values are <code>PENDING</code>, <code>IN_PROGRESS</code>, <code>SUCCEEDED</code>, and <code>FAILED</code>.</p>
7267
+ * @public
7268
+ */
7269
+ status?: string | undefined;
7270
+ /**
7271
+ * <p>The maximum number of results to return in a single call.</p>
7272
+ * @public
7273
+ */
7274
+ maxResults?: number | undefined;
7275
+ /**
7276
+ * <p>The pagination token from a previous call to retrieve the next set of results.</p>
7277
+ * @public
7278
+ */
7279
+ nextToken?: string | undefined;
7280
+ }
7281
+ /**
7282
+ * <p>A summary of a migration job, including its status and progress.</p>
7283
+ * @public
7284
+ */
7285
+ export interface MigrationSummary {
7286
+ /**
7287
+ * <p>The unique identifier of the migration job.</p>
7288
+ * @public
7289
+ */
7290
+ migrationId?: string | undefined;
7291
+ /**
7292
+ * <p>The current status of the migration job.</p>
7293
+ * @public
7294
+ */
7295
+ status?: string | undefined;
7296
+ /**
7297
+ * <p>The unique identifier of the OpenSearch application associated with the migration.</p>
7298
+ * @public
7299
+ */
7300
+ applicationId?: string | undefined;
7301
+ /**
7302
+ * <p>The source configuration for the migration.</p>
7303
+ * @public
7304
+ */
7305
+ source?: MigrationSource | undefined;
7306
+ /**
7307
+ * <p>The number of saved objects exported from the source data source.</p>
7308
+ * @public
7309
+ */
7310
+ exportedCount?: number | undefined;
7311
+ /**
7312
+ * <p>The number of saved objects successfully imported into the target workspace.</p>
7313
+ * @public
7314
+ */
7315
+ importedCount?: number | undefined;
7316
+ /**
7317
+ * <p>Error details if the migration failed or completed with errors.</p>
7318
+ * @public
7319
+ */
7320
+ error?: MigrationError | undefined;
7321
+ /**
7322
+ * <p>The date and time when the migration job was created.</p>
7323
+ * @public
7324
+ */
7325
+ createdAt?: Date | undefined;
7326
+ /**
7327
+ * <p>The date and time when the migration job was last updated.</p>
7328
+ * @public
7329
+ */
7330
+ updatedAt?: Date | undefined;
7331
+ }
7332
+ /**
7333
+ * @public
7334
+ */
7335
+ export interface ListMigrationsResponse {
7336
+ /**
7337
+ * <p>A list of migration job summaries for the specified application.</p>
7338
+ * @public
7339
+ */
7340
+ migrations?: MigrationSummary[] | undefined;
7341
+ /**
7342
+ * <p>The pagination token to use in a subsequent call to retrieve the next set of results.</p>
7343
+ * @public
7344
+ */
7345
+ nextToken?: string | undefined;
7346
+ }
7169
7347
  /**
7170
7348
  * <p>Container for the request parameters to the <code>ListPackagesForDomain</code>
7171
7349
  * operation.</p>
@@ -7370,126 +7548,3 @@ export interface ListVersionsResponse {
7370
7548
  */
7371
7549
  NextToken?: string | undefined;
7372
7550
  }
7373
- /**
7374
- * @public
7375
- */
7376
- export interface ListVpcEndpointAccessRequest {
7377
- /**
7378
- * <p>The name of the OpenSearch Service domain to retrieve access information for.</p>
7379
- * @public
7380
- */
7381
- DomainName: string | undefined;
7382
- /**
7383
- * <p>If your initial <code>ListVpcEndpointAccess</code> operation returns a
7384
- * <code>nextToken</code>, you can include the returned <code>nextToken</code> in
7385
- * subsequent <code>ListVpcEndpointAccess</code> operations, which returns results in the
7386
- * next page.</p>
7387
- * @public
7388
- */
7389
- NextToken?: string | undefined;
7390
- }
7391
- /**
7392
- * @public
7393
- */
7394
- export interface ListVpcEndpointAccessResponse {
7395
- /**
7396
- * <p>A list of <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html">IAM
7397
- * principals</a> that can currently access the domain.</p>
7398
- * @public
7399
- */
7400
- AuthorizedPrincipalList: AuthorizedPrincipal[] | undefined;
7401
- /**
7402
- * <p>When <code>nextToken</code> is returned, there are more results available. The value
7403
- * of <code>nextToken</code> is a unique pagination token for each page. Send the request
7404
- * again using the returned token to retrieve the next page.</p>
7405
- * @public
7406
- */
7407
- NextToken: string | undefined;
7408
- }
7409
- /**
7410
- * @public
7411
- */
7412
- export interface ListVpcEndpointsRequest {
7413
- /**
7414
- * <p>If your initial <code>ListVpcEndpoints</code> operation returns a
7415
- * <code>nextToken</code>, you can include the returned <code>nextToken</code> in
7416
- * subsequent <code>ListVpcEndpoints</code> operations, which returns results in the next
7417
- * page.</p>
7418
- * @public
7419
- */
7420
- NextToken?: string | undefined;
7421
- }
7422
- /**
7423
- * @public
7424
- */
7425
- export interface ListVpcEndpointsResponse {
7426
- /**
7427
- * <p>Information about each endpoint.</p>
7428
- * @public
7429
- */
7430
- VpcEndpointSummaryList: VpcEndpointSummary[] | undefined;
7431
- /**
7432
- * <p>When <code>nextToken</code> is returned, there are more results available. The value
7433
- * of <code>nextToken</code> is a unique pagination token for each page. Send the request
7434
- * again using the returned token to retrieve the next page.</p>
7435
- * @public
7436
- */
7437
- NextToken: string | undefined;
7438
- }
7439
- /**
7440
- * @public
7441
- */
7442
- export interface ListVpcEndpointsForDomainRequest {
7443
- /**
7444
- * <p>The name of the domain to list associated VPC endpoints for.</p>
7445
- * @public
7446
- */
7447
- DomainName: string | undefined;
7448
- /**
7449
- * <p>If your initial <code>ListEndpointsForDomain</code> operation returns a
7450
- * <code>nextToken</code>, you can include the returned <code>nextToken</code> in
7451
- * subsequent <code>ListEndpointsForDomain</code> operations, which returns results in the
7452
- * next page.</p>
7453
- * @public
7454
- */
7455
- NextToken?: string | undefined;
7456
- }
7457
- /**
7458
- * @public
7459
- */
7460
- export interface ListVpcEndpointsForDomainResponse {
7461
- /**
7462
- * <p>Information about each endpoint associated with the domain.</p>
7463
- * @public
7464
- */
7465
- VpcEndpointSummaryList: VpcEndpointSummary[] | undefined;
7466
- /**
7467
- * <p>When <code>nextToken</code> is returned, there are more results available. The value
7468
- * of <code>nextToken</code> is a unique pagination token for each page. Send the request
7469
- * again using the returned token to retrieve the next page.</p>
7470
- * @public
7471
- */
7472
- NextToken: string | undefined;
7473
- }
7474
- /**
7475
- * <p>Container for request parameters to the <code>PurchaseReservedInstanceOffering</code>
7476
- * operation.</p>
7477
- * @public
7478
- */
7479
- export interface PurchaseReservedInstanceOfferingRequest {
7480
- /**
7481
- * <p>The ID of the Reserved Instance offering to purchase.</p>
7482
- * @public
7483
- */
7484
- ReservedInstanceOfferingId: string | undefined;
7485
- /**
7486
- * <p>A customer-specified identifier to track this reservation.</p>
7487
- * @public
7488
- */
7489
- ReservationName: string | undefined;
7490
- /**
7491
- * <p>The number of OpenSearch instances to reserve.</p>
7492
- * @public
7493
- */
7494
- InstanceCount?: number | undefined;
7495
- }