Skip to content

Commit 8b89eae

Browse files
author
AWS
committed
Amazon Prometheus Service Update: This release adds log APIs that allow customers to manage logging for their Amazon Managed Service for Prometheus workspaces.
1 parent a941565 commit 8b89eae

File tree

2 files changed

+258
-0
lines changed

2 files changed

+258
-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 log APIs that allow customers to manage logging for their Amazon Managed Service for Prometheus workspaces."
6+
}

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

Lines changed: 252 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,24 @@
3333
"documentation":"<p>Create an alert manager definition.</p>",
3434
"idempotent":true
3535
},
36+
"CreateLoggingConfiguration":{
37+
"name":"CreateLoggingConfiguration",
38+
"http":{
39+
"method":"POST",
40+
"requestUri":"/workspaces/{workspaceId}/logging",
41+
"responseCode":202
42+
},
43+
"input":{"shape":"CreateLoggingConfigurationRequest"},
44+
"output":{"shape":"CreateLoggingConfigurationResponse"},
45+
"errors":[
46+
{"shape":"ValidationException"},
47+
{"shape":"ResourceNotFoundException"},
48+
{"shape":"AccessDeniedException"},
49+
{"shape":"InternalServerException"}
50+
],
51+
"documentation":"<p>Create logging configuration.</p>",
52+
"idempotent":true
53+
},
3654
"CreateRuleGroupsNamespace":{
3755
"name":"CreateRuleGroupsNamespace",
3856
"http":{
@@ -93,6 +111,24 @@
93111
"documentation":"<p>Deletes an alert manager definition.</p>",
94112
"idempotent":true
95113
},
114+
"DeleteLoggingConfiguration":{
115+
"name":"DeleteLoggingConfiguration",
116+
"http":{
117+
"method":"DELETE",
118+
"requestUri":"/workspaces/{workspaceId}/logging",
119+
"responseCode":202
120+
},
121+
"input":{"shape":"DeleteLoggingConfigurationRequest"},
122+
"errors":[
123+
{"shape":"ConflictException"},
124+
{"shape":"ValidationException"},
125+
{"shape":"ResourceNotFoundException"},
126+
{"shape":"AccessDeniedException"},
127+
{"shape":"InternalServerException"}
128+
],
129+
"documentation":"<p>Delete logging configuration.</p>",
130+
"idempotent":true
131+
},
96132
"DeleteRuleGroupsNamespace":{
97133
"name":"DeleteRuleGroupsNamespace",
98134
"http":{
@@ -149,6 +185,23 @@
149185
],
150186
"documentation":"<p>Describes an alert manager definition.</p>"
151187
},
188+
"DescribeLoggingConfiguration":{
189+
"name":"DescribeLoggingConfiguration",
190+
"http":{
191+
"method":"GET",
192+
"requestUri":"/workspaces/{workspaceId}/logging",
193+
"responseCode":200
194+
},
195+
"input":{"shape":"DescribeLoggingConfigurationRequest"},
196+
"output":{"shape":"DescribeLoggingConfigurationResponse"},
197+
"errors":[
198+
{"shape":"ValidationException"},
199+
{"shape":"ResourceNotFoundException"},
200+
{"shape":"AccessDeniedException"},
201+
{"shape":"InternalServerException"}
202+
],
203+
"documentation":"<p>Describes logging configuration.</p>"
204+
},
152205
"DescribeRuleGroupsNamespace":{
153206
"name":"DescribeRuleGroupsNamespace",
154207
"http":{
@@ -317,6 +370,25 @@
317370
"documentation":"<p>Deletes tags from the specified resource.</p>",
318371
"idempotent":true
319372
},
373+
"UpdateLoggingConfiguration":{
374+
"name":"UpdateLoggingConfiguration",
375+
"http":{
376+
"method":"PUT",
377+
"requestUri":"/workspaces/{workspaceId}/logging",
378+
"responseCode":202
379+
},
380+
"input":{"shape":"UpdateLoggingConfigurationRequest"},
381+
"output":{"shape":"UpdateLoggingConfigurationResponse"},
382+
"errors":[
383+
{"shape":"ConflictException"},
384+
{"shape":"ValidationException"},
385+
{"shape":"ResourceNotFoundException"},
386+
{"shape":"AccessDeniedException"},
387+
{"shape":"InternalServerException"}
388+
],
389+
"documentation":"<p>Update logging configuration.</p>",
390+
"idempotent":true
391+
},
320392
"UpdateWorkspaceAlias":{
321393
"name":"UpdateWorkspaceAlias",
322394
"http":{
@@ -478,6 +550,42 @@
478550
},
479551
"documentation":"<p>Represents the output of a CreateAlertManagerDefinition operation.</p>"
480552
},
553+
"CreateLoggingConfigurationRequest":{
554+
"type":"structure",
555+
"required":[
556+
"logGroupArn",
557+
"workspaceId"
558+
],
559+
"members":{
560+
"clientToken":{
561+
"shape":"IdempotencyToken",
562+
"documentation":"<p>Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.</p>",
563+
"idempotencyToken":true
564+
},
565+
"logGroupArn":{
566+
"shape":"LogGroupArn",
567+
"documentation":"<p>The ARN of the CW log group to which the vended log data will be published.</p>"
568+
},
569+
"workspaceId":{
570+
"shape":"WorkspaceId",
571+
"documentation":"<p>The ID of the workspace to vend logs to.</p>",
572+
"location":"uri",
573+
"locationName":"workspaceId"
574+
}
575+
},
576+
"documentation":"<p>Represents the input of a CreateLoggingConfiguration operation.</p>"
577+
},
578+
"CreateLoggingConfigurationResponse":{
579+
"type":"structure",
580+
"required":["status"],
581+
"members":{
582+
"status":{
583+
"shape":"LoggingConfigurationStatus",
584+
"documentation":"<p>The status of the logging configuration.</p>"
585+
}
586+
},
587+
"documentation":"<p>Represents the output of a CreateLoggingConfiguration operation.</p>"
588+
},
481589
"CreateRuleGroupsNamespaceRequest":{
482590
"type":"structure",
483591
"required":[
@@ -605,6 +713,26 @@
605713
},
606714
"documentation":"<p>Represents the input of a DeleteAlertManagerDefinition operation.</p>"
607715
},
716+
"DeleteLoggingConfigurationRequest":{
717+
"type":"structure",
718+
"required":["workspaceId"],
719+
"members":{
720+
"clientToken":{
721+
"shape":"IdempotencyToken",
722+
"documentation":"<p>Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.</p>",
723+
"idempotencyToken":true,
724+
"location":"querystring",
725+
"locationName":"clientToken"
726+
},
727+
"workspaceId":{
728+
"shape":"WorkspaceId",
729+
"documentation":"<p>The ID of the workspace to vend logs to.</p>",
730+
"location":"uri",
731+
"locationName":"workspaceId"
732+
}
733+
},
734+
"documentation":"<p>Represents the input of a DeleteLoggingConfiguration operation.</p>"
735+
},
608736
"DeleteRuleGroupsNamespaceRequest":{
609737
"type":"structure",
610738
"required":[
@@ -678,6 +806,30 @@
678806
},
679807
"documentation":"<p>Represents the output of a DescribeAlertManagerDefinition operation.</p>"
680808
},
809+
"DescribeLoggingConfigurationRequest":{
810+
"type":"structure",
811+
"required":["workspaceId"],
812+
"members":{
813+
"workspaceId":{
814+
"shape":"WorkspaceId",
815+
"documentation":"<p>The ID of the workspace to vend logs to.</p>",
816+
"location":"uri",
817+
"locationName":"workspaceId"
818+
}
819+
},
820+
"documentation":"<p>Represents the input of a DescribeLoggingConfiguration operation.</p>"
821+
},
822+
"DescribeLoggingConfigurationResponse":{
823+
"type":"structure",
824+
"required":["loggingConfiguration"],
825+
"members":{
826+
"loggingConfiguration":{
827+
"shape":"LoggingConfigurationMetadata",
828+
"documentation":"<p>Metadata object containing information about the logging configuration of a workspace.</p>"
829+
}
830+
},
831+
"documentation":"<p>Represents the output of a DescribeLoggingConfiguration operation.</p>"
832+
},
681833
"DescribeRuleGroupsNamespaceRequest":{
682834
"type":"structure",
683835
"required":[
@@ -882,6 +1034,70 @@
8821034
},
8831035
"documentation":"<p>Represents the output of a ListWorkspaces operation.</p>"
8841036
},
1037+
"LogGroupArn":{
1038+
"type":"string",
1039+
"pattern":"^arn:aws[a-z0-9-]*:logs:[a-z0-9-]+:\\d{12}:log-group:[A-Za-z0-9\\.\\-\\_\\#/]{1,512}\\:\\*$"
1040+
},
1041+
"LoggingConfigurationMetadata":{
1042+
"type":"structure",
1043+
"required":[
1044+
"createdAt",
1045+
"logGroupArn",
1046+
"modifiedAt",
1047+
"status",
1048+
"workspace"
1049+
],
1050+
"members":{
1051+
"createdAt":{
1052+
"shape":"Timestamp",
1053+
"documentation":"<p>The time when the logging configuration was created.</p>"
1054+
},
1055+
"logGroupArn":{
1056+
"shape":"LogGroupArn",
1057+
"documentation":"<p>The ARN of the CW log group to which the vended log data will be published.</p>"
1058+
},
1059+
"modifiedAt":{
1060+
"shape":"Timestamp",
1061+
"documentation":"<p>The time when the logging configuration was modified.</p>"
1062+
},
1063+
"status":{
1064+
"shape":"LoggingConfigurationStatus",
1065+
"documentation":"<p>The status of the logging configuration.</p>"
1066+
},
1067+
"workspace":{
1068+
"shape":"WorkspaceId",
1069+
"documentation":"<p>The workspace where the logging configuration exists.</p>"
1070+
}
1071+
},
1072+
"documentation":"<p>Represents the properties of a logging configuration metadata.</p>"
1073+
},
1074+
"LoggingConfigurationStatus":{
1075+
"type":"structure",
1076+
"required":["statusCode"],
1077+
"members":{
1078+
"statusCode":{
1079+
"shape":"LoggingConfigurationStatusCode",
1080+
"documentation":"<p>Status code of the logging configuration.</p>"
1081+
},
1082+
"statusReason":{
1083+
"shape":"String",
1084+
"documentation":"<p>The reason for failure if any.</p>"
1085+
}
1086+
},
1087+
"documentation":"<p>Represents the status of a logging configuration.</p>"
1088+
},
1089+
"LoggingConfigurationStatusCode":{
1090+
"type":"string",
1091+
"documentation":"<p>State of a logging configuration.</p>",
1092+
"enum":[
1093+
"CREATING",
1094+
"ACTIVE",
1095+
"UPDATING",
1096+
"DELETING",
1097+
"CREATION_FAILED",
1098+
"UPDATE_FAILED"
1099+
]
1100+
},
8851101
"PaginationToken":{
8861102
"type":"string",
8871103
"documentation":"<p>A token used to access the next page in a paginated result set.</p>"
@@ -1283,6 +1499,42 @@
12831499
"members":{
12841500
}
12851501
},
1502+
"UpdateLoggingConfigurationRequest":{
1503+
"type":"structure",
1504+
"required":[
1505+
"logGroupArn",
1506+
"workspaceId"
1507+
],
1508+
"members":{
1509+
"clientToken":{
1510+
"shape":"IdempotencyToken",
1511+
"documentation":"<p>Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.</p>",
1512+
"idempotencyToken":true
1513+
},
1514+
"logGroupArn":{
1515+
"shape":"LogGroupArn",
1516+
"documentation":"<p>The ARN of the CW log group to which the vended log data will be published.</p>"
1517+
},
1518+
"workspaceId":{
1519+
"shape":"WorkspaceId",
1520+
"documentation":"<p>The ID of the workspace to vend logs to.</p>",
1521+
"location":"uri",
1522+
"locationName":"workspaceId"
1523+
}
1524+
},
1525+
"documentation":"<p>Represents the input of an UpdateLoggingConfiguration operation.</p>"
1526+
},
1527+
"UpdateLoggingConfigurationResponse":{
1528+
"type":"structure",
1529+
"required":["status"],
1530+
"members":{
1531+
"status":{
1532+
"shape":"LoggingConfigurationStatus",
1533+
"documentation":"<p>The status of the logging configuration.</p>"
1534+
}
1535+
},
1536+
"documentation":"<p>Represents the output of an UpdateLoggingConfiguration operation.</p>"
1537+
},
12861538
"UpdateWorkspaceAliasRequest":{
12871539
"type":"structure",
12881540
"required":["workspaceId"],

0 commit comments

Comments
 (0)