Skip to content

Commit 2c85ed8

Browse files
author
awstools
committed
feat(client-gamelift): Amazon GameLift adds support for shared credentials, which allows applications that are deployed on managed EC2 fleets to interact with other AWS resources.
1 parent 8f6dca1 commit 2c85ed8

29 files changed

+715
-141
lines changed

clients/client-gamelift/src/commands/AcceptMatchCommand.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
} from "@smithy/types";
1616

1717
import { GameLiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GameLiftClient";
18-
import { AcceptMatchInput, AcceptMatchOutput } from "../models/models_0";
18+
import { AcceptMatchInput, AcceptMatchInputFilterSensitiveLog, AcceptMatchOutput } from "../models/models_0";
1919
import { de_AcceptMatchCommand, se_AcceptMatchCommand } from "../protocols/Aws_json1_1";
2020

2121
/**
@@ -80,7 +80,7 @@ export interface AcceptMatchCommandOutput extends AcceptMatchOutput, __MetadataB
8080
* const client = new GameLiftClient(config);
8181
* const input = { // AcceptMatchInput
8282
* TicketId: "STRING_VALUE", // required
83-
* PlayerIds: [ // StringList // required
83+
* PlayerIds: [ // PlayerIdsForAcceptMatch // required
8484
* "STRING_VALUE",
8585
* ],
8686
* AcceptanceType: "ACCEPT" || "REJECT", // required
@@ -161,7 +161,7 @@ export class AcceptMatchCommand extends $Command<
161161
logger,
162162
clientName,
163163
commandName,
164-
inputFilterSensitiveLog: (_: any) => _,
164+
inputFilterSensitiveLog: AcceptMatchInputFilterSensitiveLog,
165165
outputFilterSensitiveLog: (_: any) => _,
166166
[SMITHY_CONTEXT_KEY]: {
167167
service: "GameLift",

clients/client-gamelift/src/commands/CreateFleetCommand.ts

+9-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
} from "@smithy/types";
1616

1717
import { GameLiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GameLiftClient";
18-
import { CreateFleetInput, CreateFleetOutput } from "../models/models_0";
18+
import { CreateFleetInput, CreateFleetInputFilterSensitiveLog, CreateFleetOutput } from "../models/models_0";
1919
import { de_CreateFleetCommand, se_CreateFleetCommand } from "../protocols/Aws_json1_1";
2020

2121
/**
@@ -59,7 +59,11 @@ export interface CreateFleetCommandOutput extends CreateFleetOutput, __MetadataB
5959
* when you're finished. </p>
6060
* <p>If successful, this operation creates a new Fleet resource and places it in
6161
* <code>NEW</code> status, which prompts Amazon GameLift to initiate the <a href="https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-creating-all.html#fleets-creation-workflow">fleet creation
62-
* workflow</a>.</p>
62+
* workflow</a>. You can track fleet creation by checking fleet status using <a>DescribeFleetAttributes</a> and <a>DescribeFleetLocationAttributes</a>/, or by monitoring fleet creation events
63+
* using <a>DescribeFleetEvents</a>. </p>
64+
* <p>When the fleet status changes to <code>ACTIVE</code>, you can enable automatic scaling
65+
* with <a>PutScalingPolicy</a> and set capacity for the home Region with <a>UpdateFleetCapacity</a>. When the status of each remote location reaches
66+
* <code>ACTIVE</code>, you can set capacity by location using <a>UpdateFleetCapacity</a>.</p>
6367
* <p>
6468
* <b>Learn more</b>
6569
* </p>
@@ -139,6 +143,7 @@ export interface CreateFleetCommandOutput extends CreateFleetOutput, __MetadataB
139143
* AnywhereConfiguration: { // AnywhereConfiguration
140144
* Cost: "STRING_VALUE", // required
141145
* },
146+
* InstanceRoleCredentialsProvider: "SHARED_CREDENTIAL_FILE",
142147
* };
143148
* const command = new CreateFleetCommand(input);
144149
* const response = await client.send(command);
@@ -182,6 +187,7 @@ export interface CreateFleetCommandOutput extends CreateFleetOutput, __MetadataB
182187
* // AnywhereConfiguration: { // AnywhereConfiguration
183188
* // Cost: "STRING_VALUE", // required
184189
* // },
190+
* // InstanceRoleCredentialsProvider: "SHARED_CREDENTIAL_FILE",
185191
* // },
186192
* // LocationStates: [ // LocationStateList
187193
* // { // LocationState
@@ -281,7 +287,7 @@ export class CreateFleetCommand extends $Command<
281287
logger,
282288
clientName,
283289
commandName,
284-
inputFilterSensitiveLog: (_: any) => _,
290+
inputFilterSensitiveLog: CreateFleetInputFilterSensitiveLog,
285291
outputFilterSensitiveLog: (_: any) => _,
286292
[SMITHY_CONTEXT_KEY]: {
287293
service: "GameLift",

clients/client-gamelift/src/commands/CreateGameSessionCommand.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ import {
1515
} from "@smithy/types";
1616

1717
import { GameLiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GameLiftClient";
18-
import { CreateGameSessionInput, CreateGameSessionOutput } from "../models/models_0";
18+
import {
19+
CreateGameSessionInput,
20+
CreateGameSessionOutput,
21+
CreateGameSessionOutputFilterSensitiveLog,
22+
} from "../models/models_0";
1923
import { de_CreateGameSessionCommand, se_CreateGameSessionCommand } from "../protocols/Aws_json1_1";
2024

2125
/**
@@ -243,7 +247,7 @@ export class CreateGameSessionCommand extends $Command<
243247
clientName,
244248
commandName,
245249
inputFilterSensitiveLog: (_: any) => _,
246-
outputFilterSensitiveLog: (_: any) => _,
250+
outputFilterSensitiveLog: CreateGameSessionOutputFilterSensitiveLog,
247251
[SMITHY_CONTEXT_KEY]: {
248252
service: "GameLift",
249253
operation: "CreateGameSession",

clients/client-gamelift/src/commands/CreatePlayerSessionCommand.ts

+8-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ import {
1515
} from "@smithy/types";
1616

1717
import { GameLiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GameLiftClient";
18-
import { CreatePlayerSessionInput, CreatePlayerSessionOutput } from "../models/models_0";
18+
import {
19+
CreatePlayerSessionInput,
20+
CreatePlayerSessionInputFilterSensitiveLog,
21+
CreatePlayerSessionOutput,
22+
CreatePlayerSessionOutputFilterSensitiveLog,
23+
} from "../models/models_0";
1924
import { de_CreatePlayerSessionCommand, se_CreatePlayerSessionCommand } from "../protocols/Aws_json1_1";
2025

2126
/**
@@ -174,8 +179,8 @@ export class CreatePlayerSessionCommand extends $Command<
174179
logger,
175180
clientName,
176181
commandName,
177-
inputFilterSensitiveLog: (_: any) => _,
178-
outputFilterSensitiveLog: (_: any) => _,
182+
inputFilterSensitiveLog: CreatePlayerSessionInputFilterSensitiveLog,
183+
outputFilterSensitiveLog: CreatePlayerSessionOutputFilterSensitiveLog,
179184
[SMITHY_CONTEXT_KEY]: {
180185
service: "GameLift",
181186
operation: "CreatePlayerSession",

clients/client-gamelift/src/commands/CreatePlayerSessionsCommand.ts

+8-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ import {
1515
} from "@smithy/types";
1616

1717
import { GameLiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GameLiftClient";
18-
import { CreatePlayerSessionsInput, CreatePlayerSessionsOutput } from "../models/models_0";
18+
import {
19+
CreatePlayerSessionsInput,
20+
CreatePlayerSessionsInputFilterSensitiveLog,
21+
CreatePlayerSessionsOutput,
22+
CreatePlayerSessionsOutputFilterSensitiveLog,
23+
} from "../models/models_0";
1924
import { de_CreatePlayerSessionsCommand, se_CreatePlayerSessionsCommand } from "../protocols/Aws_json1_1";
2025

2126
/**
@@ -181,8 +186,8 @@ export class CreatePlayerSessionsCommand extends $Command<
181186
logger,
182187
clientName,
183188
commandName,
184-
inputFilterSensitiveLog: (_: any) => _,
185-
outputFilterSensitiveLog: (_: any) => _,
189+
inputFilterSensitiveLog: CreatePlayerSessionsInputFilterSensitiveLog,
190+
outputFilterSensitiveLog: CreatePlayerSessionsOutputFilterSensitiveLog,
186191
[SMITHY_CONTEXT_KEY]: {
187192
service: "GameLift",
188193
operation: "CreatePlayerSessions",

clients/client-gamelift/src/commands/DeleteLocationCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export interface DeleteLocationCommandOutput extends DeleteLocationOutput, __Met
3939
* @public
4040
* <p>Deletes a custom location.</p>
4141
* <p>Before deleting a custom location, review any fleets currently using the custom
42-
* location and deregister the location if it is in use. For more information see, <a href="https://docs.aws.amazon.com/gamelift/latest/apireference/API_DeregisterCompute.html">DeregisterCompute</a>.</p>
42+
* location and deregister the location if it is in use. For more information, see <a href="https://docs.aws.amazon.com/gamelift/latest/apireference/API_DeregisterCompute.html">DeregisterCompute</a>.</p>
4343
* @example
4444
* Use a bare-bones client and the command you need to make an API call.
4545
* ```javascript

clients/client-gamelift/src/commands/DescribeComputeCommand.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ import {
1515
} from "@smithy/types";
1616

1717
import { GameLiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GameLiftClient";
18-
import { DescribeComputeInput, DescribeComputeOutput } from "../models/models_0";
18+
import {
19+
DescribeComputeInput,
20+
DescribeComputeOutput,
21+
DescribeComputeOutputFilterSensitiveLog,
22+
} from "../models/models_0";
1923
import { de_DescribeComputeCommand, se_DescribeComputeCommand } from "../protocols/Aws_json1_1";
2024

2125
/**
@@ -147,7 +151,7 @@ export class DescribeComputeCommand extends $Command<
147151
clientName,
148152
commandName,
149153
inputFilterSensitiveLog: (_: any) => _,
150-
outputFilterSensitiveLog: (_: any) => _,
154+
outputFilterSensitiveLog: DescribeComputeOutputFilterSensitiveLog,
151155
[SMITHY_CONTEXT_KEY]: {
152156
service: "GameLift",
153157
operation: "DescribeCompute",

clients/client-gamelift/src/commands/DescribeFleetAttributesCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ export interface DescribeFleetAttributesCommandOutput extends DescribeFleetAttri
121121
* // AnywhereConfiguration: { // AnywhereConfiguration
122122
* // Cost: "STRING_VALUE", // required
123123
* // },
124+
* // InstanceRoleCredentialsProvider: "SHARED_CREDENTIAL_FILE",
124125
* // },
125126
* // ],
126127
* // NextToken: "STRING_VALUE",

clients/client-gamelift/src/commands/DescribeFleetPortSettingsCommand.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ import {
1515
} from "@smithy/types";
1616

1717
import { GameLiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GameLiftClient";
18-
import { DescribeFleetPortSettingsInput, DescribeFleetPortSettingsOutput } from "../models/models_0";
18+
import {
19+
DescribeFleetPortSettingsInput,
20+
DescribeFleetPortSettingsOutput,
21+
DescribeFleetPortSettingsOutputFilterSensitiveLog,
22+
} from "../models/models_0";
1923
import { de_DescribeFleetPortSettingsCommand, se_DescribeFleetPortSettingsCommand } from "../protocols/Aws_json1_1";
2024

2125
/**
@@ -168,7 +172,7 @@ export class DescribeFleetPortSettingsCommand extends $Command<
168172
clientName,
169173
commandName,
170174
inputFilterSensitiveLog: (_: any) => _,
171-
outputFilterSensitiveLog: (_: any) => _,
175+
outputFilterSensitiveLog: DescribeFleetPortSettingsOutputFilterSensitiveLog,
172176
[SMITHY_CONTEXT_KEY]: {
173177
service: "GameLift",
174178
operation: "DescribeFleetPortSettings",

clients/client-gamelift/src/commands/DescribeGameSessionDetailsCommand.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ import {
1515
} from "@smithy/types";
1616

1717
import { GameLiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GameLiftClient";
18-
import { DescribeGameSessionDetailsInput, DescribeGameSessionDetailsOutput } from "../models/models_0";
18+
import {
19+
DescribeGameSessionDetailsInput,
20+
DescribeGameSessionDetailsOutput,
21+
DescribeGameSessionDetailsOutputFilterSensitiveLog,
22+
} from "../models/models_0";
1923
import { de_DescribeGameSessionDetailsCommand, se_DescribeGameSessionDetailsCommand } from "../protocols/Aws_json1_1";
2024

2125
/**
@@ -208,7 +212,7 @@ export class DescribeGameSessionDetailsCommand extends $Command<
208212
clientName,
209213
commandName,
210214
inputFilterSensitiveLog: (_: any) => _,
211-
outputFilterSensitiveLog: (_: any) => _,
215+
outputFilterSensitiveLog: DescribeGameSessionDetailsOutputFilterSensitiveLog,
212216
[SMITHY_CONTEXT_KEY]: {
213217
service: "GameLift",
214218
operation: "DescribeGameSessionDetails",

clients/client-gamelift/src/commands/DescribeGameSessionPlacementCommand.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ import {
1515
} from "@smithy/types";
1616

1717
import { GameLiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GameLiftClient";
18-
import { DescribeGameSessionPlacementInput, DescribeGameSessionPlacementOutput } from "../models/models_0";
18+
import {
19+
DescribeGameSessionPlacementInput,
20+
DescribeGameSessionPlacementOutput,
21+
DescribeGameSessionPlacementOutputFilterSensitiveLog,
22+
} from "../models/models_0";
1923
import {
2024
de_DescribeGameSessionPlacementCommand,
2125
se_DescribeGameSessionPlacementCommand,
@@ -175,7 +179,7 @@ export class DescribeGameSessionPlacementCommand extends $Command<
175179
clientName,
176180
commandName,
177181
inputFilterSensitiveLog: (_: any) => _,
178-
outputFilterSensitiveLog: (_: any) => _,
182+
outputFilterSensitiveLog: DescribeGameSessionPlacementOutputFilterSensitiveLog,
179183
[SMITHY_CONTEXT_KEY]: {
180184
service: "GameLift",
181185
operation: "DescribeGameSessionPlacement",

clients/client-gamelift/src/commands/DescribeGameSessionsCommand.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ import {
1515
} from "@smithy/types";
1616

1717
import { GameLiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GameLiftClient";
18-
import { DescribeGameSessionsInput, DescribeGameSessionsOutput } from "../models/models_0";
18+
import {
19+
DescribeGameSessionsInput,
20+
DescribeGameSessionsOutput,
21+
DescribeGameSessionsOutputFilterSensitiveLog,
22+
} from "../models/models_0";
1923
import { de_DescribeGameSessionsCommand, se_DescribeGameSessionsCommand } from "../protocols/Aws_json1_1";
2024

2125
/**
@@ -212,7 +216,7 @@ export class DescribeGameSessionsCommand extends $Command<
212216
clientName,
213217
commandName,
214218
inputFilterSensitiveLog: (_: any) => _,
215-
outputFilterSensitiveLog: (_: any) => _,
219+
outputFilterSensitiveLog: DescribeGameSessionsOutputFilterSensitiveLog,
216220
[SMITHY_CONTEXT_KEY]: {
217221
service: "GameLift",
218222
operation: "DescribeGameSessions",

clients/client-gamelift/src/commands/DescribeInstancesCommand.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ import {
1515
} from "@smithy/types";
1616

1717
import { GameLiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GameLiftClient";
18-
import { DescribeInstancesInput, DescribeInstancesOutput } from "../models/models_0";
18+
import {
19+
DescribeInstancesInput,
20+
DescribeInstancesOutput,
21+
DescribeInstancesOutputFilterSensitiveLog,
22+
} from "../models/models_0";
1923
import { de_DescribeInstancesCommand, se_DescribeInstancesCommand } from "../protocols/Aws_json1_1";
2024

2125
/**
@@ -189,7 +193,7 @@ export class DescribeInstancesCommand extends $Command<
189193
clientName,
190194
commandName,
191195
inputFilterSensitiveLog: (_: any) => _,
192-
outputFilterSensitiveLog: (_: any) => _,
196+
outputFilterSensitiveLog: DescribeInstancesOutputFilterSensitiveLog,
193197
[SMITHY_CONTEXT_KEY]: {
194198
service: "GameLift",
195199
operation: "DescribeInstances",

clients/client-gamelift/src/commands/DescribeMatchmakingCommand.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ import {
1515
} from "@smithy/types";
1616

1717
import { GameLiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GameLiftClient";
18-
import { DescribeMatchmakingInput, DescribeMatchmakingOutput } from "../models/models_0";
18+
import {
19+
DescribeMatchmakingInput,
20+
DescribeMatchmakingOutput,
21+
DescribeMatchmakingOutputFilterSensitiveLog,
22+
} from "../models/models_0";
1923
import { de_DescribeMatchmakingCommand, se_DescribeMatchmakingCommand } from "../protocols/Aws_json1_1";
2024

2125
/**
@@ -193,7 +197,7 @@ export class DescribeMatchmakingCommand extends $Command<
193197
clientName,
194198
commandName,
195199
inputFilterSensitiveLog: (_: any) => _,
196-
outputFilterSensitiveLog: (_: any) => _,
200+
outputFilterSensitiveLog: DescribeMatchmakingOutputFilterSensitiveLog,
197201
[SMITHY_CONTEXT_KEY]: {
198202
service: "GameLift",
199203
operation: "DescribeMatchmaking",

clients/client-gamelift/src/commands/DescribePlayerSessionsCommand.ts

+8-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ import {
1515
} from "@smithy/types";
1616

1717
import { GameLiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GameLiftClient";
18-
import { DescribePlayerSessionsInput, DescribePlayerSessionsOutput } from "../models/models_0";
18+
import {
19+
DescribePlayerSessionsInput,
20+
DescribePlayerSessionsInputFilterSensitiveLog,
21+
DescribePlayerSessionsOutput,
22+
DescribePlayerSessionsOutputFilterSensitiveLog,
23+
} from "../models/models_0";
1924
import { de_DescribePlayerSessionsCommand, se_DescribePlayerSessionsCommand } from "../protocols/Aws_json1_1";
2025

2126
/**
@@ -175,8 +180,8 @@ export class DescribePlayerSessionsCommand extends $Command<
175180
logger,
176181
clientName,
177182
commandName,
178-
inputFilterSensitiveLog: (_: any) => _,
179-
outputFilterSensitiveLog: (_: any) => _,
183+
inputFilterSensitiveLog: DescribePlayerSessionsInputFilterSensitiveLog,
184+
outputFilterSensitiveLog: DescribePlayerSessionsOutputFilterSensitiveLog,
180185
[SMITHY_CONTEXT_KEY]: {
181186
service: "GameLift",
182187
operation: "DescribePlayerSessions",

clients/client-gamelift/src/commands/ListComputeCommand.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
} from "@smithy/types";
1616

1717
import { GameLiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GameLiftClient";
18-
import { ListComputeInput, ListComputeOutput } from "../models/models_0";
18+
import { ListComputeInput, ListComputeOutput, ListComputeOutputFilterSensitiveLog } from "../models/models_0";
1919
import { de_ListComputeCommand, se_ListComputeCommand } from "../protocols/Aws_json1_1";
2020

2121
/**
@@ -149,7 +149,7 @@ export class ListComputeCommand extends $Command<
149149
clientName,
150150
commandName,
151151
inputFilterSensitiveLog: (_: any) => _,
152-
outputFilterSensitiveLog: (_: any) => _,
152+
outputFilterSensitiveLog: ListComputeOutputFilterSensitiveLog,
153153
[SMITHY_CONTEXT_KEY]: {
154154
service: "GameLift",
155155
operation: "ListCompute",

clients/client-gamelift/src/commands/RegisterComputeCommand.ts

+12-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ import {
1515
} from "@smithy/types";
1616

1717
import { GameLiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GameLiftClient";
18-
import { RegisterComputeInput, RegisterComputeOutput } from "../models/models_0";
18+
import {
19+
RegisterComputeInput,
20+
RegisterComputeInputFilterSensitiveLog,
21+
RegisterComputeOutput,
22+
RegisterComputeOutputFilterSensitiveLog,
23+
} from "../models/models_0";
1924
import { de_RegisterComputeCommand, se_RegisterComputeCommand } from "../protocols/Aws_json1_1";
2025

2126
/**
@@ -124,6 +129,10 @@ export interface RegisterComputeCommandOutput extends RegisterComputeOutput, __M
124129
* <p>One or more parameter values in the request are invalid. Correct the invalid parameter
125130
* values before retrying.</p>
126131
*
132+
* @throws {@link LimitExceededException} (client fault)
133+
* <p>The requested operation would cause the resource to exceed the allowed service limit.
134+
* Resolve the issue before retrying.</p>
135+
*
127136
* @throws {@link UnauthorizedException} (client fault)
128137
* <p>The client failed authentication. Clients should not retry such requests.</p>
129138
*
@@ -179,8 +188,8 @@ export class RegisterComputeCommand extends $Command<
179188
logger,
180189
clientName,
181190
commandName,
182-
inputFilterSensitiveLog: (_: any) => _,
183-
outputFilterSensitiveLog: (_: any) => _,
191+
inputFilterSensitiveLog: RegisterComputeInputFilterSensitiveLog,
192+
outputFilterSensitiveLog: RegisterComputeOutputFilterSensitiveLog,
184193
[SMITHY_CONTEXT_KEY]: {
185194
service: "GameLift",
186195
operation: "RegisterCompute",

0 commit comments

Comments
 (0)