aws-batch-alpha: EcsJobDefinition.jobDefinitionName returns the ARN #25197
Labels
@aws-cdk/aws-batch
Related to AWS Batch
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
good first issue
Related to contributions. See CONTRIBUTING.md
p1
Describe the bug
In EcsJobDefinition, looks like at the end of the constructor you override the field "jobDefinitionName" with the CfnJobDefinition
ref
.Meaning if we try to access it later, we'll get a different value of what it has been created with.
Expected Behavior
EcsJobDefinition.jobDefinitionName to return the CfnJobDefinition.jobDefinitionName and not the ARN of the resource
Current Behavior
EcsJobDefinition.jobDefinitionNam returns the ARN (+ revision)
Reproduction Steps
Possible Solution
Just remove
this.jobDefinitionName = this.getResourceNameAttribute(resource.ref);
github link
Additional Information/Context
No response
CDK CLI Version
2.74.0 (build 70e2a33)
Framework Version
No response
Node.js Version
v16.13.0
OS
MacOS
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: