Skip to content

Commit c938cab

Browse files
author
AWS
committed
AWS Global Accelerator Update: This feature adds exceptions to the Customer API to avoid throwing Internal Service errors
1 parent b22f885 commit c938cab

File tree

2 files changed

+28
-8
lines changed

2 files changed

+28
-8
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS Global Accelerator",
4+
"contributor": "",
5+
"description": "This feature adds exceptions to the Customer API to avoid throwing Internal Service errors"
6+
}

services/globalaccelerator/src/main/resources/codegen-resources/service-2.json

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@
9494
"errors":[
9595
{"shape":"InternalServiceErrorException"},
9696
{"shape":"InvalidArgumentException"},
97-
{"shape":"LimitExceededException"}
97+
{"shape":"LimitExceededException"},
98+
{"shape":"AccessDeniedException"},
99+
{"shape":"TransactionInProgressException"}
98100
],
99101
"documentation":"<p>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. </p> <important> <p>Global Accelerator is a global service that supports endpoints in multiple Amazon Web Services Regions but you must specify the US West (Oregon) Region to create, update, or otherwise work with accelerators. That is, for example, specify <code>--region us-west-2</code> on Amazon Web Services CLI commands.</p> </important>"
100102
},
@@ -127,7 +129,8 @@
127129
{"shape":"InternalServiceErrorException"},
128130
{"shape":"InvalidArgumentException"},
129131
{"shape":"LimitExceededException"},
130-
{"shape":"AccessDeniedException"}
132+
{"shape":"AccessDeniedException"},
133+
{"shape":"TransactionInProgressException"}
131134
],
132135
"documentation":"<p>Create a custom routing accelerator. A custom routing accelerator directs traffic to one of possibly thousands of Amazon EC2 instance destinations running in a single or multiple virtual private clouds (VPC) subnet endpoints.</p> <p>Be aware that, by default, all destination EC2 instances in a VPC subnet endpoint cannot receive traffic. To enable all destinations to receive traffic, or to specify individual port mappings that can receive traffic, see the <a href=\"https://docs.aws.amazon.com/global-accelerator/latest/api/API_AllowCustomRoutingTraffic.html\"> AllowCustomRoutingTraffic</a> operation.</p> <important> <p>Global Accelerator is a global service that supports endpoints in multiple Amazon Web Services Regions but you must specify the US West (Oregon) Region to create, update, or otherwise work with accelerators. That is, for example, specify <code>--region us-west-2</code> on Amazon Web Services CLI commands.</p> </important>"
133136
},
@@ -216,7 +219,8 @@
216219
{"shape":"AcceleratorNotDisabledException"},
217220
{"shape":"AssociatedListenerFoundException"},
218221
{"shape":"InternalServiceErrorException"},
219-
{"shape":"InvalidArgumentException"}
222+
{"shape":"InvalidArgumentException"},
223+
{"shape":"TransactionInProgressException"}
220224
],
221225
"documentation":"<p>Delete an accelerator. Before you can delete an accelerator, you must disable it and remove all dependent resources (listeners and endpoint groups). To disable the accelerator, update the accelerator to set <code>Enabled</code> to false.</p> <important> <p>When you create an accelerator, by default, Global Accelerator provides you with a set of two static IP addresses. Alternatively, you can bring your own IP address ranges to Global Accelerator and assign IP addresses from those ranges. </p> <p>The IP addresses are assigned to your accelerator for as long as it exists, even if you disable the accelerator and it no longer accepts or routes traffic. However, when you <i>delete</i> an accelerator, you lose the static IP addresses that are assigned to the accelerator, so you can no longer route traffic by using them. As a best practice, ensure that you have permissions in place to avoid inadvertently deleting accelerators. You can use IAM policies with Global Accelerator to limit the users who have permissions to delete an accelerator. For more information, see <a href=\"https://docs.aws.amazon.com/global-accelerator/latest/dg/auth-and-access-control.html\">Identity and access management</a> in the <i>Global Accelerator Developer Guide</i>.</p> </important>"
222226
},
@@ -248,7 +252,8 @@
248252
{"shape":"AcceleratorNotDisabledException"},
249253
{"shape":"AssociatedListenerFoundException"},
250254
{"shape":"InternalServiceErrorException"},
251-
{"shape":"InvalidArgumentException"}
255+
{"shape":"InvalidArgumentException"},
256+
{"shape":"TransactionInProgressException"}
252257
],
253258
"documentation":"<p>Delete a custom routing accelerator. Before you can delete an accelerator, you must disable it and remove all dependent resources (listeners and endpoint groups). To disable the accelerator, update the accelerator to set <code>Enabled</code> to false.</p> <important> <p>When you create a custom routing accelerator, by default, Global Accelerator provides you with a set of two static IP addresses. </p> <p>The IP addresses are assigned to your accelerator for as long as it exists, even if you disable the accelerator and it no longer accepts or routes traffic. However, when you <i>delete</i> an accelerator, you lose the static IP addresses that are assigned to the accelerator, so you can no longer route traffic by using them. As a best practice, ensure that you have permissions in place to avoid inadvertently deleting accelerators. You can use IAM policies with Global Accelerator to limit the users who have permissions to delete an accelerator. For more information, see <a href=\"https://docs.aws.amazon.com/global-accelerator/latest/dg/auth-and-access-control.html\">Identity and access management</a> in the <i>Global Accelerator Developer Guide</i>.</p> </important>"
254259
},
@@ -677,6 +682,9 @@
677682
"output":{"shape":"ListTagsForResourceResponse"},
678683
"errors":[
679684
{"shape":"AcceleratorNotFoundException"},
685+
{"shape":"AttachmentNotFoundException"},
686+
{"shape":"EndpointGroupNotFoundException"},
687+
{"shape":"ListenerNotFoundException"},
680688
{"shape":"InternalServiceErrorException"},
681689
{"shape":"InvalidArgumentException"}
682690
],
@@ -774,7 +782,9 @@
774782
{"shape":"AcceleratorNotFoundException"},
775783
{"shape":"AccessDeniedException"},
776784
{"shape":"InternalServiceErrorException"},
777-
{"shape":"InvalidArgumentException"}
785+
{"shape":"InvalidArgumentException"},
786+
{"shape":"TransactionInProgressException"},
787+
{"shape":"ConflictException"}
778788
],
779789
"documentation":"<p>Update an accelerator to make changes, such as the following: </p> <ul> <li> <p>Change the name of the accelerator.</p> </li> <li> <p>Disable the accelerator so that it no longer accepts or routes traffic, or so that you can delete it.</p> </li> <li> <p>Enable the accelerator, if it is disabled.</p> </li> <li> <p>Change the IP address type to dual-stack if it is IPv4, or change the IP address type to IPv4 if it's dual-stack.</p> </li> </ul> <p>Be aware that static IP addresses remain assigned to your accelerator for as long as it exists, even if you disable the accelerator and it no longer accepts or routes traffic. However, when you delete the accelerator, you lose the static IP addresses that are assigned to it, so you can no longer route traffic by using them.</p> <important> <p>Global Accelerator is a global service that supports endpoints in multiple Amazon Web Services Regions but you must specify the US West (Oregon) Region to create, update, or otherwise work with accelerators. That is, for example, specify <code>--region us-west-2</code> on Amazon Web Services CLI commands.</p> </important>"
780790
},
@@ -790,7 +800,8 @@
790800
{"shape":"AcceleratorNotFoundException"},
791801
{"shape":"InternalServiceErrorException"},
792802
{"shape":"InvalidArgumentException"},
793-
{"shape":"AccessDeniedException"}
803+
{"shape":"AccessDeniedException"},
804+
{"shape":"TransactionInProgressException"}
794805
],
795806
"documentation":"<p>Update the attributes for an accelerator. </p>"
796807
},
@@ -823,7 +834,9 @@
823834
"errors":[
824835
{"shape":"AcceleratorNotFoundException"},
825836
{"shape":"InternalServiceErrorException"},
826-
{"shape":"InvalidArgumentException"}
837+
{"shape":"InvalidArgumentException"},
838+
{"shape":"TransactionInProgressException"},
839+
{"shape":"ConflictException"}
827840
],
828841
"documentation":"<p>Update a custom routing accelerator. </p>"
829842
},
@@ -839,7 +852,8 @@
839852
{"shape":"AcceleratorNotFoundException"},
840853
{"shape":"InternalServiceErrorException"},
841854
{"shape":"InvalidArgumentException"},
842-
{"shape":"AccessDeniedException"}
855+
{"shape":"AccessDeniedException"},
856+
{"shape":"TransactionInProgressException"}
843857
],
844858
"documentation":"<p>Update the attributes for a custom routing accelerator. </p>"
845859
},

0 commit comments

Comments
 (0)