exportMetadataModelAssessment

Saves a copy of a database migration assessment report to your Amazon S3 bucket. DMS can save your assessment report as a comma-separated value (CSV) or a PDF file.

Required permissions:dms:ExportMetadataModelAssessment. For more information, see Actions, resources, and condition keys for Database Migration Service.

Samples

// The following example exports a conversion assessment report for all objects in the ExampleSchema
// schema.
val resp = databaseMigrationClient.exportMetadataModelAssessment {
    migrationProjectIdentifier = "arn:aws:dms:us-east-1:111122223333:migration-project:EXAMPLEABCDEFGHIJKLMNOPQRS"
    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\"}]}"
    fileName = "example-assessment-report"
    assessmentReportTypes = listOf<AssessmentReportType>(
        AssessmentReportType.fromValue("pdf"),
        AssessmentReportType.fromValue("csv")
    )
}