aws-cdk 2.1016.0 → 2.1017.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build-info.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "comment": "Generated at 2025-05-16T08:27:37Z by generate.sh",
3
- "commit": "66e0b2d"
2
+ "comment": "Generated at 2025-05-28T18:48:45Z by generate.sh",
3
+ "commit": "f227c9b"
4
4
  }
package/db.json.gz CHANGED
Binary file
@@ -1,11 +1,11 @@
1
1
  import { RequireApproval } from '@aws-cdk/cloud-assembly-schema';
2
+ import type { DeploymentMethod } from '@aws-cdk/toolkit-lib';
2
3
  import { CliIoHost } from './io-host';
3
4
  import type { Configuration } from './user-configuration';
4
5
  import { CloudWatchLogEventMonitor } from '../api';
5
6
  import type { SdkProvider } from '../api/aws-auth';
6
7
  import type { BootstrapEnvironmentOptions } from '../api/bootstrap';
7
- import type { DeploymentMethod, Deployments } from '../api/deployments';
8
- import { HotswapMode } from '../api/hotswap';
8
+ import type { Deployments } from '../api/deployments';
9
9
  import { type Tag } from '../api/tags';
10
10
  import { StackActivityProgress } from '../commands/deploy';
11
11
  import type { FromScan } from '../commands/migrate';
@@ -89,6 +89,10 @@ export declare class CdkToolkit {
89
89
  acknowledge(noticeId: string): Promise<void>;
90
90
  diff(options: DiffOptions): Promise<number>;
91
91
  deploy(options: DeployOptions): Promise<void>;
92
+ /**
93
+ * Detect infrastructure drift for the given stack(s)
94
+ */
95
+ drift(options: DriftOptions): Promise<number>;
92
96
  /**
93
97
  * Roll back the given stack or stacks.
94
98
  */
@@ -298,14 +302,6 @@ interface WatchOptions extends Omit<CfnDeployOptions, 'execute'> {
298
302
  * @default false
299
303
  */
300
304
  force?: boolean;
301
- /**
302
- * Whether to perform a 'hotswap' deployment.
303
- * A 'hotswap' deployment will attempt to short-circuit CloudFormation
304
- * and update the affected resources like Lambda functions directly.
305
- *
306
- * @default - `HotswapMode.FALL_BACK` for regular deployments, `HotswapMode.HOTSWAP_ONLY` for 'watch' deployments
307
- */
308
- readonly hotswap: HotswapMode;
309
305
  /**
310
306
  * The extra string to append to the User-Agent header when performing AWS SDK calls.
311
307
  *
@@ -652,4 +648,19 @@ export interface RefactorOptions {
652
648
  */
653
649
  revert?: boolean;
654
650
  }
651
+ /**
652
+ * Options for the drift command
653
+ */
654
+ export interface DriftOptions {
655
+ /**
656
+ * Criteria for selecting stacks to detect drift on
657
+ */
658
+ readonly selector: StackSelector;
659
+ /**
660
+ * Whether to fail with exit code 1 if drift is detected
661
+ *
662
+ * @default false
663
+ */
664
+ readonly fail?: boolean;
665
+ }
655
666
  export {};