From 9604c62ebc9759e07abda426ec3bb644d8e58807 Mon Sep 17 00:00:00 2001 From: Kaizen Conroy <36202692+kaizencc@users.noreply.github.com> Date: Mon, 5 Feb 2024 14:50:14 -0500 Subject: [PATCH] chore: enforce @typescript-eslint/comma-dangle (#28991) Enforcing `@typescript-eslint/comma-dangle` instead of the regular `eslint/comma-dangle`. This gives us additional linting on enums, generics, and tuples. Mostly, I care about the enums. https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/comma-dangle.md https://medium.com/@nikgraf/why-you-should-enforce-dangling-commas-for-multiline-statements-d034c98e36f8 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- .../@aws-cdk/aws-cloud9-alpha/lib/environment.ts | 2 +- packages/@aws-cdk/aws-glue-alpha/lib/s3-table.ts | 2 +- .../lib/sns-topic-action.ts | 2 +- .../aws-lambda-python-alpha/lib/packaging.ts | 2 +- .../@aws-cdk/aws-pipes-alpha/lib/pipeVariable.ts | 2 +- .../@aws-cdk/aws-redshift-alpha/lib/table.ts | 2 +- .../cdk-cli-wrapper/lib/commands/common.ts | 2 +- .../cli-lib-alpha/lib/commands/common.ts | 2 +- .../aws-apigateway/lib/integration.ts | 8 ++++---- .../aws-apigateway/lib/json-schema.ts | 4 ++-- .../aws-cdk-lib/aws-apigateway/lib/restapi.ts | 2 +- packages/aws-cdk-lib/aws-apigateway/lib/stage.ts | 2 +- .../aws-cdk-lib/aws-apigateway/lib/usage-plan.ts | 4 ++-- .../aws-apigatewayv2/lib/http/authorizer.ts | 2 +- .../aws-apigatewayv2/lib/http/route.ts | 2 +- .../lib/websocket/integration.ts | 2 +- .../lib/step-scaling-action.ts | 2 +- .../aws-appmesh/lib/service-discovery.ts | 2 +- .../aws-cdk-lib/aws-appsync/lib/graphqlapi.ts | 2 +- .../aws-autoscaling/lib/auto-scaling-group.ts | 4 ++-- .../aws-autoscaling/lib/step-scaling-action.ts | 2 +- packages/aws-cdk-lib/aws-backup/lib/resource.ts | 2 +- .../aws-batch/lib/linux-parameters.ts | 2 +- .../lib/cloud-formation-capabilities.ts | 2 +- .../aws-cloudfront/lib/distribution.ts | 10 +++++----- .../aws-cloudfront/lib/web-distribution.ts | 2 +- .../aws-cloudwatch-actions/lib/ec2.ts | 2 +- .../aws-cloudwatch-actions/lib/ssm.ts | 4 ++-- packages/aws-cdk-lib/aws-cloudwatch/lib/alarm.ts | 2 +- packages/aws-cdk-lib/aws-cloudwatch/lib/graph.ts | 6 +++--- packages/aws-cdk-lib/aws-cloudwatch/lib/text.ts | 2 +- .../aws-cdk-lib/aws-codebuild/lib/project.ts | 2 +- .../aws-cdk-lib/aws-codecommit/lib/repository.ts | 2 +- .../aws-codedeploy/lib/base-deployment-config.ts | 2 +- .../lib/lambda/custom-deployment-config.ts | 2 +- .../aws-codedeploy/lib/private/utils.ts | 2 +- .../aws-codedeploy/lib/server/load-balancer.ts | 2 +- .../lib/cloudformation/stackset-types.ts | 2 +- .../lib/codebuild/build-action.ts | 2 +- .../lib/jenkins/jenkins-action.ts | 2 +- .../aws-cdk-lib/aws-codepipeline/lib/action.ts | 2 +- .../aws-cognito/lib/user-pool-idps/oidc.ts | 2 +- .../aws-cdk-lib/aws-cognito/lib/user-pool.ts | 2 +- packages/aws-cdk-lib/aws-config/lib/rule.ts | 2 +- packages/aws-cdk-lib/aws-dynamodb/lib/shared.ts | 4 ++-- packages/aws-cdk-lib/aws-ec2/lib/key-pair.ts | 2 +- packages/aws-cdk-lib/aws-ec2/lib/vpc-endpoint.ts | 2 +- .../aws-cdk-lib/aws-ec2/lib/vpc-flow-logs.ts | 2 +- packages/aws-cdk-lib/aws-ec2/lib/vpc.ts | 4 ++-- packages/aws-cdk-lib/aws-ec2/lib/vpn.ts | 2 +- .../application-load-balanced-service-base.ts | 2 +- .../base/network-load-balanced-service-base.ts | 2 +- .../aws-cdk-lib/aws-ecs/lib/base/base-service.ts | 6 +++--- .../aws-ecs/lib/base/task-definition.ts | 6 +++--- packages/aws-cdk-lib/aws-ecs/lib/cluster.ts | 2 +- .../aws-ecs/lib/container-definition.ts | 2 +- .../aws-cdk-lib/aws-ecs/lib/linux-parameters.ts | 4 ++-- .../aws-ecs/lib/log-drivers/aws-log-driver.ts | 2 +- .../aws-ecs/lib/log-drivers/gelf-log-driver.ts | 2 +- .../aws-ecs/lib/log-drivers/splunk-log-driver.ts | 2 +- .../aws-cdk-lib/aws-efs/lib/efs-file-system.ts | 8 ++++---- .../aws-cdk-lib/aws-eks/lib/alb-controller.ts | 2 +- packages/aws-cdk-lib/aws-eks/lib/k8s-patch.ts | 2 +- .../aws-cdk-lib/aws-eks/lib/managed-nodegroup.ts | 2 +- packages/aws-cdk-lib/aws-eks/lib/user-data.ts | 2 +- .../lib/load-balancer.ts | 2 +- .../lib/alb/application-listener-rule.ts | 2 +- .../lib/alb/application-load-balancer.ts | 2 +- .../aws-cdk-lib/aws-elasticsearch/lib/domain.ts | 2 +- .../aws-cdk-lib/aws-fsx/lib/maintenance-time.ts | 2 +- packages/aws-cdk-lib/aws-iam/lib/access-key.ts | 2 +- packages/aws-cdk-lib/aws-kinesis/lib/stream.ts | 4 ++-- .../aws-cdk-lib/aws-lambda-nodejs/lib/types.ts | 6 +++--- packages/aws-cdk-lib/aws-lambda/lib/runtime.ts | 2 +- packages/aws-cdk-lib/aws-rds/lib/cluster.ts | 2 +- packages/aws-cdk-lib/aws-rds/lib/instance.ts | 6 +++--- .../aws-rds/lib/serverless-cluster.ts | 2 +- .../aws-cdk-lib/aws-route53/lib/record-set.ts | 2 +- .../aws-s3-deployment/lib/bucket-deployment.ts | 4 ++-- packages/aws-cdk-lib/aws-s3/lib/bucket.ts | 2 +- packages/aws-cdk-lib/aws-s3/lib/destination.ts | 2 +- .../aws-cdk-lib/aws-secretsmanager/lib/secret.ts | 2 +- .../aws-cdk-lib/aws-servicecatalog/lib/common.ts | 2 +- .../aws-servicediscovery/lib/service.ts | 2 +- .../lib/configuration-set-event-destination.ts | 2 +- .../aws-cdk-lib/aws-ses/lib/email-identity.ts | 2 +- .../aws-cdk-lib/aws-ses/lib/receipt-filter.ts | 2 +- packages/aws-cdk-lib/aws-ses/lib/receipt-rule.ts | 2 +- packages/aws-cdk-lib/aws-sns/lib/subscription.ts | 2 +- packages/aws-cdk-lib/aws-sqs/lib/queue-base.ts | 2 +- .../lib/apigateway/base-types.ts | 2 +- .../lib/athena/start-query-execution.ts | 2 +- .../aws-stepfunctions-tasks/lib/eks/call.ts | 2 +- .../lib/emr/emr-add-step.ts | 2 +- .../lib/emrcontainers/create-virtual-cluster.ts | 2 +- .../aws-stepfunctions-tasks/lib/lambda/invoke.ts | 2 +- .../lib/lambda/run-lambda-task.ts | 2 +- .../lib/sagemaker/base-types.ts | 16 ++++++++-------- .../aws-stepfunctions-tasks/lib/sns/publish.ts | 2 +- .../aws-stepfunctions/lib/state-machine.ts | 4 ++-- .../lib/states/private/state-type.ts | 2 +- .../aws-stepfunctions/lib/states/task-base.ts | 2 +- .../aws-stepfunctions/lib/step-functions-task.ts | 2 +- .../lib/cloud-assembly/metadata-schema.ts | 2 +- .../lib/integ-tests/commands/common.ts | 2 +- packages/aws-cdk-lib/core/lib/assets.ts | 2 +- .../aws-cdk-lib/core/lib/cfn-capabilities.ts | 2 +- packages/aws-cdk-lib/core/lib/deps.ts | 2 +- packages/aws-cdk-lib/core/lib/fs/options.ts | 2 +- packages/aws-cdk-lib/cx-api/lib/metadata.ts | 2 +- packages/aws-cdk-lib/triggers/lib/trigger.ts | 2 +- packages/aws-cdk/lib/api/cxapp/cloud-assembly.ts | 2 +- .../lib/api/plugin/credential-provider-source.ts | 2 +- packages/aws-cdk/lib/context-providers/vpcs.ts | 2 +- packages/aws-cdk/lib/diff.ts | 2 +- packages/aws-cdk/lib/logging.ts | 2 +- packages/cdk-assets/lib/private/docker.ts | 2 +- .../cdk-assets/lib/private/handlers/files.ts | 2 +- .../@aws-cdk/cdk-build-tools/config/eslintrc.js | 2 +- tools/@aws-cdk/cdk-release/lib/types.ts | 2 +- 120 files changed, 157 insertions(+), 157 deletions(-) diff --git a/packages/@aws-cdk/aws-cloud9-alpha/lib/environment.ts b/packages/@aws-cdk/aws-cloud9-alpha/lib/environment.ts index 06d9b57b8d2a7..75a745fed584e 100644 --- a/packages/@aws-cdk/aws-cloud9-alpha/lib/environment.ts +++ b/packages/@aws-cdk/aws-cloud9-alpha/lib/environment.ts @@ -38,7 +38,7 @@ export enum ConnectionType { * When using SSM, service role and instance profile aren't automatically created. * See https://docs.aws.amazon.com/cloud9/latest/user-guide/ec2-ssm.html#service-role-ssm */ - CONNECT_SSM = 'CONNECT_SSM' + CONNECT_SSM = 'CONNECT_SSM', } /** diff --git a/packages/@aws-cdk/aws-glue-alpha/lib/s3-table.ts b/packages/@aws-cdk/aws-glue-alpha/lib/s3-table.ts index 49d56abdd5968..b8ca20aded84b 100644 --- a/packages/@aws-cdk/aws-glue-alpha/lib/s3-table.ts +++ b/packages/@aws-cdk/aws-glue-alpha/lib/s3-table.ts @@ -36,7 +36,7 @@ export enum TableEncryption { * * @see https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html */ - CLIENT_SIDE_KMS = 'CSE-KMS' + CLIENT_SIDE_KMS = 'CSE-KMS', } export interface S3TableProps extends TableBaseProps { diff --git a/packages/@aws-cdk/aws-iot-actions-alpha/lib/sns-topic-action.ts b/packages/@aws-cdk/aws-iot-actions-alpha/lib/sns-topic-action.ts index f5c247126ea6d..2c53a67853379 100644 --- a/packages/@aws-cdk/aws-iot-actions-alpha/lib/sns-topic-action.ts +++ b/packages/@aws-cdk/aws-iot-actions-alpha/lib/sns-topic-action.ts @@ -16,7 +16,7 @@ export enum SnsActionMessageFormat { /** * JSON message format. */ - JSON = 'JSON' + JSON = 'JSON', } /** diff --git a/packages/@aws-cdk/aws-lambda-python-alpha/lib/packaging.ts b/packages/@aws-cdk/aws-lambda-python-alpha/lib/packaging.ts index 7875b3f15f83e..8e8b941d33808 100644 --- a/packages/@aws-cdk/aws-lambda-python-alpha/lib/packaging.ts +++ b/packages/@aws-cdk/aws-lambda-python-alpha/lib/packaging.ts @@ -5,7 +5,7 @@ export enum DependenciesFile { PIP = 'requirements.txt', POETRY = 'poetry.lock', PIPENV = 'Pipfile.lock', - NONE = '' + NONE = '', } export interface PackagingProps { diff --git a/packages/@aws-cdk/aws-pipes-alpha/lib/pipeVariable.ts b/packages/@aws-cdk/aws-pipes-alpha/lib/pipeVariable.ts index 17bd240949dfe..14e00e91f334b 100644 --- a/packages/@aws-cdk/aws-pipes-alpha/lib/pipeVariable.ts +++ b/packages/@aws-cdk/aws-pipes-alpha/lib/pipeVariable.ts @@ -35,7 +35,7 @@ export enum PipeVariable { /** * The same as aws.pipes.event, but the variable only has a value if the original payload, either from the source or returned by the enrichment, is JSON. If the pipe has an encoded field, such as the Amazon SQS body field or the Kinesis data, those fields are decoded and turned into valid JSON. Because it isn't escaped, the variable can only be used as a value for a JSON field. For more information, see Implicit body data parsing. */ - EVENT_JSON = '' + EVENT_JSON = '', } diff --git a/packages/@aws-cdk/aws-redshift-alpha/lib/table.ts b/packages/@aws-cdk/aws-redshift-alpha/lib/table.ts index 1e432936ef4e3..c8d31d646e801 100644 --- a/packages/@aws-cdk/aws-redshift-alpha/lib/table.ts +++ b/packages/@aws-cdk/aws-redshift-alpha/lib/table.ts @@ -49,7 +49,7 @@ export enum TableAction { /** * Grants all available privileges at once to the specified user or user group. */ - ALL + ALL, } /** diff --git a/packages/@aws-cdk/cdk-cli-wrapper/lib/commands/common.ts b/packages/@aws-cdk/cdk-cli-wrapper/lib/commands/common.ts index 8bfbad998ea5d..393307c260e5b 100644 --- a/packages/@aws-cdk/cdk-cli-wrapper/lib/commands/common.ts +++ b/packages/@aws-cdk/cdk-cli-wrapper/lib/commands/common.ts @@ -15,7 +15,7 @@ export enum RequireApproval { /** * Only prompt for approval if there are security related changes */ - BROADENING = 'broadening' + BROADENING = 'broadening', } /** diff --git a/packages/@aws-cdk/cli-lib-alpha/lib/commands/common.ts b/packages/@aws-cdk/cli-lib-alpha/lib/commands/common.ts index a89c535441a76..df6413a2a70a4 100644 --- a/packages/@aws-cdk/cli-lib-alpha/lib/commands/common.ts +++ b/packages/@aws-cdk/cli-lib-alpha/lib/commands/common.ts @@ -15,7 +15,7 @@ export enum RequireApproval { /** * Only prompt for approval if there are security related changes */ - BROADENING = 'broadening' + BROADENING = 'broadening', } /** diff --git a/packages/aws-cdk-lib/aws-apigateway/lib/integration.ts b/packages/aws-cdk-lib/aws-apigateway/lib/integration.ts index 1415128cf5319..e5b74ac1d3509 100644 --- a/packages/aws-cdk-lib/aws-apigateway/lib/integration.ts +++ b/packages/aws-cdk-lib/aws-apigateway/lib/integration.ts @@ -260,7 +260,7 @@ export enum ContentHandling { /** * Converts a request payload from a binary blob to a base64-encoded string. */ - CONVERT_TO_TEXT = 'CONVERT_TO_TEXT' + CONVERT_TO_TEXT = 'CONVERT_TO_TEXT', } export enum IntegrationType { @@ -298,7 +298,7 @@ export enum IntegrationType { * For integrating the API method request with API Gateway as a "loop-back" * endpoint without invoking any backend. */ - MOCK = 'MOCK' + MOCK = 'MOCK', } export enum PassthroughBehavior { @@ -319,7 +319,7 @@ export enum PassthroughBehavior { * templates. However if there is at least one content type defined, * unmapped content types will be rejected with the same 415 response. */ - WHEN_NO_TEMPLATES = 'WHEN_NO_TEMPLATES' + WHEN_NO_TEMPLATES = 'WHEN_NO_TEMPLATES', } export enum ConnectionType { @@ -331,7 +331,7 @@ export enum ConnectionType { /** * For private connections between API Gateway and a network load balancer in a VPC */ - VPC_LINK = 'VPC_LINK' + VPC_LINK = 'VPC_LINK', } export interface IntegrationResponse { diff --git a/packages/aws-cdk-lib/aws-apigateway/lib/json-schema.ts b/packages/aws-cdk-lib/aws-apigateway/lib/json-schema.ts index 66b9c1b026203..72fe361d50b1f 100644 --- a/packages/aws-cdk-lib/aws-apigateway/lib/json-schema.ts +++ b/packages/aws-cdk-lib/aws-apigateway/lib/json-schema.ts @@ -4,7 +4,7 @@ export enum JsonSchemaVersion { * @see https://tools.ietf.org/html/draft-zyp-json-schema-04 */ DRAFT4 = 'http://json-schema.org/draft-04/schema#', - DRAFT7 = 'http://json-schema.org/draft-07/schema#' + DRAFT7 = 'http://json-schema.org/draft-07/schema#', } export enum JsonSchemaType { @@ -14,7 +14,7 @@ export enum JsonSchemaType { ARRAY = 'array', NUMBER = 'number', INTEGER = 'integer', - STRING = 'string' + STRING = 'string', } /** diff --git a/packages/aws-cdk-lib/aws-apigateway/lib/restapi.ts b/packages/aws-cdk-lib/aws-apigateway/lib/restapi.ts index fcdd5b911897c..558359046c430 100644 --- a/packages/aws-cdk-lib/aws-apigateway/lib/restapi.ts +++ b/packages/aws-cdk-lib/aws-apigateway/lib/restapi.ts @@ -956,7 +956,7 @@ export enum EndpointType { /** * For a private API and its custom domain name. */ - PRIVATE = 'PRIVATE' + PRIVATE = 'PRIVATE', } class RootResource extends ResourceBase { diff --git a/packages/aws-cdk-lib/aws-apigateway/lib/stage.ts b/packages/aws-cdk-lib/aws-apigateway/lib/stage.ts index 093a526eb2509..266ea23df121d 100644 --- a/packages/aws-cdk-lib/aws-apigateway/lib/stage.ts +++ b/packages/aws-cdk-lib/aws-apigateway/lib/stage.ts @@ -131,7 +131,7 @@ export interface StageProps extends StageOptions { export enum MethodLoggingLevel { OFF = 'OFF', ERROR = 'ERROR', - INFO = 'INFO' + INFO = 'INFO', } export interface MethodDeploymentOptions { diff --git a/packages/aws-cdk-lib/aws-apigateway/lib/usage-plan.ts b/packages/aws-cdk-lib/aws-apigateway/lib/usage-plan.ts index 920d1099ecfbb..5a0ef81f4ab6b 100644 --- a/packages/aws-cdk-lib/aws-apigateway/lib/usage-plan.ts +++ b/packages/aws-cdk-lib/aws-apigateway/lib/usage-plan.ts @@ -32,7 +32,7 @@ export interface ThrottleSettings { export enum Period { DAY = 'DAY', WEEK = 'WEEK', - MONTH = 'MONTH' + MONTH = 'MONTH', } /** @@ -80,7 +80,7 @@ export interface ThrottlingPerMethod { * Type of Usage Plan Key. Currently the only supported type is 'ApiKey' */ enum UsagePlanKeyType { - API_KEY = 'API_KEY' + API_KEY = 'API_KEY', } /** diff --git a/packages/aws-cdk-lib/aws-apigatewayv2/lib/http/authorizer.ts b/packages/aws-cdk-lib/aws-apigatewayv2/lib/http/authorizer.ts index dff2797c2a4b2..ca987d9b48008 100644 --- a/packages/aws-cdk-lib/aws-apigatewayv2/lib/http/authorizer.ts +++ b/packages/aws-cdk-lib/aws-apigatewayv2/lib/http/authorizer.ts @@ -29,7 +29,7 @@ export enum AuthorizerPayloadVersion { VERSION_1_0 = '1.0', /** Version 2.0 */ - VERSION_2_0 = '2.0' + VERSION_2_0 = '2.0', } /** diff --git a/packages/aws-cdk-lib/aws-apigatewayv2/lib/http/route.ts b/packages/aws-cdk-lib/aws-apigatewayv2/lib/http/route.ts index 22e3a50af803e..0c82e6597f1e3 100644 --- a/packages/aws-cdk-lib/aws-apigatewayv2/lib/http/route.ts +++ b/packages/aws-cdk-lib/aws-apigatewayv2/lib/http/route.ts @@ -164,7 +164,7 @@ enum HttpRouteAuthorizationType { CUSTOM = 'CUSTOM', /** No authorizer */ - NONE = 'NONE' + NONE = 'NONE', } /** diff --git a/packages/aws-cdk-lib/aws-apigatewayv2/lib/websocket/integration.ts b/packages/aws-cdk-lib/aws-apigatewayv2/lib/websocket/integration.ts index 30e9d6b51e9c2..2459d07bd5741 100644 --- a/packages/aws-cdk-lib/aws-apigatewayv2/lib/websocket/integration.ts +++ b/packages/aws-cdk-lib/aws-apigatewayv2/lib/websocket/integration.ts @@ -53,7 +53,7 @@ export enum PassthroughBehavior { * templates. However if there is at least one content type defined, * unmapped content types will be rejected with the same 415 response. */ - WHEN_NO_TEMPLATES = 'WHEN_NO_TEMPLATES' + WHEN_NO_TEMPLATES = 'WHEN_NO_TEMPLATES', } /** diff --git a/packages/aws-cdk-lib/aws-applicationautoscaling/lib/step-scaling-action.ts b/packages/aws-cdk-lib/aws-applicationautoscaling/lib/step-scaling-action.ts index 4652637c25d39..afeaa6c471748 100644 --- a/packages/aws-cdk-lib/aws-applicationautoscaling/lib/step-scaling-action.ts +++ b/packages/aws-cdk-lib/aws-applicationautoscaling/lib/step-scaling-action.ts @@ -154,7 +154,7 @@ export enum MetricAggregationType { /** * Maximum */ - MAXIMUM = 'Maximum' + MAXIMUM = 'Maximum', } /** diff --git a/packages/aws-cdk-lib/aws-appmesh/lib/service-discovery.ts b/packages/aws-cdk-lib/aws-appmesh/lib/service-discovery.ts index 8d2a240075b09..68bcd402fea1d 100644 --- a/packages/aws-cdk-lib/aws-appmesh/lib/service-discovery.ts +++ b/packages/aws-cdk-lib/aws-appmesh/lib/service-discovery.ts @@ -28,7 +28,7 @@ export enum IpPreference { * Use IPv6 when sending traffic to a local application. * First attempt to use IPv6 and fall back to IPv4 for service discovery. */ - IPV6_PREFERRED = 'IPv6_PREFERRED' + IPV6_PREFERRED = 'IPv6_PREFERRED', } /** diff --git a/packages/aws-cdk-lib/aws-appsync/lib/graphqlapi.ts b/packages/aws-cdk-lib/aws-appsync/lib/graphqlapi.ts index 0ecb087b3f9e3..00b235687d5c0 100644 --- a/packages/aws-cdk-lib/aws-appsync/lib/graphqlapi.ts +++ b/packages/aws-cdk-lib/aws-appsync/lib/graphqlapi.ts @@ -272,7 +272,7 @@ export enum Visibility { /** * Only accessible through a VPC */ - PRIVATE = 'PRIVATE' + PRIVATE = 'PRIVATE', } /** diff --git a/packages/aws-cdk-lib/aws-autoscaling/lib/auto-scaling-group.ts b/packages/aws-cdk-lib/aws-autoscaling/lib/auto-scaling-group.ts index 10dc6a5fefb1a..17cea2d14ee59 100644 --- a/packages/aws-cdk-lib/aws-autoscaling/lib/auto-scaling-group.ts +++ b/packages/aws-cdk-lib/aws-autoscaling/lib/auto-scaling-group.ts @@ -2009,7 +2009,7 @@ export enum ScalingEvent { /** * Send a test notification to the topic */ - TEST_NOTIFICATION = 'autoscaling:TEST_NOTIFICATION' + TEST_NOTIFICATION = 'autoscaling:TEST_NOTIFICATION', } /** @@ -2134,7 +2134,7 @@ export enum ScalingProcess { AZ_REBALANCE = 'AZRebalance', ALARM_NOTIFICATION = 'AlarmNotification', SCHEDULED_ACTIONS = 'ScheduledActions', - ADD_TO_LOAD_BALANCER = 'AddToLoadBalancer' + ADD_TO_LOAD_BALANCER = 'AddToLoadBalancer', } // Recommended list of processes to suspend from here: diff --git a/packages/aws-cdk-lib/aws-autoscaling/lib/step-scaling-action.ts b/packages/aws-cdk-lib/aws-autoscaling/lib/step-scaling-action.ts index d912fb0121e21..ba6a91f3d03dc 100644 --- a/packages/aws-cdk-lib/aws-autoscaling/lib/step-scaling-action.ts +++ b/packages/aws-cdk-lib/aws-autoscaling/lib/step-scaling-action.ts @@ -142,7 +142,7 @@ export enum MetricAggregationType { /** * Maximum */ - MAXIMUM = 'Maximum' + MAXIMUM = 'Maximum', } /** diff --git a/packages/aws-cdk-lib/aws-backup/lib/resource.ts b/packages/aws-cdk-lib/aws-backup/lib/resource.ts index 737976cf193e2..3deadc8086a6a 100644 --- a/packages/aws-cdk-lib/aws-backup/lib/resource.ts +++ b/packages/aws-cdk-lib/aws-backup/lib/resource.ts @@ -17,7 +17,7 @@ export enum TagOperation { /** * Dummy member */ - DUMMY = 'dummy' + DUMMY = 'dummy', } /** diff --git a/packages/aws-cdk-lib/aws-batch/lib/linux-parameters.ts b/packages/aws-cdk-lib/aws-batch/lib/linux-parameters.ts index 4a691e4de523a..e8d88df191b98 100644 --- a/packages/aws-cdk-lib/aws-batch/lib/linux-parameters.ts +++ b/packages/aws-cdk-lib/aws-batch/lib/linux-parameters.ts @@ -247,7 +247,7 @@ export enum TmpfsMountOption { GID = 'gid', NR_INODES = 'nr_inodes', NR_BLOCKS = 'nr_blocks', - MPOL = 'mpol' + MPOL = 'mpol', } function renderTmpfs(tmpfs: Tmpfs): CfnJobDefinition.TmpfsProperty { diff --git a/packages/aws-cdk-lib/aws-cloudformation/lib/cloud-formation-capabilities.ts b/packages/aws-cdk-lib/aws-cloudformation/lib/cloud-formation-capabilities.ts index 67d8bcaa10eab..52ce0fda865fa 100644 --- a/packages/aws-cdk-lib/aws-cloudformation/lib/cloud-formation-capabilities.ts +++ b/packages/aws-cdk-lib/aws-cloudformation/lib/cloud-formation-capabilities.ts @@ -37,5 +37,5 @@ export enum CloudFormationCapabilities { * * @link https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_CreateStack.html */ - AUTO_EXPAND = 'CAPABILITY_AUTO_EXPAND' + AUTO_EXPAND = 'CAPABILITY_AUTO_EXPAND', } diff --git a/packages/aws-cdk-lib/aws-cloudfront/lib/distribution.ts b/packages/aws-cdk-lib/aws-cloudfront/lib/distribution.ts index f0747997c956f..336affec8b862 100644 --- a/packages/aws-cdk-lib/aws-cloudfront/lib/distribution.ts +++ b/packages/aws-cdk-lib/aws-cloudfront/lib/distribution.ts @@ -750,7 +750,7 @@ export enum HttpVersion { /** HTTP 2 and HTTP 3 */ HTTP2_AND_3 = 'http2and3', /** HTTP 3 */ - HTTP3 = 'http3' + HTTP3 = 'http3', } /** @@ -763,7 +763,7 @@ export enum PriceClass { /** PRICE_CLASS_100 + South Africa, Kenya, Middle East, Japan, Singapore, South Korea, Taiwan, Hong Kong, & Philippines */ PRICE_CLASS_200 = 'PriceClass_200', /** All locations */ - PRICE_CLASS_ALL = 'PriceClass_All' + PRICE_CLASS_ALL = 'PriceClass_All', } /** @@ -775,7 +775,7 @@ export enum ViewerProtocolPolicy { /** Will redirect HTTP requests to HTTPS */ REDIRECT_TO_HTTPS = 'redirect-to-https', /** Both HTTP and HTTPS supported */ - ALLOW_ALL = 'allow-all' + ALLOW_ALL = 'allow-all', } /** @@ -808,7 +808,7 @@ export enum OriginProtocolPolicy { */ export enum SSLMethod { SNI = 'sni-only', - VIP = 'vip' + VIP = 'vip', } /** @@ -822,7 +822,7 @@ export enum SecurityPolicyProtocol { TLS_V1_1_2016 = 'TLSv1.1_2016', TLS_V1_2_2018 = 'TLSv1.2_2018', TLS_V1_2_2019 = 'TLSv1.2_2019', - TLS_V1_2_2021 = 'TLSv1.2_2021' + TLS_V1_2_2021 = 'TLSv1.2_2021', } /** diff --git a/packages/aws-cdk-lib/aws-cloudfront/lib/web-distribution.ts b/packages/aws-cdk-lib/aws-cloudfront/lib/web-distribution.ts index 1ad9572233286..f46b9b3be5344 100644 --- a/packages/aws-cdk-lib/aws-cloudfront/lib/web-distribution.ts +++ b/packages/aws-cdk-lib/aws-cloudfront/lib/web-distribution.ts @@ -339,7 +339,7 @@ export interface S3OriginConfig { export enum CloudFrontAllowedMethods { GET_HEAD = 'GH', GET_HEAD_OPTIONS = 'GHO', - ALL = 'ALL' + ALL = 'ALL', } /** diff --git a/packages/aws-cdk-lib/aws-cloudwatch-actions/lib/ec2.ts b/packages/aws-cdk-lib/aws-cloudwatch-actions/lib/ec2.ts index f3d86cbbf0edd..a676f98a04ce4 100644 --- a/packages/aws-cdk-lib/aws-cloudwatch-actions/lib/ec2.ts +++ b/packages/aws-cdk-lib/aws-cloudwatch-actions/lib/ec2.ts @@ -21,7 +21,7 @@ export enum Ec2InstanceAction { /** * Reboot the instance */ - REBOOT = 'reboot' + REBOOT = 'reboot', } /** diff --git a/packages/aws-cdk-lib/aws-cloudwatch-actions/lib/ssm.ts b/packages/aws-cdk-lib/aws-cloudwatch-actions/lib/ssm.ts index a8b696556c4de..6a949de57f0f8 100644 --- a/packages/aws-cdk-lib/aws-cloudwatch-actions/lib/ssm.ts +++ b/packages/aws-cdk-lib/aws-cloudwatch-actions/lib/ssm.ts @@ -21,7 +21,7 @@ export enum OpsItemSeverity { /** * Set the severity to low */ - LOW = '4' + LOW = '4', } /** @@ -47,7 +47,7 @@ export enum OpsItemCategory { /** * Set the category to security */ - SECURITY = 'Security' + SECURITY = 'Security', } /** diff --git a/packages/aws-cdk-lib/aws-cloudwatch/lib/alarm.ts b/packages/aws-cdk-lib/aws-cloudwatch/lib/alarm.ts index aaecc5475d28c..2c470512a2e81 100644 --- a/packages/aws-cdk-lib/aws-cloudwatch/lib/alarm.ts +++ b/packages/aws-cdk-lib/aws-cloudwatch/lib/alarm.ts @@ -96,7 +96,7 @@ export enum TreatMissingData { /** * The alarm does not consider missing data points when evaluating whether to change state */ - MISSING = 'missing' + MISSING = 'missing', } /** diff --git a/packages/aws-cdk-lib/aws-cloudwatch/lib/graph.ts b/packages/aws-cdk-lib/aws-cloudwatch/lib/graph.ts index 4d1071481c881..bd571611ff3eb 100644 --- a/packages/aws-cdk-lib/aws-cloudwatch/lib/graph.ts +++ b/packages/aws-cdk-lib/aws-cloudwatch/lib/graph.ts @@ -810,7 +810,7 @@ export enum Shading { /** * Add shading below the annotation */ - BELOW = 'below' + BELOW = 'below', } /** @@ -830,7 +830,7 @@ export enum VerticalShading { /** * Add shading after the annotation */ - AFTER = 'after' + AFTER = 'after', } /** @@ -881,7 +881,7 @@ export enum LegendPosition { /** * Add shading below the annotation */ - HIDDEN = 'hidden' + HIDDEN = 'hidden', } function mapAnnotation(yAxis: string): ((x: HorizontalAnnotation) => any) { diff --git a/packages/aws-cdk-lib/aws-cloudwatch/lib/text.ts b/packages/aws-cdk-lib/aws-cloudwatch/lib/text.ts index d273ffa9c94d6..184cef7e27cf9 100644 --- a/packages/aws-cdk-lib/aws-cloudwatch/lib/text.ts +++ b/packages/aws-cdk-lib/aws-cloudwatch/lib/text.ts @@ -11,7 +11,7 @@ export enum TextWidgetBackground { /** * Transparent background */ - TRANSPARENT = 'transparent' + TRANSPARENT = 'transparent', } /** diff --git a/packages/aws-cdk-lib/aws-codebuild/lib/project.ts b/packages/aws-cdk-lib/aws-codebuild/lib/project.ts index 1252969223e9f..4ccd9c705646d 100644 --- a/packages/aws-cdk-lib/aws-codebuild/lib/project.ts +++ b/packages/aws-cdk-lib/aws-codebuild/lib/project.ts @@ -1593,7 +1593,7 @@ export enum ImagePullPrincipalType { * SERVICE_ROLE specifies that AWS CodeBuild uses the project's role when pulling the image. * The role will be granted pull permissions on the ECR repository hosting the image. */ - SERVICE_ROLE = 'SERVICE_ROLE' + SERVICE_ROLE = 'SERVICE_ROLE', } export interface BuildEnvironment { diff --git a/packages/aws-cdk-lib/aws-codecommit/lib/repository.ts b/packages/aws-cdk-lib/aws-codecommit/lib/repository.ts index 3bbdf737877a8..873f32e719aaa 100644 --- a/packages/aws-cdk-lib/aws-codecommit/lib/repository.ts +++ b/packages/aws-cdk-lib/aws-codecommit/lib/repository.ts @@ -645,7 +645,7 @@ export enum RepositoryEventTrigger { ALL = 'all', UPDATE_REF = 'updateReference', CREATE_REF = 'createReference', - DELETE_REF = 'deleteReference' + DELETE_REF = 'deleteReference', } /** diff --git a/packages/aws-cdk-lib/aws-codedeploy/lib/base-deployment-config.ts b/packages/aws-cdk-lib/aws-codedeploy/lib/base-deployment-config.ts index d8657c5dac096..73acefeebd238 100644 --- a/packages/aws-cdk-lib/aws-codedeploy/lib/base-deployment-config.ts +++ b/packages/aws-cdk-lib/aws-codedeploy/lib/base-deployment-config.ts @@ -51,7 +51,7 @@ export enum ComputePlatform { /** * The deployment will target an ECS server */ - ECS = 'ECS' + ECS = 'ECS', } /** diff --git a/packages/aws-cdk-lib/aws-codedeploy/lib/lambda/custom-deployment-config.ts b/packages/aws-cdk-lib/aws-codedeploy/lib/lambda/custom-deployment-config.ts index 4cb9a57628a60..5e695c4a70ec7 100644 --- a/packages/aws-cdk-lib/aws-codedeploy/lib/lambda/custom-deployment-config.ts +++ b/packages/aws-cdk-lib/aws-codedeploy/lib/lambda/custom-deployment-config.ts @@ -19,7 +19,7 @@ export enum CustomLambdaDeploymentConfigType { * Linear deployment type * @deprecated Use `LambdaDeploymentConfig` */ - LINEAR = 'Linear' + LINEAR = 'Linear', } /** diff --git a/packages/aws-cdk-lib/aws-codedeploy/lib/private/utils.ts b/packages/aws-cdk-lib/aws-codedeploy/lib/private/utils.ts index f424f5775d506..f1c3f0fb844b0 100644 --- a/packages/aws-cdk-lib/aws-codedeploy/lib/private/utils.ts +++ b/packages/aws-cdk-lib/aws-codedeploy/lib/private/utils.ts @@ -64,7 +64,7 @@ export function deploymentConfig(name: string): IBaseDeploymentConfig & IPredefi enum AutoRollbackEvent { DEPLOYMENT_FAILURE = 'DEPLOYMENT_FAILURE', DEPLOYMENT_STOP_ON_ALARM = 'DEPLOYMENT_STOP_ON_ALARM', - DEPLOYMENT_STOP_ON_REQUEST = 'DEPLOYMENT_STOP_ON_REQUEST' + DEPLOYMENT_STOP_ON_REQUEST = 'DEPLOYMENT_STOP_ON_REQUEST', } export function renderAutoRollbackConfiguration(alarms: cloudwatch.IAlarm[], autoRollbackConfig: AutoRollbackConfig = {}): diff --git a/packages/aws-cdk-lib/aws-codedeploy/lib/server/load-balancer.ts b/packages/aws-cdk-lib/aws-codedeploy/lib/server/load-balancer.ts index e7d336f1d4c30..077f4c1f6dbfb 100644 --- a/packages/aws-cdk-lib/aws-codedeploy/lib/server/load-balancer.ts +++ b/packages/aws-cdk-lib/aws-codedeploy/lib/server/load-balancer.ts @@ -13,7 +13,7 @@ export enum LoadBalancerGeneration { /** * The second generation (ALB and NLB). */ - SECOND = 1 + SECOND = 1, } /** diff --git a/packages/aws-cdk-lib/aws-codepipeline-actions/lib/cloudformation/stackset-types.ts b/packages/aws-cdk-lib/aws-codepipeline-actions/lib/cloudformation/stackset-types.ts index 3493c71cc99f9..3c9ba545c9667 100644 --- a/packages/aws-cdk-lib/aws-codepipeline-actions/lib/cloudformation/stackset-types.ts +++ b/packages/aws-cdk-lib/aws-codepipeline-actions/lib/cloudformation/stackset-types.ts @@ -466,7 +466,7 @@ export enum StackSetOrganizationsAutoDeployment { /** * Stack resources are retained when an account is removed from a target organization or OU. */ - ENABLED_WITH_STACK_RETENTION = 'EnabledWithStackRetention' + ENABLED_WITH_STACK_RETENTION = 'EnabledWithStackRetention', } /** diff --git a/packages/aws-cdk-lib/aws-codepipeline-actions/lib/codebuild/build-action.ts b/packages/aws-cdk-lib/aws-codepipeline-actions/lib/codebuild/build-action.ts index a2e7dfe51c67c..98612638cb604 100644 --- a/packages/aws-cdk-lib/aws-codepipeline-actions/lib/codebuild/build-action.ts +++ b/packages/aws-cdk-lib/aws-codepipeline-actions/lib/codebuild/build-action.ts @@ -22,7 +22,7 @@ export enum CodeBuildActionType { /** * The action will have the Test Category. */ - TEST + TEST, } /** diff --git a/packages/aws-cdk-lib/aws-codepipeline-actions/lib/jenkins/jenkins-action.ts b/packages/aws-cdk-lib/aws-codepipeline-actions/lib/jenkins/jenkins-action.ts index c9ff8e61cc24e..af495f6bb0c4f 100644 --- a/packages/aws-cdk-lib/aws-codepipeline-actions/lib/jenkins/jenkins-action.ts +++ b/packages/aws-cdk-lib/aws-codepipeline-actions/lib/jenkins/jenkins-action.ts @@ -18,7 +18,7 @@ export enum JenkinsActionType { /** * The Action will have the Test Category. */ - TEST + TEST, } /** diff --git a/packages/aws-cdk-lib/aws-codepipeline/lib/action.ts b/packages/aws-cdk-lib/aws-codepipeline/lib/action.ts index d390ed0ecf30d..765fdaafaf794 100644 --- a/packages/aws-cdk-lib/aws-codepipeline/lib/action.ts +++ b/packages/aws-cdk-lib/aws-codepipeline/lib/action.ts @@ -12,7 +12,7 @@ export enum ActionCategory { TEST = 'Test', APPROVAL = 'Approval', DEPLOY = 'Deploy', - INVOKE = 'Invoke' + INVOKE = 'Invoke', } /** diff --git a/packages/aws-cdk-lib/aws-cognito/lib/user-pool-idps/oidc.ts b/packages/aws-cdk-lib/aws-cognito/lib/user-pool-idps/oidc.ts index d3018d4584514..6be1fb7b3680d 100644 --- a/packages/aws-cdk-lib/aws-cognito/lib/user-pool-idps/oidc.ts +++ b/packages/aws-cdk-lib/aws-cognito/lib/user-pool-idps/oidc.ts @@ -94,7 +94,7 @@ export enum OidcAttributeRequestMethod { /** GET */ GET = 'GET', /** POST */ - POST = 'POST' + POST = 'POST', } /** diff --git a/packages/aws-cdk-lib/aws-cognito/lib/user-pool.ts b/packages/aws-cdk-lib/aws-cognito/lib/user-pool.ts index dff7b9651fff5..f3d5756f03388 100644 --- a/packages/aws-cdk-lib/aws-cognito/lib/user-pool.ts +++ b/packages/aws-cdk-lib/aws-cognito/lib/user-pool.ts @@ -536,7 +536,7 @@ export enum AdvancedSecurityMode { /** gather metrics on detected risks without taking action. Metrics are published to Amazon CloudWatch */ AUDIT = 'AUDIT', /** Advanced security mode is disabled */ - OFF = 'OFF' + OFF = 'OFF', } /** diff --git a/packages/aws-cdk-lib/aws-config/lib/rule.ts b/packages/aws-cdk-lib/aws-config/lib/rule.ts index 469e12db35501..63b1090a13206 100644 --- a/packages/aws-cdk-lib/aws-config/lib/rule.ts +++ b/packages/aws-cdk-lib/aws-config/lib/rule.ts @@ -181,7 +181,7 @@ export enum MaximumExecutionFrequency { /** * 24 hours. */ - TWENTY_FOUR_HOURS = 'TwentyFour_Hours' + TWENTY_FOUR_HOURS = 'TwentyFour_Hours', } /** diff --git a/packages/aws-cdk-lib/aws-dynamodb/lib/shared.ts b/packages/aws-cdk-lib/aws-dynamodb/lib/shared.ts index 8d66e8b85ea17..1955ef7fccd35 100644 --- a/packages/aws-cdk-lib/aws-dynamodb/lib/shared.ts +++ b/packages/aws-cdk-lib/aws-dynamodb/lib/shared.ts @@ -142,7 +142,7 @@ export enum ProjectionType { /** * All of the table attributes are projected into the index. */ - ALL = 'ALL' + ALL = 'ALL', } /** @@ -215,7 +215,7 @@ export enum StreamViewType { /** * Only the key attributes of the modified item are written to the stream. */ - KEYS_ONLY = 'KEYS_ONLY' + KEYS_ONLY = 'KEYS_ONLY', } /** diff --git a/packages/aws-cdk-lib/aws-ec2/lib/key-pair.ts b/packages/aws-cdk-lib/aws-ec2/lib/key-pair.ts index 0eaf06497a1b7..e597a53dfb7a6 100644 --- a/packages/aws-cdk-lib/aws-ec2/lib/key-pair.ts +++ b/packages/aws-cdk-lib/aws-ec2/lib/key-pair.ts @@ -33,7 +33,7 @@ export enum KeyPairType { * * Note that ED25519 keys are not supported for Windows instances. */ - ED25519 = 'ed25519' + ED25519 = 'ed25519', } /** diff --git a/packages/aws-cdk-lib/aws-ec2/lib/vpc-endpoint.ts b/packages/aws-cdk-lib/aws-ec2/lib/vpc-endpoint.ts index 2e63e543e471b..cd75d2783a6a9 100644 --- a/packages/aws-cdk-lib/aws-ec2/lib/vpc-endpoint.ts +++ b/packages/aws-cdk-lib/aws-ec2/lib/vpc-endpoint.ts @@ -73,7 +73,7 @@ export enum VpcEndpointType { * A gateway endpoint is a gateway that is a target for a specified route in * your route table, used for traffic destined to a supported AWS service. */ - GATEWAY = 'Gateway' + GATEWAY = 'Gateway', } /** diff --git a/packages/aws-cdk-lib/aws-ec2/lib/vpc-flow-logs.ts b/packages/aws-cdk-lib/aws-ec2/lib/vpc-flow-logs.ts index 5be2154da6fd3..94a7e5f370fda 100644 --- a/packages/aws-cdk-lib/aws-ec2/lib/vpc-flow-logs.ts +++ b/packages/aws-cdk-lib/aws-ec2/lib/vpc-flow-logs.ts @@ -41,7 +41,7 @@ export enum FlowLogTrafficType { /** * Only log rejects */ - REJECT = 'REJECT' + REJECT = 'REJECT', } /** diff --git a/packages/aws-cdk-lib/aws-ec2/lib/vpc.ts b/packages/aws-cdk-lib/aws-ec2/lib/vpc.ts index 9758d620068e4..ddf7623d7be9b 100644 --- a/packages/aws-cdk-lib/aws-ec2/lib/vpc.ts +++ b/packages/aws-cdk-lib/aws-ec2/lib/vpc.ts @@ -278,7 +278,7 @@ export enum SubnetType { * * Public subnets route outbound traffic via an Internet Gateway. */ - PUBLIC = 'Public' + PUBLIC = 'Public', } /** @@ -1151,7 +1151,7 @@ export enum DefaultInstanceTenancy { /** * Any instance launched into the VPC automatically has dedicated tenancy, unless you launch it with the default tenancy. */ - DEDICATED = 'dedicated' + DEDICATED = 'dedicated', } /** diff --git a/packages/aws-cdk-lib/aws-ec2/lib/vpn.ts b/packages/aws-cdk-lib/aws-ec2/lib/vpn.ts index 34e18cbc39015..c25b4f9e02819 100644 --- a/packages/aws-cdk-lib/aws-ec2/lib/vpn.ts +++ b/packages/aws-cdk-lib/aws-ec2/lib/vpn.ts @@ -153,7 +153,7 @@ export enum VpnConnectionType { * Dummy member * TODO: remove once https://github.com/aws/jsii/issues/231 is fixed */ - DUMMY = 'dummy' + DUMMY = 'dummy', } /** diff --git a/packages/aws-cdk-lib/aws-ecs-patterns/lib/base/application-load-balanced-service-base.ts b/packages/aws-cdk-lib/aws-ecs-patterns/lib/base/application-load-balanced-service-base.ts index 7e18f4768b61c..626f35bff4150 100644 --- a/packages/aws-cdk-lib/aws-ecs-patterns/lib/base/application-load-balanced-service-base.ts +++ b/packages/aws-cdk-lib/aws-ecs-patterns/lib/base/application-load-balanced-service-base.ts @@ -30,7 +30,7 @@ export enum ApplicationLoadBalancedServiceRecordType { /** * Do not create any DNS records */ - NONE + NONE, } /** diff --git a/packages/aws-cdk-lib/aws-ecs-patterns/lib/base/network-load-balanced-service-base.ts b/packages/aws-cdk-lib/aws-ecs-patterns/lib/base/network-load-balanced-service-base.ts index 2efac59c20ae6..45f58dd517a12 100644 --- a/packages/aws-cdk-lib/aws-ecs-patterns/lib/base/network-load-balanced-service-base.ts +++ b/packages/aws-cdk-lib/aws-ecs-patterns/lib/base/network-load-balanced-service-base.ts @@ -25,7 +25,7 @@ export enum NetworkLoadBalancedServiceRecordType { /** * Do not create any DNS records */ - NONE + NONE, } /** diff --git a/packages/aws-cdk-lib/aws-ecs/lib/base/base-service.ts b/packages/aws-cdk-lib/aws-ecs/lib/base/base-service.ts index e08f500cc31e5..e03a163e4a0a9 100644 --- a/packages/aws-cdk-lib/aws-ecs/lib/base/base-service.ts +++ b/packages/aws-cdk-lib/aws-ecs/lib/base/base-service.ts @@ -1631,7 +1631,7 @@ export enum LaunchType { /** * The service will be launched using the EXTERNAL launch type */ - EXTERNAL = 'EXTERNAL' + EXTERNAL = 'EXTERNAL', } /** @@ -1652,7 +1652,7 @@ export enum DeploymentControllerType { /** * The external (EXTERNAL) deployment type enables you to use any third-party deployment controller */ - EXTERNAL = 'EXTERNAL' + EXTERNAL = 'EXTERNAL', } /** @@ -1672,7 +1672,7 @@ export enum PropagatedTagSource { /** * Do not propagate */ - NONE = 'NONE' + NONE = 'NONE', } /** diff --git a/packages/aws-cdk-lib/aws-ecs/lib/base/task-definition.ts b/packages/aws-cdk-lib/aws-ecs/lib/base/task-definition.ts index cb2823ffb24ba..d2e38bf85f86b 100644 --- a/packages/aws-cdk-lib/aws-ecs/lib/base/task-definition.ts +++ b/packages/aws-cdk-lib/aws-ecs/lib/base/task-definition.ts @@ -922,7 +922,7 @@ export enum NetworkMode { * This is the only supported network mode for Windows containers. For more information, see * [Task Definition Parameters](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#network_mode). */ - NAT = 'nat' + NAT = 'nat', } /** @@ -1206,7 +1206,7 @@ export enum Scope { /** * Docker volumes that are scoped as shared persist after the task stops. */ - SHARED = 'shared' + SHARED = 'shared', } /** @@ -1231,7 +1231,7 @@ export enum Compatibility { /** * The task should specify the External launch type. */ - EXTERNAL + EXTERNAL, } /** diff --git a/packages/aws-cdk-lib/aws-ecs/lib/cluster.ts b/packages/aws-cdk-lib/aws-ecs/lib/cluster.ts index cd29458525efe..d7fde1e319ef5 100644 --- a/packages/aws-cdk-lib/aws-ecs/lib/cluster.ts +++ b/packages/aws-cdk-lib/aws-ecs/lib/cluster.ts @@ -89,7 +89,7 @@ export enum MachineImageType { /** * Bottlerocket AMI */ - BOTTLEROCKET + BOTTLEROCKET, } /** diff --git a/packages/aws-cdk-lib/aws-ecs/lib/container-definition.ts b/packages/aws-cdk-lib/aws-ecs/lib/container-definition.ts index 1d4e3d995dc76..ee451480c4798 100644 --- a/packages/aws-cdk-lib/aws-ecs/lib/container-definition.ts +++ b/packages/aws-cdk-lib/aws-ecs/lib/container-definition.ts @@ -1019,7 +1019,7 @@ export enum UlimitName { RTPRIO = 'rtprio', RTTIME = 'rttime', SIGPENDING = 'sigpending', - STACK = 'stack' + STACK = 'stack', } function renderUlimit(ulimit: Ulimit): CfnTaskDefinition.UlimitProperty { diff --git a/packages/aws-cdk-lib/aws-ecs/lib/linux-parameters.ts b/packages/aws-cdk-lib/aws-ecs/lib/linux-parameters.ts index 1e4f67d79aa33..47d5c3ced1987 100644 --- a/packages/aws-cdk-lib/aws-ecs/lib/linux-parameters.ts +++ b/packages/aws-cdk-lib/aws-ecs/lib/linux-parameters.ts @@ -277,7 +277,7 @@ export enum Capability { SYS_TIME = 'SYS_TIME', SYS_TTY_CONFIG = 'SYS_TTY_CONFIG', SYSLOG = 'SYSLOG', - WAKE_ALARM = 'WAKE_ALARM' + WAKE_ALARM = 'WAKE_ALARM', } /** @@ -342,5 +342,5 @@ export enum TmpfsMountOption { GID = 'gid', NR_INODES = 'nr_inodes', NR_BLOCKS = 'nr_blocks', - MPOL = 'mpol' + MPOL = 'mpol', } diff --git a/packages/aws-cdk-lib/aws-ecs/lib/log-drivers/aws-log-driver.ts b/packages/aws-cdk-lib/aws-ecs/lib/log-drivers/aws-log-driver.ts index f761e6d69b51d..9d0ff4e970a0a 100644 --- a/packages/aws-cdk-lib/aws-ecs/lib/log-drivers/aws-log-driver.ts +++ b/packages/aws-cdk-lib/aws-ecs/lib/log-drivers/aws-log-driver.ts @@ -20,7 +20,7 @@ export enum AwsLogDriverMode { * The non-blocking message delivery mode prevents applications from blocking due to logging back pressure. * Applications are likely to fail in unexpected ways when STDERR or STDOUT streams block. */ - NON_BLOCKING = 'non-blocking' + NON_BLOCKING = 'non-blocking', } /** diff --git a/packages/aws-cdk-lib/aws-ecs/lib/log-drivers/gelf-log-driver.ts b/packages/aws-cdk-lib/aws-ecs/lib/log-drivers/gelf-log-driver.ts index 8a9677aafc576..83251a6b75079 100644 --- a/packages/aws-cdk-lib/aws-ecs/lib/log-drivers/gelf-log-driver.ts +++ b/packages/aws-cdk-lib/aws-ecs/lib/log-drivers/gelf-log-driver.ts @@ -11,7 +11,7 @@ import { ContainerDefinition } from '../container-definition'; export enum GelfCompressionType { GZIP = 'gzip', ZLIB = 'zlib', - NONE = 'none' + NONE = 'none', } /** diff --git a/packages/aws-cdk-lib/aws-ecs/lib/log-drivers/splunk-log-driver.ts b/packages/aws-cdk-lib/aws-ecs/lib/log-drivers/splunk-log-driver.ts index f2b18cea3c30f..074427dec0464 100644 --- a/packages/aws-cdk-lib/aws-ecs/lib/log-drivers/splunk-log-driver.ts +++ b/packages/aws-cdk-lib/aws-ecs/lib/log-drivers/splunk-log-driver.ts @@ -11,7 +11,7 @@ import { ContainerDefinition, Secret } from '../container-definition'; export enum SplunkLogFormat { INLINE = 'inline', JSON = 'json', - RAW = 'raw' + RAW = 'raw', } /** diff --git a/packages/aws-cdk-lib/aws-efs/lib/efs-file-system.ts b/packages/aws-cdk-lib/aws-efs/lib/efs-file-system.ts index 430f3461185f3..6014e742a7e07 100644 --- a/packages/aws-cdk-lib/aws-efs/lib/efs-file-system.ts +++ b/packages/aws-cdk-lib/aws-efs/lib/efs-file-system.ts @@ -71,7 +71,7 @@ export enum OutOfInfrequentAccessPolicy { /** * After 1 access */ - AFTER_1_ACCESS = 'AFTER_1_ACCESS' + AFTER_1_ACCESS = 'AFTER_1_ACCESS', } /** @@ -94,7 +94,7 @@ export enum PerformanceMode { * Highly parallelized applications and workloads, such as big data analysis, * media processing, and genomics analysis, can benefit from this mode. */ - MAX_IO = 'maxIO' + MAX_IO = 'maxIO', } /** @@ -116,7 +116,7 @@ export enum ThroughputMode { /** * This mode scales the throughput automatically regardless of file system size. */ - ELASTIC = 'elastic' + ELASTIC = 'elastic', } /** @@ -326,7 +326,7 @@ export interface FileSystemAttributes { enum ClientAction { MOUNT = 'elasticfilesystem:ClientMount', WRITE = 'elasticfilesystem:ClientWrite', - ROOT_ACCESS = 'elasticfilesystem:ClientRootAccess' + ROOT_ACCESS = 'elasticfilesystem:ClientRootAccess', } abstract class FileSystemBase extends Resource implements IFileSystem { diff --git a/packages/aws-cdk-lib/aws-eks/lib/alb-controller.ts b/packages/aws-cdk-lib/aws-eks/lib/alb-controller.ts index 29c096f7ad0dc..5dfe0ab11dbcf 100644 --- a/packages/aws-cdk-lib/aws-eks/lib/alb-controller.ts +++ b/packages/aws-cdk-lib/aws-eks/lib/alb-controller.ts @@ -206,7 +206,7 @@ export enum AlbScheme { * An internet-facing load balancer has a publicly resolvable DNS name, so it can route requests from clients over the internet * to the EC2 instances that are registered with the load balancer. */ - INTERNET_FACING = 'internet-facing' + INTERNET_FACING = 'internet-facing', } /** diff --git a/packages/aws-cdk-lib/aws-eks/lib/k8s-patch.ts b/packages/aws-cdk-lib/aws-eks/lib/k8s-patch.ts index 3ec0932c31987..07cf071311d3b 100644 --- a/packages/aws-cdk-lib/aws-eks/lib/k8s-patch.ts +++ b/packages/aws-cdk-lib/aws-eks/lib/k8s-patch.ts @@ -59,7 +59,7 @@ export enum PatchType { /** * Strategic merge patch */ - STRATEGIC = 'strategic' + STRATEGIC = 'strategic', } /** diff --git a/packages/aws-cdk-lib/aws-eks/lib/managed-nodegroup.ts b/packages/aws-cdk-lib/aws-eks/lib/managed-nodegroup.ts index fe1896bd7165d..9aee08d143e68 100644 --- a/packages/aws-cdk-lib/aws-eks/lib/managed-nodegroup.ts +++ b/packages/aws-cdk-lib/aws-eks/lib/managed-nodegroup.ts @@ -83,7 +83,7 @@ export enum CapacityType { /** * on-demand instances */ - ON_DEMAND = 'ON_DEMAND' + ON_DEMAND = 'ON_DEMAND', } /** diff --git a/packages/aws-cdk-lib/aws-eks/lib/user-data.ts b/packages/aws-cdk-lib/aws-eks/lib/user-data.ts index 25f748b851b1a..1271ec186903c 100644 --- a/packages/aws-cdk-lib/aws-eks/lib/user-data.ts +++ b/packages/aws-cdk-lib/aws-eks/lib/user-data.ts @@ -86,5 +86,5 @@ export enum LifecycleLabel { /** * spot instances */ - SPOT = 'Ec2Spot' + SPOT = 'Ec2Spot', } diff --git a/packages/aws-cdk-lib/aws-elasticloadbalancing/lib/load-balancer.ts b/packages/aws-cdk-lib/aws-elasticloadbalancing/lib/load-balancer.ts index 7bf17e38cbed4..cf9ee681a7ffd 100644 --- a/packages/aws-cdk-lib/aws-elasticloadbalancing/lib/load-balancer.ts +++ b/packages/aws-cdk-lib/aws-elasticloadbalancing/lib/load-balancer.ts @@ -226,7 +226,7 @@ export enum LoadBalancingProtocol { TCP = 'tcp', SSL = 'ssl', HTTP = 'http', - HTTPS = 'https' + HTTPS = 'https', } /** diff --git a/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/alb/application-listener-rule.ts b/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/alb/application-listener-rule.ts index 47c7fbac64969..f755eadefb2db 100644 --- a/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/alb/application-listener-rule.ts +++ b/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/alb/application-listener-rule.ts @@ -121,7 +121,7 @@ export enum ContentType { TEXT_CSS = 'text/css', TEXT_HTML = 'text/html', APPLICATION_JAVASCRIPT = 'application/javascript', - APPLICATION_JSON = 'application/json' + APPLICATION_JSON = 'application/json', } /** diff --git a/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/alb/application-load-balancer.ts b/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/alb/application-load-balancer.ts index 580fb3e836022..4ddb300b9b92f 100644 --- a/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/alb/application-load-balancer.ts +++ b/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/alb/application-load-balancer.ts @@ -616,7 +616,7 @@ export enum HttpCodeTarget { /** * The number of 5xx response codes from targets */ - TARGET_5XX_COUNT = 'HTTPCode_Target_5XX_Count' + TARGET_5XX_COUNT = 'HTTPCode_Target_5XX_Count', } /** diff --git a/packages/aws-cdk-lib/aws-elasticsearch/lib/domain.ts b/packages/aws-cdk-lib/aws-elasticsearch/lib/domain.ts index 34f6defd52d9b..f85c1c2f9c164 100644 --- a/packages/aws-cdk-lib/aws-elasticsearch/lib/domain.ts +++ b/packages/aws-cdk-lib/aws-elasticsearch/lib/domain.ts @@ -418,7 +418,7 @@ export enum TLSSecurityPolicy { /** Cipher suite TLS 1.0 */ TLS_1_0 = 'Policy-Min-TLS-1-0-2019-07', /** Cipher suite TLS 1.2 */ - TLS_1_2 = 'Policy-Min-TLS-1-2-2019-07' + TLS_1_2 = 'Policy-Min-TLS-1-2-2019-07', } /** diff --git a/packages/aws-cdk-lib/aws-fsx/lib/maintenance-time.ts b/packages/aws-cdk-lib/aws-fsx/lib/maintenance-time.ts index 57c2da79379b4..58c4547090215 100644 --- a/packages/aws-cdk-lib/aws-fsx/lib/maintenance-time.ts +++ b/packages/aws-cdk-lib/aws-fsx/lib/maintenance-time.ts @@ -29,7 +29,7 @@ export enum Weekday { /** * Sunday */ - SUNDAY = '7' + SUNDAY = '7', } /** diff --git a/packages/aws-cdk-lib/aws-iam/lib/access-key.ts b/packages/aws-cdk-lib/aws-iam/lib/access-key.ts index c1efae3912f9d..a02237b947d97 100644 --- a/packages/aws-cdk-lib/aws-iam/lib/access-key.ts +++ b/packages/aws-cdk-lib/aws-iam/lib/access-key.ts @@ -15,7 +15,7 @@ export enum AccessKeyStatus { /** * An inactive access key. An inactive key cannot be used to make API calls. */ - INACTIVE = 'Inactive' + INACTIVE = 'Inactive', } /** diff --git a/packages/aws-cdk-lib/aws-kinesis/lib/stream.ts b/packages/aws-cdk-lib/aws-kinesis/lib/stream.ts index 60681a0ef43df..946be0fdb5ae4 100644 --- a/packages/aws-cdk-lib/aws-kinesis/lib/stream.ts +++ b/packages/aws-cdk-lib/aws-kinesis/lib/stream.ts @@ -883,7 +883,7 @@ export enum StreamEncryption { /** * Server-side encryption with a master key managed by Amazon Kinesis */ - MANAGED = 'MANAGED' + MANAGED = 'MANAGED', } /** @@ -900,5 +900,5 @@ export enum StreamMode { * Specify the on-demand capacity mode. The stream will autoscale and be billed according to the * volume of data ingested and retrieved. */ - ON_DEMAND = 'ON_DEMAND' + ON_DEMAND = 'ON_DEMAND', } diff --git a/packages/aws-cdk-lib/aws-lambda-nodejs/lib/types.ts b/packages/aws-cdk-lib/aws-lambda-nodejs/lib/types.ts index 80a28342f9ab1..7a38788321fe5 100644 --- a/packages/aws-cdk-lib/aws-lambda-nodejs/lib/types.ts +++ b/packages/aws-cdk-lib/aws-lambda-nodejs/lib/types.ts @@ -324,7 +324,7 @@ export enum OutputFormat { * * Requires a running environment that supports `import` and `export` syntax. */ - ESM = 'esm' + ESM = 'esm', } /** @@ -409,7 +409,7 @@ export enum SourceMapMode { /** * Both sourceMap mode - If you want to have the effect of both inline and external simultaneously */ - BOTH = 'both' + BOTH = 'both', } /** @@ -428,5 +428,5 @@ export enum Charset { * * Keep original characters without using escape sequences */ - UTF8 = 'utf8' + UTF8 = 'utf8', } diff --git a/packages/aws-cdk-lib/aws-lambda/lib/runtime.ts b/packages/aws-cdk-lib/aws-lambda/lib/runtime.ts index 0013d67ad2079..69dd0283bc1f8 100644 --- a/packages/aws-cdk-lib/aws-lambda/lib/runtime.ts +++ b/packages/aws-cdk-lib/aws-lambda/lib/runtime.ts @@ -39,7 +39,7 @@ export enum RuntimeFamily { DOTNET_CORE, GO, RUBY, - OTHER + OTHER, } /** diff --git a/packages/aws-cdk-lib/aws-rds/lib/cluster.ts b/packages/aws-cdk-lib/aws-rds/lib/cluster.ts index 5f2f6339dcefa..f0e1380a1a38b 100644 --- a/packages/aws-cdk-lib/aws-rds/lib/cluster.ts +++ b/packages/aws-cdk-lib/aws-rds/lib/cluster.ts @@ -410,7 +410,7 @@ export enum InstanceUpdateBehaviour { * This results in at most one instance being unavailable during the update. * If your cluster consists of more than 1 instance, the downtime periods are limited to the time a primary switch needs. */ - ROLLING = 'ROLLING' + ROLLING = 'ROLLING', } /** diff --git a/packages/aws-cdk-lib/aws-rds/lib/instance.ts b/packages/aws-cdk-lib/aws-rds/lib/instance.ts index e19e53435cdaa..1c67c8329ea90 100644 --- a/packages/aws-cdk-lib/aws-rds/lib/instance.ts +++ b/packages/aws-cdk-lib/aws-rds/lib/instance.ts @@ -269,7 +269,7 @@ export enum LicenseModel { /** * General public license. */ - GENERAL_PUBLIC_LICENSE = 'general-public-license' + GENERAL_PUBLIC_LICENSE = 'general-public-license', } /** @@ -330,7 +330,7 @@ export enum StorageType { * * @see https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS */ - IO1 = 'io1' + IO1 = 'io1', } /** @@ -345,7 +345,7 @@ export enum NetworkType { /** * Dual-stack network type. */ - DUAL = 'DUAL' + DUAL = 'DUAL', } /** diff --git a/packages/aws-cdk-lib/aws-rds/lib/serverless-cluster.ts b/packages/aws-cdk-lib/aws-rds/lib/serverless-cluster.ts index d43d78a6ea415..727045b050113 100644 --- a/packages/aws-cdk-lib/aws-rds/lib/serverless-cluster.ts +++ b/packages/aws-cdk-lib/aws-rds/lib/serverless-cluster.ts @@ -236,7 +236,7 @@ export enum AuroraCapacityUnit { /** 256 Aurora Capacity Units */ ACU_256 = 256, /** 384 Aurora Capacity Units */ - ACU_384 = 384 + ACU_384 = 384, } /** diff --git a/packages/aws-cdk-lib/aws-route53/lib/record-set.ts b/packages/aws-cdk-lib/aws-route53/lib/record-set.ts index 8564aedae843a..f40822be9f77f 100644 --- a/packages/aws-cdk-lib/aws-route53/lib/record-set.ts +++ b/packages/aws-cdk-lib/aws-route53/lib/record-set.ts @@ -125,7 +125,7 @@ export enum RecordType { * * @see https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/ResourceRecordTypes.html#TXTFormat */ - TXT = 'TXT' + TXT = 'TXT', } /** diff --git a/packages/aws-cdk-lib/aws-s3-deployment/lib/bucket-deployment.ts b/packages/aws-cdk-lib/aws-s3-deployment/lib/bucket-deployment.ts index b5a817c6e212a..4c16503b386b1 100644 --- a/packages/aws-cdk-lib/aws-s3-deployment/lib/bucket-deployment.ts +++ b/packages/aws-cdk-lib/aws-s3-deployment/lib/bucket-deployment.ts @@ -792,7 +792,7 @@ export enum ServerSideEncryption { /** * 'aws:kms' */ - AWS_KMS = 'aws:kms' + AWS_KMS = 'aws:kms', } /** @@ -834,7 +834,7 @@ export enum StorageClass { /** * 'DEEP_ARCHIVE' */ - DEEP_ARCHIVE = 'DEEP_ARCHIVE' + DEEP_ARCHIVE = 'DEEP_ARCHIVE', } /** diff --git a/packages/aws-cdk-lib/aws-s3/lib/bucket.ts b/packages/aws-cdk-lib/aws-s3/lib/bucket.ts index 79395bf7c5dd7..f0e6fc157cbd4 100644 --- a/packages/aws-cdk-lib/aws-s3/lib/bucket.ts +++ b/packages/aws-cdk-lib/aws-s3/lib/bucket.ts @@ -1177,7 +1177,7 @@ export enum InventoryFrequency { /** * A report is generated every Sunday (UTC timezone) after the initial report. */ - WEEKLY = 'Weekly' + WEEKLY = 'Weekly', } /** diff --git a/packages/aws-cdk-lib/aws-s3/lib/destination.ts b/packages/aws-cdk-lib/aws-s3/lib/destination.ts index e515d742880e5..3b9f7493e6c54 100644 --- a/packages/aws-cdk-lib/aws-s3/lib/destination.ts +++ b/packages/aws-cdk-lib/aws-s3/lib/destination.ts @@ -42,5 +42,5 @@ export interface BucketNotificationDestinationConfig { export enum BucketNotificationDestinationType { LAMBDA, QUEUE, - TOPIC + TOPIC, } diff --git a/packages/aws-cdk-lib/aws-secretsmanager/lib/secret.ts b/packages/aws-cdk-lib/aws-secretsmanager/lib/secret.ts index 9c73f0fb55545..2749327c68259 100644 --- a/packages/aws-cdk-lib/aws-secretsmanager/lib/secret.ts +++ b/packages/aws-cdk-lib/aws-secretsmanager/lib/secret.ts @@ -779,7 +779,7 @@ export enum AttachmentTargetType { /** * AWS::DocDB::DBCluster */ - DOCDB_DB_CLUSTER = 'AWS::DocDB::DBCluster' + DOCDB_DB_CLUSTER = 'AWS::DocDB::DBCluster', } /** diff --git a/packages/aws-cdk-lib/aws-servicecatalog/lib/common.ts b/packages/aws-cdk-lib/aws-servicecatalog/lib/common.ts index 50a921bac658b..1a2c1b85b34d7 100644 --- a/packages/aws-cdk-lib/aws-servicecatalog/lib/common.ts +++ b/packages/aws-cdk-lib/aws-servicecatalog/lib/common.ts @@ -22,5 +22,5 @@ export enum MessageLanguage { /** * Chinese */ - ZH = 'zh' + ZH = 'zh', } diff --git a/packages/aws-cdk-lib/aws-servicediscovery/lib/service.ts b/packages/aws-cdk-lib/aws-servicediscovery/lib/service.ts index 08314a52ebafc..75ec3f7015373 100644 --- a/packages/aws-cdk-lib/aws-servicediscovery/lib/service.ts +++ b/packages/aws-cdk-lib/aws-servicediscovery/lib/service.ts @@ -431,7 +431,7 @@ export enum DiscoveryType { /** * Instances are discoverable via DNS or API */ - DNS_AND_API = 'DNS_AND_API' + DNS_AND_API = 'DNS_AND_API', } export enum DnsRecordType { diff --git a/packages/aws-cdk-lib/aws-ses/lib/configuration-set-event-destination.ts b/packages/aws-cdk-lib/aws-ses/lib/configuration-set-event-destination.ts index ab70df37f66cb..4dabf57ec4f4f 100644 --- a/packages/aws-cdk-lib/aws-ses/lib/configuration-set-event-destination.ts +++ b/packages/aws-cdk-lib/aws-ses/lib/configuration-set-event-destination.ts @@ -155,7 +155,7 @@ export enum EmailSendingEvent { * The email was successfully delivered, but the recipient updated their subscription * preferences by clicking on an unsubscribe link as part of your subscription management. */ - SUBSCRIPTION = 'subscription' + SUBSCRIPTION = 'subscription', } /** diff --git a/packages/aws-cdk-lib/aws-ses/lib/email-identity.ts b/packages/aws-cdk-lib/aws-ses/lib/email-identity.ts index 10098a9adb971..de41bc5faa4c6 100644 --- a/packages/aws-cdk-lib/aws-ses/lib/email-identity.ts +++ b/packages/aws-cdk-lib/aws-ses/lib/email-identity.ts @@ -307,7 +307,7 @@ export enum EasyDkimSigningKeyLength { /** * RSA 2048-bit */ - RSA_2048_BIT = 'RSA_2048_BIT' + RSA_2048_BIT = 'RSA_2048_BIT', } /** diff --git a/packages/aws-cdk-lib/aws-ses/lib/receipt-filter.ts b/packages/aws-cdk-lib/aws-ses/lib/receipt-filter.ts index 90696c1c85bc2..b503400cf5b53 100644 --- a/packages/aws-cdk-lib/aws-ses/lib/receipt-filter.ts +++ b/packages/aws-cdk-lib/aws-ses/lib/receipt-filter.ts @@ -14,7 +14,7 @@ export enum ReceiptFilterPolicy { /** * Block the ip address or range. */ - BLOCK = 'Block' + BLOCK = 'Block', } /** diff --git a/packages/aws-cdk-lib/aws-ses/lib/receipt-rule.ts b/packages/aws-cdk-lib/aws-ses/lib/receipt-rule.ts index 28854d2e7e655..ae662eb3f18d4 100644 --- a/packages/aws-cdk-lib/aws-ses/lib/receipt-rule.ts +++ b/packages/aws-cdk-lib/aws-ses/lib/receipt-rule.ts @@ -29,7 +29,7 @@ export enum TlsPolicy { /** * Bounce emails that are not received over TLS. */ - REQUIRE = 'Require' + REQUIRE = 'Require', } /** diff --git a/packages/aws-cdk-lib/aws-sns/lib/subscription.ts b/packages/aws-cdk-lib/aws-sns/lib/subscription.ts index 7701a5dd75def..d03b1d942df28 100644 --- a/packages/aws-cdk-lib/aws-sns/lib/subscription.ts +++ b/packages/aws-cdk-lib/aws-sns/lib/subscription.ts @@ -233,7 +233,7 @@ export enum SubscriptionProtocol { /** * Notifications put records into a firehose delivery stream. */ - FIREHOSE = 'firehose' + FIREHOSE = 'firehose', } function buildFilterPolicyWithMessageBody( diff --git a/packages/aws-cdk-lib/aws-sqs/lib/queue-base.ts b/packages/aws-cdk-lib/aws-sqs/lib/queue-base.ts index 8e3e2f23281b4..3cdd250759e83 100644 --- a/packages/aws-cdk-lib/aws-sqs/lib/queue-base.ts +++ b/packages/aws-cdk-lib/aws-sqs/lib/queue-base.ts @@ -339,5 +339,5 @@ export enum QueueEncryption { * To learn more about SSE-SQS on Amazon SQS, please visit the * [Amazon SQS documentation](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html). */ - SQS_MANAGED = 'SQS_MANAGED' + SQS_MANAGED = 'SQS_MANAGED', } \ No newline at end of file diff --git a/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/apigateway/base-types.ts b/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/apigateway/base-types.ts index 2d1e916bdb41b..2a6069fd789b8 100644 --- a/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/apigateway/base-types.ts +++ b/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/apigateway/base-types.ts @@ -21,7 +21,7 @@ export enum HttpMethod { HEAD = 'HEAD', /** Return data describing what other methods and operations the server supports */ - OPTIONS = 'OPTIONS' + OPTIONS = 'OPTIONS', } /** diff --git a/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/athena/start-query-execution.ts b/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/athena/start-query-execution.ts index adacda49e7c32..c3656166d03ad 100644 --- a/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/athena/start-query-execution.ts +++ b/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/athena/start-query-execution.ts @@ -308,7 +308,7 @@ export enum EncryptionOption { * * @see https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html */ - CLIENT_SIDE_KMS = 'CSE_KMS' + CLIENT_SIDE_KMS = 'CSE_KMS', } /** diff --git a/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/eks/call.ts b/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/eks/call.ts index fa3d423160046..072ad2d0d899d 100644 --- a/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/eks/call.ts +++ b/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/eks/call.ts @@ -131,5 +131,5 @@ export enum HttpMethods { /** * Retrieve data from a server at the specified resource without the response body */ - HEAD = 'HEAD' + HEAD = 'HEAD', } diff --git a/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/emr/emr-add-step.ts b/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/emr/emr-add-step.ts index 4be2b7bbd9c3f..e1b7b0af97775 100644 --- a/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/emr/emr-add-step.ts +++ b/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/emr/emr-add-step.ts @@ -27,7 +27,7 @@ export enum ActionOnFailure { /** * Continue to the next Step */ - CONTINUE = 'CONTINUE' + CONTINUE = 'CONTINUE', } /** diff --git a/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/emrcontainers/create-virtual-cluster.ts b/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/emrcontainers/create-virtual-cluster.ts index c91320641104e..7b8cf58e05d3c 100644 --- a/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/emrcontainers/create-virtual-cluster.ts +++ b/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/emrcontainers/create-virtual-cluster.ts @@ -13,7 +13,7 @@ enum ContainerProviderTypes { /** * Supported container provider type for a EKS Cluster */ - EKS = 'EKS' + EKS = 'EKS', } /** diff --git a/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/lambda/invoke.ts b/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/lambda/invoke.ts index d1582423fef49..d1578308b7c8c 100644 --- a/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/lambda/invoke.ts +++ b/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/lambda/invoke.ts @@ -186,5 +186,5 @@ export enum LambdaInvocationType { /** * Validate parameter values and verify that the user or role has permission to invoke the function. */ - DRY_RUN = 'DryRun' + DRY_RUN = 'DryRun', } diff --git a/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/lambda/run-lambda-task.ts b/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/lambda/run-lambda-task.ts index 60326a61142cd..3e1ee9bff87bc 100644 --- a/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/lambda/run-lambda-task.ts +++ b/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/lambda/run-lambda-task.ts @@ -128,5 +128,5 @@ export enum InvocationType { /** * TValidate parameter values and verify that the user or role has permission to invoke the function. */ - DRY_RUN = 'DryRun' + DRY_RUN = 'DryRun', } diff --git a/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/sagemaker/base-types.ts b/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/sagemaker/base-types.ts index 6fe886c8c7846..478c6f4390f71 100644 --- a/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/sagemaker/base-types.ts +++ b/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/sagemaker/base-types.ts @@ -416,7 +416,7 @@ export enum S3DataType { /** * Augmented Manifest File Data Type */ - AUGMENTED_MANIFEST_FILE = 'AugmentedManifestFile' + AUGMENTED_MANIFEST_FILE = 'AugmentedManifestFile', } /** @@ -432,7 +432,7 @@ export enum S3DataDistributionType { /** * Sharded By S3 Key Data Distribution Type */ - SHARDED_BY_S3_KEY = 'ShardedByS3Key' + SHARDED_BY_S3_KEY = 'ShardedByS3Key', } /** @@ -448,7 +448,7 @@ export enum RecordWrapperType { /** * RecordIO record wrapper type */ - RECORD_IO = 'RecordIO' + RECORD_IO = 'RecordIO', } /** @@ -469,7 +469,7 @@ export enum InputMode { /** * FastFile mode. */ - FAST_FILE = 'FastFile' + FAST_FILE = 'FastFile', } /** @@ -485,7 +485,7 @@ export enum CompressionType { /** * Gzip compression type */ - GZIP = 'Gzip' + GZIP = 'Gzip', } // @@ -853,7 +853,7 @@ export enum BatchStrategy { /** * Use a single record when making an invocation request. */ - SINGLE_RECORD = 'SingleRecord' + SINGLE_RECORD = 'SingleRecord', } /** @@ -880,7 +880,7 @@ export enum SplitType { /** * Split using TensorFlow TFRecord format. */ - TF_RECORD = 'TFRecord' + TF_RECORD = 'TFRecord', } /** @@ -897,7 +897,7 @@ export enum AssembleWith { /** * Add a newline character at the end of every transformed record. */ - LINE = 'Line' + LINE = 'Line', } diff --git a/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/sns/publish.ts b/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/sns/publish.ts index 63ec97c6efee9..9190991518eed 100644 --- a/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/sns/publish.ts +++ b/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/sns/publish.ts @@ -35,7 +35,7 @@ export enum MessageAttributeDataType { * * @see https://docs.aws.amazon.com/sns/latest/dg/sns-message-attributes.html#SNSMessageAttributes.DataTypes */ - BINARY = 'Binary' + BINARY = 'Binary', } /** diff --git a/packages/aws-cdk-lib/aws-stepfunctions/lib/state-machine.ts b/packages/aws-cdk-lib/aws-stepfunctions/lib/state-machine.ts index d3670e9775ec6..253ef07c63444 100644 --- a/packages/aws-cdk-lib/aws-stepfunctions/lib/state-machine.ts +++ b/packages/aws-cdk-lib/aws-stepfunctions/lib/state-machine.ts @@ -25,7 +25,7 @@ export enum StateMachineType { /** * Standard Workflows are ideal for long-running, durable, and auditable workflows. */ - STANDARD = 'STANDARD' + STANDARD = 'STANDARD', } /** @@ -51,7 +51,7 @@ export enum LogLevel { /** * Log fatal errors */ - FATAL = 'FATAL' + FATAL = 'FATAL', } /** diff --git a/packages/aws-cdk-lib/aws-stepfunctions/lib/states/private/state-type.ts b/packages/aws-cdk-lib/aws-stepfunctions/lib/states/private/state-type.ts index a82047a93d4a6..7aa5a93829507 100644 --- a/packages/aws-cdk-lib/aws-stepfunctions/lib/states/private/state-type.ts +++ b/packages/aws-cdk-lib/aws-stepfunctions/lib/states/private/state-type.ts @@ -9,5 +9,5 @@ export enum StateType { SUCCEED = 'Succeed', FAIL = 'Fail', PARALLEL = 'Parallel', - MAP = 'Map' + MAP = 'Map', } diff --git a/packages/aws-cdk-lib/aws-stepfunctions/lib/states/task-base.ts b/packages/aws-cdk-lib/aws-stepfunctions/lib/states/task-base.ts index 37db0828ab8d0..ff33ddef0f82a 100644 --- a/packages/aws-cdk-lib/aws-stepfunctions/lib/states/task-base.ts +++ b/packages/aws-cdk-lib/aws-stepfunctions/lib/states/task-base.ts @@ -407,7 +407,7 @@ export enum IntegrationPattern { * * @see https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-wait-token */ - WAIT_FOR_TASK_TOKEN = 'WAIT_FOR_TASK_TOKEN' + WAIT_FOR_TASK_TOKEN = 'WAIT_FOR_TASK_TOKEN', } /** diff --git a/packages/aws-cdk-lib/aws-stepfunctions/lib/step-functions-task.ts b/packages/aws-cdk-lib/aws-stepfunctions/lib/step-functions-task.ts index 7ce4b0512bc5f..e6a5da8fd201d 100644 --- a/packages/aws-cdk-lib/aws-stepfunctions/lib/step-functions-task.ts +++ b/packages/aws-cdk-lib/aws-stepfunctions/lib/step-functions-task.ts @@ -104,5 +104,5 @@ export enum ServiceIntegrationPattern { /** * Call a service with a task token and wait until that token is returned by SendTaskSuccess/SendTaskFailure with payload. */ - WAIT_FOR_TASK_TOKEN = 'WAIT_FOR_TASK_TOKEN' + WAIT_FOR_TASK_TOKEN = 'WAIT_FOR_TASK_TOKEN', } diff --git a/packages/aws-cdk-lib/cloud-assembly-schema/lib/cloud-assembly/metadata-schema.ts b/packages/aws-cdk-lib/cloud-assembly-schema/lib/cloud-assembly/metadata-schema.ts index 35b619ddaa780..41615e7d9622e 100644 --- a/packages/aws-cdk-lib/cloud-assembly-schema/lib/cloud-assembly/metadata-schema.ts +++ b/packages/aws-cdk-lib/cloud-assembly-schema/lib/cloud-assembly/metadata-schema.ts @@ -297,7 +297,7 @@ export enum ArtifactMetadataEntryType { /** * Represents tags of a stack. */ - STACK_TAGS = 'aws:cdk:stack-tags' + STACK_TAGS = 'aws:cdk:stack-tags', } /** diff --git a/packages/aws-cdk-lib/cloud-assembly-schema/lib/integ-tests/commands/common.ts b/packages/aws-cdk-lib/cloud-assembly-schema/lib/integ-tests/commands/common.ts index 8bfbad998ea5d..393307c260e5b 100644 --- a/packages/aws-cdk-lib/cloud-assembly-schema/lib/integ-tests/commands/common.ts +++ b/packages/aws-cdk-lib/cloud-assembly-schema/lib/integ-tests/commands/common.ts @@ -15,7 +15,7 @@ export enum RequireApproval { /** * Only prompt for approval if there are security related changes */ - BROADENING = 'broadening' + BROADENING = 'broadening', } /** diff --git a/packages/aws-cdk-lib/core/lib/assets.ts b/packages/aws-cdk-lib/core/lib/assets.ts index d1fc760ad0eba..7d4c3139b2380 100644 --- a/packages/aws-cdk-lib/core/lib/assets.ts +++ b/packages/aws-cdk-lib/core/lib/assets.ts @@ -309,7 +309,7 @@ export enum FileAssetPackaging { * The asset source path points to a single file, which should be uploaded * to Amazon S3. */ - FILE = 'file' + FILE = 'file', } /** diff --git a/packages/aws-cdk-lib/core/lib/cfn-capabilities.ts b/packages/aws-cdk-lib/core/lib/cfn-capabilities.ts index 4be4c01697624..1a9f1184b6abd 100644 --- a/packages/aws-cdk-lib/core/lib/cfn-capabilities.ts +++ b/packages/aws-cdk-lib/core/lib/cfn-capabilities.ts @@ -36,5 +36,5 @@ export enum CfnCapabilities { * * @link https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_CreateStack.html */ - AUTO_EXPAND = 'CAPABILITY_AUTO_EXPAND' + AUTO_EXPAND = 'CAPABILITY_AUTO_EXPAND', } diff --git a/packages/aws-cdk-lib/core/lib/deps.ts b/packages/aws-cdk-lib/core/lib/deps.ts index 23579a7a8a734..d93ac077961f7 100644 --- a/packages/aws-cdk-lib/core/lib/deps.ts +++ b/packages/aws-cdk-lib/core/lib/deps.ts @@ -51,7 +51,7 @@ export function removeDependency(source: Element, target: Element) { enum DependencyOperation { ADD, - REMOVE + REMOVE, } /** diff --git a/packages/aws-cdk-lib/core/lib/fs/options.ts b/packages/aws-cdk-lib/core/lib/fs/options.ts index 3b0269f3639dd..15d6f07f58145 100644 --- a/packages/aws-cdk-lib/core/lib/fs/options.ts +++ b/packages/aws-cdk-lib/core/lib/fs/options.ts @@ -55,7 +55,7 @@ export enum IgnoreMode { * This is the default for Docker image assets if the '@aws-cdk/aws-ecr-assets:dockerIgnoreSupport' * context flag is set. */ - DOCKER = 'docker' + DOCKER = 'docker', } interface FileOptions { diff --git a/packages/aws-cdk-lib/cx-api/lib/metadata.ts b/packages/aws-cdk-lib/cx-api/lib/metadata.ts index c30759f001b15..b41438b21f2c8 100644 --- a/packages/aws-cdk-lib/cx-api/lib/metadata.ts +++ b/packages/aws-cdk-lib/cx-api/lib/metadata.ts @@ -8,7 +8,7 @@ export const PATH_METADATA_KEY = 'aws:cdk:path'; export enum SynthesisMessageLevel { INFO = 'info', WARNING = 'warning', - ERROR = 'error' + ERROR = 'error', } export interface MetadataEntryResult extends cxschema.MetadataEntry { diff --git a/packages/aws-cdk-lib/triggers/lib/trigger.ts b/packages/aws-cdk-lib/triggers/lib/trigger.ts index d3b75e12559e1..fae0ae87eae87 100644 --- a/packages/aws-cdk-lib/triggers/lib/trigger.ts +++ b/packages/aws-cdk-lib/triggers/lib/trigger.ts @@ -80,7 +80,7 @@ export enum InvocationType { /** * Validate parameter values and verify that the user or role has permission to invoke the function. */ - DRY_RUN = 'DryRun' + DRY_RUN = 'DryRun', } /** diff --git a/packages/aws-cdk/lib/api/cxapp/cloud-assembly.ts b/packages/aws-cdk/lib/api/cxapp/cloud-assembly.ts index c797e3a3492c4..fe8a9ae4c919b 100644 --- a/packages/aws-cdk/lib/api/cxapp/cloud-assembly.ts +++ b/packages/aws-cdk/lib/api/cxapp/cloud-assembly.ts @@ -67,7 +67,7 @@ export enum ExtendedStackSelection { /** * Include stacks that depend on this stack */ - Downstream + Downstream, } /** diff --git a/packages/aws-cdk/lib/api/plugin/credential-provider-source.ts b/packages/aws-cdk/lib/api/plugin/credential-provider-source.ts index 8643f3d76eac3..eb575ac2680f5 100644 --- a/packages/aws-cdk/lib/api/plugin/credential-provider-source.ts +++ b/packages/aws-cdk/lib/api/plugin/credential-provider-source.ts @@ -2,7 +2,7 @@ import * as aws from 'aws-sdk'; export enum Mode { ForReading, - ForWriting + ForWriting, } /** diff --git a/packages/aws-cdk/lib/context-providers/vpcs.ts b/packages/aws-cdk/lib/context-providers/vpcs.ts index ce2441fc29ee7..74349e1b25748 100644 --- a/packages/aws-cdk/lib/context-providers/vpcs.ts +++ b/packages/aws-cdk/lib/context-providers/vpcs.ts @@ -281,7 +281,7 @@ function subnetTypeToVpcSubnetType(type: SubnetType): cxapi.VpcSubnetGroupType { enum SubnetType { Public = 'Public', Private = 'Private', - Isolated = 'Isolated' + Isolated = 'Isolated', } function isValidSubnetType(val: string): val is SubnetType { diff --git a/packages/aws-cdk/lib/diff.ts b/packages/aws-cdk/lib/diff.ts index a1f025db055a2..399f08abeac6a 100644 --- a/packages/aws-cdk/lib/diff.ts +++ b/packages/aws-cdk/lib/diff.ts @@ -68,7 +68,7 @@ export enum RequireApproval { AnyChange = 'any-change', - Broadening = 'broadening' + Broadening = 'broadening', } /** diff --git a/packages/aws-cdk/lib/logging.ts b/packages/aws-cdk/lib/logging.ts index 8ad1fbb1d0ddd..95a8f565633c4 100644 --- a/packages/aws-cdk/lib/logging.ts +++ b/packages/aws-cdk/lib/logging.ts @@ -70,7 +70,7 @@ export enum LogLevel { /** Pretty verbose */ DEBUG = 1, /** Extremely verbose */ - TRACE = 2 + TRACE = 2, } export let logLevel = LogLevel.DEFAULT; diff --git a/packages/cdk-assets/lib/private/docker.ts b/packages/cdk-assets/lib/private/docker.ts index 56c223e991504..f321bac3c11b6 100644 --- a/packages/cdk-assets/lib/private/docker.ts +++ b/packages/cdk-assets/lib/private/docker.ts @@ -43,7 +43,7 @@ export interface DockerDomainCredentials { enum InspectImageErrorCode { Docker = 1, - Podman = 125 + Podman = 125, } export interface DockerCacheOption { diff --git a/packages/cdk-assets/lib/private/handlers/files.ts b/packages/cdk-assets/lib/private/handlers/files.ts index f9a928dd69727..12008fd220323 100644 --- a/packages/cdk-assets/lib/private/handlers/files.ts +++ b/packages/cdk-assets/lib/private/handlers/files.ts @@ -156,7 +156,7 @@ export class FileAssetHandler implements IAssetHandler { enum BucketOwnership { DOES_NOT_EXIST, MINE, - SOMEONE_ELSES_OR_NO_ACCESS + SOMEONE_ELSES_OR_NO_ACCESS, } type BucketEncryption = diff --git a/tools/@aws-cdk/cdk-build-tools/config/eslintrc.js b/tools/@aws-cdk/cdk-build-tools/config/eslintrc.js index 065265d141003..c997ed70f86a6 100644 --- a/tools/@aws-cdk/cdk-build-tools/config/eslintrc.js +++ b/tools/@aws-cdk/cdk-build-tools/config/eslintrc.js @@ -51,7 +51,7 @@ module.exports = { // Style 'quotes': ['error', 'single', { avoidEscape: true }], - 'comma-dangle': ['error', 'always-multiline'], // ensures clean diffs, see https://medium.com/@nikgraf/why-you-should-enforce-dangling-commas-for-multiline-statements-d034c98e36f8 + '@typescript-eslint/comma-dangle': ['error', 'always-multiline'], // ensures clean diffs, see https://medium.com/@nikgraf/why-you-should-enforce-dangling-commas-for-multiline-statements-d034c98e36f8 'comma-spacing': ['error', { before: false, after: true }], // space after, no space before 'no-multi-spaces': ['error', { ignoreEOLComments: false }], // no multi spaces 'array-bracket-spacing': ['error', 'never'], // [1, 2, 3] diff --git a/tools/@aws-cdk/cdk-release/lib/types.ts b/tools/@aws-cdk/cdk-release/lib/types.ts index b793bc7b19c47..790bdb70e0a31 100644 --- a/tools/@aws-cdk/cdk-release/lib/types.ts +++ b/tools/@aws-cdk/cdk-release/lib/types.ts @@ -28,7 +28,7 @@ export enum ExperimentalChangesTreatment { /** Remove all experimental changes from the changelog */ STRIP = 'strip', /** Write experimental changes to a separate changelog */ - SEPARATE = 'separate' + SEPARATE = 'separate', }; export interface ReleaseOptions {