Skip to content

Commit 4a41c4b

Browse files
author
AWS
committed
AWS Shield Update: CreateProtection now throws InvalidParameterException instead of InternalErrorException when system tags (tag with keys prefixed with "aws:") are passed in.
1 parent ccd6ebd commit 4a41c4b

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
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 Shield",
4+
"contributor": "",
5+
"description": "CreateProtection now throws InvalidParameterException instead of InternalErrorException when system tags (tag with keys prefixed with \"aws:\") are passed in."
6+
}

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

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@
100100
{"shape":"LimitsExceededException"},
101101
{"shape":"ResourceAlreadyExistsException"},
102102
{"shape":"OptimisticLockException"},
103-
{"shape":"ResourceNotFoundException"}
103+
{"shape":"ResourceNotFoundException"},
104+
{"shape":"InvalidParameterException"}
104105
],
105106
"documentation":"<p>Enables AWS Shield Advanced for a specific AWS resource. The resource can be an Amazon CloudFront distribution, Elastic Load Balancing load balancer, AWS Global Accelerator accelerator, Elastic IP Address, or an Amazon Route 53 hosted zone.</p> <p>You can add protection to only a single resource with each CreateProtection request. If you want to add protection to multiple resources at once, use the <a href=\"https://console.aws.amazon.com/waf/\">AWS WAF console</a>. For more information see <a href=\"https://docs.aws.amazon.com/waf/latest/developerguide/getting-started-ddos.html\">Getting Started with AWS Shield Advanced</a> and <a href=\"https://docs.aws.amazon.com/waf/latest/developerguide/configure-new-protection.html\">Add AWS Shield Advanced Protection to more AWS Resources</a>.</p>"
106107
},
@@ -1283,10 +1284,16 @@
12831284
"type":"structure",
12841285
"members":{
12851286
"message":{"shape":"errorMessage"},
1286-
"Type":{"shape":"LimitType"},
1287-
"Limit":{"shape":"LimitNumber"}
1287+
"Type":{
1288+
"shape":"LimitType",
1289+
"documentation":"<p>The type of limit that would be exceeded.</p>"
1290+
},
1291+
"Limit":{
1292+
"shape":"LimitNumber",
1293+
"documentation":"<p>The threshold that would be exceeded.</p>"
1294+
}
12881295
},
1289-
"documentation":"<p>Exception that indicates that the operation would exceed a limit.</p> <p> <code>Type</code> is the type of limit that would be exceeded.</p> <p> <code>Limit</code> is the threshold that would be exceeded.</p>",
1296+
"documentation":"<p>Exception that indicates that the operation would exceed a limit.</p>",
12901297
"exception":true
12911298
},
12921299
"ListAttacksRequest":{

0 commit comments

Comments
 (0)