Skip to main content

aws_sdk_devopsagent/client/
get_service.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 [`GetService`](crate::operation::get_service::builders::GetServiceFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`service_id(impl Into<String>)`](crate::operation::get_service::builders::GetServiceFluentBuilder::service_id) / [`set_service_id(Option<String>)`](crate::operation::get_service::builders::GetServiceFluentBuilder::set_service_id):<br>required: **true**<br>The unique identifier of the given service.<br>
7    /// - On success, responds with [`GetServiceOutput`](crate::operation::get_service::GetServiceOutput) with field(s):
8    ///   - [`service(Option<RegisteredService>)`](crate::operation::get_service::GetServiceOutput::service): Represents a registered service with its configuration and accessible resources.
9    ///   - [`tags(Option<HashMap::<String, String>>)`](crate::operation::get_service::GetServiceOutput::tags): Tags associated with the Service.
10    /// - On failure, responds with [`SdkError<GetServiceError>`](crate::operation::get_service::GetServiceError)
11    pub fn get_service(&self) -> crate::operation::get_service::builders::GetServiceFluentBuilder {
12        crate::operation::get_service::builders::GetServiceFluentBuilder::new(self.handle.clone())
13    }
14}