Skip to content

Commit

Permalink
feat(client-ssm): Adding support for QuickSetup Document Type in Syst…
Browse files Browse the repository at this point in the history
…ems Manager
  • Loading branch information
awstools committed Jan 4, 2023
1 parent d6bcb03 commit 124b702
Show file tree
Hide file tree
Showing 8 changed files with 332 additions and 304 deletions.
2 changes: 0 additions & 2 deletions clients/client-ssm/src/SSM.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5164,7 +5164,6 @@ export class SSM extends SSMClient {
* includes the <code>Name</code> parameter. Before calling this API action, we recommend that you
* call the <a>DescribeAssociation</a> API operation and make a note of all optional
* parameters required for your <code>UpdateAssociation</code> call.</p>
*
* <p>In order to call this API operation, your Identity and Access Management (IAM) user
* account, group, or role must be configured with permission to call the <a>DescribeAssociation</a> API operation. If you don't have permission to call
* <code>DescribeAssociation</code>, then you receive the following error: <code>An error occurred
Expand Down Expand Up @@ -5389,7 +5388,6 @@ export class SSM extends SSMClient {
/**
* <p>Modifies the target of an existing maintenance window. You
* can change the following:</p>
*
* <ul>
* <li>
* <p>Name</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export interface UpdateAssociationCommandOutput extends UpdateAssociationResult,
* includes the <code>Name</code> parameter. Before calling this API action, we recommend that you
* call the <a>DescribeAssociation</a> API operation and make a note of all optional
* parameters required for your <code>UpdateAssociation</code> call.</p>
*
* <p>In order to call this API operation, your Identity and Access Management (IAM) user
* account, group, or role must be configured with permission to call the <a>DescribeAssociation</a> API operation. If you don't have permission to call
* <code>DescribeAssociation</code>, then you receive the following error: <code>An error occurred
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export interface UpdateMaintenanceWindowTargetCommandOutput
/**
* <p>Modifies the target of an existing maintenance window. You
* can change the following:</p>
*
* <ul>
* <li>
* <p>Name</p>
Expand Down
12 changes: 11 additions & 1 deletion clients/client-ssm/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1864,6 +1864,7 @@ export enum DocumentType {
Policy = "Policy",
ProblemAnalysis = "ProblemAnalysis",
ProblemAnalysisTemplate = "ProblemAnalysisTemplate",
QuickSetup = "QuickSetup",
Session = "Session",
}

Expand All @@ -1880,6 +1881,16 @@ export interface DocumentRequires {
* <p>The document version required by the current document.</p>
*/
Version?: string;

/**
* <p>The document type of the required SSM document.</p>
*/
RequireType?: string;

/**
* <p>An optional field specifying the version of the artifact associated with the document. For example, "Release 12, Update 6". This value is unique across all versions of a document, and can't be changed.</p>
*/
VersionName?: string;
}

export interface CreateDocumentRequest {
Expand Down Expand Up @@ -5299,7 +5310,6 @@ export interface DescribeAvailablePatchesRequest {
* </p>
* </li>
* </ul>
*
* <p>
* <b>Linux</b>
* </p>
Expand Down
9 changes: 0 additions & 9 deletions clients/client-ssm/src/models/models_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2599,7 +2599,6 @@ export interface MaintenanceWindowAutomationParameters {
* <code>OutputS3BucketName</code> and <code>OutputS3KeyPrefix</code> options in the <code>TaskInvocationParameters</code> structure.
* For information about how Amazon Web Services Systems Manager handles these options for the supported maintenance
* window task types, see <a>MaintenanceWindowTaskInvocationParameters</a>.</p>
*
* <p>
* <code>TaskParameters</code> has been deprecated. To specify parameters to pass to a task when it runs,
* instead use the <code>Parameters</code> option in the <code>TaskInvocationParameters</code> structure. For information
Expand All @@ -2621,7 +2620,6 @@ export interface MaintenanceWindowAutomationParameters {
* <code>OutputS3BucketName</code> and <code>OutputS3KeyPrefix</code> options in the <code>TaskInvocationParameters</code> structure.
* For information about how Amazon Web Services Systems Manager handles these options for the supported maintenance
* window task types, see <a>MaintenanceWindowTaskInvocationParameters</a>.</p>
*
* <p>
* <code>TaskParameters</code> has been deprecated. To specify parameters to pass to a task when it runs,
* instead use the <code>Parameters</code> option in the <code>TaskInvocationParameters</code> structure. For information
Expand Down Expand Up @@ -2711,7 +2709,6 @@ export interface NotificationConfig {
* <code>OutputS3BucketName</code> and <code>OutputS3KeyPrefix</code> options in the <code>TaskInvocationParameters</code> structure.
* For information about how Amazon Web Services Systems Manager handles these options for the supported maintenance
* window task types, see <a>MaintenanceWindowTaskInvocationParameters</a>.</p>
*
* <p>
* <code>TaskParameters</code> has been deprecated. To specify parameters to pass to a task when it runs,
* instead use the <code>Parameters</code> option in the <code>TaskInvocationParameters</code> structure. For information
Expand Down Expand Up @@ -2804,7 +2801,6 @@ export interface MaintenanceWindowRunCommandParameters {
* <code>OutputS3BucketName</code> and <code>OutputS3KeyPrefix</code> options in the <code>TaskInvocationParameters</code> structure.
* For information about how Amazon Web Services Systems Manager handles these options for the supported maintenance
* window task types, see <a>MaintenanceWindowTaskInvocationParameters</a>.</p>
*
* <p>
* <code>TaskParameters</code> has been deprecated. To specify parameters to pass to a task when it runs,
* instead use the <code>Parameters</code> option in the <code>TaskInvocationParameters</code> structure. For information
Expand Down Expand Up @@ -4082,7 +4078,6 @@ export interface Association {
* <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 @@ -6587,10 +6582,8 @@ export interface ListTagsForResourceResult {
/**
* <p>The document can't be shared with more Amazon Web Services user accounts. You can specify a maximum of
* 20 accounts per API operation to share a private document.</p>
*
* <p>By default, you can share a private document with a maximum of 1,000 accounts and publicly
* share up to five documents.</p>
*
* <p>If you need to increase the quota for privately or publicly shared Systems Manager documents, contact
* Amazon Web Services Support.</p>
*/
Expand Down Expand Up @@ -7688,7 +7681,6 @@ export interface RegisterTargetWithMaintenanceWindowRequest {
* <p>
* <code>Key=tag-key,Values=<my-tag-key-1>,<my-tag-key-2></code>
* </p>
*
* <p>
* <b>Example 4</b>: Use resource group names</p>
* <p>
Expand All @@ -7706,7 +7698,6 @@ export interface RegisterTargetWithMaintenanceWindowRequest {
* <code>Key=resource-groups:ResourceTypeFilters,Values=AWS::EC2::INSTANCE,AWS::EC2::VPC</code>
* </p>
* </note>
*
* <p>For more information about these examples formats, including the best use case for each one,
* see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/mw-cli-tutorial-targets-examples.html">Examples: Register
* targets with a maintenance window</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
Expand Down
1 change: 0 additions & 1 deletion clients/client-ssm/src/models/models_2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ 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>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
Expand Down
4 changes: 4 additions & 0 deletions clients/client-ssm/src/protocols/Aws_json1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12432,7 +12432,9 @@ const serializeAws_json1_1DocumentKeyValuesFilterValues = (input: string[], cont
const serializeAws_json1_1DocumentRequires = (input: DocumentRequires, context: __SerdeContext): any => {
return {
...(input.Name != null && { Name: input.Name }),
...(input.RequireType != null && { RequireType: input.RequireType }),
...(input.Version != null && { Version: input.Version }),
...(input.VersionName != null && { VersionName: input.VersionName }),
};
};

Expand Down Expand Up @@ -16463,7 +16465,9 @@ const deserializeAws_json1_1DocumentPermissionLimit = (
const deserializeAws_json1_1DocumentRequires = (output: any, context: __SerdeContext): DocumentRequires => {
return {
Name: __expectString(output.Name),
RequireType: __expectString(output.RequireType),
Version: __expectString(output.Version),
VersionName: __expectString(output.VersionName),
} as any;
};

Expand Down
Loading

0 comments on commit 124b702

Please sign in to comment.