aws-sdk-globalaccelerator 1.13.0 → 1.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/aws-sdk-globalaccelerator.rb +7 -4
- data/lib/aws-sdk-globalaccelerator/client.rb +536 -29
- data/lib/aws-sdk-globalaccelerator/client_api.rb +214 -3
- data/lib/aws-sdk-globalaccelerator/errors.rb +65 -11
- data/lib/aws-sdk-globalaccelerator/resource.rb +1 -0
- data/lib/aws-sdk-globalaccelerator/types.rb +532 -15
- metadata +3 -3
@@ -18,8 +18,17 @@ module Aws::GlobalAccelerator
|
|
18
18
|
AcceleratorStatus = Shapes::StringShape.new(name: 'AcceleratorStatus')
|
19
19
|
Accelerators = Shapes::ListShape.new(name: 'Accelerators')
|
20
20
|
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
21
|
+
AdvertiseByoipCidrRequest = Shapes::StructureShape.new(name: 'AdvertiseByoipCidrRequest')
|
22
|
+
AdvertiseByoipCidrResponse = Shapes::StructureShape.new(name: 'AdvertiseByoipCidrResponse')
|
21
23
|
AssociatedEndpointGroupFoundException = Shapes::StructureShape.new(name: 'AssociatedEndpointGroupFoundException')
|
22
24
|
AssociatedListenerFoundException = Shapes::StructureShape.new(name: 'AssociatedListenerFoundException')
|
25
|
+
ByoipCidr = Shapes::StructureShape.new(name: 'ByoipCidr')
|
26
|
+
ByoipCidrEvent = Shapes::StructureShape.new(name: 'ByoipCidrEvent')
|
27
|
+
ByoipCidrEvents = Shapes::ListShape.new(name: 'ByoipCidrEvents')
|
28
|
+
ByoipCidrNotFoundException = Shapes::StructureShape.new(name: 'ByoipCidrNotFoundException')
|
29
|
+
ByoipCidrState = Shapes::StringShape.new(name: 'ByoipCidrState')
|
30
|
+
ByoipCidrs = Shapes::ListShape.new(name: 'ByoipCidrs')
|
31
|
+
CidrAuthorizationContext = Shapes::StructureShape.new(name: 'CidrAuthorizationContext')
|
23
32
|
ClientAffinity = Shapes::StringShape.new(name: 'ClientAffinity')
|
24
33
|
CreateAcceleratorRequest = Shapes::StructureShape.new(name: 'CreateAcceleratorRequest')
|
25
34
|
CreateAcceleratorResponse = Shapes::StructureShape.new(name: 'CreateAcceleratorResponse')
|
@@ -30,6 +39,8 @@ module Aws::GlobalAccelerator
|
|
30
39
|
DeleteAcceleratorRequest = Shapes::StructureShape.new(name: 'DeleteAcceleratorRequest')
|
31
40
|
DeleteEndpointGroupRequest = Shapes::StructureShape.new(name: 'DeleteEndpointGroupRequest')
|
32
41
|
DeleteListenerRequest = Shapes::StructureShape.new(name: 'DeleteListenerRequest')
|
42
|
+
DeprovisionByoipCidrRequest = Shapes::StructureShape.new(name: 'DeprovisionByoipCidrRequest')
|
43
|
+
DeprovisionByoipCidrResponse = Shapes::StructureShape.new(name: 'DeprovisionByoipCidrResponse')
|
33
44
|
DescribeAcceleratorAttributesRequest = Shapes::StructureShape.new(name: 'DescribeAcceleratorAttributesRequest')
|
34
45
|
DescribeAcceleratorAttributesResponse = Shapes::StructureShape.new(name: 'DescribeAcceleratorAttributesResponse')
|
35
46
|
DescribeAcceleratorRequest = Shapes::StructureShape.new(name: 'DescribeAcceleratorRequest')
|
@@ -55,6 +66,7 @@ module Aws::GlobalAccelerator
|
|
55
66
|
HealthCheckProtocol = Shapes::StringShape.new(name: 'HealthCheckProtocol')
|
56
67
|
HealthState = Shapes::StringShape.new(name: 'HealthState')
|
57
68
|
IdempotencyToken = Shapes::StringShape.new(name: 'IdempotencyToken')
|
69
|
+
IncorrectCidrStateException = Shapes::StructureShape.new(name: 'IncorrectCidrStateException')
|
58
70
|
InternalServiceErrorException = Shapes::StructureShape.new(name: 'InternalServiceErrorException')
|
59
71
|
InvalidArgumentException = Shapes::StructureShape.new(name: 'InvalidArgumentException')
|
60
72
|
InvalidNextTokenException = Shapes::StructureShape.new(name: 'InvalidNextTokenException')
|
@@ -67,10 +79,14 @@ module Aws::GlobalAccelerator
|
|
67
79
|
LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
|
68
80
|
ListAcceleratorsRequest = Shapes::StructureShape.new(name: 'ListAcceleratorsRequest')
|
69
81
|
ListAcceleratorsResponse = Shapes::StructureShape.new(name: 'ListAcceleratorsResponse')
|
82
|
+
ListByoipCidrsRequest = Shapes::StructureShape.new(name: 'ListByoipCidrsRequest')
|
83
|
+
ListByoipCidrsResponse = Shapes::StructureShape.new(name: 'ListByoipCidrsResponse')
|
70
84
|
ListEndpointGroupsRequest = Shapes::StructureShape.new(name: 'ListEndpointGroupsRequest')
|
71
85
|
ListEndpointGroupsResponse = Shapes::StructureShape.new(name: 'ListEndpointGroupsResponse')
|
72
86
|
ListListenersRequest = Shapes::StructureShape.new(name: 'ListListenersRequest')
|
73
87
|
ListListenersResponse = Shapes::StructureShape.new(name: 'ListListenersResponse')
|
88
|
+
ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
|
89
|
+
ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
|
74
90
|
Listener = Shapes::StructureShape.new(name: 'Listener')
|
75
91
|
ListenerNotFoundException = Shapes::StructureShape.new(name: 'ListenerNotFoundException')
|
76
92
|
Listeners = Shapes::ListShape.new(name: 'Listeners')
|
@@ -79,9 +95,21 @@ module Aws::GlobalAccelerator
|
|
79
95
|
PortRange = Shapes::StructureShape.new(name: 'PortRange')
|
80
96
|
PortRanges = Shapes::ListShape.new(name: 'PortRanges')
|
81
97
|
Protocol = Shapes::StringShape.new(name: 'Protocol')
|
98
|
+
ProvisionByoipCidrRequest = Shapes::StructureShape.new(name: 'ProvisionByoipCidrRequest')
|
99
|
+
ProvisionByoipCidrResponse = Shapes::StructureShape.new(name: 'ProvisionByoipCidrResponse')
|
100
|
+
ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
|
101
|
+
Tag = Shapes::StructureShape.new(name: 'Tag')
|
102
|
+
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
103
|
+
TagKeys = Shapes::ListShape.new(name: 'TagKeys')
|
104
|
+
TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
|
105
|
+
TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
|
106
|
+
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
107
|
+
Tags = Shapes::ListShape.new(name: 'Tags')
|
82
108
|
ThresholdCount = Shapes::IntegerShape.new(name: 'ThresholdCount')
|
83
109
|
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
84
110
|
TrafficDialPercentage = Shapes::FloatShape.new(name: 'TrafficDialPercentage')
|
111
|
+
UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
|
112
|
+
UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
|
85
113
|
UpdateAcceleratorAttributesRequest = Shapes::StructureShape.new(name: 'UpdateAcceleratorAttributesRequest')
|
86
114
|
UpdateAcceleratorAttributesResponse = Shapes::StructureShape.new(name: 'UpdateAcceleratorAttributesResponse')
|
87
115
|
UpdateAcceleratorRequest = Shapes::StructureShape.new(name: 'UpdateAcceleratorRequest')
|
@@ -90,6 +118,8 @@ module Aws::GlobalAccelerator
|
|
90
118
|
UpdateEndpointGroupResponse = Shapes::StructureShape.new(name: 'UpdateEndpointGroupResponse')
|
91
119
|
UpdateListenerRequest = Shapes::StructureShape.new(name: 'UpdateListenerRequest')
|
92
120
|
UpdateListenerResponse = Shapes::StructureShape.new(name: 'UpdateListenerResponse')
|
121
|
+
WithdrawByoipCidrRequest = Shapes::StructureShape.new(name: 'WithdrawByoipCidrRequest')
|
122
|
+
WithdrawByoipCidrResponse = Shapes::StructureShape.new(name: 'WithdrawByoipCidrResponse')
|
93
123
|
|
94
124
|
Accelerator.add_member(:accelerator_arn, Shapes::ShapeRef.new(shape: GenericString, location_name: "AcceleratorArn"))
|
95
125
|
Accelerator.add_member(:name, Shapes::ShapeRef.new(shape: GenericString, location_name: "Name"))
|
@@ -118,16 +148,44 @@ module Aws::GlobalAccelerator
|
|
118
148
|
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
119
149
|
AccessDeniedException.struct_class = Types::AccessDeniedException
|
120
150
|
|
151
|
+
AdvertiseByoipCidrRequest.add_member(:cidr, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "Cidr"))
|
152
|
+
AdvertiseByoipCidrRequest.struct_class = Types::AdvertiseByoipCidrRequest
|
153
|
+
|
154
|
+
AdvertiseByoipCidrResponse.add_member(:byoip_cidr, Shapes::ShapeRef.new(shape: ByoipCidr, location_name: "ByoipCidr"))
|
155
|
+
AdvertiseByoipCidrResponse.struct_class = Types::AdvertiseByoipCidrResponse
|
156
|
+
|
121
157
|
AssociatedEndpointGroupFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
122
158
|
AssociatedEndpointGroupFoundException.struct_class = Types::AssociatedEndpointGroupFoundException
|
123
159
|
|
124
160
|
AssociatedListenerFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
125
161
|
AssociatedListenerFoundException.struct_class = Types::AssociatedListenerFoundException
|
126
162
|
|
163
|
+
ByoipCidr.add_member(:cidr, Shapes::ShapeRef.new(shape: GenericString, location_name: "Cidr"))
|
164
|
+
ByoipCidr.add_member(:state, Shapes::ShapeRef.new(shape: ByoipCidrState, location_name: "State"))
|
165
|
+
ByoipCidr.add_member(:events, Shapes::ShapeRef.new(shape: ByoipCidrEvents, location_name: "Events"))
|
166
|
+
ByoipCidr.struct_class = Types::ByoipCidr
|
167
|
+
|
168
|
+
ByoipCidrEvent.add_member(:message, Shapes::ShapeRef.new(shape: GenericString, location_name: "Message"))
|
169
|
+
ByoipCidrEvent.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "Timestamp"))
|
170
|
+
ByoipCidrEvent.struct_class = Types::ByoipCidrEvent
|
171
|
+
|
172
|
+
ByoipCidrEvents.member = Shapes::ShapeRef.new(shape: ByoipCidrEvent)
|
173
|
+
|
174
|
+
ByoipCidrNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
175
|
+
ByoipCidrNotFoundException.struct_class = Types::ByoipCidrNotFoundException
|
176
|
+
|
177
|
+
ByoipCidrs.member = Shapes::ShapeRef.new(shape: ByoipCidr)
|
178
|
+
|
179
|
+
CidrAuthorizationContext.add_member(:message, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "Message"))
|
180
|
+
CidrAuthorizationContext.add_member(:signature, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "Signature"))
|
181
|
+
CidrAuthorizationContext.struct_class = Types::CidrAuthorizationContext
|
182
|
+
|
127
183
|
CreateAcceleratorRequest.add_member(:name, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "Name"))
|
128
184
|
CreateAcceleratorRequest.add_member(:ip_address_type, Shapes::ShapeRef.new(shape: IpAddressType, location_name: "IpAddressType"))
|
185
|
+
CreateAcceleratorRequest.add_member(:ip_addresses, Shapes::ShapeRef.new(shape: IpAddresses, location_name: "IpAddresses"))
|
129
186
|
CreateAcceleratorRequest.add_member(:enabled, Shapes::ShapeRef.new(shape: GenericBoolean, location_name: "Enabled"))
|
130
|
-
CreateAcceleratorRequest.add_member(:idempotency_token, Shapes::ShapeRef.new(shape: IdempotencyToken, required: true, location_name: "IdempotencyToken"))
|
187
|
+
CreateAcceleratorRequest.add_member(:idempotency_token, Shapes::ShapeRef.new(shape: IdempotencyToken, required: true, location_name: "IdempotencyToken", metadata: {"idempotencyToken"=>true}))
|
188
|
+
CreateAcceleratorRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
|
131
189
|
CreateAcceleratorRequest.struct_class = Types::CreateAcceleratorRequest
|
132
190
|
|
133
191
|
CreateAcceleratorResponse.add_member(:accelerator, Shapes::ShapeRef.new(shape: Accelerator, location_name: "Accelerator"))
|
@@ -142,7 +200,7 @@ module Aws::GlobalAccelerator
|
|
142
200
|
CreateEndpointGroupRequest.add_member(:health_check_path, Shapes::ShapeRef.new(shape: GenericString, location_name: "HealthCheckPath"))
|
143
201
|
CreateEndpointGroupRequest.add_member(:health_check_interval_seconds, Shapes::ShapeRef.new(shape: HealthCheckIntervalSeconds, location_name: "HealthCheckIntervalSeconds"))
|
144
202
|
CreateEndpointGroupRequest.add_member(:threshold_count, Shapes::ShapeRef.new(shape: ThresholdCount, location_name: "ThresholdCount"))
|
145
|
-
CreateEndpointGroupRequest.add_member(:idempotency_token, Shapes::ShapeRef.new(shape: IdempotencyToken, required: true, location_name: "IdempotencyToken"))
|
203
|
+
CreateEndpointGroupRequest.add_member(:idempotency_token, Shapes::ShapeRef.new(shape: IdempotencyToken, required: true, location_name: "IdempotencyToken", metadata: {"idempotencyToken"=>true}))
|
146
204
|
CreateEndpointGroupRequest.struct_class = Types::CreateEndpointGroupRequest
|
147
205
|
|
148
206
|
CreateEndpointGroupResponse.add_member(:endpoint_group, Shapes::ShapeRef.new(shape: EndpointGroup, location_name: "EndpointGroup"))
|
@@ -152,7 +210,7 @@ module Aws::GlobalAccelerator
|
|
152
210
|
CreateListenerRequest.add_member(:port_ranges, Shapes::ShapeRef.new(shape: PortRanges, required: true, location_name: "PortRanges"))
|
153
211
|
CreateListenerRequest.add_member(:protocol, Shapes::ShapeRef.new(shape: Protocol, required: true, location_name: "Protocol"))
|
154
212
|
CreateListenerRequest.add_member(:client_affinity, Shapes::ShapeRef.new(shape: ClientAffinity, location_name: "ClientAffinity"))
|
155
|
-
CreateListenerRequest.add_member(:idempotency_token, Shapes::ShapeRef.new(shape: IdempotencyToken, required: true, location_name: "IdempotencyToken"))
|
213
|
+
CreateListenerRequest.add_member(:idempotency_token, Shapes::ShapeRef.new(shape: IdempotencyToken, required: true, location_name: "IdempotencyToken", metadata: {"idempotencyToken"=>true}))
|
156
214
|
CreateListenerRequest.struct_class = Types::CreateListenerRequest
|
157
215
|
|
158
216
|
CreateListenerResponse.add_member(:listener, Shapes::ShapeRef.new(shape: Listener, location_name: "Listener"))
|
@@ -167,6 +225,12 @@ module Aws::GlobalAccelerator
|
|
167
225
|
DeleteListenerRequest.add_member(:listener_arn, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "ListenerArn"))
|
168
226
|
DeleteListenerRequest.struct_class = Types::DeleteListenerRequest
|
169
227
|
|
228
|
+
DeprovisionByoipCidrRequest.add_member(:cidr, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "Cidr"))
|
229
|
+
DeprovisionByoipCidrRequest.struct_class = Types::DeprovisionByoipCidrRequest
|
230
|
+
|
231
|
+
DeprovisionByoipCidrResponse.add_member(:byoip_cidr, Shapes::ShapeRef.new(shape: ByoipCidr, location_name: "ByoipCidr"))
|
232
|
+
DeprovisionByoipCidrResponse.struct_class = Types::DeprovisionByoipCidrResponse
|
233
|
+
|
170
234
|
DescribeAcceleratorAttributesRequest.add_member(:accelerator_arn, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "AcceleratorArn"))
|
171
235
|
DescribeAcceleratorAttributesRequest.struct_class = Types::DescribeAcceleratorAttributesRequest
|
172
236
|
|
@@ -226,6 +290,9 @@ module Aws::GlobalAccelerator
|
|
226
290
|
|
227
291
|
EndpointGroups.member = Shapes::ShapeRef.new(shape: EndpointGroup)
|
228
292
|
|
293
|
+
IncorrectCidrStateException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
294
|
+
IncorrectCidrStateException.struct_class = Types::IncorrectCidrStateException
|
295
|
+
|
229
296
|
InternalServiceErrorException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
230
297
|
InternalServiceErrorException.struct_class = Types::InternalServiceErrorException
|
231
298
|
|
@@ -257,6 +324,14 @@ module Aws::GlobalAccelerator
|
|
257
324
|
ListAcceleratorsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: GenericString, location_name: "NextToken"))
|
258
325
|
ListAcceleratorsResponse.struct_class = Types::ListAcceleratorsResponse
|
259
326
|
|
327
|
+
ListByoipCidrsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
|
328
|
+
ListByoipCidrsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: GenericString, location_name: "NextToken"))
|
329
|
+
ListByoipCidrsRequest.struct_class = Types::ListByoipCidrsRequest
|
330
|
+
|
331
|
+
ListByoipCidrsResponse.add_member(:byoip_cidrs, Shapes::ShapeRef.new(shape: ByoipCidrs, location_name: "ByoipCidrs"))
|
332
|
+
ListByoipCidrsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: GenericString, location_name: "NextToken"))
|
333
|
+
ListByoipCidrsResponse.struct_class = Types::ListByoipCidrsResponse
|
334
|
+
|
260
335
|
ListEndpointGroupsRequest.add_member(:listener_arn, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "ListenerArn"))
|
261
336
|
ListEndpointGroupsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
|
262
337
|
ListEndpointGroupsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: GenericString, location_name: "NextToken"))
|
@@ -275,6 +350,12 @@ module Aws::GlobalAccelerator
|
|
275
350
|
ListListenersResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: GenericString, location_name: "NextToken"))
|
276
351
|
ListListenersResponse.struct_class = Types::ListListenersResponse
|
277
352
|
|
353
|
+
ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "ResourceArn"))
|
354
|
+
ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
|
355
|
+
|
356
|
+
ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
|
357
|
+
ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
|
358
|
+
|
278
359
|
Listener.add_member(:listener_arn, Shapes::ShapeRef.new(shape: GenericString, location_name: "ListenerArn"))
|
279
360
|
Listener.add_member(:port_ranges, Shapes::ShapeRef.new(shape: PortRanges, location_name: "PortRanges"))
|
280
361
|
Listener.add_member(:protocol, Shapes::ShapeRef.new(shape: Protocol, location_name: "Protocol"))
|
@@ -292,6 +373,33 @@ module Aws::GlobalAccelerator
|
|
292
373
|
|
293
374
|
PortRanges.member = Shapes::ShapeRef.new(shape: PortRange)
|
294
375
|
|
376
|
+
ProvisionByoipCidrRequest.add_member(:cidr, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "Cidr"))
|
377
|
+
ProvisionByoipCidrRequest.add_member(:cidr_authorization_context, Shapes::ShapeRef.new(shape: CidrAuthorizationContext, required: true, location_name: "CidrAuthorizationContext"))
|
378
|
+
ProvisionByoipCidrRequest.struct_class = Types::ProvisionByoipCidrRequest
|
379
|
+
|
380
|
+
ProvisionByoipCidrResponse.add_member(:byoip_cidr, Shapes::ShapeRef.new(shape: ByoipCidr, location_name: "ByoipCidr"))
|
381
|
+
ProvisionByoipCidrResponse.struct_class = Types::ProvisionByoipCidrResponse
|
382
|
+
|
383
|
+
Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "Key"))
|
384
|
+
Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "Value"))
|
385
|
+
Tag.struct_class = Types::Tag
|
386
|
+
|
387
|
+
TagKeys.member = Shapes::ShapeRef.new(shape: TagKey)
|
388
|
+
|
389
|
+
TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "ResourceArn"))
|
390
|
+
TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, required: true, location_name: "Tags"))
|
391
|
+
TagResourceRequest.struct_class = Types::TagResourceRequest
|
392
|
+
|
393
|
+
TagResourceResponse.struct_class = Types::TagResourceResponse
|
394
|
+
|
395
|
+
Tags.member = Shapes::ShapeRef.new(shape: Tag)
|
396
|
+
|
397
|
+
UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "ResourceArn"))
|
398
|
+
UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeys, required: true, location_name: "TagKeys"))
|
399
|
+
UntagResourceRequest.struct_class = Types::UntagResourceRequest
|
400
|
+
|
401
|
+
UntagResourceResponse.struct_class = Types::UntagResourceResponse
|
402
|
+
|
295
403
|
UpdateAcceleratorAttributesRequest.add_member(:accelerator_arn, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "AcceleratorArn"))
|
296
404
|
UpdateAcceleratorAttributesRequest.add_member(:flow_logs_enabled, Shapes::ShapeRef.new(shape: GenericBoolean, location_name: "FlowLogsEnabled"))
|
297
405
|
UpdateAcceleratorAttributesRequest.add_member(:flow_logs_s3_bucket, Shapes::ShapeRef.new(shape: GenericString, location_name: "FlowLogsS3Bucket"))
|
@@ -332,6 +440,12 @@ module Aws::GlobalAccelerator
|
|
332
440
|
UpdateListenerResponse.add_member(:listener, Shapes::ShapeRef.new(shape: Listener, location_name: "Listener"))
|
333
441
|
UpdateListenerResponse.struct_class = Types::UpdateListenerResponse
|
334
442
|
|
443
|
+
WithdrawByoipCidrRequest.add_member(:cidr, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "Cidr"))
|
444
|
+
WithdrawByoipCidrRequest.struct_class = Types::WithdrawByoipCidrRequest
|
445
|
+
|
446
|
+
WithdrawByoipCidrResponse.add_member(:byoip_cidr, Shapes::ShapeRef.new(shape: ByoipCidr, location_name: "ByoipCidr"))
|
447
|
+
WithdrawByoipCidrResponse.struct_class = Types::WithdrawByoipCidrResponse
|
448
|
+
|
335
449
|
|
336
450
|
# @api private
|
337
451
|
API = Seahorse::Model::Api.new.tap do |api|
|
@@ -351,6 +465,19 @@ module Aws::GlobalAccelerator
|
|
351
465
|
"uid" => "globalaccelerator-2018-08-08",
|
352
466
|
}
|
353
467
|
|
468
|
+
api.add_operation(:advertise_byoip_cidr, Seahorse::Model::Operation.new.tap do |o|
|
469
|
+
o.name = "AdvertiseByoipCidr"
|
470
|
+
o.http_method = "POST"
|
471
|
+
o.http_request_uri = "/"
|
472
|
+
o.input = Shapes::ShapeRef.new(shape: AdvertiseByoipCidrRequest)
|
473
|
+
o.output = Shapes::ShapeRef.new(shape: AdvertiseByoipCidrResponse)
|
474
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceErrorException)
|
475
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
|
476
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
477
|
+
o.errors << Shapes::ShapeRef.new(shape: ByoipCidrNotFoundException)
|
478
|
+
o.errors << Shapes::ShapeRef.new(shape: IncorrectCidrStateException)
|
479
|
+
end)
|
480
|
+
|
354
481
|
api.add_operation(:create_accelerator, Seahorse::Model::Operation.new.tap do |o|
|
355
482
|
o.name = "CreateAccelerator"
|
356
483
|
o.http_method = "POST"
|
@@ -426,6 +553,19 @@ module Aws::GlobalAccelerator
|
|
426
553
|
o.errors << Shapes::ShapeRef.new(shape: InternalServiceErrorException)
|
427
554
|
end)
|
428
555
|
|
556
|
+
api.add_operation(:deprovision_byoip_cidr, Seahorse::Model::Operation.new.tap do |o|
|
557
|
+
o.name = "DeprovisionByoipCidr"
|
558
|
+
o.http_method = "POST"
|
559
|
+
o.http_request_uri = "/"
|
560
|
+
o.input = Shapes::ShapeRef.new(shape: DeprovisionByoipCidrRequest)
|
561
|
+
o.output = Shapes::ShapeRef.new(shape: DeprovisionByoipCidrResponse)
|
562
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceErrorException)
|
563
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
|
564
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
565
|
+
o.errors << Shapes::ShapeRef.new(shape: ByoipCidrNotFoundException)
|
566
|
+
o.errors << Shapes::ShapeRef.new(shape: IncorrectCidrStateException)
|
567
|
+
end)
|
568
|
+
|
429
569
|
api.add_operation(:describe_accelerator, Seahorse::Model::Operation.new.tap do |o|
|
430
570
|
o.name = "DescribeAccelerator"
|
431
571
|
o.http_method = "POST"
|
@@ -481,6 +621,18 @@ module Aws::GlobalAccelerator
|
|
481
621
|
o.errors << Shapes::ShapeRef.new(shape: InternalServiceErrorException)
|
482
622
|
end)
|
483
623
|
|
624
|
+
api.add_operation(:list_byoip_cidrs, Seahorse::Model::Operation.new.tap do |o|
|
625
|
+
o.name = "ListByoipCidrs"
|
626
|
+
o.http_method = "POST"
|
627
|
+
o.http_request_uri = "/"
|
628
|
+
o.input = Shapes::ShapeRef.new(shape: ListByoipCidrsRequest)
|
629
|
+
o.output = Shapes::ShapeRef.new(shape: ListByoipCidrsResponse)
|
630
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceErrorException)
|
631
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
|
632
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
633
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
|
634
|
+
end)
|
635
|
+
|
484
636
|
api.add_operation(:list_endpoint_groups, Seahorse::Model::Operation.new.tap do |o|
|
485
637
|
o.name = "ListEndpointGroups"
|
486
638
|
o.http_method = "POST"
|
@@ -505,6 +657,52 @@ module Aws::GlobalAccelerator
|
|
505
657
|
o.errors << Shapes::ShapeRef.new(shape: InternalServiceErrorException)
|
506
658
|
end)
|
507
659
|
|
660
|
+
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
661
|
+
o.name = "ListTagsForResource"
|
662
|
+
o.http_method = "POST"
|
663
|
+
o.http_request_uri = "/"
|
664
|
+
o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
|
665
|
+
o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
|
666
|
+
o.errors << Shapes::ShapeRef.new(shape: AcceleratorNotFoundException)
|
667
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceErrorException)
|
668
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
|
669
|
+
end)
|
670
|
+
|
671
|
+
api.add_operation(:provision_byoip_cidr, Seahorse::Model::Operation.new.tap do |o|
|
672
|
+
o.name = "ProvisionByoipCidr"
|
673
|
+
o.http_method = "POST"
|
674
|
+
o.http_request_uri = "/"
|
675
|
+
o.input = Shapes::ShapeRef.new(shape: ProvisionByoipCidrRequest)
|
676
|
+
o.output = Shapes::ShapeRef.new(shape: ProvisionByoipCidrResponse)
|
677
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceErrorException)
|
678
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
|
679
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
680
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
681
|
+
o.errors << Shapes::ShapeRef.new(shape: IncorrectCidrStateException)
|
682
|
+
end)
|
683
|
+
|
684
|
+
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
685
|
+
o.name = "TagResource"
|
686
|
+
o.http_method = "POST"
|
687
|
+
o.http_request_uri = "/"
|
688
|
+
o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
|
689
|
+
o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
|
690
|
+
o.errors << Shapes::ShapeRef.new(shape: AcceleratorNotFoundException)
|
691
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceErrorException)
|
692
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
|
693
|
+
end)
|
694
|
+
|
695
|
+
api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
|
696
|
+
o.name = "UntagResource"
|
697
|
+
o.http_method = "POST"
|
698
|
+
o.http_request_uri = "/"
|
699
|
+
o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
|
700
|
+
o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
|
701
|
+
o.errors << Shapes::ShapeRef.new(shape: AcceleratorNotFoundException)
|
702
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceErrorException)
|
703
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
|
704
|
+
end)
|
705
|
+
|
508
706
|
api.add_operation(:update_accelerator, Seahorse::Model::Operation.new.tap do |o|
|
509
707
|
o.name = "UpdateAccelerator"
|
510
708
|
o.http_method = "POST"
|
@@ -553,6 +751,19 @@ module Aws::GlobalAccelerator
|
|
553
751
|
o.errors << Shapes::ShapeRef.new(shape: InternalServiceErrorException)
|
554
752
|
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
555
753
|
end)
|
754
|
+
|
755
|
+
api.add_operation(:withdraw_byoip_cidr, Seahorse::Model::Operation.new.tap do |o|
|
756
|
+
o.name = "WithdrawByoipCidr"
|
757
|
+
o.http_method = "POST"
|
758
|
+
o.http_request_uri = "/"
|
759
|
+
o.input = Shapes::ShapeRef.new(shape: WithdrawByoipCidrRequest)
|
760
|
+
o.output = Shapes::ShapeRef.new(shape: WithdrawByoipCidrResponse)
|
761
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceErrorException)
|
762
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
|
763
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
764
|
+
o.errors << Shapes::ShapeRef.new(shape: ByoipCidrNotFoundException)
|
765
|
+
o.errors << Shapes::ShapeRef.new(shape: IncorrectCidrStateException)
|
766
|
+
end)
|
556
767
|
end
|
557
768
|
|
558
769
|
end
|
@@ -6,6 +6,43 @@
|
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
8
|
module Aws::GlobalAccelerator
|
9
|
+
|
10
|
+
# When GlobalAccelerator returns an error response, the Ruby SDK constructs and raises an error.
|
11
|
+
# These errors all extend Aws::GlobalAccelerator::Errors::ServiceError < {Aws::Errors::ServiceError}
|
12
|
+
#
|
13
|
+
# You can rescue all GlobalAccelerator errors using ServiceError:
|
14
|
+
#
|
15
|
+
# begin
|
16
|
+
# # do stuff
|
17
|
+
# rescue Aws::GlobalAccelerator::Errors::ServiceError
|
18
|
+
# # rescues all GlobalAccelerator API errors
|
19
|
+
# end
|
20
|
+
#
|
21
|
+
#
|
22
|
+
# ## Request Context
|
23
|
+
# ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
|
24
|
+
# information about the request that generated the error.
|
25
|
+
# See {Seahorse::Client::RequestContext} for more information.
|
26
|
+
#
|
27
|
+
# ## Error Classes
|
28
|
+
# * {AcceleratorNotDisabledException}
|
29
|
+
# * {AcceleratorNotFoundException}
|
30
|
+
# * {AccessDeniedException}
|
31
|
+
# * {AssociatedEndpointGroupFoundException}
|
32
|
+
# * {AssociatedListenerFoundException}
|
33
|
+
# * {ByoipCidrNotFoundException}
|
34
|
+
# * {EndpointGroupAlreadyExistsException}
|
35
|
+
# * {EndpointGroupNotFoundException}
|
36
|
+
# * {IncorrectCidrStateException}
|
37
|
+
# * {InternalServiceErrorException}
|
38
|
+
# * {InvalidArgumentException}
|
39
|
+
# * {InvalidNextTokenException}
|
40
|
+
# * {InvalidPortRangeException}
|
41
|
+
# * {LimitExceededException}
|
42
|
+
# * {ListenerNotFoundException}
|
43
|
+
#
|
44
|
+
# Additionally, error classes are dynamically generated for service errors based on the error code
|
45
|
+
# if they are not defined above.
|
9
46
|
module Errors
|
10
47
|
|
11
48
|
extend Aws::Errors::DynamicErrors
|
@@ -23,7 +60,6 @@ module Aws::GlobalAccelerator
|
|
23
60
|
def message
|
24
61
|
@message || @data[:message]
|
25
62
|
end
|
26
|
-
|
27
63
|
end
|
28
64
|
|
29
65
|
class AcceleratorNotFoundException < ServiceError
|
@@ -39,7 +75,6 @@ module Aws::GlobalAccelerator
|
|
39
75
|
def message
|
40
76
|
@message || @data[:message]
|
41
77
|
end
|
42
|
-
|
43
78
|
end
|
44
79
|
|
45
80
|
class AccessDeniedException < ServiceError
|
@@ -55,7 +90,6 @@ module Aws::GlobalAccelerator
|
|
55
90
|
def message
|
56
91
|
@message || @data[:message]
|
57
92
|
end
|
58
|
-
|
59
93
|
end
|
60
94
|
|
61
95
|
class AssociatedEndpointGroupFoundException < ServiceError
|
@@ -71,7 +105,6 @@ module Aws::GlobalAccelerator
|
|
71
105
|
def message
|
72
106
|
@message || @data[:message]
|
73
107
|
end
|
74
|
-
|
75
108
|
end
|
76
109
|
|
77
110
|
class AssociatedListenerFoundException < ServiceError
|
@@ -87,7 +120,21 @@ module Aws::GlobalAccelerator
|
|
87
120
|
def message
|
88
121
|
@message || @data[:message]
|
89
122
|
end
|
123
|
+
end
|
124
|
+
|
125
|
+
class ByoipCidrNotFoundException < ServiceError
|
126
|
+
|
127
|
+
# @param [Seahorse::Client::RequestContext] context
|
128
|
+
# @param [String] message
|
129
|
+
# @param [Aws::GlobalAccelerator::Types::ByoipCidrNotFoundException] data
|
130
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
131
|
+
super(context, message, data)
|
132
|
+
end
|
90
133
|
|
134
|
+
# @return [String]
|
135
|
+
def message
|
136
|
+
@message || @data[:message]
|
137
|
+
end
|
91
138
|
end
|
92
139
|
|
93
140
|
class EndpointGroupAlreadyExistsException < ServiceError
|
@@ -103,7 +150,6 @@ module Aws::GlobalAccelerator
|
|
103
150
|
def message
|
104
151
|
@message || @data[:message]
|
105
152
|
end
|
106
|
-
|
107
153
|
end
|
108
154
|
|
109
155
|
class EndpointGroupNotFoundException < ServiceError
|
@@ -119,7 +165,21 @@ module Aws::GlobalAccelerator
|
|
119
165
|
def message
|
120
166
|
@message || @data[:message]
|
121
167
|
end
|
168
|
+
end
|
169
|
+
|
170
|
+
class IncorrectCidrStateException < ServiceError
|
122
171
|
|
172
|
+
# @param [Seahorse::Client::RequestContext] context
|
173
|
+
# @param [String] message
|
174
|
+
# @param [Aws::GlobalAccelerator::Types::IncorrectCidrStateException] data
|
175
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
176
|
+
super(context, message, data)
|
177
|
+
end
|
178
|
+
|
179
|
+
# @return [String]
|
180
|
+
def message
|
181
|
+
@message || @data[:message]
|
182
|
+
end
|
123
183
|
end
|
124
184
|
|
125
185
|
class InternalServiceErrorException < ServiceError
|
@@ -135,7 +195,6 @@ module Aws::GlobalAccelerator
|
|
135
195
|
def message
|
136
196
|
@message || @data[:message]
|
137
197
|
end
|
138
|
-
|
139
198
|
end
|
140
199
|
|
141
200
|
class InvalidArgumentException < ServiceError
|
@@ -151,7 +210,6 @@ module Aws::GlobalAccelerator
|
|
151
210
|
def message
|
152
211
|
@message || @data[:message]
|
153
212
|
end
|
154
|
-
|
155
213
|
end
|
156
214
|
|
157
215
|
class InvalidNextTokenException < ServiceError
|
@@ -167,7 +225,6 @@ module Aws::GlobalAccelerator
|
|
167
225
|
def message
|
168
226
|
@message || @data[:message]
|
169
227
|
end
|
170
|
-
|
171
228
|
end
|
172
229
|
|
173
230
|
class InvalidPortRangeException < ServiceError
|
@@ -183,7 +240,6 @@ module Aws::GlobalAccelerator
|
|
183
240
|
def message
|
184
241
|
@message || @data[:message]
|
185
242
|
end
|
186
|
-
|
187
243
|
end
|
188
244
|
|
189
245
|
class LimitExceededException < ServiceError
|
@@ -199,7 +255,6 @@ module Aws::GlobalAccelerator
|
|
199
255
|
def message
|
200
256
|
@message || @data[:message]
|
201
257
|
end
|
202
|
-
|
203
258
|
end
|
204
259
|
|
205
260
|
class ListenerNotFoundException < ServiceError
|
@@ -215,7 +270,6 @@ module Aws::GlobalAccelerator
|
|
215
270
|
def message
|
216
271
|
@message || @data[:message]
|
217
272
|
end
|
218
|
-
|
219
273
|
end
|
220
274
|
|
221
275
|
end
|