aws_sdk_ssm/client/get_ops_item.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 [`GetOpsItem`](crate::operation::get_ops_item::builders::GetOpsItemFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`ops_item_id(impl Into<String>)`](crate::operation::get_ops_item::builders::GetOpsItemFluentBuilder::ops_item_id) / [`set_ops_item_id(Option<String>)`](crate::operation::get_ops_item::builders::GetOpsItemFluentBuilder::set_ops_item_id):<br>required: **true**<br><p>The ID of the OpsItem that you want to get.</p><br>
7 /// - [`ops_item_arn(impl Into<String>)`](crate::operation::get_ops_item::builders::GetOpsItemFluentBuilder::ops_item_arn) / [`set_ops_item_arn(Option<String>)`](crate::operation::get_ops_item::builders::GetOpsItemFluentBuilder::set_ops_item_arn):<br>required: **false**<br><p>The OpsItem Amazon Resource Name (ARN).</p><br>
8 /// - On success, responds with [`GetOpsItemOutput`](crate::operation::get_ops_item::GetOpsItemOutput) with field(s):
9 /// - [`ops_item(Option<OpsItem>)`](crate::operation::get_ops_item::GetOpsItemOutput::ops_item): <p>The OpsItem.</p>
10 /// - On failure, responds with [`SdkError<GetOpsItemError>`](crate::operation::get_ops_item::GetOpsItemError)
11 pub fn get_ops_item(&self) -> crate::operation::get_ops_item::builders::GetOpsItemFluentBuilder {
12 crate::operation::get_ops_item::builders::GetOpsItemFluentBuilder::new(self.handle.clone())
13 }
14}