Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
6dd9205
fix dependency
xazhao Mar 26, 2025
9526cba
fix dependency
xazhao Mar 26, 2025
789cc0f
fix dependency at root level
xazhao Mar 26, 2025
5cd97e8
fix dependency at root level
xazhao Mar 26, 2025
65bf7cb
fix dependency at root level
xazhao Mar 26, 2025
d554673
next
xazhao Mar 26, 2025
3661d66
Try again
xazhao Mar 26, 2025
7ebb033
update workflow file
xazhao Mar 26, 2025
249ae63
fix bug
xazhao Mar 26, 2025
b9b4029
fix
xazhao Mar 27, 2025
bd0a0cb
fix workflow
xazhao Mar 27, 2025
4635264
fix
xazhao Mar 27, 2025
8bb7c80
fix
xazhao Mar 27, 2025
524bc91
fix
xazhao Mar 27, 2025
6a0e717
fdsa
xazhao Mar 27, 2025
f8b07ed
fdsa
xazhao Mar 27, 2025
1e1f8eb
chore(autoscaling): add new enum values for autoscaling
aws-cdk-automation Mar 27, 2025
a09ae3e
chore(cloudfront): add new enum values for cloudfront
aws-cdk-automation Mar 27, 2025
a8a9fb6
chore(cloudtrail): add new enum values for cloudtrail
aws-cdk-automation Mar 27, 2025
ff51025
chore(codebuild): add new enum values for codebuild
aws-cdk-automation Mar 27, 2025
a1484c8
chore(ec2): add new enum values for ec2
aws-cdk-automation Mar 27, 2025
6329963
chore(ecs): add new enum values for ecs
aws-cdk-automation Mar 27, 2025
2ad572c
chore(eks): add new enum values for eks
aws-cdk-automation Mar 27, 2025
19d4451
chore(eks-v2-alpha): add new enum values for eks-v2-alpha
aws-cdk-automation Mar 27, 2025
b060c16
chore(elasticloadbalancingv2): add new enum values for elasticloadbal…
aws-cdk-automation Mar 27, 2025
0c11808
chore(glue-alpha): add new enum values for glue-alpha
aws-cdk-automation Mar 27, 2025
2715d09
chore(iot-alpha): add new enum values for iot-alpha
aws-cdk-automation Mar 27, 2025
ab6eea7
chore(ivs-alpha): add new enum values for ivs-alpha
aws-cdk-automation Mar 27, 2025
fb8adf5
chore(kinesisanalytics-flink-alpha): add new enum values for kinesisa…
aws-cdk-automation Mar 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 25 additions & 14 deletions .github/workflows/enum-auto-updater.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
NODE_OPTIONS: "--max-old-space-size=8196 --experimental-worker ${NODE_OPTIONS:-}"

- name: Install dependencies
run: yarn install --frozen-lockfile && cd tools/@aws-cdk/enum-updater && yarn build
run: cd tools/@aws-cdk/enum-updater && yarn install --frozen-lockfile && yarn build

- name: Identify Missing Values and Apply Code Changes
run: |
Expand All @@ -36,6 +36,11 @@ jobs:
else
echo "changes=false" >> $GITHUB_OUTPUT
fi

# Authentication is required for gh cli
- name: Setup GitHub CLI
run: |
gh auth login --with-token <<< "${{ secrets.GITHUB_TOKEN }}"

- name: Commit & Push changes
if: steps.git-check.outputs.changes == 'true'
Expand All @@ -46,33 +51,39 @@ jobs:
# Iterate through each module directory that has changes
for module in $(git diff --name-only | grep -E '^packages/(@aws-cdk|aws-cdk-lib)/.*' | sed -E 's|^packages/(@aws-cdk\|aws-cdk-lib)/([^/]+).*|\2|' | sort -u); do
moduleName=$(basename $module)

# Determine the correct path for the module
if [[ -d "packages/aws-cdk-lib/$module" ]]; then
modulePath="packages/aws-cdk-lib/$module"
elif [[ -d "packages/@aws-cdk/$module" ]]; then
modulePath="packages/@aws-cdk/$module"
else
echo "Cannot find module directory for $module"
continue
fi

# Check for existing PR with the same name
prExists=$(gh pr list --state open --search "feat(${moduleName#aws-}): add new enum values for ${moduleName#aws-}" --json number,title -q '.[].number')

# If a PR exists, close it and continue
if [[ -n "$prExists" ]]; then
echo "PR already exists for module ${moduleName#aws-}, closing the existing PR."
gh pr close "$prExists" --confirm # Close the PR by its number
gh pr close "$prExists" --confirm
fi

# Create a new branch for the module
branchName="enum-update/${moduleName#aws-}"
git checkout -b "$branchName"

# Stage, commit, and push changes for the module
git add "packages/$module" # Add only changes for this module
git add "$modulePath" # Using the correct path
git commit -m "chore(${moduleName#aws-}): add new enum values for ${moduleName#aws-}"
git push origin "$branchName"

# Create a new pull request
gh pr create --title "chore(${moduleName#aws-}): add new enum values for ${moduleName#aws-}" \
--body "This PR updates the enum values for ${moduleName#aws-}." \
--base main \
--head "$branchName"
--label "contribution/core,pr-linter/exempt-integ-test,pr-linter/exempt-readme,pr-linter/exempt-test" \
--reviewer "aws-cdk-team" \
done

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Create a new pull request
gh pr create --title "chore(${moduleName#aws-}): add new enum values for ${moduleName#aws-}" \
--body "This PR updates the enum values for ${moduleName#aws-}." \
--base main \
--head "$branchName" \
--label "contribution/core,pr-linter/exempt-integ-test,pr-linter/exempt-readme,pr-linter/exempt-test"
done
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@nx/workspace": "^20",
"@types/node": "18.11.19",
"@types/prettier": "2.6.0",
"@types/tmp": "^0.2.6",
"@yarnpkg/lockfile": "^1.1.0",
"aws-sdk-js-codemod": "^0.28.2",
"cdk-generate-synthetic-examples": "^0.2.22",
Expand Down Expand Up @@ -88,6 +89,7 @@
"tools/@aws-cdk/lazify",
"tools/@aws-cdk/lambda-integration-test-updater",
"tools/@aws-cdk/construct-metadata-updater",
"tools/@aws-cdk/enum-updater",
"scripts/@aws-cdk/script-tests"
],
"nohoist": [
Expand Down
4 changes: 4 additions & 0 deletions packages/@aws-cdk/aws-eks-v2-alpha/lib/managed-nodegroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ export enum NodegroupAmiType {
* Amazon Linux 2023 (ARM-64)
*/
AL2023_ARM_64_STANDARD = 'AL2023_ARM_64_STANDARD',
/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
CUSTOM = 'CUSTOM',
}

/**
Expand Down
5 changes: 4 additions & 1 deletion packages/@aws-cdk/aws-glue-alpha/lib/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,10 @@ export class ConnectionType {
* Designates a connection to Zoho CRM.
*/
public static readonly ZOHOCRM = new ConnectionType('ZOHOCRM');

/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
public static readonly SFTP = new ConnectionType('SFTP');
/**
* The name of this ConnectionType, as expected by Connection resource.
*/
Expand Down
5 changes: 5 additions & 0 deletions packages/@aws-cdk/aws-iot-alpha/lib/scheduled-audit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,11 @@ export enum DayOfWeek {
* Saturday
*/
SATURDAY = 'SAT',

/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
UNSET_VALUE = 'UNSET_VALUE',
}

/**
Expand Down
5 changes: 5 additions & 0 deletions packages/@aws-cdk/aws-ivs-alpha/lib/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ export enum Preset {
*/
HIGHER_BANDWIDTH_DELIVERY = 'HIGHER_BANDWIDTH_DELIVERY',


/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
= '',
}

/**
Expand Down
16 changes: 16 additions & 0 deletions packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,22 @@ export class Runtime {

/** SQL Version 1.0 */
public static readonly SQL_1_0 = Runtime.of('SQL-1_0');
/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
public static readonly ZEPPELIN_FLINK_3_0 = Runtime.of('ZEPPELIN-FLINK-3_0');
/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
public static readonly ZEPPELIN_FLINK_2_0 = Runtime.of('ZEPPELIN-FLINK-2_0');
/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
public static readonly ZEPPELIN_FLINK_1_0 = Runtime.of('ZEPPELIN-FLINK-1_0');
/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
public static readonly SQL_1_0 = Runtime.of('SQL-1_0');

/** Create a new Runtime with with an arbitrary Flink version string */
public static of(value: string) {
Expand Down
12 changes: 12 additions & 0 deletions packages/aws-cdk-lib/aws-autoscaling/lib/auto-scaling-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2392,6 +2392,14 @@ export class HealthChecks {
enum HealthCheckType {
EC2 = 'EC2',
ELB = 'ELB',
/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
EBS = 'EBS',
/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
VPC_LATTICE = 'VPC_LATTICE',
}

/**
Expand All @@ -2410,6 +2418,10 @@ export enum AdditionalHealthCheckType {
* VPC LATTICE Health Check
*/
VPC_LATTICE = 'VPC_LATTICE',
/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
EC2 = 'EC2',
}

/**
Expand Down
5 changes: 5 additions & 0 deletions packages/aws-cdk-lib/aws-autoscaling/lib/volume.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,4 +210,9 @@ export enum EbsDeviceVolumeType {
* Cold HDD
*/
SC1 = 'sc1',

/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
IO2 = 'io2',
}
4 changes: 4 additions & 0 deletions packages/aws-cdk-lib/aws-cloudfront/lib/distribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -905,6 +905,10 @@ export enum OriginProtocolPolicy {
export enum SSLMethod {
SNI = 'sni-only',
VIP = 'vip',
/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
STATIC_IP = 'static-ip',
}

/**
Expand Down
10 changes: 10 additions & 0 deletions packages/aws-cdk-lib/aws-cloudfront/lib/function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,16 @@ export enum FunctionEventType {
* The viewer-response specifies the outgoing response
*/
VIEWER_RESPONSE = 'viewer-response',

/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
ORIGIN_REQUEST = 'origin-request',

/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
ORIGIN_RESPONSE = 'origin-response',
}

/**
Expand Down
25 changes: 25 additions & 0 deletions packages/aws-cdk-lib/aws-cloudfront/lib/web-distribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,31 @@ export enum FailoverStatusCode {
* Gateway Timeout (504)
*/
GATEWAY_TIMEOUT = 504,

/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
400 = '400',

/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
405 = '405',

/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
414 = '414',

/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
416 = '416',

/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
501 = '501',
}

/**
Expand Down
35 changes: 35 additions & 0 deletions packages/aws-cdk-lib/aws-cloudtrail/lib/cloudtrail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,41 @@ export enum DataResourceType {
* Data resource type for S3 objects
*/
S3_OBJECT = 'AWS::S3::Object',

/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
AWS_DYNAMODB_TABLE = 'AWS::DynamoDB::Table',

/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
AWS_S3OUTPOSTS_OBJECT = 'AWS::S3Outposts::Object',

/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
AWS_MANAGEDBLOCKCHAIN_NODE = 'AWS::ManagedBlockchain::Node',

/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
AWS_S3OBJECTLAMBDA_ACCESSPOINT = 'AWS::S3ObjectLambda::AccessPoint',

/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
AWS_EC2_SNAPSHOT = 'AWS::EC2::Snapshot',

/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
AWS_S3_ACCESSPOINT = 'AWS::S3::AccessPoint',

/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
AWS_DYNAMODB_STREAM = 'AWS::DynamoDB::Stream',
}

interface EventSelector {
Expand Down
25 changes: 25 additions & 0 deletions packages/aws-cdk-lib/aws-codebuild/lib/fleet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,4 +315,29 @@ export enum FleetComputeType {
* @see https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment-reserved-capacity.types
*/
ATTRIBUTE_BASED = ComputeType.ATTRIBUTE_BASED,

/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
BUILD_LAMBDA_10GB = 'BUILD_LAMBDA_10GB',

/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
BUILD_LAMBDA_1GB = 'BUILD_LAMBDA_1GB',

/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
BUILD_LAMBDA_2GB = 'BUILD_LAMBDA_2GB',

/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
BUILD_LAMBDA_4GB = 'BUILD_LAMBDA_4GB',

/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
BUILD_LAMBDA_8GB = 'BUILD_LAMBDA_8GB',
}
15 changes: 15 additions & 0 deletions packages/aws-cdk-lib/aws-ec2/lib/vpc-endpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,21 @@ export enum VpcEndpointType {
* privately within your VPC, without requiring access through the public internet.
*/
RESOURCE = 'Resource',

/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
GATEWAYLOADBALANCER = 'GatewayLoadBalancer',

/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
SERVICENETWORK = 'ServiceNetwork',

/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
RESOURCE = 'Resource',
}

/**
Expand Down
5 changes: 5 additions & 0 deletions packages/aws-cdk-lib/aws-ec2/lib/vpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1156,6 +1156,11 @@ export enum DefaultInstanceTenancy {
* and control over instance placement at the physical host level.
*/
HOST = 'host',

/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
HOST = 'host',
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ export enum FileSystemType {
* ntfs type
*/
NTFS = 'ntfs',
/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
NTFS = 'ntfs',
}

/**
Expand Down
8 changes: 8 additions & 0 deletions packages/aws-cdk-lib/aws-eks/lib/managed-nodegroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ export enum NodegroupAmiType {
* Amazon Linux 2023 (ARM-64)
*/
AL2023_ARM_64_STANDARD = 'AL2023_ARM_64_STANDARD',
/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
CUSTOM = 'CUSTOM',
}

/**
Expand All @@ -107,6 +111,10 @@ export enum CapacityType {
* capacity block instances
*/
CAPACITY_BLOCK = 'CAPACITY_BLOCK',
/**
* PLACEHOLDER_COMMENT_TO_BE_FILLED_OUT
*/
CAPACITY_BLOCK = 'CAPACITY_BLOCK',
}

/**
Expand Down
Loading