-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jsii/java issue - CfnTag: argument type mismatch #1717
Comments
Seems like a bug in how tags passed into properties of L1s interact with that recently added As a workaround, you could directly access the tag manager like this: CfnVPC vpc = new CfnVPC(this, "MyVpc", CfnVPCProps.builder()
.withCidrBlock("0.0.0.0/0")
.build());
vpc.getTags().setTag("Hello", "Value"); Copy @moofish32 |
Oddly, when trying to produce a jsii dump (using
|
@eladb The actual tag property from code generation is like: /**
* ``AWS::Lambda::Function.Tags``
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-tags
*/
tags?: Array<cdk.CfnTag | cdk.Token> | cdk.Token; The TagManager is obviously a different type. Then in
|
@eladb another interesting thing about this bug: // CfnQueue cfn = new CfnQueue(this, "RawQueue", CfnQueueProps.builder().withTags(tags).build());
CfnQueue cfn = new CfnQueue(this, "RawQueue");
cfn.apply(new Tag("Yay", "Aspects")); If you switch the commented out queue with the current queue the behavior changes. The queue with props throws the error. |
Verified that this has been resolved in 0.28.0 |
Hi, Today I upgraded the cdk libraries from 0.23.0 -> 0.24.1 and made the changes from cdk.Tag to cdk.CfnTag post this change upon doing cdk synth ended up getting an argument type mismatch error.
source code:
any solution to solve argument type mismatch error.?
cdk pom version : 0.24.1
cdk version : 0.24.1
The text was updated successfully, but these errors were encountered: