Skip to content

Commit 62dee83

Browse files
Update API model
1 parent a241c97 commit 62dee83

File tree

5 files changed

+613
-54
lines changed

5 files changed

+613
-54
lines changed

tools/code-generation/smithy/api-descriptions/application-signals.json

Lines changed: 337 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@
4343
{
4444
"target": "com.amazonaws.applicationsignals#BatchGetServiceLevelObjectiveBudgetReport"
4545
},
46+
{
47+
"target": "com.amazonaws.applicationsignals#BatchUpdateExclusionWindows"
48+
},
4649
{
4750
"target": "com.amazonaws.applicationsignals#GetService"
4851
},
@@ -52,6 +55,9 @@
5255
{
5356
"target": "com.amazonaws.applicationsignals#ListServiceDependents"
5457
},
58+
{
59+
"target": "com.amazonaws.applicationsignals#ListServiceLevelObjectiveExclusionWindows"
60+
},
5561
{
5662
"target": "com.amazonaws.applicationsignals#ListServiceOperations"
5763
},
@@ -548,6 +554,123 @@
548554
"smithy.api#output": {}
549555
}
550556
},
557+
"com.amazonaws.applicationsignals#BatchUpdateExclusionWindows": {
558+
"type": "operation",
559+
"input": {
560+
"target": "com.amazonaws.applicationsignals#BatchUpdateExclusionWindowsInput"
561+
},
562+
"output": {
563+
"target": "com.amazonaws.applicationsignals#BatchUpdateExclusionWindowsOutput"
564+
},
565+
"errors": [
566+
{
567+
"target": "com.amazonaws.applicationsignals#ResourceNotFoundException"
568+
},
569+
{
570+
"target": "com.amazonaws.applicationsignals#ThrottlingException"
571+
},
572+
{
573+
"target": "com.amazonaws.applicationsignals#ValidationException"
574+
}
575+
],
576+
"traits": {
577+
"smithy.api#documentation": "<p>Add or remove time window exclusions for one or more Service Level Objectives (SLOs).</p>",
578+
"smithy.api#http": {
579+
"method": "PATCH",
580+
"uri": "/exclusion-windows",
581+
"code": 200
582+
}
583+
}
584+
},
585+
"com.amazonaws.applicationsignals#BatchUpdateExclusionWindowsError": {
586+
"type": "structure",
587+
"members": {
588+
"SloId": {
589+
"target": "com.amazonaws.applicationsignals#ServiceLevelObjectiveId",
590+
"traits": {
591+
"smithy.api#documentation": "<p>The SLO ID in the error.</p>",
592+
"smithy.api#required": {}
593+
}
594+
},
595+
"ErrorCode": {
596+
"target": "com.amazonaws.applicationsignals#ExclusionWindowErrorCode",
597+
"traits": {
598+
"smithy.api#documentation": "<p>The error code.</p>",
599+
"smithy.api#required": {}
600+
}
601+
},
602+
"ErrorMessage": {
603+
"target": "com.amazonaws.applicationsignals#ExclusionWindowErrorMessage",
604+
"traits": {
605+
"smithy.api#documentation": "<p>The error message.</p>",
606+
"smithy.api#required": {}
607+
}
608+
}
609+
},
610+
"traits": {
611+
"smithy.api#documentation": "<p>An array of structures, where each structure includes an error indicating that one of the requests in the array was not valid.</p>"
612+
}
613+
},
614+
"com.amazonaws.applicationsignals#BatchUpdateExclusionWindowsErrors": {
615+
"type": "list",
616+
"member": {
617+
"target": "com.amazonaws.applicationsignals#BatchUpdateExclusionWindowsError"
618+
},
619+
"traits": {
620+
"smithy.api#length": {
621+
"max": 10
622+
}
623+
}
624+
},
625+
"com.amazonaws.applicationsignals#BatchUpdateExclusionWindowsInput": {
626+
"type": "structure",
627+
"members": {
628+
"SloIds": {
629+
"target": "com.amazonaws.applicationsignals#ServiceLevelObjectiveIds",
630+
"traits": {
631+
"smithy.api#documentation": "<p>The list of SLO IDs to add or remove exclusion windows from.</p>",
632+
"smithy.api#required": {}
633+
}
634+
},
635+
"AddExclusionWindows": {
636+
"target": "com.amazonaws.applicationsignals#ExclusionWindows",
637+
"traits": {
638+
"smithy.api#documentation": "<p>A list of exclusion windows to add to the specified SLOs. You can add up to 10 exclusion windows per SLO.</p>"
639+
}
640+
},
641+
"RemoveExclusionWindows": {
642+
"target": "com.amazonaws.applicationsignals#ExclusionWindows",
643+
"traits": {
644+
"smithy.api#documentation": "<p>A list of exclusion windows to remove from the specified SLOs. The window configuration must match an existing exclusion window.</p>"
645+
}
646+
}
647+
},
648+
"traits": {
649+
"smithy.api#input": {}
650+
}
651+
},
652+
"com.amazonaws.applicationsignals#BatchUpdateExclusionWindowsOutput": {
653+
"type": "structure",
654+
"members": {
655+
"SloIds": {
656+
"target": "com.amazonaws.applicationsignals#ServiceLevelObjectiveIds",
657+
"traits": {
658+
"smithy.api#documentation": "<p>The list of SLO IDs that were successfully processed.</p>",
659+
"smithy.api#required": {}
660+
}
661+
},
662+
"Errors": {
663+
"target": "com.amazonaws.applicationsignals#BatchUpdateExclusionWindowsErrors",
664+
"traits": {
665+
"smithy.api#documentation": "<p>A list of errors that occurred while processing the request.</p>",
666+
"smithy.api#required": {}
667+
}
668+
}
669+
},
670+
"traits": {
671+
"smithy.api#output": {}
672+
}
673+
},
551674
"com.amazonaws.applicationsignals#BudgetRequestsRemaining": {
552675
"type": "integer"
553676
},
@@ -891,6 +1014,82 @@
8911014
}
8921015
}
8931016
},
1017+
"com.amazonaws.applicationsignals#ExclusionDuration": {
1018+
"type": "integer",
1019+
"traits": {
1020+
"smithy.api#range": {
1021+
"min": 1
1022+
}
1023+
}
1024+
},
1025+
"com.amazonaws.applicationsignals#ExclusionReason": {
1026+
"type": "string",
1027+
"traits": {
1028+
"smithy.api#length": {
1029+
"min": 1,
1030+
"max": 1024
1031+
}
1032+
}
1033+
},
1034+
"com.amazonaws.applicationsignals#ExclusionWindow": {
1035+
"type": "structure",
1036+
"members": {
1037+
"Window": {
1038+
"target": "com.amazonaws.applicationsignals#Window",
1039+
"traits": {
1040+
"smithy.api#documentation": "<p>The SLO time window exclusion .</p>",
1041+
"smithy.api#required": {}
1042+
}
1043+
},
1044+
"StartTime": {
1045+
"target": "smithy.api#Timestamp",
1046+
"traits": {
1047+
"smithy.api#documentation": "<p>The start of the SLO time window exclusion. Defaults to current time if not specified.</p>"
1048+
}
1049+
},
1050+
"RecurrenceRule": {
1051+
"target": "com.amazonaws.applicationsignals#RecurrenceRule",
1052+
"traits": {
1053+
"smithy.api#documentation": "<p>The recurrence rule for the SLO time window exclusion. Supports both cron and rate expressions.</p>"
1054+
}
1055+
},
1056+
"Reason": {
1057+
"target": "com.amazonaws.applicationsignals#ExclusionReason",
1058+
"traits": {
1059+
"smithy.api#documentation": "<p>A description explaining why this time period should be excluded from SLO calculations.</p>"
1060+
}
1061+
}
1062+
},
1063+
"traits": {
1064+
"smithy.api#documentation": "<p>The core SLO time window exclusion object that includes Window, StartTime, RecurrenceRule, and Reason.</p>"
1065+
}
1066+
},
1067+
"com.amazonaws.applicationsignals#ExclusionWindowErrorCode": {
1068+
"type": "string"
1069+
},
1070+
"com.amazonaws.applicationsignals#ExclusionWindowErrorMessage": {
1071+
"type": "string"
1072+
},
1073+
"com.amazonaws.applicationsignals#ExclusionWindows": {
1074+
"type": "list",
1075+
"member": {
1076+
"target": "com.amazonaws.applicationsignals#ExclusionWindow"
1077+
},
1078+
"traits": {
1079+
"smithy.api#length": {
1080+
"max": 10
1081+
}
1082+
}
1083+
},
1084+
"com.amazonaws.applicationsignals#Expression": {
1085+
"type": "string",
1086+
"traits": {
1087+
"smithy.api#length": {
1088+
"min": 1,
1089+
"max": 1024
1090+
}
1091+
}
1092+
},
8941093
"com.amazonaws.applicationsignals#FaultDescription": {
8951094
"type": "string"
8961095
},
@@ -1352,6 +1551,107 @@
13521551
"smithy.api#output": {}
13531552
}
13541553
},
1554+
"com.amazonaws.applicationsignals#ListServiceLevelObjectiveExclusionWindows": {
1555+
"type": "operation",
1556+
"input": {
1557+
"target": "com.amazonaws.applicationsignals#ListServiceLevelObjectiveExclusionWindowsInput"
1558+
},
1559+
"output": {
1560+
"target": "com.amazonaws.applicationsignals#ListServiceLevelObjectiveExclusionWindowsOutput"
1561+
},
1562+
"errors": [
1563+
{
1564+
"target": "com.amazonaws.applicationsignals#ResourceNotFoundException"
1565+
},
1566+
{
1567+
"target": "com.amazonaws.applicationsignals#ThrottlingException"
1568+
},
1569+
{
1570+
"target": "com.amazonaws.applicationsignals#ValidationException"
1571+
}
1572+
],
1573+
"traits": {
1574+
"smithy.api#documentation": "<p>Retrieves all exclusion windows configured for a specific SLO.</p>",
1575+
"smithy.api#http": {
1576+
"method": "GET",
1577+
"uri": "/slo/{Id}/exclusion-windows",
1578+
"code": 200
1579+
},
1580+
"smithy.api#paginated": {
1581+
"inputToken": "NextToken",
1582+
"pageSize": "MaxResults",
1583+
"outputToken": "NextToken",
1584+
"items": "ExclusionWindows"
1585+
},
1586+
"smithy.api#readonly": {}
1587+
}
1588+
},
1589+
"com.amazonaws.applicationsignals#ListServiceLevelObjectiveExclusionWindowsInput": {
1590+
"type": "structure",
1591+
"members": {
1592+
"Id": {
1593+
"target": "com.amazonaws.applicationsignals#ServiceLevelObjectiveId",
1594+
"traits": {
1595+
"smithy.api#documentation": "<p>The ID of the SLO to list exclusion windows for.</p>",
1596+
"smithy.api#httpLabel": {},
1597+
"smithy.api#required": {}
1598+
}
1599+
},
1600+
"MaxResults": {
1601+
"target": "com.amazonaws.applicationsignals#ListServiceLevelObjectiveExclusionWindowsMaxResults",
1602+
"traits": {
1603+
"smithy.api#default": null,
1604+
"smithy.api#documentation": "<p>The maximum number of results to return in one operation. If you omit this parameter, the default of 50 is used.\n \n </p>",
1605+
"smithy.api#httpQuery": "MaxResults"
1606+
}
1607+
},
1608+
"NextToken": {
1609+
"target": "com.amazonaws.applicationsignals#NextToken",
1610+
"traits": {
1611+
"smithy.api#documentation": "<p>Include this value, if it was returned by the previous operation, to get the next set of service level objectives.\n \n </p>",
1612+
"smithy.api#httpQuery": "NextToken"
1613+
}
1614+
}
1615+
},
1616+
"traits": {
1617+
"smithy.api#input": {},
1618+
"smithy.api#references": [
1619+
{
1620+
"resource": "com.amazonaws.applicationsignals#ServiceLevelObjectiveResource"
1621+
}
1622+
]
1623+
}
1624+
},
1625+
"com.amazonaws.applicationsignals#ListServiceLevelObjectiveExclusionWindowsMaxResults": {
1626+
"type": "integer",
1627+
"traits": {
1628+
"smithy.api#range": {
1629+
"min": 1,
1630+
"max": 10
1631+
}
1632+
}
1633+
},
1634+
"com.amazonaws.applicationsignals#ListServiceLevelObjectiveExclusionWindowsOutput": {
1635+
"type": "structure",
1636+
"members": {
1637+
"ExclusionWindows": {
1638+
"target": "com.amazonaws.applicationsignals#ExclusionWindows",
1639+
"traits": {
1640+
"smithy.api#documentation": "<p>A list of exclusion windows configured for the SLO.</p>",
1641+
"smithy.api#required": {}
1642+
}
1643+
},
1644+
"NextToken": {
1645+
"target": "com.amazonaws.applicationsignals#NextToken",
1646+
"traits": {
1647+
"smithy.api#documentation": "<p>Include this value, if it was returned by the previous operation, to get the next set of service level objectives.\n \n </p>"
1648+
}
1649+
}
1650+
},
1651+
"traits": {
1652+
"smithy.api#output": {}
1653+
}
1654+
},
13551655
"com.amazonaws.applicationsignals#ListServiceLevelObjectives": {
13561656
"type": "operation",
13571657
"input": {
@@ -2031,6 +2331,21 @@
20312331
}
20322332
}
20332333
},
2334+
"com.amazonaws.applicationsignals#RecurrenceRule": {
2335+
"type": "structure",
2336+
"members": {
2337+
"Expression": {
2338+
"target": "com.amazonaws.applicationsignals#Expression",
2339+
"traits": {
2340+
"smithy.api#documentation": "<p>A cron or rate expression that specifies the schedule for the exclusion window.</p>",
2341+
"smithy.api#required": {}
2342+
}
2343+
}
2344+
},
2345+
"traits": {
2346+
"smithy.api#documentation": "<p>The recurrence rule for the SLO time window exclusion .</p>"
2347+
}
2348+
},
20342349
"com.amazonaws.applicationsignals#RequestBasedServiceLevelIndicator": {
20352350
"type": "structure",
20362351
"members": {
@@ -3530,6 +3845,28 @@
35303845
},
35313846
"com.amazonaws.applicationsignals#WarningThreshold": {
35323847
"type": "double"
3848+
},
3849+
"com.amazonaws.applicationsignals#Window": {
3850+
"type": "structure",
3851+
"members": {
3852+
"DurationUnit": {
3853+
"target": "com.amazonaws.applicationsignals#DurationUnit",
3854+
"traits": {
3855+
"smithy.api#documentation": "<p>The unit of time for the exclusion window duration. Valid values: MINUTE, HOUR, DAY, MONTH.</p>",
3856+
"smithy.api#required": {}
3857+
}
3858+
},
3859+
"Duration": {
3860+
"target": "com.amazonaws.applicationsignals#ExclusionDuration",
3861+
"traits": {
3862+
"smithy.api#documentation": "<p>The number of time units for the exclusion window length.</p>",
3863+
"smithy.api#required": {}
3864+
}
3865+
}
3866+
},
3867+
"traits": {
3868+
"smithy.api#documentation": "<p>The object that defines the time length of an exclusion window.</p>"
3869+
}
35333870
}
35343871
}
35353872
}

0 commit comments

Comments
 (0)