@aws-sdk/client-gamelift 3.1038.0 → 3.1040.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/README.md +7 -0
  2. package/dist-cjs/index.js +14 -0
  3. package/dist-cjs/schemas/schemas_0.js +52 -10
  4. package/dist-es/GameLift.js +2 -0
  5. package/dist-es/commands/DescribeContainerGroupPortMappingsCommand.js +16 -0
  6. package/dist-es/commands/index.js +1 -0
  7. package/dist-es/schemas/schemas_0.js +42 -0
  8. package/dist-types/GameLift.d.ts +7 -0
  9. package/dist-types/GameLiftClient.d.ts +3 -2
  10. package/dist-types/commands/DescribeContainerGroupPortMappingsCommand.d.ts +160 -0
  11. package/dist-types/commands/DescribeEC2InstanceLimitsCommand.d.ts +15 -12
  12. package/dist-types/commands/SearchGameSessionsCommand.d.ts +2 -2
  13. package/dist-types/commands/UpdateContainerFleetCommand.d.ts +1 -1
  14. package/dist-types/commands/UpdateContainerGroupDefinitionCommand.d.ts +1 -1
  15. package/dist-types/commands/index.d.ts +1 -0
  16. package/dist-types/models/models_0.d.ts +212 -213
  17. package/dist-types/models/models_1.d.ts +202 -3
  18. package/dist-types/schemas/schemas_0.d.ts +5 -0
  19. package/dist-types/ts3.4/GameLift.d.ts +23 -0
  20. package/dist-types/ts3.4/GameLiftClient.d.ts +6 -0
  21. package/dist-types/ts3.4/commands/DescribeContainerGroupPortMappingsCommand.d.ts +51 -0
  22. package/dist-types/ts3.4/commands/UpdateContainerFleetCommand.d.ts +1 -1
  23. package/dist-types/ts3.4/commands/UpdateContainerGroupDefinitionCommand.d.ts +1 -1
  24. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  25. package/dist-types/ts3.4/models/models_0.d.ts +26 -35
  26. package/dist-types/ts3.4/models/models_1.d.ts +44 -0
  27. package/dist-types/ts3.4/schemas/schemas_0.d.ts +5 -0
  28. package/package.json +7 -7
@@ -0,0 +1,160 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { GameLiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GameLiftClient";
4
+ import type { DescribeContainerGroupPortMappingsInput, DescribeContainerGroupPortMappingsOutput } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DescribeContainerGroupPortMappingsCommand}.
14
+ */
15
+ export interface DescribeContainerGroupPortMappingsCommandInput extends DescribeContainerGroupPortMappingsInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DescribeContainerGroupPortMappingsCommand}.
21
+ */
22
+ export interface DescribeContainerGroupPortMappingsCommandOutput extends DescribeContainerGroupPortMappingsOutput, __MetadataBearer {
23
+ }
24
+ declare const DescribeContainerGroupPortMappingsCommand_base: {
25
+ new (input: DescribeContainerGroupPortMappingsCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeContainerGroupPortMappingsCommandInput, DescribeContainerGroupPortMappingsCommandOutput, GameLiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DescribeContainerGroupPortMappingsCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeContainerGroupPortMappingsCommandInput, DescribeContainerGroupPortMappingsCommandOutput, GameLiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>
31
+ * <b>This API works with the following fleet types:</b> Container</p>
32
+ * <p>Retrieves the port mappings for a container group running on a container fleet. Port
33
+ * mappings show how container ports are mapped to connection ports on the fleet instance.
34
+ * Use this operation to find the connection port for a specific container on a fleet
35
+ * instance.</p>
36
+ * <p>
37
+ * <b>Request options</b>
38
+ * </p>
39
+ * <ul>
40
+ * <li>
41
+ * <p>Get port mappings for a game server container group. Provide the fleet ID,
42
+ * set <code>ContainerGroupType</code> to <code>GAME_SERVER</code>, and specify the
43
+ * <code>ComputeName</code> for the game server container group.</p>
44
+ * </li>
45
+ * <li>
46
+ * <p>Get port mappings for a per-instance container group. Provide the fleet ID,
47
+ * set <code>ContainerGroupType</code> to <code>PER_INSTANCE</code>, and specify the
48
+ * <code>InstanceId</code> for the instance.</p>
49
+ * </li>
50
+ * <li>
51
+ * <p>Optionally filter results to a single container by providing a
52
+ * <code>ContainerName</code>.</p>
53
+ * </li>
54
+ * </ul>
55
+ * <p>
56
+ * <b>Results</b>
57
+ * </p>
58
+ * <p>This operation returns the fleet ID, location, container group definition
59
+ * ARN, container group type, compute name (for game server container groups), instance ID,
60
+ * and a list of <code>ContainerGroupPortMapping</code> objects. Each object contains the
61
+ * container name, runtime ID, and a list of port mappings that show how container ports map
62
+ * to connection ports on the instance.</p>
63
+ * <p>
64
+ * <b>Learn more</b>
65
+ * </p>
66
+ * <p>
67
+ * <a href="https://docs.aws.amazon.com/gamelift/latest/developerguide/containers-remote-access.html">Connect to
68
+ * containers</a>
69
+ * </p>
70
+ * <p>
71
+ * <a href="https://docs.aws.amazon.com/gamelift/latest/developerguide/containers-create-groups.html">Create a
72
+ * container group definition</a>
73
+ * </p>
74
+ * @example
75
+ * Use a bare-bones client and the command you need to make an API call.
76
+ * ```javascript
77
+ * import { GameLiftClient, DescribeContainerGroupPortMappingsCommand } from "@aws-sdk/client-gamelift"; // ES Modules import
78
+ * // const { GameLiftClient, DescribeContainerGroupPortMappingsCommand } = require("@aws-sdk/client-gamelift"); // CommonJS import
79
+ * // import type { GameLiftClientConfig } from "@aws-sdk/client-gamelift";
80
+ * const config = {}; // type is GameLiftClientConfig
81
+ * const client = new GameLiftClient(config);
82
+ * const input = { // DescribeContainerGroupPortMappingsInput
83
+ * FleetId: "STRING_VALUE", // required
84
+ * ContainerGroupType: "GAME_SERVER" || "PER_INSTANCE", // required
85
+ * ComputeName: "STRING_VALUE",
86
+ * InstanceId: "STRING_VALUE",
87
+ * ContainerName: "STRING_VALUE",
88
+ * };
89
+ * const command = new DescribeContainerGroupPortMappingsCommand(input);
90
+ * const response = await client.send(command);
91
+ * // { // DescribeContainerGroupPortMappingsOutput
92
+ * // FleetId: "STRING_VALUE",
93
+ * // Location: "STRING_VALUE",
94
+ * // ContainerGroupDefinitionArn: "STRING_VALUE",
95
+ * // ContainerGroupType: "GAME_SERVER" || "PER_INSTANCE",
96
+ * // ComputeName: "STRING_VALUE",
97
+ * // InstanceId: "STRING_VALUE",
98
+ * // ContainerGroupPortMappings: [ // ContainerGroupPortMappingList
99
+ * // { // ContainerGroupPortMapping
100
+ * // ContainerName: "STRING_VALUE",
101
+ * // ContainerRuntimeId: "STRING_VALUE",
102
+ * // ContainerPortMappings: [ // ContainerPortMappingList
103
+ * // { // ContainerPortMapping
104
+ * // ContainerPort: Number("int"),
105
+ * // ConnectionPort: Number("int"),
106
+ * // Protocol: "TCP" || "UDP",
107
+ * // },
108
+ * // ],
109
+ * // },
110
+ * // ],
111
+ * // };
112
+ *
113
+ * ```
114
+ *
115
+ * @param DescribeContainerGroupPortMappingsCommandInput - {@link DescribeContainerGroupPortMappingsCommandInput}
116
+ * @returns {@link DescribeContainerGroupPortMappingsCommandOutput}
117
+ * @see {@link DescribeContainerGroupPortMappingsCommandInput} for command's `input` shape.
118
+ * @see {@link DescribeContainerGroupPortMappingsCommandOutput} for command's `response` shape.
119
+ * @see {@link GameLiftClientResolvedConfig | config} for GameLiftClient's `config` shape.
120
+ *
121
+ * @throws {@link InternalServiceException} (server fault)
122
+ * <p>The service encountered an unrecoverable internal failure while processing the
123
+ * request. Clients can retry such requests immediately or after a waiting period.</p>
124
+ *
125
+ * @throws {@link InvalidRequestException} (client fault)
126
+ * <p>One or more parameter values in the request are invalid. Correct the invalid parameter
127
+ * values before retrying.</p>
128
+ *
129
+ * @throws {@link LimitExceededException} (client fault)
130
+ * <p>The requested operation would cause the resource to exceed the allowed service limit.
131
+ * Resolve the issue before retrying.</p>
132
+ *
133
+ * @throws {@link NotFoundException} (client fault)
134
+ * <p>The requested resources was not found. The resource was either not created yet or deleted.</p>
135
+ *
136
+ * @throws {@link UnauthorizedException} (client fault)
137
+ * <p>The client failed authentication. Clients should not retry such requests.</p>
138
+ *
139
+ * @throws {@link UnsupportedRegionException} (client fault)
140
+ * <p>The requested operation is not supported in the Region specified.</p>
141
+ *
142
+ * @throws {@link GameLiftServiceException}
143
+ * <p>Base exception class for all service exceptions from GameLift service.</p>
144
+ *
145
+ *
146
+ * @public
147
+ */
148
+ export declare class DescribeContainerGroupPortMappingsCommand extends DescribeContainerGroupPortMappingsCommand_base {
149
+ /** @internal type navigation helper, not in runtime. */
150
+ protected static __types: {
151
+ api: {
152
+ input: DescribeContainerGroupPortMappingsInput;
153
+ output: DescribeContainerGroupPortMappingsOutput;
154
+ };
155
+ sdk: {
156
+ input: DescribeContainerGroupPortMappingsCommandInput;
157
+ output: DescribeContainerGroupPortMappingsCommandOutput;
158
+ };
159
+ };
160
+ }
@@ -39,27 +39,30 @@ declare const DescribeEC2InstanceLimitsCommand_base: {
39
39
  * Region or in a remote location. For remote locations, limits also differ based on the
40
40
  * combination of home Region and remote location. All requests must specify an Amazon Web Services
41
41
  * Region (either explicitly or as your default settings). To get the limit for a remote
42
- * location, you must also specify the location. For example, the following requests all
42
+ * location, you must also specify the location. To learn more about how Amazon GameLift Servers handles
43
+ * locations, see <a href="https://docs.aws.amazon.com/gameliftservers/latest/developerguide/gamelift-regions.html">Amazon GameLift Servers service
44
+ * locations</a>. For example, the following requests all
43
45
  * return different results: </p>
44
46
  * <ul>
45
47
  * <li>
46
48
  * <p>Request specifies the Region <code>ap-northeast-1</code> with no location. The
47
- * result is limits and usage data on all instance types that are deployed in
48
- * <code>us-east-2</code>, by all of the fleets that reside in
49
+ * result is limits and usage data on all of the fleets that reside in
50
+ * <code>ap-northeast-1</code>, for all instance types that are deployed in
49
51
  * <code>ap-northeast-1</code>. </p>
50
52
  * </li>
51
53
  * <li>
52
- * <p>Request specifies the Region <code>us-east-1</code> with location
53
- * <code>ca-central-1</code>. The result is limits and usage data on all
54
- * instance types that are deployed in <code>ca-central-1</code>, by all of the
55
- * fleets that reside in <code>us-east-2</code>. These limits do not affect fleets
56
- * in any other Regions that deploy instances to <code>ca-central-1</code>.</p>
54
+ * <p>Request specifies the Region <code>ap-northeast-1</code> with location
55
+ * <code>us-west-2</code>. The result is limits and usage data on all of the
56
+ * fleets that reside in <code>ap-northeast-1</code>, for all instance types
57
+ * that are deployed in <code>us-west-2</code>.</p>
57
58
  * </li>
58
59
  * <li>
59
- * <p>Request specifies the Region <code>eu-west-1</code> with location
60
- * <code>ca-central-1</code>. The result is limits and usage data on all
61
- * instance types that are deployed in <code>ca-central-1</code>, by all of the
62
- * fleets that reside in <code>eu-west-1</code>.</p>
60
+ * <p>Request specifies the Region <code>us-east-1</code> with location
61
+ * <code>ap-northeast-1</code>. The result is limits and usage data on all of
62
+ * the fleets that reside in <code>us-east-1</code>, for all instance types
63
+ * that are deployed in <code>ap-northeast-1</code>. These limits do not affect
64
+ * fleets in any other Regions that deploy instances to
65
+ * <code>ap-northeast-1</code>.</p>
63
66
  * </li>
64
67
  * </ul>
65
68
  * <p>This operation can be used in the following ways:</p>
@@ -57,8 +57,8 @@ declare const SearchGameSessionsCommand_base: {
57
57
  * <ul>
58
58
  * <li>
59
59
  * <p>
60
- * <b>gameSessionId</b> -- A unique identifier for the game session. You can use either a
61
- * <code>GameSessionId</code> or <code>GameSessionArn</code> value. </p>
60
+ * <b>gameSessionId</b> -- An identifier for the game session that is unique across all regions. You must use the
61
+ * full ARN value. </p>
62
62
  * </li>
63
63
  * <li>
64
64
  * <p>
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import type { GameLiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GameLiftClient";
4
- import type { UpdateContainerFleetInput, UpdateContainerFleetOutput } from "../models/models_0";
4
+ import type { UpdateContainerFleetInput, UpdateContainerFleetOutput } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import type { GameLiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GameLiftClient";
4
- import type { UpdateContainerGroupDefinitionInput, UpdateContainerGroupDefinitionOutput } from "../models/models_0";
4
+ import type { UpdateContainerGroupDefinitionInput, UpdateContainerGroupDefinitionOutput } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -39,6 +39,7 @@ export * from "./DescribeBuildCommand";
39
39
  export * from "./DescribeComputeCommand";
40
40
  export * from "./DescribeContainerFleetCommand";
41
41
  export * from "./DescribeContainerGroupDefinitionCommand";
42
+ export * from "./DescribeContainerGroupPortMappingsCommand";
42
43
  export * from "./DescribeEC2InstanceLimitsCommand";
43
44
  export * from "./DescribeFleetAttributesCommand";
44
45
  export * from "./DescribeFleetCapacityCommand";