aws_sdk_migrationhubrefactorspaces/client/delete_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 [`DeleteService`](crate::operation::delete_service::builders::DeleteServiceFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`environment_identifier(impl Into<String>)`](crate::operation::delete_service::builders::DeleteServiceFluentBuilder::environment_identifier) / [`set_environment_identifier(Option<String>)`](crate::operation::delete_service::builders::DeleteServiceFluentBuilder::set_environment_identifier):<br>required: **true**<br><p>The ID of the environment that the service is in.</p><br>
7 /// - [`application_identifier(impl Into<String>)`](crate::operation::delete_service::builders::DeleteServiceFluentBuilder::application_identifier) / [`set_application_identifier(Option<String>)`](crate::operation::delete_service::builders::DeleteServiceFluentBuilder::set_application_identifier):<br>required: **true**<br><p>Deletes a Refactor Spaces service.</p><note> <p>The <code>RefactorSpacesSecurityGroup</code> security group must be removed from all Amazon Web Services resources in the virtual private cloud (VPC) prior to deleting a service with a URL endpoint in a VPC.</p> </note><br>
8 /// - [`service_identifier(impl Into<String>)`](crate::operation::delete_service::builders::DeleteServiceFluentBuilder::service_identifier) / [`set_service_identifier(Option<String>)`](crate::operation::delete_service::builders::DeleteServiceFluentBuilder::set_service_identifier):<br>required: **true**<br><p>The ID of the service to delete.</p><br>
9 /// - On success, responds with [`DeleteServiceOutput`](crate::operation::delete_service::DeleteServiceOutput) with field(s):
10 /// - [`service_id(Option<String>)`](crate::operation::delete_service::DeleteServiceOutput::service_id): <p>The unique identifier of the service.</p>
11 /// - [`name(Option<String>)`](crate::operation::delete_service::DeleteServiceOutput::name): <p>The name of the service.</p>
12 /// - [`arn(Option<String>)`](crate::operation::delete_service::DeleteServiceOutput::arn): <p>The Amazon Resource Name (ARN) of the service.</p>
13 /// - [`environment_id(Option<String>)`](crate::operation::delete_service::DeleteServiceOutput::environment_id): <p>The unique identifier of the environment.</p>
14 /// - [`application_id(Option<String>)`](crate::operation::delete_service::DeleteServiceOutput::application_id): <p>The ID of the application that the service is in.</p>
15 /// - [`state(Option<ServiceState>)`](crate::operation::delete_service::DeleteServiceOutput::state): <p>The current state of the service.</p>
16 /// - [`last_updated_time(Option<DateTime>)`](crate::operation::delete_service::DeleteServiceOutput::last_updated_time): <p>A timestamp that indicates when the service was last updated.</p>
17 /// - On failure, responds with [`SdkError<DeleteServiceError>`](crate::operation::delete_service::DeleteServiceError)
18 pub fn delete_service(&self) -> crate::operation::delete_service::builders::DeleteServiceFluentBuilder {
19 crate::operation::delete_service::builders::DeleteServiceFluentBuilder::new(self.handle.clone())
20 }
21}