1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateContainerFleetInput {
/// <p>A unique identifier for the container fleet to update. You can use either the fleet ID or ARN value.</p>
pub fleet_id: ::std::option::Option<::std::string::String>,
/// <p>The name or ARN value of a new game server container group definition to deploy on the fleet. If you're updating the fleet to a specific version of a container group definition, use the ARN value and include the version number. If you're updating the fleet to the latest version of a container group definition, you can use the name value. You can't remove a fleet's game server container group definition, you can only update or replace it with another definition.</p>
/// <p>Update a container group definition by calling <a href="https://docs.aws.amazon.com/gamelift/latest/apireference/API_UpdateContainerGroupDefinition.html">UpdateContainerGroupDefinition</a>. This operation creates a <a href="https://docs.aws.amazon.com/gamelift/latest/apireference/API_ContainerGroupDefinition.html">ContainerGroupDefinition</a> resource with an incremented version.</p>
pub game_server_container_group_definition_name: ::std::option::Option<::std::string::String>,
/// <p>The name or ARN value of a new per-instance container group definition to deploy on the fleet. If you're updating the fleet to a specific version of a container group definition, use the ARN value and include the version number. If you're updating the fleet to the latest version of a container group definition, you can use the name value.</p>
/// <p>Update a container group definition by calling <a href="https://docs.aws.amazon.com/gamelift/latest/apireference/API_UpdateContainerGroupDefinition.html">UpdateContainerGroupDefinition</a>. This operation creates a <a href="https://docs.aws.amazon.com/gamelift/latest/apireference/API_ContainerGroupDefinition.html">ContainerGroupDefinition</a> resource with an incremented version.</p>
/// <p>To remove a fleet's per-instance container group definition, leave this parameter empty and use the parameter <code>RemoveAttributes</code>.</p>
pub per_instance_container_group_definition_name: ::std::option::Option<::std::string::String>,
/// <p>The number of times to replicate the game server container group on each fleet instance. By default, Amazon GameLift Servers calculates the maximum number of game server container groups that can fit on each instance. You can remove this property value to use the calculated value, or set it manually. If you set this number manually, Amazon GameLift Servers uses your value as long as it's less than the calculated maximum.</p>
pub game_server_container_groups_per_instance: ::std::option::Option<i32>,
/// <p>A revised set of port numbers to open on each fleet instance. By default, Amazon GameLift Servers calculates an optimal port range based on your fleet configuration. If you previously set this parameter manually, you can't reset this to use the calculated settings.</p>
/// <p>The port range must not overlap with the Amazon GameLift Servers reserved port range <code>4092-4191</code>. This range is reserved for internal Amazon GameLift Servers services.</p>
pub instance_connection_port_range: ::std::option::Option<crate::types::ConnectionPortRange>,
/// <p>A set of ports to add to the container fleet's inbound permissions.</p>
/// <p>The port range must not overlap with the Amazon GameLift Servers reserved port range <code>4092-4191</code>. This range is reserved for internal Amazon GameLift Servers services.</p>
pub instance_inbound_permission_authorizations: ::std::option::Option<::std::vec::Vec<crate::types::IpPermission>>,
/// <p>A set of ports to remove from the container fleet's inbound permissions.</p>
pub instance_inbound_permission_revocations: ::std::option::Option<::std::vec::Vec<crate::types::IpPermission>>,
/// <p>Instructions for how to deploy updates to a container fleet, if the fleet update initiates a deployment. The deployment configuration lets you determine how to replace fleet instances and what actions to take if the deployment fails.</p>
pub deployment_configuration: ::std::option::Option<crate::types::DeploymentConfiguration>,
/// <p>A meaningful description of the container fleet.</p>
pub description: ::std::option::Option<::std::string::String>,
/// <p>The name of an Amazon Web Services CloudWatch metric group to add this fleet to.</p>
pub metric_groups: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
/// <p>The game session protection policy to apply to all new game sessions that are started in this fleet. Game sessions that already exist are not affected.</p>
pub new_game_session_protection_policy: ::std::option::Option<crate::types::ProtectionPolicy>,
/// <p>A policy that limits the number of game sessions that each individual player can create on instances in this fleet. The limit applies for a specified span of time.</p>
pub game_session_creation_limit_policy: ::std::option::Option<crate::types::GameSessionCreationLimitPolicy>,
/// <p>The method for collecting container logs for the fleet.</p>
pub log_configuration: ::std::option::Option<crate::types::LogConfiguration>,
/// <p>If set, this update removes a fleet's per-instance container group definition. You can't remove a fleet's game server container group definition.</p>
pub remove_attributes: ::std::option::Option<::std::vec::Vec<crate::types::ContainerFleetRemoveAttribute>>,
}
impl UpdateContainerFleetInput {
/// <p>A unique identifier for the container fleet to update. You can use either the fleet ID or ARN value.</p>
pub fn fleet_id(&self) -> ::std::option::Option<&str> {
self.fleet_id.as_deref()
}
/// <p>The name or ARN value of a new game server container group definition to deploy on the fleet. If you're updating the fleet to a specific version of a container group definition, use the ARN value and include the version number. If you're updating the fleet to the latest version of a container group definition, you can use the name value. You can't remove a fleet's game server container group definition, you can only update or replace it with another definition.</p>
/// <p>Update a container group definition by calling <a href="https://docs.aws.amazon.com/gamelift/latest/apireference/API_UpdateContainerGroupDefinition.html">UpdateContainerGroupDefinition</a>. This operation creates a <a href="https://docs.aws.amazon.com/gamelift/latest/apireference/API_ContainerGroupDefinition.html">ContainerGroupDefinition</a> resource with an incremented version.</p>
pub fn game_server_container_group_definition_name(&self) -> ::std::option::Option<&str> {
self.game_server_container_group_definition_name.as_deref()
}
/// <p>The name or ARN value of a new per-instance container group definition to deploy on the fleet. If you're updating the fleet to a specific version of a container group definition, use the ARN value and include the version number. If you're updating the fleet to the latest version of a container group definition, you can use the name value.</p>
/// <p>Update a container group definition by calling <a href="https://docs.aws.amazon.com/gamelift/latest/apireference/API_UpdateContainerGroupDefinition.html">UpdateContainerGroupDefinition</a>. This operation creates a <a href="https://docs.aws.amazon.com/gamelift/latest/apireference/API_ContainerGroupDefinition.html">ContainerGroupDefinition</a> resource with an incremented version.</p>
/// <p>To remove a fleet's per-instance container group definition, leave this parameter empty and use the parameter <code>RemoveAttributes</code>.</p>
pub fn per_instance_container_group_definition_name(&self) -> ::std::option::Option<&str> {
self.per_instance_container_group_definition_name.as_deref()
}
/// <p>The number of times to replicate the game server container group on each fleet instance. By default, Amazon GameLift Servers calculates the maximum number of game server container groups that can fit on each instance. You can remove this property value to use the calculated value, or set it manually. If you set this number manually, Amazon GameLift Servers uses your value as long as it's less than the calculated maximum.</p>
pub fn game_server_container_groups_per_instance(&self) -> ::std::option::Option<i32> {
self.game_server_container_groups_per_instance
}
/// <p>A revised set of port numbers to open on each fleet instance. By default, Amazon GameLift Servers calculates an optimal port range based on your fleet configuration. If you previously set this parameter manually, you can't reset this to use the calculated settings.</p>
/// <p>The port range must not overlap with the Amazon GameLift Servers reserved port range <code>4092-4191</code>. This range is reserved for internal Amazon GameLift Servers services.</p>
pub fn instance_connection_port_range(&self) -> ::std::option::Option<&crate::types::ConnectionPortRange> {
self.instance_connection_port_range.as_ref()
}
/// <p>A set of ports to add to the container fleet's inbound permissions.</p>
/// <p>The port range must not overlap with the Amazon GameLift Servers reserved port range <code>4092-4191</code>. This range is reserved for internal Amazon GameLift Servers services.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.instance_inbound_permission_authorizations.is_none()`.
pub fn instance_inbound_permission_authorizations(&self) -> &[crate::types::IpPermission] {
self.instance_inbound_permission_authorizations.as_deref().unwrap_or_default()
}
/// <p>A set of ports to remove from the container fleet's inbound permissions.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.instance_inbound_permission_revocations.is_none()`.
pub fn instance_inbound_permission_revocations(&self) -> &[crate::types::IpPermission] {
self.instance_inbound_permission_revocations.as_deref().unwrap_or_default()
}
/// <p>Instructions for how to deploy updates to a container fleet, if the fleet update initiates a deployment. The deployment configuration lets you determine how to replace fleet instances and what actions to take if the deployment fails.</p>
pub fn deployment_configuration(&self) -> ::std::option::Option<&crate::types::DeploymentConfiguration> {
self.deployment_configuration.as_ref()
}
/// <p>A meaningful description of the container fleet.</p>
pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
/// <p>The name of an Amazon Web Services CloudWatch metric group to add this fleet to.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.metric_groups.is_none()`.
pub fn metric_groups(&self) -> &[::std::string::String] {
self.metric_groups.as_deref().unwrap_or_default()
}
/// <p>The game session protection policy to apply to all new game sessions that are started in this fleet. Game sessions that already exist are not affected.</p>
pub fn new_game_session_protection_policy(&self) -> ::std::option::Option<&crate::types::ProtectionPolicy> {
self.new_game_session_protection_policy.as_ref()
}
/// <p>A policy that limits the number of game sessions that each individual player can create on instances in this fleet. The limit applies for a specified span of time.</p>
pub fn game_session_creation_limit_policy(&self) -> ::std::option::Option<&crate::types::GameSessionCreationLimitPolicy> {
self.game_session_creation_limit_policy.as_ref()
}
/// <p>The method for collecting container logs for the fleet.</p>
pub fn log_configuration(&self) -> ::std::option::Option<&crate::types::LogConfiguration> {
self.log_configuration.as_ref()
}
/// <p>If set, this update removes a fleet's per-instance container group definition. You can't remove a fleet's game server container group definition.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.remove_attributes.is_none()`.
pub fn remove_attributes(&self) -> &[crate::types::ContainerFleetRemoveAttribute] {
self.remove_attributes.as_deref().unwrap_or_default()
}
}
impl UpdateContainerFleetInput {
/// Creates a new builder-style object to manufacture [`UpdateContainerFleetInput`](crate::operation::update_container_fleet::UpdateContainerFleetInput).
pub fn builder() -> crate::operation::update_container_fleet::builders::UpdateContainerFleetInputBuilder {
crate::operation::update_container_fleet::builders::UpdateContainerFleetInputBuilder::default()
}
}
/// A builder for [`UpdateContainerFleetInput`](crate::operation::update_container_fleet::UpdateContainerFleetInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateContainerFleetInputBuilder {
pub(crate) fleet_id: ::std::option::Option<::std::string::String>,
pub(crate) game_server_container_group_definition_name: ::std::option::Option<::std::string::String>,
pub(crate) per_instance_container_group_definition_name: ::std::option::Option<::std::string::String>,
pub(crate) game_server_container_groups_per_instance: ::std::option::Option<i32>,
pub(crate) instance_connection_port_range: ::std::option::Option<crate::types::ConnectionPortRange>,
pub(crate) instance_inbound_permission_authorizations: ::std::option::Option<::std::vec::Vec<crate::types::IpPermission>>,
pub(crate) instance_inbound_permission_revocations: ::std::option::Option<::std::vec::Vec<crate::types::IpPermission>>,
pub(crate) deployment_configuration: ::std::option::Option<crate::types::DeploymentConfiguration>,
pub(crate) description: ::std::option::Option<::std::string::String>,
pub(crate) metric_groups: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) new_game_session_protection_policy: ::std::option::Option<crate::types::ProtectionPolicy>,
pub(crate) game_session_creation_limit_policy: ::std::option::Option<crate::types::GameSessionCreationLimitPolicy>,
pub(crate) log_configuration: ::std::option::Option<crate::types::LogConfiguration>,
pub(crate) remove_attributes: ::std::option::Option<::std::vec::Vec<crate::types::ContainerFleetRemoveAttribute>>,
}
impl UpdateContainerFleetInputBuilder {
/// <p>A unique identifier for the container fleet to update. You can use either the fleet ID or ARN value.</p>
/// This field is required.
pub fn fleet_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.fleet_id = ::std::option::Option::Some(input.into());
self
}
/// <p>A unique identifier for the container fleet to update. You can use either the fleet ID or ARN value.</p>
pub fn set_fleet_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.fleet_id = input;
self
}
/// <p>A unique identifier for the container fleet to update. You can use either the fleet ID or ARN value.</p>
pub fn get_fleet_id(&self) -> &::std::option::Option<::std::string::String> {
&self.fleet_id
}
/// <p>The name or ARN value of a new game server container group definition to deploy on the fleet. If you're updating the fleet to a specific version of a container group definition, use the ARN value and include the version number. If you're updating the fleet to the latest version of a container group definition, you can use the name value. You can't remove a fleet's game server container group definition, you can only update or replace it with another definition.</p>
/// <p>Update a container group definition by calling <a href="https://docs.aws.amazon.com/gamelift/latest/apireference/API_UpdateContainerGroupDefinition.html">UpdateContainerGroupDefinition</a>. This operation creates a <a href="https://docs.aws.amazon.com/gamelift/latest/apireference/API_ContainerGroupDefinition.html">ContainerGroupDefinition</a> resource with an incremented version.</p>
pub fn game_server_container_group_definition_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.game_server_container_group_definition_name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name or ARN value of a new game server container group definition to deploy on the fleet. If you're updating the fleet to a specific version of a container group definition, use the ARN value and include the version number. If you're updating the fleet to the latest version of a container group definition, you can use the name value. You can't remove a fleet's game server container group definition, you can only update or replace it with another definition.</p>
/// <p>Update a container group definition by calling <a href="https://docs.aws.amazon.com/gamelift/latest/apireference/API_UpdateContainerGroupDefinition.html">UpdateContainerGroupDefinition</a>. This operation creates a <a href="https://docs.aws.amazon.com/gamelift/latest/apireference/API_ContainerGroupDefinition.html">ContainerGroupDefinition</a> resource with an incremented version.</p>
pub fn set_game_server_container_group_definition_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.game_server_container_group_definition_name = input;
self
}
/// <p>The name or ARN value of a new game server container group definition to deploy on the fleet. If you're updating the fleet to a specific version of a container group definition, use the ARN value and include the version number. If you're updating the fleet to the latest version of a container group definition, you can use the name value. You can't remove a fleet's game server container group definition, you can only update or replace it with another definition.</p>
/// <p>Update a container group definition by calling <a href="https://docs.aws.amazon.com/gamelift/latest/apireference/API_UpdateContainerGroupDefinition.html">UpdateContainerGroupDefinition</a>. This operation creates a <a href="https://docs.aws.amazon.com/gamelift/latest/apireference/API_ContainerGroupDefinition.html">ContainerGroupDefinition</a> resource with an incremented version.</p>
pub fn get_game_server_container_group_definition_name(&self) -> &::std::option::Option<::std::string::String> {
&self.game_server_container_group_definition_name
}
/// <p>The name or ARN value of a new per-instance container group definition to deploy on the fleet. If you're updating the fleet to a specific version of a container group definition, use the ARN value and include the version number. If you're updating the fleet to the latest version of a container group definition, you can use the name value.</p>
/// <p>Update a container group definition by calling <a href="https://docs.aws.amazon.com/gamelift/latest/apireference/API_UpdateContainerGroupDefinition.html">UpdateContainerGroupDefinition</a>. This operation creates a <a href="https://docs.aws.amazon.com/gamelift/latest/apireference/API_ContainerGroupDefinition.html">ContainerGroupDefinition</a> resource with an incremented version.</p>
/// <p>To remove a fleet's per-instance container group definition, leave this parameter empty and use the parameter <code>RemoveAttributes</code>.</p>
pub fn per_instance_container_group_definition_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.per_instance_container_group_definition_name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name or ARN value of a new per-instance container group definition to deploy on the fleet. If you're updating the fleet to a specific version of a container group definition, use the ARN value and include the version number. If you're updating the fleet to the latest version of a container group definition, you can use the name value.</p>
/// <p>Update a container group definition by calling <a href="https://docs.aws.amazon.com/gamelift/latest/apireference/API_UpdateContainerGroupDefinition.html">UpdateContainerGroupDefinition</a>. This operation creates a <a href="https://docs.aws.amazon.com/gamelift/latest/apireference/API_ContainerGroupDefinition.html">ContainerGroupDefinition</a> resource with an incremented version.</p>
/// <p>To remove a fleet's per-instance container group definition, leave this parameter empty and use the parameter <code>RemoveAttributes</code>.</p>
pub fn set_per_instance_container_group_definition_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.per_instance_container_group_definition_name = input;
self
}
/// <p>The name or ARN value of a new per-instance container group definition to deploy on the fleet. If you're updating the fleet to a specific version of a container group definition, use the ARN value and include the version number. If you're updating the fleet to the latest version of a container group definition, you can use the name value.</p>
/// <p>Update a container group definition by calling <a href="https://docs.aws.amazon.com/gamelift/latest/apireference/API_UpdateContainerGroupDefinition.html">UpdateContainerGroupDefinition</a>. This operation creates a <a href="https://docs.aws.amazon.com/gamelift/latest/apireference/API_ContainerGroupDefinition.html">ContainerGroupDefinition</a> resource with an incremented version.</p>
/// <p>To remove a fleet's per-instance container group definition, leave this parameter empty and use the parameter <code>RemoveAttributes</code>.</p>
pub fn get_per_instance_container_group_definition_name(&self) -> &::std::option::Option<::std::string::String> {
&self.per_instance_container_group_definition_name
}
/// <p>The number of times to replicate the game server container group on each fleet instance. By default, Amazon GameLift Servers calculates the maximum number of game server container groups that can fit on each instance. You can remove this property value to use the calculated value, or set it manually. If you set this number manually, Amazon GameLift Servers uses your value as long as it's less than the calculated maximum.</p>
pub fn game_server_container_groups_per_instance(mut self, input: i32) -> Self {
self.game_server_container_groups_per_instance = ::std::option::Option::Some(input);
self
}
/// <p>The number of times to replicate the game server container group on each fleet instance. By default, Amazon GameLift Servers calculates the maximum number of game server container groups that can fit on each instance. You can remove this property value to use the calculated value, or set it manually. If you set this number manually, Amazon GameLift Servers uses your value as long as it's less than the calculated maximum.</p>
pub fn set_game_server_container_groups_per_instance(mut self, input: ::std::option::Option<i32>) -> Self {
self.game_server_container_groups_per_instance = input;
self
}
/// <p>The number of times to replicate the game server container group on each fleet instance. By default, Amazon GameLift Servers calculates the maximum number of game server container groups that can fit on each instance. You can remove this property value to use the calculated value, or set it manually. If you set this number manually, Amazon GameLift Servers uses your value as long as it's less than the calculated maximum.</p>
pub fn get_game_server_container_groups_per_instance(&self) -> &::std::option::Option<i32> {
&self.game_server_container_groups_per_instance
}
/// <p>A revised set of port numbers to open on each fleet instance. By default, Amazon GameLift Servers calculates an optimal port range based on your fleet configuration. If you previously set this parameter manually, you can't reset this to use the calculated settings.</p>
/// <p>The port range must not overlap with the Amazon GameLift Servers reserved port range <code>4092-4191</code>. This range is reserved for internal Amazon GameLift Servers services.</p>
pub fn instance_connection_port_range(mut self, input: crate::types::ConnectionPortRange) -> Self {
self.instance_connection_port_range = ::std::option::Option::Some(input);
self
}
/// <p>A revised set of port numbers to open on each fleet instance. By default, Amazon GameLift Servers calculates an optimal port range based on your fleet configuration. If you previously set this parameter manually, you can't reset this to use the calculated settings.</p>
/// <p>The port range must not overlap with the Amazon GameLift Servers reserved port range <code>4092-4191</code>. This range is reserved for internal Amazon GameLift Servers services.</p>
pub fn set_instance_connection_port_range(mut self, input: ::std::option::Option<crate::types::ConnectionPortRange>) -> Self {
self.instance_connection_port_range = input;
self
}
/// <p>A revised set of port numbers to open on each fleet instance. By default, Amazon GameLift Servers calculates an optimal port range based on your fleet configuration. If you previously set this parameter manually, you can't reset this to use the calculated settings.</p>
/// <p>The port range must not overlap with the Amazon GameLift Servers reserved port range <code>4092-4191</code>. This range is reserved for internal Amazon GameLift Servers services.</p>
pub fn get_instance_connection_port_range(&self) -> &::std::option::Option<crate::types::ConnectionPortRange> {
&self.instance_connection_port_range
}
/// Appends an item to `instance_inbound_permission_authorizations`.
///
/// To override the contents of this collection use [`set_instance_inbound_permission_authorizations`](Self::set_instance_inbound_permission_authorizations).
///
/// <p>A set of ports to add to the container fleet's inbound permissions.</p>
/// <p>The port range must not overlap with the Amazon GameLift Servers reserved port range <code>4092-4191</code>. This range is reserved for internal Amazon GameLift Servers services.</p>
pub fn instance_inbound_permission_authorizations(mut self, input: crate::types::IpPermission) -> Self {
let mut v = self.instance_inbound_permission_authorizations.unwrap_or_default();
v.push(input);
self.instance_inbound_permission_authorizations = ::std::option::Option::Some(v);
self
}
/// <p>A set of ports to add to the container fleet's inbound permissions.</p>
/// <p>The port range must not overlap with the Amazon GameLift Servers reserved port range <code>4092-4191</code>. This range is reserved for internal Amazon GameLift Servers services.</p>
pub fn set_instance_inbound_permission_authorizations(
mut self,
input: ::std::option::Option<::std::vec::Vec<crate::types::IpPermission>>,
) -> Self {
self.instance_inbound_permission_authorizations = input;
self
}
/// <p>A set of ports to add to the container fleet's inbound permissions.</p>
/// <p>The port range must not overlap with the Amazon GameLift Servers reserved port range <code>4092-4191</code>. This range is reserved for internal Amazon GameLift Servers services.</p>
pub fn get_instance_inbound_permission_authorizations(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::IpPermission>> {
&self.instance_inbound_permission_authorizations
}
/// Appends an item to `instance_inbound_permission_revocations`.
///
/// To override the contents of this collection use [`set_instance_inbound_permission_revocations`](Self::set_instance_inbound_permission_revocations).
///
/// <p>A set of ports to remove from the container fleet's inbound permissions.</p>
pub fn instance_inbound_permission_revocations(mut self, input: crate::types::IpPermission) -> Self {
let mut v = self.instance_inbound_permission_revocations.unwrap_or_default();
v.push(input);
self.instance_inbound_permission_revocations = ::std::option::Option::Some(v);
self
}
/// <p>A set of ports to remove from the container fleet's inbound permissions.</p>
pub fn set_instance_inbound_permission_revocations(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::IpPermission>>) -> Self {
self.instance_inbound_permission_revocations = input;
self
}
/// <p>A set of ports to remove from the container fleet's inbound permissions.</p>
pub fn get_instance_inbound_permission_revocations(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::IpPermission>> {
&self.instance_inbound_permission_revocations
}
/// <p>Instructions for how to deploy updates to a container fleet, if the fleet update initiates a deployment. The deployment configuration lets you determine how to replace fleet instances and what actions to take if the deployment fails.</p>
pub fn deployment_configuration(mut self, input: crate::types::DeploymentConfiguration) -> Self {
self.deployment_configuration = ::std::option::Option::Some(input);
self
}
/// <p>Instructions for how to deploy updates to a container fleet, if the fleet update initiates a deployment. The deployment configuration lets you determine how to replace fleet instances and what actions to take if the deployment fails.</p>
pub fn set_deployment_configuration(mut self, input: ::std::option::Option<crate::types::DeploymentConfiguration>) -> Self {
self.deployment_configuration = input;
self
}
/// <p>Instructions for how to deploy updates to a container fleet, if the fleet update initiates a deployment. The deployment configuration lets you determine how to replace fleet instances and what actions to take if the deployment fails.</p>
pub fn get_deployment_configuration(&self) -> &::std::option::Option<crate::types::DeploymentConfiguration> {
&self.deployment_configuration
}
/// <p>A meaningful description of the container fleet.</p>
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.description = ::std::option::Option::Some(input.into());
self
}
/// <p>A meaningful description of the container fleet.</p>
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.description = input;
self
}
/// <p>A meaningful description of the container fleet.</p>
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
&self.description
}
/// Appends an item to `metric_groups`.
///
/// To override the contents of this collection use [`set_metric_groups`](Self::set_metric_groups).
///
/// <p>The name of an Amazon Web Services CloudWatch metric group to add this fleet to.</p>
pub fn metric_groups(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.metric_groups.unwrap_or_default();
v.push(input.into());
self.metric_groups = ::std::option::Option::Some(v);
self
}
/// <p>The name of an Amazon Web Services CloudWatch metric group to add this fleet to.</p>
pub fn set_metric_groups(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.metric_groups = input;
self
}
/// <p>The name of an Amazon Web Services CloudWatch metric group to add this fleet to.</p>
pub fn get_metric_groups(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.metric_groups
}
/// <p>The game session protection policy to apply to all new game sessions that are started in this fleet. Game sessions that already exist are not affected.</p>
pub fn new_game_session_protection_policy(mut self, input: crate::types::ProtectionPolicy) -> Self {
self.new_game_session_protection_policy = ::std::option::Option::Some(input);
self
}
/// <p>The game session protection policy to apply to all new game sessions that are started in this fleet. Game sessions that already exist are not affected.</p>
pub fn set_new_game_session_protection_policy(mut self, input: ::std::option::Option<crate::types::ProtectionPolicy>) -> Self {
self.new_game_session_protection_policy = input;
self
}
/// <p>The game session protection policy to apply to all new game sessions that are started in this fleet. Game sessions that already exist are not affected.</p>
pub fn get_new_game_session_protection_policy(&self) -> &::std::option::Option<crate::types::ProtectionPolicy> {
&self.new_game_session_protection_policy
}
/// <p>A policy that limits the number of game sessions that each individual player can create on instances in this fleet. The limit applies for a specified span of time.</p>
pub fn game_session_creation_limit_policy(mut self, input: crate::types::GameSessionCreationLimitPolicy) -> Self {
self.game_session_creation_limit_policy = ::std::option::Option::Some(input);
self
}
/// <p>A policy that limits the number of game sessions that each individual player can create on instances in this fleet. The limit applies for a specified span of time.</p>
pub fn set_game_session_creation_limit_policy(mut self, input: ::std::option::Option<crate::types::GameSessionCreationLimitPolicy>) -> Self {
self.game_session_creation_limit_policy = input;
self
}
/// <p>A policy that limits the number of game sessions that each individual player can create on instances in this fleet. The limit applies for a specified span of time.</p>
pub fn get_game_session_creation_limit_policy(&self) -> &::std::option::Option<crate::types::GameSessionCreationLimitPolicy> {
&self.game_session_creation_limit_policy
}
/// <p>The method for collecting container logs for the fleet.</p>
pub fn log_configuration(mut self, input: crate::types::LogConfiguration) -> Self {
self.log_configuration = ::std::option::Option::Some(input);
self
}
/// <p>The method for collecting container logs for the fleet.</p>
pub fn set_log_configuration(mut self, input: ::std::option::Option<crate::types::LogConfiguration>) -> Self {
self.log_configuration = input;
self
}
/// <p>The method for collecting container logs for the fleet.</p>
pub fn get_log_configuration(&self) -> &::std::option::Option<crate::types::LogConfiguration> {
&self.log_configuration
}
/// Appends an item to `remove_attributes`.
///
/// To override the contents of this collection use [`set_remove_attributes`](Self::set_remove_attributes).
///
/// <p>If set, this update removes a fleet's per-instance container group definition. You can't remove a fleet's game server container group definition.</p>
pub fn remove_attributes(mut self, input: crate::types::ContainerFleetRemoveAttribute) -> Self {
let mut v = self.remove_attributes.unwrap_or_default();
v.push(input);
self.remove_attributes = ::std::option::Option::Some(v);
self
}
/// <p>If set, this update removes a fleet's per-instance container group definition. You can't remove a fleet's game server container group definition.</p>
pub fn set_remove_attributes(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ContainerFleetRemoveAttribute>>) -> Self {
self.remove_attributes = input;
self
}
/// <p>If set, this update removes a fleet's per-instance container group definition. You can't remove a fleet's game server container group definition.</p>
pub fn get_remove_attributes(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ContainerFleetRemoveAttribute>> {
&self.remove_attributes
}
/// Consumes the builder and constructs a [`UpdateContainerFleetInput`](crate::operation::update_container_fleet::UpdateContainerFleetInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::update_container_fleet::UpdateContainerFleetInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::update_container_fleet::UpdateContainerFleetInput {
fleet_id: self.fleet_id,
game_server_container_group_definition_name: self.game_server_container_group_definition_name,
per_instance_container_group_definition_name: self.per_instance_container_group_definition_name,
game_server_container_groups_per_instance: self.game_server_container_groups_per_instance,
instance_connection_port_range: self.instance_connection_port_range,
instance_inbound_permission_authorizations: self.instance_inbound_permission_authorizations,
instance_inbound_permission_revocations: self.instance_inbound_permission_revocations,
deployment_configuration: self.deployment_configuration,
description: self.description,
metric_groups: self.metric_groups,
new_game_session_protection_policy: self.new_game_session_protection_policy,
game_session_creation_limit_policy: self.game_session_creation_limit_policy,
log_configuration: self.log_configuration,
remove_attributes: self.remove_attributes,
})
}
}