Smaws_Client_CloudWatchLogs.PutIntegrationCreates an integration between CloudWatch Logs and another service in this account. Currently, only integrations with OpenSearch Service are supported, and currently you can have only one integration in your account.
Integrating with OpenSearch Service makes it possible for you to create curated vended logs dashboards, powered by OpenSearch Service analytics. For more information, see Vended log dashboards powered by Amazon OpenSearch Service.
You can use this operation only to create a new integration. You can't modify an existing integration.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `InvalidParameterException of Types.invalid_parameter_exception
| `LimitExceededException of Types.limit_exceeded_exception
| `ServiceUnavailableException of Types.service_unavailable_exception
| `ValidationException of Types.validation_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.put_integration_request ->
(Types.put_integration_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `InvalidParameterException of Types.invalid_parameter_exception
| `LimitExceededException of Types.limit_exceeded_exception
| `ServiceUnavailableException of Types.service_unavailable_exception
| `ValidationException of Types.validation_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.put_integration_request ->
(Types.put_integration_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `InvalidParameterException of Types.invalid_parameter_exception
| `LimitExceededException of Types.limit_exceeded_exception
| `ServiceUnavailableException of Types.service_unavailable_exception
| `ValidationException of Types.validation_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result