aws_sdk_arczonalshift/client/get_managed_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 [`GetManagedResource`](crate::operation::get_managed_resource::builders::GetManagedResourceFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`resource_identifier(impl Into<String>)`](crate::operation::get_managed_resource::builders::GetManagedResourceFluentBuilder::resource_identifier) / [`set_resource_identifier(Option<String>)`](crate::operation::get_managed_resource::builders::GetManagedResourceFluentBuilder::set_resource_identifier):<br>required: **true**<br><p>The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.</p> <p>Amazon Application Recovery Controller currently supports enabling the following resources for zonal shift and zonal autoshift:</p> <ul> <li> <p><a href="https://docs.aws.amazon.com/r53recovery/latest/dg/arc-zonal-shift.resource-types.ec2-auto-scaling-groups.html">Amazon EC2 Auto Scaling groups</a></p></li> <li> <p><a href="https://docs.aws.amazon.com/r53recovery/latest/dg/arc-zonal-shift.resource-types.eks.html">Amazon Elastic Kubernetes Service</a></p></li> <li> <p><a href="https://docs.aws.amazon.com/r53recovery/latest/dg/arc-zonal-shift.resource-types.app-load-balancers.html">Application Load Balancer</a></p></li> <li> <p><a href="https://docs.aws.amazon.com/r53recovery/latest/dg/arc-zonal-shift.resource-types.network-load-balancers.html">Network Load Balancer</a></p></li> </ul><br>
7 /// - On success, responds with [`GetManagedResourceOutput`](crate::operation::get_managed_resource::GetManagedResourceOutput) with field(s):
8 /// - [`arn(Option<String>)`](crate::operation::get_managed_resource::GetManagedResourceOutput::arn): <p>The Amazon Resource Name (ARN) for the resource.</p>
9 /// - [`name(Option<String>)`](crate::operation::get_managed_resource::GetManagedResourceOutput::name): <p>The name of the resource.</p>
10 /// - [`applied_weights(HashMap::<String, f32>)`](crate::operation::get_managed_resource::GetManagedResourceOutput::applied_weights): <p>A collection of key-value pairs that indicate whether resources are active in Availability Zones or not. The key name is the Availability Zone where the resource is deployed. The value is 1 or 0.</p>
11 /// - [`zonal_shifts(Vec::<ZonalShiftInResource>)`](crate::operation::get_managed_resource::GetManagedResourceOutput::zonal_shifts): <p>The zonal shifts that are currently active for a resource.</p>
12 /// - [`autoshifts(Option<Vec::<AutoshiftInResource>>)`](crate::operation::get_managed_resource::GetManagedResourceOutput::autoshifts): <p>An array of the autoshifts that are active for the resource.</p>
13 /// - [`practice_run_configuration(Option<PracticeRunConfiguration>)`](crate::operation::get_managed_resource::GetManagedResourceOutput::practice_run_configuration): <p>The practice run configuration for zonal autoshift that's associated with the resource.</p>
14 /// - [`zonal_autoshift_status(Option<ZonalAutoshiftStatus>)`](crate::operation::get_managed_resource::GetManagedResourceOutput::zonal_autoshift_status): <p>The status for zonal autoshift for a resource. When the autoshift status is <code>ENABLED</code>, Amazon Web Services shifts traffic for a resource away from an Availability Zone, on your behalf, when Amazon Web Services determines that there's an issue in the Availability Zone that could potentially affect customers.</p>
15 /// - On failure, responds with [`SdkError<GetManagedResourceError>`](crate::operation::get_managed_resource::GetManagedResourceError)
16 pub fn get_managed_resource(&self) -> crate::operation::get_managed_resource::builders::GetManagedResourceFluentBuilder {
17 crate::operation::get_managed_resource::builders::GetManagedResourceFluentBuilder::new(self.handle.clone())
18 }
19}