aws_sdk_apigatewaymanagement/client/post_to_connection.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 [`PostToConnection`](crate::operation::post_to_connection::builders::PostToConnectionFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`data(Blob)`](crate::operation::post_to_connection::builders::PostToConnectionFluentBuilder::data) / [`set_data(Option<Blob>)`](crate::operation::post_to_connection::builders::PostToConnectionFluentBuilder::set_data):<br>required: **true**<br><p>The data to be sent to the client specified by its connection id.</p><br>
7 /// - [`connection_id(impl Into<String>)`](crate::operation::post_to_connection::builders::PostToConnectionFluentBuilder::connection_id) / [`set_connection_id(Option<String>)`](crate::operation::post_to_connection::builders::PostToConnectionFluentBuilder::set_connection_id):<br>required: **true**<br><p>The identifier of the connection that a specific client is using.</p><br>
8 /// - On success, responds with [`PostToConnectionOutput`](crate::operation::post_to_connection::PostToConnectionOutput)
9 /// - On failure, responds with [`SdkError<PostToConnectionError>`](crate::operation::post_to_connection::PostToConnectionError)
10 pub fn post_to_connection(&self) -> crate::operation::post_to_connection::builders::PostToConnectionFluentBuilder {
11 crate::operation::post_to_connection::builders::PostToConnectionFluentBuilder::new(self.handle.clone())
12 }
13}