1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`DeleteGameServerGroup`](crate::operation::delete_game_server_group::builders::DeleteGameServerGroupFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`game_server_group_name(impl Into<String>)`](crate::operation::delete_game_server_group::builders::DeleteGameServerGroupFluentBuilder::game_server_group_name) / [`set_game_server_group_name(Option<String>)`](crate::operation::delete_game_server_group::builders::DeleteGameServerGroupFluentBuilder::set_game_server_group_name):<br>required: **true**<br><p>A unique identifier for the game server group. Use either the name or ARN value.</p><br>
    ///   - [`delete_option(GameServerGroupDeleteOption)`](crate::operation::delete_game_server_group::builders::DeleteGameServerGroupFluentBuilder::delete_option) / [`set_delete_option(Option<GameServerGroupDeleteOption>)`](crate::operation::delete_game_server_group::builders::DeleteGameServerGroupFluentBuilder::set_delete_option):<br>required: **false**<br><p>The type of delete to perform. Options include the following:</p> <ul>  <li>   <p><code>SAFE_DELETE</code> – (default) Terminates the game server group and Amazon EC2 Auto Scaling group only when it has no game servers that are in <code>UTILIZED</code> status.</p></li>  <li>   <p><code>FORCE_DELETE</code> – Terminates the game server group, including all active game servers regardless of their utilization status, and the Amazon EC2 Auto Scaling group.</p></li>  <li>   <p><code>RETAIN</code> – Does a safe delete of the game server group but retains the Amazon EC2 Auto Scaling group as is.</p></li> </ul><br>
    /// - On success, responds with [`DeleteGameServerGroupOutput`](crate::operation::delete_game_server_group::DeleteGameServerGroupOutput) with field(s):
    ///   - [`game_server_group(Option<GameServerGroup>)`](crate::operation::delete_game_server_group::DeleteGameServerGroupOutput::game_server_group): <p>An object that describes the deleted game server group resource, with status updated to <code>DELETE_SCHEDULED</code>.</p>
    /// - On failure, responds with [`SdkError<DeleteGameServerGroupError>`](crate::operation::delete_game_server_group::DeleteGameServerGroupError)
    pub fn delete_game_server_group(&self) -> crate::operation::delete_game_server_group::builders::DeleteGameServerGroupFluentBuilder {
        crate::operation::delete_game_server_group::builders::DeleteGameServerGroupFluentBuilder::new(self.handle.clone())
    }
}