From e450c5cf80292160c1f8a2eacf7e9ad493bd3e49 Mon Sep 17 00:00:00 2001 From: aws-cdk-automation Date: Mon, 22 Jan 2024 13:41:12 +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-datazone/.jsiirc.json | 13 +++++++ packages/aws-cdk-lib/aws-datazone/README.md | 39 +++++++++++++++++++ packages/aws-cdk-lib/aws-datazone/index.ts | 1 + .../aws-cdk-lib/aws-datazone/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 | 6 +-- yarn.lock | 35 +++++++---------- 11 files changed, 81 insertions(+), 28 deletions(-) create mode 100644 packages/aws-cdk-lib/aws-datazone/.jsiirc.json create mode 100644 packages/aws-cdk-lib/aws-datazone/README.md create mode 100644 packages/aws-cdk-lib/aws-datazone/index.ts create mode 100644 packages/aws-cdk-lib/aws-datazone/lib/index.ts diff --git a/packages/@aws-cdk/cloudformation-diff/package.json b/packages/@aws-cdk/cloudformation-diff/package.json index 0ec1cfff169ae..c7cd2140df96d 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.0.42", - "@aws-cdk/service-spec-types": "^0.0.42", + "@aws-cdk/aws-service-spec": "^0.0.43", + "@aws-cdk/service-spec-types": "^0.0.43", "chalk": "^4", "diff": "^5.1.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 f3ab2fc9f2812..6938e11421ae9 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": "0.0.0", "@aws-cdk/cloudformation-diff": "0.0.0", "@aws-cdk/cx-api": "0.0.0", - "@aws-cdk/aws-service-spec": "^0.0.42", + "@aws-cdk/aws-service-spec": "^0.0.43", "cdk-assets": "0.0.0", "@aws-cdk/cdk-cli-wrapper": "0.0.0", "aws-cdk": "0.0.0", diff --git a/packages/aws-cdk-lib/aws-datazone/.jsiirc.json b/packages/aws-cdk-lib/aws-datazone/.jsiirc.json new file mode 100644 index 0000000000000..92f4258443443 --- /dev/null +++ b/packages/aws-cdk-lib/aws-datazone/.jsiirc.json @@ -0,0 +1,13 @@ +{ + "targets": { + "java": { + "package": "software.amazon.awscdk.services.datazone" + }, + "dotnet": { + "package": "Amazon.CDK.AWS.DataZone" + }, + "python": { + "module": "aws_cdk.aws_datazone" + } + } +} diff --git a/packages/aws-cdk-lib/aws-datazone/README.md b/packages/aws-cdk-lib/aws-datazone/README.md new file mode 100644 index 0000000000000..6a6ef4c925e70 --- /dev/null +++ b/packages/aws-cdk-lib/aws-datazone/README.md @@ -0,0 +1,39 @@ +# AWS::DataZone 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 datazone from 'aws-cdk-lib/aws-datazone'; +``` + + + +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 DataZone construct libraries](https://constructs.dev/search?q=datazone) +- 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::DataZone resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_DataZone.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::DataZone](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_DataZone.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-datazone/index.ts b/packages/aws-cdk-lib/aws-datazone/index.ts new file mode 100644 index 0000000000000..f41a696fd204d --- /dev/null +++ b/packages/aws-cdk-lib/aws-datazone/index.ts @@ -0,0 +1 @@ +export * from './lib'; diff --git a/packages/aws-cdk-lib/aws-datazone/lib/index.ts b/packages/aws-cdk-lib/aws-datazone/lib/index.ts new file mode 100644 index 0000000000000..4b4554df58d4c --- /dev/null +++ b/packages/aws-cdk-lib/aws-datazone/lib/index.ts @@ -0,0 +1,2 @@ +// AWS::DataZone Cloudformation Resources +export * from './datazone.generated'; diff --git a/packages/aws-cdk-lib/index.ts b/packages/aws-cdk-lib/index.ts index 99a3876bfad74..6d4c6de2974ec 100644 --- a/packages/aws-cdk-lib/index.ts +++ b/packages/aws-cdk-lib/index.ts @@ -70,6 +70,7 @@ export * as aws_customerprofiles from './aws-customerprofiles'; export * as aws_databrew from './aws-databrew'; export * as aws_datapipeline from './aws-datapipeline'; export * as aws_datasync from './aws-datasync'; +export * as aws_datazone from './aws-datazone'; export * as aws_dax from './aws-dax'; export * as aws_detective from './aws-detective'; export * as aws_devicefarm from './aws-devicefarm'; diff --git a/packages/aws-cdk-lib/package.json b/packages/aws-cdk-lib/package.json index 76281051ca690..b2cc43b20c2cd 100644 --- a/packages/aws-cdk-lib/package.json +++ b/packages/aws-cdk-lib/package.json @@ -133,7 +133,7 @@ "yaml": "1.10.2" }, "devDependencies": { - "@aws-cdk/aws-service-spec": "^0.0.42", + "@aws-cdk/aws-service-spec": "^0.0.43", "@aws-cdk/cdk-build-tools": "0.0.0", "@aws-cdk/custom-resource-handlers": "0.0.0", "@aws-cdk/pkglint": "0.0.0", @@ -281,6 +281,7 @@ "./aws-databrew": "./aws-databrew/index.js", "./aws-datapipeline": "./aws-datapipeline/index.js", "./aws-datasync": "./aws-datasync/index.js", + "./aws-datazone": "./aws-datazone/index.js", "./aws-dax": "./aws-dax/index.js", "./aws-detective": "./aws-detective/index.js", "./aws-devicefarm": "./aws-devicefarm/index.js", diff --git a/packages/aws-cdk-lib/scripts/scope-map.json b/packages/aws-cdk-lib/scripts/scope-map.json index 8263a92920b6c..758662cf020e9 100644 --- a/packages/aws-cdk-lib/scripts/scope-map.json +++ b/packages/aws-cdk-lib/scripts/scope-map.json @@ -185,6 +185,9 @@ "aws-datasync": [ "AWS::DataSync" ], + "aws-datazone": [ + "AWS::DataZone" + ], "aws-dax": [ "AWS::DAX" ], diff --git a/tools/@aws-cdk/spec2cdk/package.json b/tools/@aws-cdk/spec2cdk/package.json index 474ab3b61fd3e..1a927a668cd5d 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.0.42", - "@aws-cdk/service-spec-importers": "^0.0.15", - "@aws-cdk/service-spec-types": "^0.0.42", + "@aws-cdk/aws-service-spec": "^0.0.43", + "@aws-cdk/service-spec-importers": "^0.0.16", + "@aws-cdk/service-spec-types": "^0.0.43", "@cdklabs/tskb": "^0.0.3", "@cdklabs/typewriter": "^0.0.3", "camelcase": "^6", diff --git a/yarn.lock b/yarn.lock index a7456e5769f66..105dd07718df2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -56,12 +56,12 @@ resolved "https://registry.npmjs.org/@aws-cdk/asset-node-proxy-agent-v6/-/asset-node-proxy-agent-v6-2.0.1.tgz#6dc9b7cdb22ff622a7176141197962360c33e9ac" integrity sha512-DDt4SLdLOwWCjGtltH4VCST7hpOI5DzieuhGZsBpZ+AgJdSI2GCjklCXm0GCTwJG/SolkL5dtQXyUKgg9luBDg== -"@aws-cdk/aws-service-spec@^0.0.42": - version "0.0.42" - resolved "https://registry.npmjs.org/@aws-cdk/aws-service-spec/-/aws-service-spec-0.0.42.tgz#731a4c7337ad9fdd3ca83943c7b57c2df5f24e97" - integrity sha512-Qeh6bJl80FMTQ/ahntNyUfrFDEFFGzaAB7V0sxBU7RHUjXSQ9V1B+QOj11N3BTby1hRW8l9gEvNe02RqCS9omg== +"@aws-cdk/aws-service-spec@^0.0.43": + version "0.0.43" + resolved "https://registry.npmjs.org/@aws-cdk/aws-service-spec/-/aws-service-spec-0.0.43.tgz#7d0e0c3a2259426628dd552a7450299782513733" + integrity sha512-sir1+8H/xY85BJlVUgwUcRfV8mjnerEq24rcQ8vE5W7ae2BQCbWXQjUfhNMr5cyiMA4XKw59dBN3g4JHv1Gp0w== dependencies: - "@aws-cdk/service-spec-types" "^0.0.42" + "@aws-cdk/service-spec-types" "^0.0.43" "@cdklabs/tskb" "^0.0.3" "@aws-cdk/lambda-layer-kubectl-v24@^2.0.242": @@ -69,12 +69,12 @@ resolved "https://registry.npmjs.org/@aws-cdk/lambda-layer-kubectl-v24/-/lambda-layer-kubectl-v24-2.0.242.tgz#4273a5ad7714f933a7eba155eb9280823086db71" integrity sha512-7/wIOo685tmrEe4hh6zqDELhBZh5OQGf3Hd2FU2Vnwy2ZubW8qTmEw5gqJCsCrGKeYDoa1BcVhDRZ/nzjkaqyA== -"@aws-cdk/service-spec-importers@^0.0.15": - version "0.0.15" - resolved "https://registry.npmjs.org/@aws-cdk/service-spec-importers/-/service-spec-importers-0.0.15.tgz#1b96852b51aa11b1ce167253fdaedcf4e88b6d9e" - integrity sha512-J5P+2LJDQc5Giieqz9p5erMygjlud3UMBAwezwFym0X8GYbIrMPRE5yqB6IE8EOmCTBL2l2Gx9+zXizHq7sC/Q== +"@aws-cdk/service-spec-importers@^0.0.16": + version "0.0.16" + resolved "https://registry.npmjs.org/@aws-cdk/service-spec-importers/-/service-spec-importers-0.0.16.tgz#897a7e2aa8ed08e3a12331e0f87484537f128405" + integrity sha512-YkJlFCNTF4sLJc2I7ePD9mDzy3R8p6xoypiPaQ7HgRIpVc0LbX/LCqBU0ml1pM9Qiy0gq1uOHjHxFNF4kYq9kQ== dependencies: - "@aws-cdk/service-spec-types" "^0.0.41" + "@aws-cdk/service-spec-types" "^0.0.43" "@cdklabs/tskb" "^0.0.3" ajv "^6" canonicalize "^2.0.0" @@ -85,17 +85,10 @@ glob "^8" sort-json "^2.0.1" -"@aws-cdk/service-spec-types@^0.0.41": - version "0.0.41" - resolved "https://registry.npmjs.org/@aws-cdk/service-spec-types/-/service-spec-types-0.0.41.tgz#1bcd722c8bdcb6606dbdf8bdc1fa38253e65ffa5" - integrity sha512-zvXIIe4aFcZYqOKsWTxa9OPp93yyHg3OOU5jt6RTyjjIQZeEpaWkpUsEqdaBzyHmQPcn3iXO+Xji/z7Yha2dZw== - dependencies: - "@cdklabs/tskb" "^0.0.3" - -"@aws-cdk/service-spec-types@^0.0.42": - version "0.0.42" - resolved "https://registry.npmjs.org/@aws-cdk/service-spec-types/-/service-spec-types-0.0.42.tgz#446c8d324e765bafeb1b6162e9eb9d97f312c0ac" - integrity sha512-+OEzm13lcOyybqkbLBK13qUGqnB3sn1LyUBqgbOseLEkipgGX3xOmJeJaNy5zPHkC3ZLqYFDMQwJRaMwvMlaJw== +"@aws-cdk/service-spec-types@^0.0.43": + version "0.0.43" + resolved "https://registry.npmjs.org/@aws-cdk/service-spec-types/-/service-spec-types-0.0.43.tgz#71a7555bd989650b711ec3ade943f239305ddf6f" + integrity sha512-jFPbTNsEKMVtnh87iUM6wnvbus2dxcPDZPCCmmmauln95O0iRd+cNoygsEzAzPFl9/Dk7Vg8PwHj+2nVN95bwg== dependencies: "@cdklabs/tskb" "^0.0.3"