aws_sdk_bedrockagentcorecontrol/client/get_harness.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 [`GetHarness`](crate::operation::get_harness::builders::GetHarnessFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`harness_id(impl Into<String>)`](crate::operation::get_harness::builders::GetHarnessFluentBuilder::harness_id) / [`set_harness_id(Option<String>)`](crate::operation::get_harness::builders::GetHarnessFluentBuilder::set_harness_id):<br>required: **true**<br><p>The ID of the harness to retrieve.</p><br>
7 /// - [`harness_version(impl Into<String>)`](crate::operation::get_harness::builders::GetHarnessFluentBuilder::harness_version) / [`set_harness_version(Option<String>)`](crate::operation::get_harness::builders::GetHarnessFluentBuilder::set_harness_version):<br>required: **false**<br><p>Specific version of the harness to retrieve. If omitted, returns the current Harness configuration, including its status.</p><br>
8 /// - On success, responds with [`GetHarnessOutput`](crate::operation::get_harness::GetHarnessOutput) with field(s):
9 /// - [`harness(Option<Harness>)`](crate::operation::get_harness::GetHarnessOutput::harness): <p>The harness resource.</p>
10 /// - On failure, responds with [`SdkError<GetHarnessError>`](crate::operation::get_harness::GetHarnessError)
11 pub fn get_harness(&self) -> crate::operation::get_harness::builders::GetHarnessFluentBuilder {
12 crate::operation::get_harness::builders::GetHarnessFluentBuilder::new(self.handle.clone())
13 }
14}