Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cli): support for matching notices with arbitrary module names (#…
…19088) This change allows us to publish notices to match any arbitrary module or construct. For example, a notice that targets the component ```json { "name": "@aws-cdk/aws-apigatewayv2-alpha", "version": ">=2.10.0" } ``` will be displayed to the user if they have in their cloud assembly a resource of type `@aws-cdk/aws-apigatewayv2-alpha.HttpStage` or `@aws-cdk/aws-apigatewayv2-alpha.HttpApi` or any other construct from the `apigatewayv2` module, as long as it was built using some version of the module above or equal to 2.10.0. We can also target a specific construct, instead: ```json { "name": "@aws-cdk/aws-apigatewayv2-alpha.HttpStage", "version": ">=2.10.0" } ``` ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
- Loading branch information
1 parent
d325004
commit a87dee7
Showing
4 changed files
with
275 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
110 changes: 110 additions & 0 deletions
110
packages/aws-cdk/test/cloud-assembly-trees/experimental-module/tree.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
{ | ||
"version": "tree-0.1", | ||
"tree": { | ||
"id": "App", | ||
"path": "", | ||
"children": { | ||
"Tree": { | ||
"id": "Tree", | ||
"path": "Tree", | ||
"constructInfo": { | ||
"fqn": "constructs.Construct", | ||
"version": "10.0.66" | ||
} | ||
}, | ||
"SimulationStack": { | ||
"id": "SimulationStack", | ||
"path": "SimulationStack", | ||
"children": { | ||
"HttpApi": { | ||
"id": "HttpApi", | ||
"path": "SimulationStack/HttpApi", | ||
"children": { | ||
"Resource": { | ||
"id": "Resource", | ||
"path": "SimulationStack/HttpApi/Resource", | ||
"attributes": { | ||
"aws:cdk:cloudformation:type": "AWS::ApiGatewayV2::Api", | ||
"aws:cdk:cloudformation:props": { | ||
"name": "HttpApi", | ||
"protocolType": "HTTP" | ||
} | ||
}, | ||
"constructInfo": { | ||
"fqn": "aws-cdk-lib.aws_apigatewayv2.CfnApi", | ||
"version": "2.8.0" | ||
} | ||
}, | ||
"DefaultStage": { | ||
"id": "DefaultStage", | ||
"path": "SimulationStack/HttpApi/DefaultStage", | ||
"children": { | ||
"Resource": { | ||
"id": "Resource", | ||
"path": "SimulationStack/HttpApi/DefaultStage/Resource", | ||
"attributes": { | ||
"aws:cdk:cloudformation:type": "AWS::ApiGatewayV2::Stage", | ||
"aws:cdk:cloudformation:props": { | ||
"apiId": { | ||
"Ref": "HttpApiF5A9A8A7" | ||
}, | ||
"stageName": "$default", | ||
"autoDeploy": true | ||
} | ||
}, | ||
"constructInfo": { | ||
"fqn": "aws-cdk-lib.aws_apigatewayv2.CfnStage", | ||
"version": "2.8.0" | ||
} | ||
} | ||
}, | ||
"constructInfo": { | ||
"fqn": "@aws-cdk/aws-apigatewayv2-alpha.HttpStage", | ||
"version": "2.13.0-alpha.0" | ||
} | ||
} | ||
}, | ||
"constructInfo": { | ||
"fqn": "@aws-cdk/aws-apigatewayv2-alpha.HttpApi", | ||
"version": "2.13.0-alpha.0" | ||
} | ||
}, | ||
"CDKMetadata": { | ||
"id": "CDKMetadata", | ||
"path": "SimulationStack/CDKMetadata", | ||
"children": { | ||
"Default": { | ||
"id": "Default", | ||
"path": "SimulationStack/CDKMetadata/Default", | ||
"constructInfo": { | ||
"fqn": "aws-cdk-lib.CfnResource", | ||
"version": "2.8.0" | ||
} | ||
}, | ||
"Condition": { | ||
"id": "Condition", | ||
"path": "SimulationStack/CDKMetadata/Condition", | ||
"constructInfo": { | ||
"fqn": "aws-cdk-lib.CfnCondition", | ||
"version": "2.8.0" | ||
} | ||
} | ||
}, | ||
"constructInfo": { | ||
"fqn": "constructs.Construct", | ||
"version": "10.0.66" | ||
} | ||
} | ||
}, | ||
"constructInfo": { | ||
"fqn": "aws-cdk-lib.Stack", | ||
"version": "2.8.0" | ||
} | ||
} | ||
}, | ||
"constructInfo": { | ||
"fqn": "aws-cdk-lib.App", | ||
"version": "2.8.0" | ||
} | ||
} | ||
} |
Oops, something went wrong.