@aws-sdk/client-database-migration-service 3.1097.0 → 3.1099.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.
- package/dist-cjs/index.js +1 -1
- package/dist-types/commands/CancelMetadataModelConversionCommand.d.ts +24 -0
- package/dist-types/commands/CancelMetadataModelCreationCommand.d.ts +24 -0
- package/dist-types/commands/CreateDataProviderCommand.d.ts +25 -24
- package/dist-types/commands/CreateInstanceProfileCommand.d.ts +23 -20
- package/dist-types/commands/CreateMigrationProjectCommand.d.ts +36 -36
- package/dist-types/commands/DeleteDataProviderCommand.d.ts +18 -12
- package/dist-types/commands/DeleteInstanceProfileCommand.d.ts +16 -10
- package/dist-types/commands/DeleteMigrationProjectCommand.d.ts +25 -19
- package/dist-types/commands/DescribeConversionConfigurationCommand.d.ts +9 -5
- package/dist-types/commands/DescribeDataProvidersCommand.d.ts +20 -17
- package/dist-types/commands/DescribeExtensionPackAssociationsCommand.d.ts +35 -13
- package/dist-types/commands/DescribeInstanceProfilesCommand.d.ts +20 -14
- package/dist-types/commands/DescribeMetadataModelAssessmentsCommand.d.ts +41 -12
- package/dist-types/commands/DescribeMetadataModelChildrenCommand.d.ts +38 -0
- package/dist-types/commands/DescribeMetadataModelCommand.d.ts +29 -0
- package/dist-types/commands/DescribeMetadataModelConversionsCommand.d.ts +42 -10
- package/dist-types/commands/DescribeMetadataModelCreationsCommand.d.ts +55 -1
- package/dist-types/commands/DescribeMetadataModelExportsAsScriptCommand.d.ts +42 -10
- package/dist-types/commands/DescribeMetadataModelExportsToTargetCommand.d.ts +38 -10
- package/dist-types/commands/DescribeMetadataModelImportsCommand.d.ts +38 -10
- package/dist-types/commands/DescribeMigrationProjectsCommand.d.ts +26 -23
- package/dist-types/commands/ExportMetadataModelAssessmentCommand.d.ts +15 -10
- package/dist-types/commands/GetTargetSelectionRulesCommand.d.ts +20 -0
- package/dist-types/commands/ModifyConversionConfigurationCommand.d.ts +9 -5
- package/dist-types/commands/ModifyDataProviderCommand.d.ts +20 -18
- package/dist-types/commands/ModifyInstanceProfileCommand.d.ts +18 -18
- package/dist-types/commands/ModifyMigrationProjectCommand.d.ts +27 -36
- package/dist-types/commands/StartExtensionPackAssociationCommand.d.ts +18 -7
- package/dist-types/commands/StartMetadataModelAssessmentCommand.d.ts +22 -10
- package/dist-types/commands/StartMetadataModelConversionCommand.d.ts +56 -6
- package/dist-types/commands/StartMetadataModelCreationCommand.d.ts +53 -2
- package/dist-types/commands/StartMetadataModelExportAsScriptCommand.d.ts +22 -9
- package/dist-types/commands/StartMetadataModelExportToTargetCommand.d.ts +25 -6
- package/dist-types/commands/StartMetadataModelImportCommand.d.ts +16 -8
- package/dist-types/models/models_0.d.ts +339 -71
- package/dist-types/models/models_1.d.ts +93 -25
- package/package.json +6 -6
|
@@ -24,9 +24,20 @@ declare const StartExtensionPackAssociationCommand_base: {
|
|
|
24
24
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
|
-
* <p>
|
|
28
|
-
*
|
|
29
|
-
*
|
|
27
|
+
* <p>Queues the installation of the extension pack on your target database. If other
|
|
28
|
+
* requests created by <code>Start*</code> operations are already in the migration project's
|
|
29
|
+
* queue, the installation begins after they complete.</p>
|
|
30
|
+
* <p>This operation requires a non-virtual target data provider.</p>
|
|
31
|
+
* <p>If the extension pack already exists, the operation reinstalls it. To ensure
|
|
32
|
+
* compatibility, reconvert your database objects if the version has changed since your last
|
|
33
|
+
* conversion. For more information, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/extension-pack.html">Using extension packs in DMS Schema Conversion</a>.</p>
|
|
34
|
+
* <p>To check the status of the request, call
|
|
35
|
+
* <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_DescribeExtensionPackAssociations.html">DescribeExtensionPackAssociations</a> using the returned
|
|
36
|
+
* <code>RequestIdentifier</code> as a filter.</p>
|
|
37
|
+
* <p>
|
|
38
|
+
* <b>Required permissions:</b>
|
|
39
|
+
* <code>dms:AssociateExtensionPack</code>. For more information, see
|
|
40
|
+
* <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsdatabasemigrationservice.html">Actions, resources, and condition keys for Database Migration Service</a>.</p>
|
|
30
41
|
* @example
|
|
31
42
|
* Use a bare-bones client and the command you need to make an API call.
|
|
32
43
|
* ```javascript
|
|
@@ -82,17 +93,17 @@ declare const StartExtensionPackAssociationCommand_base: {
|
|
|
82
93
|
* <p>Base exception class for all service exceptions from DatabaseMigrationService service.</p>
|
|
83
94
|
*
|
|
84
95
|
*
|
|
85
|
-
* @example
|
|
96
|
+
* @example Install the extension pack on the target database
|
|
86
97
|
* ```javascript
|
|
87
|
-
* //
|
|
98
|
+
* // The following example queues the installation of the extension pack on the target database.
|
|
88
99
|
* const input = {
|
|
89
|
-
* MigrationProjectIdentifier: "arn:aws:dms:us-east-1:
|
|
100
|
+
* MigrationProjectIdentifier: "arn:aws:dms:us-east-1:111122223333:migration-project:EXAMPLEABCDEFGHIJKLMNOPQRS"
|
|
90
101
|
* };
|
|
91
102
|
* const command = new StartExtensionPackAssociationCommand(input);
|
|
92
103
|
* const response = await client.send(command);
|
|
93
104
|
* /* response is
|
|
94
105
|
* {
|
|
95
|
-
* RequestIdentifier: "
|
|
106
|
+
* RequestIdentifier: "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
|
|
96
107
|
* }
|
|
97
108
|
* *\/
|
|
98
109
|
* ```
|
|
@@ -24,10 +24,23 @@ declare const StartMetadataModelAssessmentCommand_base: {
|
|
|
24
24
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
|
-
* <p>
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
27
|
+
* <p>Queues an assessment of the selected source metadata models (database objects such as
|
|
28
|
+
* tables, views, and procedures) to evaluate conversion complexity to the target database
|
|
29
|
+
* format. If other requests created by <code>Start*</code> operations are already in the
|
|
30
|
+
* migration project's queue, the assessment begins after they complete.</p>
|
|
31
|
+
* <p>The assessment request loads metadata models that are not yet in the metadata tree, but
|
|
32
|
+
* does not reload metadata models that are already present. If your source database has
|
|
33
|
+
* changed since the metadata was loaded, refresh the affected metadata models with
|
|
34
|
+
* <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_StartMetadataModelImport.html">StartMetadataModelImport</a> before calling this operation.</p>
|
|
35
|
+
* <p>To check the status of the assessment request, call
|
|
36
|
+
* <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_DescribeMetadataModelAssessments.html">DescribeMetadataModelAssessments</a> using the returned
|
|
37
|
+
* <code>RequestIdentifier</code> as a filter.</p>
|
|
38
|
+
* <p>To export the conversion assessment report after the request completes successfully,
|
|
39
|
+
* call <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_ExportMetadataModelAssessment.html">ExportMetadataModelAssessment</a>.</p>
|
|
40
|
+
* <p>
|
|
41
|
+
* <b>Required permissions:</b>
|
|
42
|
+
* <code>dms:StartMetadataModelAssessment</code>. For more information, see
|
|
43
|
+
* <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsdatabasemigrationservice.html">Actions, resources, and condition keys for Database Migration Service</a>.</p>
|
|
31
44
|
* @example
|
|
32
45
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
46
|
* ```javascript
|
|
@@ -84,19 +97,18 @@ declare const StartMetadataModelAssessmentCommand_base: {
|
|
|
84
97
|
* <p>Base exception class for all service exceptions from DatabaseMigrationService service.</p>
|
|
85
98
|
*
|
|
86
99
|
*
|
|
87
|
-
* @example
|
|
100
|
+
* @example Assess all objects in a schema
|
|
88
101
|
* ```javascript
|
|
89
|
-
* //
|
|
90
|
-
* your source database.
|
|
102
|
+
* // The following example queues an assessment of the conversion complexity for all objects in the ExampleSchema schema.
|
|
91
103
|
* const input = {
|
|
92
|
-
* MigrationProjectIdentifier: "arn:aws:dms:us-east-1:
|
|
93
|
-
* SelectionRules: `{"rules": [{"rule-type": "selection","rule-id": "1","rule-name": "1","object-locator": {"server-name": "
|
|
104
|
+
* MigrationProjectIdentifier: "arn:aws:dms:us-east-1:111122223333:migration-project:EXAMPLEABCDEFGHIJKLMNOPQRS",
|
|
105
|
+
* SelectionRules: `{"rules": [{"rule-type": "selection","rule-id": "1","rule-name": "1","object-locator": {"server-name": "example-source-server.us-east-1.rds.amazonaws.com", "schema-name": "ExampleSchema"},"rule-action": "explicit"}]}`
|
|
94
106
|
* };
|
|
95
107
|
* const command = new StartMetadataModelAssessmentCommand(input);
|
|
96
108
|
* const response = await client.send(command);
|
|
97
109
|
* /* response is
|
|
98
110
|
* {
|
|
99
|
-
* RequestIdentifier: "
|
|
111
|
+
* RequestIdentifier: "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
|
|
100
112
|
* }
|
|
101
113
|
* *\/
|
|
102
114
|
* ```
|
|
@@ -24,7 +24,57 @@ declare const StartMetadataModelConversionCommand_base: {
|
|
|
24
24
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
|
-
* <p>
|
|
27
|
+
* <p>Queues a conversion of the selected source metadata models (database objects such as
|
|
28
|
+
* tables, views, and procedures) to the target database format. If other requests created
|
|
29
|
+
* by <code>Start*</code> operations are already in the migration project's queue, the
|
|
30
|
+
* conversion begins after they complete.</p>
|
|
31
|
+
* <p>The conversion request loads metadata models that are not yet in the metadata tree, but
|
|
32
|
+
* does not reload metadata models that are already present. If your source database has
|
|
33
|
+
* changed since the metadata was loaded, refresh the affected metadata models with
|
|
34
|
+
* <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_StartMetadataModelImport.html">StartMetadataModelImport</a> before calling this operation.</p>
|
|
35
|
+
* <note>
|
|
36
|
+
* <p>If converted objects already exist in the target metadata tree, the conversion
|
|
37
|
+
* overwrites them, including any manual edits.</p>
|
|
38
|
+
* </note>
|
|
39
|
+
* <p>To check the status of the conversion request, call
|
|
40
|
+
* <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_DescribeMetadataModelConversions.html">DescribeMetadataModelConversions</a> using the returned
|
|
41
|
+
* <code>RequestIdentifier</code> as a filter.</p>
|
|
42
|
+
* <p>To cancel a queued or in-progress request, call
|
|
43
|
+
* <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_CancelMetadataModelConversion.html">CancelMetadataModelConversion</a> with the returned
|
|
44
|
+
* <code>RequestIdentifier</code>.</p>
|
|
45
|
+
* <p>After the conversion completes successfully:</p>
|
|
46
|
+
* <ul>
|
|
47
|
+
* <li>
|
|
48
|
+
* <p>To export a post-conversion assessment report, call
|
|
49
|
+
* <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_ExportMetadataModelAssessment.html">ExportMetadataModelAssessment</a>.</p>
|
|
50
|
+
* </li>
|
|
51
|
+
* <li>
|
|
52
|
+
* <p>To retrieve converted code, use any of the following
|
|
53
|
+
* options:</p>
|
|
54
|
+
* <ul>
|
|
55
|
+
* <li>
|
|
56
|
+
* <p>
|
|
57
|
+
* <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_DescribeMetadataModel.html">DescribeMetadataModel</a> and
|
|
58
|
+
* <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_DescribeMetadataModelChildren.html">DescribeMetadataModelChildren</a> – navigate the target metadata
|
|
59
|
+
* tree and retrieve converted definitions.</p>
|
|
60
|
+
* </li>
|
|
61
|
+
* <li>
|
|
62
|
+
* <p>
|
|
63
|
+
* <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_StartMetadataModelExportAsScript.html">StartMetadataModelExportAsScript</a> – export as data definition
|
|
64
|
+
* language (DDL) scripts to your Amazon S3 bucket.</p>
|
|
65
|
+
* </li>
|
|
66
|
+
* <li>
|
|
67
|
+
* <p>
|
|
68
|
+
* <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_StartMetadataModelExportToTarget.html">StartMetadataModelExportToTarget</a> – apply directly to your
|
|
69
|
+
* target database.</p>
|
|
70
|
+
* </li>
|
|
71
|
+
* </ul>
|
|
72
|
+
* </li>
|
|
73
|
+
* </ul>
|
|
74
|
+
* <p>
|
|
75
|
+
* <b>Required permissions:</b>
|
|
76
|
+
* <code>dms:StartMetadataModelConversion</code>. For more information, see
|
|
77
|
+
* <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsdatabasemigrationservice.html">Actions, resources, and condition keys for Database Migration Service</a>.</p>
|
|
28
78
|
* @example
|
|
29
79
|
* Use a bare-bones client and the command you need to make an API call.
|
|
30
80
|
* ```javascript
|
|
@@ -81,18 +131,18 @@ declare const StartMetadataModelConversionCommand_base: {
|
|
|
81
131
|
* <p>Base exception class for all service exceptions from DatabaseMigrationService service.</p>
|
|
82
132
|
*
|
|
83
133
|
*
|
|
84
|
-
* @example
|
|
134
|
+
* @example Convert all objects in a schema
|
|
85
135
|
* ```javascript
|
|
86
|
-
* //
|
|
136
|
+
* // The following example queues a conversion of all objects in the ExampleSchema schema to the target database format.
|
|
87
137
|
* const input = {
|
|
88
|
-
* MigrationProjectIdentifier: "arn:aws:dms:us-east-1:
|
|
89
|
-
* SelectionRules: `{"rules": [{"rule-type": "selection","rule-id": "1","rule-name": "1","object-locator": {"server-name": "
|
|
138
|
+
* MigrationProjectIdentifier: "arn:aws:dms:us-east-1:111122223333:migration-project:EXAMPLEABCDEFGHIJKLMNOPQRS",
|
|
139
|
+
* SelectionRules: `{"rules": [{"rule-type": "selection","rule-id": "1","rule-name": "1","object-locator": {"server-name": "example-source-server.us-east-1.rds.amazonaws.com", "schema-name": "ExampleSchema"},"rule-action": "explicit"}]}`
|
|
90
140
|
* };
|
|
91
141
|
* const command = new StartMetadataModelConversionCommand(input);
|
|
92
142
|
* const response = await client.send(command);
|
|
93
143
|
* /* response is
|
|
94
144
|
* {
|
|
95
|
-
* RequestIdentifier: "
|
|
145
|
+
* RequestIdentifier: "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
|
|
96
146
|
* }
|
|
97
147
|
* *\/
|
|
98
148
|
* ```
|
|
@@ -24,10 +24,39 @@ declare const StartMetadataModelCreationCommand_base: {
|
|
|
24
24
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
|
-
* <p>
|
|
27
|
+
* <p>Queues the creation of a metadata model in the source metadata tree. If other requests
|
|
28
|
+
* created by <code>Start*</code> operations are already in the migration project's queue, the
|
|
29
|
+
* creation begins after they complete.</p>
|
|
28
30
|
* <note>
|
|
29
|
-
* <p>This
|
|
31
|
+
* <p>This operation supports only Microsoft SQL Server to Aurora PostgreSQL and
|
|
32
|
+
* Microsoft SQL Server to Amazon RDS for PostgreSQL conversion paths.</p>
|
|
30
33
|
* </note>
|
|
34
|
+
* <p>To check the status of the creation request, call
|
|
35
|
+
* <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_DescribeMetadataModelCreations.html">DescribeMetadataModelCreations</a> using the returned
|
|
36
|
+
* <code>RequestIdentifier</code> as a filter.</p>
|
|
37
|
+
* <p>To cancel a queued or in-progress request, call
|
|
38
|
+
* <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_CancelMetadataModelCreation.html">CancelMetadataModelCreation</a> with the returned
|
|
39
|
+
* <code>RequestIdentifier</code>.</p>
|
|
40
|
+
* <important>
|
|
41
|
+
* <p>Calling
|
|
42
|
+
* <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_StartMetadataModelImport.html">StartMetadataModelImport</a> with <code>Refresh</code> deletes metadata models
|
|
43
|
+
* created by this operation.</p>
|
|
44
|
+
* </important>
|
|
45
|
+
* <p>After the creation completes successfully:</p>
|
|
46
|
+
* <ul>
|
|
47
|
+
* <li>
|
|
48
|
+
* <p>To evaluate conversion complexity, call
|
|
49
|
+
* <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_StartMetadataModelAssessment.html">StartMetadataModelAssessment</a>.</p>
|
|
50
|
+
* </li>
|
|
51
|
+
* <li>
|
|
52
|
+
* <p>To convert to the target database format, call
|
|
53
|
+
* <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_StartMetadataModelConversion.html">StartMetadataModelConversion</a>.</p>
|
|
54
|
+
* </li>
|
|
55
|
+
* </ul>
|
|
56
|
+
* <p>
|
|
57
|
+
* <b>Required permissions:</b>
|
|
58
|
+
* <code>dms:StartMetadataModelCreation</code>. For more information, see
|
|
59
|
+
* <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsdatabasemigrationservice.html">Actions, resources, and condition keys for Database Migration Service</a>.</p>
|
|
31
60
|
* @example
|
|
32
61
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
62
|
* ```javascript
|
|
@@ -77,6 +106,28 @@ declare const StartMetadataModelCreationCommand_base: {
|
|
|
77
106
|
* <p>Base exception class for all service exceptions from DatabaseMigrationService service.</p>
|
|
78
107
|
*
|
|
79
108
|
*
|
|
109
|
+
* @example Create a metadata model for a SQL statement
|
|
110
|
+
* ```javascript
|
|
111
|
+
* // The following example queues the creation of a metadata model for a SQL statement. The selection rule specifies the schema where the metadata model is placed, and MetadataModelName provides a unique identifier for use in subsequent operations.
|
|
112
|
+
* const input = {
|
|
113
|
+
* MetadataModelName: "ExampleStatement",
|
|
114
|
+
* MigrationProjectIdentifier: "arn:aws:dms:us-east-1:111122223333:migration-project:EXAMPLEABCDEFGHIJKLMNOPQRS",
|
|
115
|
+
* Properties: {
|
|
116
|
+
* StatementProperties: {
|
|
117
|
+
* Definition: "SELECT * FROM ExampleTable;"
|
|
118
|
+
* }
|
|
119
|
+
* },
|
|
120
|
+
* SelectionRules: `{"rules": [{"rule-type": "selection", "rule-id": "1", "rule-name": "1", "object-locator": {"server-name": "example-source-server.us-east-1.rds.amazonaws.com", "database-name": "ExampleDatabase", "schema-name": "ExampleSchema"}, "rule-action": "explicit"}]}`
|
|
121
|
+
* };
|
|
122
|
+
* const command = new StartMetadataModelCreationCommand(input);
|
|
123
|
+
* const response = await client.send(command);
|
|
124
|
+
* /* response is
|
|
125
|
+
* {
|
|
126
|
+
* RequestIdentifier: "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
|
|
127
|
+
* }
|
|
128
|
+
* *\/
|
|
129
|
+
* ```
|
|
130
|
+
*
|
|
80
131
|
* @public
|
|
81
132
|
*/
|
|
82
133
|
export declare class StartMetadataModelCreationCommand extends StartMetadataModelCreationCommand_base {
|
|
@@ -24,8 +24,21 @@ declare const StartMetadataModelExportAsScriptCommand_base: {
|
|
|
24
24
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
|
-
* <p>
|
|
28
|
-
*
|
|
27
|
+
* <p>Queues an export of metadata models (database objects such as tables, views, and
|
|
28
|
+
* procedures) as a data definition language (DDL) script. The script is stored as a ZIP
|
|
29
|
+
* archive in the Amazon S3 bucket associated with the migration project. If other requests
|
|
30
|
+
* created by <code>Start*</code> operations are already in the migration project's queue,
|
|
31
|
+
* the export begins after they complete.</p>
|
|
32
|
+
* <p>When exporting from the target metadata tree, the export applies only to metadata
|
|
33
|
+
* models created by conversion. Metadata models imported from the database are
|
|
34
|
+
* skipped.</p>
|
|
35
|
+
* <p>To check the status of the export request, call
|
|
36
|
+
* <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_DescribeMetadataModelExportsAsScript.html">DescribeMetadataModelExportsAsScript</a> using the returned
|
|
37
|
+
* <code>RequestIdentifier</code> as a filter.</p>
|
|
38
|
+
* <p>
|
|
39
|
+
* <b>Required permissions:</b>
|
|
40
|
+
* <code>dms:StartMetadataModelExportAsScripts</code>. For more information, see
|
|
41
|
+
* <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsdatabasemigrationservice.html">Actions, resources, and condition keys for Database Migration Service</a>.</p>
|
|
29
42
|
* @example
|
|
30
43
|
* Use a bare-bones client and the command you need to make an API call.
|
|
31
44
|
* ```javascript
|
|
@@ -84,20 +97,20 @@ declare const StartMetadataModelExportAsScriptCommand_base: {
|
|
|
84
97
|
* <p>Base exception class for all service exceptions from DatabaseMigrationService service.</p>
|
|
85
98
|
*
|
|
86
99
|
*
|
|
87
|
-
* @example
|
|
100
|
+
* @example Export converted metadata models as DDL scripts
|
|
88
101
|
* ```javascript
|
|
89
|
-
* //
|
|
102
|
+
* // The following example queues an export of converted metadata models for all objects in the ExampleSchema schema as data definition language (DDL) scripts to the S3 bucket associated with the migration project.
|
|
90
103
|
* const input = {
|
|
91
|
-
* FileName: "
|
|
92
|
-
* MigrationProjectIdentifier: "arn:aws:dms:us-east-1:
|
|
93
|
-
* Origin: "
|
|
94
|
-
* SelectionRules: `{"rules": [{"rule-type": "selection","rule-id": "1","rule-name": "1","object-locator": {"server-name": "
|
|
104
|
+
* FileName: "ExampleScript",
|
|
105
|
+
* MigrationProjectIdentifier: "arn:aws:dms:us-east-1:111122223333:migration-project:EXAMPLEABCDEFGHIJKLMNOPQRS",
|
|
106
|
+
* Origin: "TARGET",
|
|
107
|
+
* SelectionRules: `{"rules": [{"rule-type": "selection","rule-id": "1","rule-name": "1","object-locator": {"server-name": "example-target-server.us-east-1.rds.amazonaws.com", "schema-name": "ExampleSchema"},"rule-action": "explicit"}]}`
|
|
95
108
|
* };
|
|
96
109
|
* const command = new StartMetadataModelExportAsScriptCommand(input);
|
|
97
110
|
* const response = await client.send(command);
|
|
98
111
|
* /* response is
|
|
99
112
|
* {
|
|
100
|
-
* RequestIdentifier: "
|
|
113
|
+
* RequestIdentifier: "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
|
|
101
114
|
* }
|
|
102
115
|
* *\/
|
|
103
116
|
* ```
|
|
@@ -24,7 +24,26 @@ declare const StartMetadataModelExportToTargetCommand_base: {
|
|
|
24
24
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
|
-
* <p>
|
|
27
|
+
* <p>Queues an export of the selected converted metadata models (database objects such as
|
|
28
|
+
* tables, views, and procedures) to your target database. If other requests created by
|
|
29
|
+
* <code>Start*</code> operations are already in the migration project's queue, the export
|
|
30
|
+
* begins after they complete.</p>
|
|
31
|
+
* <p>This operation requires a non-virtual target data provider.</p>
|
|
32
|
+
* <p>The export applies only metadata models created by conversion. Metadata models
|
|
33
|
+
* imported from the database are skipped.</p>
|
|
34
|
+
* <note>
|
|
35
|
+
* <p>If objects with the same name already exist on the target database, the export
|
|
36
|
+
* overwrites them.</p>
|
|
37
|
+
* </note>
|
|
38
|
+
* <p>The operation installs the extension pack on the target database. For more
|
|
39
|
+
* information, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/extension-pack.html">Using extension packs in DMS Schema Conversion</a>.</p>
|
|
40
|
+
* <p>To check the status of the export request, call
|
|
41
|
+
* <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_DescribeMetadataModelExportsToTarget.html">DescribeMetadataModelExportsToTarget</a> using the returned
|
|
42
|
+
* <code>RequestIdentifier</code> as a filter.</p>
|
|
43
|
+
* <p>
|
|
44
|
+
* <b>Required permissions:</b>
|
|
45
|
+
* <code>dms:StartMetadataModelExportToTarget</code>. For more information, see
|
|
46
|
+
* <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsdatabasemigrationservice.html">Actions, resources, and condition keys for Database Migration Service</a>.</p>
|
|
28
47
|
* @example
|
|
29
48
|
* Use a bare-bones client and the command you need to make an API call.
|
|
30
49
|
* ```javascript
|
|
@@ -82,19 +101,19 @@ declare const StartMetadataModelExportToTargetCommand_base: {
|
|
|
82
101
|
* <p>Base exception class for all service exceptions from DatabaseMigrationService service.</p>
|
|
83
102
|
*
|
|
84
103
|
*
|
|
85
|
-
* @example
|
|
104
|
+
* @example Export converted metadata models to the target database
|
|
86
105
|
* ```javascript
|
|
87
|
-
* //
|
|
106
|
+
* // The following example queues an export of converted metadata models for all objects in the ExampleSchema schema to the target database.
|
|
88
107
|
* const input = {
|
|
89
|
-
* MigrationProjectIdentifier: "arn:aws:dms:us-east-1:
|
|
108
|
+
* MigrationProjectIdentifier: "arn:aws:dms:us-east-1:111122223333:migration-project:EXAMPLEABCDEFGHIJKLMNOPQRS",
|
|
90
109
|
* OverwriteExtensionPack: true,
|
|
91
|
-
* SelectionRules: `{"rules": [{"rule-type": "selection","rule-id": "1","rule-name": "1","object-locator": {"server-name": "
|
|
110
|
+
* SelectionRules: `{"rules": [{"rule-type": "selection","rule-id": "1","rule-name": "1","object-locator": {"server-name": "example-target-server.us-east-1.rds.amazonaws.com", "schema-name": "ExampleSchema"},"rule-action": "explicit"}]}`
|
|
92
111
|
* };
|
|
93
112
|
* const command = new StartMetadataModelExportToTargetCommand(input);
|
|
94
113
|
* const response = await client.send(command);
|
|
95
114
|
* /* response is
|
|
96
115
|
* {
|
|
97
|
-
* RequestIdentifier: "
|
|
116
|
+
* RequestIdentifier: "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
|
|
98
117
|
* }
|
|
99
118
|
* *\/
|
|
100
119
|
* ```
|
|
@@ -24,9 +24,17 @@ declare const StartMetadataModelImportCommand_base: {
|
|
|
24
24
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
|
-
* <p>
|
|
28
|
-
*
|
|
29
|
-
*
|
|
27
|
+
* <p>Queues an import of metadata models (database objects such as tables, views, and
|
|
28
|
+
* procedures) from your data provider into the metadata tree. If other requests created
|
|
29
|
+
* by <code>Start*</code> operations are already in the migration project's queue, the
|
|
30
|
+
* import begins after they complete.</p>
|
|
31
|
+
* <p>To check the status of the import request, call
|
|
32
|
+
* <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_DescribeMetadataModelImports.html">DescribeMetadataModelImports</a> using the returned
|
|
33
|
+
* <code>RequestIdentifier</code> as a filter.</p>
|
|
34
|
+
* <p>
|
|
35
|
+
* <b>Required permissions:</b>
|
|
36
|
+
* <code>dms:StartMetadataModelImport</code>. For more information, see
|
|
37
|
+
* <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsdatabasemigrationservice.html">Actions, resources, and condition keys for Database Migration Service</a>.</p>
|
|
30
38
|
* @example
|
|
31
39
|
* Use a bare-bones client and the command you need to make an API call.
|
|
32
40
|
* ```javascript
|
|
@@ -85,20 +93,20 @@ declare const StartMetadataModelImportCommand_base: {
|
|
|
85
93
|
* <p>Base exception class for all service exceptions from DatabaseMigrationService service.</p>
|
|
86
94
|
*
|
|
87
95
|
*
|
|
88
|
-
* @example
|
|
96
|
+
* @example Import metadata from the source database
|
|
89
97
|
* ```javascript
|
|
90
|
-
* //
|
|
98
|
+
* // The following example queues a metadata import for all objects in the ExampleSchema schema from the source database.
|
|
91
99
|
* const input = {
|
|
92
|
-
* MigrationProjectIdentifier: "arn:aws:dms:us-east-1:
|
|
100
|
+
* MigrationProjectIdentifier: "arn:aws:dms:us-east-1:111122223333:migration-project:EXAMPLEABCDEFGHIJKLMNOPQRS",
|
|
93
101
|
* Origin: "SOURCE",
|
|
94
102
|
* Refresh: false,
|
|
95
|
-
* SelectionRules: `{"rules": [{"rule-type": "selection","rule-id": "1","rule-name": "1","object-locator": {"server-name": "
|
|
103
|
+
* SelectionRules: `{"rules": [{"rule-type": "selection","rule-id": "1","rule-name": "1","object-locator": {"server-name": "example-source-server.us-east-1.rds.amazonaws.com", "schema-name": "ExampleSchema"},"rule-action": "explicit"}]}`
|
|
96
104
|
* };
|
|
97
105
|
* const command = new StartMetadataModelImportCommand(input);
|
|
98
106
|
* const response = await client.send(command);
|
|
99
107
|
* /* response is
|
|
100
108
|
* {
|
|
101
|
-
* RequestIdentifier: "
|
|
109
|
+
* RequestIdentifier: "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
|
|
102
110
|
* }
|
|
103
111
|
* *\/
|
|
104
112
|
* ```
|