aws-cdk 2.1114.1 → 2.1115.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.
@@ -101,6 +101,11 @@ export declare class CdkToolkit {
101
101
  cliTelemetryStatus(args: any): Promise<void>;
102
102
  cliTelemetry(enable: boolean): Promise<void>;
103
103
  diff(options: DiffOptions): Promise<number>;
104
+ /**
105
+ * Try to create a diff changeset for the given stack.
106
+ * Returns undefined if the stack cannot be accessed and changeSetOnly is not set.
107
+ */
108
+ private tryCreateDiffChangeSet;
104
109
  deploy(options: DeployOptions): Promise<void>;
105
110
  /**
106
111
  * Detect infrastructure drift for the given stack(s)
@@ -239,11 +244,14 @@ export interface DiffOptions {
239
244
  [name: string]: string | undefined;
240
245
  };
241
246
  /**
242
- * Whether or not to create, analyze, and subsequently delete a changeset
247
+ * How to compute the diff.
248
+ * - 'change-set': always use a changeset, fail if it cannot be created
249
+ * - 'template': skip changeset, compare templates directly
250
+ * - 'auto': try changeset, fall back to template on failure
243
251
  *
244
- * @default true
252
+ * @default 'auto'
245
253
  */
246
- readonly changeSet?: boolean;
254
+ readonly method?: 'auto' | 'change-set' | 'template';
247
255
  /**
248
256
  * Whether or not the change set imports resources that already exist.
249
257
  *
@@ -272,21 +280,6 @@ interface CfnDeployOptions {
272
280
  * Role to pass to CloudFormation for deployment
273
281
  */
274
282
  roleArn?: string;
275
- /**
276
- * Optional name to use for the CloudFormation change set.
277
- * If not provided, a name will be generated automatically.
278
- *
279
- * @deprecated Use 'deploymentMethod' instead
280
- */
281
- changeSetName?: string;
282
- /**
283
- * Whether to execute the ChangeSet
284
- * Not providing `execute` parameter will result in execution of ChangeSet
285
- *
286
- * @default true
287
- * @deprecated Use 'deploymentMethod' instead
288
- */
289
- execute?: boolean;
290
283
  /**
291
284
  * Deployment method
292
285
  */