Skip to content

Commit c5e8a01

Browse files
Add Workspace Configuration APIs for Amazon Prometheus
1 parent a0069a0 commit c5e8a01

34 files changed

+3052
-25
lines changed

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

Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,23 @@
284284
{"shape":"InternalServerException"}
285285
]
286286
},
287+
"DescribeWorkspaceConfiguration":{
288+
"name":"DescribeWorkspaceConfiguration",
289+
"http":{
290+
"method":"GET",
291+
"requestUri":"/workspaces/{workspaceId}/configuration",
292+
"responseCode":200
293+
},
294+
"input":{"shape":"DescribeWorkspaceConfigurationRequest"},
295+
"output":{"shape":"DescribeWorkspaceConfigurationResponse"},
296+
"errors":[
297+
{"shape":"ThrottlingException"},
298+
{"shape":"ValidationException"},
299+
{"shape":"ResourceNotFoundException"},
300+
{"shape":"AccessDeniedException"},
301+
{"shape":"InternalServerException"}
302+
]
303+
},
287304
"GetDefaultScraperConfiguration":{
288305
"name":"GetDefaultScraperConfiguration",
289306
"http":{
@@ -496,6 +513,26 @@
496513
{"shape":"ServiceQuotaExceededException"}
497514
],
498515
"idempotent":true
516+
},
517+
"UpdateWorkspaceConfiguration":{
518+
"name":"UpdateWorkspaceConfiguration",
519+
"http":{
520+
"method":"PATCH",
521+
"requestUri":"/workspaces/{workspaceId}/configuration",
522+
"responseCode":202
523+
},
524+
"input":{"shape":"UpdateWorkspaceConfigurationRequest"},
525+
"output":{"shape":"UpdateWorkspaceConfigurationResponse"},
526+
"errors":[
527+
{"shape":"ThrottlingException"},
528+
{"shape":"ConflictException"},
529+
{"shape":"ValidationException"},
530+
{"shape":"ResourceNotFoundException"},
531+
{"shape":"AccessDeniedException"},
532+
{"shape":"InternalServerException"},
533+
{"shape":"ServiceQuotaExceededException"}
534+
],
535+
"idempotent":true
499536
}
500537
},
501538
"shapes":{
@@ -909,6 +946,24 @@
909946
"scraper":{"shape":"ScraperDescription"}
910947
}
911948
},
949+
"DescribeWorkspaceConfigurationRequest":{
950+
"type":"structure",
951+
"required":["workspaceId"],
952+
"members":{
953+
"workspaceId":{
954+
"shape":"WorkspaceId",
955+
"location":"uri",
956+
"locationName":"workspaceId"
957+
}
958+
}
959+
},
960+
"DescribeWorkspaceConfigurationResponse":{
961+
"type":"structure",
962+
"required":["workspaceConfiguration"],
963+
"members":{
964+
"workspaceConfiguration":{"shape":"WorkspaceConfigurationDescription"}
965+
}
966+
},
912967
"DescribeWorkspaceRequest":{
913968
"type":"structure",
914969
"required":["workspaceId"],
@@ -1010,6 +1065,46 @@
10101065
"min":20,
10111066
"pattern":"^arn:aws[-a-z]*:kms:[-a-z0-9]+:[0-9]{12}:key/[-a-f0-9]+$"
10121067
},
1068+
"LabelName":{
1069+
"type":"string",
1070+
"min":1,
1071+
"pattern":"^[a-zA-Z_][a-zA-Z0-9_]*$"
1072+
},
1073+
"LabelSet":{
1074+
"type":"map",
1075+
"key":{"shape":"LabelName"},
1076+
"value":{"shape":"LabelValue"}
1077+
},
1078+
"LabelValue":{
1079+
"type":"string",
1080+
"min":1
1081+
},
1082+
"LimitsPerLabelSet":{
1083+
"type":"structure",
1084+
"required":[
1085+
"labelSet",
1086+
"limits"
1087+
],
1088+
"members":{
1089+
"labelSet":{"shape":"LabelSet"},
1090+
"limits":{"shape":"LimitsPerLabelSetEntry"}
1091+
}
1092+
},
1093+
"LimitsPerLabelSetEntry":{
1094+
"type":"structure",
1095+
"members":{
1096+
"maxSeries":{"shape":"LimitsPerLabelSetEntryMaxSeriesLong"}
1097+
}
1098+
},
1099+
"LimitsPerLabelSetEntryMaxSeriesLong":{
1100+
"type":"long",
1101+
"box":true,
1102+
"min":0
1103+
},
1104+
"LimitsPerLabelSetList":{
1105+
"type":"list",
1106+
"member":{"shape":"LimitsPerLabelSet"}
1107+
},
10131108
"ListRuleGroupsNamespacesRequest":{
10141109
"type":"structure",
10151110
"required":["workspaceId"],
@@ -1666,6 +1761,35 @@
16661761
}
16671762
}
16681763
},
1764+
"UpdateWorkspaceConfigurationRequest":{
1765+
"type":"structure",
1766+
"required":["workspaceId"],
1767+
"members":{
1768+
"clientToken":{
1769+
"shape":"IdempotencyToken",
1770+
"idempotencyToken":true
1771+
},
1772+
"limitsPerLabelSet":{"shape":"LimitsPerLabelSetList"},
1773+
"retentionPeriodInDays":{"shape":"UpdateWorkspaceConfigurationRequestRetentionPeriodInDaysInteger"},
1774+
"workspaceId":{
1775+
"shape":"WorkspaceId",
1776+
"location":"uri",
1777+
"locationName":"workspaceId"
1778+
}
1779+
}
1780+
},
1781+
"UpdateWorkspaceConfigurationRequestRetentionPeriodInDaysInteger":{
1782+
"type":"integer",
1783+
"box":true,
1784+
"min":1
1785+
},
1786+
"UpdateWorkspaceConfigurationResponse":{
1787+
"type":"structure",
1788+
"required":["status"],
1789+
"members":{
1790+
"status":{"shape":"WorkspaceConfigurationStatus"}
1791+
}
1792+
},
16691793
"Uri":{
16701794
"type":"string",
16711795
"max":1024,
@@ -1721,6 +1845,36 @@
17211845
"type":"string",
17221846
"pattern":"^arn:aws[-a-z]*:aps:[-a-z0-9]+:[0-9]{12}:workspace/.+$"
17231847
},
1848+
"WorkspaceConfigurationDescription":{
1849+
"type":"structure",
1850+
"required":["status"],
1851+
"members":{
1852+
"limitsPerLabelSet":{"shape":"LimitsPerLabelSetList"},
1853+
"retentionPeriodInDays":{"shape":"WorkspaceConfigurationDescriptionRetentionPeriodInDaysInteger"},
1854+
"status":{"shape":"WorkspaceConfigurationStatus"}
1855+
}
1856+
},
1857+
"WorkspaceConfigurationDescriptionRetentionPeriodInDaysInteger":{
1858+
"type":"integer",
1859+
"box":true,
1860+
"min":1
1861+
},
1862+
"WorkspaceConfigurationStatus":{
1863+
"type":"structure",
1864+
"required":["statusCode"],
1865+
"members":{
1866+
"statusCode":{"shape":"WorkspaceConfigurationStatusCode"},
1867+
"statusReason":{"shape":"String"}
1868+
}
1869+
},
1870+
"WorkspaceConfigurationStatusCode":{
1871+
"type":"string",
1872+
"enum":[
1873+
"ACTIVE",
1874+
"UPDATING",
1875+
"UPDATE_FAILED"
1876+
]
1877+
},
17241878
"WorkspaceDescription":{
17251879
"type":"structure",
17261880
"required":[

0 commit comments

Comments
 (0)