AWS SDK Version 3 for .NET
API Reference

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.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.DatabaseMigrationService.AmazonDatabaseMigrationServiceRequest
      Amazon.DatabaseMigrationService.Model.StartMetadataModelExportAsScriptRequest

Namespace: Amazon.DatabaseMigrationService.Model
Assembly: AWSSDK.DatabaseMigrationService.dll
Version: 3.x.y.z

Syntax

C#
public class StartMetadataModelExportAsScriptRequest : AmazonDatabaseMigrationServiceRequest
         IAmazonWebServiceRequest

The StartMetadataModelExportAsScriptRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property FileName System.String

Gets and sets the property FileName.

The name of the model file to create in the Amazon S3 bucket.

Public Property MigrationProjectIdentifier System.String

Gets and sets the property MigrationProjectIdentifier.

The migration project name or Amazon Resource Name (ARN).

Public Property Origin Amazon.DatabaseMigrationService.OriginTypeValue

Gets and sets the property Origin.

Whether to export the metadata model from the source or the target.

Public Property SelectionRules System.String

Gets and sets the property SelectionRules.

A value that specifies the database objects to export.

Examples

Saves your converted code to a file as a SQL script, and stores this file on your S3 bucket.

Start Metadata Model Export As Script


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;

            

Version Information

.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