Skip to main content

aws_sdk_backupexternal/client/
get_resource_target.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 [`GetResourceTarget`](crate::operation::get_resource_target::builders::GetResourceTargetFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`arn(impl Into<String>)`](crate::operation::get_resource_target::builders::GetResourceTargetFluentBuilder::arn) / [`set_arn(Option<String>)`](crate::operation::get_resource_target::builders::GetResourceTargetFluentBuilder::set_arn):<br>required: **true**<br>The Amazon Resource Name (ARN) of the resource target.<br>
7    /// - On success, responds with [`GetResourceTargetOutput`](crate::operation::get_resource_target::GetResourceTargetOutput) with field(s):
8    ///   - [`arn(String)`](crate::operation::get_resource_target::GetResourceTargetOutput::arn): The Amazon Resource Name (ARN) of the resource target.
9    ///   - [`created_at(DateTime)`](crate::operation::get_resource_target::GetResourceTargetOutput::created_at): The date and time that the resource target was created.
10    ///   - [`external_identifier(Option<String>)`](crate::operation::get_resource_target::GetResourceTargetOutput::external_identifier): The identifier of the resource target in the external system.
11    ///   - [`external_name(Option<String>)`](crate::operation::get_resource_target::GetResourceTargetOutput::external_name): The name of the resource target in the external system.
12    ///   - [`last_synced_at(Option<DateTime>)`](crate::operation::get_resource_target::GetResourceTargetOutput::last_synced_at): The date and time that the resource target was last synchronized with its resource provider.
13    ///   - [`name(Option<String>)`](crate::operation::get_resource_target::GetResourceTargetOutput::name): The name of the resource target.
14    ///   - [`provider_arn(String)`](crate::operation::get_resource_target::GetResourceTargetOutput::provider_arn): The Amazon Resource Name (ARN) of the resource target's provider.
15    ///   - [`provider_type(ResourceProviderType)`](crate::operation::get_resource_target::GetResourceTargetOutput::provider_type): The type of resource provider.
16    ///   - [`status(ResourceTargetStatus)`](crate::operation::get_resource_target::GetResourceTargetOutput::status): The status of the resource target.
17    ///   - [`status_message(Option<String>)`](crate::operation::get_resource_target::GetResourceTargetOutput::status_message): The message describing the status of the resource target.
18    ///   - [`target_configuration(Option<ResourceTargetConfiguration>)`](crate::operation::get_resource_target::GetResourceTargetOutput::target_configuration): The backup configuration for the resource target.
19    ///   - [`target_configuration_source(ResourceTargetConfigurationSource)`](crate::operation::get_resource_target::GetResourceTargetOutput::target_configuration_source): The source of the resource target's backup configuration.
20    ///   - [`target_metadata(Option<ResourceTargetMetadata>)`](crate::operation::get_resource_target::GetResourceTargetOutput::target_metadata): The metadata describing the resource target.
21    ///   - [`target_type(ResourceTargetType)`](crate::operation::get_resource_target::GetResourceTargetOutput::target_type): The type of resource target.
22    ///   - [`updated_at(Option<DateTime>)`](crate::operation::get_resource_target::GetResourceTargetOutput::updated_at): The date and time that the resource target was last updated.
23    /// - On failure, responds with [`SdkError<GetResourceTargetError>`](crate::operation::get_resource_target::GetResourceTargetError)
24    pub fn get_resource_target(&self) -> crate::operation::get_resource_target::builders::GetResourceTargetFluentBuilder {
25        crate::operation::get_resource_target::builders::GetResourceTargetFluentBuilder::new(self.handle.clone())
26    }
27}