-
Notifications
You must be signed in to change notification settings - Fork 4k
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
chore(custom-resource): update code comments to reflect actual behavior #30214
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -344,7 +344,7 @@ export interface AwsCustomResourceProps { | |
/** | ||
* The memory size for the singleton Lambda function implementing this custom resource. | ||
* | ||
* @default 512 mega in case if installLatestAwsSdk is false. | ||
* @default 512 mega in case if installLatestAwsSdk is true. | ||
*/ | ||
readonly memorySize?: number; | ||
|
||
|
@@ -370,7 +370,7 @@ export interface AwsCustomResourceProps { | |
readonly logGroup?: logs.ILogGroup; | ||
|
||
/** | ||
* Whether to install the latest AWS SDK v2. | ||
* Whether to install the latest AWS SDK. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In reality, v3 was installed. While it would be acceptable to specify "v3", I decided not to make any specific reference to the major version, as this would require updating the code each time the major version changes. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please update this comment to match that it is handler-dependent; see https://github.com/aws/aws-cdk/blob/main/packages/%40aws-cdk/custom-resource-handlers/lib/custom-resources/aws-custom-resource-handler/aws-sdk-v3-handler.ts#L40 and https://github.com/aws/aws-cdk/blob/main/packages/%40aws-cdk/custom-resource-handlers/lib/custom-resources/aws-custom-resource-handler/aws-sdk-v2-handler.ts#L64. |
||
* | ||
* If not specified, this uses whatever JavaScript SDK version is the default in | ||
* AWS Lambda at the time of execution. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at this implementation, the comments and the actual behavior seem to be reversed.
aws-cdk/packages/aws-cdk-lib/custom-resources/lib/aws-custom-resource/aws-custom-resource.ts
Line 486 in 4b6dc8c