From 2a659f0ebbc039a03402b7f99a36dbf461e026aa Mon Sep 17 00:00:00 2001 From: AWS CDK Automation <43080478+aws-cdk-automation@users.noreply.github.com> Date: Mon, 24 Jun 2024 16:24:41 +0200 Subject: [PATCH] feat: update L1 CloudFormation resource definitions (#30642) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updates the L1 CloudFormation resource definitions with the latest changes from `@aws-cdk/aws-service-spec` **L1 CloudFormation resource definition changes:** ``` ├[+] service aws-apptest │ ├ capitalized: AppTest │ │ cloudFormationNamespace: AWS::AppTest │ │ name: aws-apptest │ │ shortName: apptest │ └ resources │ └resource AWS::AppTest::TestCase │ ├ name: TestCase │ │ cloudFormationType: AWS::AppTest::TestCase │ │ documentation: Represents a Test Case that can be captured and executed │ │ tagInformation: {"tagPropertyName":"Tags","variant":"map"} │ ├ properties │ │ ├Description: string │ │ ├Name: string (required, immutable) │ │ ├Steps: Array (required) │ │ └Tags: Map │ ├ attributes │ │ ├CreationTime: string │ │ ├LastUpdateTime: string │ │ ├LatestVersion: TestCaseLatestVersion │ │ ├Status: string │ │ ├TestCaseArn: string │ │ ├TestCaseId: string │ │ └TestCaseVersion: number │ └ types │ ├type TestCaseLatestVersion │ │├ name: TestCaseLatestVersion │ │└ properties │ │ ├Version: number (required) │ │ └Status: string (required) │ ├type Step │ │├ name: Step │ │└ properties │ │ ├Name: string (required) │ │ ├Description: string │ │ └Action: StepAction (required) │ ├type StepAction │ │├ name: StepAction │ │└ properties │ │ ├ResourceAction: ResourceAction │ │ ├MainframeAction: MainframeAction │ │ └CompareAction: CompareAction │ ├type ResourceAction │ │├ name: ResourceAction │ │└ properties │ │ ├M2ManagedApplicationAction: M2ManagedApplicationAction │ │ ├M2NonManagedApplicationAction: M2NonManagedApplicationAction │ │ └CloudFormationAction: CloudFormationAction │ ├type M2ManagedApplicationAction │ │├ name: M2ManagedApplicationAction │ │└ properties │ │ ├Resource: string (required) │ │ ├ActionType: string (required) │ │ └Properties: M2ManagedActionProperties │ ├type M2ManagedActionProperties │ │├ name: M2ManagedActionProperties │ │└ properties │ │ ├ForceStop: boolean │ │ └ImportDataSetLocation: string │ ├type M2NonManagedApplicationAction │ │├ name: M2NonManagedApplicationAction │ │└ properties │ │ ├Resource: string (required) │ │ └ActionType: string (required) │ ├type CloudFormationAction │ │├ name: CloudFormationAction │ │└ properties │ │ ├Resource: string (required) │ │ └ActionType: string │ ├type MainframeAction │ │├ name: MainframeAction │ │└ properties │ │ ├Resource: string (required) │ │ ├ActionType: MainframeActionType (required) │ │ └Properties: MainframeActionProperties │ ├type MainframeActionType │ │├ name: MainframeActionType │ │└ properties │ │ ├Batch: Batch │ │ └Tn3270: TN3270 │ ├type Batch │ │├ name: Batch │ │└ properties │ │ ├BatchJobName: string (required) │ │ ├BatchJobParameters: Map │ │ └ExportDataSetNames: Array │ ├type TN3270 │ │├ name: TN3270 │ │└ properties │ │ ├Script: Script (required) │ │ └ExportDataSetNames: Array │ ├type Script │ │├ name: Script │ │└ properties │ │ ├ScriptLocation: string (required) │ │ └Type: string (required) │ ├type MainframeActionProperties │ │├ name: MainframeActionProperties │ │└ properties │ │ └DmsTaskArn: string │ ├type CompareAction │ │├ name: CompareAction │ │└ properties │ │ ├Input: Input (required) │ │ └Output: Output │ ├type Input │ │├ name: Input │ │└ properties │ │ └File: InputFile (required) │ ├type InputFile │ │├ name: InputFile │ │└ properties │ │ ├SourceLocation: string (required) │ │ ├TargetLocation: string (required) │ │ └FileMetadata: FileMetadata (required) │ ├type FileMetadata │ │├ name: FileMetadata │ │└ properties │ │ ├DataSets: Array │ │ └DatabaseCDC: DatabaseCDC │ ├type DataSet │ │├ name: DataSet │ │└ properties │ │ ├Type: string (required) │ │ ├Name: string (required) │ │ ├Ccsid: string (required) │ │ ├Format: string (required) │ │ └Length: number (required) │ ├type DatabaseCDC │ │├ name: DatabaseCDC │ │└ properties │ │ ├SourceMetadata: SourceDatabaseMetadata (required) │ │ └TargetMetadata: TargetDatabaseMetadata (required) │ ├type SourceDatabaseMetadata │ │├ name: SourceDatabaseMetadata │ │└ properties │ │ ├Type: string (required) │ │ └CaptureTool: string (required) │ ├type TargetDatabaseMetadata │ │├ name: TargetDatabaseMetadata │ │└ properties │ │ ├Type: string (required) │ │ └CaptureTool: string (required) │ ├type Output │ │├ name: Output │ │└ properties │ │ └File: OutputFile (required) │ └type OutputFile │ ├ name: OutputFile │ └ properties │ └FileLocation: string ├[~] service aws-batch │ └ resources │ └[~] resource AWS::Batch::JobDefinition │ └ types │ └[~] type NodeRangeProperty │ └ properties │ └[-] EksProperties: EksProperties ├[~] service aws-kinesisfirehose │ └ resources │ └[~] resource AWS::KinesisFirehose::DeliveryStream │ └ types │ ├[~] type HttpEndpointDestinationConfiguration │ │ └ properties │ │ └[+] SecretsManagerConfiguration: SecretsManagerConfiguration │ ├[~] type RedshiftDestinationConfiguration │ │ └ properties │ │ ├ Password: - string (required) │ │ │ + string │ │ ├[+] SecretsManagerConfiguration: SecretsManagerConfiguration │ │ └ Username: - string (required) │ │ + string │ ├[+] type SecretsManagerConfiguration │ │ ├ name: SecretsManagerConfiguration │ │ └ properties │ │ ├Enabled: boolean (required) │ │ ├RoleARN: string │ │ └SecretARN: string │ ├[~] type SnowflakeDestinationConfiguration │ │ └ properties │ │ ├ PrivateKey: - string (required) │ │ │ + string │ │ ├[+] SecretsManagerConfiguration: SecretsManagerConfiguration │ │ └ User: - string (required) │ │ + string │ └[~] type SplunkDestinationConfiguration │ └ properties │ ├ HECToken: - string (required) │ │ + string │ └[+] SecretsManagerConfiguration: SecretsManagerConfiguration └[~] service aws-mediapackagev2 └ resources ├[~] resource AWS::MediaPackageV2::Channel │ └ attributes │ └[+] IngestEndpointUrls: Array └[~] resource AWS::MediaPackageV2::OriginEndpoint └ attributes ├[+] DashManifestUrls: Array ├[+] HlsManifestUrls: Array └[+] LowLatencyHlsManifestUrls: Array ``` --- .../@aws-cdk/cloudformation-diff/package.json | 4 +- packages/@aws-cdk/integ-runner/package.json | 2 +- packages/aws-cdk-lib/aws-apptest/.jsiirc.json | 13 +++++++ packages/aws-cdk-lib/aws-apptest/README.md | 39 +++++++++++++++++++ packages/aws-cdk-lib/aws-apptest/index.ts | 1 + packages/aws-cdk-lib/aws-apptest/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 | 18 ++++----- 11 files changed, 75 insertions(+), 15 deletions(-) create mode 100644 packages/aws-cdk-lib/aws-apptest/.jsiirc.json create mode 100644 packages/aws-cdk-lib/aws-apptest/README.md create mode 100644 packages/aws-cdk-lib/aws-apptest/index.ts create mode 100644 packages/aws-cdk-lib/aws-apptest/lib/index.ts diff --git a/packages/@aws-cdk/cloudformation-diff/package.json b/packages/@aws-cdk/cloudformation-diff/package.json index f9940a96c3754..a9ae0479fe54b 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.7", - "@aws-cdk/service-spec-types": "^0.0.75", + "@aws-cdk/aws-service-spec": "^0.1.8", + "@aws-cdk/service-spec-types": "^0.0.76", "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 6471c89bcdbc4..eed5311ce7825 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.1.7", + "@aws-cdk/aws-service-spec": "^0.1.8", "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-apptest/.jsiirc.json b/packages/aws-cdk-lib/aws-apptest/.jsiirc.json new file mode 100644 index 0000000000000..4e27b8a8e7d0d --- /dev/null +++ b/packages/aws-cdk-lib/aws-apptest/.jsiirc.json @@ -0,0 +1,13 @@ +{ + "targets": { + "java": { + "package": "software.amazon.awscdk.services.apptest" + }, + "dotnet": { + "package": "Amazon.CDK.AWS.AppTest" + }, + "python": { + "module": "aws_cdk.aws_apptest" + } + } +} diff --git a/packages/aws-cdk-lib/aws-apptest/README.md b/packages/aws-cdk-lib/aws-apptest/README.md new file mode 100644 index 0000000000000..b922f8fa6ede1 --- /dev/null +++ b/packages/aws-cdk-lib/aws-apptest/README.md @@ -0,0 +1,39 @@ +# AWS::AppTest 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 apptest from 'aws-cdk-lib/aws-apptest'; +``` + + + +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 AppTest construct libraries](https://constructs.dev/search?q=apptest) +- 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::AppTest resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_AppTest.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::AppTest](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_AppTest.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-apptest/index.ts b/packages/aws-cdk-lib/aws-apptest/index.ts new file mode 100644 index 0000000000000..f41a696fd204d --- /dev/null +++ b/packages/aws-cdk-lib/aws-apptest/index.ts @@ -0,0 +1 @@ +export * from './lib'; diff --git a/packages/aws-cdk-lib/aws-apptest/lib/index.ts b/packages/aws-cdk-lib/aws-apptest/lib/index.ts new file mode 100644 index 0000000000000..94d11103cc29f --- /dev/null +++ b/packages/aws-cdk-lib/aws-apptest/lib/index.ts @@ -0,0 +1,2 @@ +// AWS::AppTest Cloudformation Resources +export * from './apptest.generated'; diff --git a/packages/aws-cdk-lib/index.ts b/packages/aws-cdk-lib/index.ts index a3adebdefe00a..01fd49c9c2ea7 100644 --- a/packages/aws-cdk-lib/index.ts +++ b/packages/aws-cdk-lib/index.ts @@ -20,6 +20,7 @@ export * as aws_appmesh from './aws-appmesh'; export * as aws_apprunner from './aws-apprunner'; export * as aws_appstream from './aws-appstream'; export * as aws_appsync from './aws-appsync'; +export * as aws_apptest from './aws-apptest'; export * as aws_aps from './aws-aps'; export * as aws_arczonalshift from './aws-arczonalshift'; export * as aws_athena from './aws-athena'; diff --git a/packages/aws-cdk-lib/package.json b/packages/aws-cdk-lib/package.json index 4f28ae3677477..5d476d18030c6 100644 --- a/packages/aws-cdk-lib/package.json +++ b/packages/aws-cdk-lib/package.json @@ -135,7 +135,7 @@ "mime-types": "^2.1.35" }, "devDependencies": { - "@aws-cdk/aws-service-spec": "^0.1.7", + "@aws-cdk/aws-service-spec": "^0.1.8", "@aws-cdk/cdk-build-tools": "0.0.0", "@aws-cdk/custom-resource-handlers": "0.0.0", "@aws-cdk/pkglint": "0.0.0", @@ -234,6 +234,7 @@ "./aws-apprunner": "./aws-apprunner/index.js", "./aws-appstream": "./aws-appstream/index.js", "./aws-appsync": "./aws-appsync/index.js", + "./aws-apptest": "./aws-apptest/index.js", "./aws-aps": "./aws-aps/index.js", "./aws-arczonalshift": "./aws-arczonalshift/index.js", "./aws-athena": "./aws-athena/index.js", diff --git a/packages/aws-cdk-lib/scripts/scope-map.json b/packages/aws-cdk-lib/scripts/scope-map.json index 8cb90e7ad3894..d3a778f9552b4 100644 --- a/packages/aws-cdk-lib/scripts/scope-map.json +++ b/packages/aws-cdk-lib/scripts/scope-map.json @@ -53,6 +53,9 @@ "aws-appsync": [ "AWS::AppSync" ], + "aws-apptest": [ + "AWS::AppTest" + ], "aws-aps": [ "AWS::APS" ], diff --git a/tools/@aws-cdk/spec2cdk/package.json b/tools/@aws-cdk/spec2cdk/package.json index 5fe15641cbcc9..8a47886e9382d 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.7", + "@aws-cdk/aws-service-spec": "^0.1.8", "@aws-cdk/service-spec-importers": "^0.0.37", - "@aws-cdk/service-spec-types": "^0.0.75", + "@aws-cdk/service-spec-types": "^0.0.76", "@cdklabs/tskb": "^0.0.3", "@cdklabs/typewriter": "^0.0.3", "camelcase": "^6", diff --git a/yarn.lock b/yarn.lock index 01f70475e5167..6665aeeddaf42 100644 --- a/yarn.lock +++ b/yarn.lock @@ -51,12 +51,12 @@ resolved "https://registry.npmjs.org/@aws-cdk/asset-node-proxy-agent-v6/-/asset-node-proxy-agent-v6-2.0.3.tgz#9b5d213b5ce5ad4461f6a4720195ff8de72e6523" integrity sha512-twhuEG+JPOYCYPx/xy5uH2+VUsIEhPTzDY0F1KuB+ocjWWB/KEDiOVL19nHvbPCB6fhWnkykXEMJ4HHcKvjtvg== -"@aws-cdk/aws-service-spec@^0.1.7": - version "0.1.7" - resolved "https://registry.npmjs.org/@aws-cdk/aws-service-spec/-/aws-service-spec-0.1.7.tgz#8f5e5333f9f68268c1f70a262a2a4ca3bcf8dadf" - integrity sha512-6fvUzbNYXvbZGQaBOko2a/xfJe7s5lBXHvsCRLpXS43iDn/A643b100kJvOP3tWmT+JwcjIEi3FTYVr8Td6Iaw== +"@aws-cdk/aws-service-spec@^0.1.8": + version "0.1.8" + resolved "https://registry.npmjs.org/@aws-cdk/aws-service-spec/-/aws-service-spec-0.1.8.tgz#5d9447e118c9d85106fed05e0d83ede943d86ce6" + integrity sha512-wYOq5HhEhAjKcO8vLPzcplqWIiC5LdP+apzu/zAwNe5MhRxyJYVgZRIYKqvkw8Suxj+hs8C9SeMPbHjG9PkGDg== dependencies: - "@aws-cdk/service-spec-types" "^0.0.75" + "@aws-cdk/service-spec-types" "^0.0.76" "@cdklabs/tskb" "^0.0.3" "@aws-cdk/lambda-layer-kubectl-v24@^2.0.242": @@ -97,10 +97,10 @@ dependencies: "@cdklabs/tskb" "^0.0.3" -"@aws-cdk/service-spec-types@^0.0.75": - version "0.0.75" - resolved "https://registry.npmjs.org/@aws-cdk/service-spec-types/-/service-spec-types-0.0.75.tgz#d162ad5cfd8d17783a2fd50c5bb66f9a887f4ede" - integrity sha512-WWOUMJlRrj5GEm0FzW9ZCaQg2dyFaSmqkeB9yrW0NbJAXbWia5YjPe19HX1KHtkOPzhQOXPd3xUAt5tzengeKA== +"@aws-cdk/service-spec-types@^0.0.76": + version "0.0.76" + resolved "https://registry.npmjs.org/@aws-cdk/service-spec-types/-/service-spec-types-0.0.76.tgz#7902f21eb6cd8477b174644bf3406255b6fd0e3a" + integrity sha512-mRQrhfiEeG3z1UhhSx3NTpw3sP5mIyJ94t6fAJtk9zXIxjeEUS5tvupRO4uJnyjR3CnlJn8rvmTIS8o6oNaMzw== dependencies: "@cdklabs/tskb" "^0.0.3"