Struct aws_sdk_iot::input::CreateStreamInput
source · #[non_exhaustive]pub struct CreateStreamInput { /* private fields */ }
Implementations§
source§impl CreateStreamInput
impl CreateStreamInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateStream, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateStream, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateStream
>
Examples found in repository?
src/client.rs (line 8159)
8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateStream,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateStreamError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateStreamOutput,
aws_smithy_http::result::SdkError<crate::error::CreateStreamError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateStreamInput
.
source§impl CreateStreamInput
impl CreateStreamInput
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description of the stream.
sourcepub fn files(&self) -> Option<&[StreamFile]>
pub fn files(&self) -> Option<&[StreamFile]>
The files to stream.
sourcepub fn role_arn(&self) -> Option<&str>
pub fn role_arn(&self) -> Option<&str>
An IAM role that allows the IoT service principal to access your S3 files.
Metadata which can be used to manage streams.
Trait Implementations§
source§impl Clone for CreateStreamInput
impl Clone for CreateStreamInput
source§fn clone(&self) -> CreateStreamInput
fn clone(&self) -> CreateStreamInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more