Skip to content

Commit 0068011

Browse files
author
AWS
committed
Amazon Simple Systems Manager (SSM) Update: Adds the SSM GetCalendarState API and ChangeCalendar SSM Document type. These features enable the forthcoming Systems Manager Change Calendar feature, which will allow you to schedule events during which actions should (or should not) be performed.
1 parent b98e972 commit 0068011

File tree

2 files changed

+90
-11
lines changed

2 files changed

+90
-11
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Simple Systems Manager (SSM)",
4+
"description": "Adds the SSM GetCalendarState API and ChangeCalendar SSM Document type. These features enable the forthcoming Systems Manager Change Calendar feature, which will allow you to schedule events during which actions should (or should not) be performed."
5+
}

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

Lines changed: 85 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -874,6 +874,22 @@
874874
],
875875
"documentation":"<p>Get detailed information about a particular Automation execution.</p>"
876876
},
877+
"GetCalendarState":{
878+
"name":"GetCalendarState",
879+
"http":{
880+
"method":"POST",
881+
"requestUri":"/"
882+
},
883+
"input":{"shape":"GetCalendarStateRequest"},
884+
"output":{"shape":"GetCalendarStateResponse"},
885+
"errors":[
886+
{"shape":"InternalServerError"},
887+
{"shape":"InvalidDocument"},
888+
{"shape":"InvalidDocumentType"},
889+
{"shape":"UnsupportedCalendarException"}
890+
],
891+
"documentation":"<p>Gets the state of the AWS Systems Manager Change Calendar at an optional, specified time. If you specify a time, <code>GetCalendarState</code> returns the state of the calendar at a specific time, and returns the next time that the Change Calendar state will transition. If you do not specify a time, <code>GetCalendarState</code> assumes the current time. Change Calendar entries have two possible states: <code>OPEN</code> or <code>CLOSED</code>. For more information about Systems Manager Change Calendar, see <a href=\"https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-change-calendar.html\">AWS Systems Manager Change Calendar</a> in the <i>AWS Systems Manager User Guide</i>.</p>"
892+
},
877893
"GetCommandInvocation":{
878894
"name":"GetCommandInvocation",
879895
"http":{
@@ -3095,6 +3111,18 @@
30953111
},
30963112
"BatchErrorMessage":{"type":"string"},
30973113
"Boolean":{"type":"boolean"},
3114+
"CalendarNameOrARN":{"type":"string"},
3115+
"CalendarNameOrARNList":{
3116+
"type":"list",
3117+
"member":{"shape":"CalendarNameOrARN"}
3118+
},
3119+
"CalendarState":{
3120+
"type":"string",
3121+
"enum":[
3122+
"OPEN",
3123+
"CLOSED"
3124+
]
3125+
},
30983126
"CancelCommandRequest":{
30993127
"type":"structure",
31003128
"required":["CommandId"],
@@ -3605,11 +3633,7 @@
36053633
"max":10000,
36063634
"min":0
36073635
},
3608-
"ComplianceItemId":{
3609-
"type":"string",
3610-
"max":100,
3611-
"min":1
3612-
},
3636+
"ComplianceItemId":{"type":"string"},
36133637
"ComplianceItemList":{
36143638
"type":"list",
36153639
"member":{"shape":"ComplianceItem"}
@@ -5570,7 +5594,7 @@
55705594
},
55715595
"InstancesWithInstalledPendingRebootPatches":{
55725596
"shape":"InstancesCount",
5573-
"documentation":"<p>The number of instances with patches installed that have not been rebooted after the patch installation. The status of these instances is NON_COMPLIANT.</p>",
5597+
"documentation":"<p>Reserved for future use. </p>",
55745598
"box":true
55755599
},
55765600
"InstancesWithInstalledRejectedPatches":{
@@ -5876,7 +5900,8 @@
58765900
"type":"string",
58775901
"enum":[
58785902
"YAML",
5879-
"JSON"
5903+
"JSON",
5904+
"TEXT"
58805905
]
58815906
},
58825907
"DocumentHash":{
@@ -6086,7 +6111,8 @@
60866111
"Package",
60876112
"ApplicationConfiguration",
60886113
"ApplicationConfigurationSchema",
6089-
"DeploymentStrategy"
6114+
"DeploymentStrategy",
6115+
"ChangeCalendar"
60906116
]
60916117
},
60926118
"DocumentVersion":{
@@ -6296,6 +6322,37 @@
62966322
}
62976323
}
62986324
},
6325+
"GetCalendarStateRequest":{
6326+
"type":"structure",
6327+
"required":["CalendarNames"],
6328+
"members":{
6329+
"CalendarNames":{
6330+
"shape":"CalendarNameOrARNList",
6331+
"documentation":"<p>The names or Amazon Resource Names (ARNs) of the Systems Manager documents that represent the calendar entries for which you want to get the state.</p>"
6332+
},
6333+
"AtTime":{
6334+
"shape":"ISO8601String",
6335+
"documentation":"<p>(Optional) The specific time for which you want to get calendar state information, in <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO 8601</a> format. If you do not add <code>AtTime</code>, the current time is assumed.</p>"
6336+
}
6337+
}
6338+
},
6339+
"GetCalendarStateResponse":{
6340+
"type":"structure",
6341+
"members":{
6342+
"State":{
6343+
"shape":"CalendarState",
6344+
"documentation":"<p>The state of the calendar. An <code>OPEN</code> calendar indicates that actions are allowed to proceed, and a <code>CLOSED</code> calendar indicates that actions are not allowed to proceed.</p>"
6345+
},
6346+
"AtTime":{
6347+
"shape":"ISO8601String",
6348+
"documentation":"<p>The time, as an <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO 8601</a> string, that you specified in your command. If you did not specify a time, <code>GetCalendarState</code> uses the current time.</p>"
6349+
},
6350+
"NextTransitionTime":{
6351+
"shape":"ISO8601String",
6352+
"documentation":"<p>The time, as an <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO 8601</a> string, that the calendar state will change. If the current calendar state is <code>OPEN</code>, <code>NextTransitionTime</code> indicates when the calendar state changes to <code>CLOSED</code>, and vice-versa.</p>"
6353+
}
6354+
}
6355+
},
62996356
"GetCommandInvocationRequest":{
63006357
"type":"structure",
63016358
"required":[
@@ -7318,6 +7375,7 @@
73187375
"max":46,
73197376
"min":1
73207377
},
7378+
"ISO8601String":{"type":"string"},
73217379
"IamRole":{
73227380
"type":"string",
73237381
"max":64
@@ -7696,7 +7754,7 @@
76967754
},
76977755
"InstalledPendingRebootCount":{
76987756
"shape":"PatchInstalledPendingRebootCount",
7699-
"documentation":"<p>The number of patches installed since the last time the instance was rebooted.</p>",
7757+
"documentation":"<p>Reserved for future use.</p>",
77007758
"box":true
77017759
},
77027760
"InstalledRejectedCount":{
@@ -7735,11 +7793,11 @@
77357793
},
77367794
"LastNoRebootInstallOperationTime":{
77377795
"shape":"DateTime",
7738-
"documentation":"<p>The time of the last attempt to patch the instance with <code>NoReboot</code> specified as the reboot option.</p>"
7796+
"documentation":"<p>Reserved for future use. </p>"
77397797
},
77407798
"RebootOption":{
77417799
"shape":"RebootOption",
7742-
"documentation":"<p>Indicates the reboot option specified in the patch baseline.</p> <note> <p>Reboot options apply to <code>Install</code> operations only. Reboots are not attempted for Patch Manager <code>Scan</code> operations.</p> </note> <ul> <li> <p> <b>RebootIfNeeded</b>: Patch Manager tries to reboot the instance if it installed any patches, or if any patches are detected with a status of <code>InstalledPendingReboot</code>.</p> </li> <li> <p> <b>NoReboot</b>: Patch Manager attempts to install missing packages without trying to reboot the system. Patches installed with this option are assigned a status of <code>InstalledPendingReboot</code>. These patches might not be in effect until a reboot is performed.</p> </li> </ul>"
7800+
"documentation":"<p>Reserved for future use. </p>"
77437801
}
77447802
},
77457803
"documentation":"<p>Defines the high-level patch compliance state for a managed instance, providing information about the number of installed, missing, not applicable, and failed patches along with metadata about the operation when this information was gathered for the instance.</p>"
@@ -7954,6 +8012,14 @@
79548012
"documentation":"<p>The version of the document schema is not supported.</p>",
79558013
"exception":true
79568014
},
8015+
"InvalidDocumentType":{
8016+
"type":"structure",
8017+
"members":{
8018+
"Message":{"shape":"String"}
8019+
},
8020+
"documentation":"<p>The document type is not valid. Valid document types are described in the <code>DocumentType</code> property.</p>",
8021+
"exception":true
8022+
},
79578023
"InvalidDocumentVersion":{
79588024
"type":"structure",
79598025
"members":{
@@ -13197,6 +13263,14 @@
1319713263
"documentation":"<p>The size of inventory data has exceeded the total size limit for the resource.</p>",
1319813264
"exception":true
1319913265
},
13266+
"UnsupportedCalendarException":{
13267+
"type":"structure",
13268+
"members":{
13269+
"Message":{"shape":"String"}
13270+
},
13271+
"documentation":"<p>The calendar entry contained in the specified Systems Manager document is not supported.</p>",
13272+
"exception":true
13273+
},
1320013274
"UnsupportedFeatureRequiredException":{
1320113275
"type":"structure",
1320213276
"members":{

0 commit comments

Comments
 (0)