aws_sdk_backup/client/describe_protected_resource.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`DescribeProtectedResource`](crate::operation::describe_protected_resource::builders::DescribeProtectedResourceFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`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>
7 /// - On success, responds with [`DescribeProtectedResourceOutput`](crate::operation::describe_protected_resource::DescribeProtectedResourceOutput) with field(s):
8 /// - [`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>
9 /// - [`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>
10 /// - [`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>
11 /// - [`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>
12 /// - [`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>
13 /// - [`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>
14 /// - [`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>
15 /// - [`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>
16 /// - [`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>
17 /// - On failure, responds with [`SdkError<DescribeProtectedResourceError>`](crate::operation::describe_protected_resource::DescribeProtectedResourceError)
18 pub fn describe_protected_resource(&self) -> crate::operation::describe_protected_resource::builders::DescribeProtectedResourceFluentBuilder {
19 crate::operation::describe_protected_resource::builders::DescribeProtectedResourceFluentBuilder::new(self.handle.clone())
20 }
21}