Skip to content

Commit abbcef5

Browse files
author
AWS
committed
Amazon Simple Systems Manager (SSM) Update: Added offset support for specifying the number of days to wait after the date and time specified by a CRON expression before running the maintenance window.
1 parent 8a23318 commit abbcef5

File tree

2 files changed

+38
-3
lines changed

2 files changed

+38
-3
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": "Added offset support for specifying the number of days to wait after the date and time specified by a CRON expression before running the maintenance window."
5+
}

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

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
{"shape":"InvalidTarget"},
9595
{"shape":"InvalidSchedule"}
9696
],
97-
"documentation":"<p>Associates the specified Systems Manager document with the specified instances or targets.</p> <p>When you associate a document with one or more instances, SSM Agent running on the instance processes the document and configures the instance as specified. If you associate a document with an instance that already has an associated document, the system returns the <code>AssociationAlreadyExists</code> exception.</p>"
97+
"documentation":"<p>A State Manager association defines the state that you want to maintain on your instances. For example, an association can specify that anti-virus software must be installed and running on your instances, or that certain ports must be closed. For static targets, the association specifies a schedule for when the configuration is reapplied. For dynamic targets, such as an AWS Resource Group or an AWS Autoscaling Group, State Manager applies the configuration when new instances are added to the group. The association also specifies actions to take when applying the configuration. For example, an association for anti-virus software might run once a day. If the software is not installed, then State Manager installs it. If the software is installed, but the service is not running, then the association might instruct State Manager to start the service. </p>"
9898
},
9999
"CreateAssociationBatch":{
100100
"name":"CreateAssociationBatch",
@@ -4118,6 +4118,11 @@
41184118
"shape":"MaintenanceWindowTimezone",
41194119
"documentation":"<p>The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format. For example: \"America/Los_Angeles\", \"etc/UTC\", or \"Asia/Seoul\". For more information, see the <a href=\"https://www.iana.org/time-zones\">Time Zone Database</a> on the IANA website.</p>"
41204120
},
4121+
"ScheduleOffset":{
4122+
"shape":"MaintenanceWindowOffset",
4123+
"documentation":"<p>The number of days to wait after the date and time specified by a CRON expression before running the maintenance window.</p> <p>For example, the following cron expression schedules a maintenance window to run on the third Tuesday of every month at 11:30 PM.</p> <p> <code>cron(0 30 23 ? * TUE#3 *)</code> </p> <p>If the schedule offset is <code>2</code>, the maintenance window won't run until two days later.</p>",
4124+
"box":true
4125+
},
41214126
"Duration":{
41224127
"shape":"MaintenanceWindowDurationHours",
41234128
"documentation":"<p>The duration of the maintenance window in hours.</p>"
@@ -6963,6 +6968,11 @@
69636968
"shape":"MaintenanceWindowTimezone",
69646969
"documentation":"<p>The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format. For example: \"America/Los_Angeles\", \"etc/UTC\", or \"Asia/Seoul\". For more information, see the <a href=\"https://www.iana.org/time-zones\">Time Zone Database</a> on the IANA website.</p>"
69656970
},
6971+
"ScheduleOffset":{
6972+
"shape":"MaintenanceWindowOffset",
6973+
"documentation":"<p>The number of days to wait to run a maintenance window after the scheduled CRON expression date and time.</p>",
6974+
"box":true
6975+
},
69666976
"NextExecutionTime":{
69676977
"shape":"MaintenanceWindowStringDateTime",
69686978
"documentation":"<p>The next time the maintenance window will actually run, taking into account any specified times for the maintenance window to become active or inactive.</p>"
@@ -9537,6 +9547,11 @@
95379547
"shape":"MaintenanceWindowTimezone",
95389548
"documentation":"<p>The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format.</p>"
95399549
},
9550+
"ScheduleOffset":{
9551+
"shape":"MaintenanceWindowOffset",
9552+
"documentation":"<p>The number of days to wait to run a maintenance window after the scheduled CRON expression date and time.</p>",
9553+
"box":true
9554+
},
95409555
"EndDate":{
95419556
"shape":"MaintenanceWindowStringDateTime",
95429557
"documentation":"<p>The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become inactive.</p>"
@@ -9614,6 +9629,11 @@
96149629
"min":3,
96159630
"pattern":"^[a-zA-Z0-9_\\-.]{3,128}$"
96169631
},
9632+
"MaintenanceWindowOffset":{
9633+
"type":"integer",
9634+
"max":6,
9635+
"min":1
9636+
},
96179637
"MaintenanceWindowResourceType":{
96189638
"type":"string",
96199639
"enum":[
@@ -11631,7 +11651,7 @@
1163111651
},
1163211652
"Type":{
1163311653
"shape":"ParameterType",
11634-
"documentation":"<p>The type of parameter that you want to add to the system.</p> <p>Items in a <code>StringList</code> must be separated by a comma (,). You can't use other punctuation or special character to escape items in the list. If you have a parameter value that requires a comma, then use the <code>String</code> data type.</p> <note> <p> <code>SecureString</code> is not currently supported for AWS CloudFormation templates or in the China Regions.</p> </note>"
11654+
"documentation":"<p>The type of parameter that you want to add to the system.</p> <note> <p> <code>SecureString</code> is not currently supported for AWS CloudFormation templates or in the China Regions.</p> </note> <p>Items in a <code>StringList</code> must be separated by a comma (,). You can't use other punctuation or special character to escape items in the list. If you have a parameter value that requires a comma, then use the <code>String</code> data type.</p> <important> <p>Specifying a parameter type is not required when updating a parameter. You must specify a parameter type when creating a parameter.</p> </important>"
1163511655
},
1163611656
"KeyId":{
1163711657
"shape":"ParameterKeyId",
@@ -12924,7 +12944,7 @@
1292412944
},
1292512945
"DocumentName":{
1292612946
"shape":"DocumentARN",
12927-
"documentation":"<p>The name of the SSM document to define the parameters and plugin settings for the session. For example, <code>SSM-SessionManagerRunShell</code>. If no document name is provided, a shell to the instance is launched by default.</p>"
12947+
"documentation":"<p>The name of the SSM document to define the parameters and plugin settings for the session. For example, <code>SSM-SessionManagerRunShell</code>. You can call the <a>GetDocument</a> API to verify the document exists before attempting to start a session. If no document name is provided, a shell to the instance is launched by default.</p>"
1292812948
},
1292912949
"Parameters":{
1293012950
"shape":"SessionManagerParameters",
@@ -13644,6 +13664,11 @@
1364413664
"shape":"MaintenanceWindowTimezone",
1364513665
"documentation":"<p>The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format. For example: \"America/Los_Angeles\", \"etc/UTC\", or \"Asia/Seoul\". For more information, see the <a href=\"https://www.iana.org/time-zones\">Time Zone Database</a> on the IANA website.</p>"
1364613666
},
13667+
"ScheduleOffset":{
13668+
"shape":"MaintenanceWindowOffset",
13669+
"documentation":"<p>The number of days to wait after the date and time specified by a CRON expression before running the maintenance window.</p> <p>For example, the following cron expression schedules a maintenance window to run the third Tuesday of every month at 11:30 PM.</p> <p> <code>cron(0 30 23 ? * TUE#3 *)</code> </p> <p>If the schedule offset is <code>2</code>, the maintenance window won't run until two days later.</p>",
13670+
"box":true
13671+
},
1364713672
"Duration":{
1364813673
"shape":"MaintenanceWindowDurationHours",
1364913674
"documentation":"<p>The duration of the maintenance window in hours.</p>",
@@ -13702,6 +13727,11 @@
1370213727
"shape":"MaintenanceWindowTimezone",
1370313728
"documentation":"<p>The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format. For example: \"America/Los_Angeles\", \"etc/UTC\", or \"Asia/Seoul\". For more information, see the <a href=\"https://www.iana.org/time-zones\">Time Zone Database</a> on the IANA website.</p>"
1370413729
},
13730+
"ScheduleOffset":{
13731+
"shape":"MaintenanceWindowOffset",
13732+
"documentation":"<p>The number of days to wait to run a maintenance window after the scheduled CRON expression date and time.</p>",
13733+
"box":true
13734+
},
1370513735
"Duration":{
1370613736
"shape":"MaintenanceWindowDurationHours",
1370713737
"documentation":"<p>The duration of the maintenance window in hours.</p>"

0 commit comments

Comments
 (0)