aws_sdk_servicediscovery/client/get_operation.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 [`GetOperation`](crate::operation::get_operation::builders::GetOperationFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`operation_id(impl Into<String>)`](crate::operation::get_operation::builders::GetOperationFluentBuilder::operation_id) / [`set_operation_id(Option<String>)`](crate::operation::get_operation::builders::GetOperationFluentBuilder::set_operation_id):<br>required: **true**<br><p>The ID of the operation that you want to get more information about.</p><br>
7 /// - [`owner_account(impl Into<String>)`](crate::operation::get_operation::builders::GetOperationFluentBuilder::owner_account) / [`set_owner_account(Option<String>)`](crate::operation::get_operation::builders::GetOperationFluentBuilder::set_owner_account):<br>required: **false**<br><p>The ID of the Amazon Web Services account that owns the namespace associated with the operation, as specified in the namespace <code>ResourceOwner</code> field. For operations associated with namespaces that are shared with your account, you must specify an <code>OwnerAccount</code>.</p><br>
8 /// - On success, responds with [`GetOperationOutput`](crate::operation::get_operation::GetOperationOutput) with field(s):
9 /// - [`operation(Option<Operation>)`](crate::operation::get_operation::GetOperationOutput::operation): <p>A complex type that contains information about the operation.</p>
10 /// - On failure, responds with [`SdkError<GetOperationError>`](crate::operation::get_operation::GetOperationError)
11 pub fn get_operation(&self) -> crate::operation::get_operation::builders::GetOperationFluentBuilder {
12 crate::operation::get_operation::builders::GetOperationFluentBuilder::new(self.handle.clone())
13 }
14}