#[non_exhaustive]pub struct StartExportTaskInput {
pub export_task_identifier: Option<String>,
pub source_arn: Option<String>,
pub s3_bucket_name: Option<String>,
pub iam_role_arn: Option<String>,
pub kms_key_id: Option<String>,
pub s3_prefix: Option<String>,
pub export_only: Option<Vec<String>>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.export_task_identifier: Option<String>A unique identifier for the export task. This ID isn't an identifier for the Amazon S3 bucket where the data is to be exported.
source_arn: Option<String>The Amazon Resource Name (ARN) of the snapshot or cluster to export to Amazon S3.
s3_bucket_name: Option<String>The name of the Amazon S3 bucket to export the snapshot or cluster data to.
iam_role_arn: Option<String>The name of the IAM role to use for writing to the Amazon S3 bucket when exporting a snapshot or cluster.
In the IAM policy attached to your IAM role, include the following required actions to allow the transfer of files from Amazon RDS or Amazon Aurora to an S3 bucket:
-
s3:PutObject*
-
s3:GetObject*
-
s3:ListBucket
-
s3:DeleteObject*
-
s3:GetBucketLocation
In the policy, include the resources to identify the S3 bucket and objects in the bucket. The following list of resources shows the Amazon Resource Name (ARN) format for accessing S3:
-
arn:aws:s3:::your-s3-bucket -
arn:aws:s3:::your-s3-bucket/*
kms_key_id: Option<String>The ID of the Amazon Web Services KMS key to use to encrypt the data exported to Amazon S3. The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. The caller of this operation must be authorized to run the following operations. These can be set in the Amazon Web Services KMS key policy:
-
kms:Encrypt
-
kms:Decrypt
-
kms:GenerateDataKey
-
kms:GenerateDataKeyWithoutPlaintext
-
kms:ReEncryptFrom
-
kms:ReEncryptTo
-
kms:CreateGrant
-
kms:DescribeKey
-
kms:RetireGrant
s3_prefix: Option<String>The Amazon S3 bucket prefix to use as the file name and path of the exported data.
export_only: Option<Vec<String>>The data to be exported from the snapshot or cluster. If this parameter isn't provided, all of the data is exported.
Valid Values:
-
database- Export all the data from a specified database. -
database.tabletable-name - Export a table of the snapshot or cluster. This format is valid only for RDS for MySQL, RDS for MariaDB, and Aurora MySQL. -
database.schemaschema-name - Export a database schema of the snapshot or cluster. This format is valid only for RDS for PostgreSQL and Aurora PostgreSQL. -
database.schema.tabletable-name - Export a table of the database schema. This format is valid only for RDS for PostgreSQL and Aurora PostgreSQL.
Implementations§
source§impl StartExportTaskInput
impl StartExportTaskInput
sourcepub fn export_task_identifier(&self) -> Option<&str>
pub fn export_task_identifier(&self) -> Option<&str>
A unique identifier for the export task. This ID isn't an identifier for the Amazon S3 bucket where the data is to be exported.
sourcepub fn source_arn(&self) -> Option<&str>
pub fn source_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the snapshot or cluster to export to Amazon S3.
sourcepub fn s3_bucket_name(&self) -> Option<&str>
pub fn s3_bucket_name(&self) -> Option<&str>
The name of the Amazon S3 bucket to export the snapshot or cluster data to.
sourcepub fn iam_role_arn(&self) -> Option<&str>
pub fn iam_role_arn(&self) -> Option<&str>
The name of the IAM role to use for writing to the Amazon S3 bucket when exporting a snapshot or cluster.
In the IAM policy attached to your IAM role, include the following required actions to allow the transfer of files from Amazon RDS or Amazon Aurora to an S3 bucket:
-
s3:PutObject*
-
s3:GetObject*
-
s3:ListBucket
-
s3:DeleteObject*
-
s3:GetBucketLocation
In the policy, include the resources to identify the S3 bucket and objects in the bucket. The following list of resources shows the Amazon Resource Name (ARN) format for accessing S3:
-
arn:aws:s3:::your-s3-bucket -
arn:aws:s3:::your-s3-bucket/*
sourcepub fn kms_key_id(&self) -> Option<&str>
pub fn kms_key_id(&self) -> Option<&str>
The ID of the Amazon Web Services KMS key to use to encrypt the data exported to Amazon S3. The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. The caller of this operation must be authorized to run the following operations. These can be set in the Amazon Web Services KMS key policy:
-
kms:Encrypt
-
kms:Decrypt
-
kms:GenerateDataKey
-
kms:GenerateDataKeyWithoutPlaintext
-
kms:ReEncryptFrom
-
kms:ReEncryptTo
-
kms:CreateGrant
-
kms:DescribeKey
-
kms:RetireGrant
sourcepub fn s3_prefix(&self) -> Option<&str>
pub fn s3_prefix(&self) -> Option<&str>
The Amazon S3 bucket prefix to use as the file name and path of the exported data.
sourcepub fn export_only(&self) -> &[String]
pub fn export_only(&self) -> &[String]
The data to be exported from the snapshot or cluster. If this parameter isn't provided, all of the data is exported.
Valid Values:
-
database- Export all the data from a specified database. -
database.tabletable-name - Export a table of the snapshot or cluster. This format is valid only for RDS for MySQL, RDS for MariaDB, and Aurora MySQL. -
database.schemaschema-name - Export a database schema of the snapshot or cluster. This format is valid only for RDS for PostgreSQL and Aurora PostgreSQL. -
database.schema.tabletable-name - Export a table of the database schema. This format is valid only for RDS for PostgreSQL and Aurora PostgreSQL.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .export_only.is_none().
source§impl StartExportTaskInput
impl StartExportTaskInput
sourcepub fn builder() -> StartExportTaskInputBuilder
pub fn builder() -> StartExportTaskInputBuilder
Creates a new builder-style object to manufacture StartExportTaskInput.
Trait Implementations§
source§impl Clone for StartExportTaskInput
impl Clone for StartExportTaskInput
source§fn clone(&self) -> StartExportTaskInput
fn clone(&self) -> StartExportTaskInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for StartExportTaskInput
impl Debug for StartExportTaskInput
source§impl PartialEq for StartExportTaskInput
impl PartialEq for StartExportTaskInput
source§fn eq(&self, other: &StartExportTaskInput) -> bool
fn eq(&self, other: &StartExportTaskInput) -> bool
self and other values to be equal, and is used
by ==.