globalaccelerator.d.ts
38.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class GlobalAccelerator extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: GlobalAccelerator.Types.ClientConfiguration)
config: Config & GlobalAccelerator.Types.ClientConfiguration;
/**
* Create an accelerator. An accelerator includes one or more listeners that process inbound connections and direct traffic to one or more endpoint groups, each of which includes endpoints, such as Network Load Balancers. To see an AWS CLI example of creating an accelerator, scroll down to Example. You must specify the US-West-2 (Oregon) Region to create or update accelerators.
*/
createAccelerator(params: GlobalAccelerator.Types.CreateAcceleratorRequest, callback?: (err: AWSError, data: GlobalAccelerator.Types.CreateAcceleratorResponse) => void): Request<GlobalAccelerator.Types.CreateAcceleratorResponse, AWSError>;
/**
* Create an accelerator. An accelerator includes one or more listeners that process inbound connections and direct traffic to one or more endpoint groups, each of which includes endpoints, such as Network Load Balancers. To see an AWS CLI example of creating an accelerator, scroll down to Example. You must specify the US-West-2 (Oregon) Region to create or update accelerators.
*/
createAccelerator(callback?: (err: AWSError, data: GlobalAccelerator.Types.CreateAcceleratorResponse) => void): Request<GlobalAccelerator.Types.CreateAcceleratorResponse, AWSError>;
/**
* Create an endpoint group for the specified listener. An endpoint group is a collection of endpoints in one AWS Region. To see an AWS CLI example of creating an endpoint group, scroll down to Example.
*/
createEndpointGroup(params: GlobalAccelerator.Types.CreateEndpointGroupRequest, callback?: (err: AWSError, data: GlobalAccelerator.Types.CreateEndpointGroupResponse) => void): Request<GlobalAccelerator.Types.CreateEndpointGroupResponse, AWSError>;
/**
* Create an endpoint group for the specified listener. An endpoint group is a collection of endpoints in one AWS Region. To see an AWS CLI example of creating an endpoint group, scroll down to Example.
*/
createEndpointGroup(callback?: (err: AWSError, data: GlobalAccelerator.Types.CreateEndpointGroupResponse) => void): Request<GlobalAccelerator.Types.CreateEndpointGroupResponse, AWSError>;
/**
* Create a listener to process inbound connections from clients to an accelerator. Connections arrive to assigned static IP addresses on a port, port range, or list of port ranges that you specify. To see an AWS CLI example of creating a listener, scroll down to Example.
*/
createListener(params: GlobalAccelerator.Types.CreateListenerRequest, callback?: (err: AWSError, data: GlobalAccelerator.Types.CreateListenerResponse) => void): Request<GlobalAccelerator.Types.CreateListenerResponse, AWSError>;
/**
* Create a listener to process inbound connections from clients to an accelerator. Connections arrive to assigned static IP addresses on a port, port range, or list of port ranges that you specify. To see an AWS CLI example of creating a listener, scroll down to Example.
*/
createListener(callback?: (err: AWSError, data: GlobalAccelerator.Types.CreateListenerResponse) => void): Request<GlobalAccelerator.Types.CreateListenerResponse, AWSError>;
/**
* Delete an accelerator. Note: before you can delete an accelerator, you must disable it and remove all dependent resources (listeners and endpoint groups).
*/
deleteAccelerator(params: GlobalAccelerator.Types.DeleteAcceleratorRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Delete an accelerator. Note: before you can delete an accelerator, you must disable it and remove all dependent resources (listeners and endpoint groups).
*/
deleteAccelerator(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Delete an endpoint group from a listener.
*/
deleteEndpointGroup(params: GlobalAccelerator.Types.DeleteEndpointGroupRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Delete an endpoint group from a listener.
*/
deleteEndpointGroup(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Delete a listener from an accelerator.
*/
deleteListener(params: GlobalAccelerator.Types.DeleteListenerRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Delete a listener from an accelerator.
*/
deleteListener(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Describe an accelerator. To see an AWS CLI example of describing an accelerator, scroll down to Example.
*/
describeAccelerator(params: GlobalAccelerator.Types.DescribeAcceleratorRequest, callback?: (err: AWSError, data: GlobalAccelerator.Types.DescribeAcceleratorResponse) => void): Request<GlobalAccelerator.Types.DescribeAcceleratorResponse, AWSError>;
/**
* Describe an accelerator. To see an AWS CLI example of describing an accelerator, scroll down to Example.
*/
describeAccelerator(callback?: (err: AWSError, data: GlobalAccelerator.Types.DescribeAcceleratorResponse) => void): Request<GlobalAccelerator.Types.DescribeAcceleratorResponse, AWSError>;
/**
* Describe the attributes of an accelerator.
*/
describeAcceleratorAttributes(params: GlobalAccelerator.Types.DescribeAcceleratorAttributesRequest, callback?: (err: AWSError, data: GlobalAccelerator.Types.DescribeAcceleratorAttributesResponse) => void): Request<GlobalAccelerator.Types.DescribeAcceleratorAttributesResponse, AWSError>;
/**
* Describe the attributes of an accelerator.
*/
describeAcceleratorAttributes(callback?: (err: AWSError, data: GlobalAccelerator.Types.DescribeAcceleratorAttributesResponse) => void): Request<GlobalAccelerator.Types.DescribeAcceleratorAttributesResponse, AWSError>;
/**
* Describe an endpoint group.
*/
describeEndpointGroup(params: GlobalAccelerator.Types.DescribeEndpointGroupRequest, callback?: (err: AWSError, data: GlobalAccelerator.Types.DescribeEndpointGroupResponse) => void): Request<GlobalAccelerator.Types.DescribeEndpointGroupResponse, AWSError>;
/**
* Describe an endpoint group.
*/
describeEndpointGroup(callback?: (err: AWSError, data: GlobalAccelerator.Types.DescribeEndpointGroupResponse) => void): Request<GlobalAccelerator.Types.DescribeEndpointGroupResponse, AWSError>;
/**
* Describe a listener.
*/
describeListener(params: GlobalAccelerator.Types.DescribeListenerRequest, callback?: (err: AWSError, data: GlobalAccelerator.Types.DescribeListenerResponse) => void): Request<GlobalAccelerator.Types.DescribeListenerResponse, AWSError>;
/**
* Describe a listener.
*/
describeListener(callback?: (err: AWSError, data: GlobalAccelerator.Types.DescribeListenerResponse) => void): Request<GlobalAccelerator.Types.DescribeListenerResponse, AWSError>;
/**
* List the accelerators for an AWS account.
*/
listAccelerators(params: GlobalAccelerator.Types.ListAcceleratorsRequest, callback?: (err: AWSError, data: GlobalAccelerator.Types.ListAcceleratorsResponse) => void): Request<GlobalAccelerator.Types.ListAcceleratorsResponse, AWSError>;
/**
* List the accelerators for an AWS account.
*/
listAccelerators(callback?: (err: AWSError, data: GlobalAccelerator.Types.ListAcceleratorsResponse) => void): Request<GlobalAccelerator.Types.ListAcceleratorsResponse, AWSError>;
/**
* List the endpoint groups that are associated with a listener.
*/
listEndpointGroups(params: GlobalAccelerator.Types.ListEndpointGroupsRequest, callback?: (err: AWSError, data: GlobalAccelerator.Types.ListEndpointGroupsResponse) => void): Request<GlobalAccelerator.Types.ListEndpointGroupsResponse, AWSError>;
/**
* List the endpoint groups that are associated with a listener.
*/
listEndpointGroups(callback?: (err: AWSError, data: GlobalAccelerator.Types.ListEndpointGroupsResponse) => void): Request<GlobalAccelerator.Types.ListEndpointGroupsResponse, AWSError>;
/**
* List the listeners for an accelerator.
*/
listListeners(params: GlobalAccelerator.Types.ListListenersRequest, callback?: (err: AWSError, data: GlobalAccelerator.Types.ListListenersResponse) => void): Request<GlobalAccelerator.Types.ListListenersResponse, AWSError>;
/**
* List the listeners for an accelerator.
*/
listListeners(callback?: (err: AWSError, data: GlobalAccelerator.Types.ListListenersResponse) => void): Request<GlobalAccelerator.Types.ListListenersResponse, AWSError>;
/**
* Update an accelerator. To see an AWS CLI example of updating an accelerator, scroll down to Example. You must specify the US-West-2 (Oregon) Region to create or update accelerators.
*/
updateAccelerator(params: GlobalAccelerator.Types.UpdateAcceleratorRequest, callback?: (err: AWSError, data: GlobalAccelerator.Types.UpdateAcceleratorResponse) => void): Request<GlobalAccelerator.Types.UpdateAcceleratorResponse, AWSError>;
/**
* Update an accelerator. To see an AWS CLI example of updating an accelerator, scroll down to Example. You must specify the US-West-2 (Oregon) Region to create or update accelerators.
*/
updateAccelerator(callback?: (err: AWSError, data: GlobalAccelerator.Types.UpdateAcceleratorResponse) => void): Request<GlobalAccelerator.Types.UpdateAcceleratorResponse, AWSError>;
/**
* Update the attributes for an accelerator. To see an AWS CLI example of updating an accelerator to enable flow logs, scroll down to Example.
*/
updateAcceleratorAttributes(params: GlobalAccelerator.Types.UpdateAcceleratorAttributesRequest, callback?: (err: AWSError, data: GlobalAccelerator.Types.UpdateAcceleratorAttributesResponse) => void): Request<GlobalAccelerator.Types.UpdateAcceleratorAttributesResponse, AWSError>;
/**
* Update the attributes for an accelerator. To see an AWS CLI example of updating an accelerator to enable flow logs, scroll down to Example.
*/
updateAcceleratorAttributes(callback?: (err: AWSError, data: GlobalAccelerator.Types.UpdateAcceleratorAttributesResponse) => void): Request<GlobalAccelerator.Types.UpdateAcceleratorAttributesResponse, AWSError>;
/**
* Update an endpoint group. To see an AWS CLI example of updating an endpoint group, scroll down to Example.
*/
updateEndpointGroup(params: GlobalAccelerator.Types.UpdateEndpointGroupRequest, callback?: (err: AWSError, data: GlobalAccelerator.Types.UpdateEndpointGroupResponse) => void): Request<GlobalAccelerator.Types.UpdateEndpointGroupResponse, AWSError>;
/**
* Update an endpoint group. To see an AWS CLI example of updating an endpoint group, scroll down to Example.
*/
updateEndpointGroup(callback?: (err: AWSError, data: GlobalAccelerator.Types.UpdateEndpointGroupResponse) => void): Request<GlobalAccelerator.Types.UpdateEndpointGroupResponse, AWSError>;
/**
* Update a listener.
*/
updateListener(params: GlobalAccelerator.Types.UpdateListenerRequest, callback?: (err: AWSError, data: GlobalAccelerator.Types.UpdateListenerResponse) => void): Request<GlobalAccelerator.Types.UpdateListenerResponse, AWSError>;
/**
* Update a listener.
*/
updateListener(callback?: (err: AWSError, data: GlobalAccelerator.Types.UpdateListenerResponse) => void): Request<GlobalAccelerator.Types.UpdateListenerResponse, AWSError>;
}
declare namespace GlobalAccelerator {
export interface Accelerator {
/**
* The Amazon Resource Name (ARN) of the accelerator.
*/
AcceleratorArn?: GenericString;
/**
* The name of the accelerator. The name must contain only alphanumeric characters or hyphens (-), and must not begin or end with a hyphen.
*/
Name?: GenericString;
/**
* The value for the address type must be IPv4.
*/
IpAddressType?: IpAddressType;
/**
* Indicates whether the accelerator is enabled. The value is true or false. The default value is true. If the value is set to true, the accelerator cannot be deleted. If set to false, accelerator can be deleted.
*/
Enabled?: GenericBoolean;
/**
* The static IP addresses that Global Accelerator associates with the accelerator.
*/
IpSets?: IpSets;
/**
* The Domain Name System (DNS) name that Global Accelerator creates that points to your accelerator's static IP addresses. The naming convention for the DNS name is: a lower case letter a, followed by a 16-bit random hex string, followed by .awsglobalaccelerator.com. For example: a1234567890abcdef.awsglobalaccelerator.com. For more information about the default DNS name, see Support for DNS Addressing in Global Accelerator in the AWS Global Accelerator Developer Guide.
*/
DnsName?: GenericString;
/**
* Describes the deployment status of the accelerator.
*/
Status?: AcceleratorStatus;
/**
* The date and time that the accelerator was created.
*/
CreatedTime?: Timestamp;
/**
* The date and time that the accelerator was last modified.
*/
LastModifiedTime?: Timestamp;
}
export interface AcceleratorAttributes {
/**
* Indicates whether flow logs are enabled. The default value is false. If the value is true, FlowLogsS3Bucket and FlowLogsS3Prefix must be specified. For more information, see Flow Logs in the AWS Global Accelerator Developer Guide.
*/
FlowLogsEnabled?: GenericBoolean;
/**
* The name of the Amazon S3 bucket for the flow logs. Attribute is required if FlowLogsEnabled is true. The bucket must exist and have a bucket policy that grants AWS Global Accelerator permission to write to the bucket.
*/
FlowLogsS3Bucket?: GenericString;
/**
* The prefix for the location in the Amazon S3 bucket for the flow logs. Attribute is required if FlowLogsEnabled is true. If you don’t specify a prefix, the flow logs are stored in the root of the bucket.
*/
FlowLogsS3Prefix?: GenericString;
}
export type AcceleratorStatus = "DEPLOYED"|"IN_PROGRESS"|string;
export type Accelerators = Accelerator[];
export type ClientAffinity = "NONE"|"SOURCE_IP"|string;
export interface CreateAcceleratorRequest {
/**
* The name of an accelerator. The name can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens (-), and must not begin or end with a hyphen.
*/
Name: GenericString;
/**
* The value for the address type must be IPv4.
*/
IpAddressType?: IpAddressType;
/**
* Indicates whether an accelerator is enabled. The value is true or false. The default value is true. If the value is set to true, an accelerator cannot be deleted. If set to false, the accelerator can be deleted.
*/
Enabled?: GenericBoolean;
/**
* A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of an accelerator.
*/
IdempotencyToken: IdempotencyToken;
}
export interface CreateAcceleratorResponse {
/**
* The accelerator that is created by specifying a listener and the supported IP address types.
*/
Accelerator?: Accelerator;
}
export interface CreateEndpointGroupRequest {
/**
* The Amazon Resource Name (ARN) of the listener.
*/
ListenerArn: GenericString;
/**
* The name of the AWS Region where the endpoint group is located. A listener can have only one endpoint group in a specific Region.
*/
EndpointGroupRegion: GenericString;
/**
* The list of endpoint objects.
*/
EndpointConfigurations?: EndpointConfigurations;
/**
* The percentage of traffic to send to an AWS Region. Additional traffic is distributed to other endpoint groups for this listener. Use this action to increase (dial up) or decrease (dial down) traffic to a specific Region. The percentage is applied to the traffic that would otherwise have been routed to the Region based on optimal routing. The default value is 100.
*/
TrafficDialPercentage?: TrafficDialPercentage;
/**
* The port that AWS Global Accelerator uses to check the health of endpoints that are part of this endpoint group. The default port is the listener port that this endpoint group is associated with. If listener port is a list of ports, Global Accelerator uses the first port in the list.
*/
HealthCheckPort?: HealthCheckPort;
/**
* The protocol that AWS Global Accelerator uses to check the health of endpoints that are part of this endpoint group. The default value is TCP.
*/
HealthCheckProtocol?: HealthCheckProtocol;
/**
* If the protocol is HTTP/S, then this specifies the path that is the destination for health check targets. The default value is slash (/).
*/
HealthCheckPath?: GenericString;
/**
* The time—10 seconds or 30 seconds—between each health check for an endpoint. The default value is 30.
*/
HealthCheckIntervalSeconds?: HealthCheckIntervalSeconds;
/**
* The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or to set an unhealthy endpoint to healthy. The default value is 3.
*/
ThresholdCount?: ThresholdCount;
/**
* A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of the request.
*/
IdempotencyToken: IdempotencyToken;
}
export interface CreateEndpointGroupResponse {
/**
* The information about the endpoint group that was created.
*/
EndpointGroup?: EndpointGroup;
}
export interface CreateListenerRequest {
/**
* The Amazon Resource Name (ARN) of your accelerator.
*/
AcceleratorArn: GenericString;
/**
* The list of port ranges to support for connections from clients to your accelerator.
*/
PortRanges: PortRanges;
/**
* The protocol for connections from clients to your accelerator.
*/
Protocol: Protocol;
/**
* Client affinity lets you direct all requests from a user to the same endpoint, if you have stateful applications, regardless of the port and protocol of the client request. Clienty affinity gives you control over whether to always route each client to the same specific endpoint. AWS Global Accelerator uses a consistent-flow hashing algorithm to choose the optimal endpoint for a connection. If client affinity is NONE, Global Accelerator uses the "five-tuple" (5-tuple) properties—source IP address, source port, destination IP address, destination port, and protocol—to select the hash value, and then chooses the best endpoint. However, with this setting, if someone uses different ports to connect to Global Accelerator, their connections might not be always routed to the same endpoint because the hash value changes. If you want a given client to always be routed to the same endpoint, set client affinity to SOURCE_IP instead. When you use the SOURCE_IP setting, Global Accelerator uses the "two-tuple" (2-tuple) properties— source (client) IP address and destination IP address—to select the hash value. The default value is NONE.
*/
ClientAffinity?: ClientAffinity;
/**
* A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of the request.
*/
IdempotencyToken: IdempotencyToken;
}
export interface CreateListenerResponse {
/**
* The listener that you've created.
*/
Listener?: Listener;
}
export interface DeleteAcceleratorRequest {
/**
* The Amazon Resource Name (ARN) of an accelerator.
*/
AcceleratorArn: GenericString;
}
export interface DeleteEndpointGroupRequest {
/**
* The Amazon Resource Name (ARN) of the endpoint group to delete.
*/
EndpointGroupArn: GenericString;
}
export interface DeleteListenerRequest {
/**
* The Amazon Resource Name (ARN) of the listener.
*/
ListenerArn: GenericString;
}
export interface DescribeAcceleratorAttributesRequest {
/**
* The Amazon Resource Name (ARN) of the accelerator with the attributes that you want to describe.
*/
AcceleratorArn: GenericString;
}
export interface DescribeAcceleratorAttributesResponse {
/**
* The attributes of the accelerator.
*/
AcceleratorAttributes?: AcceleratorAttributes;
}
export interface DescribeAcceleratorRequest {
/**
* The Amazon Resource Name (ARN) of the accelerator to describe.
*/
AcceleratorArn: GenericString;
}
export interface DescribeAcceleratorResponse {
/**
* The description of the accelerator.
*/
Accelerator?: Accelerator;
}
export interface DescribeEndpointGroupRequest {
/**
* The Amazon Resource Name (ARN) of the endpoint group to describe.
*/
EndpointGroupArn: GenericString;
}
export interface DescribeEndpointGroupResponse {
/**
* The description of an endpoint group.
*/
EndpointGroup?: EndpointGroup;
}
export interface DescribeListenerRequest {
/**
* The Amazon Resource Name (ARN) of the listener to describe.
*/
ListenerArn: GenericString;
}
export interface DescribeListenerResponse {
/**
* The description of a listener.
*/
Listener?: Listener;
}
export interface EndpointConfiguration {
/**
* An ID for the endpoint. If the endpoint is a Network Load Balancer or Application Load Balancer, this is the Amazon Resource Name (ARN) of the resource. If the endpoint is an Elastic IP address, this is the Elastic IP address allocation ID.
*/
EndpointId?: GenericString;
/**
* The weight associated with the endpoint. When you add weights to endpoints, you configure AWS Global Accelerator to route traffic based on proportions that you specify. For example, you might specify endpoint weights of 4, 5, 5, and 6 (sum=20). The result is that 4/20 of your traffic, on average, is routed to the first endpoint, 5/20 is routed both to the second and third endpoints, and 6/20 is routed to the last endpoint. For more information, see Endpoint Weights in the AWS Global Accelerator Developer Guide.
*/
Weight?: EndpointWeight;
/**
* Indicates whether client IP address preservation is enabled for an Application Load Balancer endpoint. The value is true or false. The default value is true for new accelerators. If the value is set to true, the client's IP address is preserved in the X-Forwarded-For request header as traffic travels to applications on the Application Load Balancer endpoint fronted by the accelerator. For more information, see Viewing Client IP Addresses in AWS Global Accelerator in the AWS Global Accelerator Developer Guide.
*/
ClientIPPreservationEnabled?: GenericBoolean;
}
export type EndpointConfigurations = EndpointConfiguration[];
export interface EndpointDescription {
/**
* An ID for the endpoint. If the endpoint is a Network Load Balancer or Application Load Balancer, this is the Amazon Resource Name (ARN) of the resource. If the endpoint is an Elastic IP address, this is the Elastic IP address allocation ID. An Application Load Balancer can be either internal or internet-facing.
*/
EndpointId?: GenericString;
/**
* The weight associated with the endpoint. When you add weights to endpoints, you configure AWS Global Accelerator to route traffic based on proportions that you specify. For example, you might specify endpoint weights of 4, 5, 5, and 6 (sum=20). The result is that 4/20 of your traffic, on average, is routed to the first endpoint, 5/20 is routed both to the second and third endpoints, and 6/20 is routed to the last endpoint. For more information, see Endpoint Weights in the AWS Global Accelerator Developer Guide.
*/
Weight?: EndpointWeight;
/**
* The health status of the endpoint.
*/
HealthState?: HealthState;
/**
* The reason code associated with why the endpoint is not healthy. If the endpoint state is healthy, a reason code is not provided. If the endpoint state is unhealthy, the reason code can be one of the following values: Timeout: The health check requests to the endpoint are timing out before returning a status. Failed: The health check failed, for example because the endpoint response was invalid (malformed). If the endpoint state is initial, the reason code can be one of the following values: ProvisioningInProgress: The endpoint is in the process of being provisioned. InitialHealthChecking: Global Accelerator is still setting up the minimum number of health checks for the endpoint that are required to determine its health status.
*/
HealthReason?: GenericString;
/**
* Indicates whether client IP address preservation is enabled for an Application Load Balancer endpoint. The value is true or false. The default value is true for new accelerators. If the value is set to true, the client's IP address is preserved in the X-Forwarded-For request header as traffic travels to applications on the Application Load Balancer endpoint fronted by the accelerator. For more information, see Viewing Client IP Addresses in AWS Global Accelerator in the AWS Global Accelerator Developer Guide.
*/
ClientIPPreservationEnabled?: GenericBoolean;
}
export type EndpointDescriptions = EndpointDescription[];
export interface EndpointGroup {
/**
* The Amazon Resource Name (ARN) of the endpoint group.
*/
EndpointGroupArn?: GenericString;
/**
* The AWS Region that this endpoint group belongs.
*/
EndpointGroupRegion?: GenericString;
/**
* The list of endpoint objects.
*/
EndpointDescriptions?: EndpointDescriptions;
/**
* The percentage of traffic to send to an AWS Region. Additional traffic is distributed to other endpoint groups for this listener. Use this action to increase (dial up) or decrease (dial down) traffic to a specific Region. The percentage is applied to the traffic that would otherwise have been routed to the Region based on optimal routing. The default value is 100.
*/
TrafficDialPercentage?: TrafficDialPercentage;
/**
* The port that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group. The default port is the port for the listener that this endpoint group is associated with. If the listener port is a list, Global Accelerator uses the first specified port in the list of ports.
*/
HealthCheckPort?: HealthCheckPort;
/**
* The protocol that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group. The default value is TCP.
*/
HealthCheckProtocol?: HealthCheckProtocol;
/**
* If the protocol is HTTP/S, then this value provides the ping path that Global Accelerator uses for the destination on the endpoints for health checks. The default is slash (/).
*/
HealthCheckPath?: GenericString;
/**
* The time—10 seconds or 30 seconds—between health checks for each endpoint. The default value is 30.
*/
HealthCheckIntervalSeconds?: HealthCheckIntervalSeconds;
/**
* The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or to set an unhealthy endpoint to healthy. The default value is 3.
*/
ThresholdCount?: ThresholdCount;
}
export type EndpointGroups = EndpointGroup[];
export type EndpointWeight = number;
export type GenericBoolean = boolean;
export type GenericString = string;
export type HealthCheckIntervalSeconds = number;
export type HealthCheckPort = number;
export type HealthCheckProtocol = "TCP"|"HTTP"|"HTTPS"|string;
export type HealthState = "INITIAL"|"HEALTHY"|"UNHEALTHY"|string;
export type IdempotencyToken = string;
export type IpAddress = string;
export type IpAddressType = "IPV4"|string;
export type IpAddresses = IpAddress[];
export interface IpSet {
/**
* The types of IP addresses included in this IP set.
*/
IpFamily?: GenericString;
/**
* The array of IP addresses in the IP address set. An IP address set can have a maximum of two IP addresses.
*/
IpAddresses?: IpAddresses;
}
export type IpSets = IpSet[];
export interface ListAcceleratorsRequest {
/**
* The number of Global Accelerator objects that you want to return with this call. The default value is 10.
*/
MaxResults?: MaxResults;
/**
* The token for the next set of results. You receive this token from a previous call.
*/
NextToken?: GenericString;
}
export interface ListAcceleratorsResponse {
/**
* The list of accelerators for a customer account.
*/
Accelerators?: Accelerators;
/**
* The token for the next set of results. You receive this token from a previous call.
*/
NextToken?: GenericString;
}
export interface ListEndpointGroupsRequest {
/**
* The Amazon Resource Name (ARN) of the listener.
*/
ListenerArn: GenericString;
/**
* The number of endpoint group objects that you want to return with this call. The default value is 10.
*/
MaxResults?: MaxResults;
/**
* The token for the next set of results. You receive this token from a previous call.
*/
NextToken?: GenericString;
}
export interface ListEndpointGroupsResponse {
/**
* The list of the endpoint groups associated with a listener.
*/
EndpointGroups?: EndpointGroups;
/**
* The token for the next set of results. You receive this token from a previous call.
*/
NextToken?: GenericString;
}
export interface ListListenersRequest {
/**
* The Amazon Resource Name (ARN) of the accelerator for which you want to list listener objects.
*/
AcceleratorArn: GenericString;
/**
* The number of listener objects that you want to return with this call. The default value is 10.
*/
MaxResults?: MaxResults;
/**
* The token for the next set of results. You receive this token from a previous call.
*/
NextToken?: GenericString;
}
export interface ListListenersResponse {
/**
* The list of listeners for an accelerator.
*/
Listeners?: Listeners;
/**
* The token for the next set of results. You receive this token from a previous call.
*/
NextToken?: GenericString;
}
export interface Listener {
/**
* The Amazon Resource Name (ARN) of the listener.
*/
ListenerArn?: GenericString;
/**
* The list of port ranges for the connections from clients to the accelerator.
*/
PortRanges?: PortRanges;
/**
* The protocol for the connections from clients to the accelerator.
*/
Protocol?: Protocol;
/**
* Client affinity lets you direct all requests from a user to the same endpoint, if you have stateful applications, regardless of the port and protocol of the client request. Clienty affinity gives you control over whether to always route each client to the same specific endpoint. AWS Global Accelerator uses a consistent-flow hashing algorithm to choose the optimal endpoint for a connection. If client affinity is NONE, Global Accelerator uses the "five-tuple" (5-tuple) properties—source IP address, source port, destination IP address, destination port, and protocol—to select the hash value, and then chooses the best endpoint. However, with this setting, if someone uses different ports to connect to Global Accelerator, their connections might not be always routed to the same endpoint because the hash value changes. If you want a given client to always be routed to the same endpoint, set client affinity to SOURCE_IP instead. When you use the SOURCE_IP setting, Global Accelerator uses the "two-tuple" (2-tuple) properties— source (client) IP address and destination IP address—to select the hash value. The default value is NONE.
*/
ClientAffinity?: ClientAffinity;
}
export type Listeners = Listener[];
export type MaxResults = number;
export type PortNumber = number;
export interface PortRange {
/**
* The first port in the range of ports, inclusive.
*/
FromPort?: PortNumber;
/**
* The last port in the range of ports, inclusive.
*/
ToPort?: PortNumber;
}
export type PortRanges = PortRange[];
export type Protocol = "TCP"|"UDP"|string;
export type ThresholdCount = number;
export type Timestamp = Date;
export type TrafficDialPercentage = number;
export interface UpdateAcceleratorAttributesRequest {
/**
* The Amazon Resource Name (ARN) of the accelerator that you want to update.
*/
AcceleratorArn: GenericString;
/**
* Update whether flow logs are enabled. The default value is false. If the value is true, FlowLogsS3Bucket and FlowLogsS3Prefix must be specified. For more information, see Flow Logs in the AWS Global Accelerator Developer Guide.
*/
FlowLogsEnabled?: GenericBoolean;
/**
* The name of the Amazon S3 bucket for the flow logs. Attribute is required if FlowLogsEnabled is true. The bucket must exist and have a bucket policy that grants AWS Global Accelerator permission to write to the bucket.
*/
FlowLogsS3Bucket?: GenericString;
/**
* Update the prefix for the location in the Amazon S3 bucket for the flow logs. Attribute is required if FlowLogsEnabled is true. If you don’t specify a prefix, the flow logs are stored in the root of the bucket.
*/
FlowLogsS3Prefix?: GenericString;
}
export interface UpdateAcceleratorAttributesResponse {
/**
* Updated attributes for the accelerator.
*/
AcceleratorAttributes?: AcceleratorAttributes;
}
export interface UpdateAcceleratorRequest {
/**
* The Amazon Resource Name (ARN) of the accelerator to update.
*/
AcceleratorArn: GenericString;
/**
* The name of the accelerator. The name can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens (-), and must not begin or end with a hyphen.
*/
Name?: GenericString;
/**
* The value for the address type must be IPv4.
*/
IpAddressType?: IpAddressType;
/**
* Indicates whether an accelerator is enabled. The value is true or false. The default value is true. If the value is set to true, the accelerator cannot be deleted. If set to false, the accelerator can be deleted.
*/
Enabled?: GenericBoolean;
}
export interface UpdateAcceleratorResponse {
/**
* Information about the updated accelerator.
*/
Accelerator?: Accelerator;
}
export interface UpdateEndpointGroupRequest {
/**
* The Amazon Resource Name (ARN) of the endpoint group.
*/
EndpointGroupArn: GenericString;
/**
* The list of endpoint objects.
*/
EndpointConfigurations?: EndpointConfigurations;
/**
* The percentage of traffic to send to an AWS Region. Additional traffic is distributed to other endpoint groups for this listener. Use this action to increase (dial up) or decrease (dial down) traffic to a specific Region. The percentage is applied to the traffic that would otherwise have been routed to the Region based on optimal routing. The default value is 100.
*/
TrafficDialPercentage?: TrafficDialPercentage;
/**
* The port that AWS Global Accelerator uses to check the health of endpoints that are part of this endpoint group. The default port is the listener port that this endpoint group is associated with. If the listener port is a list of ports, Global Accelerator uses the first port in the list.
*/
HealthCheckPort?: HealthCheckPort;
/**
* The protocol that AWS Global Accelerator uses to check the health of endpoints that are part of this endpoint group. The default value is TCP.
*/
HealthCheckProtocol?: HealthCheckProtocol;
/**
* If the protocol is HTTP/S, then this specifies the path that is the destination for health check targets. The default value is slash (/).
*/
HealthCheckPath?: GenericString;
/**
* The time—10 seconds or 30 seconds—between each health check for an endpoint. The default value is 30.
*/
HealthCheckIntervalSeconds?: HealthCheckIntervalSeconds;
/**
* The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or to set an unhealthy endpoint to healthy. The default value is 3.
*/
ThresholdCount?: ThresholdCount;
}
export interface UpdateEndpointGroupResponse {
/**
* The information about the endpoint group that was updated.
*/
EndpointGroup?: EndpointGroup;
}
export interface UpdateListenerRequest {
/**
* The Amazon Resource Name (ARN) of the listener to update.
*/
ListenerArn: GenericString;
/**
* The updated list of port ranges for the connections from clients to the accelerator.
*/
PortRanges?: PortRanges;
/**
* The updated protocol for the connections from clients to the accelerator.
*/
Protocol?: Protocol;
/**
* Client affinity lets you direct all requests from a user to the same endpoint, if you have stateful applications, regardless of the port and protocol of the client request. Clienty affinity gives you control over whether to always route each client to the same specific endpoint. AWS Global Accelerator uses a consistent-flow hashing algorithm to choose the optimal endpoint for a connection. If client affinity is NONE, Global Accelerator uses the "five-tuple" (5-tuple) properties—source IP address, source port, destination IP address, destination port, and protocol—to select the hash value, and then chooses the best endpoint. However, with this setting, if someone uses different ports to connect to Global Accelerator, their connections might not be always routed to the same endpoint because the hash value changes. If you want a given client to always be routed to the same endpoint, set client affinity to SOURCE_IP instead. When you use the SOURCE_IP setting, Global Accelerator uses the "two-tuple" (2-tuple) properties— source (client) IP address and destination IP address—to select the hash value. The default value is NONE.
*/
ClientAffinity?: ClientAffinity;
}
export interface UpdateListenerResponse {
/**
* Information for the updated listener.
*/
Listener?: Listener;
}
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
export type apiVersion = "2018-08-08"|"latest"|string;
export interface ClientApiVersions {
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
apiVersion?: apiVersion;
}
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
/**
* Contains interfaces for use with the GlobalAccelerator client.
*/
export import Types = GlobalAccelerator;
}
export = GlobalAccelerator;