Skip to content

Commit a99bdb1

Browse files
author
AWS
committed
Amazon Prometheus Service Update: This release adds tagging support for Amazon Managed Service for Prometheus workspace.
1 parent 588800f commit a99bdb1

File tree

2 files changed

+172
-0
lines changed

2 files changed

+172
-0
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": "Amazon Prometheus Service",
4+
"contributor": "",
5+
"description": "This release adds tagging support for Amazon Managed Service for Prometheus workspace."
6+
}

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

Lines changed: 166 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,24 @@
6868
],
6969
"documentation":"<p>Describes an existing AMP workspace.</p>"
7070
},
71+
"ListTagsForResource":{
72+
"name":"ListTagsForResource",
73+
"http":{
74+
"method":"GET",
75+
"requestUri":"/tags/{resourceArn}",
76+
"responseCode":200
77+
},
78+
"input":{"shape":"ListTagsForResourceRequest"},
79+
"output":{"shape":"ListTagsForResourceResponse"},
80+
"errors":[
81+
{"shape":"ThrottlingException"},
82+
{"shape":"ValidationException"},
83+
{"shape":"ResourceNotFoundException"},
84+
{"shape":"AccessDeniedException"},
85+
{"shape":"InternalServerException"}
86+
],
87+
"documentation":"<p>Lists the tags you have assigned to the resource.</p>"
88+
},
7189
"ListWorkspaces":{
7290
"name":"ListWorkspaces",
7391
"http":{
@@ -85,6 +103,43 @@
85103
],
86104
"documentation":"<p>Lists all AMP workspaces, including workspaces being created or deleted.</p>"
87105
},
106+
"TagResource":{
107+
"name":"TagResource",
108+
"http":{
109+
"method":"POST",
110+
"requestUri":"/tags/{resourceArn}",
111+
"responseCode":200
112+
},
113+
"input":{"shape":"TagResourceRequest"},
114+
"output":{"shape":"TagResourceResponse"},
115+
"errors":[
116+
{"shape":"ThrottlingException"},
117+
{"shape":"ValidationException"},
118+
{"shape":"ResourceNotFoundException"},
119+
{"shape":"AccessDeniedException"},
120+
{"shape":"InternalServerException"}
121+
],
122+
"documentation":"<p>Creates tags for the specified resource.</p>"
123+
},
124+
"UntagResource":{
125+
"name":"UntagResource",
126+
"http":{
127+
"method":"DELETE",
128+
"requestUri":"/tags/{resourceArn}",
129+
"responseCode":200
130+
},
131+
"input":{"shape":"UntagResourceRequest"},
132+
"output":{"shape":"UntagResourceResponse"},
133+
"errors":[
134+
{"shape":"ThrottlingException"},
135+
{"shape":"ValidationException"},
136+
{"shape":"ResourceNotFoundException"},
137+
{"shape":"AccessDeniedException"},
138+
{"shape":"InternalServerException"}
139+
],
140+
"documentation":"<p>Deletes tags from the specified resource.</p>",
141+
"idempotent":true
142+
},
88143
"UpdateWorkspaceAlias":{
89144
"name":"UpdateWorkspaceAlias",
90145
"http":{
@@ -162,6 +217,10 @@
162217
"shape":"IdempotencyToken",
163218
"documentation":"<p>Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.</p>",
164219
"idempotencyToken":true
220+
},
221+
"tags":{
222+
"shape":"TagMap",
223+
"documentation":"<p>Optional, user-provided tags for this workspace.</p>"
165224
}
166225
},
167226
"documentation":"<p>Represents the input of a CreateWorkspace operation.</p>"
@@ -182,6 +241,10 @@
182241
"shape":"WorkspaceStatus",
183242
"documentation":"<p>The status of the workspace that was just created (usually CREATING).</p>"
184243
},
244+
"tags":{
245+
"shape":"TagMap",
246+
"documentation":"<p>The tags of this workspace.</p>"
247+
},
185248
"workspaceId":{
186249
"shape":"WorkspaceId",
187250
"documentation":"<p>The generated ID of the workspace that was just created.</p>"
@@ -265,6 +328,24 @@
265328
"fault":true,
266329
"retryable":{"throttling":false}
267330
},
331+
"ListTagsForResourceRequest":{
332+
"type":"structure",
333+
"required":["resourceArn"],
334+
"members":{
335+
"resourceArn":{
336+
"shape":"String",
337+
"documentation":"<p>The ARN of the resource.</p>",
338+
"location":"uri",
339+
"locationName":"resourceArn"
340+
}
341+
}
342+
},
343+
"ListTagsForResourceResponse":{
344+
"type":"structure",
345+
"members":{
346+
"tags":{"shape":"TagMap"}
347+
}
348+
},
268349
"ListWorkspacesRequest":{
269350
"type":"structure",
270351
"members":{
@@ -381,6 +462,57 @@
381462
"exception":true
382463
},
383464
"String":{"type":"string"},
465+
"TagKey":{
466+
"type":"string",
467+
"max":128,
468+
"min":1,
469+
"pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"
470+
},
471+
"TagKeys":{
472+
"type":"list",
473+
"member":{"shape":"TagKey"}
474+
},
475+
"TagMap":{
476+
"type":"map",
477+
"key":{
478+
"shape":"TagKey",
479+
"documentation":"<p>The key of the tag.</p> <p>Constraints: Tag keys are case-sensitive and accept a maximum of 128 Unicode characters. Valid characters are Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @ May not begin with <code>aws:</code>.</p>"
480+
},
481+
"value":{
482+
"shape":"TagValue",
483+
"documentation":"<p>The value of the tag.</p> <p>Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters. Valid characters are Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @</p>"
484+
},
485+
"documentation":"<p>The list of tags assigned to the resource.</p>",
486+
"max":50,
487+
"min":0
488+
},
489+
"TagResourceRequest":{
490+
"type":"structure",
491+
"required":[
492+
"resourceArn",
493+
"tags"
494+
],
495+
"members":{
496+
"resourceArn":{
497+
"shape":"String",
498+
"documentation":"<p>The ARN of the resource.</p>",
499+
"location":"uri",
500+
"locationName":"resourceArn"
501+
},
502+
"tags":{"shape":"TagMap"}
503+
}
504+
},
505+
"TagResourceResponse":{
506+
"type":"structure",
507+
"members":{
508+
}
509+
},
510+
"TagValue":{
511+
"type":"string",
512+
"max":256,
513+
"min":0,
514+
"pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"
515+
},
384516
"ThrottlingException":{
385517
"type":"structure",
386518
"required":["message"],
@@ -413,6 +545,32 @@
413545
"retryable":{"throttling":false}
414546
},
415547
"Timestamp":{"type":"timestamp"},
548+
"UntagResourceRequest":{
549+
"type":"structure",
550+
"required":[
551+
"resourceArn",
552+
"tagKeys"
553+
],
554+
"members":{
555+
"resourceArn":{
556+
"shape":"String",
557+
"documentation":"<p>The ARN of the resource.</p>",
558+
"location":"uri",
559+
"locationName":"resourceArn"
560+
},
561+
"tagKeys":{
562+
"shape":"TagKeys",
563+
"documentation":"<p>One or more tag keys</p>",
564+
"location":"querystring",
565+
"locationName":"tagKeys"
566+
}
567+
}
568+
},
569+
"UntagResourceResponse":{
570+
"type":"structure",
571+
"members":{
572+
}
573+
},
416574
"UpdateWorkspaceAliasRequest":{
417575
"type":"structure",
418576
"required":["workspaceId"],
@@ -539,6 +697,10 @@
539697
"shape":"WorkspaceStatus",
540698
"documentation":"<p>The status of this workspace.</p>"
541699
},
700+
"tags":{
701+
"shape":"TagMap",
702+
"documentation":"<p>The tags of this workspace.</p>"
703+
},
542704
"workspaceId":{
543705
"shape":"WorkspaceId",
544706
"documentation":"<p>Unique string identifying this workspace.</p>"
@@ -600,6 +762,10 @@
600762
"shape":"WorkspaceStatus",
601763
"documentation":"<p>The status of this workspace.</p>"
602764
},
765+
"tags":{
766+
"shape":"TagMap",
767+
"documentation":"<p>The tags of this workspace.</p>"
768+
},
603769
"workspaceId":{
604770
"shape":"WorkspaceId",
605771
"documentation":"<p>Unique string identifying this workspace.</p>"

0 commit comments

Comments
 (0)