Skip to content

Commit

Permalink
chore: rollback GenericSSMParameterImage deprecation (backport #16798
Browse files Browse the repository at this point in the history
…) (#16800)

This is an automatic backport of pull request #16798 done by [Mergify](https://mergify.io).


---


<details>
<summary>Mergify commands and options</summary>

<br />

More conditions and actions can be found in the [documentation](https://docs.mergify.io/).

You can also trigger Mergify actions by commenting on this pull request:

- `@Mergifyio refresh` will re-evaluate the rules
- `@Mergifyio rebase` will rebase this PR on its base branch
- `@Mergifyio update` will merge the base branch into this PR
- `@Mergifyio backport <destination>` will backport this PR on `<destination>` branch

Additionally, on Mergify [dashboard](https://dashboard.mergify.io/) you can:

- look at your merge queues
- generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.io/
</details>
  • Loading branch information
mergify[bot] authored Oct 5, 2021
1 parent b6d098e commit ca16e79
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/@aws-cdk/aws-ec2/lib/machine-image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,12 @@ export interface MachineImageConfig {
* on the instance if you are using this image.
*
* The AMI ID is selected using the values published to the SSM parameter store.
*
* @deprecated Use `MachineImage.fromSsmParameter()` instead
*/
export class GenericSSMParameterImage implements IMachineImage {
// FIXME: this class ought to be `@deprecated` and removed from v2, but that
// is causing build failure right now. Ref: https://github.com/aws/jsii/issues/3025
// @-deprecated Use `MachineImage.fromSsmParameter()` instead

/**
* Name of the SSM parameter we're looking up
*/
Expand Down Expand Up @@ -679,4 +681,4 @@ function lookupImage(scope: Construct, cachedInContext: boolean | undefined, par
return cachedInContext
? ssm.StringParameter.valueFromLookup(scope, parameterName)
: ssm.StringParameter.valueForTypedStringParameter(scope, parameterName, ssm.ParameterType.AWS_EC2_IMAGE_ID);
}
}

0 comments on commit ca16e79

Please sign in to comment.