aws_sdk_cloudwatchlogs/client/put_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 [`PutIntegration`](crate::operation::put_integration::builders::PutIntegrationFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`integration_name(impl Into<String>)`](crate::operation::put_integration::builders::PutIntegrationFluentBuilder::integration_name) / [`set_integration_name(Option<String>)`](crate::operation::put_integration::builders::PutIntegrationFluentBuilder::set_integration_name):<br>required: **true**<br><p>A name for the integration.</p><br>
7 /// - [`resource_config(ResourceConfig)`](crate::operation::put_integration::builders::PutIntegrationFluentBuilder::resource_config) / [`set_resource_config(Option<ResourceConfig>)`](crate::operation::put_integration::builders::PutIntegrationFluentBuilder::set_resource_config):<br>required: **true**<br><p>A structure that contains configuration information for the integration that you are creating.</p><br>
8 /// - [`integration_type(IntegrationType)`](crate::operation::put_integration::builders::PutIntegrationFluentBuilder::integration_type) / [`set_integration_type(Option<IntegrationType>)`](crate::operation::put_integration::builders::PutIntegrationFluentBuilder::set_integration_type):<br>required: **true**<br><p>The type of integration. Currently, the only supported type is <code>OPENSEARCH</code>.</p><br>
9 /// - On success, responds with [`PutIntegrationOutput`](crate::operation::put_integration::PutIntegrationOutput) with field(s):
10 /// - [`integration_name(Option<String>)`](crate::operation::put_integration::PutIntegrationOutput::integration_name): <p>The name of the integration that you just created.</p>
11 /// - [`integration_status(Option<IntegrationStatus>)`](crate::operation::put_integration::PutIntegrationOutput::integration_status): <p>The status of the integration that you just created.</p> <p>After you create an integration, it takes a few minutes to complete. During this time, you'll see the status as <code>PROVISIONING</code>.</p>
12 /// - On failure, responds with [`SdkError<PutIntegrationError>`](crate::operation::put_integration::PutIntegrationError)
13 pub fn put_integration(&self) -> crate::operation::put_integration::builders::PutIntegrationFluentBuilder {
14 crate::operation::put_integration::builders::PutIntegrationFluentBuilder::new(self.handle.clone())
15 }
16}