@aws-sdk/client-global-accelerator 3.137.0 → 3.138.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/README.md +22 -119
- package/dist-cjs/models/models_0.js +13 -3
- package/dist-cjs/protocols/Aws_json1_1.js +29 -0
- package/dist-es/models/models_0.js +7 -0
- package/dist-es/protocols/Aws_json1_1.js +56 -24
- package/dist-types/GlobalAccelerator.d.ts +66 -158
- package/dist-types/GlobalAcceleratorClient.d.ts +25 -120
- package/dist-types/commands/AdvertiseByoipCidrCommand.d.ts +4 -4
- package/dist-types/commands/CreateAcceleratorCommand.d.ts +3 -2
- package/dist-types/commands/CreateCustomRoutingAcceleratorCommand.d.ts +4 -3
- package/dist-types/commands/CreateCustomRoutingEndpointGroupCommand.d.ts +1 -1
- package/dist-types/commands/CreateEndpointGroupCommand.d.ts +1 -1
- package/dist-types/commands/DeleteAcceleratorCommand.d.ts +4 -4
- package/dist-types/commands/DeleteCustomRoutingAcceleratorCommand.d.ts +3 -3
- package/dist-types/commands/DeprovisionByoipCidrCommand.d.ts +3 -3
- package/dist-types/commands/ListAcceleratorsCommand.d.ts +1 -1
- package/dist-types/commands/ListCustomRoutingAcceleratorsCommand.d.ts +1 -1
- package/dist-types/commands/ListCustomRoutingPortMappingsCommand.d.ts +4 -4
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/ProvisionByoipCidrCommand.d.ts +3 -3
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAcceleratorCommand.d.ts +3 -2
- package/dist-types/commands/WithdrawByoipCidrCommand.d.ts +3 -3
- package/dist-types/models/models_0.d.ts +188 -129
- package/dist-types/ts3.4/models/models_0.d.ts +20 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.138.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.137.0...v3.138.0) (2022-07-27)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-global-accelerator:** Global Accelerator now supports dual-stack accelerators, enabling support for IPv4 and IPv6 traffic. ([d07e946](https://github.com/aws/aws-sdk-js-v3/commit/d07e94626b332aabe551dbef6f224e877f2cb502))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.137.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.136.1...v3.137.0) (2022-07-26)
|
|
7
18
|
|
|
8
19
|
|
package/README.md
CHANGED
|
@@ -9,19 +9,18 @@
|
|
|
9
9
|
|
|
10
10
|
AWS SDK for JavaScript GlobalAccelerator Client for Node.js, Browser and React Native.
|
|
11
11
|
|
|
12
|
-
<fullname>
|
|
12
|
+
<fullname>Global Accelerator</fullname>
|
|
13
13
|
|
|
14
|
-
<p>This is the <i>
|
|
15
|
-
|
|
16
|
-
<a href="https://docs.aws.amazon.com/global-accelerator/latest/dg/
|
|
17
|
-
|
|
18
|
-
<p>AWS Global Accelerator is a service in which you create <i>accelerators</i> to improve the performance
|
|
14
|
+
<p>This is the <i>Global Accelerator API Reference</i>. This guide is for developers who need detailed information about
|
|
15
|
+
Global Accelerator API actions, data types, and errors. For more information about Global Accelerator features, see the
|
|
16
|
+
<a href="https://docs.aws.amazon.com/global-accelerator/latest/dg/what-is-global-accelerator.html">Global Accelerator Developer Guide</a>.</p>
|
|
17
|
+
<p>Global Accelerator is a service in which you create <i>accelerators</i> to improve the performance
|
|
19
18
|
of your applications for local and global users. Depending on the type of accelerator you choose, you can
|
|
20
19
|
gain additional benefits. </p>
|
|
21
20
|
<ul>
|
|
22
21
|
<li>
|
|
23
22
|
<p>By using a standard accelerator, you can improve availability of your internet applications
|
|
24
|
-
that are used by a global audience. With a standard accelerator, Global Accelerator directs traffic to optimal endpoints over the
|
|
23
|
+
that are used by a global audience. With a standard accelerator, Global Accelerator directs traffic to optimal endpoints over the Amazon Web Services
|
|
25
24
|
global network. </p>
|
|
26
25
|
</li>
|
|
27
26
|
<li>
|
|
@@ -30,16 +29,21 @@ can use application logic to directly map one or more users to a specific endpoi
|
|
|
30
29
|
</li>
|
|
31
30
|
</ul>
|
|
32
31
|
<important>
|
|
33
|
-
<p>Global Accelerator is a global service that supports endpoints in multiple
|
|
34
|
-
US West (Oregon) Region to create or
|
|
32
|
+
<p>Global Accelerator is a global service that supports endpoints in multiple Amazon Web Services Regions but you must specify the
|
|
33
|
+
US West (Oregon) Region to create, update, or otherwise work with accelerators. That is, for example, specify <code>--region us-west-2</code>
|
|
34
|
+
on AWS CLI commands.</p>
|
|
35
35
|
</important>
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
|
|
37
|
+
<p>By default, Global Accelerator provides you with static IP addresses that you associate with your accelerator. The static IP addresses
|
|
38
|
+
are anycast from the Amazon Web Services edge network. For IPv4, Global Accelerator provides two static IPv4 addresses. For dual-stack,
|
|
39
|
+
Global Accelerator provides a total of four addresses: two static IPv4 addresses and two static IPv6 addresses.
|
|
40
|
+
With a standard accelerator for IPv4, instead of using the addresses that Global Accelerator provides, you can configure
|
|
41
|
+
these entry points to be IPv4 addresses from your own IP address ranges that you bring toGlobal Accelerator (BYOIP). </p>
|
|
42
|
+
|
|
43
|
+
<p>For a standard accelerator,
|
|
44
|
+
they distribute incoming application traffic across multiple endpoint resources in multiple Amazon Web Services Regions , which increases
|
|
41
45
|
the availability of your applications. Endpoints for standard accelerators can be Network Load Balancers, Application Load Balancers,
|
|
42
|
-
Amazon EC2 instances, or Elastic IP addresses that are located in one
|
|
46
|
+
Amazon EC2 instances, or Elastic IP addresses that are located in one Amazon Web Services Region or multiple Amazon Web Services Regions. For custom routing
|
|
43
47
|
accelerators, you map traffic that arrives to the static IP addresses to specific Amazon EC2 servers in endpoints that
|
|
44
48
|
are virtual private cloud (VPC) subnets.</p>
|
|
45
49
|
|
|
@@ -51,113 +55,12 @@ are assigned to it, so you can no longer route traffic by using them. You can us
|
|
|
51
55
|
IAM policies like tag-based permissions with Global Accelerator to limit the users who have
|
|
52
56
|
permissions to delete an accelerator. For more information, see <a href="https://docs.aws.amazon.com/global-accelerator/latest/dg/access-control-manage-access-tag-policies.html">Tag-based policies</a>.</p>
|
|
53
57
|
</important>
|
|
54
|
-
<p>For standard accelerators, Global Accelerator uses the
|
|
58
|
+
<p>For standard accelerators, Global Accelerator uses the Amazon Web Services global network to route traffic to the optimal regional endpoint based
|
|
55
59
|
on health, client location, and policies that you configure. The service reacts instantly to
|
|
56
60
|
changes in health or configuration to ensure that internet traffic from clients is always
|
|
57
61
|
directed to healthy endpoints.</p>
|
|
58
|
-
|
|
59
|
-
<
|
|
60
|
-
<a href="https://docs.aws.amazon.com/about-aws/global-infrastructure/regional-product-services/">AWS
|
|
61
|
-
Region Table</a>.</p>
|
|
62
|
-
|
|
63
|
-
<p>AWS Global Accelerator includes the following components:</p>
|
|
64
|
-
<dl>
|
|
65
|
-
<dt>Static IP addresses</dt>
|
|
66
|
-
<dd>
|
|
67
|
-
<p>Global Accelerator provides you with a set of two static IP addresses that are anycast from the AWS edge
|
|
68
|
-
network. If you bring your own IP address range to AWS (BYOIP) to use with a standard accelerator, you
|
|
69
|
-
can instead assign IP addresses from your own pool to use with your accelerator. For more information,
|
|
70
|
-
see <a href="https://docs.aws.amazon.com/global-accelerator/latest/dg/using-byoip.html">
|
|
71
|
-
Bring your own IP addresses (BYOIP) in AWS Global Accelerator</a>.</p>
|
|
72
|
-
<p>The IP addresses serve as single fixed entry points for your clients. If you already have Elastic
|
|
73
|
-
Load Balancing load balancers, Amazon EC2 instances, or Elastic IP address resources set up for your applications,
|
|
74
|
-
you can easily add those to a standard accelerator in Global Accelerator. This allows Global Accelerator to use static IP addresses
|
|
75
|
-
to access the resources.</p>
|
|
76
|
-
<p>The static IP addresses remain assigned to your accelerator for as long as it exists, even
|
|
77
|
-
if you disable the accelerator and it no longer accepts or routes traffic.
|
|
78
|
-
However, when you <i>delete</i> an accelerator, you lose the
|
|
79
|
-
static IP addresses that are assigned to it, so you can no longer route
|
|
80
|
-
traffic by using them. You can use IAM policies like tag-based permissions
|
|
81
|
-
with Global Accelerator to delete an accelerator. For more information, see <a href="https://docs.aws.amazon.com/global-accelerator/latest/dg/access-control-manage-access-tag-policies.html">Tag-based policies</a>.</p>
|
|
82
|
-
</dd>
|
|
83
|
-
<dt>Accelerator</dt>
|
|
84
|
-
<dd>
|
|
85
|
-
<p>An accelerator directs traffic to endpoints over the AWS global network to improve the
|
|
86
|
-
performance of your internet applications. Each accelerator includes one or more listeners.</p>
|
|
87
|
-
<p>There are two types of accelerators:</p>
|
|
88
|
-
<ul>
|
|
89
|
-
<li>
|
|
90
|
-
<p>A <i>standard</i> accelerator directs traffic to the optimal AWS endpoint based
|
|
91
|
-
on several factors, including the user’s location, the health of the endpoint, and the endpoint weights
|
|
92
|
-
that you configure. This improves the availability and performance of your applications.
|
|
93
|
-
Endpoints can be Network Load Balancers, Application Load Balancers, Amazon EC2 instances, or Elastic IP addresses.</p>
|
|
94
|
-
</li>
|
|
95
|
-
<li>
|
|
96
|
-
<p>A <i>custom routing</i> accelerator directs traffic to one of possibly thousands of
|
|
97
|
-
Amazon EC2 instances running in a single or multiple virtual private
|
|
98
|
-
clouds (VPCs). With custom routing, listener ports are mapped to
|
|
99
|
-
statically associate port ranges with VPC subnets, which
|
|
100
|
-
allows Global Accelerator to determine an EC2 instance IP address at the time of
|
|
101
|
-
connection. By default, all port mapping destinations in a VPC
|
|
102
|
-
subnet can't receive traffic. You can choose to configure all
|
|
103
|
-
destinations in the subnet to receive traffic, or to specify
|
|
104
|
-
individual port mappings that can receive traffic.</p>
|
|
105
|
-
</li>
|
|
106
|
-
</ul>
|
|
107
|
-
<p>For more information, see <a href="https://docs.aws.amazon.com/global-accelerator/latest/dg/introduction-accelerator-types.html">Types of accelerators</a>.</p>
|
|
108
|
-
</dd>
|
|
109
|
-
<dt>DNS name</dt>
|
|
110
|
-
<dd>
|
|
111
|
-
<p>Global Accelerator assigns each accelerator a default Domain Name System (DNS) name, similar to
|
|
112
|
-
<code>a1234567890abcdef.awsglobalaccelerator.com</code>, that points to
|
|
113
|
-
the static IP addresses that Global Accelerator assigns to you or that you choose from your
|
|
114
|
-
own IP address range. Depending on the use
|
|
115
|
-
case, you can use your accelerator's static IP addresses or DNS name to
|
|
116
|
-
route traffic to your accelerator, or set up DNS records to route traffic using
|
|
117
|
-
your own custom domain name.</p>
|
|
118
|
-
</dd>
|
|
119
|
-
<dt>Network zone</dt>
|
|
120
|
-
<dd>
|
|
121
|
-
<p>A network zone services the static IP addresses for your accelerator from a unique IP subnet. Similar to an
|
|
122
|
-
AWS Availability Zone, a network zone is an isolated unit with its own set of physical infrastructure.
|
|
123
|
-
When you configure an accelerator, by default, Global Accelerator allocates two IPv4 addresses for it. If one IP address from a
|
|
124
|
-
network zone becomes unavailable due to IP address blocking by certain client networks, or network
|
|
125
|
-
disruptions, then client applications can retry on the healthy static IP address from the other isolated
|
|
126
|
-
network zone.</p>
|
|
127
|
-
</dd>
|
|
128
|
-
<dt>Listener</dt>
|
|
129
|
-
<dd>
|
|
130
|
-
<p>A listener processes inbound connections from clients to Global Accelerator, based on the port (or port range)
|
|
131
|
-
and protocol (or protocols) that you configure. A listener can be configured for TCP, UDP, or both TCP and UDP protocols. Each
|
|
132
|
-
listener has one or more endpoint groups associated with it, and traffic is forwarded
|
|
133
|
-
to endpoints in one of the groups. You associate endpoint groups with listeners by specifying the Regions that you
|
|
134
|
-
want to distribute traffic to. With a standard accelerator, traffic is distributed to optimal endpoints within the endpoint
|
|
135
|
-
groups associated with a listener.</p>
|
|
136
|
-
</dd>
|
|
137
|
-
<dt>Endpoint group</dt>
|
|
138
|
-
<dd>
|
|
139
|
-
<p>Each endpoint group is associated with a specific AWS Region. Endpoint groups include one or
|
|
140
|
-
more endpoints in the Region. With a standard accelerator, you can increase or reduce the percentage of
|
|
141
|
-
traffic that would be otherwise directed to an endpoint group by adjusting a
|
|
142
|
-
setting called a <i>traffic dial</i>. The traffic dial lets
|
|
143
|
-
you easily do performance testing or blue/green deployment testing, for example, for new
|
|
144
|
-
releases across different AWS Regions. </p>
|
|
145
|
-
</dd>
|
|
146
|
-
<dt>Endpoint</dt>
|
|
147
|
-
<dd>
|
|
148
|
-
<p>An endpoint is a resource that Global Accelerator directs traffic to.</p>
|
|
149
|
-
<p>Endpoints for standard accelerators can be Network Load Balancers, Application Load Balancers, Amazon EC2 instances, or Elastic IP
|
|
150
|
-
addresses. An Application Load Balancer endpoint can be internet-facing or internal. Traffic for
|
|
151
|
-
standard accelerators is routed to endpoints based on the health of the
|
|
152
|
-
endpoint along with configuration options that you choose, such as endpoint
|
|
153
|
-
weights. For each endpoint, you can configure weights, which are numbers
|
|
154
|
-
that you can use to specify the proportion of traffic to route to each one.
|
|
155
|
-
This can be useful, for example, to do performance testing within a
|
|
156
|
-
Region.</p>
|
|
157
|
-
<p>Endpoints for custom routing accelerators are virtual private cloud (VPC) subnets with one
|
|
158
|
-
or many EC2 instances.</p>
|
|
159
|
-
</dd>
|
|
160
|
-
</dl>
|
|
62
|
+
<p>For more information about understanding and using Global Accelerator, see the
|
|
63
|
+
<a href="https://docs.aws.amazon.com/global-accelerator/latest/dg/what-is-global-accelerator.html">Global Accelerator Developer Guide</a>.</p>
|
|
161
64
|
|
|
162
65
|
## Installing
|
|
163
66
|
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.WithdrawByoipCidrResponseFilterSensitiveLog = exports.WithdrawByoipCidrRequestFilterSensitiveLog = exports.UpdateListenerResponseFilterSensitiveLog = exports.UpdateListenerRequestFilterSensitiveLog = exports.UpdateEndpointGroupResponseFilterSensitiveLog = exports.UpdateEndpointGroupRequestFilterSensitiveLog = exports.UpdateCustomRoutingListenerResponseFilterSensitiveLog = exports.UpdateCustomRoutingListenerRequestFilterSensitiveLog = exports.UpdateCustomRoutingAcceleratorAttributesResponseFilterSensitiveLog = exports.UpdateCustomRoutingAcceleratorAttributesRequestFilterSensitiveLog = exports.UpdateCustomRoutingAcceleratorResponseFilterSensitiveLog = exports.UpdateCustomRoutingAcceleratorRequestFilterSensitiveLog = exports.UpdateAcceleratorAttributesResponseFilterSensitiveLog = exports.UpdateAcceleratorAttributesRequestFilterSensitiveLog = exports.UpdateAcceleratorResponseFilterSensitiveLog = exports.UpdateAcceleratorRequestFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.RemoveCustomRoutingEndpointsRequestFilterSensitiveLog = exports.ProvisionByoipCidrResponseFilterSensitiveLog = exports.ProvisionByoipCidrRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListListenersResponseFilterSensitiveLog = exports.ListListenersRequestFilterSensitiveLog = exports.ListEndpointGroupsResponseFilterSensitiveLog = exports.ListEndpointGroupsRequestFilterSensitiveLog = exports.ListCustomRoutingPortMappingsByDestinationResponseFilterSensitiveLog = exports.ListCustomRoutingPortMappingsByDestinationRequestFilterSensitiveLog = exports.ListCustomRoutingPortMappingsResponseFilterSensitiveLog = exports.PortMappingFilterSensitiveLog = void 0;
|
|
3
|
+
exports.CreateCustomRoutingEndpointGroupResponseFilterSensitiveLog = exports.CustomRoutingEndpointGroupFilterSensitiveLog = exports.CustomRoutingDestinationDescriptionFilterSensitiveLog = exports.CreateCustomRoutingEndpointGroupRequestFilterSensitiveLog = exports.CustomRoutingDestinationConfigurationFilterSensitiveLog = exports.CreateCustomRoutingAcceleratorResponseFilterSensitiveLog = exports.CustomRoutingAcceleratorFilterSensitiveLog = exports.CreateCustomRoutingAcceleratorRequestFilterSensitiveLog = exports.CreateAcceleratorResponseFilterSensitiveLog = exports.CreateAcceleratorRequestFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.CidrAuthorizationContextFilterSensitiveLog = exports.AllowCustomRoutingTrafficRequestFilterSensitiveLog = exports.AdvertiseByoipCidrResponseFilterSensitiveLog = exports.ByoipCidrFilterSensitiveLog = exports.ByoipCidrEventFilterSensitiveLog = exports.AdvertiseByoipCidrRequestFilterSensitiveLog = exports.AddCustomRoutingEndpointsResponseFilterSensitiveLog = exports.CustomRoutingEndpointDescriptionFilterSensitiveLog = exports.AddCustomRoutingEndpointsRequestFilterSensitiveLog = exports.CustomRoutingEndpointConfigurationFilterSensitiveLog = exports.AcceleratorAttributesFilterSensitiveLog = exports.AcceleratorFilterSensitiveLog = exports.IpSetFilterSensitiveLog = exports.AcceleratorEventFilterSensitiveLog = exports.InvalidNextTokenException = exports.EndpointNotFoundException = exports.CustomRoutingDestinationTrafficState = exports.HealthCheckProtocol = exports.ListenerNotFoundException = exports.InvalidPortRangeException = exports.EndpointGroupAlreadyExistsException = exports.Protocol = exports.CustomRoutingProtocol = exports.AssociatedListenerFoundException = exports.AssociatedEndpointGroupFoundException = exports.IncorrectCidrStateException = exports.ByoipCidrNotFoundException = exports.ByoipCidrState = exports.LimitExceededException = exports.InvalidArgumentException = exports.InternalServiceErrorException = exports.EndpointGroupNotFoundException = exports.EndpointAlreadyExistsException = exports.ConflictException = exports.AccessDeniedException = exports.AcceleratorNotFoundException = exports.AcceleratorNotDisabledException = exports.IpAddressFamily = exports.IpAddressType = void 0;
|
|
4
|
+
exports.ListCustomRoutingListenersRequestFilterSensitiveLog = exports.ListCustomRoutingEndpointGroupsResponseFilterSensitiveLog = exports.ListCustomRoutingEndpointGroupsRequestFilterSensitiveLog = exports.ListCustomRoutingAcceleratorsResponseFilterSensitiveLog = exports.ListCustomRoutingAcceleratorsRequestFilterSensitiveLog = exports.ListByoipCidrsResponseFilterSensitiveLog = exports.ListByoipCidrsRequestFilterSensitiveLog = exports.ListAcceleratorsResponseFilterSensitiveLog = exports.ListAcceleratorsRequestFilterSensitiveLog = exports.DestinationPortMappingFilterSensitiveLog = exports.SocketAddressFilterSensitiveLog = exports.DescribeListenerResponseFilterSensitiveLog = exports.DescribeListenerRequestFilterSensitiveLog = exports.DescribeEndpointGroupResponseFilterSensitiveLog = exports.DescribeEndpointGroupRequestFilterSensitiveLog = exports.DescribeCustomRoutingListenerResponseFilterSensitiveLog = exports.DescribeCustomRoutingListenerRequestFilterSensitiveLog = exports.DescribeCustomRoutingEndpointGroupResponseFilterSensitiveLog = exports.DescribeCustomRoutingEndpointGroupRequestFilterSensitiveLog = exports.DescribeCustomRoutingAcceleratorAttributesResponseFilterSensitiveLog = exports.DescribeCustomRoutingAcceleratorAttributesRequestFilterSensitiveLog = exports.DescribeCustomRoutingAcceleratorResponseFilterSensitiveLog = exports.DescribeCustomRoutingAcceleratorRequestFilterSensitiveLog = exports.DescribeAcceleratorAttributesResponseFilterSensitiveLog = exports.DescribeAcceleratorAttributesRequestFilterSensitiveLog = exports.DescribeAcceleratorResponseFilterSensitiveLog = exports.DescribeAcceleratorRequestFilterSensitiveLog = exports.DeprovisionByoipCidrResponseFilterSensitiveLog = exports.DeprovisionByoipCidrRequestFilterSensitiveLog = exports.DenyCustomRoutingTrafficRequestFilterSensitiveLog = exports.DeleteListenerRequestFilterSensitiveLog = exports.DeleteEndpointGroupRequestFilterSensitiveLog = exports.DeleteCustomRoutingListenerRequestFilterSensitiveLog = exports.DeleteCustomRoutingEndpointGroupRequestFilterSensitiveLog = exports.DeleteCustomRoutingAcceleratorRequestFilterSensitiveLog = exports.DeleteAcceleratorRequestFilterSensitiveLog = exports.CustomRoutingAcceleratorAttributesFilterSensitiveLog = exports.CreateListenerResponseFilterSensitiveLog = exports.ListenerFilterSensitiveLog = exports.CreateListenerRequestFilterSensitiveLog = exports.CreateEndpointGroupResponseFilterSensitiveLog = exports.EndpointGroupFilterSensitiveLog = exports.EndpointDescriptionFilterSensitiveLog = exports.CreateEndpointGroupRequestFilterSensitiveLog = exports.PortOverrideFilterSensitiveLog = exports.EndpointConfigurationFilterSensitiveLog = exports.CreateCustomRoutingListenerResponseFilterSensitiveLog = exports.CustomRoutingListenerFilterSensitiveLog = exports.CreateCustomRoutingListenerRequestFilterSensitiveLog = exports.PortRangeFilterSensitiveLog = void 0;
|
|
5
|
+
exports.WithdrawByoipCidrResponseFilterSensitiveLog = exports.WithdrawByoipCidrRequestFilterSensitiveLog = exports.UpdateListenerResponseFilterSensitiveLog = exports.UpdateListenerRequestFilterSensitiveLog = exports.UpdateEndpointGroupResponseFilterSensitiveLog = exports.UpdateEndpointGroupRequestFilterSensitiveLog = exports.UpdateCustomRoutingListenerResponseFilterSensitiveLog = exports.UpdateCustomRoutingListenerRequestFilterSensitiveLog = exports.UpdateCustomRoutingAcceleratorAttributesResponseFilterSensitiveLog = exports.UpdateCustomRoutingAcceleratorAttributesRequestFilterSensitiveLog = exports.UpdateCustomRoutingAcceleratorResponseFilterSensitiveLog = exports.UpdateCustomRoutingAcceleratorRequestFilterSensitiveLog = exports.UpdateAcceleratorAttributesResponseFilterSensitiveLog = exports.UpdateAcceleratorAttributesRequestFilterSensitiveLog = exports.UpdateAcceleratorResponseFilterSensitiveLog = exports.UpdateAcceleratorRequestFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.RemoveCustomRoutingEndpointsRequestFilterSensitiveLog = exports.ProvisionByoipCidrResponseFilterSensitiveLog = exports.ProvisionByoipCidrRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListListenersResponseFilterSensitiveLog = exports.ListListenersRequestFilterSensitiveLog = exports.ListEndpointGroupsResponseFilterSensitiveLog = exports.ListEndpointGroupsRequestFilterSensitiveLog = exports.ListCustomRoutingPortMappingsByDestinationResponseFilterSensitiveLog = exports.ListCustomRoutingPortMappingsByDestinationRequestFilterSensitiveLog = exports.ListCustomRoutingPortMappingsResponseFilterSensitiveLog = exports.PortMappingFilterSensitiveLog = exports.ListCustomRoutingPortMappingsRequestFilterSensitiveLog = exports.ListCustomRoutingListenersResponseFilterSensitiveLog = void 0;
|
|
6
6
|
const GlobalAcceleratorServiceException_1 = require("./GlobalAcceleratorServiceException");
|
|
7
7
|
var IpAddressType;
|
|
8
8
|
(function (IpAddressType) {
|
|
9
|
+
IpAddressType["DUAL_STACK"] = "DUAL_STACK";
|
|
9
10
|
IpAddressType["IPV4"] = "IPV4";
|
|
10
11
|
})(IpAddressType = exports.IpAddressType || (exports.IpAddressType = {}));
|
|
12
|
+
var IpAddressFamily;
|
|
13
|
+
(function (IpAddressFamily) {
|
|
14
|
+
IpAddressFamily["IPv4"] = "IPv4";
|
|
15
|
+
IpAddressFamily["IPv6"] = "IPv6";
|
|
16
|
+
})(IpAddressFamily = exports.IpAddressFamily || (exports.IpAddressFamily = {}));
|
|
11
17
|
class AcceleratorNotDisabledException extends GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException {
|
|
12
18
|
constructor(opts) {
|
|
13
19
|
super({
|
|
@@ -295,6 +301,10 @@ class InvalidNextTokenException extends GlobalAcceleratorServiceException_1.Glob
|
|
|
295
301
|
}
|
|
296
302
|
}
|
|
297
303
|
exports.InvalidNextTokenException = InvalidNextTokenException;
|
|
304
|
+
const AcceleratorEventFilterSensitiveLog = (obj) => ({
|
|
305
|
+
...obj,
|
|
306
|
+
});
|
|
307
|
+
exports.AcceleratorEventFilterSensitiveLog = AcceleratorEventFilterSensitiveLog;
|
|
298
308
|
const IpSetFilterSensitiveLog = (obj) => ({
|
|
299
309
|
...obj,
|
|
300
310
|
});
|
|
@@ -600,6 +600,9 @@ const deserializeAws_json1_1AllowCustomRoutingTrafficCommandError = async (outpu
|
|
|
600
600
|
let response;
|
|
601
601
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
602
602
|
switch (errorCode) {
|
|
603
|
+
case "EndpointGroupNotFoundException":
|
|
604
|
+
case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
|
|
605
|
+
throw await deserializeAws_json1_1EndpointGroupNotFoundExceptionResponse(parsedOutput, context);
|
|
603
606
|
case "InternalServiceErrorException":
|
|
604
607
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
605
608
|
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
@@ -1195,6 +1198,9 @@ const deserializeAws_json1_1DenyCustomRoutingTrafficCommandError = async (output
|
|
|
1195
1198
|
let response;
|
|
1196
1199
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1197
1200
|
switch (errorCode) {
|
|
1201
|
+
case "EndpointGroupNotFoundException":
|
|
1202
|
+
case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
|
|
1203
|
+
throw await deserializeAws_json1_1EndpointGroupNotFoundExceptionResponse(parsedOutput, context);
|
|
1198
1204
|
case "InternalServiceErrorException":
|
|
1199
1205
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1200
1206
|
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
@@ -2269,6 +2275,9 @@ const deserializeAws_json1_1UpdateAcceleratorCommandError = async (output, conte
|
|
|
2269
2275
|
case "AcceleratorNotFoundException":
|
|
2270
2276
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
2271
2277
|
throw await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context);
|
|
2278
|
+
case "AccessDeniedException":
|
|
2279
|
+
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
2280
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2272
2281
|
case "InternalServiceErrorException":
|
|
2273
2282
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
2274
2283
|
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
@@ -3302,7 +3311,9 @@ const deserializeAws_json1_1Accelerator = (output, context) => {
|
|
|
3302
3311
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
|
|
3303
3312
|
: undefined,
|
|
3304
3313
|
DnsName: (0, smithy_client_1.expectString)(output.DnsName),
|
|
3314
|
+
DualStackDnsName: (0, smithy_client_1.expectString)(output.DualStackDnsName),
|
|
3305
3315
|
Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
|
|
3316
|
+
Events: output.Events != null ? deserializeAws_json1_1AcceleratorEvents(output.Events, context) : undefined,
|
|
3306
3317
|
IpAddressType: (0, smithy_client_1.expectString)(output.IpAddressType),
|
|
3307
3318
|
IpSets: output.IpSets != null ? deserializeAws_json1_1IpSets(output.IpSets, context) : undefined,
|
|
3308
3319
|
LastModifiedTime: output.LastModifiedTime != null
|
|
@@ -3319,6 +3330,23 @@ const deserializeAws_json1_1AcceleratorAttributes = (output, context) => {
|
|
|
3319
3330
|
FlowLogsS3Prefix: (0, smithy_client_1.expectString)(output.FlowLogsS3Prefix),
|
|
3320
3331
|
};
|
|
3321
3332
|
};
|
|
3333
|
+
const deserializeAws_json1_1AcceleratorEvent = (output, context) => {
|
|
3334
|
+
return {
|
|
3335
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3336
|
+
Timestamp: output.Timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp))) : undefined,
|
|
3337
|
+
};
|
|
3338
|
+
};
|
|
3339
|
+
const deserializeAws_json1_1AcceleratorEvents = (output, context) => {
|
|
3340
|
+
const retVal = (output || [])
|
|
3341
|
+
.filter((e) => e != null)
|
|
3342
|
+
.map((entry) => {
|
|
3343
|
+
if (entry === null) {
|
|
3344
|
+
return null;
|
|
3345
|
+
}
|
|
3346
|
+
return deserializeAws_json1_1AcceleratorEvent(entry, context);
|
|
3347
|
+
});
|
|
3348
|
+
return retVal;
|
|
3349
|
+
};
|
|
3322
3350
|
const deserializeAws_json1_1AcceleratorNotDisabledException = (output, context) => {
|
|
3323
3351
|
return {
|
|
3324
3352
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
@@ -3752,6 +3780,7 @@ const deserializeAws_json1_1IpAddresses = (output, context) => {
|
|
|
3752
3780
|
};
|
|
3753
3781
|
const deserializeAws_json1_1IpSet = (output, context) => {
|
|
3754
3782
|
return {
|
|
3783
|
+
IpAddressFamily: (0, smithy_client_1.expectString)(output.IpAddressFamily),
|
|
3755
3784
|
IpAddresses: output.IpAddresses != null ? deserializeAws_json1_1IpAddresses(output.IpAddresses, context) : undefined,
|
|
3756
3785
|
IpFamily: (0, smithy_client_1.expectString)(output.IpFamily),
|
|
3757
3786
|
};
|
|
@@ -2,8 +2,14 @@ import { __assign, __extends } from "tslib";
|
|
|
2
2
|
import { GlobalAcceleratorServiceException as __BaseException } from "./GlobalAcceleratorServiceException";
|
|
3
3
|
export var IpAddressType;
|
|
4
4
|
(function (IpAddressType) {
|
|
5
|
+
IpAddressType["DUAL_STACK"] = "DUAL_STACK";
|
|
5
6
|
IpAddressType["IPV4"] = "IPV4";
|
|
6
7
|
})(IpAddressType || (IpAddressType = {}));
|
|
8
|
+
export var IpAddressFamily;
|
|
9
|
+
(function (IpAddressFamily) {
|
|
10
|
+
IpAddressFamily["IPv4"] = "IPv4";
|
|
11
|
+
IpAddressFamily["IPv6"] = "IPv6";
|
|
12
|
+
})(IpAddressFamily || (IpAddressFamily = {}));
|
|
7
13
|
var AcceleratorNotDisabledException = (function (_super) {
|
|
8
14
|
__extends(AcceleratorNotDisabledException, _super);
|
|
9
15
|
function AcceleratorNotDisabledException(opts) {
|
|
@@ -273,6 +279,7 @@ var InvalidNextTokenException = (function (_super) {
|
|
|
273
279
|
return InvalidNextTokenException;
|
|
274
280
|
}(__BaseException));
|
|
275
281
|
export { InvalidNextTokenException };
|
|
282
|
+
export var AcceleratorEventFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
276
283
|
export var IpSetFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
277
284
|
export var AcceleratorFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
278
285
|
export var AcceleratorAttributesFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -695,17 +695,21 @@ var deserializeAws_json1_1AllowCustomRoutingTrafficCommandError = function (outp
|
|
|
695
695
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
696
696
|
_b = errorCode;
|
|
697
697
|
switch (_b) {
|
|
698
|
-
case "
|
|
699
|
-
case "com.amazonaws.globalaccelerator#
|
|
700
|
-
case "
|
|
701
|
-
case "com.amazonaws.globalaccelerator#
|
|
698
|
+
case "EndpointGroupNotFoundException": return [3, 2];
|
|
699
|
+
case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException": return [3, 2];
|
|
700
|
+
case "InternalServiceErrorException": return [3, 4];
|
|
701
|
+
case "com.amazonaws.globalaccelerator#InternalServiceErrorException": return [3, 4];
|
|
702
|
+
case "InvalidArgumentException": return [3, 6];
|
|
703
|
+
case "com.amazonaws.globalaccelerator#InvalidArgumentException": return [3, 6];
|
|
702
704
|
}
|
|
703
|
-
return [3,
|
|
704
|
-
case 2: return [4,
|
|
705
|
+
return [3, 8];
|
|
706
|
+
case 2: return [4, deserializeAws_json1_1EndpointGroupNotFoundExceptionResponse(parsedOutput, context)];
|
|
705
707
|
case 3: throw _d.sent();
|
|
706
|
-
case 4: return [4,
|
|
708
|
+
case 4: return [4, deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
707
709
|
case 5: throw _d.sent();
|
|
708
|
-
case 6:
|
|
710
|
+
case 6: return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
711
|
+
case 7: throw _d.sent();
|
|
712
|
+
case 8:
|
|
709
713
|
parsedBody = parsedOutput.body;
|
|
710
714
|
$metadata = deserializeMetadata(output);
|
|
711
715
|
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
@@ -1538,17 +1542,21 @@ var deserializeAws_json1_1DenyCustomRoutingTrafficCommandError = function (outpu
|
|
|
1538
1542
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1539
1543
|
_b = errorCode;
|
|
1540
1544
|
switch (_b) {
|
|
1541
|
-
case "
|
|
1542
|
-
case "com.amazonaws.globalaccelerator#
|
|
1543
|
-
case "
|
|
1544
|
-
case "com.amazonaws.globalaccelerator#
|
|
1545
|
+
case "EndpointGroupNotFoundException": return [3, 2];
|
|
1546
|
+
case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException": return [3, 2];
|
|
1547
|
+
case "InternalServiceErrorException": return [3, 4];
|
|
1548
|
+
case "com.amazonaws.globalaccelerator#InternalServiceErrorException": return [3, 4];
|
|
1549
|
+
case "InvalidArgumentException": return [3, 6];
|
|
1550
|
+
case "com.amazonaws.globalaccelerator#InvalidArgumentException": return [3, 6];
|
|
1545
1551
|
}
|
|
1546
|
-
return [3,
|
|
1547
|
-
case 2: return [4,
|
|
1552
|
+
return [3, 8];
|
|
1553
|
+
case 2: return [4, deserializeAws_json1_1EndpointGroupNotFoundExceptionResponse(parsedOutput, context)];
|
|
1548
1554
|
case 3: throw _d.sent();
|
|
1549
|
-
case 4: return [4,
|
|
1555
|
+
case 4: return [4, deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1550
1556
|
case 5: throw _d.sent();
|
|
1551
|
-
case 6:
|
|
1557
|
+
case 6: return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
1558
|
+
case 7: throw _d.sent();
|
|
1559
|
+
case 8:
|
|
1552
1560
|
parsedBody = parsedOutput.body;
|
|
1553
1561
|
$metadata = deserializeMetadata(output);
|
|
1554
1562
|
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
@@ -3012,19 +3020,23 @@ var deserializeAws_json1_1UpdateAcceleratorCommandError = function (output, cont
|
|
|
3012
3020
|
switch (_b) {
|
|
3013
3021
|
case "AcceleratorNotFoundException": return [3, 2];
|
|
3014
3022
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException": return [3, 2];
|
|
3015
|
-
case "
|
|
3016
|
-
case "com.amazonaws.globalaccelerator#
|
|
3017
|
-
case "
|
|
3018
|
-
case "com.amazonaws.globalaccelerator#
|
|
3023
|
+
case "AccessDeniedException": return [3, 4];
|
|
3024
|
+
case "com.amazonaws.globalaccelerator#AccessDeniedException": return [3, 4];
|
|
3025
|
+
case "InternalServiceErrorException": return [3, 6];
|
|
3026
|
+
case "com.amazonaws.globalaccelerator#InternalServiceErrorException": return [3, 6];
|
|
3027
|
+
case "InvalidArgumentException": return [3, 8];
|
|
3028
|
+
case "com.amazonaws.globalaccelerator#InvalidArgumentException": return [3, 8];
|
|
3019
3029
|
}
|
|
3020
|
-
return [3,
|
|
3030
|
+
return [3, 10];
|
|
3021
3031
|
case 2: return [4, deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context)];
|
|
3022
3032
|
case 3: throw _d.sent();
|
|
3023
|
-
case 4: return [4,
|
|
3033
|
+
case 4: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3024
3034
|
case 5: throw _d.sent();
|
|
3025
|
-
case 6: return [4,
|
|
3035
|
+
case 6: return [4, deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
3026
3036
|
case 7: throw _d.sent();
|
|
3027
|
-
case 8:
|
|
3037
|
+
case 8: return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
3038
|
+
case 9: throw _d.sent();
|
|
3039
|
+
case 10:
|
|
3028
3040
|
parsedBody = parsedOutput.body;
|
|
3029
3041
|
$metadata = deserializeMetadata(output);
|
|
3030
3042
|
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
@@ -3975,7 +3987,9 @@ var deserializeAws_json1_1Accelerator = function (output, context) {
|
|
|
3975
3987
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTime)))
|
|
3976
3988
|
: undefined,
|
|
3977
3989
|
DnsName: __expectString(output.DnsName),
|
|
3990
|
+
DualStackDnsName: __expectString(output.DualStackDnsName),
|
|
3978
3991
|
Enabled: __expectBoolean(output.Enabled),
|
|
3992
|
+
Events: output.Events != null ? deserializeAws_json1_1AcceleratorEvents(output.Events, context) : undefined,
|
|
3979
3993
|
IpAddressType: __expectString(output.IpAddressType),
|
|
3980
3994
|
IpSets: output.IpSets != null ? deserializeAws_json1_1IpSets(output.IpSets, context) : undefined,
|
|
3981
3995
|
LastModifiedTime: output.LastModifiedTime != null
|
|
@@ -3992,6 +4006,23 @@ var deserializeAws_json1_1AcceleratorAttributes = function (output, context) {
|
|
|
3992
4006
|
FlowLogsS3Prefix: __expectString(output.FlowLogsS3Prefix),
|
|
3993
4007
|
};
|
|
3994
4008
|
};
|
|
4009
|
+
var deserializeAws_json1_1AcceleratorEvent = function (output, context) {
|
|
4010
|
+
return {
|
|
4011
|
+
Message: __expectString(output.Message),
|
|
4012
|
+
Timestamp: output.Timestamp != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Timestamp))) : undefined,
|
|
4013
|
+
};
|
|
4014
|
+
};
|
|
4015
|
+
var deserializeAws_json1_1AcceleratorEvents = function (output, context) {
|
|
4016
|
+
var retVal = (output || [])
|
|
4017
|
+
.filter(function (e) { return e != null; })
|
|
4018
|
+
.map(function (entry) {
|
|
4019
|
+
if (entry === null) {
|
|
4020
|
+
return null;
|
|
4021
|
+
}
|
|
4022
|
+
return deserializeAws_json1_1AcceleratorEvent(entry, context);
|
|
4023
|
+
});
|
|
4024
|
+
return retVal;
|
|
4025
|
+
};
|
|
3995
4026
|
var deserializeAws_json1_1AcceleratorNotDisabledException = function (output, context) {
|
|
3996
4027
|
return {
|
|
3997
4028
|
Message: __expectString(output.Message),
|
|
@@ -4425,6 +4456,7 @@ var deserializeAws_json1_1IpAddresses = function (output, context) {
|
|
|
4425
4456
|
};
|
|
4426
4457
|
var deserializeAws_json1_1IpSet = function (output, context) {
|
|
4427
4458
|
return {
|
|
4459
|
+
IpAddressFamily: __expectString(output.IpAddressFamily),
|
|
4428
4460
|
IpAddresses: output.IpAddresses != null ? deserializeAws_json1_1IpAddresses(output.IpAddresses, context) : undefined,
|
|
4429
4461
|
IpFamily: __expectString(output.IpFamily),
|
|
4430
4462
|
};
|