From 1142738ba5f9e9bf10a5db56b44d65882fd45c5b Mon Sep 17 00:00:00 2001 From: awstools Date: Wed, 1 May 2024 18:14:44 +0000 Subject: [PATCH] feat(client-securityhub): Updated CreateMembers API request with limits. --- .../src/commands/UpdateFindingsCommand.ts | 6 ++++-- clients/client-securityhub/src/models/models_2.ts | 6 ++++-- codegen/sdk-codegen/aws-models/securityhub.json | 12 +++++++++--- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/clients/client-securityhub/src/commands/UpdateFindingsCommand.ts b/clients/client-securityhub/src/commands/UpdateFindingsCommand.ts index 10f8e5402e48..6cd829be5dcd 100644 --- a/clients/client-securityhub/src/commands/UpdateFindingsCommand.ts +++ b/clients/client-securityhub/src/commands/UpdateFindingsCommand.ts @@ -28,11 +28,13 @@ export interface UpdateFindingsCommandOutput extends UpdateFindingsResponse, __M /** *

- * UpdateFindings is deprecated. Instead of UpdateFindings, use - * BatchUpdateFindings.

+ * UpdateFindings is a deprecated operation. Instead of UpdateFindings, use + * the BatchUpdateFindings operation.

*

Updates the Note and RecordState of the Security Hub-aggregated * findings that the filter attributes specify. Any member account that can view the finding * also sees the update to the finding.

+ *

Finding updates made with UpdateFindings might not be persisted if the same finding is later updated by the + * finding provider through the BatchImportFindings operation.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-securityhub/src/models/models_2.ts b/clients/client-securityhub/src/models/models_2.ts index d520ce771e17..0e29f28d9d88 100644 --- a/clients/client-securityhub/src/models/models_2.ts +++ b/clients/client-securityhub/src/models/models_2.ts @@ -9487,7 +9487,8 @@ export class ResourceInUseException extends __BaseException { export interface StartConfigurationPolicyAssociationRequest { /** *

- * The Amazon Resource Name (ARN) or universally unique identifier (UUID) of the configuration policy. + * The Amazon Resource Name (ARN) of a configuration policy, the universally unique identifier (UUID) of a + * configuration policy, or a value of SELF_MANAGED_SECURITY_HUB for a self-managed configuration. *

* @public */ @@ -9578,7 +9579,8 @@ export interface StartConfigurationPolicyDisassociationRequest { /** *

- * The Amazon Resource Name (ARN) or universally unique identifier (UUID) of the configuration policy. + * The Amazon Resource Name (ARN) of a configuration policy, the universally unique identifier (UUID) of a + * configuration policy, or a value of SELF_MANAGED_SECURITY_HUB for a self-managed configuration. *

* @public */ diff --git a/codegen/sdk-codegen/aws-models/securityhub.json b/codegen/sdk-codegen/aws-models/securityhub.json index d5b05c062772..cb3ad20afa42 100644 --- a/codegen/sdk-codegen/aws-models/securityhub.json +++ b/codegen/sdk-codegen/aws-models/securityhub.json @@ -214,6 +214,12 @@ "type": "list", "member": { "target": "com.amazonaws.securityhub#AccountDetails" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 50 + } } }, "com.amazonaws.securityhub#AccountId": { @@ -33900,7 +33906,7 @@ "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { "smithy.api#clientOptional": {}, - "smithy.api#documentation": "

\n The Amazon Resource Name (ARN) or universally unique identifier (UUID) of the configuration policy.\n

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

\n The Amazon Resource Name (ARN) of a configuration policy, the universally unique identifier (UUID) of a \n configuration policy, or a value of SELF_MANAGED_SECURITY_HUB for a self-managed configuration.\n

", "smithy.api#required": {} } }, @@ -34029,7 +34035,7 @@ "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { "smithy.api#clientOptional": {}, - "smithy.api#documentation": "

\n The Amazon Resource Name (ARN) or universally unique identifier (UUID) of the configuration policy.\n

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

\n The Amazon Resource Name (ARN) of a configuration policy, the universally unique identifier (UUID) of a \n configuration policy, or a value of SELF_MANAGED_SECURITY_HUB for a self-managed configuration.\n

", "smithy.api#required": {} } } @@ -35402,7 +35408,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n UpdateFindings is deprecated. Instead of UpdateFindings, use\n BatchUpdateFindings.

\n

Updates the Note and RecordState of the Security Hub-aggregated\n findings that the filter attributes specify. Any member account that can view the finding\n also sees the update to the finding.

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

\n UpdateFindings is a deprecated operation. Instead of UpdateFindings, use\n the BatchUpdateFindings operation.

\n

Updates the Note and RecordState of the Security Hub-aggregated\n findings that the filter attributes specify. Any member account that can view the finding\n also sees the update to the finding.

\n

Finding updates made with UpdateFindings might not be persisted if the same finding is later updated by the \n finding provider through the BatchImportFindings operation.

", "smithy.api#http": { "method": "PATCH", "uri": "/findings",