From 6b85a18f423a0be8f66889979bbb9c68d9833450 Mon Sep 17 00:00:00 2001 From: GZ Date: Mon, 25 Nov 2024 14:13:26 -0800 Subject: [PATCH] chore(lambda): remove unnecessary lints (#32277) ### Issue # (if applicable) N/A ### Reason for this change Remove unnecessary linter rules. ### Description of changes Remove these added in https://github.com/aws/aws-cdk/pull/32205/files#diff-f66e69e18f9e11ae10f52dbe34309dcdf47cb8e3da6d54befbb45beaaf083b35R408-R419 ### Description of how you validated changes N/A ### Checklist - [ ] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- .../aws-lambda-event-sources/lib/stream.ts | 3 +++ .../aws-lambda/lib/event-source-mapping.ts | 3 +++ packages/aws-cdk-lib/awslint.json | 12 ------------ 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/packages/aws-cdk-lib/aws-lambda-event-sources/lib/stream.ts b/packages/aws-cdk-lib/aws-lambda-event-sources/lib/stream.ts index f65cb6a9852a1..44c6076c4e65a 100644 --- a/packages/aws-cdk-lib/aws-lambda-event-sources/lib/stream.ts +++ b/packages/aws-cdk-lib/aws-lambda-event-sources/lib/stream.ts @@ -54,6 +54,9 @@ export interface BaseStreamEventSourceProps{ readonly provisionedPollerConfig?: ProvisionedPollerConfig; } +/** + * (Amazon MSK and self-managed Apache Kafka only) The provisioned mode configuration for the event source. + */ export interface ProvisionedPollerConfig { /** * The minimum number of pollers that should be provisioned. diff --git a/packages/aws-cdk-lib/aws-lambda/lib/event-source-mapping.ts b/packages/aws-cdk-lib/aws-lambda/lib/event-source-mapping.ts index fe4f4cc78b88f..a673d6282dc1a 100644 --- a/packages/aws-cdk-lib/aws-lambda/lib/event-source-mapping.ts +++ b/packages/aws-cdk-lib/aws-lambda/lib/event-source-mapping.ts @@ -81,6 +81,9 @@ export interface SourceAccessConfiguration { readonly uri: string; } +/** + * (Amazon MSK and self-managed Apache Kafka only) The provisioned mode configuration for the event source. + */ export interface ProvisionedPollerConfig { /** * The minimum number of pollers that should be provisioned. diff --git a/packages/aws-cdk-lib/awslint.json b/packages/aws-cdk-lib/awslint.json index 465f57aceeeef..528f143682a16 100644 --- a/packages/aws-cdk-lib/awslint.json +++ b/packages/aws-cdk-lib/awslint.json @@ -405,18 +405,6 @@ "docs-public-apis:aws-cdk-lib.aws_lambda_event_sources.S3EventSource.bucket", "docs-public-apis:aws-cdk-lib.aws_lambda_event_sources.SnsEventSource.topic", "docs-public-apis:aws-cdk-lib.aws_lambda_event_sources.SqsEventSource.queue", - "docs-public-apis:aws-cdk-lib.aws_lambda.EventSourceMappingOptions.provisionedPollerConfig", - "props-default-doc:aws-cdk-lib.aws_lambda.EventSourceMappingOptions.provisionedPollerConfig", - "docs-public-apis:aws-cdk-lib.aws_lambda.ProvisionedPollerConfig", - "docs-public-apis:aws-cdk-lib.aws_lambda.ProvisionedPollerConfig.maximumPollers", - "docs-public-apis:aws-cdk-lib.aws_lambda.ProvisionedPollerConfig.minimumPollers", - "props-default-doc:aws-cdk-lib.aws_lambda.ProvisionedPollerConfig.maximumPollers", - "props-default-doc:aws-cdk-lib.aws_lambda.ProvisionedPollerConfig.minimumPollers", - "docs-public-apis:aws-cdk-lib.aws_lambda_event_sources.KafkaEventSourceProps.provisionedPollerConfig", - "props-default-doc:aws-cdk-lib.aws_lambda_event_sources.KafkaEventSourceProps.provisionedPollerConfig", - "docs-public-apis:aws-cdk-lib.aws_lambda_event_sources.ProvisionedPollerConfig", - "docs-public-apis:aws-cdk-lib.aws_lambda_event_sources.ProvisionedPollerConfig.maximumPollers", - "docs-public-apis:aws-cdk-lib.aws_lambda_event_sources.ProvisionedPollerConfig.minimumPollers", "docs-public-apis:aws-cdk-lib.aws_logs.CrossAccountDestination.addToPolicy", "docs-public-apis:aws-cdk-lib.aws_logs.DataIdentifier.*", "docs-public-apis:aws-cdk-lib.aws_logs.JsonPattern.jsonPatternString",