Skip to main content

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    /// - On success, responds with [`GetHarnessOutput`](crate::operation::get_harness::GetHarnessOutput) with field(s):
8    ///   - [`harness(Option<Harness>)`](crate::operation::get_harness::GetHarnessOutput::harness): <p>The harness resource.</p>
9    /// - On failure, responds with [`SdkError<GetHarnessError>`](crate::operation::get_harness::GetHarnessError)
10    pub fn get_harness(&self) -> crate::operation::get_harness::builders::GetHarnessFluentBuilder {
11        crate::operation::get_harness::builders::GetHarnessFluentBuilder::new(self.handle.clone())
12    }
13}