aws_sdk_codeconnections/client/
create_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 [`CreateHost`](crate::operation::create_host::builders::CreateHostFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`name(impl Into<String>)`](crate::operation::create_host::builders::CreateHostFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_host::builders::CreateHostFluentBuilder::set_name):<br>required: **true**<br><p>The name of the host to be created.</p><br>
7    ///   - [`provider_type(ProviderType)`](crate::operation::create_host::builders::CreateHostFluentBuilder::provider_type) / [`set_provider_type(Option<ProviderType>)`](crate::operation::create_host::builders::CreateHostFluentBuilder::set_provider_type):<br>required: **true**<br><p>The name of the installed provider to be associated with your connection. The host resource represents the infrastructure where your provider type is installed. The valid provider type is GitHub Enterprise Server.</p><br>
8    ///   - [`provider_endpoint(impl Into<String>)`](crate::operation::create_host::builders::CreateHostFluentBuilder::provider_endpoint) / [`set_provider_endpoint(Option<String>)`](crate::operation::create_host::builders::CreateHostFluentBuilder::set_provider_endpoint):<br>required: **true**<br><p>The endpoint of the infrastructure to be represented by the host after it is created.</p><br>
9    ///   - [`vpc_configuration(VpcConfiguration)`](crate::operation::create_host::builders::CreateHostFluentBuilder::vpc_configuration) / [`set_vpc_configuration(Option<VpcConfiguration>)`](crate::operation::create_host::builders::CreateHostFluentBuilder::set_vpc_configuration):<br>required: **false**<br><p>The VPC configuration to be provisioned for the host. A VPC must be configured and the infrastructure to be represented by the host must already be connected to the VPC.</p><br>
10    ///   - [`tags(Tag)`](crate::operation::create_host::builders::CreateHostFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_host::builders::CreateHostFluentBuilder::set_tags):<br>required: **false**<br><p>Tags for the host to be created.</p><br>
11    /// - On success, responds with [`CreateHostOutput`](crate::operation::create_host::CreateHostOutput) with field(s):
12    ///   - [`host_arn(Option<String>)`](crate::operation::create_host::CreateHostOutput::host_arn): <p>The Amazon Resource Name (ARN) of the host to be created.</p>
13    ///   - [`tags(Option<Vec::<Tag>>)`](crate::operation::create_host::CreateHostOutput::tags): <p>Tags for the created host.</p>
14    /// - On failure, responds with [`SdkError<CreateHostError>`](crate::operation::create_host::CreateHostError)
15    pub fn create_host(&self) -> crate::operation::create_host::builders::CreateHostFluentBuilder {
16        crate::operation::create_host::builders::CreateHostFluentBuilder::new(self.handle.clone())
17    }
18}