Skip to content

Commit 099f644

Browse files
author
AWS
committed
AWS Shield Update: Add support for tagging of Shield protection and protection group resources.
1 parent 8ceda54 commit 099f644

File tree

2 files changed

+172
-0
lines changed

2 files changed

+172
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS Shield",
4+
"contributor": "",
5+
"description": "Add support for tagging of Shield protection and protection group resources."
6+
}

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

+166
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,53 @@
437437
],
438438
"documentation":"<p>Retrieves the resources that are included in the protection group. </p>"
439439
},
440+
"ListTagsForResource":{
441+
"name":"ListTagsForResource",
442+
"http":{
443+
"method":"POST",
444+
"requestUri":"/"
445+
},
446+
"input":{"shape":"ListTagsForResourceRequest"},
447+
"output":{"shape":"ListTagsForResourceResponse"},
448+
"errors":[
449+
{"shape":"InternalErrorException"},
450+
{"shape":"InvalidResourceException"},
451+
{"shape":"ResourceNotFoundException"}
452+
],
453+
"documentation":"<p>Gets information about AWS tags for a specified Amazon Resource Name (ARN) in AWS Shield.</p>"
454+
},
455+
"TagResource":{
456+
"name":"TagResource",
457+
"http":{
458+
"method":"POST",
459+
"requestUri":"/"
460+
},
461+
"input":{"shape":"TagResourceRequest"},
462+
"output":{"shape":"TagResourceResponse"},
463+
"errors":[
464+
{"shape":"InternalErrorException"},
465+
{"shape":"InvalidResourceException"},
466+
{"shape":"InvalidParameterException"},
467+
{"shape":"ResourceNotFoundException"}
468+
],
469+
"documentation":"<p>Adds or updates tags for a resource in AWS Shield.</p>"
470+
},
471+
"UntagResource":{
472+
"name":"UntagResource",
473+
"http":{
474+
"method":"POST",
475+
"requestUri":"/"
476+
},
477+
"input":{"shape":"UntagResourceRequest"},
478+
"output":{"shape":"UntagResourceResponse"},
479+
"errors":[
480+
{"shape":"InternalErrorException"},
481+
{"shape":"InvalidResourceException"},
482+
{"shape":"InvalidParameterException"},
483+
{"shape":"ResourceNotFoundException"}
484+
],
485+
"documentation":"<p>Removes tags from a resource in AWS Shield.</p>"
486+
},
440487
"UpdateEmergencyContactSettings":{
441488
"name":"UpdateEmergencyContactSettings",
442489
"http":{
@@ -813,6 +860,10 @@
813860
"Members":{
814861
"shape":"ProtectionGroupMembers",
815862
"documentation":"<p>The Amazon Resource Names (ARNs) of the resources to include in the protection group. You must set this when you set <code>Pattern</code> to <code>ARBITRARY</code> and you must not set it for any other <code>Pattern</code> setting. </p>"
863+
},
864+
"Tags":{
865+
"shape":"TagList",
866+
"documentation":"<p>One or more tag key-value pairs for the protection group.</p>"
816867
}
817868
}
818869
},
@@ -835,6 +886,10 @@
835886
"ResourceArn":{
836887
"shape":"ResourceArn",
837888
"documentation":"<p>The ARN (Amazon Resource Name) of the resource to be protected.</p> <p>The ARN should be in one of the following formats:</p> <ul> <li> <p>For an Application Load Balancer: <code>arn:aws:elasticloadbalancing:<i>region</i>:<i>account-id</i>:loadbalancer/app/<i>load-balancer-name</i>/<i>load-balancer-id</i> </code> </p> </li> <li> <p>For an Elastic Load Balancer (Classic Load Balancer): <code>arn:aws:elasticloadbalancing:<i>region</i>:<i>account-id</i>:loadbalancer/<i>load-balancer-name</i> </code> </p> </li> <li> <p>For an AWS CloudFront distribution: <code>arn:aws:cloudfront::<i>account-id</i>:distribution/<i>distribution-id</i> </code> </p> </li> <li> <p>For an AWS Global Accelerator accelerator: <code>arn:aws:globalaccelerator::<i>account-id</i>:accelerator/<i>accelerator-id</i> </code> </p> </li> <li> <p>For Amazon Route 53: <code>arn:aws:route53:::hostedzone/<i>hosted-zone-id</i> </code> </p> </li> <li> <p>For an Elastic IP address: <code>arn:aws:ec2:<i>region</i>:<i>account-id</i>:eip-allocation/<i>allocation-id</i> </code> </p> </li> </ul>"
889+
},
890+
"Tags":{
891+
"shape":"TagList",
892+
"documentation":"<p>One or more tag key-value pairs for the <a>Protection</a> object that is created.</p>"
838893
}
839894
}
840895
},
@@ -1357,6 +1412,25 @@
13571412
}
13581413
}
13591414
},
1415+
"ListTagsForResourceRequest":{
1416+
"type":"structure",
1417+
"required":["ResourceARN"],
1418+
"members":{
1419+
"ResourceARN":{
1420+
"shape":"ResourceArn",
1421+
"documentation":"<p>The Amazon Resource Name (ARN) of the resource to get tags for.</p>"
1422+
}
1423+
}
1424+
},
1425+
"ListTagsForResourceResponse":{
1426+
"type":"structure",
1427+
"members":{
1428+
"Tags":{
1429+
"shape":"TagList",
1430+
"documentation":"<p>A list of tag key and value pairs associated with the specified resource.</p>"
1431+
}
1432+
}
1433+
},
13601434
"LockedSubscriptionException":{
13611435
"type":"structure",
13621436
"members":{
@@ -1457,6 +1531,10 @@
14571531
"HealthCheckIds":{
14581532
"shape":"HealthCheckIds",
14591533
"documentation":"<p>The unique identifier (ID) for the Route 53 health check that's associated with the protection. </p>"
1534+
},
1535+
"ProtectionArn":{
1536+
"shape":"ResourceArn",
1537+
"documentation":"<p>The ARN (Amazon Resource Name) of the protection.</p>"
14601538
}
14611539
},
14621540
"documentation":"<p>An object that represents a resource that is under DDoS protection.</p>"
@@ -1489,6 +1567,10 @@
14891567
"Members":{
14901568
"shape":"ProtectionGroupMembers",
14911569
"documentation":"<p>The Amazon Resource Names (ARNs) of the resources to include in the protection group. You must set this when you set <code>Pattern</code> to <code>ARBITRARY</code> and you must not set it for any other <code>Pattern</code> setting. </p>"
1570+
},
1571+
"ProtectionGroupArn":{
1572+
"shape":"ResourceArn",
1573+
"documentation":"<p>The ARN (Amazon Resource Name) of the protection group.</p>"
14921574
}
14931575
},
14941576
"documentation":"<p>A grouping of protected resources that you and AWS Shield Advanced can monitor as a collective. This resource grouping improves the accuracy of detection and reduces false positives. </p>"
@@ -1701,6 +1783,10 @@
17011783
"SubscriptionLimits":{
17021784
"shape":"SubscriptionLimits",
17031785
"documentation":"<p>Limits settings for your subscription. </p>"
1786+
},
1787+
"SubscriptionArn":{
1788+
"shape":"ResourceArn",
1789+
"documentation":"<p>The ARN (Amazon Resource Name) of the subscription.</p>"
17041790
}
17051791
},
17061792
"documentation":"<p>Information about the AWS Shield Advanced subscription for an account.</p>"
@@ -1783,6 +1869,64 @@
17831869
"type":"list",
17841870
"member":{"shape":"SummarizedCounter"}
17851871
},
1872+
"Tag":{
1873+
"type":"structure",
1874+
"members":{
1875+
"Key":{
1876+
"shape":"TagKey",
1877+
"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>"
1878+
},
1879+
"Value":{
1880+
"shape":"TagValue",
1881+
"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>"
1882+
}
1883+
},
1884+
"documentation":"<p>A tag associated with an AWS resource. Tags are key:value pairs that you can use to categorize and manage your resources, for purposes like billing or other management. 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\". Or you might set the tag key to \"customer\" and the value to the customer name or ID. You can specify one or more tags to add to each AWS resource, up to 50 tags for a resource.</p>"
1885+
},
1886+
"TagKey":{
1887+
"type":"string",
1888+
"max":128,
1889+
"min":1
1890+
},
1891+
"TagKeyList":{
1892+
"type":"list",
1893+
"member":{"shape":"TagKey"},
1894+
"max":200,
1895+
"min":0
1896+
},
1897+
"TagList":{
1898+
"type":"list",
1899+
"member":{"shape":"Tag"},
1900+
"max":200,
1901+
"min":0
1902+
},
1903+
"TagResourceRequest":{
1904+
"type":"structure",
1905+
"required":[
1906+
"ResourceARN",
1907+
"Tags"
1908+
],
1909+
"members":{
1910+
"ResourceARN":{
1911+
"shape":"ResourceArn",
1912+
"documentation":"<p>The Amazon Resource Name (ARN) of the resource that you want to add or update tags for.</p>"
1913+
},
1914+
"Tags":{
1915+
"shape":"TagList",
1916+
"documentation":"<p>The tags that you want to modify or add to the resource.</p>"
1917+
}
1918+
}
1919+
},
1920+
"TagResourceResponse":{
1921+
"type":"structure",
1922+
"members":{
1923+
}
1924+
},
1925+
"TagValue":{
1926+
"type":"string",
1927+
"max":256,
1928+
"min":0
1929+
},
17861930
"TimeRange":{
17871931
"type":"structure",
17881932
"members":{
@@ -1817,6 +1961,28 @@
18171961
"REQUESTS"
18181962
]
18191963
},
1964+
"UntagResourceRequest":{
1965+
"type":"structure",
1966+
"required":[
1967+
"ResourceARN",
1968+
"TagKeys"
1969+
],
1970+
"members":{
1971+
"ResourceARN":{
1972+
"shape":"ResourceArn",
1973+
"documentation":"<p>The Amazon Resource Name (ARN) of the resource that you want to remove tags from.</p>"
1974+
},
1975+
"TagKeys":{
1976+
"shape":"TagKeyList",
1977+
"documentation":"<p>The tag key for each tag that you want to remove from the resource.</p>"
1978+
}
1979+
}
1980+
},
1981+
"UntagResourceResponse":{
1982+
"type":"structure",
1983+
"members":{
1984+
}
1985+
},
18201986
"UpdateEmergencyContactSettingsRequest":{
18211987
"type":"structure",
18221988
"members":{

0 commit comments

Comments
 (0)