@aws-sdk/client-gamelift 3.1146.0 → 3.1148.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist-cjs/index.js +13 -9
  2. package/dist-es/models/enums.js +3 -0
  3. package/dist-es/schemas/schemas_0.js +9 -8
  4. package/dist-types/commands/AcceptMatchCommand.d.ts +1 -1
  5. package/dist-types/commands/CreateContainerGroupDefinitionCommand.d.ts +5 -4
  6. package/dist-types/commands/CreateFleetLocationsCommand.d.ts +1 -1
  7. package/dist-types/commands/CreateGameSessionCommand.d.ts +1 -1
  8. package/dist-types/commands/CreateMatchmakingConfigurationCommand.d.ts +1 -1
  9. package/dist-types/commands/CreateVpcPeeringConnectionCommand.d.ts +1 -1
  10. package/dist-types/commands/DeleteFleetLocationsCommand.d.ts +1 -1
  11. package/dist-types/commands/DeleteVpcPeeringConnectionCommand.d.ts +1 -1
  12. package/dist-types/commands/DeregisterComputeCommand.d.ts +1 -1
  13. package/dist-types/commands/DescribeContainerFleetCommand.d.ts +1 -1
  14. package/dist-types/commands/DescribeContainerGroupDefinitionCommand.d.ts +1 -0
  15. package/dist-types/commands/DescribeFleetAttributesCommand.d.ts +1 -1
  16. package/dist-types/commands/DescribeGameSessionDetailsCommand.d.ts +1 -1
  17. package/dist-types/commands/DescribeInstancesCommand.d.ts +1 -1
  18. package/dist-types/commands/ListContainerGroupDefinitionVersionsCommand.d.ts +1 -0
  19. package/dist-types/commands/ListContainerGroupDefinitionsCommand.d.ts +1 -0
  20. package/dist-types/commands/ListFleetsCommand.d.ts +1 -1
  21. package/dist-types/commands/ListGameServerGroupsCommand.d.ts +1 -1
  22. package/dist-types/commands/SearchGameSessionsCommand.d.ts +1 -1
  23. package/dist-types/commands/StartGameSessionPlacementCommand.d.ts +2 -2
  24. package/dist-types/commands/StartMatchBackfillCommand.d.ts +1 -1
  25. package/dist-types/commands/StopGameSessionPlacementCommand.d.ts +1 -1
  26. package/dist-types/commands/UpdateContainerFleetCommand.d.ts +2 -2
  27. package/dist-types/commands/UpdateContainerGroupDefinitionCommand.d.ts +13 -1
  28. package/dist-types/commands/UpdateFleetAttributesCommand.d.ts +1 -1
  29. package/dist-types/commands/UpdateGameServerCommand.d.ts +1 -1
  30. package/dist-types/models/enums.d.ts +11 -0
  31. package/dist-types/models/models_0.d.ts +129 -78
  32. package/dist-types/models/models_1.d.ts +28 -9
  33. package/dist-types/ts3.4/models/enums.d.ts +5 -0
  34. package/dist-types/ts3.4/models/models_0.d.ts +3 -1
  35. package/dist-types/ts3.4/models/models_1.d.ts +2 -0
  36. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import type { BackfillMode, BalancingStrategy, ContainerFleetRemoveAttribute, ContainerOperatingSystem, FlexMatchMode, GameServerHealthCheck, GameServerProtectionPolicy, GameServerUtilizationStatus, PlayerSessionCreationPolicy, ProtectionPolicy } from "./enums";
1
+ import type { BackfillMode, BalancingStrategy, ContainerFleetRemoveAttribute, ContainerGroupDefinitionRemoveAttribute, ContainerOperatingSystem, FlexMatchMode, GameServerHealthCheck, GameServerProtectionPolicy, GameServerUtilizationStatus, PlayerSessionCreationPolicy, ProtectionPolicy } from "./enums";
2
2
  import type { AnywhereConfiguration, Build, ConnectionPortRange, ContainerFleet, ContainerGroupDefinition, DeploymentConfiguration, FilterConfiguration, GameProperty, GameServer, GameServerContainerDefinitionInput, GameServerGroup, GameSession, GameSessionCreationLimitPolicy, GameSessionQueue, GameSessionQueueDestination, InstanceDefinition, IpPermission, LogConfiguration, ManagedCapacityConfiguration, MatchmakingConfiguration, PlayerLatencyPolicy, PriorityConfiguration, ResourceCreationLimitPolicy, RuntimeConfiguration, S3Location, Script, SupportContainerDefinitionInput } from "./models_0";
3
3
  /**
4
4
  * @public
@@ -167,9 +167,17 @@ export interface UpdateContainerGroupDefinitionInput {
167
167
  TotalMemoryLimitMebibytes?: number | undefined;
168
168
  /**
169
169
  * <p>The maximum amount of vCPU units to allocate to the container group (1 vCPU is equal to 1024
170
- * CPU units). All containers in the group share this memory. If you specify vCPU limits for
171
- * individual containers, the total value must be equal to or greater than the sum of the CPU
172
- * limits for all containers in the group.</p>
170
+ * CPU units). All containers in the group share these resources. If you set vCPU reservations for
171
+ * individual containers, the total value must be equal to or greater than the sum of the
172
+ * <code>Vcpu</code> values for all containers in the group.</p>
173
+ * <p>For a game server container group, Amazon GameLift Servers requires either a total vCPU limit or a
174
+ * <code>Vcpu</code> value for the game server container. If the container group has a total vCPU
175
+ * limit, Amazon GameLift Servers uses this value to calculate how many game server container groups fit on an
176
+ * instance. If the container group doesn't have a total vCPU limit, its containers can use up to
177
+ * the instance's available vCPU, and Amazon GameLift Servers uses the sum of the containers' <code>Vcpu</code>
178
+ * values to calculate how many game server container groups fit on an instance. To remove the
179
+ * total vCPU limit, omit this parameter and set <code>RemoveAttributes</code> to
180
+ * <code>TOTAL_VCPU_LIMIT</code>.</p>
173
181
  * @public
174
182
  */
175
183
  TotalVcpuLimit?: number | undefined;
@@ -197,6 +205,15 @@ export interface UpdateContainerGroupDefinitionInput {
197
205
  * @public
198
206
  */
199
207
  OperatingSystem?: ContainerOperatingSystem | undefined;
208
+ /**
209
+ * <p>If set, this update removes the container group's total vCPU limit, and the group's
210
+ * containers can use up to the instance's available vCPU. You can't remove the total vCPU limit
211
+ * from a per-instance container group. A game server container group needs either a total vCPU
212
+ * limit or a <code>Vcpu</code> value for the game server container. You can't set
213
+ * <code>TotalVcpuLimit</code> in the same request.</p>
214
+ * @public
215
+ */
216
+ RemoveAttributes?: ContainerGroupDefinitionRemoveAttribute[] | undefined;
200
217
  }
201
218
  /**
202
219
  * @public
@@ -411,7 +428,7 @@ export interface UpdateGameServerInput {
411
428
  /**
412
429
  * <p>Indicates if the game server is available or is currently hosting gameplay. You can
413
430
  * update a game server status from <code>AVAILABLE</code> to <code>UTILIZED</code>, but
414
- * you can't change a the status from <code>UTILIZED</code> to
431
+ * you can't change the status from <code>UTILIZED</code> to
415
432
  * <code>AVAILABLE</code>.</p>
416
433
  * @public
417
434
  */
@@ -466,7 +483,7 @@ export interface UpdateGameServerGroupInput {
466
483
  * from early termination. Unprotected instances that have active game servers running might
467
484
  * be terminated during a scale-down event, causing players to be dropped from the game.
468
485
  * Protected instances cannot be terminated while there are active game servers running except
469
- * in the event of a forced game server group deletion (see ). An exception to this is with Spot
486
+ * in the event of a forced game server group deletion. An exception to this is with Spot
470
487
  * Instances, which can be terminated by Amazon Web Services regardless of protection status. This property is set to <code>NO_PROTECTION</code> by default.</p>
471
488
  * @public
472
489
  */
@@ -672,8 +689,10 @@ export interface UpdateMatchmakingConfigurationInput {
672
689
  /**
673
690
  * <p>The Amazon Resource Name (<a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-arn-format.html">ARN</a>) that is assigned to a Amazon GameLift Servers game session queue resource and uniquely identifies it. ARNs are unique across all Regions. Format is <code>arn:aws:gamelift:<region>::gamesessionqueue/<queue name></code>. Queues can be located in any Region. Queues are used to start new
674
691
  * Amazon GameLift Servers-hosted game sessions for matches that are created with this matchmaking
675
- * configuration. If <code>FlexMatchMode</code> is set to <code>STANDALONE</code>, do not
676
- * set this parameter.</p>
692
+ * configuration. A matchmaking configuration supports only one queue; if you specify
693
+ * more than one ARN, the request fails with an <code>InvalidRequestException</code>.
694
+ * If <code>FlexMatchMode</code> is set to <code>STANDALONE</code>, do not set this
695
+ * parameter.</p>
677
696
  * @public
678
697
  */
679
698
  GameSessionQueueArns?: string[] | undefined;
@@ -868,7 +887,7 @@ export interface UpdateScriptOutput {
868
887
  * location reflects an Amazon S3 location: (1) If the script was uploaded from an S3 bucket
869
888
  * under your account, the storage location reflects the information that was provided in
870
889
  * the <i>CreateScript</i> request; (2) If the script file was uploaded from
871
- * a local zip file, the storage location reflects an S3 location controls by the Amazon GameLift Servers
890
+ * a local zip file, the storage location reflects an S3 location controlled by the Amazon GameLift Servers
872
891
  * service.</p>
873
892
  * @public
874
893
  */
@@ -736,6 +736,11 @@ export declare const ContainerGroupDefinitionStatus: {
736
736
  };
737
737
  export type ContainerGroupDefinitionStatus =
738
738
  (typeof ContainerGroupDefinitionStatus)[keyof typeof ContainerGroupDefinitionStatus];
739
+ export declare const ContainerGroupDefinitionRemoveAttribute: {
740
+ readonly TOTAL_VCPU_LIMIT: "TOTAL_VCPU_LIMIT";
741
+ };
742
+ export type ContainerGroupDefinitionRemoveAttribute =
743
+ (typeof ContainerGroupDefinitionRemoveAttribute)[keyof typeof ContainerGroupDefinitionRemoveAttribute];
739
744
  export declare const FleetType: {
740
745
  readonly OnDemand: "ON_DEMAND";
741
746
  readonly Spot: "SPOT";
@@ -244,6 +244,7 @@ export interface GameServerContainerDefinition {
244
244
  ResolvedImageDigest?: string | undefined;
245
245
  ServerSdkVersion?: string | undefined;
246
246
  LinuxCapabilities?: LinuxCapabilities | undefined;
247
+ Vcpu?: number | undefined;
247
248
  }
248
249
  export interface ContainerHealthCheck {
249
250
  Command: string[] | undefined;
@@ -360,6 +361,7 @@ export interface GameServerContainerDefinitionInput {
360
361
  PortConfiguration: ContainerPortConfiguration | undefined;
361
362
  ServerSdkVersion: string | undefined;
362
363
  LinuxCapabilities?: LinuxCapabilities | undefined;
364
+ Vcpu?: number | undefined;
363
365
  }
364
366
  export interface SupportContainerDefinitionInput {
365
367
  ContainerName: string | undefined;
@@ -378,7 +380,7 @@ export interface CreateContainerGroupDefinitionInput {
378
380
  Name: string | undefined;
379
381
  ContainerGroupType?: ContainerGroupType | undefined;
380
382
  TotalMemoryLimitMebibytes: number | undefined;
381
- TotalVcpuLimit: number | undefined;
383
+ TotalVcpuLimit?: number | undefined;
382
384
  GameServerContainerDefinition?: GameServerContainerDefinitionInput | undefined;
383
385
  SupportContainerDefinitions?: SupportContainerDefinitionInput[] | undefined;
384
386
  OperatingSystem: ContainerOperatingSystem | undefined;
@@ -2,6 +2,7 @@ import {
2
2
  BackfillMode,
3
3
  BalancingStrategy,
4
4
  ContainerFleetRemoveAttribute,
5
+ ContainerGroupDefinitionRemoveAttribute,
5
6
  ContainerOperatingSystem,
6
7
  FlexMatchMode,
7
8
  GameServerHealthCheck,
@@ -70,6 +71,7 @@ export interface UpdateContainerGroupDefinitionInput {
70
71
  VersionDescription?: string | undefined;
71
72
  SourceVersionNumber?: number | undefined;
72
73
  OperatingSystem?: ContainerOperatingSystem | undefined;
74
+ RemoveAttributes?: ContainerGroupDefinitionRemoveAttribute[] | undefined;
73
75
  }
74
76
  export interface UpdateContainerGroupDefinitionOutput {
75
77
  ContainerGroupDefinition?: ContainerGroupDefinition | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-gamelift",
3
- "version": "3.1146.0",
3
+ "version": "3.1148.0",
4
4
  "description": "AWS SDK for JavaScript Gamelift Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-gamelift",
6
6
  "license": "Apache-2.0",