Skip to content

Commit a95560c

Browse files
authored
chore(release): 2.171.1 (#32311)
See CHANGELOG ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
2 parents 4957967 + 8beaa20 commit a95560c

7 files changed

+33
-23
lines changed

CHANGELOG.v2.alpha.md

+9-7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
## [2.171.1-alpha.0](https://github.com/aws/aws-cdk/compare/v2.171.0-alpha.0...v2.171.1-alpha.0) (2024-11-27)
6+
57
## [2.171.0-alpha.0](https://github.com/aws/aws-cdk/compare/v2.170.0-alpha.0...v2.171.0-alpha.0) (2024-11-25)
68

79
## [2.170.0-alpha.0](https://github.com/aws/aws-cdk/compare/v2.169.0-alpha.0...v2.170.0-alpha.0) (2024-11-22)
@@ -80,7 +82,7 @@ All notable changes to this project will be documented in this file. See [standa
8082

8183
### Bug Fixes
8284

83-
* **location:** remove base class from PlaceIndex class ([#31287](https://github.com/aws/aws-cdk/issues/31287)) ([bc67866](https://github.com/aws/aws-cdk/commit/bc67866f579c401556d427eb150bcd118d69bd17)), closes [#30711](https://github.com/aws/aws-cdk/issues/30711) [#30682](https://github.com/aws/aws-cdk/issues/30682)
85+
* **location:** remove base class from PlaceIndex class ([#31287](https://github.com/aws/aws-cdk/issues/31287)) ([bc67866](https://github.com/aws/aws-cdk/commit/bc67866f579c401556d427eb150bcd118d69bd17)), closes [#30711](https://github.com/aws/aws-cdk/issues/30711) [#30682](https://github.com/aws/aws-cdk/issues/30682)
8486
* **scheduler-alpha:** scheduler input always get transformed to string with extra double quotes ([#31894](https://github.com/aws/aws-cdk/issues/31894)) ([186b8ab](https://github.com/aws/aws-cdk/commit/186b8abfab8452b31cba13b56998242f63c43159))
8587
* **scheduler-alpha:** too many KMS permissions granted ([#31923](https://github.com/aws/aws-cdk/issues/31923)) ([06678a3](https://github.com/aws/aws-cdk/commit/06678a39e029582af14c8b021f946b9ce9cac9be)), closes [#31785](https://github.com/aws/aws-cdk/issues/31785)
8688

@@ -148,10 +150,10 @@ All notable changes to this project will be documented in this file. See [standa
148150

149151
### ⚠ BREAKING CHANGES TO EXPERIMENTAL FEATURES
150152

151-
* **kinesisfirehose-destinations:** the `logging` and `logGroup` properties in `DestinationLoggingProps` have been removed and replaced with a single optional property `loggingConfig` which accepts a class of type `LoggingConfig`.
153+
* **kinesisfirehose-destinations:** the `logging` and `logGroup` properties in `DestinationLoggingProps` have been removed and replaced with a single optional property `loggingConfig` which accepts a class of type `LoggingConfig`.
152154

153155
#### Details
154-
Combine the `logging` and `logGroup` properties into a single new optional property called `loggingConfig` which accepts a class of type `LoggingConfig`.
156+
Combine the `logging` and `logGroup` properties into a single new optional property called `loggingConfig` which accepts a class of type `LoggingConfig`.
155157

156158
`LoggingConfig` is an abstract class which can be instantiated through either an instance of `EnableLogging` or `DisableLogging` which can be used in the following 3 ways:
157159

@@ -222,7 +224,7 @@ unit + integ test
222224

223225
### ⚠ BREAKING CHANGES TO EXPERIMENTAL FEATURES
224226

225-
* **kinesisfirehose-alpha:** `encryptionKey` property is removed and `encryption` property type has changed from the `StreamEncryption` enum to the `StreamEncryption` class.
227+
* **kinesisfirehose-alpha:** `encryptionKey` property is removed and `encryption` property type has changed from the `StreamEncryption` enum to the `StreamEncryption` class.
226228

227229
To pass in a KMS key for the customer managed key case, use `StreamEncryption.customerManagedKey(key)`
228230

@@ -234,12 +236,12 @@ StreamEncryption.awsOwnedKey()
234236
StreamEncryption.customerManagedKey(key?: IKey)
235237
```
236238

237-
This makes it so it's not longer possible to pass in a key when the encryption type is AWS owned or unencrypted. The `key` is an optional parameter in `StreamEncryption.customerManagedKey(key?: IKey)` so following the previous behaviour, if a key is provided it will be used, otherwise a key will be created for the user.
239+
This makes it so it's not longer possible to pass in a key when the encryption type is AWS owned or unencrypted. The `key` is an optional parameter in `StreamEncryption.customerManagedKey(key?: IKey)` so following the previous behaviour, if a key is provided it will be used, otherwise a key will be created for the user.
238240
### Description of how you validated changes
239241

240-
Generated templates do not change so behaviour remains the same.
242+
Generated templates do not change so behaviour remains the same.
241243

242-
Updated integ/unit tests.
244+
Updated integ/unit tests.
243245

244246
### Checklist
245247
- [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)

CHANGELOG.v2.md

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
## [2.171.1](https://github.com/aws/aws-cdk/compare/v2.171.0...v2.171.1) (2024-11-27)
6+
7+
8+
### Bug Fixes
9+
10+
* **cli:** lambda hotswap fails if `lambda:GetFunctionConfiguration` action is not allowed ([#32301](https://github.com/aws/aws-cdk/issues/32301)) ([a073e93](https://github.com/aws/aws-cdk/commit/a073e9302dbd4213275e99c86476ab8152af7caf)), closes [/github.com/aws/aws-sdk-js-v3/blob/main/clients/client-lambda/src/waiters/waitForFunctionUpdatedV2.ts#L10](https://github.com/aws//github.com/aws/aws-sdk-js-v3/blob/main/clients/client-lambda/src/waiters/waitForFunctionUpdatedV2.ts/issues/L10) [/github.com/aws/aws-sdk-js-v3/blob/main/clients/client-lambda/src/waiters/waitForFunctionUpdated.ts#L13](https://github.com/aws//github.com/aws/aws-sdk-js-v3/blob/main/clients/client-lambda/src/waiters/waitForFunctionUpdated.ts/issues/L13)
11+
512
## [2.171.0](https://github.com/aws/aws-cdk/compare/v2.170.0...v2.171.0) (2024-11-25)
613

714

packages/aws-cdk/lib/api/aws-auth/sdk.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ import {
246246
UpdateFunctionConfigurationCommand,
247247
type UpdateFunctionConfigurationCommandInput,
248248
type UpdateFunctionConfigurationCommandOutput,
249-
waitUntilFunctionUpdated,
249+
waitUntilFunctionUpdatedV2,
250250
} from '@aws-sdk/client-lambda';
251251
import {
252252
GetHostedZoneCommand,
@@ -841,7 +841,7 @@ export class SDK {
841841
delaySeconds: number,
842842
input: UpdateFunctionConfigurationCommandInput,
843843
): Promise<WaiterResult> => {
844-
return waitUntilFunctionUpdated(
844+
return waitUntilFunctionUpdatedV2(
845845
{
846846
client,
847847
maxDelay: delaySeconds,

packages/aws-cdk/test/api/hotswap/hotswap-test-setup.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as cxapi from '@aws-cdk/cx-api';
22
import { ListStackResourcesCommand, StackResourceSummary, StackStatus } from '@aws-sdk/client-cloudformation';
3-
import { GetFunctionConfigurationCommand } from '@aws-sdk/client-lambda';
3+
import { GetFunctionCommand } from '@aws-sdk/client-lambda';
44
import { ICloudFormationClient, SuccessfulDeployStackResult } from '../../../lib/api';
55
import { HotswapMode, HotswapPropertyOverrides } from '../../../lib/api/hotswap/common';
66
import * as deployments from '../../../lib/api/hotswap-deployments';
@@ -109,8 +109,10 @@ export class HotswapMockSdkProvider extends MockSdkProvider {
109109
constructor(rootStackName?: string) {
110110
super();
111111

112-
mockLambdaClient.on(GetFunctionConfigurationCommand).resolves({
113-
LastUpdateStatus: 'Successful',
112+
mockLambdaClient.on(GetFunctionCommand).resolves({
113+
Configuration: {
114+
LastUpdateStatus: 'Successful',
115+
},
114116
});
115117

116118
mockCloudFormationClient.on(ListStackResourcesCommand).callsFake((input) => {

packages/aws-cdk/test/api/hotswap/lambda-functions-docker-hotswap-deployments.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { UpdateFunctionCodeCommand, waitUntilFunctionUpdated } from '@aws-sdk/client-lambda';
1+
import { UpdateFunctionCodeCommand, waitUntilFunctionUpdatedV2 } from '@aws-sdk/client-lambda';
22
import * as setup from './hotswap-test-setup';
33
import { HotswapMode } from '../../../lib/api/hotswap/common';
44
import { mockLambdaClient } from '../../util/mock-sdk';
@@ -9,7 +9,7 @@ jest.mock('@aws-sdk/client-lambda', () => {
99

1010
return {
1111
...original,
12-
waitUntilFunctionUpdated: jest.fn(),
12+
waitUntilFunctionUpdatedV2: jest.fn(),
1313
};
1414
});
1515

@@ -116,7 +116,7 @@ describe.each([HotswapMode.FALL_BACK, HotswapMode.HOTSWAP_ONLY])('%p mode', (hot
116116
await hotswapMockSdkProvider.tryHotswapDeployment(hotswapMode, cdkStackArtifact);
117117

118118
// THEN
119-
expect(waitUntilFunctionUpdated).toHaveBeenCalledWith(
119+
expect(waitUntilFunctionUpdatedV2).toHaveBeenCalledWith(
120120
expect.objectContaining({
121121
minDelay: 5,
122122
maxDelay: 5,

packages/aws-cdk/test/api/hotswap/lambda-functions-hotswap-deployments.test.ts

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
22
UpdateFunctionCodeCommand,
33
UpdateFunctionConfigurationCommand,
4-
waitUntilFunctionUpdated,
4+
waitUntilFunctionUpdatedV2,
55
} from '@aws-sdk/client-lambda';
66
import * as setup from './hotswap-test-setup';
77
import { HotswapMode } from '../../../lib/api/hotswap/common';
@@ -10,10 +10,9 @@ import { silentTest } from '../../util/silent';
1010

1111
jest.mock('@aws-sdk/client-lambda', () => {
1212
const original = jest.requireActual('@aws-sdk/client-lambda');
13-
1413
return {
1514
...original,
16-
waitUntilFunctionUpdated: jest.fn(),
15+
waitUntilFunctionUpdatedV2: jest.fn(),
1716
};
1817
});
1918

@@ -617,7 +616,7 @@ describe.each([HotswapMode.FALL_BACK, HotswapMode.HOTSWAP_ONLY])('%p mode', (hot
617616

618617
// THEN
619618
expect(mockLambdaClient).toHaveReceivedCommand(UpdateFunctionCodeCommand);
620-
expect(waitUntilFunctionUpdated).toHaveBeenCalledWith(
619+
expect(waitUntilFunctionUpdatedV2).toHaveBeenCalledWith(
621620
expect.objectContaining({
622621
minDelay: 1,
623622
maxDelay: 1,
@@ -675,7 +674,7 @@ describe.each([HotswapMode.FALL_BACK, HotswapMode.HOTSWAP_ONLY])('%p mode', (hot
675674
await hotswapMockSdkProvider.tryHotswapDeployment(hotswapMode, cdkStackArtifact);
676675

677676
// THEN
678-
expect(waitUntilFunctionUpdated).toHaveBeenCalledWith(
677+
expect(waitUntilFunctionUpdatedV2).toHaveBeenCalledWith(
679678
expect.objectContaining({
680679
minDelay: 1,
681680
maxDelay: 1,
@@ -733,7 +732,7 @@ describe.each([HotswapMode.FALL_BACK, HotswapMode.HOTSWAP_ONLY])('%p mode', (hot
733732
await hotswapMockSdkProvider.tryHotswapDeployment(hotswapMode, cdkStackArtifact);
734733

735734
// THEN
736-
expect(waitUntilFunctionUpdated).toHaveBeenCalledWith(
735+
expect(waitUntilFunctionUpdatedV2).toHaveBeenCalledWith(
737736
expect.objectContaining({
738737
minDelay: 5,
739738
maxDelay: 5,

version.v2.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"version": "2.171.0",
3-
"alphaVersion": "2.171.0-alpha.0"
2+
"version": "2.171.1",
3+
"alphaVersion": "2.171.1-alpha.0"
44
}

0 commit comments

Comments
 (0)