#[non_exhaustive]pub struct StartExportTaskInputBuilder { /* private fields */ }Expand description
A builder for StartExportTaskInput.
Implementations§
source§impl StartExportTaskInputBuilder
impl StartExportTaskInputBuilder
sourcepub fn export_task_identifier(self, input: impl Into<String>) -> Self
pub fn export_task_identifier(self, input: impl Into<String>) -> Self
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.
This field is required.sourcepub fn set_export_task_identifier(self, input: Option<String>) -> Self
pub fn set_export_task_identifier(self, input: Option<String>) -> Self
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 get_export_task_identifier(&self) -> &Option<String>
pub fn get_export_task_identifier(&self) -> &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.
sourcepub fn source_arn(self, input: impl Into<String>) -> Self
pub fn source_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the snapshot or cluster to export to Amazon S3.
This field is required.sourcepub fn set_source_arn(self, input: Option<String>) -> Self
pub fn set_source_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the snapshot or cluster to export to Amazon S3.
sourcepub fn get_source_arn(&self) -> &Option<String>
pub fn get_source_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the snapshot or cluster to export to Amazon S3.
sourcepub fn s3_bucket_name(self, input: impl Into<String>) -> Self
pub fn s3_bucket_name(self, input: impl Into<String>) -> Self
The name of the Amazon S3 bucket to export the snapshot or cluster data to.
This field is required.sourcepub fn set_s3_bucket_name(self, input: Option<String>) -> Self
pub fn set_s3_bucket_name(self, input: Option<String>) -> Self
The name of the Amazon S3 bucket to export the snapshot or cluster data to.
sourcepub fn get_s3_bucket_name(&self) -> &Option<String>
pub fn get_s3_bucket_name(&self) -> &Option<String>
The name of the Amazon S3 bucket to export the snapshot or cluster data to.
sourcepub fn iam_role_arn(self, input: impl Into<String>) -> Self
pub fn iam_role_arn(self, input: impl Into<String>) -> Self
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 set_iam_role_arn(self, input: Option<String>) -> Self
pub fn set_iam_role_arn(self, input: Option<String>) -> Self
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 get_iam_role_arn(&self) -> &Option<String>
pub fn get_iam_role_arn(&self) -> &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/*
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
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 set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
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 get_kms_key_id(&self) -> &Option<String>
pub fn get_kms_key_id(&self) -> &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
sourcepub fn s3_prefix(self, input: impl Into<String>) -> Self
pub fn s3_prefix(self, input: impl Into<String>) -> Self
The Amazon S3 bucket prefix to use as the file name and path of the exported data.
sourcepub fn set_s3_prefix(self, input: Option<String>) -> Self
pub fn set_s3_prefix(self, input: Option<String>) -> Self
The Amazon S3 bucket prefix to use as the file name and path of the exported data.
sourcepub fn get_s3_prefix(&self) -> &Option<String>
pub fn get_s3_prefix(&self) -> &Option<String>
The Amazon S3 bucket prefix to use as the file name and path of the exported data.
sourcepub fn export_only(self, input: impl Into<String>) -> Self
pub fn export_only(self, input: impl Into<String>) -> Self
Appends an item to export_only.
To override the contents of this collection use set_export_only.
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.
sourcepub fn set_export_only(self, input: Option<Vec<String>>) -> Self
pub fn set_export_only(self, input: Option<Vec<String>>) -> Self
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.
sourcepub fn get_export_only(&self) -> &Option<Vec<String>>
pub fn get_export_only(&self) -> &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.
sourcepub fn build(self) -> Result<StartExportTaskInput, BuildError>
pub fn build(self) -> Result<StartExportTaskInput, BuildError>
Consumes the builder and constructs a StartExportTaskInput.
source§impl StartExportTaskInputBuilder
impl StartExportTaskInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<StartExportTaskOutput, SdkError<StartExportTaskError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<StartExportTaskOutput, SdkError<StartExportTaskError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for StartExportTaskInputBuilder
impl Clone for StartExportTaskInputBuilder
source§fn clone(&self) -> StartExportTaskInputBuilder
fn clone(&self) -> StartExportTaskInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for StartExportTaskInputBuilder
impl Debug for StartExportTaskInputBuilder
source§impl Default for StartExportTaskInputBuilder
impl Default for StartExportTaskInputBuilder
source§fn default() -> StartExportTaskInputBuilder
fn default() -> StartExportTaskInputBuilder
source§impl PartialEq for StartExportTaskInputBuilder
impl PartialEq for StartExportTaskInputBuilder
source§fn eq(&self, other: &StartExportTaskInputBuilder) -> bool
fn eq(&self, other: &StartExportTaskInputBuilder) -> bool
self and other values to be equal, and is used
by ==.