startExportTask

Starts an export of DB snapshot or DB cluster data to Amazon S3. The provided IAM role must have access to the S3 bucket.

You can't export snapshot data from Db2 or RDS Custom DB instances.

You can't export cluster data from Multi-AZ DB clusters.

For more information on exporting DB snapshot data, see Exporting DB snapshot data to Amazon S3 in the Amazon RDS User Guide or Exporting DB cluster snapshot data to Amazon S3 in the Amazon Aurora User Guide.

For more information on exporting DB cluster data, see Exporting DB cluster data to Amazon S3 in the Amazon Aurora User Guide.

Samples


fun main() { 
   //sampleStart 
   // The following example exports a DB snapshot named db5 snapshot test to the Amazon S3 bucket named
// mybucket.
val resp = rdsClient.startExportTask {
    exportTaskIdentifier = "my-s3-export"
    sourceArn = "arn:aws:rds:us-west-2:123456789012:snapshot:db5-snapshot-test"
    s3BucketName = "mybucket"
    iamRoleArn = "arn:aws:iam::123456789012:role/service-role/ExportRole"
    kmsKeyId = "arn:aws:kms:us-west-2:123456789012:key/abcd0000-7fca-4128-82f2-aabbccddeeff"
} 
   //sampleEnd
}