aws_sdk_backup/client/
describe_protected_resource.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`DescribeProtectedResource`](crate::operation::describe_protected_resource::builders::DescribeProtectedResourceFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`resource_arn(impl Into<String>)`](crate::operation::describe_protected_resource::builders::DescribeProtectedResourceFluentBuilder::resource_arn) / [`set_resource_arn(Option<String>)`](crate::operation::describe_protected_resource::builders::DescribeProtectedResourceFluentBuilder::set_resource_arn):<br>required: **true**<br><p>An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.</p><br>
    /// - On success, responds with [`DescribeProtectedResourceOutput`](crate::operation::describe_protected_resource::DescribeProtectedResourceOutput) with field(s):
    ///   - [`resource_arn(Option<String>)`](crate::operation::describe_protected_resource::DescribeProtectedResourceOutput::resource_arn): <p>An ARN that uniquely identifies a resource. The format of the ARN depends on the resource type.</p>
    ///   - [`resource_type(Option<String>)`](crate::operation::describe_protected_resource::DescribeProtectedResourceOutput::resource_type): <p>The type of Amazon Web Services resource saved as a recovery point; for example, an Amazon EBS volume or an Amazon RDS database.</p>
    ///   - [`last_backup_time(Option<DateTime>)`](crate::operation::describe_protected_resource::DescribeProtectedResourceOutput::last_backup_time): <p>The date and time that a resource was last backed up, in Unix format and Coordinated Universal Time (UTC). The value of <code>LastBackupTime</code> is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.</p>
    ///   - [`resource_name(Option<String>)`](crate::operation::describe_protected_resource::DescribeProtectedResourceOutput::resource_name): <p>The name of the resource that belongs to the specified backup.</p>
    ///   - [`last_backup_vault_arn(Option<String>)`](crate::operation::describe_protected_resource::DescribeProtectedResourceOutput::last_backup_vault_arn): <p>The ARN (Amazon Resource Name) of the backup vault that contains the most recent backup recovery point.</p>
    ///   - [`last_recovery_point_arn(Option<String>)`](crate::operation::describe_protected_resource::DescribeProtectedResourceOutput::last_recovery_point_arn): <p>The ARN (Amazon Resource Name) of the most recent recovery point.</p>
    ///   - [`latest_restore_execution_time_minutes(Option<i64>)`](crate::operation::describe_protected_resource::DescribeProtectedResourceOutput::latest_restore_execution_time_minutes): <p>The time, in minutes, that the most recent restore job took to complete.</p>
    ///   - [`latest_restore_job_creation_date(Option<DateTime>)`](crate::operation::describe_protected_resource::DescribeProtectedResourceOutput::latest_restore_job_creation_date): <p>The creation date of the most recent restore job.</p>
    ///   - [`latest_restore_recovery_point_creation_date(Option<DateTime>)`](crate::operation::describe_protected_resource::DescribeProtectedResourceOutput::latest_restore_recovery_point_creation_date): <p>The date the most recent recovery point was created.</p>
    /// - On failure, responds with [`SdkError<DescribeProtectedResourceError>`](crate::operation::describe_protected_resource::DescribeProtectedResourceError)
    pub fn describe_protected_resource(&self) -> crate::operation::describe_protected_resource::builders::DescribeProtectedResourceFluentBuilder {
        crate::operation::describe_protected_resource::builders::DescribeProtectedResourceFluentBuilder::new(self.handle.clone())
    }
}