Skip to content

Commit 3041451

Browse files
Add QueryLoggingConfiguration APIs for Amazon Managed Prometheus
1 parent a0af21a commit 3041451

File tree

49 files changed

+5051
-83
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+5051
-83
lines changed

generator/ServiceModels/amp/amp-2020-08-01.api.json

Lines changed: 227 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,23 @@
5151
],
5252
"idempotent":true
5353
},
54+
"CreateQueryLoggingConfiguration":{
55+
"name":"CreateQueryLoggingConfiguration",
56+
"http":{
57+
"method":"POST",
58+
"requestUri":"/workspaces/{workspaceId}/logging/query",
59+
"responseCode":202
60+
},
61+
"input":{"shape":"CreateQueryLoggingConfigurationRequest"},
62+
"output":{"shape":"CreateQueryLoggingConfigurationResponse"},
63+
"errors":[
64+
{"shape":"ValidationException"},
65+
{"shape":"ResourceNotFoundException"},
66+
{"shape":"AccessDeniedException"},
67+
{"shape":"InternalServerException"}
68+
],
69+
"idempotent":true
70+
},
5471
"CreateRuleGroupsNamespace":{
5572
"name":"CreateRuleGroupsNamespace",
5673
"http":{
@@ -145,6 +162,23 @@
145162
],
146163
"idempotent":true
147164
},
165+
"DeleteQueryLoggingConfiguration":{
166+
"name":"DeleteQueryLoggingConfiguration",
167+
"http":{
168+
"method":"DELETE",
169+
"requestUri":"/workspaces/{workspaceId}/logging/query",
170+
"responseCode":202
171+
},
172+
"input":{"shape":"DeleteQueryLoggingConfigurationRequest"},
173+
"errors":[
174+
{"shape":"ConflictException"},
175+
{"shape":"ValidationException"},
176+
{"shape":"ResourceNotFoundException"},
177+
{"shape":"AccessDeniedException"},
178+
{"shape":"InternalServerException"}
179+
],
180+
"idempotent":true
181+
},
148182
"DeleteRuleGroupsNamespace":{
149183
"name":"DeleteRuleGroupsNamespace",
150184
"http":{
@@ -233,6 +267,22 @@
233267
{"shape":"InternalServerException"}
234268
]
235269
},
270+
"DescribeQueryLoggingConfiguration":{
271+
"name":"DescribeQueryLoggingConfiguration",
272+
"http":{
273+
"method":"GET",
274+
"requestUri":"/workspaces/{workspaceId}/logging/query",
275+
"responseCode":200
276+
},
277+
"input":{"shape":"DescribeQueryLoggingConfigurationRequest"},
278+
"output":{"shape":"DescribeQueryLoggingConfigurationResponse"},
279+
"errors":[
280+
{"shape":"ValidationException"},
281+
{"shape":"ResourceNotFoundException"},
282+
{"shape":"AccessDeniedException"},
283+
{"shape":"InternalServerException"}
284+
]
285+
},
236286
"DescribeRuleGroupsNamespace":{
237287
"name":"DescribeRuleGroupsNamespace",
238288
"http":{
@@ -475,6 +525,24 @@
475525
],
476526
"idempotent":true
477527
},
528+
"UpdateQueryLoggingConfiguration":{
529+
"name":"UpdateQueryLoggingConfiguration",
530+
"http":{
531+
"method":"PUT",
532+
"requestUri":"/workspaces/{workspaceId}/logging/query",
533+
"responseCode":202
534+
},
535+
"input":{"shape":"UpdateQueryLoggingConfigurationRequest"},
536+
"output":{"shape":"UpdateQueryLoggingConfigurationResponse"},
537+
"errors":[
538+
{"shape":"ConflictException"},
539+
{"shape":"ValidationException"},
540+
{"shape":"ResourceNotFoundException"},
541+
{"shape":"AccessDeniedException"},
542+
{"shape":"InternalServerException"}
543+
],
544+
"idempotent":true
545+
},
478546
"UpdateScraper":{
479547
"name":"UpdateScraper",
480548
"http":{
@@ -591,6 +659,13 @@
591659
}
592660
},
593661
"Blob":{"type":"blob"},
662+
"CloudWatchLogDestination":{
663+
"type":"structure",
664+
"required":["logGroupArn"],
665+
"members":{
666+
"logGroupArn":{"shape":"LogGroupArn"}
667+
}
668+
},
594669
"ClusterArn":{
595670
"type":"string",
596671
"pattern":"^arn:aws[-a-z]*:eks:[-a-z0-9]+:[0-9]{12}:cluster/.+$"
@@ -665,6 +740,32 @@
665740
"status":{"shape":"LoggingConfigurationStatus"}
666741
}
667742
},
743+
"CreateQueryLoggingConfigurationRequest":{
744+
"type":"structure",
745+
"required":[
746+
"destinations",
747+
"workspaceId"
748+
],
749+
"members":{
750+
"clientToken":{
751+
"shape":"IdempotencyToken",
752+
"idempotencyToken":true
753+
},
754+
"destinations":{"shape":"LoggingDestinations"},
755+
"workspaceId":{
756+
"shape":"WorkspaceId",
757+
"location":"uri",
758+
"locationName":"workspaceId"
759+
}
760+
}
761+
},
762+
"CreateQueryLoggingConfigurationResponse":{
763+
"type":"structure",
764+
"required":["status"],
765+
"members":{
766+
"status":{"shape":"QueryLoggingConfigurationStatus"}
767+
}
768+
},
668769
"CreateRuleGroupsNamespaceRequest":{
669770
"type":"structure",
670771
"required":[
@@ -796,6 +897,23 @@
796897
}
797898
}
798899
},
900+
"DeleteQueryLoggingConfigurationRequest":{
901+
"type":"structure",
902+
"required":["workspaceId"],
903+
"members":{
904+
"clientToken":{
905+
"shape":"IdempotencyToken",
906+
"idempotencyToken":true,
907+
"location":"querystring",
908+
"locationName":"clientToken"
909+
},
910+
"workspaceId":{
911+
"shape":"WorkspaceId",
912+
"location":"uri",
913+
"locationName":"workspaceId"
914+
}
915+
}
916+
},
799917
"DeleteRuleGroupsNamespaceRequest":{
800918
"type":"structure",
801919
"required":[
@@ -902,6 +1020,24 @@
9021020
"loggingConfiguration":{"shape":"LoggingConfigurationMetadata"}
9031021
}
9041022
},
1023+
"DescribeQueryLoggingConfigurationRequest":{
1024+
"type":"structure",
1025+
"required":["workspaceId"],
1026+
"members":{
1027+
"workspaceId":{
1028+
"shape":"WorkspaceId",
1029+
"location":"uri",
1030+
"locationName":"workspaceId"
1031+
}
1032+
}
1033+
},
1034+
"DescribeQueryLoggingConfigurationResponse":{
1035+
"type":"structure",
1036+
"required":["queryLoggingConfiguration"],
1037+
"members":{
1038+
"queryLoggingConfiguration":{"shape":"QueryLoggingConfigurationMetadata"}
1039+
}
1040+
},
9051041
"DescribeRuleGroupsNamespaceRequest":{
9061042
"type":"structure",
9071043
"required":[
@@ -1269,6 +1405,35 @@
12691405
"UPDATE_FAILED"
12701406
]
12711407
},
1408+
"LoggingDestination":{
1409+
"type":"structure",
1410+
"required":[
1411+
"cloudWatchLogs",
1412+
"filters"
1413+
],
1414+
"members":{
1415+
"cloudWatchLogs":{"shape":"CloudWatchLogDestination"},
1416+
"filters":{"shape":"LoggingFilter"}
1417+
}
1418+
},
1419+
"LoggingDestinations":{
1420+
"type":"list",
1421+
"member":{"shape":"LoggingDestination"},
1422+
"max":1,
1423+
"min":1
1424+
},
1425+
"LoggingFilter":{
1426+
"type":"structure",
1427+
"required":["qspThreshold"],
1428+
"members":{
1429+
"qspThreshold":{"shape":"LoggingFilterQspThresholdLong"}
1430+
}
1431+
},
1432+
"LoggingFilterQspThresholdLong":{
1433+
"type":"long",
1434+
"box":true,
1435+
"min":0
1436+
},
12721437
"PaginationToken":{
12731438
"type":"string",
12741439
"max":1000,
@@ -1339,6 +1504,42 @@
13391504
"tags":{"shape":"TagMap"}
13401505
}
13411506
},
1507+
"QueryLoggingConfigurationMetadata":{
1508+
"type":"structure",
1509+
"required":[
1510+
"createdAt",
1511+
"destinations",
1512+
"modifiedAt",
1513+
"status",
1514+
"workspace"
1515+
],
1516+
"members":{
1517+
"createdAt":{"shape":"Timestamp"},
1518+
"destinations":{"shape":"LoggingDestinations"},
1519+
"modifiedAt":{"shape":"Timestamp"},
1520+
"status":{"shape":"QueryLoggingConfigurationStatus"},
1521+
"workspace":{"shape":"WorkspaceId"}
1522+
}
1523+
},
1524+
"QueryLoggingConfigurationStatus":{
1525+
"type":"structure",
1526+
"required":["statusCode"],
1527+
"members":{
1528+
"statusCode":{"shape":"QueryLoggingConfigurationStatusCode"},
1529+
"statusReason":{"shape":"String"}
1530+
}
1531+
},
1532+
"QueryLoggingConfigurationStatusCode":{
1533+
"type":"string",
1534+
"enum":[
1535+
"CREATING",
1536+
"ACTIVE",
1537+
"UPDATING",
1538+
"DELETING",
1539+
"CREATION_FAILED",
1540+
"UPDATE_FAILED"
1541+
]
1542+
},
13421543
"ResourceNotFoundException":{
13431544
"type":"structure",
13441545
"required":[
@@ -1712,6 +1913,32 @@
17121913
"status":{"shape":"LoggingConfigurationStatus"}
17131914
}
17141915
},
1916+
"UpdateQueryLoggingConfigurationRequest":{
1917+
"type":"structure",
1918+
"required":[
1919+
"destinations",
1920+
"workspaceId"
1921+
],
1922+
"members":{
1923+
"clientToken":{
1924+
"shape":"IdempotencyToken",
1925+
"idempotencyToken":true
1926+
},
1927+
"destinations":{"shape":"LoggingDestinations"},
1928+
"workspaceId":{
1929+
"shape":"WorkspaceId",
1930+
"location":"uri",
1931+
"locationName":"workspaceId"
1932+
}
1933+
}
1934+
},
1935+
"UpdateQueryLoggingConfigurationResponse":{
1936+
"type":"structure",
1937+
"required":["status"],
1938+
"members":{
1939+
"status":{"shape":"QueryLoggingConfigurationStatus"}
1940+
}
1941+
},
17151942
"UpdateScraperRequest":{
17161943
"type":"structure",
17171944
"required":["scraperId"],

0 commit comments

Comments
 (0)