Struct aws_sdk_rds::input::start_export_task_input::Builder
source · [−]pub struct Builder { /* private fields */ }Expand description
A builder for StartExportTaskInput.
Implementations
sourceimpl Builder
impl Builder
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 snapshot export task. This ID isn't an identifier for the Amazon S3 bucket where the snapshot is to be exported to.
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 snapshot export task. This ID isn't an identifier for the Amazon S3 bucket where the snapshot is to be exported to.
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 to export to Amazon S3.
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 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 to.
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 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.
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.
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 snapshot 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 execute the following operations. These can be set in the Amazon Web Services KMS key policy:
-
GrantOperation.Encrypt
-
GrantOperation.Decrypt
-
GrantOperation.GenerateDataKey
-
GrantOperation.GenerateDataKeyWithoutPlaintext
-
GrantOperation.ReEncryptFrom
-
GrantOperation.ReEncryptTo
-
GrantOperation.CreateGrant
-
GrantOperation.DescribeKey
-
GrantOperation.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 snapshot 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 execute the following operations. These can be set in the Amazon Web Services KMS key policy:
-
GrantOperation.Encrypt
-
GrantOperation.Decrypt
-
GrantOperation.GenerateDataKey
-
GrantOperation.GenerateDataKeyWithoutPlaintext
-
GrantOperation.ReEncryptFrom
-
GrantOperation.ReEncryptTo
-
GrantOperation.CreateGrant
-
GrantOperation.DescribeKey
-
GrantOperation.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 snapshot.
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 snapshot.
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. If this parameter is not provided, all the snapshot data is exported. Valid values are the following:
-
database- Export all the data from a specified database. -
database.tabletable-name - Export a table of the snapshot. 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. 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. If this parameter is not provided, all the snapshot data is exported. Valid values are the following:
-
database- Export all the data from a specified database. -
database.tabletable-name - Export a table of the snapshot. 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. 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.