Skip to content

Commit 6a2bcde

Browse files
authored
refactor(ec2): rename getImage parameter (#35119)
### Reason for this change The parameter name `_` caused jsii processing issues for Java versions newer than version 9. This is because `_` is a preserved keyword there. ### Description of changes Renamed parameter from `_` to `_scope` instead. ### Describe any new or updated permissions being added No new permissions are added. ### Description of how you validated changes N/A ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 9da53d2 commit 6a2bcde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/aws-cdk-lib/aws-ec2/lib/machine-image/machine-image.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ export class ResolveSsmParameterAtLaunchImage implements IMachineImage {
252252
/**
253253
* Return the image to use in the given context
254254
*/
255-
public getImage(_: Construct): MachineImageConfig {
255+
public getImage(_scope: Construct): MachineImageConfig {
256256
const versionString = this.props.parameterVersion ? `:${this.props.parameterVersion}` : '';
257257
const osType = this.props.os ?? OperatingSystemType.LINUX;
258258
return {

0 commit comments

Comments
 (0)