Struct aws_sdk_rds::client::fluent_builders::StartExportTask
source · [−]pub struct StartExportTask { /* private fields */ }Expand description
Fluent builder constructing a request to StartExportTask.
Starts an export of a snapshot to Amazon S3. The provided IAM role must have access to the S3 bucket.
This command doesn't apply to RDS Custom.
Implementations
sourceimpl StartExportTask
impl StartExportTask
sourcepub async fn send(
self
) -> Result<StartExportTaskOutput, SdkError<StartExportTaskError>>
pub async fn send(
self
) -> Result<StartExportTaskOutput, SdkError<StartExportTaskError>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
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 ExportOnly.
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.
Trait Implementations
sourceimpl Clone for StartExportTask
impl Clone for StartExportTask
sourcefn clone(&self) -> StartExportTask
fn clone(&self) -> StartExportTask
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl !RefUnwindSafe for StartExportTask
impl Send for StartExportTask
impl Sync for StartExportTask
impl Unpin for StartExportTask
impl !UnwindSafe for StartExportTask
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more