@aws-sdk/client-gamelift 3.46.0 → 3.47.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/CHANGELOG.md +11 -0
- package/dist-cjs/models/models_0.js +6 -96
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +10 -2
- package/dist-es/models/models_0.js +0 -60
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -4
- package/dist-types/GameLiftClient.d.ts +5 -1
- package/dist-types/models/models_0.d.ts +0 -90
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/GameLiftClient.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +0 -60
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +34 -34
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.ValidateMatchmakingRuleSetOutput = exports.ValidateMatchmakingRuleSetInput = exports.UpdateScriptOutput = exports.UpdateScriptInput = exports.UpdateRuntimeConfigurationOutput = exports.UpdateRuntimeConfigurationInput = exports.UpdateMatchmakingConfigurationOutput = exports.UpdateMatchmakingConfigurationInput = exports.UpdateGameSessionQueueOutput = exports.UpdateGameSessionQueueInput = exports.UpdateGameSessionOutput = exports.UpdateGameSessionInput = exports.UpdateGameServerGroupOutput = exports.UpdateGameServerGroupInput = exports.UpdateGameServerOutput = exports.UpdateGameServerInput = exports.GameServerHealthCheck = exports.UpdateFleetPortSettingsOutput = exports.UpdateFleetPortSettingsInput = exports.UpdateFleetCapacityOutput = exports.UpdateFleetCapacityInput = exports.UpdateFleetAttributesOutput = exports.UpdateFleetAttributesInput = exports.UpdateBuildOutput =
|
|
3
|
+
exports.GameServerGroupAction = exports.GameServerGroupStatus = exports.CreateGameServerGroupInput = exports.LaunchTemplateSpecification = exports.InstanceDefinition = exports.GameServerProtectionPolicy = exports.GameServerGroupAutoScalingPolicy = exports.TargetTrackingConfiguration = exports.CreateFleetLocationsOutput = exports.CreateFleetLocationsInput = exports.CreateFleetOutput = exports.LocationState = exports.FleetAttributes = exports.FleetAction = exports.FleetStatus = exports.CreateFleetInput = exports.RuntimeConfiguration = exports.ServerProcess = exports.ResourceCreationLimitPolicy = exports.ProtectionPolicy = exports.LocationConfiguration = exports.FleetType = exports.IpPermission = exports.IpProtocol = exports.CreateBuildOutput = exports.CreateBuildInput = exports.S3Location = exports.CreateAliasOutput = exports.CreateAliasInput = exports.Tag = exports.ComparisonOperatorType = exports.ClaimGameServerOutput = exports.GameServer = exports.GameServerUtilizationStatus = exports.GameServerClaimStatus = exports.ClaimGameServerInput = exports.CertificateConfiguration = exports.CertificateType = exports.Build = exports.BuildStatus = exports.OperatingSystem = exports.BalancingStrategy = exports.BackfillMode = exports.AwsCredentials = exports.AttributeValue = exports.Alias = exports.RoutingStrategy = exports.RoutingStrategyType = exports.AcceptMatchOutput = exports.AcceptMatchInput = void 0;
|
|
4
|
+
exports.DeleteMatchmakingConfigurationOutput = exports.DeleteMatchmakingConfigurationInput = exports.DeleteGameSessionQueueOutput = exports.DeleteGameSessionQueueInput = exports.DeleteGameServerGroupOutput = exports.DeleteGameServerGroupInput = exports.GameServerGroupDeleteOption = exports.DeleteFleetLocationsOutput = exports.DeleteFleetLocationsInput = exports.DeleteFleetInput = exports.DeleteBuildInput = exports.DeleteAliasInput = exports.CreateVpcPeeringConnectionOutput = exports.CreateVpcPeeringConnectionInput = exports.CreateVpcPeeringAuthorizationOutput = exports.VpcPeeringAuthorization = exports.CreateVpcPeeringAuthorizationInput = exports.CreateScriptOutput = exports.Script = exports.CreateScriptInput = exports.CreatePlayerSessionsOutput = exports.CreatePlayerSessionsInput = exports.CreatePlayerSessionOutput = exports.PlayerSession = exports.PlayerSessionStatus = exports.CreatePlayerSessionInput = exports.CreateMatchmakingRuleSetOutput = exports.MatchmakingRuleSet = exports.CreateMatchmakingRuleSetInput = exports.CreateMatchmakingConfigurationOutput = exports.MatchmakingConfiguration = exports.CreateMatchmakingConfigurationInput = exports.FlexMatchMode = exports.CreateGameSessionQueueOutput = exports.GameSessionQueue = exports.CreateGameSessionQueueInput = exports.PriorityConfiguration = exports.PriorityType = exports.PlayerLatencyPolicy = exports.FilterConfiguration = exports.GameSessionQueueDestination = exports.CreateGameSessionOutput = exports.GameSession = exports.GameSessionStatusReason = exports.GameSessionStatus = exports.PlayerSessionCreationPolicy = exports.CreateGameSessionInput = exports.GameProperty = exports.CreateGameServerGroupOutput = exports.GameServerGroup = void 0;
|
|
5
|
+
exports.DescribeGameSessionDetailsOutput = exports.GameSessionDetail = exports.DescribeGameSessionDetailsInput = exports.DescribeGameServerInstancesOutput = exports.GameServerInstance = exports.GameServerInstanceStatus = exports.DescribeGameServerInstancesInput = exports.DescribeGameServerGroupOutput = exports.DescribeGameServerGroupInput = exports.DescribeGameServerOutput = exports.DescribeGameServerInput = exports.DescribeFleetUtilizationOutput = exports.DescribeFleetUtilizationInput = exports.DescribeFleetPortSettingsOutput = exports.DescribeFleetPortSettingsInput = exports.DescribeFleetLocationUtilizationOutput = exports.FleetUtilization = exports.DescribeFleetLocationUtilizationInput = exports.DescribeFleetLocationCapacityOutput = exports.DescribeFleetLocationCapacityInput = exports.DescribeFleetLocationAttributesOutput = exports.LocationAttributes = exports.LocationUpdateStatus = exports.DescribeFleetLocationAttributesInput = exports.DescribeFleetEventsOutput = exports.Event = exports.EventCode = exports.DescribeFleetEventsInput = exports.DescribeFleetCapacityOutput = exports.FleetCapacity = exports.EC2InstanceCounts = exports.DescribeFleetCapacityInput = exports.DescribeFleetAttributesOutput = exports.DescribeFleetAttributesInput = exports.DescribeEC2InstanceLimitsOutput = exports.EC2InstanceLimit = exports.DescribeEC2InstanceLimitsInput = exports.DescribeBuildOutput = exports.DescribeBuildInput = exports.DescribeAliasOutput = exports.DescribeAliasInput = exports.DeregisterGameServerInput = exports.DeleteVpcPeeringConnectionOutput = exports.DeleteVpcPeeringConnectionInput = exports.DeleteVpcPeeringAuthorizationOutput = exports.DeleteVpcPeeringAuthorizationInput = exports.DeleteScriptInput = exports.DeleteScalingPolicyInput = exports.DeleteMatchmakingRuleSetOutput = exports.DeleteMatchmakingRuleSetInput = void 0;
|
|
6
|
+
exports.GetInstanceAccessOutput = exports.InstanceAccess = exports.InstanceCredentials = exports.GetInstanceAccessInput = exports.GetGameSessionLogUrlOutput = exports.GetGameSessionLogUrlInput = exports.DesiredPlayerSession = exports.DescribeVpcPeeringConnectionsOutput = exports.VpcPeeringConnection = exports.VpcPeeringConnectionStatus = exports.DescribeVpcPeeringConnectionsInput = exports.DescribeVpcPeeringAuthorizationsOutput = exports.DescribeVpcPeeringAuthorizationsInput = exports.DescribeScriptOutput = exports.DescribeScriptInput = exports.DescribeScalingPoliciesOutput = exports.ScalingPolicy = exports.TargetConfiguration = exports.ScalingAdjustmentType = exports.PolicyType = exports.DescribeScalingPoliciesInput = exports.ScalingStatusType = exports.DescribeRuntimeConfigurationOutput = exports.DescribeRuntimeConfigurationInput = exports.DescribePlayerSessionsOutput = exports.DescribePlayerSessionsInput = exports.DescribeMatchmakingRuleSetsOutput = exports.DescribeMatchmakingRuleSetsInput = exports.DescribeMatchmakingConfigurationsOutput = exports.DescribeMatchmakingConfigurationsInput = exports.DescribeMatchmakingOutput = exports.MatchmakingTicket = exports.Player = exports.GameSessionConnectionInfo = exports.MatchedPlayerSession = exports.DescribeMatchmakingInput = exports.DescribeInstancesOutput = exports.Instance = exports.InstanceStatus = exports.DescribeInstancesInput = exports.DescribeGameSessionsOutput = exports.DescribeGameSessionsInput = exports.DescribeGameSessionQueuesOutput = exports.DescribeGameSessionQueuesInput = exports.DescribeGameSessionPlacementOutput = exports.GameSessionPlacement = exports.GameSessionPlacementState = exports.PlayerLatency = exports.PlacedPlayerSession = exports.DescribeGameSessionPlacementInput = void 0;
|
|
7
|
+
exports.UpdateBuildInput = exports.UpdateAliasOutput = exports.UpdateAliasInput = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.SuspendGameServerGroupOutput = exports.SuspendGameServerGroupInput = exports.StopMatchmakingOutput = exports.StopMatchmakingInput = exports.StopGameSessionPlacementOutput = exports.StopGameSessionPlacementInput = exports.StopFleetActionsOutput = exports.StopFleetActionsInput = exports.StartMatchmakingOutput = exports.StartMatchmakingInput = exports.StartMatchBackfillOutput = exports.StartMatchBackfillInput = exports.StartGameSessionPlacementOutput = exports.StartGameSessionPlacementInput = exports.StartFleetActionsOutput = exports.StartFleetActionsInput = exports.SearchGameSessionsOutput = exports.SearchGameSessionsInput = exports.ResumeGameServerGroupOutput = exports.ResumeGameServerGroupInput = exports.ResolveAliasOutput = exports.ResolveAliasInput = exports.RequestUploadCredentialsOutput = exports.RequestUploadCredentialsInput = exports.RegisterGameServerOutput = exports.RegisterGameServerInput = exports.PutScalingPolicyOutput = exports.PutScalingPolicyInput = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListScriptsOutput = exports.ListScriptsInput = exports.ListGameServersOutput = exports.ListGameServersInput = exports.SortOrder = exports.ListGameServerGroupsOutput = exports.ListGameServerGroupsInput = exports.ListFleetsOutput = exports.ListFleetsInput = exports.ListBuildsOutput = exports.ListBuildsInput = exports.ListAliasesOutput = exports.ListAliasesInput = void 0;
|
|
8
|
+
exports.ValidateMatchmakingRuleSetOutput = exports.ValidateMatchmakingRuleSetInput = exports.UpdateScriptOutput = exports.UpdateScriptInput = exports.UpdateRuntimeConfigurationOutput = exports.UpdateRuntimeConfigurationInput = exports.UpdateMatchmakingConfigurationOutput = exports.UpdateMatchmakingConfigurationInput = exports.UpdateGameSessionQueueOutput = exports.UpdateGameSessionQueueInput = exports.UpdateGameSessionOutput = exports.UpdateGameSessionInput = exports.UpdateGameServerGroupOutput = exports.UpdateGameServerGroupInput = exports.UpdateGameServerOutput = exports.UpdateGameServerInput = exports.GameServerHealthCheck = exports.UpdateFleetPortSettingsOutput = exports.UpdateFleetPortSettingsInput = exports.UpdateFleetCapacityOutput = exports.UpdateFleetCapacityInput = exports.UpdateFleetAttributesOutput = exports.UpdateFleetAttributesInput = exports.UpdateBuildOutput = void 0;
|
|
9
9
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
10
10
|
var AcceptMatchInput;
|
|
11
11
|
(function (AcceptMatchInput) {
|
|
@@ -19,30 +19,6 @@ var AcceptMatchOutput;
|
|
|
19
19
|
...obj,
|
|
20
20
|
});
|
|
21
21
|
})(AcceptMatchOutput = exports.AcceptMatchOutput || (exports.AcceptMatchOutput = {}));
|
|
22
|
-
var InternalServiceException;
|
|
23
|
-
(function (InternalServiceException) {
|
|
24
|
-
InternalServiceException.filterSensitiveLog = (obj) => ({
|
|
25
|
-
...obj,
|
|
26
|
-
});
|
|
27
|
-
})(InternalServiceException = exports.InternalServiceException || (exports.InternalServiceException = {}));
|
|
28
|
-
var InvalidRequestException;
|
|
29
|
-
(function (InvalidRequestException) {
|
|
30
|
-
InvalidRequestException.filterSensitiveLog = (obj) => ({
|
|
31
|
-
...obj,
|
|
32
|
-
});
|
|
33
|
-
})(InvalidRequestException = exports.InvalidRequestException || (exports.InvalidRequestException = {}));
|
|
34
|
-
var NotFoundException;
|
|
35
|
-
(function (NotFoundException) {
|
|
36
|
-
NotFoundException.filterSensitiveLog = (obj) => ({
|
|
37
|
-
...obj,
|
|
38
|
-
});
|
|
39
|
-
})(NotFoundException = exports.NotFoundException || (exports.NotFoundException = {}));
|
|
40
|
-
var UnsupportedRegionException;
|
|
41
|
-
(function (UnsupportedRegionException) {
|
|
42
|
-
UnsupportedRegionException.filterSensitiveLog = (obj) => ({
|
|
43
|
-
...obj,
|
|
44
|
-
});
|
|
45
|
-
})(UnsupportedRegionException = exports.UnsupportedRegionException || (exports.UnsupportedRegionException = {}));
|
|
46
22
|
var RoutingStrategyType;
|
|
47
23
|
(function (RoutingStrategyType) {
|
|
48
24
|
RoutingStrategyType["SIMPLE"] = "SIMPLE";
|
|
@@ -139,24 +115,6 @@ var ClaimGameServerOutput;
|
|
|
139
115
|
...obj,
|
|
140
116
|
});
|
|
141
117
|
})(ClaimGameServerOutput = exports.ClaimGameServerOutput || (exports.ClaimGameServerOutput = {}));
|
|
142
|
-
var ConflictException;
|
|
143
|
-
(function (ConflictException) {
|
|
144
|
-
ConflictException.filterSensitiveLog = (obj) => ({
|
|
145
|
-
...obj,
|
|
146
|
-
});
|
|
147
|
-
})(ConflictException = exports.ConflictException || (exports.ConflictException = {}));
|
|
148
|
-
var OutOfCapacityException;
|
|
149
|
-
(function (OutOfCapacityException) {
|
|
150
|
-
OutOfCapacityException.filterSensitiveLog = (obj) => ({
|
|
151
|
-
...obj,
|
|
152
|
-
});
|
|
153
|
-
})(OutOfCapacityException = exports.OutOfCapacityException || (exports.OutOfCapacityException = {}));
|
|
154
|
-
var UnauthorizedException;
|
|
155
|
-
(function (UnauthorizedException) {
|
|
156
|
-
UnauthorizedException.filterSensitiveLog = (obj) => ({
|
|
157
|
-
...obj,
|
|
158
|
-
});
|
|
159
|
-
})(UnauthorizedException = exports.UnauthorizedException || (exports.UnauthorizedException = {}));
|
|
160
118
|
var ComparisonOperatorType;
|
|
161
119
|
(function (ComparisonOperatorType) {
|
|
162
120
|
ComparisonOperatorType["GreaterThanOrEqualToThreshold"] = "GreaterThanOrEqualToThreshold";
|
|
@@ -182,18 +140,6 @@ var CreateAliasOutput;
|
|
|
182
140
|
...obj,
|
|
183
141
|
});
|
|
184
142
|
})(CreateAliasOutput = exports.CreateAliasOutput || (exports.CreateAliasOutput = {}));
|
|
185
|
-
var LimitExceededException;
|
|
186
|
-
(function (LimitExceededException) {
|
|
187
|
-
LimitExceededException.filterSensitiveLog = (obj) => ({
|
|
188
|
-
...obj,
|
|
189
|
-
});
|
|
190
|
-
})(LimitExceededException = exports.LimitExceededException || (exports.LimitExceededException = {}));
|
|
191
|
-
var TaggingFailedException;
|
|
192
|
-
(function (TaggingFailedException) {
|
|
193
|
-
TaggingFailedException.filterSensitiveLog = (obj) => ({
|
|
194
|
-
...obj,
|
|
195
|
-
});
|
|
196
|
-
})(TaggingFailedException = exports.TaggingFailedException || (exports.TaggingFailedException = {}));
|
|
197
143
|
var S3Location;
|
|
198
144
|
(function (S3Location) {
|
|
199
145
|
S3Location.filterSensitiveLog = (obj) => ({
|
|
@@ -310,12 +256,6 @@ var CreateFleetLocationsOutput;
|
|
|
310
256
|
...obj,
|
|
311
257
|
});
|
|
312
258
|
})(CreateFleetLocationsOutput = exports.CreateFleetLocationsOutput || (exports.CreateFleetLocationsOutput = {}));
|
|
313
|
-
var InvalidFleetStatusException;
|
|
314
|
-
(function (InvalidFleetStatusException) {
|
|
315
|
-
InvalidFleetStatusException.filterSensitiveLog = (obj) => ({
|
|
316
|
-
...obj,
|
|
317
|
-
});
|
|
318
|
-
})(InvalidFleetStatusException = exports.InvalidFleetStatusException || (exports.InvalidFleetStatusException = {}));
|
|
319
259
|
var TargetTrackingConfiguration;
|
|
320
260
|
(function (TargetTrackingConfiguration) {
|
|
321
261
|
TargetTrackingConfiguration.filterSensitiveLog = (obj) => ({
|
|
@@ -418,24 +358,6 @@ var CreateGameSessionOutput;
|
|
|
418
358
|
...obj,
|
|
419
359
|
});
|
|
420
360
|
})(CreateGameSessionOutput = exports.CreateGameSessionOutput || (exports.CreateGameSessionOutput = {}));
|
|
421
|
-
var FleetCapacityExceededException;
|
|
422
|
-
(function (FleetCapacityExceededException) {
|
|
423
|
-
FleetCapacityExceededException.filterSensitiveLog = (obj) => ({
|
|
424
|
-
...obj,
|
|
425
|
-
});
|
|
426
|
-
})(FleetCapacityExceededException = exports.FleetCapacityExceededException || (exports.FleetCapacityExceededException = {}));
|
|
427
|
-
var IdempotentParameterMismatchException;
|
|
428
|
-
(function (IdempotentParameterMismatchException) {
|
|
429
|
-
IdempotentParameterMismatchException.filterSensitiveLog = (obj) => ({
|
|
430
|
-
...obj,
|
|
431
|
-
});
|
|
432
|
-
})(IdempotentParameterMismatchException = exports.IdempotentParameterMismatchException || (exports.IdempotentParameterMismatchException = {}));
|
|
433
|
-
var TerminalRoutingStrategyException;
|
|
434
|
-
(function (TerminalRoutingStrategyException) {
|
|
435
|
-
TerminalRoutingStrategyException.filterSensitiveLog = (obj) => ({
|
|
436
|
-
...obj,
|
|
437
|
-
});
|
|
438
|
-
})(TerminalRoutingStrategyException = exports.TerminalRoutingStrategyException || (exports.TerminalRoutingStrategyException = {}));
|
|
439
361
|
var GameSessionQueueDestination;
|
|
440
362
|
(function (GameSessionQueueDestination) {
|
|
441
363
|
GameSessionQueueDestination.filterSensitiveLog = (obj) => ({
|
|
@@ -551,18 +473,6 @@ var CreatePlayerSessionOutput;
|
|
|
551
473
|
...obj,
|
|
552
474
|
});
|
|
553
475
|
})(CreatePlayerSessionOutput = exports.CreatePlayerSessionOutput || (exports.CreatePlayerSessionOutput = {}));
|
|
554
|
-
var GameSessionFullException;
|
|
555
|
-
(function (GameSessionFullException) {
|
|
556
|
-
GameSessionFullException.filterSensitiveLog = (obj) => ({
|
|
557
|
-
...obj,
|
|
558
|
-
});
|
|
559
|
-
})(GameSessionFullException = exports.GameSessionFullException || (exports.GameSessionFullException = {}));
|
|
560
|
-
var InvalidGameSessionStatusException;
|
|
561
|
-
(function (InvalidGameSessionStatusException) {
|
|
562
|
-
InvalidGameSessionStatusException.filterSensitiveLog = (obj) => ({
|
|
563
|
-
...obj,
|
|
564
|
-
});
|
|
565
|
-
})(InvalidGameSessionStatusException = exports.InvalidGameSessionStatusException || (exports.InvalidGameSessionStatusException = {}));
|
|
566
476
|
var CreatePlayerSessionsInput;
|
|
567
477
|
(function (CreatePlayerSessionsInput) {
|
|
568
478
|
CreatePlayerSessionsInput.filterSensitiveLog = (obj) => ({
|
|
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
|
13
13
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
14
14
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
15
15
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
|
+
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
16
18
|
const getRuntimeConfig = (config) => {
|
|
17
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
+
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
21
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
18
22
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
19
23
|
return {
|
|
20
24
|
...clientSharedValues,
|
|
21
25
|
...config,
|
|
22
26
|
runtime: "browser",
|
|
27
|
+
defaultsMode,
|
|
23
28
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
|
|
24
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
25
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
|
|
|
27
32
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
28
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
29
34
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
30
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
|
|
31
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() =>
|
|
35
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
32
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
33
38
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
34
39
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
@@ -15,13 +15,18 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
|
15
15
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
18
20
|
const getRuntimeConfig = (config) => {
|
|
19
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
22
|
+
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
23
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
20
24
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
21
25
|
return {
|
|
22
26
|
...clientSharedValues,
|
|
23
27
|
...config,
|
|
24
28
|
runtime: "node",
|
|
29
|
+
defaultsMode,
|
|
25
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
26
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
27
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
@@ -29,8 +34,11 @@ const getRuntimeConfig = (config) => {
|
|
|
29
34
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
30
35
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
31
36
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
32
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
|
|
33
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(
|
|
37
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
39
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
|
+
}),
|
|
34
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
35
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
36
44
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
@@ -8,22 +8,6 @@ export var AcceptMatchOutput;
|
|
|
8
8
|
(function (AcceptMatchOutput) {
|
|
9
9
|
AcceptMatchOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
10
10
|
})(AcceptMatchOutput || (AcceptMatchOutput = {}));
|
|
11
|
-
export var InternalServiceException;
|
|
12
|
-
(function (InternalServiceException) {
|
|
13
|
-
InternalServiceException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
14
|
-
})(InternalServiceException || (InternalServiceException = {}));
|
|
15
|
-
export var InvalidRequestException;
|
|
16
|
-
(function (InvalidRequestException) {
|
|
17
|
-
InvalidRequestException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
18
|
-
})(InvalidRequestException || (InvalidRequestException = {}));
|
|
19
|
-
export var NotFoundException;
|
|
20
|
-
(function (NotFoundException) {
|
|
21
|
-
NotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
22
|
-
})(NotFoundException || (NotFoundException = {}));
|
|
23
|
-
export var UnsupportedRegionException;
|
|
24
|
-
(function (UnsupportedRegionException) {
|
|
25
|
-
UnsupportedRegionException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
26
|
-
})(UnsupportedRegionException || (UnsupportedRegionException = {}));
|
|
27
11
|
export var RoutingStrategyType;
|
|
28
12
|
(function (RoutingStrategyType) {
|
|
29
13
|
RoutingStrategyType["SIMPLE"] = "SIMPLE";
|
|
@@ -102,18 +86,6 @@ export var ClaimGameServerOutput;
|
|
|
102
86
|
(function (ClaimGameServerOutput) {
|
|
103
87
|
ClaimGameServerOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
104
88
|
})(ClaimGameServerOutput || (ClaimGameServerOutput = {}));
|
|
105
|
-
export var ConflictException;
|
|
106
|
-
(function (ConflictException) {
|
|
107
|
-
ConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
108
|
-
})(ConflictException || (ConflictException = {}));
|
|
109
|
-
export var OutOfCapacityException;
|
|
110
|
-
(function (OutOfCapacityException) {
|
|
111
|
-
OutOfCapacityException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
112
|
-
})(OutOfCapacityException || (OutOfCapacityException = {}));
|
|
113
|
-
export var UnauthorizedException;
|
|
114
|
-
(function (UnauthorizedException) {
|
|
115
|
-
UnauthorizedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
116
|
-
})(UnauthorizedException || (UnauthorizedException = {}));
|
|
117
89
|
export var ComparisonOperatorType;
|
|
118
90
|
(function (ComparisonOperatorType) {
|
|
119
91
|
ComparisonOperatorType["GreaterThanOrEqualToThreshold"] = "GreaterThanOrEqualToThreshold";
|
|
@@ -133,14 +105,6 @@ export var CreateAliasOutput;
|
|
|
133
105
|
(function (CreateAliasOutput) {
|
|
134
106
|
CreateAliasOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
135
107
|
})(CreateAliasOutput || (CreateAliasOutput = {}));
|
|
136
|
-
export var LimitExceededException;
|
|
137
|
-
(function (LimitExceededException) {
|
|
138
|
-
LimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
139
|
-
})(LimitExceededException || (LimitExceededException = {}));
|
|
140
|
-
export var TaggingFailedException;
|
|
141
|
-
(function (TaggingFailedException) {
|
|
142
|
-
TaggingFailedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
143
|
-
})(TaggingFailedException || (TaggingFailedException = {}));
|
|
144
108
|
export var S3Location;
|
|
145
109
|
(function (S3Location) {
|
|
146
110
|
S3Location.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -228,10 +192,6 @@ export var CreateFleetLocationsOutput;
|
|
|
228
192
|
(function (CreateFleetLocationsOutput) {
|
|
229
193
|
CreateFleetLocationsOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
230
194
|
})(CreateFleetLocationsOutput || (CreateFleetLocationsOutput = {}));
|
|
231
|
-
export var InvalidFleetStatusException;
|
|
232
|
-
(function (InvalidFleetStatusException) {
|
|
233
|
-
InvalidFleetStatusException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
234
|
-
})(InvalidFleetStatusException || (InvalidFleetStatusException = {}));
|
|
235
195
|
export var TargetTrackingConfiguration;
|
|
236
196
|
(function (TargetTrackingConfiguration) {
|
|
237
197
|
TargetTrackingConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -312,18 +272,6 @@ export var CreateGameSessionOutput;
|
|
|
312
272
|
(function (CreateGameSessionOutput) {
|
|
313
273
|
CreateGameSessionOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
314
274
|
})(CreateGameSessionOutput || (CreateGameSessionOutput = {}));
|
|
315
|
-
export var FleetCapacityExceededException;
|
|
316
|
-
(function (FleetCapacityExceededException) {
|
|
317
|
-
FleetCapacityExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
318
|
-
})(FleetCapacityExceededException || (FleetCapacityExceededException = {}));
|
|
319
|
-
export var IdempotentParameterMismatchException;
|
|
320
|
-
(function (IdempotentParameterMismatchException) {
|
|
321
|
-
IdempotentParameterMismatchException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
322
|
-
})(IdempotentParameterMismatchException || (IdempotentParameterMismatchException = {}));
|
|
323
|
-
export var TerminalRoutingStrategyException;
|
|
324
|
-
(function (TerminalRoutingStrategyException) {
|
|
325
|
-
TerminalRoutingStrategyException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
326
|
-
})(TerminalRoutingStrategyException || (TerminalRoutingStrategyException = {}));
|
|
327
275
|
export var GameSessionQueueDestination;
|
|
328
276
|
(function (GameSessionQueueDestination) {
|
|
329
277
|
GameSessionQueueDestination.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -407,14 +355,6 @@ export var CreatePlayerSessionOutput;
|
|
|
407
355
|
(function (CreatePlayerSessionOutput) {
|
|
408
356
|
CreatePlayerSessionOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
409
357
|
})(CreatePlayerSessionOutput || (CreatePlayerSessionOutput = {}));
|
|
410
|
-
export var GameSessionFullException;
|
|
411
|
-
(function (GameSessionFullException) {
|
|
412
|
-
GameSessionFullException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
413
|
-
})(GameSessionFullException || (GameSessionFullException = {}));
|
|
414
|
-
export var InvalidGameSessionStatusException;
|
|
415
|
-
(function (InvalidGameSessionStatusException) {
|
|
416
|
-
InvalidGameSessionStatusException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
417
|
-
})(InvalidGameSessionStatusException || (InvalidGameSessionStatusException = {}));
|
|
418
358
|
export var CreatePlayerSessionsInput;
|
|
419
359
|
(function (CreatePlayerSessionsInput) {
|
|
420
360
|
CreatePlayerSessionsInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
5
|
-
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
6
6
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
7
7
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
|
10
10
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
11
11
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
12
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
13
15
|
export var getRuntimeConfig = function (config) {
|
|
14
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
17
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
18
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
15
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new
|
|
20
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
21
|
+
switch (_a.label) {
|
|
22
|
+
case 0: return [4, defaultConfigProvider()];
|
|
23
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
24
|
+
}
|
|
25
|
+
}); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
17
26
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,19 +1,28 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
4
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
5
5
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
6
6
|
import { Hash } from "@aws-sdk/hash-node";
|
|
7
|
-
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
7
|
+
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
9
|
-
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
9
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
10
10
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
11
11
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
12
12
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
13
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
16
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
15
17
|
export var getRuntimeConfig = function (config) {
|
|
16
18
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
19
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
17
21
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
18
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new
|
|
22
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
23
|
+
switch (_a.label) {
|
|
24
|
+
case 0: return [4, defaultConfigProvider()];
|
|
25
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
26
|
+
}
|
|
27
|
+
}); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
19
28
|
};
|
|
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
|
|
|
4
4
|
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
-
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
7
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
8
|
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { AcceptMatchCommandInput, AcceptMatchCommandOutput } from "./commands/AcceptMatchCommand";
|
|
10
10
|
import { ClaimGameServerCommandInput, ClaimGameServerCommandOutput } from "./commands/ClaimGameServerCommand";
|
|
@@ -203,6 +203,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
203
203
|
* @internal
|
|
204
204
|
*/
|
|
205
205
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
206
|
+
/**
|
|
207
|
+
* The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
208
|
+
*/
|
|
209
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
206
210
|
}
|
|
207
211
|
declare type GameLiftClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
208
212
|
/**
|
|
@@ -43,12 +43,6 @@ export interface InternalServiceException extends __SmithyException, $MetadataBe
|
|
|
43
43
|
$fault: "server";
|
|
44
44
|
Message?: string;
|
|
45
45
|
}
|
|
46
|
-
export declare namespace InternalServiceException {
|
|
47
|
-
/**
|
|
48
|
-
* @internal
|
|
49
|
-
*/
|
|
50
|
-
const filterSensitiveLog: (obj: InternalServiceException) => any;
|
|
51
|
-
}
|
|
52
46
|
/**
|
|
53
47
|
* <p>One or more parameter values in the request are invalid. Correct the invalid
|
|
54
48
|
* parameter values before retrying.</p>
|
|
@@ -58,12 +52,6 @@ export interface InvalidRequestException extends __SmithyException, $MetadataBea
|
|
|
58
52
|
$fault: "client";
|
|
59
53
|
Message?: string;
|
|
60
54
|
}
|
|
61
|
-
export declare namespace InvalidRequestException {
|
|
62
|
-
/**
|
|
63
|
-
* @internal
|
|
64
|
-
*/
|
|
65
|
-
const filterSensitiveLog: (obj: InvalidRequestException) => any;
|
|
66
|
-
}
|
|
67
55
|
/**
|
|
68
56
|
* <p>A service resource associated with the request could not be found. Clients should
|
|
69
57
|
* not retry such requests.</p>
|
|
@@ -73,12 +61,6 @@ export interface NotFoundException extends __SmithyException, $MetadataBearer {
|
|
|
73
61
|
$fault: "client";
|
|
74
62
|
Message?: string;
|
|
75
63
|
}
|
|
76
|
-
export declare namespace NotFoundException {
|
|
77
|
-
/**
|
|
78
|
-
* @internal
|
|
79
|
-
*/
|
|
80
|
-
const filterSensitiveLog: (obj: NotFoundException) => any;
|
|
81
|
-
}
|
|
82
64
|
/**
|
|
83
65
|
* <p>The requested operation is not supported in the Region specified.</p>
|
|
84
66
|
*/
|
|
@@ -87,12 +69,6 @@ export interface UnsupportedRegionException extends __SmithyException, $Metadata
|
|
|
87
69
|
$fault: "client";
|
|
88
70
|
Message?: string;
|
|
89
71
|
}
|
|
90
|
-
export declare namespace UnsupportedRegionException {
|
|
91
|
-
/**
|
|
92
|
-
* @internal
|
|
93
|
-
*/
|
|
94
|
-
const filterSensitiveLog: (obj: UnsupportedRegionException) => any;
|
|
95
|
-
}
|
|
96
72
|
export declare enum RoutingStrategyType {
|
|
97
73
|
SIMPLE = "SIMPLE",
|
|
98
74
|
TERMINAL = "TERMINAL"
|
|
@@ -550,12 +526,6 @@ export interface ConflictException extends __SmithyException, $MetadataBearer {
|
|
|
550
526
|
$fault: "client";
|
|
551
527
|
Message?: string;
|
|
552
528
|
}
|
|
553
|
-
export declare namespace ConflictException {
|
|
554
|
-
/**
|
|
555
|
-
* @internal
|
|
556
|
-
*/
|
|
557
|
-
const filterSensitiveLog: (obj: ConflictException) => any;
|
|
558
|
-
}
|
|
559
529
|
/**
|
|
560
530
|
* <p>The specified game server group has no available game servers to fulfill a
|
|
561
531
|
* <code>ClaimGameServer</code> request. Clients can retry such requests immediately
|
|
@@ -568,12 +538,6 @@ export interface OutOfCapacityException extends __SmithyException, $MetadataBear
|
|
|
568
538
|
$fault: "client";
|
|
569
539
|
Message?: string;
|
|
570
540
|
}
|
|
571
|
-
export declare namespace OutOfCapacityException {
|
|
572
|
-
/**
|
|
573
|
-
* @internal
|
|
574
|
-
*/
|
|
575
|
-
const filterSensitiveLog: (obj: OutOfCapacityException) => any;
|
|
576
|
-
}
|
|
577
541
|
/**
|
|
578
542
|
* <p>The client failed authentication. Clients should not retry such requests.</p>
|
|
579
543
|
*/
|
|
@@ -582,12 +546,6 @@ export interface UnauthorizedException extends __SmithyException, $MetadataBeare
|
|
|
582
546
|
$fault: "client";
|
|
583
547
|
Message?: string;
|
|
584
548
|
}
|
|
585
|
-
export declare namespace UnauthorizedException {
|
|
586
|
-
/**
|
|
587
|
-
* @internal
|
|
588
|
-
*/
|
|
589
|
-
const filterSensitiveLog: (obj: UnauthorizedException) => any;
|
|
590
|
-
}
|
|
591
549
|
export declare enum ComparisonOperatorType {
|
|
592
550
|
GreaterThanOrEqualToThreshold = "GreaterThanOrEqualToThreshold",
|
|
593
551
|
GreaterThanThreshold = "GreaterThanThreshold",
|
|
@@ -698,12 +656,6 @@ export interface LimitExceededException extends __SmithyException, $MetadataBear
|
|
|
698
656
|
$fault: "client";
|
|
699
657
|
Message?: string;
|
|
700
658
|
}
|
|
701
|
-
export declare namespace LimitExceededException {
|
|
702
|
-
/**
|
|
703
|
-
* @internal
|
|
704
|
-
*/
|
|
705
|
-
const filterSensitiveLog: (obj: LimitExceededException) => any;
|
|
706
|
-
}
|
|
707
659
|
/**
|
|
708
660
|
* <p>
|
|
709
661
|
* The requested tagging operation did not succeed. This may be due to invalid tag format
|
|
@@ -715,12 +667,6 @@ export interface TaggingFailedException extends __SmithyException, $MetadataBear
|
|
|
715
667
|
$fault: "client";
|
|
716
668
|
Message?: string;
|
|
717
669
|
}
|
|
718
|
-
export declare namespace TaggingFailedException {
|
|
719
|
-
/**
|
|
720
|
-
* @internal
|
|
721
|
-
*/
|
|
722
|
-
const filterSensitiveLog: (obj: TaggingFailedException) => any;
|
|
723
|
-
}
|
|
724
670
|
/**
|
|
725
671
|
* <p>The location in Amazon S3 where build or script files are stored for access by Amazon GameLift. This
|
|
726
672
|
* location is specified in <a>CreateBuild</a>, <a>CreateScript</a>,
|
|
@@ -1499,12 +1445,6 @@ export interface InvalidFleetStatusException extends __SmithyException, $Metadat
|
|
|
1499
1445
|
$fault: "client";
|
|
1500
1446
|
Message?: string;
|
|
1501
1447
|
}
|
|
1502
|
-
export declare namespace InvalidFleetStatusException {
|
|
1503
|
-
/**
|
|
1504
|
-
* @internal
|
|
1505
|
-
*/
|
|
1506
|
-
const filterSensitiveLog: (obj: InvalidFleetStatusException) => any;
|
|
1507
|
-
}
|
|
1508
1448
|
/**
|
|
1509
1449
|
* <p>
|
|
1510
1450
|
* <b>This data type is used with the GameLift FleetIQ and game server groups.</b>
|
|
@@ -2205,12 +2145,6 @@ export interface FleetCapacityExceededException extends __SmithyException, $Meta
|
|
|
2205
2145
|
$fault: "client";
|
|
2206
2146
|
Message?: string;
|
|
2207
2147
|
}
|
|
2208
|
-
export declare namespace FleetCapacityExceededException {
|
|
2209
|
-
/**
|
|
2210
|
-
* @internal
|
|
2211
|
-
*/
|
|
2212
|
-
const filterSensitiveLog: (obj: FleetCapacityExceededException) => any;
|
|
2213
|
-
}
|
|
2214
2148
|
/**
|
|
2215
2149
|
* <p>A game session with this custom ID string already exists in this fleet. Resolve
|
|
2216
2150
|
* this conflict before retrying this request.</p>
|
|
@@ -2220,12 +2154,6 @@ export interface IdempotentParameterMismatchException extends __SmithyException,
|
|
|
2220
2154
|
$fault: "client";
|
|
2221
2155
|
Message?: string;
|
|
2222
2156
|
}
|
|
2223
|
-
export declare namespace IdempotentParameterMismatchException {
|
|
2224
|
-
/**
|
|
2225
|
-
* @internal
|
|
2226
|
-
*/
|
|
2227
|
-
const filterSensitiveLog: (obj: IdempotentParameterMismatchException) => any;
|
|
2228
|
-
}
|
|
2229
2157
|
/**
|
|
2230
2158
|
* <p>The service is unable to resolve the routing for a particular alias because it has
|
|
2231
2159
|
* a terminal <a>RoutingStrategy</a> associated with it. The message returned in
|
|
@@ -2238,12 +2166,6 @@ export interface TerminalRoutingStrategyException extends __SmithyException, $Me
|
|
|
2238
2166
|
$fault: "client";
|
|
2239
2167
|
Message?: string;
|
|
2240
2168
|
}
|
|
2241
|
-
export declare namespace TerminalRoutingStrategyException {
|
|
2242
|
-
/**
|
|
2243
|
-
* @internal
|
|
2244
|
-
*/
|
|
2245
|
-
const filterSensitiveLog: (obj: TerminalRoutingStrategyException) => any;
|
|
2246
|
-
}
|
|
2247
2169
|
/**
|
|
2248
2170
|
* <p>A fleet or alias designated in a game session queue. Queues fulfill requests for new
|
|
2249
2171
|
* game sessions by placing a new game session on any of the queue's destinations. </p>
|
|
@@ -3080,12 +3002,6 @@ export interface GameSessionFullException extends __SmithyException, $MetadataBe
|
|
|
3080
3002
|
$fault: "client";
|
|
3081
3003
|
Message?: string;
|
|
3082
3004
|
}
|
|
3083
|
-
export declare namespace GameSessionFullException {
|
|
3084
|
-
/**
|
|
3085
|
-
* @internal
|
|
3086
|
-
*/
|
|
3087
|
-
const filterSensitiveLog: (obj: GameSessionFullException) => any;
|
|
3088
|
-
}
|
|
3089
3005
|
/**
|
|
3090
3006
|
* <p>The requested operation would cause a conflict with the current state of a resource
|
|
3091
3007
|
* associated with the request and/or the game instance. Resolve the conflict before
|
|
@@ -3096,12 +3012,6 @@ export interface InvalidGameSessionStatusException extends __SmithyException, $M
|
|
|
3096
3012
|
$fault: "client";
|
|
3097
3013
|
Message?: string;
|
|
3098
3014
|
}
|
|
3099
|
-
export declare namespace InvalidGameSessionStatusException {
|
|
3100
|
-
/**
|
|
3101
|
-
* @internal
|
|
3102
|
-
*/
|
|
3103
|
-
const filterSensitiveLog: (obj: InvalidGameSessionStatusException) => any;
|
|
3104
|
-
}
|
|
3105
3015
|
/**
|
|
3106
3016
|
* <p>Represents the input for a request operation.</p>
|
|
3107
3017
|
*/
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
|
|
1
|
+
import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
|
|
2
2
|
import { GameLiftClientConfig } from "./GameLiftClient";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
6
6
|
export declare const getRuntimeConfig: (config: GameLiftClientConfig) => {
|
|
7
7
|
runtime: string;
|
|
8
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
8
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
9
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
10
11
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
@@ -12,7 +13,7 @@ export declare const getRuntimeConfig: (config: GameLiftClientConfig) => {
|
|
|
12
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
13
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
14
15
|
region: string | import("@aws-sdk/types").Provider<any>;
|
|
15
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
16
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
16
17
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
17
18
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
18
19
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
|
|
1
|
+
import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
|
|
2
2
|
import { GameLiftClientConfig } from "./GameLiftClient";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
6
6
|
export declare const getRuntimeConfig: (config: GameLiftClientConfig) => {
|
|
7
7
|
runtime: string;
|
|
8
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
8
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
9
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
10
11
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
11
|
-
credentialDefaultProvider: import("@aws-sdk/
|
|
12
|
+
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
12
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
13
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
14
15
|
region: string | import("@aws-sdk/types").Provider<string>;
|
|
15
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
16
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
16
17
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
17
18
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
18
19
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -25,6 +25,7 @@ export declare const getRuntimeConfig: (config: GameLiftClientConfig) => {
|
|
|
25
25
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
26
26
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
27
27
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
28
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
28
29
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
29
30
|
tls?: boolean | undefined;
|
|
30
31
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
|
|
|
4
4
|
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
-
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
7
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
8
|
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { AcceptMatchCommandInput, AcceptMatchCommandOutput } from "./commands/AcceptMatchCommand";
|
|
10
10
|
import { ClaimGameServerCommandInput, ClaimGameServerCommandOutput } from "./commands/ClaimGameServerCommand";
|
|
@@ -146,6 +146,8 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
146
146
|
regionInfoProvider?: RegionInfoProvider;
|
|
147
147
|
|
|
148
148
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
149
|
+
|
|
150
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
149
151
|
}
|
|
150
152
|
declare type GameLiftClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
151
153
|
|
|
@@ -25,40 +25,24 @@ export interface InternalServiceException extends __SmithyException, $MetadataBe
|
|
|
25
25
|
$fault: "server";
|
|
26
26
|
Message?: string;
|
|
27
27
|
}
|
|
28
|
-
export declare namespace InternalServiceException {
|
|
29
|
-
|
|
30
|
-
const filterSensitiveLog: (obj: InternalServiceException) => any;
|
|
31
|
-
}
|
|
32
28
|
|
|
33
29
|
export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
|
|
34
30
|
name: "InvalidRequestException";
|
|
35
31
|
$fault: "client";
|
|
36
32
|
Message?: string;
|
|
37
33
|
}
|
|
38
|
-
export declare namespace InvalidRequestException {
|
|
39
|
-
|
|
40
|
-
const filterSensitiveLog: (obj: InvalidRequestException) => any;
|
|
41
|
-
}
|
|
42
34
|
|
|
43
35
|
export interface NotFoundException extends __SmithyException, $MetadataBearer {
|
|
44
36
|
name: "NotFoundException";
|
|
45
37
|
$fault: "client";
|
|
46
38
|
Message?: string;
|
|
47
39
|
}
|
|
48
|
-
export declare namespace NotFoundException {
|
|
49
|
-
|
|
50
|
-
const filterSensitiveLog: (obj: NotFoundException) => any;
|
|
51
|
-
}
|
|
52
40
|
|
|
53
41
|
export interface UnsupportedRegionException extends __SmithyException, $MetadataBearer {
|
|
54
42
|
name: "UnsupportedRegionException";
|
|
55
43
|
$fault: "client";
|
|
56
44
|
Message?: string;
|
|
57
45
|
}
|
|
58
|
-
export declare namespace UnsupportedRegionException {
|
|
59
|
-
|
|
60
|
-
const filterSensitiveLog: (obj: UnsupportedRegionException) => any;
|
|
61
|
-
}
|
|
62
46
|
export declare enum RoutingStrategyType {
|
|
63
47
|
SIMPLE = "SIMPLE",
|
|
64
48
|
TERMINAL = "TERMINAL"
|
|
@@ -244,30 +228,18 @@ export interface ConflictException extends __SmithyException, $MetadataBearer {
|
|
|
244
228
|
$fault: "client";
|
|
245
229
|
Message?: string;
|
|
246
230
|
}
|
|
247
|
-
export declare namespace ConflictException {
|
|
248
|
-
|
|
249
|
-
const filterSensitiveLog: (obj: ConflictException) => any;
|
|
250
|
-
}
|
|
251
231
|
|
|
252
232
|
export interface OutOfCapacityException extends __SmithyException, $MetadataBearer {
|
|
253
233
|
name: "OutOfCapacityException";
|
|
254
234
|
$fault: "client";
|
|
255
235
|
Message?: string;
|
|
256
236
|
}
|
|
257
|
-
export declare namespace OutOfCapacityException {
|
|
258
|
-
|
|
259
|
-
const filterSensitiveLog: (obj: OutOfCapacityException) => any;
|
|
260
|
-
}
|
|
261
237
|
|
|
262
238
|
export interface UnauthorizedException extends __SmithyException, $MetadataBearer {
|
|
263
239
|
name: "UnauthorizedException";
|
|
264
240
|
$fault: "client";
|
|
265
241
|
Message?: string;
|
|
266
242
|
}
|
|
267
|
-
export declare namespace UnauthorizedException {
|
|
268
|
-
|
|
269
|
-
const filterSensitiveLog: (obj: UnauthorizedException) => any;
|
|
270
|
-
}
|
|
271
243
|
export declare enum ComparisonOperatorType {
|
|
272
244
|
GreaterThanOrEqualToThreshold = "GreaterThanOrEqualToThreshold",
|
|
273
245
|
GreaterThanThreshold = "GreaterThanThreshold",
|
|
@@ -315,20 +287,12 @@ export interface LimitExceededException extends __SmithyException, $MetadataBear
|
|
|
315
287
|
$fault: "client";
|
|
316
288
|
Message?: string;
|
|
317
289
|
}
|
|
318
|
-
export declare namespace LimitExceededException {
|
|
319
|
-
|
|
320
|
-
const filterSensitiveLog: (obj: LimitExceededException) => any;
|
|
321
|
-
}
|
|
322
290
|
|
|
323
291
|
export interface TaggingFailedException extends __SmithyException, $MetadataBearer {
|
|
324
292
|
name: "TaggingFailedException";
|
|
325
293
|
$fault: "client";
|
|
326
294
|
Message?: string;
|
|
327
295
|
}
|
|
328
|
-
export declare namespace TaggingFailedException {
|
|
329
|
-
|
|
330
|
-
const filterSensitiveLog: (obj: TaggingFailedException) => any;
|
|
331
|
-
}
|
|
332
296
|
|
|
333
297
|
export interface S3Location {
|
|
334
298
|
|
|
@@ -614,10 +578,6 @@ export interface InvalidFleetStatusException extends __SmithyException, $Metadat
|
|
|
614
578
|
$fault: "client";
|
|
615
579
|
Message?: string;
|
|
616
580
|
}
|
|
617
|
-
export declare namespace InvalidFleetStatusException {
|
|
618
|
-
|
|
619
|
-
const filterSensitiveLog: (obj: InvalidFleetStatusException) => any;
|
|
620
|
-
}
|
|
621
581
|
|
|
622
582
|
export interface TargetTrackingConfiguration {
|
|
623
583
|
|
|
@@ -858,30 +818,18 @@ export interface FleetCapacityExceededException extends __SmithyException, $Meta
|
|
|
858
818
|
$fault: "client";
|
|
859
819
|
Message?: string;
|
|
860
820
|
}
|
|
861
|
-
export declare namespace FleetCapacityExceededException {
|
|
862
|
-
|
|
863
|
-
const filterSensitiveLog: (obj: FleetCapacityExceededException) => any;
|
|
864
|
-
}
|
|
865
821
|
|
|
866
822
|
export interface IdempotentParameterMismatchException extends __SmithyException, $MetadataBearer {
|
|
867
823
|
name: "IdempotentParameterMismatchException";
|
|
868
824
|
$fault: "client";
|
|
869
825
|
Message?: string;
|
|
870
826
|
}
|
|
871
|
-
export declare namespace IdempotentParameterMismatchException {
|
|
872
|
-
|
|
873
|
-
const filterSensitiveLog: (obj: IdempotentParameterMismatchException) => any;
|
|
874
|
-
}
|
|
875
827
|
|
|
876
828
|
export interface TerminalRoutingStrategyException extends __SmithyException, $MetadataBearer {
|
|
877
829
|
name: "TerminalRoutingStrategyException";
|
|
878
830
|
$fault: "client";
|
|
879
831
|
Message?: string;
|
|
880
832
|
}
|
|
881
|
-
export declare namespace TerminalRoutingStrategyException {
|
|
882
|
-
|
|
883
|
-
const filterSensitiveLog: (obj: TerminalRoutingStrategyException) => any;
|
|
884
|
-
}
|
|
885
833
|
|
|
886
834
|
export interface GameSessionQueueDestination {
|
|
887
835
|
|
|
@@ -1180,20 +1128,12 @@ export interface GameSessionFullException extends __SmithyException, $MetadataBe
|
|
|
1180
1128
|
$fault: "client";
|
|
1181
1129
|
Message?: string;
|
|
1182
1130
|
}
|
|
1183
|
-
export declare namespace GameSessionFullException {
|
|
1184
|
-
|
|
1185
|
-
const filterSensitiveLog: (obj: GameSessionFullException) => any;
|
|
1186
|
-
}
|
|
1187
1131
|
|
|
1188
1132
|
export interface InvalidGameSessionStatusException extends __SmithyException, $MetadataBearer {
|
|
1189
1133
|
name: "InvalidGameSessionStatusException";
|
|
1190
1134
|
$fault: "client";
|
|
1191
1135
|
Message?: string;
|
|
1192
1136
|
}
|
|
1193
|
-
export declare namespace InvalidGameSessionStatusException {
|
|
1194
|
-
|
|
1195
|
-
const filterSensitiveLog: (obj: InvalidGameSessionStatusException) => any;
|
|
1196
|
-
}
|
|
1197
1137
|
|
|
1198
1138
|
export interface CreatePlayerSessionsInput {
|
|
1199
1139
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
|
|
1
|
+
import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
|
|
2
2
|
import { GameLiftClientConfig } from "./GameLiftClient";
|
|
3
3
|
|
|
4
4
|
export declare const getRuntimeConfig: (config: GameLiftClientConfig) => {
|
|
5
5
|
runtime: string;
|
|
6
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
6
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
7
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
8
9
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
@@ -10,7 +11,7 @@ export declare const getRuntimeConfig: (config: GameLiftClientConfig) => {
|
|
|
10
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
11
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
12
13
|
region: string | import("@aws-sdk/types").Provider<any>;
|
|
13
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
14
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
14
15
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
15
16
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
16
17
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
|
|
1
|
+
import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
|
|
2
2
|
import { GameLiftClientConfig } from "./GameLiftClient";
|
|
3
3
|
|
|
4
4
|
export declare const getRuntimeConfig: (config: GameLiftClientConfig) => {
|
|
5
5
|
runtime: string;
|
|
6
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
6
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
7
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
8
9
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
9
|
-
credentialDefaultProvider: import("@aws-sdk/
|
|
10
|
+
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
10
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
11
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
12
13
|
region: string | import("@aws-sdk/types").Provider<string>;
|
|
13
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
14
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
14
15
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
15
16
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
16
17
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -23,6 +23,7 @@ export declare const getRuntimeConfig: (config: GameLiftClientConfig) => {
|
|
|
23
23
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
24
24
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
25
25
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
26
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
26
27
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
27
28
|
tls?: boolean | undefined;
|
|
28
29
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
package/package.json
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
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.
|
|
4
|
+
"version": "3.47.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
7
|
-
"build:cjs": "tsc -p tsconfig.json",
|
|
7
|
+
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
8
8
|
"build:docs": "typedoc",
|
|
9
9
|
"build:es": "tsc -p tsconfig.es.json",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
11
11
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
|
-
"clean": "
|
|
13
|
-
"clean:dist": "rimraf ./dist-*",
|
|
14
|
-
"clean:docs": "rimraf ./docs"
|
|
12
|
+
"clean": "rimraf ./dist-*"
|
|
15
13
|
},
|
|
16
14
|
"main": "./dist-cjs/index.js",
|
|
17
15
|
"types": "./dist-types/index.d.ts",
|
|
@@ -20,38 +18,40 @@
|
|
|
20
18
|
"dependencies": {
|
|
21
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
22
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/config-resolver": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
27
|
-
"@aws-sdk/hash-node": "3.
|
|
28
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
29
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
30
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
31
|
-
"@aws-sdk/middleware-logger": "3.
|
|
32
|
-
"@aws-sdk/middleware-retry": "3.
|
|
33
|
-
"@aws-sdk/middleware-serde": "3.
|
|
34
|
-
"@aws-sdk/middleware-signing": "3.
|
|
35
|
-
"@aws-sdk/middleware-stack": "3.
|
|
36
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
37
|
-
"@aws-sdk/node-config-provider": "3.
|
|
38
|
-
"@aws-sdk/node-http-handler": "3.
|
|
39
|
-
"@aws-sdk/protocol-http": "3.
|
|
40
|
-
"@aws-sdk/smithy-client": "3.
|
|
41
|
-
"@aws-sdk/types": "3.
|
|
42
|
-
"@aws-sdk/url-parser": "3.
|
|
43
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
44
|
-
"@aws-sdk/util-base64-node": "3.
|
|
45
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
46
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
47
|
-
"@aws-sdk/util-
|
|
48
|
-
"@aws-sdk/util-
|
|
49
|
-
"@aws-sdk/util-
|
|
50
|
-
"@aws-sdk/util-
|
|
21
|
+
"@aws-sdk/client-sts": "3.47.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.47.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.47.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.47.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.47.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.47.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.47.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.47.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.47.0",
|
|
30
|
+
"@aws-sdk/middleware-retry": "3.47.0",
|
|
31
|
+
"@aws-sdk/middleware-serde": "3.47.0",
|
|
32
|
+
"@aws-sdk/middleware-signing": "3.47.0",
|
|
33
|
+
"@aws-sdk/middleware-stack": "3.47.0",
|
|
34
|
+
"@aws-sdk/middleware-user-agent": "3.47.0",
|
|
35
|
+
"@aws-sdk/node-config-provider": "3.47.0",
|
|
36
|
+
"@aws-sdk/node-http-handler": "3.47.0",
|
|
37
|
+
"@aws-sdk/protocol-http": "3.47.0",
|
|
38
|
+
"@aws-sdk/smithy-client": "3.47.0",
|
|
39
|
+
"@aws-sdk/types": "3.47.0",
|
|
40
|
+
"@aws-sdk/url-parser": "3.47.0",
|
|
41
|
+
"@aws-sdk/util-base64-browser": "3.47.0",
|
|
42
|
+
"@aws-sdk/util-base64-node": "3.47.0",
|
|
43
|
+
"@aws-sdk/util-body-length-browser": "3.47.0",
|
|
44
|
+
"@aws-sdk/util-body-length-node": "3.47.0",
|
|
45
|
+
"@aws-sdk/util-defaults-mode-browser": "3.47.0",
|
|
46
|
+
"@aws-sdk/util-defaults-mode-node": "3.47.0",
|
|
47
|
+
"@aws-sdk/util-user-agent-browser": "3.47.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-node": "3.47.0",
|
|
49
|
+
"@aws-sdk/util-utf8-browser": "3.47.0",
|
|
50
|
+
"@aws-sdk/util-utf8-node": "3.47.0",
|
|
51
51
|
"tslib": "^2.3.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
54
|
+
"@aws-sdk/service-client-documentation-generator": "3.47.0",
|
|
55
55
|
"@types/node": "^12.7.5"
|
|
56
56
|
},
|
|
57
57
|
"engines": {
|