aws_sdk_evs/client/create_environment_host.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 [`CreateEnvironmentHost`](crate::operation::create_environment_host::builders::CreateEnvironmentHostFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`client_token(impl Into<String>)`](crate::operation::create_environment_host::builders::CreateEnvironmentHostFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_environment_host::builders::CreateEnvironmentHostFluentBuilder::set_client_token):<br>required: **false**<br><note> <p>This parameter is not used in Amazon EVS currently. If you supply input for this parameter, it will have no effect.</p> </note> <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the host creation request. If you do not specify a client token, a randomly generated token is used for the request to ensure idempotency.</p><br>
7 /// - [`environment_id(impl Into<String>)`](crate::operation::create_environment_host::builders::CreateEnvironmentHostFluentBuilder::environment_id) / [`set_environment_id(Option<String>)`](crate::operation::create_environment_host::builders::CreateEnvironmentHostFluentBuilder::set_environment_id):<br>required: **true**<br><p>A unique ID for the environment that the host is added to.</p><br>
8 /// - [`host(HostInfoForCreate)`](crate::operation::create_environment_host::builders::CreateEnvironmentHostFluentBuilder::host) / [`set_host(Option<HostInfoForCreate>)`](crate::operation::create_environment_host::builders::CreateEnvironmentHostFluentBuilder::set_host):<br>required: **true**<br><p>The host that is created and added to the environment.</p><br>
9 /// - On success, responds with [`CreateEnvironmentHostOutput`](crate::operation::create_environment_host::CreateEnvironmentHostOutput) with field(s):
10 /// - [`environment_summary(Option<EnvironmentSummary>)`](crate::operation::create_environment_host::CreateEnvironmentHostOutput::environment_summary): <p>A summary of the environment that the host is created in.</p>
11 /// - [`host(Option<Host>)`](crate::operation::create_environment_host::CreateEnvironmentHostOutput::host): <p>A description of the created host.</p>
12 /// - On failure, responds with [`SdkError<CreateEnvironmentHostError>`](crate::operation::create_environment_host::CreateEnvironmentHostError)
13 pub fn create_environment_host(&self) -> crate::operation::create_environment_host::builders::CreateEnvironmentHostFluentBuilder {
14 crate::operation::create_environment_host::builders::CreateEnvironmentHostFluentBuilder::new(self.handle.clone())
15 }
16}