From 5f08c9697fd82962ceee4c1f2615e9741e25085d Mon Sep 17 00:00:00 2001 From: awstools Date: Thu, 13 Oct 2022 18:33:55 +0000 Subject: [PATCH] feat(client-ssm): Support of AmazonLinux2022 by Patch Manager --- clients/client-ssm/src/models/models_0.ts | 57 ++++++++++++++++------- clients/client-ssm/src/models/models_1.ts | 12 +++-- codegen/sdk-codegen/aws-models/ssm.json | 24 ++++++---- 3 files changed, 62 insertions(+), 31 deletions(-) diff --git a/clients/client-ssm/src/models/models_0.ts b/clients/client-ssm/src/models/models_0.ts index cc3475d53016..96bfee277d12 100644 --- a/clients/client-ssm/src/models/models_0.ts +++ b/clients/client-ssm/src/models/models_0.ts @@ -1136,8 +1136,10 @@ export interface CreateAssociationRequest { TargetMaps?: Record[]; /** - *

Optional metadata that you assign to a resource. Tags enable you to categorize a resource in - * different ways, such as by purpose, owner, or environment. For example, you might want to tag an association to identify the type of resource to which it applies, the environment, or the purpose of the association.

+ *

Adds or overwrites one or more tags for a State Manager association. Tags + * are metadata that you can assign to your Amazon Web Services resources. Tags enable you to categorize your + * resources in different ways, for example, by purpose, owner, or environment. Each tag consists of + * a key and an optional value, both of which you define.

*/ Tags?: Tag[]; @@ -1474,7 +1476,7 @@ export class InvalidSchedule extends __BaseException { } /** - *

The tag key or value isn't valid.

+ *

The specified tag key or value isn't valid.

*/ export class InvalidTag extends __BaseException { readonly name: "InvalidTag" = "InvalidTag"; @@ -2971,6 +2973,7 @@ export interface PatchRuleGroup { export enum OperatingSystem { AmazonLinux = "AMAZON_LINUX", AmazonLinux2 = "AMAZON_LINUX_2", + AmazonLinux2022 = "AMAZON_LINUX_2022", CentOS = "CENTOS", Debian = "DEBIAN", MacOS = "MACOS", @@ -5821,18 +5824,36 @@ export interface DescribeInstanceAssociationsStatusResult { */ export interface InstanceInformationStringFilter { /** - *

The filter key name to describe your managed nodes. For example:

- *

"InstanceIds" | "AgentVersion" | "PingStatus" | "PlatformTypes" | "ActivationIds" | - * "IamRole" | "ResourceType" | "AssociationStatus" | "tag-key" | "tag:{keyname} + *

The filter key name to describe your managed nodes.

+ *

Valid filter key values: ActivationIds | AgentVersion | AssociationStatus | IamRole | + * InstanceIds | PingStatus | PlatformTypes | ResourceType | SourceIds | SourceTypes | "tag-key" | + * "tag:{keyname} *

- * - *

- * Tag Key isn't a valid filter. You must specify either tag-key or - * tag:{keyname} and a string. Here are some valid examples: tag-key, - * tag:123, tag:al!, tag:Windows. Here are some - * invalid examples: tag-keys, Tag Key, - * tag:, tagKey, abc:keyname.

- *
+ * */ Key: string | undefined; @@ -6440,7 +6461,7 @@ export interface InstancePatchState { RebootOption?: RebootOption | string; /** - *

The number of managed nodes where patches that are specified as Critical for + *

The number of patches per node that are specified as Critical for * compliance reporting in the patch baseline aren't installed. These patches might be missing, have * failed installation, were rejected, or were installed but awaiting a required managed node * reboot. The status of these managed nodes is NON_COMPLIANT.

@@ -6448,7 +6469,7 @@ export interface InstancePatchState { CriticalNonCompliantCount?: number; /** - *

The number of managed nodes where patches that are specified as Security in a + *

The number of patches per node that are specified as Security in a * patch advisory aren't installed. These patches might be missing, have failed installation, were * rejected, or were installed but awaiting a required managed node reboot. The status of these * managed nodes is NON_COMPLIANT.

@@ -6456,7 +6477,7 @@ export interface InstancePatchState { SecurityNonCompliantCount?: number; /** - *

The number of managed nodes with patches installed that are specified as other than + *

The number of patches per node that are specified as other than * Critical or Security but aren't compliant with the patch baseline. The * status of these managed nodes is NON_COMPLIANT.

*/ @@ -7439,7 +7460,7 @@ export enum MaintenanceWindowTaskCutoffBehavior { */ export interface LoggingInfo { /** - *

The name of an S3 bucket where execution logs are stored .

+ *

The name of an S3 bucket where execution logs are stored.

*/ S3BucketName: string | undefined; diff --git a/clients/client-ssm/src/models/models_1.ts b/clients/client-ssm/src/models/models_1.ts index 43f1067ea004..9dca9039d96d 100644 --- a/clients/client-ssm/src/models/models_1.ts +++ b/clients/client-ssm/src/models/models_1.ts @@ -6243,9 +6243,11 @@ export interface ListTagsForResourceResult { } /** - *

The document can't be shared with more Amazon Web Services user accounts. You can share a document - * with a maximum of 20 accounts. You can publicly share up to five documents. If you need to - * increase this limit, contact Amazon Web Services Support.

+ *

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.

+ * + *

By default, you can share a private document with a maximum of 1,000 accounts and publicly share up to five documents.

+ * + *

If you need to increase the quota for privately or publicly shared Systems Manager documents, contact Amazon Web Services Support.

*/ export class DocumentPermissionLimit extends __BaseException { readonly name: "DocumentPermissionLimit" = "DocumentPermissionLimit"; @@ -8368,7 +8370,9 @@ export interface StartSessionResponse { SessionId?: string; /** - *

An encrypted token value containing session and caller information. This token is used to authenticate the connection to the managed node, and is valid only long enough to ensure the connection is successful. Never share your session's token.

+ *

An encrypted token value containing session and caller information. This token is used to + * authenticate the connection to the managed node, and is valid only long enough to ensure the + * connection is successful. Never share your session's token.

*/ TokenValue?: string; diff --git a/codegen/sdk-codegen/aws-models/ssm.json b/codegen/sdk-codegen/aws-models/ssm.json index bc726d8cf471..94d19850457c 100644 --- a/codegen/sdk-codegen/aws-models/ssm.json +++ b/codegen/sdk-codegen/aws-models/ssm.json @@ -5008,7 +5008,7 @@ "Tags": { "target": "com.amazonaws.ssm#TagList", "traits": { - "smithy.api#documentation": "

Optional metadata that you assign to a resource. Tags enable you to categorize a resource in\n different ways, such as by purpose, owner, or environment. For example, you might want to tag an association to identify the type of resource to which it applies, the environment, or the purpose of the association.

" + "smithy.api#documentation": "

Adds or overwrites one or more tags for a State Manager association. Tags\n are metadata that you can assign to your Amazon Web Services resources. Tags enable you to categorize your\n resources in different ways, for example, by purpose, owner, or environment. Each tag consists of\n a key and an optional value, both of which you define.

" } }, "AlarmConfiguration": { @@ -9567,7 +9567,7 @@ "code": "DocumentPermissionLimit", "httpResponseCode": 400 }, - "smithy.api#documentation": "

The document can't be shared with more Amazon Web Services user accounts. You can share a document\n with a maximum of 20 accounts. You can publicly share up to five documents. If you need to\n increase this limit, contact Amazon Web Services Support.

", + "smithy.api#documentation": "

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.

\n\n

By default, you can share a private document with a maximum of 1,000 accounts and publicly share up to five documents.

\n \n

If you need to increase the quota for privately or publicly shared Systems Manager documents, contact Amazon Web Services Support.

", "smithy.api#error": "client" } }, @@ -13087,7 +13087,7 @@ "Key": { "target": "com.amazonaws.ssm#InstanceInformationStringFilterKey", "traits": { - "smithy.api#documentation": "

The filter key name to describe your managed nodes. For example:

\n

\"InstanceIds\" | \"AgentVersion\" | \"PingStatus\" | \"PlatformTypes\" | \"ActivationIds\" |\n \"IamRole\" | \"ResourceType\" | \"AssociationStatus\" | \"tag-key\" | \"tag:{keyname}\n

\n \n

\n Tag Key isn't a valid filter. You must specify either tag-key or\n tag:{keyname} and a string. Here are some valid examples: tag-key,\n tag:123, tag:al!, tag:Windows. Here are some\n invalid examples: tag-keys, Tag Key,\n tag:, tagKey, abc:keyname.

\n
", + "smithy.api#documentation": "

The filter key name to describe your managed nodes.

\n

Valid filter key values: ActivationIds | AgentVersion | AssociationStatus | IamRole |\n InstanceIds | PingStatus | PlatformTypes | ResourceType | SourceIds | SourceTypes | \"tag-key\" |\n \"tag:{keyname}\n

\n ", "smithy.api#required": {} } }, @@ -13260,21 +13260,21 @@ "target": "com.amazonaws.ssm#PatchCriticalNonCompliantCount", "traits": { "smithy.api#default": null, - "smithy.api#documentation": "

The number of managed nodes where patches that are specified as Critical for\n compliance reporting in the patch baseline aren't installed. These patches might be missing, have\n failed installation, were rejected, or were installed but awaiting a required managed node\n reboot. The status of these managed nodes is NON_COMPLIANT.

" + "smithy.api#documentation": "

The number of patches per node that are specified as Critical for\n compliance reporting in the patch baseline aren't installed. These patches might be missing, have\n failed installation, were rejected, or were installed but awaiting a required managed node\n reboot. The status of these managed nodes is NON_COMPLIANT.

" } }, "SecurityNonCompliantCount": { "target": "com.amazonaws.ssm#PatchSecurityNonCompliantCount", "traits": { "smithy.api#default": null, - "smithy.api#documentation": "

The number of managed nodes where patches that are specified as Security in a\n patch advisory aren't installed. These patches might be missing, have failed installation, were\n rejected, or were installed but awaiting a required managed node reboot. The status of these\n managed nodes is NON_COMPLIANT.

" + "smithy.api#documentation": "

The number of patches per node that are specified as Security in a\n patch advisory aren't installed. These patches might be missing, have failed installation, were\n rejected, or were installed but awaiting a required managed node reboot. The status of these\n managed nodes is NON_COMPLIANT.

" } }, "OtherNonCompliantCount": { "target": "com.amazonaws.ssm#PatchOtherNonCompliantCount", "traits": { "smithy.api#default": null, - "smithy.api#documentation": "

The number of managed nodes with patches installed that are specified as other than\n Critical or Security but aren't compliant with the patch baseline. The\n status of these managed nodes is NON_COMPLIANT.

" + "smithy.api#documentation": "

The number of patches per node that are specified as other than\n Critical or Security but aren't compliant with the patch baseline. The\n status of these managed nodes is NON_COMPLIANT.

" } } }, @@ -14134,7 +14134,7 @@ "code": "InvalidTag", "httpResponseCode": 400 }, - "smithy.api#documentation": "

The tag key or value isn't valid.

", + "smithy.api#documentation": "

The specified tag key or value isn't valid.

", "smithy.api#error": "client" } }, @@ -16328,7 +16328,7 @@ "S3BucketName": { "target": "com.amazonaws.ssm#S3BucketName", "traits": { - "smithy.api#documentation": "

The name of an S3 bucket where execution logs are stored .

", + "smithy.api#documentation": "

The name of an S3 bucket where execution logs are stored.

", "smithy.api#required": {} } }, @@ -17856,6 +17856,12 @@ "smithy.api#enumValue": "AMAZON_LINUX_2" } }, + "AmazonLinux2022": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AMAZON_LINUX_2022" + } + }, "Ubuntu": { "target": "smithy.api#Unit", "traits": { @@ -24880,7 +24886,7 @@ "TokenValue": { "target": "com.amazonaws.ssm#TokenValue", "traits": { - "smithy.api#documentation": "

An encrypted token value containing session and caller information. This token is used to authenticate the connection to the managed node, and is valid only long enough to ensure the connection is successful. Never share your session's token.

" + "smithy.api#documentation": "

An encrypted token value containing session and caller information. This token is used to\n authenticate the connection to the managed node, and is valid only long enough to ensure the\n connection is successful. Never share your session's token.

" } }, "StreamUrl": {