Struct aws_sdk_rds::model::export_task::Builder
source · [−]pub struct Builder { /* private fields */ }Expand description
A builder for ExportTask.
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 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 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 exported 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 exported to Amazon S3.
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 exported from the snapshot. 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 exported from the snapshot. 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 snapshot_time(self, input: DateTime) -> Self
pub fn snapshot_time(self, input: DateTime) -> Self
The time that the snapshot was created.
sourcepub fn set_snapshot_time(self, input: Option<DateTime>) -> Self
pub fn set_snapshot_time(self, input: Option<DateTime>) -> Self
The time that the snapshot was created.
sourcepub fn task_start_time(self, input: DateTime) -> Self
pub fn task_start_time(self, input: DateTime) -> Self
The time that the snapshot export task started.
sourcepub fn set_task_start_time(self, input: Option<DateTime>) -> Self
pub fn set_task_start_time(self, input: Option<DateTime>) -> Self
The time that the snapshot export task started.
sourcepub fn task_end_time(self, input: DateTime) -> Self
pub fn task_end_time(self, input: DateTime) -> Self
The time that the snapshot export task completed.
sourcepub fn set_task_end_time(self, input: Option<DateTime>) -> Self
pub fn set_task_end_time(self, input: Option<DateTime>) -> Self
The time that the snapshot export task completed.
sourcepub fn s3_bucket(self, input: impl Into<String>) -> Self
pub fn s3_bucket(self, input: impl Into<String>) -> Self
The Amazon S3 bucket that the snapshot is exported to.
sourcepub fn set_s3_bucket(self, input: Option<String>) -> Self
pub fn set_s3_bucket(self, input: Option<String>) -> Self
The Amazon S3 bucket that the snapshot is exported to.
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 that is 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 that is the file name and path of the exported snapshot.
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 that is used to write to Amazon S3 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 that is used to write to Amazon S3 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 key identifier of the Amazon Web Services KMS key that is used to encrypt the snapshot when it's exported to Amazon S3. The KMS key identifier is its key ARN, key ID, alias ARN, or alias name. The IAM role used for the snapshot export must have encryption and decryption permissions to use this KMS key.
sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
The key identifier of the Amazon Web Services KMS key that is used to encrypt the snapshot when it's exported to Amazon S3. The KMS key identifier is its key ARN, key ID, alias ARN, or alias name. The IAM role used for the snapshot export must have encryption and decryption permissions to use this KMS key.
sourcepub fn set_status(self, input: Option<String>) -> Self
pub fn set_status(self, input: Option<String>) -> Self
The progress status of the export task.
sourcepub fn percent_progress(self, input: i32) -> Self
pub fn percent_progress(self, input: i32) -> Self
The progress of the snapshot export task as a percentage.
sourcepub fn set_percent_progress(self, input: Option<i32>) -> Self
pub fn set_percent_progress(self, input: Option<i32>) -> Self
The progress of the snapshot export task as a percentage.
sourcepub fn total_extracted_data_in_gb(self, input: i32) -> Self
pub fn total_extracted_data_in_gb(self, input: i32) -> Self
The total amount of data exported, in gigabytes.
sourcepub fn set_total_extracted_data_in_gb(self, input: Option<i32>) -> Self
pub fn set_total_extracted_data_in_gb(self, input: Option<i32>) -> Self
The total amount of data exported, in gigabytes.
sourcepub fn failure_cause(self, input: impl Into<String>) -> Self
pub fn failure_cause(self, input: impl Into<String>) -> Self
The reason the export failed, if it failed.
sourcepub fn set_failure_cause(self, input: Option<String>) -> Self
pub fn set_failure_cause(self, input: Option<String>) -> Self
The reason the export failed, if it failed.
sourcepub fn warning_message(self, input: impl Into<String>) -> Self
pub fn warning_message(self, input: impl Into<String>) -> Self
A warning about the snapshot export task.
sourcepub fn set_warning_message(self, input: Option<String>) -> Self
pub fn set_warning_message(self, input: Option<String>) -> Self
A warning about the snapshot export task.
sourcepub fn build(self) -> ExportTask
pub fn build(self) -> ExportTask
Consumes the builder and constructs a ExportTask.