From 1614d694bae8529fb71fcaf3e4eb178d2c585f2c Mon Sep 17 00:00:00 2001 From: aws-cdk-automation Date: Mon, 16 Dec 2024 13:47:43 +0000 Subject: [PATCH] feat: update L1 CloudFormation resource definitions Updates the L1 CloudFormation resource definitions with the latest changes from `@aws-cdk/aws-service-spec` --- .../@aws-cdk/cloudformation-diff/package.json | 4 +- packages/@aws-cdk/integ-runner/package.json | 2 +- .../aws-cdk-lib/aws-s3tables/.jsiirc.json | 13 +++++++ packages/aws-cdk-lib/aws-s3tables/README.md | 39 +++++++++++++++++++ packages/aws-cdk-lib/aws-s3tables/index.ts | 1 + .../aws-cdk-lib/aws-s3tables/lib/index.ts | 2 + packages/aws-cdk-lib/index.ts | 1 + packages/aws-cdk-lib/package.json | 3 +- packages/aws-cdk-lib/scripts/scope-map.json | 3 ++ tools/@aws-cdk/spec2cdk/package.json | 4 +- yarn.lock | 17 +++++--- 11 files changed, 78 insertions(+), 11 deletions(-) create mode 100644 packages/aws-cdk-lib/aws-s3tables/.jsiirc.json create mode 100644 packages/aws-cdk-lib/aws-s3tables/README.md create mode 100644 packages/aws-cdk-lib/aws-s3tables/index.ts create mode 100644 packages/aws-cdk-lib/aws-s3tables/lib/index.ts diff --git a/packages/@aws-cdk/cloudformation-diff/package.json b/packages/@aws-cdk/cloudformation-diff/package.json index beab2ec9a1cad..56215590f4295 100644 --- a/packages/@aws-cdk/cloudformation-diff/package.json +++ b/packages/@aws-cdk/cloudformation-diff/package.json @@ -23,8 +23,8 @@ }, "license": "Apache-2.0", "dependencies": { - "@aws-cdk/aws-service-spec": "^0.1.37", - "@aws-cdk/service-spec-types": "^0.0.104", + "@aws-cdk/aws-service-spec": "^0.1.38", + "@aws-cdk/service-spec-types": "^0.0.105", "chalk": "^4", "diff": "^5.2.0", "fast-deep-equal": "^3.1.3", diff --git a/packages/@aws-cdk/integ-runner/package.json b/packages/@aws-cdk/integ-runner/package.json index ea18202dc0dd9..898120152b47f 100644 --- a/packages/@aws-cdk/integ-runner/package.json +++ b/packages/@aws-cdk/integ-runner/package.json @@ -74,7 +74,7 @@ "@aws-cdk/cloud-assembly-schema": "^38.0.0", "@aws-cdk/cloudformation-diff": "0.0.0", "@aws-cdk/cx-api": "0.0.0", - "@aws-cdk/aws-service-spec": "^0.1.37", + "@aws-cdk/aws-service-spec": "^0.1.38", "cdk-assets": "3.0.0-rc.32", "@aws-cdk/cdk-cli-wrapper": "0.0.0", "aws-cdk": "0.0.0", diff --git a/packages/aws-cdk-lib/aws-s3tables/.jsiirc.json b/packages/aws-cdk-lib/aws-s3tables/.jsiirc.json new file mode 100644 index 0000000000000..fcb11f52cb871 --- /dev/null +++ b/packages/aws-cdk-lib/aws-s3tables/.jsiirc.json @@ -0,0 +1,13 @@ +{ + "targets": { + "java": { + "package": "software.amazon.awscdk.services.s3tables" + }, + "dotnet": { + "package": "Amazon.CDK.AWS.S3Tables" + }, + "python": { + "module": "aws_cdk.aws_s3tables" + } + } +} diff --git a/packages/aws-cdk-lib/aws-s3tables/README.md b/packages/aws-cdk-lib/aws-s3tables/README.md new file mode 100644 index 0000000000000..3a37f3f535bcd --- /dev/null +++ b/packages/aws-cdk-lib/aws-s3tables/README.md @@ -0,0 +1,39 @@ +# AWS::S3Tables Construct Library + + +--- + +![cfn-resources: Stable](https://img.shields.io/badge/cfn--resources-stable-success.svg?style=for-the-badge) + +> All classes with the `Cfn` prefix in this module ([CFN Resources]) are always stable and safe to use. +> +> [CFN Resources]: https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib + +--- + + + +This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project. + +```ts nofixture +import * as s3tables from 'aws-cdk-lib/aws-s3tables'; +``` + + + +There are no official hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet. Here are some suggestions on how to proceed: + +- Search [Construct Hub for S3Tables construct libraries](https://constructs.dev/search?q=s3tables) +- Use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, in the same way you would use [the CloudFormation AWS::S3Tables resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_S3Tables.html) directly. + + + + +There are no hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet. +However, you can still use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, and use this service exactly as you would using CloudFormation directly. + +For more information on the resources and properties available for this service, see the [CloudFormation documentation for AWS::S3Tables](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_S3Tables.html). + +(Read the [CDK Contributing Guide](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and submit an RFC if you are interested in contributing to this construct library.) + + diff --git a/packages/aws-cdk-lib/aws-s3tables/index.ts b/packages/aws-cdk-lib/aws-s3tables/index.ts new file mode 100644 index 0000000000000..f41a696fd204d --- /dev/null +++ b/packages/aws-cdk-lib/aws-s3tables/index.ts @@ -0,0 +1 @@ +export * from './lib'; diff --git a/packages/aws-cdk-lib/aws-s3tables/lib/index.ts b/packages/aws-cdk-lib/aws-s3tables/lib/index.ts new file mode 100644 index 0000000000000..661052a64da24 --- /dev/null +++ b/packages/aws-cdk-lib/aws-s3tables/lib/index.ts @@ -0,0 +1,2 @@ +// AWS::S3Tables Cloudformation Resources +export * from './s3tables.generated'; diff --git a/packages/aws-cdk-lib/index.ts b/packages/aws-cdk-lib/index.ts index 3a1ed040cadae..2565510e4c99b 100644 --- a/packages/aws-cdk-lib/index.ts +++ b/packages/aws-cdk-lib/index.ts @@ -234,6 +234,7 @@ export * as aws_s3_notifications from './aws-s3-notifications'; export * as aws_s3express from './aws-s3express'; export * as aws_s3objectlambda from './aws-s3objectlambda'; export * as aws_s3outposts from './aws-s3outposts'; +export * as aws_s3tables from './aws-s3tables'; export * as aws_sagemaker from './aws-sagemaker'; export * as aws_sam from './aws-sam'; export * as aws_scheduler from './aws-scheduler'; diff --git a/packages/aws-cdk-lib/package.json b/packages/aws-cdk-lib/package.json index 398a110c5989b..0b0243bb04896 100644 --- a/packages/aws-cdk-lib/package.json +++ b/packages/aws-cdk-lib/package.json @@ -136,7 +136,7 @@ "mime-types": "^2.1.35" }, "devDependencies": { - "@aws-cdk/aws-service-spec": "^0.1.37", + "@aws-cdk/aws-service-spec": "^0.1.38", "@aws-cdk/cdk-build-tools": "0.0.0", "@aws-cdk/custom-resource-handlers": "0.0.0", "@aws-cdk/pkglint": "0.0.0", @@ -449,6 +449,7 @@ "./aws-s3express": "./aws-s3express/index.js", "./aws-s3objectlambda": "./aws-s3objectlambda/index.js", "./aws-s3outposts": "./aws-s3outposts/index.js", + "./aws-s3tables": "./aws-s3tables/index.js", "./aws-sagemaker": "./aws-sagemaker/index.js", "./aws-sam": "./aws-sam/index.js", "./aws-scheduler": "./aws-scheduler/index.js", diff --git a/packages/aws-cdk-lib/scripts/scope-map.json b/packages/aws-cdk-lib/scripts/scope-map.json index 586b54aede737..4ac63e5e2bd8a 100644 --- a/packages/aws-cdk-lib/scripts/scope-map.json +++ b/packages/aws-cdk-lib/scripts/scope-map.json @@ -636,6 +636,9 @@ "aws-s3outposts": [ "AWS::S3Outposts" ], + "aws-s3tables": [ + "AWS::S3Tables" + ], "aws-sagemaker": [ "AWS::SageMaker" ], diff --git a/tools/@aws-cdk/spec2cdk/package.json b/tools/@aws-cdk/spec2cdk/package.json index b3ea047386690..710dd825b5f2f 100644 --- a/tools/@aws-cdk/spec2cdk/package.json +++ b/tools/@aws-cdk/spec2cdk/package.json @@ -32,9 +32,9 @@ }, "license": "Apache-2.0", "dependencies": { - "@aws-cdk/aws-service-spec": "^0.1.37", + "@aws-cdk/aws-service-spec": "^0.1.38", "@aws-cdk/service-spec-importers": "^0.0.58", - "@aws-cdk/service-spec-types": "^0.0.104", + "@aws-cdk/service-spec-types": "^0.0.105", "@cdklabs/tskb": "^0.0.3", "@cdklabs/typewriter": "^0.0.3", "camelcase": "^6", diff --git a/yarn.lock b/yarn.lock index 10b4bc41a6463..91882fd848a4a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -63,12 +63,12 @@ resolved "https://registry.npmjs.org/@aws-cdk/asset-node-proxy-agent-v6/-/asset-node-proxy-agent-v6-2.1.0.tgz#6d3c7860354d4856a7e75375f2f0ecab313b4989" integrity sha512-7bY3J8GCVxLupn/kNmpPc5VJz8grx+4RKfnnJiO1LG+uxkZfANZG3RMHhE+qQxxwkyQ9/MfPtTpf748UhR425A== -"@aws-cdk/aws-service-spec@^0.1.37": - version "0.1.37" - resolved "https://registry.npmjs.org/@aws-cdk/aws-service-spec/-/aws-service-spec-0.1.37.tgz#39e78a07079fc276f2f2bfdb31c3c7226939a04a" - integrity sha512-WFGAvjslG8Jdj9XmzDtV4JbsWEmLj8K9pA882mc6iNK59l4ocGt2GqS4n3JuzRdzoEpzcVYqfgrqGUuV1ez7vg== +"@aws-cdk/aws-service-spec@^0.1.38": + version "0.1.38" + resolved "https://registry.npmjs.org/@aws-cdk/aws-service-spec/-/aws-service-spec-0.1.38.tgz#76eb52f578a0a0094d33d5b310bd13a9c2755d7e" + integrity sha512-Kk1/GEIScI492f9vRIzzZDHnG/pdxAX+AZxFyjBnHa0zVCH9pXOiG5hndd4kq6sDP/ePyrKcBK4iv3nO3WVw2w== dependencies: - "@aws-cdk/service-spec-types" "^0.0.104" + "@aws-cdk/service-spec-types" "^0.0.105" "@cdklabs/tskb" "^0.0.3" "@aws-cdk/cloud-assembly-schema@^38.0.0", "@aws-cdk/cloud-assembly-schema@^38.0.1": @@ -129,6 +129,13 @@ dependencies: "@cdklabs/tskb" "^0.0.3" +"@aws-cdk/service-spec-types@^0.0.105": + version "0.0.105" + resolved "https://registry.npmjs.org/@aws-cdk/service-spec-types/-/service-spec-types-0.0.105.tgz#b39898f6711068bbae016c88a5a6e7b8e1347d13" + integrity sha512-HUiKW7clPyaCRxbPmgURtK9ZXOCLarWFlsPbpMvHNbleiqjk+VB0Tgrf5LqJmBZMnKcq1Jx/cE42MiIxI/sRZA== + dependencies: + "@cdklabs/tskb" "^0.0.3" + "@aws-crypto/crc32@5.2.0": version "5.2.0" resolved "https://registry.npmjs.org/@aws-crypto/crc32/-/crc32-5.2.0.tgz#cfcc22570949c98c6689cfcbd2d693d36cdae2e1"