@aws-sdk/client-gamelift 3.978.0 → 3.979.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.
package/dist-cjs/index.js CHANGED
@@ -866,6 +866,7 @@ const _Lo = "Locations";
866
866
  const _M = "Message";
867
867
  const _MAXIMUM = "MAXIMUM";
868
868
  const _MC = "MatchmakingConfiguration";
869
+ const _MCC = "ManagedCapacityConfiguration";
869
870
  const _MCGSA = "MaxConcurrentGameSessionActivations";
870
871
  const _MCL = "MatchmakingConfigurationList";
871
872
  const _MD = "MatchmakerData";
@@ -1025,6 +1026,7 @@ const _SGSPO = "StartGameSessionPlacementOutput";
1025
1026
  const _SGSPOt = "StopGameSessionPlacementOutput";
1026
1027
  const _SGSPt = "StopGameSessionPlacement";
1027
1028
  const _SI = "ScriptId";
1029
+ const _SIAIM = "ScaleInAfterInactivityMinutes";
1028
1030
  const _SL = "SL";
1029
1031
  const _SLP = "ServerLaunchPath";
1030
1032
  const _SLPe = "ServerLaunchParameters";
@@ -1161,6 +1163,7 @@ const _Va = "Value";
1161
1163
  const _Val = "Valid";
1162
1164
  const _Vc = "Vcpu";
1163
1165
  const _WC = "WeightedCapacity";
1166
+ const _ZCS = "ZeroCapacityStrategy";
1164
1167
  const _ZF = "ZipFile";
1165
1168
  const _c = "client";
1166
1169
  const _e = "error";
@@ -1969,8 +1972,8 @@ var FleetAttributes$ = [3, n0, _FAl,
1969
1972
  ];
1970
1973
  var FleetCapacity$ = [3, n0, _FCl,
1971
1974
  0,
1972
- [_FI, _FA, _IT, _IC, _L, _GSCGC],
1973
- [0, 0, 0, () => EC2InstanceCounts$, 0, () => GameServerContainerGroupCounts$]
1975
+ [_FI, _FA, _IT, _IC, _L, _GSCGC, _MCC],
1976
+ [0, 0, 0, () => EC2InstanceCounts$, 0, () => GameServerContainerGroupCounts$, () => ManagedCapacityConfiguration$]
1974
1977
  ];
1975
1978
  var FleetCapacityExceededException$ = [-3, n0, _FCEE,
1976
1979
  { [_e]: _c },
@@ -2335,6 +2338,11 @@ var LogConfiguration$ = [3, n0, _LC,
2335
2338
  [_LDog, _SBN, _LGA],
2336
2339
  [0, 0, 0]
2337
2340
  ];
2341
+ var ManagedCapacityConfiguration$ = [3, n0, _MCC,
2342
+ 0,
2343
+ [_ZCS, _SIAIM],
2344
+ [0, 1]
2345
+ ];
2338
2346
  var MatchedPlayerSession$ = [3, n0, _MPSa,
2339
2347
  0,
2340
2348
  [_PI, _PSI],
@@ -2734,13 +2742,13 @@ var UpdateFleetAttributesOutput$ = [3, n0, _UFAO,
2734
2742
  ];
2735
2743
  var UpdateFleetCapacityInput$ = [3, n0, _UFCI,
2736
2744
  0,
2737
- [_FI, _DIe, _MS, _MSa, _L],
2738
- [0, 1, 1, 1, 0], 1
2745
+ [_FI, _DIe, _MS, _MSa, _L, _MCC],
2746
+ [0, 1, 1, 1, 0, () => ManagedCapacityConfiguration$], 1
2739
2747
  ];
2740
2748
  var UpdateFleetCapacityOutput$ = [3, n0, _UFCO,
2741
2749
  0,
2742
- [_FI, _FA, _L],
2743
- [0, 0, 0]
2750
+ [_FI, _FA, _L, _MCC],
2751
+ [0, 0, 0, () => ManagedCapacityConfiguration$]
2744
2752
  ];
2745
2753
  var UpdateFleetPortSettingsInput$ = [3, n0, _UFPSI,
2746
2754
  0,
@@ -5822,6 +5830,10 @@ const DeploymentStatus = {
5822
5830
  ROLLBACK_COMPLETE: "ROLLBACK_COMPLETE",
5823
5831
  ROLLBACK_IN_PROGRESS: "ROLLBACK_IN_PROGRESS",
5824
5832
  };
5833
+ const ZeroCapacityStrategy = {
5834
+ MANUAL: "MANUAL",
5835
+ SCALE_TO_AND_FROM_ZERO: "SCALE_TO_AND_FROM_ZERO",
5836
+ };
5825
5837
  const EventCode = {
5826
5838
  COMPUTE_LOG_UPLOAD_FAILED: "COMPUTE_LOG_UPLOAD_FAILED",
5827
5839
  FLEET_ACTIVATION_FAILED: "FLEET_ACTIVATION_FAILED",
@@ -6434,6 +6446,7 @@ exports.LocationUpdateStatus = LocationUpdateStatus;
6434
6446
  exports.LocationalDeployment$ = LocationalDeployment$;
6435
6447
  exports.LogConfiguration$ = LogConfiguration$;
6436
6448
  exports.LogDestination = LogDestination;
6449
+ exports.ManagedCapacityConfiguration$ = ManagedCapacityConfiguration$;
6437
6450
  exports.MatchedPlayerSession$ = MatchedPlayerSession$;
6438
6451
  exports.MatchmakingConfiguration$ = MatchmakingConfiguration$;
6439
6452
  exports.MatchmakingConfigurationStatus = MatchmakingConfigurationStatus;
@@ -6622,6 +6635,7 @@ exports.ValidateMatchmakingRuleSetOutput$ = ValidateMatchmakingRuleSetOutput$;
6622
6635
  exports.VpcPeeringAuthorization$ = VpcPeeringAuthorization$;
6623
6636
  exports.VpcPeeringConnection$ = VpcPeeringConnection$;
6624
6637
  exports.VpcPeeringConnectionStatus$ = VpcPeeringConnectionStatus$;
6638
+ exports.ZeroCapacityStrategy = ZeroCapacityStrategy;
6625
6639
  exports.paginateDescribeFleetAttributes = paginateDescribeFleetAttributes;
6626
6640
  exports.paginateDescribeFleetCapacity = paginateDescribeFleetCapacity;
6627
6641
  exports.paginateDescribeFleetEvents = paginateDescribeFleetEvents;
@@ -808,6 +808,10 @@ export const DeploymentStatus = {
808
808
  ROLLBACK_COMPLETE: "ROLLBACK_COMPLETE",
809
809
  ROLLBACK_IN_PROGRESS: "ROLLBACK_IN_PROGRESS",
810
810
  };
811
+ export const ZeroCapacityStrategy = {
812
+ MANUAL: "MANUAL",
813
+ SCALE_TO_AND_FROM_ZERO: "SCALE_TO_AND_FROM_ZERO",
814
+ };
811
815
  export const EventCode = {
812
816
  COMPUTE_LOG_UPLOAD_FAILED: "COMPUTE_LOG_UPLOAD_FAILED",
813
817
  FLEET_ACTIVATION_FAILED: "FLEET_ACTIVATION_FAILED",
@@ -522,6 +522,7 @@ const _Lo = "Locations";
522
522
  const _M = "Message";
523
523
  const _MAXIMUM = "MAXIMUM";
524
524
  const _MC = "MatchmakingConfiguration";
525
+ const _MCC = "ManagedCapacityConfiguration";
525
526
  const _MCGSA = "MaxConcurrentGameSessionActivations";
526
527
  const _MCL = "MatchmakingConfigurationList";
527
528
  const _MD = "MatchmakerData";
@@ -681,6 +682,7 @@ const _SGSPO = "StartGameSessionPlacementOutput";
681
682
  const _SGSPOt = "StopGameSessionPlacementOutput";
682
683
  const _SGSPt = "StopGameSessionPlacement";
683
684
  const _SI = "ScriptId";
685
+ const _SIAIM = "ScaleInAfterInactivityMinutes";
684
686
  const _SL = "SL";
685
687
  const _SLP = "ServerLaunchPath";
686
688
  const _SLPe = "ServerLaunchParameters";
@@ -817,6 +819,7 @@ const _Va = "Value";
817
819
  const _Val = "Valid";
818
820
  const _Vc = "Vcpu";
819
821
  const _WC = "WeightedCapacity";
822
+ const _ZCS = "ZeroCapacityStrategy";
820
823
  const _ZF = "ZipFile";
821
824
  const _c = "client";
822
825
  const _e = "error";
@@ -1628,8 +1631,8 @@ export var FleetAttributes$ = [3, n0, _FAl,
1628
1631
  ];
1629
1632
  export var FleetCapacity$ = [3, n0, _FCl,
1630
1633
  0,
1631
- [_FI, _FA, _IT, _IC, _L, _GSCGC],
1632
- [0, 0, 0, () => EC2InstanceCounts$, 0, () => GameServerContainerGroupCounts$]
1634
+ [_FI, _FA, _IT, _IC, _L, _GSCGC, _MCC],
1635
+ [0, 0, 0, () => EC2InstanceCounts$, 0, () => GameServerContainerGroupCounts$, () => ManagedCapacityConfiguration$]
1633
1636
  ];
1634
1637
  export var FleetCapacityExceededException$ = [-3, n0, _FCEE,
1635
1638
  { [_e]: _c },
@@ -1994,6 +1997,11 @@ export var LogConfiguration$ = [3, n0, _LC,
1994
1997
  [_LDog, _SBN, _LGA],
1995
1998
  [0, 0, 0]
1996
1999
  ];
2000
+ export var ManagedCapacityConfiguration$ = [3, n0, _MCC,
2001
+ 0,
2002
+ [_ZCS, _SIAIM],
2003
+ [0, 1]
2004
+ ];
1997
2005
  export var MatchedPlayerSession$ = [3, n0, _MPSa,
1998
2006
  0,
1999
2007
  [_PI, _PSI],
@@ -2393,13 +2401,13 @@ export var UpdateFleetAttributesOutput$ = [3, n0, _UFAO,
2393
2401
  ];
2394
2402
  export var UpdateFleetCapacityInput$ = [3, n0, _UFCI,
2395
2403
  0,
2396
- [_FI, _DIe, _MS, _MSa, _L],
2397
- [0, 1, 1, 1, 0], 1
2404
+ [_FI, _DIe, _MS, _MSa, _L, _MCC],
2405
+ [0, 1, 1, 1, 0, () => ManagedCapacityConfiguration$], 1
2398
2406
  ];
2399
2407
  export var UpdateFleetCapacityOutput$ = [3, n0, _UFCO,
2400
2408
  0,
2401
- [_FI, _FA, _L],
2402
- [0, 0, 0]
2409
+ [_FI, _FA, _L, _MCC],
2410
+ [0, 0, 0, () => ManagedCapacityConfiguration$]
2403
2411
  ];
2404
2412
  export var UpdateFleetPortSettingsInput$ = [3, n0, _UFPSI,
2405
2413
  0,
@@ -105,6 +105,10 @@ declare const DescribeFleetCapacityCommand_base: {
105
105
  * // IDLE: Number("int"),
106
106
  * // TERMINATING: Number("int"),
107
107
  * // },
108
+ * // ManagedCapacityConfiguration: { // ManagedCapacityConfiguration
109
+ * // ZeroCapacityStrategy: "MANUAL" || "SCALE_TO_AND_FROM_ZERO",
110
+ * // ScaleInAfterInactivityMinutes: Number("int"),
111
+ * // },
108
112
  * // },
109
113
  * // ],
110
114
  * // NextToken: "STRING_VALUE",
@@ -86,6 +86,10 @@ declare const DescribeFleetLocationCapacityCommand_base: {
86
86
  * // IDLE: Number("int"),
87
87
  * // TERMINATING: Number("int"),
88
88
  * // },
89
+ * // ManagedCapacityConfiguration: { // ManagedCapacityConfiguration
90
+ * // ZeroCapacityStrategy: "MANUAL" || "SCALE_TO_AND_FROM_ZERO",
91
+ * // ScaleInAfterInactivityMinutes: Number("int"),
92
+ * // },
89
93
  * // },
90
94
  * // };
91
95
  *
@@ -34,7 +34,6 @@ declare const UpdateFleetCapacityCommand_base: {
34
34
  * capacity determines the number of game sessions and players that the fleet can host
35
35
  * based on its configuration. For fleets with multiple locations, use this operation to
36
36
  * manage capacity settings in each location individually.</p>
37
- * <p>Use this operation to set these fleet capacity properties: </p>
38
37
  * <ul>
39
38
  * <li>
40
39
  * <p>Minimum/maximum size: Set hard limits on the number of Amazon EC2 instances allowed. If Amazon GameLift Servers receives a
@@ -60,7 +59,19 @@ declare const UpdateFleetCapacityCommand_base: {
60
59
  * <p>Updates often prompt an immediate change in fleet capacity, such as when current
61
60
  * capacity is different than the new desired capacity or outside the new limits. In this
62
61
  * scenario, Amazon GameLift Servers automatically initiates steps to add or remove instances in the fleet
63
- * location. You can track a fleet's current capacity by calling <a href="https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeFleetCapacity.html">DescribeFleetCapacity</a> or <a href="https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeFleetLocationCapacity.html">DescribeFleetLocationCapacity</a>. </p>
62
+ * location. You can track a fleet's current capacity by calling <a href="https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeFleetCapacity.html">DescribeFleetCapacity</a> or <a href="https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeFleetLocationCapacity.html">DescribeFleetLocationCapacity</a>.</p>
63
+ * <p> Use ManagedCapacityConfiguration with the "SCALE_TO_AND_FROM_ZERO" ZeroCapacityStrategy to enable Amazon
64
+ * GameLift Servers to fully manage the MinSize value, switching between 0 and 1 based on game session
65
+ * activity. This is ideal for eliminating compute costs during periods of no game activity.
66
+ * It is particularly beneficial during development when you're away from your desk, iterating on builds
67
+ * for extended periods, in production environments serving low-traffic locations, or for games with long,
68
+ * predictable downtime windows. By automatically managing capacity between 0 and 1 instances, you avoid paying
69
+ * for idle instances while maintaining the ability to serve game sessions when demand arrives. Note that while
70
+ * scale-out is triggered immediately upon receiving a game session request, actual game session availability
71
+ * depends on your server process startup time, so this approach works best with multi-location Fleets where
72
+ * cold-start latency is tolerable. With a "MANUAL" ZeroCapacityStrategy Amazon GameLift Servers will not
73
+ * modify Fleet MinSize values automatically and will not scale out from zero instances in response to game
74
+ * sessions. This is configurable per-location.</p>
64
75
  * <p>
65
76
  * <b>Learn more</b>
66
77
  * </p>
@@ -82,6 +93,10 @@ declare const UpdateFleetCapacityCommand_base: {
82
93
  * MinSize: Number("int"),
83
94
  * MaxSize: Number("int"),
84
95
  * Location: "STRING_VALUE",
96
+ * ManagedCapacityConfiguration: { // ManagedCapacityConfiguration
97
+ * ZeroCapacityStrategy: "MANUAL" || "SCALE_TO_AND_FROM_ZERO",
98
+ * ScaleInAfterInactivityMinutes: Number("int"),
99
+ * },
85
100
  * };
86
101
  * const command = new UpdateFleetCapacityCommand(input);
87
102
  * const response = await client.send(command);
@@ -89,6 +104,10 @@ declare const UpdateFleetCapacityCommand_base: {
89
104
  * // FleetId: "STRING_VALUE",
90
105
  * // FleetArn: "STRING_VALUE",
91
106
  * // Location: "STRING_VALUE",
107
+ * // ManagedCapacityConfiguration: { // ManagedCapacityConfiguration
108
+ * // ZeroCapacityStrategy: "MANUAL" || "SCALE_TO_AND_FROM_ZERO",
109
+ * // ScaleInAfterInactivityMinutes: Number("int"),
110
+ * // },
92
111
  * // };
93
112
  *
94
113
  * ```
@@ -1,7 +1,8 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import type { GameLiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GameLiftClient";
4
- import type { UpdateFleetPortSettingsInput, UpdateFleetPortSettingsOutput } from "../models/models_0";
4
+ import type { UpdateFleetPortSettingsInput } from "../models/models_0";
5
+ import type { UpdateFleetPortSettingsOutput } from "../models/models_1";
5
6
  /**
6
7
  * @public
7
8
  */
@@ -1160,6 +1160,18 @@ export declare const DeploymentStatus: {
1160
1160
  * @public
1161
1161
  */
1162
1162
  export type DeploymentStatus = (typeof DeploymentStatus)[keyof typeof DeploymentStatus];
1163
+ /**
1164
+ * @public
1165
+ * @enum
1166
+ */
1167
+ export declare const ZeroCapacityStrategy: {
1168
+ readonly MANUAL: "MANUAL";
1169
+ readonly SCALE_TO_AND_FROM_ZERO: "SCALE_TO_AND_FROM_ZERO";
1170
+ };
1171
+ /**
1172
+ * @public
1173
+ */
1174
+ export type ZeroCapacityStrategy = (typeof ZeroCapacityStrategy)[keyof typeof ZeroCapacityStrategy];
1163
1175
  /**
1164
1176
  * @public
1165
1177
  * @enum
@@ -1,4 +1,4 @@
1
- import { AcceptanceType, BackfillMode, BalancingStrategy, BuildStatus, CertificateType, ComparisonOperatorType, ComputeStatus, ComputeType, ContainerDependencyCondition, ContainerFleetBillingType, ContainerFleetLocationStatus, ContainerFleetRemoveAttribute, ContainerFleetStatus, ContainerGroupDefinitionStatus, ContainerGroupType, ContainerMountPointAccessLevel, ContainerOperatingSystem, DeploymentImpairmentStrategy, DeploymentProtectionStrategy, DeploymentStatus, EC2InstanceType, EventCode, FilterInstanceStatus, FleetAction, FleetStatus, FleetType, FlexMatchMode, GameServerClaimStatus, GameServerGroupAction, GameServerGroupDeleteOption, GameServerGroupInstanceType, GameServerGroupStatus, GameServerInstanceStatus, GameServerProtectionPolicy, GameServerUtilizationStatus, GameSessionPlacementState, GameSessionStatus, GameSessionStatusReason, InstanceRoleCredentialsProvider, InstanceStatus, IpProtocol, ListComputeInputStatus, LocationFilter, LocationUpdateStatus, LogDestination, MatchmakingConfigurationStatus, MetricName, OperatingSystem, PlacementFallbackStrategy, PlayerSessionCreationPolicy, PlayerSessionStatus, PolicyType, PriorityType, ProtectionPolicy, RoutingStrategyType, ScalingAdjustmentType, ScalingStatusType, SortOrder, TerminationMode } from "./enums";
1
+ import { AcceptanceType, BackfillMode, BalancingStrategy, BuildStatus, CertificateType, ComparisonOperatorType, ComputeStatus, ComputeType, ContainerDependencyCondition, ContainerFleetBillingType, ContainerFleetLocationStatus, ContainerFleetRemoveAttribute, ContainerFleetStatus, ContainerGroupDefinitionStatus, ContainerGroupType, ContainerMountPointAccessLevel, ContainerOperatingSystem, DeploymentImpairmentStrategy, DeploymentProtectionStrategy, DeploymentStatus, EC2InstanceType, EventCode, FilterInstanceStatus, FleetAction, FleetStatus, FleetType, FlexMatchMode, GameServerClaimStatus, GameServerGroupAction, GameServerGroupDeleteOption, GameServerGroupInstanceType, GameServerGroupStatus, GameServerInstanceStatus, GameServerProtectionPolicy, GameServerUtilizationStatus, GameSessionPlacementState, GameSessionStatus, GameSessionStatusReason, InstanceRoleCredentialsProvider, InstanceStatus, IpProtocol, ListComputeInputStatus, LocationFilter, LocationUpdateStatus, LogDestination, MatchmakingConfigurationStatus, MetricName, OperatingSystem, PlacementFallbackStrategy, PlayerSessionCreationPolicy, PlayerSessionStatus, PolicyType, PriorityType, ProtectionPolicy, RoutingStrategyType, ScalingAdjustmentType, ScalingStatusType, SortOrder, TerminationMode, ZeroCapacityStrategy } from "./enums";
2
2
  /**
3
3
  * @public
4
4
  */
@@ -3807,6 +3807,9 @@ export interface CreateGameSessionQueueInput {
3807
3807
  Name: string | undefined;
3808
3808
  /**
3809
3809
  * <p>The maximum time, in seconds, that a new game session placement request remains in the queue. When a request exceeds this time, the game session placement changes to a <code>TIMED_OUT</code> status. If you don't specify a request timeout, the queue uses a default value.</p>
3810
+ * <note>
3811
+ * <p>The minimum value is 10 and the maximum value is 600.</p>
3812
+ * </note>
3810
3813
  * @public
3811
3814
  */
3812
3815
  TimeoutInSeconds?: number | undefined;
@@ -3879,6 +3882,9 @@ export interface GameSessionQueue {
3879
3882
  GameSessionQueueArn?: string | undefined;
3880
3883
  /**
3881
3884
  * <p>The maximum time, in seconds, that a new game session placement request remains in the queue. When a request exceeds this time, the game session placement changes to a <code>TIMED_OUT</code> status.</p>
3885
+ * <note>
3886
+ * <p>The minimum value is 10 and the maximum value is 600.</p>
3887
+ * </note>
3882
3888
  * @public
3883
3889
  */
3884
3890
  TimeoutInSeconds?: number | undefined;
@@ -5483,6 +5489,52 @@ export interface EC2InstanceCounts {
5483
5489
  */
5484
5490
  TERMINATING?: number | undefined;
5485
5491
  }
5492
+ /**
5493
+ * <p>Use ManagedCapacityConfiguration with the "SCALE_TO_AND_FROM_ZERO" ZeroCapacityStrategy to enable Amazon
5494
+ * GameLift Servers to fully manage the MinSize value, switching between 0 and 1 based on game session
5495
+ * activity. This is ideal for eliminating compute costs during periods of no game activity.
5496
+ * It is particularly beneficial during development when you're away from your desk, iterating on builds
5497
+ * for extended periods, in production environments serving low-traffic locations, or for games with long,
5498
+ * predictable downtime windows. By automatically managing capacity between 0 and 1 instances, you avoid paying
5499
+ * for idle instances while maintaining the ability to serve game sessions when demand arrives. Note that while
5500
+ * scale-out is triggered immediately upon receiving a game session request, actual game session availability
5501
+ * depends on your server process startup time, so this approach works best with multi-location Fleets where
5502
+ * cold-start latency is tolerable. With a "MANUAL" ZeroCapacityStrategy Amazon GameLift Servers will not
5503
+ * modify Fleet MinSize values automatically and will not scale out from zero instances in response to game
5504
+ * sessions.
5505
+ * </p>
5506
+ * @public
5507
+ */
5508
+ export interface ManagedCapacityConfiguration {
5509
+ /**
5510
+ * <p>The strategy Amazon GameLift Servers will use to automatically scale your capacity to and from zero
5511
+ * instances in response to game session activity. Game session activity refers to any active running sessions
5512
+ * or game session requests.</p>
5513
+ * <p>Possible ZeroCapacityStrategy types include:</p>
5514
+ * <ul>
5515
+ * <li>
5516
+ * <p>
5517
+ * <b>MANUAL</b> -- (default value) Amazon GameLift Servers will not update
5518
+ * capacity to and from zero on your behalf.</p>
5519
+ * </li>
5520
+ * <li>
5521
+ * <p>
5522
+ * <b>SCALE_TO_AND_FROM_ZERO</b> -- Amazon GameLift Servers will automatically
5523
+ * scale out MinSize and DesiredInstances from 0 to 1 in response to a game session request, and will scale
5524
+ * in MinSize and DesiredInstances to 0 after a period with no game session activity. The duration of
5525
+ * this scale in period can be configured using ScaleInAfterInactivityMinutes. </p>
5526
+ * </li>
5527
+ * </ul>
5528
+ * @public
5529
+ */
5530
+ ZeroCapacityStrategy?: ZeroCapacityStrategy | undefined;
5531
+ /**
5532
+ * <p>Length of time, in minutes, that Amazon GameLift Servers will wait before scaling in your MinSize and
5533
+ * DesiredInstances to 0 after a period with no game session activity. Default: 30 minutes.</p>
5534
+ * @public
5535
+ */
5536
+ ScaleInAfterInactivityMinutes?: number | undefined;
5537
+ }
5486
5538
  /**
5487
5539
  * <p>Current resource capacity settings for managed EC2 fleets and managed container fleets. For
5488
5540
  * multi-location fleets, location values might refer to a fleet's remote location or its
@@ -5530,6 +5582,11 @@ export interface FleetCapacity {
5530
5582
  * @public
5531
5583
  */
5532
5584
  GameServerContainerGroupCounts?: GameServerContainerGroupCounts | undefined;
5585
+ /**
5586
+ * <p>Configuration settings for managed capacity scaling.</p>
5587
+ * @public
5588
+ */
5589
+ ManagedCapacityConfiguration?: ManagedCapacityConfiguration | undefined;
5533
5590
  }
5534
5591
  /**
5535
5592
  * @public
@@ -9949,7 +10006,8 @@ export interface UpdateFleetCapacityInput {
9949
10006
  DesiredInstances?: number | undefined;
9950
10007
  /**
9951
10008
  * <p>The minimum number of instances that are allowed in the specified fleet location. If
9952
- * this parameter is not set, the default is 0.</p>
10009
+ * this parameter is not set, the default is 0. This parameter cannot be set when using a
10010
+ * ManagedCapacityConfiguration where ZeroCapacityStrategy has a value of SCALE_TO_AND_FROM_ZERO.</p>
9953
10011
  * @public
9954
10012
  */
9955
10013
  MinSize?: number | undefined;
@@ -9965,6 +10023,11 @@ export interface UpdateFleetCapacityInput {
9965
10023
  * @public
9966
10024
  */
9967
10025
  Location?: string | undefined;
10026
+ /**
10027
+ * <p>Configuration for Amazon GameLift Servers-managed capacity scaling options.</p>
10028
+ * @public
10029
+ */
10030
+ ManagedCapacityConfiguration?: ManagedCapacityConfiguration | undefined;
9968
10031
  }
9969
10032
  /**
9970
10033
  * @public
@@ -9986,6 +10049,11 @@ export interface UpdateFleetCapacityOutput {
9986
10049
  * @public
9987
10050
  */
9988
10051
  Location?: string | undefined;
10052
+ /**
10053
+ * <p>Configuration for Amazon GameLift Servers-managed capacity scaling options.</p>
10054
+ * @public
10055
+ */
10056
+ ManagedCapacityConfiguration?: ManagedCapacityConfiguration | undefined;
9989
10057
  }
9990
10058
  /**
9991
10059
  * @public
@@ -10008,18 +10076,3 @@ export interface UpdateFleetPortSettingsInput {
10008
10076
  */
10009
10077
  InboundPermissionRevocations?: IpPermission[] | undefined;
10010
10078
  }
10011
- /**
10012
- * @public
10013
- */
10014
- export interface UpdateFleetPortSettingsOutput {
10015
- /**
10016
- * <p>A unique identifier for the fleet that was updated.</p>
10017
- * @public
10018
- */
10019
- FleetId?: string | undefined;
10020
- /**
10021
- * <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 fleet resource and uniquely identifies it. ARNs are unique across all Regions. Format is <code>arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912</code>.</p>
10022
- * @public
10023
- */
10024
- FleetArn?: string | undefined;
10025
- }
@@ -1,5 +1,20 @@
1
1
  import { BackfillMode, BalancingStrategy, FlexMatchMode, GameServerHealthCheck, GameServerProtectionPolicy, GameServerUtilizationStatus, PlayerSessionCreationPolicy, ProtectionPolicy } from "./enums";
2
2
  import { type FilterConfiguration, type GameServer, type GameServerGroup, type GameSession, type GameSessionQueue, type MatchmakingConfiguration, type PriorityConfiguration, type RuntimeConfiguration, type S3Location, type Script, GameProperty, GameSessionQueueDestination, InstanceDefinition, PlayerLatencyPolicy } from "./models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export interface UpdateFleetPortSettingsOutput {
7
+ /**
8
+ * <p>A unique identifier for the fleet that was updated.</p>
9
+ * @public
10
+ */
11
+ FleetId?: string | undefined;
12
+ /**
13
+ * <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 fleet resource and uniquely identifies it. ARNs are unique across all Regions. Format is <code>arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912</code>.</p>
14
+ * @public
15
+ */
16
+ FleetArn?: string | undefined;
17
+ }
3
18
  /**
4
19
  * @public
5
20
  */
@@ -203,6 +218,9 @@ export interface UpdateGameSessionQueueInput {
203
218
  Name: string | undefined;
204
219
  /**
205
220
  * <p>The maximum time, in seconds, that a new game session placement request remains in the queue. When a request exceeds this time, the game session placement changes to a <code>TIMED_OUT</code> status.</p>
221
+ * <note>
222
+ * <p>The minimum value is 10 and the maximum value is 600.</p>
223
+ * </note>
206
224
  * @public
207
225
  */
208
226
  TimeoutInSeconds?: number | undefined;
@@ -230,6 +230,7 @@ export declare var LocationConfiguration$: StaticStructureSchema;
230
230
  export declare var LocationModel$: StaticStructureSchema;
231
231
  export declare var LocationState$: StaticStructureSchema;
232
232
  export declare var LogConfiguration$: StaticStructureSchema;
233
+ export declare var ManagedCapacityConfiguration$: StaticStructureSchema;
233
234
  export declare var MatchedPlayerSession$: StaticStructureSchema;
234
235
  export declare var MatchmakingConfiguration$: StaticStructureSchema;
235
236
  export declare var MatchmakingRuleSet$: StaticStructureSchema;
@@ -5,10 +5,8 @@ import {
5
5
  ServiceInputTypes,
6
6
  ServiceOutputTypes,
7
7
  } from "../GameLiftClient";
8
- import {
9
- UpdateFleetPortSettingsInput,
10
- UpdateFleetPortSettingsOutput,
11
- } from "../models/models_0";
8
+ import { UpdateFleetPortSettingsInput } from "../models/models_0";
9
+ import { UpdateFleetPortSettingsOutput } from "../models/models_1";
12
10
  export { __MetadataBearer };
13
11
  export { $Command };
14
12
  export interface UpdateFleetPortSettingsCommandInput
@@ -886,6 +886,12 @@ export declare const DeploymentStatus: {
886
886
  };
887
887
  export type DeploymentStatus =
888
888
  (typeof DeploymentStatus)[keyof typeof DeploymentStatus];
889
+ export declare const ZeroCapacityStrategy: {
890
+ readonly MANUAL: "MANUAL";
891
+ readonly SCALE_TO_AND_FROM_ZERO: "SCALE_TO_AND_FROM_ZERO";
892
+ };
893
+ export type ZeroCapacityStrategy =
894
+ (typeof ZeroCapacityStrategy)[keyof typeof ZeroCapacityStrategy];
889
895
  export declare const EventCode: {
890
896
  readonly COMPUTE_LOG_UPLOAD_FAILED: "COMPUTE_LOG_UPLOAD_FAILED";
891
897
  readonly FLEET_ACTIVATION_FAILED: "FLEET_ACTIVATION_FAILED";
@@ -58,6 +58,7 @@ import {
58
58
  ScalingStatusType,
59
59
  SortOrder,
60
60
  TerminationMode,
61
+ ZeroCapacityStrategy,
61
62
  } from "./enums";
62
63
  export interface AcceptMatchInput {
63
64
  TicketId: string | undefined;
@@ -874,6 +875,10 @@ export interface EC2InstanceCounts {
874
875
  IDLE?: number | undefined;
875
876
  TERMINATING?: number | undefined;
876
877
  }
878
+ export interface ManagedCapacityConfiguration {
879
+ ZeroCapacityStrategy?: ZeroCapacityStrategy | undefined;
880
+ ScaleInAfterInactivityMinutes?: number | undefined;
881
+ }
877
882
  export interface FleetCapacity {
878
883
  FleetId?: string | undefined;
879
884
  FleetArn?: string | undefined;
@@ -881,6 +886,7 @@ export interface FleetCapacity {
881
886
  InstanceCounts?: EC2InstanceCounts | undefined;
882
887
  Location?: string | undefined;
883
888
  GameServerContainerGroupCounts?: GameServerContainerGroupCounts | undefined;
889
+ ManagedCapacityConfiguration?: ManagedCapacityConfiguration | undefined;
884
890
  }
885
891
  export interface DescribeFleetCapacityOutput {
886
892
  FleetCapacity?: FleetCapacity[] | undefined;
@@ -1645,18 +1651,16 @@ export interface UpdateFleetCapacityInput {
1645
1651
  MinSize?: number | undefined;
1646
1652
  MaxSize?: number | undefined;
1647
1653
  Location?: string | undefined;
1654
+ ManagedCapacityConfiguration?: ManagedCapacityConfiguration | undefined;
1648
1655
  }
1649
1656
  export interface UpdateFleetCapacityOutput {
1650
1657
  FleetId?: string | undefined;
1651
1658
  FleetArn?: string | undefined;
1652
1659
  Location?: string | undefined;
1660
+ ManagedCapacityConfiguration?: ManagedCapacityConfiguration | undefined;
1653
1661
  }
1654
1662
  export interface UpdateFleetPortSettingsInput {
1655
1663
  FleetId: string | undefined;
1656
1664
  InboundPermissionAuthorizations?: IpPermission[] | undefined;
1657
1665
  InboundPermissionRevocations?: IpPermission[] | undefined;
1658
1666
  }
1659
- export interface UpdateFleetPortSettingsOutput {
1660
- FleetId?: string | undefined;
1661
- FleetArn?: string | undefined;
1662
- }
@@ -24,6 +24,10 @@ import {
24
24
  InstanceDefinition,
25
25
  PlayerLatencyPolicy,
26
26
  } from "./models_0";
27
+ export interface UpdateFleetPortSettingsOutput {
28
+ FleetId?: string | undefined;
29
+ FleetArn?: string | undefined;
30
+ }
27
31
  export interface UpdateGameServerInput {
28
32
  GameServerGroupName: string | undefined;
29
33
  GameServerId: string | undefined;
@@ -234,6 +234,7 @@ export declare var LocationConfiguration$: StaticStructureSchema;
234
234
  export declare var LocationModel$: StaticStructureSchema;
235
235
  export declare var LocationState$: StaticStructureSchema;
236
236
  export declare var LogConfiguration$: StaticStructureSchema;
237
+ export declare var ManagedCapacityConfiguration$: StaticStructureSchema;
237
238
  export declare var MatchedPlayerSession$: StaticStructureSchema;
238
239
  export declare var MatchmakingConfiguration$: StaticStructureSchema;
239
240
  export declare var MatchmakingRuleSet$: StaticStructureSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-gamelift",
3
3
  "description": "AWS SDK for JavaScript Gamelift Client for Node.js, Browser and React Native",
4
- "version": "3.978.0",
4
+ "version": "3.979.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-gamelift",
@@ -24,7 +24,7 @@
24
24
  "@aws-crypto/sha256-browser": "5.2.0",
25
25
  "@aws-crypto/sha256-js": "5.2.0",
26
26
  "@aws-sdk/core": "^3.973.4",
27
- "@aws-sdk/credential-provider-node": "^3.972.2",
27
+ "@aws-sdk/credential-provider-node": "^3.972.3",
28
28
  "@aws-sdk/middleware-host-header": "^3.972.2",
29
29
  "@aws-sdk/middleware-logger": "^3.972.2",
30
30
  "@aws-sdk/middleware-recursion-detection": "^3.972.2",