@awboost/cfn-resource-types 0.1.190 → 0.1.192
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/lib/AWS-ApplicationInsights-Application.d.ts +7 -0
- package/lib/AWS-Batch-ComputeEnvironment.d.ts +11 -0
- package/lib/AWS-DynamoDB-GlobalTable.d.ts +16 -0
- package/lib/AWS-DynamoDB-Table.d.ts +18 -2
- package/lib/AWS-DynamoDB-Table.js +1 -1
- package/lib/AWS-EC2-EC2Fleet.d.ts +1 -1
- package/lib/AWS-EC2-LaunchTemplate.d.ts +11 -12
- package/lib/AWS-EC2-SpotFleet.d.ts +1 -1
- package/lib/AWS-ECR-RepositoryCreationTemplate.d.ts +2 -2
- package/lib/AWS-ECS-Service.d.ts +14 -3
- package/lib/AWS-ECS-TaskDefinition.d.ts +25 -15
- package/lib/AWS-Events-Connection.d.ts +1 -1
- package/lib/AWS-FIS-ExperimentTemplate.d.ts +37 -0
- package/lib/AWS-GameLift-ContainerFleet.d.ts +404 -0
- package/lib/AWS-GameLift-ContainerFleet.js +12 -0
- package/lib/AWS-GameLift-ContainerGroupDefinition.d.ts +292 -2
- package/lib/AWS-KinesisFirehose-DeliveryStream.d.ts +91 -4
- package/package.json +1 -1
|
@@ -0,0 +1,404 @@
|
|
|
1
|
+
import { Resource as $Resource } from "@awboost/cfn-template-builder/template/resource";
|
|
2
|
+
import type { ResourceOptions as $ResourceOptions } from "@awboost/cfn-template-builder/template";
|
|
3
|
+
/**
|
|
4
|
+
* The AWS::GameLift::ContainerFleet resource creates an Amazon GameLift (GameLift) container fleet to host game servers.
|
|
5
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-containerfleet.html}
|
|
6
|
+
*/
|
|
7
|
+
export type GameLiftContainerFleetProperties = {
|
|
8
|
+
/**
|
|
9
|
+
* Indicates whether to use On-Demand instances or Spot instances for this fleet. If empty, the default is ON_DEMAND. Both categories of instances use identical hardware and configurations based on the instance type selected for this fleet.
|
|
10
|
+
*/
|
|
11
|
+
BillingType?: "ON_DEMAND" | "SPOT";
|
|
12
|
+
/**
|
|
13
|
+
* Provides details about how to drain old tasks and replace them with new updated tasks.
|
|
14
|
+
*/
|
|
15
|
+
DeploymentConfiguration?: DeploymentConfiguration;
|
|
16
|
+
/**
|
|
17
|
+
* A human-readable description of a fleet.
|
|
18
|
+
* @minLength `1`
|
|
19
|
+
* @maxLength `1024`
|
|
20
|
+
*/
|
|
21
|
+
Description?: string;
|
|
22
|
+
/**
|
|
23
|
+
* A unique identifier for an AWS IAM role that manages access to your AWS services. Create a role or look up a role's ARN from the IAM dashboard in the AWS Management Console.
|
|
24
|
+
* @minLength `1`
|
|
25
|
+
* @maxLength `256`
|
|
26
|
+
* @pattern `^arn:aws(-.*)?:[a-z-]+:(([a-z]+-)+[0-9])?:([0-9]{12})?:[^.]+$`
|
|
27
|
+
*/
|
|
28
|
+
FleetRoleArn: string;
|
|
29
|
+
/**
|
|
30
|
+
* The name of the container group definition that will be created per game server. You must specify GAME_SERVER container group. You have the option to also specify one PER_INSTANCE container group.
|
|
31
|
+
* @minLength `1`
|
|
32
|
+
* @maxLength `512`
|
|
33
|
+
* @pattern `^[a-zA-Z0-9\-]+$|^arn:.*:containergroupdefinition\/[a-zA-Z0-9\-]+(:[0-9]+)?$`
|
|
34
|
+
*/
|
|
35
|
+
GameServerContainerGroupDefinitionName?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The number of desired game server container groups per instance, a number between 1-5000.
|
|
38
|
+
* @min `1`
|
|
39
|
+
* @max `5000`
|
|
40
|
+
*/
|
|
41
|
+
GameServerContainerGroupsPerInstance?: number;
|
|
42
|
+
/**
|
|
43
|
+
* A policy that limits the number of game sessions an individual player can create over a span of time for this fleet.
|
|
44
|
+
*/
|
|
45
|
+
GameSessionCreationLimitPolicy?: GameSessionCreationLimitPolicy;
|
|
46
|
+
/**
|
|
47
|
+
* Defines the range of ports on the instance that allow inbound traffic to connect with containers in a fleet.
|
|
48
|
+
*/
|
|
49
|
+
InstanceConnectionPortRange?: ConnectionPortRange;
|
|
50
|
+
/**
|
|
51
|
+
* A range of IP addresses and port settings that allow inbound traffic to connect to server processes on an Amazon GameLift server.
|
|
52
|
+
* @maxLength `50`
|
|
53
|
+
*/
|
|
54
|
+
InstanceInboundPermissions?: IpPermission[];
|
|
55
|
+
/**
|
|
56
|
+
* The name of an EC2 instance type that is supported in Amazon GameLift. A fleet instance type determines the computing resources of each instance in the fleet, including CPU, memory, storage, and networking capacity. Amazon GameLift supports the following EC2 instance types. See Amazon EC2 Instance Types for detailed descriptions.
|
|
57
|
+
* @minLength `1`
|
|
58
|
+
* @maxLength `1024`
|
|
59
|
+
*/
|
|
60
|
+
InstanceType?: string;
|
|
61
|
+
/**
|
|
62
|
+
* @maxLength `100`
|
|
63
|
+
*/
|
|
64
|
+
Locations?: LocationConfiguration[];
|
|
65
|
+
/**
|
|
66
|
+
* A policy the location and provider of logs from the fleet.
|
|
67
|
+
*/
|
|
68
|
+
LogConfiguration?: LogConfiguration;
|
|
69
|
+
/**
|
|
70
|
+
* The name of an Amazon CloudWatch metric group. A metric group aggregates the metrics for all fleets in the group. Specify a string containing the metric group name. You can use an existing name or use a new name to create a new metric group. Currently, this parameter can have only one string.
|
|
71
|
+
* @maxLength `1`
|
|
72
|
+
*/
|
|
73
|
+
MetricGroups?: string[];
|
|
74
|
+
/**
|
|
75
|
+
* A game session protection policy to apply to all game sessions hosted on instances in this fleet. When protected, active game sessions cannot be terminated during a scale-down event. If this parameter is not set, instances in this fleet default to no protection. You can change a fleet's protection policy to affect future game sessions on the fleet. You can also set protection for individual game sessions.
|
|
76
|
+
*/
|
|
77
|
+
NewGameSessionProtectionPolicy?: "FullProtection" | "NoProtection";
|
|
78
|
+
/**
|
|
79
|
+
* The name of the container group definition that will be created per instance. This field is optional if you specify GameServerContainerGroupDefinitionName.
|
|
80
|
+
* @minLength `1`
|
|
81
|
+
* @maxLength `512`
|
|
82
|
+
* @pattern `^[a-zA-Z0-9\-]+$|^arn:.*:containergroupdefinition\/[a-zA-Z0-9\-]+(:[0-9]+)?$`
|
|
83
|
+
*/
|
|
84
|
+
PerInstanceContainerGroupDefinitionName?: string;
|
|
85
|
+
/**
|
|
86
|
+
* A list of rules that control how a fleet is scaled.
|
|
87
|
+
* @maxLength `50`
|
|
88
|
+
*/
|
|
89
|
+
ScalingPolicies?: ScalingPolicy[];
|
|
90
|
+
/**
|
|
91
|
+
* An array of key-value pairs to apply to this resource.
|
|
92
|
+
* @maxLength `200`
|
|
93
|
+
*/
|
|
94
|
+
Tags?: Tag[];
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* Attribute type definition for `AWS::GameLift::ContainerFleet`.
|
|
98
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-containerfleet.html#aws-resource-gamelift-containerfleet-return-values}
|
|
99
|
+
*/
|
|
100
|
+
export type GameLiftContainerFleetAttributes = {
|
|
101
|
+
/**
|
|
102
|
+
* A time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (for example "1469498468.057").
|
|
103
|
+
*/
|
|
104
|
+
CreationTime: string;
|
|
105
|
+
/**
|
|
106
|
+
* Provides information about the last deployment ID and its status.
|
|
107
|
+
*/
|
|
108
|
+
DeploymentDetails: {
|
|
109
|
+
/**
|
|
110
|
+
* The ID of the last deployment on the container fleet. This field will be empty if the container fleet does not have a ContainerGroupDefinition attached.
|
|
111
|
+
* @maxLength `1024`
|
|
112
|
+
* @pattern `^[a-zA-Z0-9\-]+$|^$`
|
|
113
|
+
*/
|
|
114
|
+
LatestDeploymentId: string;
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* The Amazon Resource Name (ARN) that is assigned to a Amazon GameLift container fleet resource and uniquely identifies it across all AWS Regions.
|
|
118
|
+
* @minLength `1`
|
|
119
|
+
* @maxLength `512`
|
|
120
|
+
* @pattern `^arn:.*:[a-z]*fleet\/[a-z]*fleet-[a-zA-Z0-9\-]+$`
|
|
121
|
+
*/
|
|
122
|
+
FleetArn: string;
|
|
123
|
+
/**
|
|
124
|
+
* Unique fleet ID
|
|
125
|
+
* @minLength `1`
|
|
126
|
+
* @maxLength `128`
|
|
127
|
+
* @pattern `^[a-z]*fleet-[a-zA-Z0-9\-]+`
|
|
128
|
+
*/
|
|
129
|
+
FleetId: string;
|
|
130
|
+
/**
|
|
131
|
+
* The Amazon Resource Name (ARN) of the game server container group definition. This field will be empty if GameServerContainerGroupDefinitionName is not specified.
|
|
132
|
+
* @maxLength `512`
|
|
133
|
+
* @pattern `^arn:.*:containergroupdefinition\/[a-zA-Z0-9\-]+(:[0-9]+)?$|^$`
|
|
134
|
+
*/
|
|
135
|
+
GameServerContainerGroupDefinitionArn: string;
|
|
136
|
+
/**
|
|
137
|
+
* The maximum number of game server container groups per instance, a number between 1-5000.
|
|
138
|
+
* @min `1`
|
|
139
|
+
* @max `5000`
|
|
140
|
+
*/
|
|
141
|
+
MaximumGameServerContainerGroupsPerInstance: number;
|
|
142
|
+
/**
|
|
143
|
+
* The Amazon Resource Name (ARN) of the per instance container group definition. This field will be empty if PerInstanceContainerGroupDefinitionName is not specified.
|
|
144
|
+
* @maxLength `512`
|
|
145
|
+
* @pattern `^arn:.*:containergroupdefinition\/[a-zA-Z0-9\-]+(:[0-9]+)?$|^$`
|
|
146
|
+
*/
|
|
147
|
+
PerInstanceContainerGroupDefinitionArn: string;
|
|
148
|
+
/**
|
|
149
|
+
* The current status of the container fleet.
|
|
150
|
+
*/
|
|
151
|
+
Status: "PENDING" | "CREATING" | "CREATED" | "ACTIVATING" | "ACTIVE" | "UPDATING" | "DELETING";
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* Type definition for `AWS::GameLift::ContainerFleet.ConnectionPortRange`.
|
|
155
|
+
* Defines the range of ports on the instance that allow inbound traffic to connect with containers in a fleet.
|
|
156
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containerfleet-connectionportrange.html}
|
|
157
|
+
*/
|
|
158
|
+
export type ConnectionPortRange = {
|
|
159
|
+
/**
|
|
160
|
+
* A starting value for a range of allowed port numbers.
|
|
161
|
+
* @min `1`
|
|
162
|
+
* @max `60000`
|
|
163
|
+
*/
|
|
164
|
+
FromPort: number;
|
|
165
|
+
/**
|
|
166
|
+
* An ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be higher than FromPort.
|
|
167
|
+
* @min `1`
|
|
168
|
+
* @max `60000`
|
|
169
|
+
*/
|
|
170
|
+
ToPort: number;
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* Type definition for `AWS::GameLift::ContainerFleet.DeploymentConfiguration`.
|
|
174
|
+
* Provides details about how to drain old tasks and replace them with new updated tasks.
|
|
175
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containerfleet-deploymentconfiguration.html}
|
|
176
|
+
*/
|
|
177
|
+
export type DeploymentConfiguration = {
|
|
178
|
+
/**
|
|
179
|
+
* The strategy to apply in case of impairment; defaults to MAINTAIN.
|
|
180
|
+
*/
|
|
181
|
+
ImpairmentStrategy?: "MAINTAIN" | "ROLLBACK";
|
|
182
|
+
/**
|
|
183
|
+
* The minimum percentage of healthy required; defaults to 75.
|
|
184
|
+
* @min `30`
|
|
185
|
+
* @max `75`
|
|
186
|
+
*/
|
|
187
|
+
MinimumHealthyPercentage?: number;
|
|
188
|
+
/**
|
|
189
|
+
* The protection strategy for deployment on the container fleet; defaults to WITH_PROTECTION.
|
|
190
|
+
*/
|
|
191
|
+
ProtectionStrategy?: "WITH_PROTECTION" | "IGNORE_PROTECTION";
|
|
192
|
+
};
|
|
193
|
+
/**
|
|
194
|
+
* Type definition for `AWS::GameLift::ContainerFleet.DeploymentDetails`.
|
|
195
|
+
* Provides information about the last deployment ID and its status.
|
|
196
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containerfleet-deploymentdetails.html}
|
|
197
|
+
*/
|
|
198
|
+
export type DeploymentDetails = {
|
|
199
|
+
/**
|
|
200
|
+
* The ID of the last deployment on the container fleet. This field will be empty if the container fleet does not have a ContainerGroupDefinition attached.
|
|
201
|
+
* @maxLength `1024`
|
|
202
|
+
* @pattern `^[a-zA-Z0-9\-]+$|^$`
|
|
203
|
+
*/
|
|
204
|
+
LatestDeploymentId?: string;
|
|
205
|
+
};
|
|
206
|
+
/**
|
|
207
|
+
* Type definition for `AWS::GameLift::ContainerFleet.GameSessionCreationLimitPolicy`.
|
|
208
|
+
* A policy that limits the number of game sessions a player can create on the same fleet. This optional policy gives game owners control over how players can consume available game server resources. A resource creation policy makes the following statement: "An individual player can create a maximum number of new game sessions within a specified time period".
|
|
209
|
+
|
|
210
|
+
The policy is evaluated when a player tries to create a new game session. For example, assume you have a policy of 10 new game sessions and a time period of 60 minutes. On receiving a CreateGameSession request, Amazon GameLift checks that the player (identified by CreatorId) has created fewer than 10 game sessions in the past 60 minutes.
|
|
211
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containerfleet-gamesessioncreationlimitpolicy.html}
|
|
212
|
+
*/
|
|
213
|
+
export type GameSessionCreationLimitPolicy = {
|
|
214
|
+
/**
|
|
215
|
+
* The maximum number of game sessions that an individual can create during the policy period.
|
|
216
|
+
* @min `0`
|
|
217
|
+
*/
|
|
218
|
+
NewGameSessionsPerCreator?: number;
|
|
219
|
+
/**
|
|
220
|
+
* The time span used in evaluating the resource creation limit policy.
|
|
221
|
+
* @min `0`
|
|
222
|
+
*/
|
|
223
|
+
PolicyPeriodInMinutes?: number;
|
|
224
|
+
};
|
|
225
|
+
/**
|
|
226
|
+
* Type definition for `AWS::GameLift::ContainerFleet.IpPermission`.
|
|
227
|
+
* A range of IP addresses and port settings that allow inbound traffic to connect to server processes on an Amazon GameLift hosting resource. New game sessions that are started on the fleet are assigned an IP address/port number combination, which must fall into the fleet's allowed ranges. For fleets created with a custom game server, the ranges reflect the server's game session assignments. For Realtime Servers fleets, Amazon GameLift automatically opens two port ranges, one for TCP messaging and one for UDP, for use by the Realtime servers.
|
|
228
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containerfleet-ippermission.html}
|
|
229
|
+
*/
|
|
230
|
+
export type IpPermission = {
|
|
231
|
+
/**
|
|
232
|
+
* A starting value for a range of allowed port numbers.
|
|
233
|
+
* @min `1`
|
|
234
|
+
* @max `60000`
|
|
235
|
+
*/
|
|
236
|
+
FromPort: number;
|
|
237
|
+
/**
|
|
238
|
+
* A range of allowed IP addresses. This value must be expressed in CIDR notation. Example: "000.000.000.000/[subnet mask]" or optionally the shortened version "0.0.0.0/[subnet mask]".
|
|
239
|
+
* @pattern `(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(/([0-9]|[1-2][0-9]|3[0-2]))$)`
|
|
240
|
+
*/
|
|
241
|
+
IpRange: string;
|
|
242
|
+
/**
|
|
243
|
+
* The network communication protocol used by the fleet.
|
|
244
|
+
*/
|
|
245
|
+
Protocol: "TCP" | "UDP";
|
|
246
|
+
/**
|
|
247
|
+
* An ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be higher than FromPort.
|
|
248
|
+
* @min `1`
|
|
249
|
+
* @max `60000`
|
|
250
|
+
*/
|
|
251
|
+
ToPort: number;
|
|
252
|
+
};
|
|
253
|
+
/**
|
|
254
|
+
* Type definition for `AWS::GameLift::ContainerFleet.LocationCapacity`.
|
|
255
|
+
* Current resource capacity settings in a specified fleet or location. The location value might refer to a fleet's remote location or its home Region.
|
|
256
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containerfleet-locationcapacity.html}
|
|
257
|
+
*/
|
|
258
|
+
export type LocationCapacity = {
|
|
259
|
+
/**
|
|
260
|
+
* The number of EC2 instances you want to maintain in the specified fleet location. This value must fall between the minimum and maximum size limits.
|
|
261
|
+
* @min `0`
|
|
262
|
+
*/
|
|
263
|
+
DesiredEC2Instances: number;
|
|
264
|
+
/**
|
|
265
|
+
* The maximum value that is allowed for the fleet's instance count for a location.
|
|
266
|
+
* @min `0`
|
|
267
|
+
*/
|
|
268
|
+
MaxSize: number;
|
|
269
|
+
/**
|
|
270
|
+
* The minimum value allowed for the fleet's instance count for a location.
|
|
271
|
+
* @min `0`
|
|
272
|
+
*/
|
|
273
|
+
MinSize: number;
|
|
274
|
+
};
|
|
275
|
+
/**
|
|
276
|
+
* Type definition for `AWS::GameLift::ContainerFleet.LocationConfiguration`.
|
|
277
|
+
* A remote location where a multi-location fleet can deploy EC2 instances for game hosting.
|
|
278
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containerfleet-locationconfiguration.html}
|
|
279
|
+
*/
|
|
280
|
+
export type LocationConfiguration = {
|
|
281
|
+
/**
|
|
282
|
+
* @minLength `1`
|
|
283
|
+
* @maxLength `64`
|
|
284
|
+
* @pattern `^[A-Za-z0-9\-]+`
|
|
285
|
+
*/
|
|
286
|
+
Location: string;
|
|
287
|
+
/**
|
|
288
|
+
* Current resource capacity settings in a specified fleet or location. The location value might refer to a fleet's remote location or its home Region.
|
|
289
|
+
*/
|
|
290
|
+
LocationCapacity?: LocationCapacity;
|
|
291
|
+
/**
|
|
292
|
+
* A list of fleet actions that have been suspended in the fleet location.
|
|
293
|
+
* @maxLength `1`
|
|
294
|
+
*/
|
|
295
|
+
StoppedActions?: "AUTO_SCALING"[];
|
|
296
|
+
};
|
|
297
|
+
/**
|
|
298
|
+
* Type definition for `AWS::GameLift::ContainerFleet.LogConfiguration`.
|
|
299
|
+
* A policy the location and provider of logs from the fleet.
|
|
300
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containerfleet-logconfiguration.html}
|
|
301
|
+
*/
|
|
302
|
+
export type LogConfiguration = {
|
|
303
|
+
/**
|
|
304
|
+
* Configures the service that provides logs.
|
|
305
|
+
*/
|
|
306
|
+
LogDestination?: LogDestination;
|
|
307
|
+
/**
|
|
308
|
+
* The name of the S3 bucket to pull logs from if S3 is the LogDestination
|
|
309
|
+
* @minLength `1`
|
|
310
|
+
* @maxLength `1024`
|
|
311
|
+
*/
|
|
312
|
+
S3BucketName?: string;
|
|
313
|
+
};
|
|
314
|
+
/**
|
|
315
|
+
* Type definition for `AWS::GameLift::ContainerFleet.LogDestination`.
|
|
316
|
+
* Configures the service that provides logs.
|
|
317
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containerfleet-logdestination.html}
|
|
318
|
+
*/
|
|
319
|
+
export type LogDestination = "NONE" | "CLOUDWATCH" | "S3";
|
|
320
|
+
/**
|
|
321
|
+
* Type definition for `AWS::GameLift::ContainerFleet.ScalingPolicy`.
|
|
322
|
+
* Rule that controls how a fleet is scaled. Scaling policies are uniquely identified by the combination of name and fleet ID.
|
|
323
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containerfleet-scalingpolicy.html}
|
|
324
|
+
*/
|
|
325
|
+
export type ScalingPolicy = {
|
|
326
|
+
/**
|
|
327
|
+
* Comparison operator to use when measuring a metric against the threshold value.
|
|
328
|
+
*/
|
|
329
|
+
ComparisonOperator?: "GreaterThanOrEqualToThreshold" | "GreaterThanThreshold" | "LessThanThreshold" | "LessThanOrEqualToThreshold";
|
|
330
|
+
/**
|
|
331
|
+
* Length of time (in minutes) the metric must be at or beyond the threshold before a scaling event is triggered.
|
|
332
|
+
* @min `1`
|
|
333
|
+
*/
|
|
334
|
+
EvaluationPeriods?: number;
|
|
335
|
+
/**
|
|
336
|
+
* Name of the Amazon GameLift-defined metric that is used to trigger a scaling adjustment.
|
|
337
|
+
*/
|
|
338
|
+
MetricName: "ActivatingGameSessions" | "ActiveGameSessions" | "ActiveInstances" | "AvailableGameSessions" | "AvailablePlayerSessions" | "CurrentPlayerSessions" | "IdleInstances" | "PercentAvailableGameSessions" | "PercentIdleInstances" | "QueueDepth" | "WaitTime" | "ConcurrentActivatableGameSessions";
|
|
339
|
+
/**
|
|
340
|
+
* A descriptive label that is associated with a fleet's scaling policy. Policy names do not need to be unique.
|
|
341
|
+
* @minLength `1`
|
|
342
|
+
* @maxLength `1024`
|
|
343
|
+
*/
|
|
344
|
+
Name: string;
|
|
345
|
+
/**
|
|
346
|
+
* The type of scaling policy to create. For a target-based policy, set the parameter MetricName to 'PercentAvailableGameSessions' and specify a TargetConfiguration. For a rule-based policy set the following parameters: MetricName, ComparisonOperator, Threshold, EvaluationPeriods, ScalingAdjustmentType, and ScalingAdjustment.
|
|
347
|
+
*/
|
|
348
|
+
PolicyType?: "RuleBased" | "TargetBased";
|
|
349
|
+
/**
|
|
350
|
+
* Amount of adjustment to make, based on the scaling adjustment type.
|
|
351
|
+
*/
|
|
352
|
+
ScalingAdjustment?: number;
|
|
353
|
+
/**
|
|
354
|
+
* The type of adjustment to make to a fleet's instance count.
|
|
355
|
+
*/
|
|
356
|
+
ScalingAdjustmentType?: "ChangeInCapacity" | "ExactCapacity" | "PercentChangeInCapacity";
|
|
357
|
+
/**
|
|
358
|
+
* An object that contains settings for a target-based scaling policy.
|
|
359
|
+
*/
|
|
360
|
+
TargetConfiguration?: TargetConfiguration;
|
|
361
|
+
/**
|
|
362
|
+
* Metric value used to trigger a scaling event.
|
|
363
|
+
*/
|
|
364
|
+
Threshold?: number;
|
|
365
|
+
};
|
|
366
|
+
/**
|
|
367
|
+
* Type definition for `AWS::GameLift::ContainerFleet.Tag`.
|
|
368
|
+
* A key-value pair to associate with a resource.
|
|
369
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containerfleet-tag.html}
|
|
370
|
+
*/
|
|
371
|
+
export type Tag = {
|
|
372
|
+
/**
|
|
373
|
+
* The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length.
|
|
374
|
+
* @minLength `1`
|
|
375
|
+
* @maxLength `128`
|
|
376
|
+
*/
|
|
377
|
+
Key: string;
|
|
378
|
+
/**
|
|
379
|
+
* The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length.
|
|
380
|
+
* @minLength `0`
|
|
381
|
+
* @maxLength `256`
|
|
382
|
+
*/
|
|
383
|
+
Value: string;
|
|
384
|
+
};
|
|
385
|
+
/**
|
|
386
|
+
* Type definition for `AWS::GameLift::ContainerFleet.TargetConfiguration`.
|
|
387
|
+
* Settings for a target-based scaling policy. A target-based policy tracks a particular fleet metric specifies a target value for the metric. As player usage changes, the policy triggers Amazon GameLift to adjust capacity so that the metric returns to the target value. The target configuration specifies settings as needed for the target based policy, including the target value.
|
|
388
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containerfleet-targetconfiguration.html}
|
|
389
|
+
*/
|
|
390
|
+
export type TargetConfiguration = {
|
|
391
|
+
/**
|
|
392
|
+
* Desired value to use with a target-based scaling policy. The value must be relevant for whatever metric the scaling policy is using. For example, in a policy using the metric PercentAvailableGameSessions, the target value should be the preferred size of the fleet's buffer (the percent of capacity that should be idle and ready for new game sessions).
|
|
393
|
+
*/
|
|
394
|
+
TargetValue: number;
|
|
395
|
+
};
|
|
396
|
+
/**
|
|
397
|
+
* The AWS::GameLift::ContainerFleet resource creates an Amazon GameLift (GameLift) container fleet to host game servers.
|
|
398
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-containerfleet.html}
|
|
399
|
+
*/
|
|
400
|
+
export declare class GameLiftContainerFleet extends $Resource<"AWS::GameLift::ContainerFleet", GameLiftContainerFleetProperties, GameLiftContainerFleetAttributes> {
|
|
401
|
+
static readonly Type = "AWS::GameLift::ContainerFleet";
|
|
402
|
+
constructor(logicalId: string, properties: GameLiftContainerFleetProperties, options?: $ResourceOptions);
|
|
403
|
+
}
|
|
404
|
+
//# sourceMappingURL=AWS-GameLift-ContainerFleet.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Resource as $Resource } from "@awboost/cfn-template-builder/template/resource";
|
|
2
|
+
/**
|
|
3
|
+
* The AWS::GameLift::ContainerFleet resource creates an Amazon GameLift (GameLift) container fleet to host game servers.
|
|
4
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-containerfleet.html}
|
|
5
|
+
*/
|
|
6
|
+
export class GameLiftContainerFleet extends $Resource {
|
|
7
|
+
static Type = "AWS::GameLift::ContainerFleet";
|
|
8
|
+
constructor(logicalId, properties, options) {
|
|
9
|
+
super(logicalId, GameLiftContainerFleet.Type, properties, options);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=AWS-GameLift-ContainerFleet.js.map
|