aws_sdk_migrationhubrefactorspaces/client/create_service.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 [`CreateService`](crate::operation::create_service::builders::CreateServiceFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`name(impl Into<String>)`](crate::operation::create_service::builders::CreateServiceFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_service::builders::CreateServiceFluentBuilder::set_name):<br>required: **true**<br><p>The name of the service.</p><br>
7 /// - [`description(impl Into<String>)`](crate::operation::create_service::builders::CreateServiceFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_service::builders::CreateServiceFluentBuilder::set_description):<br>required: **false**<br><p>The description of the service.</p><br>
8 /// - [`environment_identifier(impl Into<String>)`](crate::operation::create_service::builders::CreateServiceFluentBuilder::environment_identifier) / [`set_environment_identifier(Option<String>)`](crate::operation::create_service::builders::CreateServiceFluentBuilder::set_environment_identifier):<br>required: **true**<br><p>The ID of the environment in which the service is created.</p><br>
9 /// - [`application_identifier(impl Into<String>)`](crate::operation::create_service::builders::CreateServiceFluentBuilder::application_identifier) / [`set_application_identifier(Option<String>)`](crate::operation::create_service::builders::CreateServiceFluentBuilder::set_application_identifier):<br>required: **true**<br><p>The ID of the application which the service is created.</p><br>
10 /// - [`vpc_id(impl Into<String>)`](crate::operation::create_service::builders::CreateServiceFluentBuilder::vpc_id) / [`set_vpc_id(Option<String>)`](crate::operation::create_service::builders::CreateServiceFluentBuilder::set_vpc_id):<br>required: **false**<br><p>The ID of the VPC.</p><br>
11 /// - [`endpoint_type(ServiceEndpointType)`](crate::operation::create_service::builders::CreateServiceFluentBuilder::endpoint_type) / [`set_endpoint_type(Option<ServiceEndpointType>)`](crate::operation::create_service::builders::CreateServiceFluentBuilder::set_endpoint_type):<br>required: **true**<br><p>The type of endpoint to use for the service. The type can be a URL in a VPC or an Lambda function.</p><br>
12 /// - [`url_endpoint(UrlEndpointInput)`](crate::operation::create_service::builders::CreateServiceFluentBuilder::url_endpoint) / [`set_url_endpoint(Option<UrlEndpointInput>)`](crate::operation::create_service::builders::CreateServiceFluentBuilder::set_url_endpoint):<br>required: **false**<br><p>The configuration for the URL endpoint type. When creating a route to a service, Refactor Spaces automatically resolves the address in the <code>UrlEndpointInput</code> object URL when the Domain Name System (DNS) time-to-live (TTL) expires, or every 60 seconds for TTLs less than 60 seconds.</p><br>
13 /// - [`lambda_endpoint(LambdaEndpointInput)`](crate::operation::create_service::builders::CreateServiceFluentBuilder::lambda_endpoint) / [`set_lambda_endpoint(Option<LambdaEndpointInput>)`](crate::operation::create_service::builders::CreateServiceFluentBuilder::set_lambda_endpoint):<br>required: **false**<br><p>The configuration for the Lambda endpoint type.</p><br>
14 /// - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_service::builders::CreateServiceFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_service::builders::CreateServiceFluentBuilder::set_tags):<br>required: **false**<br><p>The tags to assign to the service. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair..</p><br>
15 /// - [`client_token(impl Into<String>)`](crate::operation::create_service::builders::CreateServiceFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_service::builders::CreateServiceFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.</p><br>
16 /// - On success, responds with [`CreateServiceOutput`](crate::operation::create_service::CreateServiceOutput) with field(s):
17 /// - [`service_id(Option<String>)`](crate::operation::create_service::CreateServiceOutput::service_id): <p>The unique identifier of the service.</p>
18 /// - [`name(Option<String>)`](crate::operation::create_service::CreateServiceOutput::name): <p>The name of the service.</p>
19 /// - [`arn(Option<String>)`](crate::operation::create_service::CreateServiceOutput::arn): <p>The Amazon Resource Name (ARN) of the service.</p>
20 /// - [`owner_account_id(Option<String>)`](crate::operation::create_service::CreateServiceOutput::owner_account_id): <p>The Amazon Web Services account ID of the service owner.</p>
21 /// - [`created_by_account_id(Option<String>)`](crate::operation::create_service::CreateServiceOutput::created_by_account_id): <p>The Amazon Web Services account ID of the service creator.</p>
22 /// - [`description(Option<String>)`](crate::operation::create_service::CreateServiceOutput::description): <p>The description of the created service.</p>
23 /// - [`environment_id(Option<String>)`](crate::operation::create_service::CreateServiceOutput::environment_id): <p>The unique identifier of the environment.</p>
24 /// - [`application_id(Option<String>)`](crate::operation::create_service::CreateServiceOutput::application_id): <p>The ID of the application that the created service belongs to.</p>
25 /// - [`vpc_id(Option<String>)`](crate::operation::create_service::CreateServiceOutput::vpc_id): <p>The ID of the VPC.</p>
26 /// - [`endpoint_type(Option<ServiceEndpointType>)`](crate::operation::create_service::CreateServiceOutput::endpoint_type): <p>The endpoint type of the service.</p>
27 /// - [`url_endpoint(Option<UrlEndpointInput>)`](crate::operation::create_service::CreateServiceOutput::url_endpoint): <p>The configuration for the URL endpoint type.</p>
28 /// - [`lambda_endpoint(Option<LambdaEndpointInput>)`](crate::operation::create_service::CreateServiceOutput::lambda_endpoint): <p>The configuration for the Lambda endpoint type.</p>
29 /// - [`state(Option<ServiceState>)`](crate::operation::create_service::CreateServiceOutput::state): <p>The current state of the service.</p>
30 /// - [`tags(Option<HashMap::<String, String>>)`](crate::operation::create_service::CreateServiceOutput::tags): <p>The tags assigned to the created service. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair..</p>
31 /// - [`last_updated_time(Option<DateTime>)`](crate::operation::create_service::CreateServiceOutput::last_updated_time): <p>A timestamp that indicates when the service was last updated.</p>
32 /// - [`created_time(Option<DateTime>)`](crate::operation::create_service::CreateServiceOutput::created_time): <p>A timestamp that indicates when the service is created.</p>
33 /// - On failure, responds with [`SdkError<CreateServiceError>`](crate::operation::create_service::CreateServiceError)
34 pub fn create_service(&self) -> crate::operation::create_service::builders::CreateServiceFluentBuilder {
35 crate::operation::create_service::builders::CreateServiceFluentBuilder::new(self.handle.clone())
36 }
37}