aws_sdk_cloudwatchlogs/client/
get_integration.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 [`GetIntegration`](crate::operation::get_integration::builders::GetIntegrationFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`integration_name(impl Into<String>)`](crate::operation::get_integration::builders::GetIntegrationFluentBuilder::integration_name) / [`set_integration_name(Option<String>)`](crate::operation::get_integration::builders::GetIntegrationFluentBuilder::set_integration_name):<br>required: **true**<br><p>The name of the integration that you want to find information about. To find the name of your integration, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListIntegrations.html">ListIntegrations</a></p><br>
7    /// - On success, responds with [`GetIntegrationOutput`](crate::operation::get_integration::GetIntegrationOutput) with field(s):
8    ///   - [`integration_name(Option<String>)`](crate::operation::get_integration::GetIntegrationOutput::integration_name): <p>The name of the integration.</p>
9    ///   - [`integration_type(Option<IntegrationType>)`](crate::operation::get_integration::GetIntegrationOutput::integration_type): <p>The type of integration. Integrations with OpenSearch Service have the type <code>OPENSEARCH</code>.</p>
10    ///   - [`integration_status(Option<IntegrationStatus>)`](crate::operation::get_integration::GetIntegrationOutput::integration_status): <p>The current status of this integration.</p>
11    ///   - [`integration_details(Option<IntegrationDetails>)`](crate::operation::get_integration::GetIntegrationOutput::integration_details): <p>A structure that contains information about the integration configuration. For an integration with OpenSearch Service, this includes information about OpenSearch Service resources such as the collection, the workspace, and policies.</p>
12    /// - On failure, responds with [`SdkError<GetIntegrationError>`](crate::operation::get_integration::GetIntegrationError)
13    pub fn get_integration(&self) -> crate::operation::get_integration::builders::GetIntegrationFluentBuilder {
14        crate::operation::get_integration::builders::GetIntegrationFluentBuilder::new(self.handle.clone())
15    }
16}