Skip to content

Commit

Permalink
feat(client-ssm): This Patch Manager release supports creating, updat…
Browse files Browse the repository at this point in the history
…ing, and deleting Patch Baselines for Rocky Linux OS.
  • Loading branch information
awstools committed Mar 25, 2022
1 parent 62b49fc commit 28ef4d2
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 28 deletions.
20 changes: 13 additions & 7 deletions clients/client-ssm/src/SSM.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3321,13 +3321,14 @@ export class SSM extends SSMClient {
}

/**
* <p>Lists the tasks in a maintenance window.</p>
* <note>
* <p>For maintenance window tasks without a specified target, you can't supply values for
* <code>--max-errors</code> and <code>--max-concurrency</code>. Instead, the system inserts a
* placeholder value of <code>1</code>, which may be reported in the response to this command.
* These values don't affect the running of your task and can be ignored.</p>
* </note>
* <p>Retrieves the details of a maintenance window task.</p>
* <note>
* <p>For maintenance window tasks without a specified target, you can't supply values for
* <code>--max-errors</code> and <code>--max-concurrency</code>. Instead, the system inserts a
* placeholder value of <code>1</code>, which may be reported in the response to this command.
* These values don't affect the running of your task and can be ignored.</p>
* </note>
* <p>To retrieve a list of tasks in a maintenance window, instead use the <a>DescribeMaintenanceWindowTasks</a> command.</p>
*/
public getMaintenanceWindowTask(
args: GetMaintenanceWindowTaskCommandInput,
Expand Down Expand Up @@ -5157,6 +5158,11 @@ export class SSM extends SSMClient {

/**
* <p>Set the default version of a document. </p>
* <note>
* <p>If you change a document version for a State Manager association, Systems Manager immediately runs
* the association unless you previously specifed the <code>apply-only-at-cron-interval</code>
* parameter.</p>
* </note>
*/
public updateDocumentDefaultVersion(
args: UpdateDocumentDefaultVersionCommandInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@ export interface GetMaintenanceWindowTaskCommandInput extends GetMaintenanceWind
export interface GetMaintenanceWindowTaskCommandOutput extends GetMaintenanceWindowTaskResult, __MetadataBearer {}

/**
* <p>Lists the tasks in a maintenance window.</p>
* <note>
* <p>For maintenance window tasks without a specified target, you can't supply values for
* <code>--max-errors</code> and <code>--max-concurrency</code>. Instead, the system inserts a
* placeholder value of <code>1</code>, which may be reported in the response to this command.
* These values don't affect the running of your task and can be ignored.</p>
* </note>
* <p>Retrieves the details of a maintenance window task.</p>
* <note>
* <p>For maintenance window tasks without a specified target, you can't supply values for
* <code>--max-errors</code> and <code>--max-concurrency</code>. Instead, the system inserts a
* placeholder value of <code>1</code>, which may be reported in the response to this command.
* These values don't affect the running of your task and can be ignored.</p>
* </note>
* <p>To retrieve a list of tasks in a maintenance window, instead use the <a>DescribeMaintenanceWindowTasks</a> command.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ export interface UpdateDocumentDefaultVersionCommandOutput

/**
* <p>Set the default version of a document. </p>
* <note>
* <p>If you change a document version for a State Manager association, Systems Manager immediately runs
* the association unless you previously specifed the <code>apply-only-at-cron-interval</code>
* parameter.</p>
* </note>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
2 changes: 2 additions & 0 deletions clients/client-ssm/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ export namespace Activation {
}

export enum ResourceTypeForTagging {
AUTOMATION = "Automation",
DOCUMENT = "Document",
MAINTENANCE_WINDOW = "MaintenanceWindow",
MANAGED_INSTANCE = "ManagedInstance",
Expand Down Expand Up @@ -3265,6 +3266,7 @@ export enum OperatingSystem {
OracleLinux = "ORACLE_LINUX",
Raspbian = "RASPBIAN",
RedhatEnterpriseLinux = "REDHAT_ENTERPRISE_LINUX",
Rocky_Linux = "ROCKY_LINUX",
Suse = "SUSE",
Ubuntu = "UBUNTU",
Windows = "WINDOWS",
Expand Down
43 changes: 29 additions & 14 deletions clients/client-ssm/src/models/models_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4104,7 +4104,8 @@ export interface GetPatchBaselineForPatchGroupRequest {
PatchGroup: string | undefined;

/**
* <p>Returns he operating system rule specified for patch groups using the patch baseline.</p>
* <p>Returns the operating system rule specified for patch groups using the patch
* baseline.</p>
*/
OperatingSystem?: OperatingSystem | string;
}
Expand Down Expand Up @@ -4476,7 +4477,10 @@ export interface Association {
AssociationVersion?: string;

/**
* <p>The version of the document used in the association.</p>
* <p>The version of the document used in the association. If you change a document version for a
* State Manager association, Systems Manager immediately runs the association unless you previously specifed
* the <code>apply-only-at-cron-interval</code> parameter.</p>
*
* <important>
* <p>State Manager doesn't support running associations that use a new version of a document if
* that document is shared from another account. State Manager always runs the <code>default</code>
Expand Down Expand Up @@ -8268,13 +8272,10 @@ export interface PutParameterRequest {
* </ul>
* <p>For additional information about valid values for parameter names, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-paramstore-su-create.html">Creating Systems Manager parameters</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
* <note>
* <p>The maximum length constraint listed below includes capacity for additional system
* attributes that aren't part of the name. The maximum length for a parameter name, including the
* full length of the parameter ARN, is 1011 characters. For example, the length of the following
* parameter name is 65 characters, not 20 characters:</p>
* <p>
* <code>arn:aws:ssm:us-east-2:111122223333:parameter/ExampleParameterName</code>
* </p>
* <p>The maximum length constraint of 2048 characters listed below includes 1037 characters
* reserved for internal use by Systems Manager. The maximum length for a parameter name that you create is
* 1011 characters. This includes the characters in the ARN that precede the name you specify, such
* as <code>arn:aws:ssm:us-east-2:111122223333:parameter/</code>.</p>
* </note>
*/
Name: string | undefined;
Expand Down Expand Up @@ -9895,7 +9896,8 @@ export interface StartSessionRequest {
Reason?: string;

/**
* <p>Reserved for future use.</p>
* <p>The values you want to specify for the parameters defined in the Session
* document.</p>
*/
Parameters?: { [key: string]: string[] };
}
Expand Down Expand Up @@ -10283,10 +10285,18 @@ export interface UpdateAssociationRequest {
* updated and then according to the schedule you specified. Specify this option if you don't want
* an association to run immediately after you update it. This parameter isn't supported for rate
* expressions.</p>
* <p>Also, if you specified this option when you created the association, you can reset it. To do
* so, specify the <code>no-apply-only-at-cron-interval</code> parameter when you update the
* association from the command line. This parameter forces the association to run immediately after
* updating it and according to the interval specified.</p>
*
* <p>If you chose this option when you created an association and later you edit that association
* or you make changes to the SSM document on which that association is based (by using the
* Documents page in the console), State Manager applies the association at the next specified cron
* interval. For example, if you chose the <code>Latest</code> version of an SSM document when you
* created an association and you edit the association by choosing a different document version on
* the Documents page, State Manager applies the association at the next specified cron interval if
* you previously selected this option. If this option wasn't selected, State Manager immediately
* runs the association.</p>
* <p>You can reset this option. To do so, specify the <code>no-apply-only-at-cron-interval</code>
* parameter when you update the association from the command line. This parameter forces the
* association to run immediately after updating it and according to the interval specified.</p>
*/
ApplyOnlyAtCronInterval?: boolean;

Expand Down Expand Up @@ -10499,6 +10509,11 @@ export interface UpdateDocumentRequest {
* <p>The version of the document that you want to update. Currently, Systems Manager supports updating only
* the latest version of the document. You can specify the version number of the latest version or
* use the <code>$LATEST</code> variable.</p>
* <note>
* <p>If you change a document version for a State Manager association, Systems Manager immediately runs
* the association unless you previously specifed the <code>apply-only-at-cron-interval</code>
* parameter.</p>
* </note>
*/
DocumentVersion?: string;

Expand Down

0 comments on commit 28ef4d2

Please sign in to comment.