Skip to content

Commit 58d488f

Browse files
author
AWS
committed
Firewall Management Service Update: AWS Firewall Manager now supports tagging, and tag-based access control, of policies.
1 parent 21e2c7d commit 58d488f

File tree

2 files changed

+166
-2
lines changed

2 files changed

+166
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "feature",
3+
"category": "Firewall Management Service",
4+
"description": "AWS Firewall Manager now supports tagging, and tag-based access control, of policies."
5+
}

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

Lines changed: 161 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,22 @@
189189
],
190190
"documentation":"<p>Returns an array of <code>PolicySummary</code> objects in the response.</p>"
191191
},
192+
"ListTagsForResource":{
193+
"name":"ListTagsForResource",
194+
"http":{
195+
"method":"POST",
196+
"requestUri":"/"
197+
},
198+
"input":{"shape":"ListTagsForResourceRequest"},
199+
"output":{"shape":"ListTagsForResourceResponse"},
200+
"errors":[
201+
{"shape":"ResourceNotFoundException"},
202+
{"shape":"InvalidOperationException"},
203+
{"shape":"InternalErrorException"},
204+
{"shape":"InvalidInputException"}
205+
],
206+
"documentation":"<p>Retrieves the list of tags for the specified AWS resource. </p>"
207+
},
192208
"PutNotificationChannel":{
193209
"name":"PutNotificationChannel",
194210
"http":{
@@ -220,6 +236,39 @@
220236
{"shape":"InvalidTypeException"}
221237
],
222238
"documentation":"<p>Creates an AWS Firewall Manager policy.</p> <p>Firewall Manager provides the following types of policies: </p> <ul> <li> <p>A Shield Advanced policy, which applies Shield Advanced protection to specified accounts and resources</p> </li> <li> <p>An AWS WAF policy, which contains a rule group and defines which resources are to be protected by that rule group</p> </li> <li> <p>A security group policy, which manages VPC security groups across your AWS organization. </p> </li> </ul> <p>Each policy is specific to one of the three types. If you want to enforce more than one policy type across accounts, you can create multiple policies. You can create multiple policies for each type.</p> <p>You must be subscribed to Shield Advanced to create a Shield Advanced policy. For more information about subscribing to Shield Advanced, see <a href=\"https://docs.aws.amazon.com/waf/latest/DDOSAPIReference/API_CreateSubscription.html\">CreateSubscription</a>.</p>"
239+
},
240+
"TagResource":{
241+
"name":"TagResource",
242+
"http":{
243+
"method":"POST",
244+
"requestUri":"/"
245+
},
246+
"input":{"shape":"TagResourceRequest"},
247+
"output":{"shape":"TagResourceResponse"},
248+
"errors":[
249+
{"shape":"ResourceNotFoundException"},
250+
{"shape":"InvalidOperationException"},
251+
{"shape":"InternalErrorException"},
252+
{"shape":"InvalidInputException"},
253+
{"shape":"LimitExceededException"}
254+
],
255+
"documentation":"<p>Adds one or more tags to an AWS resource.</p>"
256+
},
257+
"UntagResource":{
258+
"name":"UntagResource",
259+
"http":{
260+
"method":"POST",
261+
"requestUri":"/"
262+
},
263+
"input":{"shape":"UntagResourceRequest"},
264+
"output":{"shape":"UntagResourceResponse"},
265+
"errors":[
266+
{"shape":"ResourceNotFoundException"},
267+
{"shape":"InvalidOperationException"},
268+
{"shape":"InternalErrorException"},
269+
{"shape":"InvalidInputException"}
270+
],
271+
"documentation":"<p>Removes one or more tags from an AWS resource.</p>"
223272
}
224273
},
225274
"shapes":{
@@ -617,6 +666,25 @@
617666
}
618667
}
619668
},
669+
"ListTagsForResourceRequest":{
670+
"type":"structure",
671+
"required":["ResourceArn"],
672+
"members":{
673+
"ResourceArn":{
674+
"shape":"ResourceArn",
675+
"documentation":"<p>The Amazon Resource Name (ARN) of the resource to return tags for. The Firewall Manager policy is the only AWS resource that supports tagging, so this ARN is a policy ARN..</p>"
676+
}
677+
}
678+
},
679+
"ListTagsForResourceResponse":{
680+
"type":"structure",
681+
"members":{
682+
"TagList":{
683+
"shape":"TagList",
684+
"documentation":"<p>The tags associated with the resource.</p>"
685+
}
686+
}
687+
},
620688
"ManagedServiceData":{
621689
"type":"string",
622690
"max":1024,
@@ -633,6 +701,7 @@
633701
},
634702
"PaginationToken":{
635703
"type":"string",
704+
"max":4096,
636705
"min":1,
637706
"pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"
638707
},
@@ -843,6 +912,10 @@
843912
"Policy":{
844913
"shape":"Policy",
845914
"documentation":"<p>The details of the AWS Firewall Manager policy to be created.</p>"
915+
},
916+
"TagList":{
917+
"shape":"TagList",
918+
"documentation":"<p>The tags to add to the AWS resource.</p>"
846919
}
847920
}
848921
},
@@ -894,16 +967,27 @@
894967
"required":["Key"],
895968
"members":{
896969
"Key":{
897-
"shape":"TagKey",
970+
"shape":"ResourceTagKey",
898971
"documentation":"<p>The resource tag key.</p>"
899972
},
900973
"Value":{
901-
"shape":"TagValue",
974+
"shape":"ResourceTagValue",
902975
"documentation":"<p>The resource tag value.</p>"
903976
}
904977
},
905978
"documentation":"<p>The resource tags that AWS Firewall Manager uses to determine if a particular resource should be included or excluded from the AWS Firewall Manager policy. Tags enable you to categorize your AWS resources in different ways, for example, by purpose, owner, or environment. Each tag consists of a key and an optional value. Firewall Manager combines the tags with \"AND\" so that, if you add more than one tag to a policy scope, a resource must have all the specified tags to be included or excluded. For more information, see <a href=\"https://docs.aws.amazon.com/awsconsolehelpdocs/latest/gsg/tag-editor.html\">Working with Tag Editor</a>.</p>"
906979
},
980+
"ResourceTagKey":{
981+
"type":"string",
982+
"max":128,
983+
"min":1,
984+
"pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"
985+
},
986+
"ResourceTagValue":{
987+
"type":"string",
988+
"max":256,
989+
"pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"
990+
},
907991
"ResourceTags":{
908992
"type":"list",
909993
"member":{"shape":"ResourceTag"},
@@ -945,18 +1029,93 @@
9451029
"SECURITY_GROUPS_USAGE_AUDIT"
9461030
]
9471031
},
1032+
"Tag":{
1033+
"type":"structure",
1034+
"required":[
1035+
"Key",
1036+
"Value"
1037+
],
1038+
"members":{
1039+
"Key":{
1040+
"shape":"TagKey",
1041+
"documentation":"<p>Part of the key:value pair that defines a tag. You can use a tag key to describe a category of information, such as \"customer.\" Tag keys are case-sensitive.</p>"
1042+
},
1043+
"Value":{
1044+
"shape":"TagValue",
1045+
"documentation":"<p>Part of the key:value pair that defines a tag. You can use a tag value to describe a specific value within a category, such as \"companyA\" or \"companyB.\" Tag values are case-sensitive. </p>"
1046+
}
1047+
},
1048+
"documentation":"<p>A collection of key:value pairs associated with an AWS resource. The key:value pair can be anything you define. Typically, the tag key represents a category (such as \"environment\") and the tag value represents a specific value within that category (such as \"test,\" \"development,\" or \"production\"). You can add up to 50 tags to each AWS resource. </p>"
1049+
},
9481050
"TagKey":{
9491051
"type":"string",
9501052
"max":128,
9511053
"min":1,
9521054
"pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"
9531055
},
1056+
"TagKeyList":{
1057+
"type":"list",
1058+
"member":{"shape":"TagKey"},
1059+
"max":200,
1060+
"min":0
1061+
},
1062+
"TagList":{
1063+
"type":"list",
1064+
"member":{"shape":"Tag"},
1065+
"max":200,
1066+
"min":0
1067+
},
1068+
"TagResourceRequest":{
1069+
"type":"structure",
1070+
"required":[
1071+
"ResourceArn",
1072+
"TagList"
1073+
],
1074+
"members":{
1075+
"ResourceArn":{
1076+
"shape":"ResourceArn",
1077+
"documentation":"<p>The Amazon Resource Name (ARN) of the resource. The Firewall Manager policy is the only AWS resource that supports tagging, so this ARN is a policy ARN.</p>"
1078+
},
1079+
"TagList":{
1080+
"shape":"TagList",
1081+
"documentation":"<p>The tags to add to the resource.</p>"
1082+
}
1083+
}
1084+
},
1085+
"TagResourceResponse":{
1086+
"type":"structure",
1087+
"members":{
1088+
}
1089+
},
9541090
"TagValue":{
9551091
"type":"string",
9561092
"max":256,
1093+
"min":0,
9571094
"pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"
9581095
},
9591096
"TimeStamp":{"type":"timestamp"},
1097+
"UntagResourceRequest":{
1098+
"type":"structure",
1099+
"required":[
1100+
"ResourceArn",
1101+
"TagKeys"
1102+
],
1103+
"members":{
1104+
"ResourceArn":{
1105+
"shape":"ResourceArn",
1106+
"documentation":"<p>The Amazon Resource Name (ARN) of the resource. The Firewall Manager policy is the only AWS resource that supports tagging, so this ARN is a policy ARN.</p>"
1107+
},
1108+
"TagKeys":{
1109+
"shape":"TagKeyList",
1110+
"documentation":"<p>The keys of the tags to remove from the resource. </p>"
1111+
}
1112+
}
1113+
},
1114+
"UntagResourceResponse":{
1115+
"type":"structure",
1116+
"members":{
1117+
}
1118+
},
9601119
"ViolationReason":{
9611120
"type":"string",
9621121
"enum":[

0 commit comments

Comments
 (0)