AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Container for the parameters to the StartMetadataModelExportAsScript operation. Saves your converted code to a file as a SQL script, and stores this file on your Amazon S3 bucket.
Namespace: Amazon.DatabaseMigrationService.Model
Assembly: AWSSDK.DatabaseMigrationService.dll
Version: 3.x.y.z
public class StartMetadataModelExportAsScriptRequest : AmazonDatabaseMigrationServiceRequest IAmazonWebServiceRequest
The StartMetadataModelExportAsScriptRequest type exposes the following members
| Name | Description | |
|---|---|---|
|
StartMetadataModelExportAsScriptRequest() |
| Name | Type | Description | |
|---|---|---|---|
|
FileName | System.String |
Gets and sets the property FileName. The name of the model file to create in the Amazon S3 bucket. |
|
MigrationProjectIdentifier | System.String |
Gets and sets the property MigrationProjectIdentifier. The migration project name or Amazon Resource Name (ARN). |
|
Origin | Amazon.DatabaseMigrationService.OriginTypeValue |
Gets and sets the property Origin. Whether to export the metadata model from the source or the target. |
|
SelectionRules | System.String |
Gets and sets the property SelectionRules. A value that specifies the database objects to export. |
Saves your converted code to a file as a SQL script, and stores this file on your S3 bucket.
var client = new AmazonDatabaseMigrationServiceClient();
var response = client.StartMetadataModelExportAsScript(new StartMetadataModelExportAsScriptRequest
{
FileName = "FILE",
MigrationProjectIdentifier = "arn:aws:dms:us-east-1:012345678901:migration-project:0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ012",
Origin = "SOURCE",
SelectionRules = "{\"rules\": [{\"rule-type\": \"selection\",\"rule-id\": \"1\",\"rule-name\": \"1\",\"object-locator\": {\"server-name\": \"aurora-pg.cluster-0a1b2c3d4e5f.us-east-1.rds.amazonaws.com\", \"schema-name\": \"schema1\", \"table-name\": \"Cities\"},\"rule-action\": \"explicit\"} ]}"
});
string requestIdentifier = response.RequestIdentifier;
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5