@pulumi/pulumi 3.276.0 → 3.277.0-alpha.x97d0b4f

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.
@@ -142,6 +142,7 @@ export declare class API {
142
142
  orgUsageGet(options: PulumiOrgUsageGetOptions): ReturnType<API["__run"]>;
143
143
  orgUsage(options: PulumiOrgUsageOptions): ReturnType<API["__run"]>;
144
144
  org(options: PulumiOrgOptions): ReturnType<API["__run"]>;
145
+ preview(options: PulumiPreviewOptions): ReturnType<API["__run"]>;
145
146
  projectList(options: PulumiProjectListOptions): ReturnType<API["__run"]>;
146
147
  projectNew(options: PulumiProjectNewOptions, templateOrUrl?: string): ReturnType<API["__run"]>;
147
148
  refresh(options: PulumiRefreshOptions): ReturnType<API["__run"]>;
@@ -4792,6 +4793,117 @@ export interface PulumiOrgUsageGetOptions extends BaseOptions {
4792
4793
  /** Output format. Supported values are: default and json */
4793
4794
  output?: string;
4794
4795
  }
4796
+ /** Options for the `pulumi preview` command. */
4797
+ export interface PulumiPreviewOptions extends BaseOptions {
4798
+ /** Colorize output. Choices are: always, never, raw, auto */
4799
+ color?: string;
4800
+ /** Disable integrity checking of checkpoint files */
4801
+ disableIntegrityChecking?: boolean;
4802
+ /** Show fully-qualified stack names */
4803
+ fullyQualifyStackNames?: boolean;
4804
+ /** Flow log settings to child processes (like plugins) */
4805
+ logflow?: boolean;
4806
+ /** Log to stderr instead of to files */
4807
+ logtostderr?: boolean;
4808
+ /** Enable more precise (and expensive) memory allocation profiles by setting runtime.MemProfileRate */
4809
+ memprofilerate?: number;
4810
+ /** Export OpenTelemetry traces to the specified endpoint. Use file:// for local JSON files, grpc:// or https:// for remote collectors */
4811
+ otelTraces?: string;
4812
+ /** Emit CPU and memory profiles and an execution trace to '[filename].[pid].{cpu,mem,trace}', respectively */
4813
+ profiling?: string;
4814
+ /** Emit tracing to the specified endpoint. Use the `file:` scheme to write tracing data to a local file */
4815
+ tracing?: string;
4816
+ /** Include the tracing header with the given contents. */
4817
+ tracingHeader?: string;
4818
+ /** Enable verbose logging (e.g., v=3); anything >3 is very verbose */
4819
+ verbose?: number;
4820
+ /** Enable the ability to attach a debugger to the program and source based plugins being executed. Can limit debug type to 'program', 'plugins', 'plugin:<name>' or 'all'. */
4821
+ attachDebugger?: string[];
4822
+ /** The address of an existing language runtime host to connect to */
4823
+ client?: string;
4824
+ /** Config to use during the preview and save to the stack config file */
4825
+ config?: string[];
4826
+ /** Use the configuration values in the specified file rather than detecting the file name */
4827
+ configFile?: string;
4828
+ /** Config keys contain a path to a property in a map or list to set */
4829
+ configPath?: boolean;
4830
+ /** [DEPRECATED] Use --neo instead. Enable Pulumi Neo's assistance for improved CLI experience and insights (can also be set with PULUMI_COPILOT environment variable) */
4831
+ copilot?: boolean;
4832
+ /** Print detailed debugging output during resource operations */
4833
+ debug?: boolean;
4834
+ /** Display operation as a rich diff showing the overall change */
4835
+ diff?: boolean;
4836
+ /** Specify a resource URN to ignore. These resources will not be updated. Multiple resources can be specified using --exclude urn1 --exclude urn2. Wildcards (*, **) are also supported */
4837
+ exclude?: string[];
4838
+ /** Allow ignoring of dependent targets discovered but not specified in --exclude list */
4839
+ excludeDependents?: boolean;
4840
+ execAgent?: string;
4841
+ execKind?: string;
4842
+ /** Return an error if any changes are proposed by this preview */
4843
+ expectNoChanges?: boolean;
4844
+ /** Ignore the protect resource option for this operation, previewing the deletion or replacement of protected resources instead of failing */
4845
+ ignoreProtect?: boolean;
4846
+ /** Save any creates seen during the preview into an import file to use with 'pulumi import' */
4847
+ importFile?: string;
4848
+ /** Optional message to associate with the preview operation */
4849
+ message?: string;
4850
+ /** Enable Pulumi Neo's assistance for improved CLI experience and insights (can also be set with PULUMI_NEO environment variable) */
4851
+ neo?: boolean;
4852
+ /** Start a Neo task to help debug errors that occur during the operation */
4853
+ neoTaskOnFailure?: boolean;
4854
+ /** [EXPERIMENTAL] Override an imported environment for this run only, as <env>=<replacement>; repeatable */
4855
+ overrideEnv?: string[];
4856
+ /** Allow P resource operations to run in parallel at once (1 for no parallelism). */
4857
+ parallel?: number;
4858
+ /** Run one or more policy packs as part of this update */
4859
+ policyPack?: string[];
4860
+ /** Path to JSON file containing the config for the policy pack of the corresponding "--policy-pack" flag */
4861
+ policyPackConfig?: string[];
4862
+ /** Refresh the state of the stack's resources before this update */
4863
+ refresh?: string;
4864
+ /** Specify resources to replace. Multiple resources can be specified using --replace urn1 --replace urn2 */
4865
+ replace?: string[];
4866
+ /** Run the program to determine up-to-date state for providers to refresh resources, this only applies if --refresh is set */
4867
+ runProgram?: boolean;
4868
+ /** [PREVIEW] Save the operations proposed by the preview to a plan file at the given path */
4869
+ savePlan?: string;
4870
+ /** Show configuration keys and variables */
4871
+ showConfig?: boolean;
4872
+ /** Display full length of inputs & outputs */
4873
+ showFullOutput?: boolean;
4874
+ /** Show each exempted policy violation instead of a summary */
4875
+ showPolicyExceptions?: boolean;
4876
+ /** Show per-resource policy remediation details instead of a summary */
4877
+ showPolicyRemediations?: boolean;
4878
+ /** Show resources that are being read in, alongside those being managed directly in the stack */
4879
+ showReads?: boolean;
4880
+ /** Show detailed resource replacement creates and deletes instead of a single step */
4881
+ showReplacementSteps?: boolean;
4882
+ /** Show resources that needn't be updated because they haven't changed, alongside those that do */
4883
+ showSames?: boolean;
4884
+ /** Show secrets in plaintext in the CLI output, if used with --save-plan the secrets will also be shown in the plan file. Defaults to `false` */
4885
+ showSecrets?: boolean;
4886
+ /** Skip validation of stack config values against the project config schema */
4887
+ skipConfigValidation?: boolean;
4888
+ /** Skip the up-front provider plugin install step; missing plugins are installed lazily by the engine */
4889
+ skipPluginPreInstall?: boolean;
4890
+ /** The name of the stack to operate on. Defaults to the current stack */
4891
+ stack?: string;
4892
+ /** Suppress display of stack outputs (in case they contain sensitive values) */
4893
+ suppressOutputs?: boolean;
4894
+ /** Suppress display of the state permalink */
4895
+ suppressPermalink?: string;
4896
+ /** Suppress display of periodic progress dots */
4897
+ suppressProgress?: boolean;
4898
+ /** Specify a single resource URN to update. Other resources will not be updated. Multiple resources can be specified using --target urn1 --target urn2 */
4899
+ target?: string[];
4900
+ /** Allow updating of dependent targets discovered but not specified in --target list */
4901
+ targetDependents?: boolean;
4902
+ /** Specify a single resource URN to replace. Other resources will not be updated. Shorthand for --target urn --replace urn. */
4903
+ targetReplace?: string[];
4904
+ /** Display full URNs instead of short resource names */
4905
+ urns?: boolean;
4906
+ }
4795
4907
  /** Options for the `pulumi project list` command. */
4796
4908
  export interface PulumiProjectListOptions extends BaseOptions {
4797
4909
  /** Colorize output. Choices are: always, never, raw, auto */
@@ -5084,6 +5196,8 @@ export interface PulumiStateMoveOptions extends BaseOptions {
5084
5196
  dest?: string;
5085
5197
  /** Include all the parents of the moved resources as well */
5086
5198
  includeParents?: boolean;
5199
+ /** URN of a resource in the destination stack to parent moved resources under. Mutually exclusive with --include-parents */
5200
+ parent?: string;
5087
5201
  /** The name of the stack to move resources from */
5088
5202
  source?: string;
5089
5203
  }
@@ -8338,6 +8338,202 @@ class API {
8338
8338
  }
8339
8339
  return this.__run(options, __final);
8340
8340
  }
8341
+ preview(options) {
8342
+ const __final = [];
8343
+ __final.push("preview");
8344
+ const __flags = [];
8345
+ __flags.push("--output", "" + "json");
8346
+ if (options.color != null) {
8347
+ __flags.push("--color", "" + options.color);
8348
+ }
8349
+ if (options.disableIntegrityChecking) {
8350
+ __flags.push("--disable-integrity-checking");
8351
+ }
8352
+ if (options.fullyQualifyStackNames) {
8353
+ __flags.push("--fully-qualify-stack-names");
8354
+ }
8355
+ if (options.logflow) {
8356
+ __flags.push("--logflow");
8357
+ }
8358
+ if (options.logtostderr) {
8359
+ __flags.push("--logtostderr");
8360
+ }
8361
+ if (options.memprofilerate != null) {
8362
+ __flags.push("--memprofilerate", "" + options.memprofilerate);
8363
+ }
8364
+ if (options.otelTraces != null) {
8365
+ __flags.push("--otel-traces", "" + options.otelTraces);
8366
+ }
8367
+ if (options.profiling != null) {
8368
+ __flags.push("--profiling", "" + options.profiling);
8369
+ }
8370
+ if (options.tracing != null) {
8371
+ __flags.push("--tracing", "" + options.tracing);
8372
+ }
8373
+ if (options.tracingHeader != null) {
8374
+ __flags.push("--tracing-header", "" + options.tracingHeader);
8375
+ }
8376
+ if (options.verbose != null) {
8377
+ __flags.push("--verbose", "" + options.verbose);
8378
+ }
8379
+ for (const __item of options.attachDebugger ?? []) {
8380
+ if (__item != null) {
8381
+ __flags.push("--attach-debugger", "" + __item);
8382
+ }
8383
+ }
8384
+ if (options.client != null) {
8385
+ __flags.push("--client", "" + options.client);
8386
+ }
8387
+ for (const __item of options.config ?? []) {
8388
+ if (__item != null) {
8389
+ __flags.push("--config", "" + __item);
8390
+ }
8391
+ }
8392
+ if (options.configFile != null) {
8393
+ __flags.push("--config-file", "" + options.configFile);
8394
+ }
8395
+ if (options.configPath) {
8396
+ __flags.push("--config-path");
8397
+ }
8398
+ if (options.copilot) {
8399
+ __flags.push("--copilot");
8400
+ }
8401
+ if (options.debug) {
8402
+ __flags.push("--debug");
8403
+ }
8404
+ if (options.diff) {
8405
+ __flags.push("--diff");
8406
+ }
8407
+ for (const __item of options.exclude ?? []) {
8408
+ if (__item != null) {
8409
+ __flags.push("--exclude", "" + __item);
8410
+ }
8411
+ }
8412
+ if (options.excludeDependents) {
8413
+ __flags.push("--exclude-dependents");
8414
+ }
8415
+ if (options.execAgent != null) {
8416
+ __flags.push("--exec-agent", "" + options.execAgent);
8417
+ }
8418
+ if (options.execKind != null) {
8419
+ __flags.push("--exec-kind", "" + options.execKind);
8420
+ }
8421
+ if (options.expectNoChanges) {
8422
+ __flags.push("--expect-no-changes");
8423
+ }
8424
+ if (options.ignoreProtect) {
8425
+ __flags.push("--ignore-protect");
8426
+ }
8427
+ if (options.importFile != null) {
8428
+ __flags.push("--import-file", "" + options.importFile);
8429
+ }
8430
+ if (options.message != null) {
8431
+ __flags.push("--message", "" + options.message);
8432
+ }
8433
+ if (options.neo) {
8434
+ __flags.push("--neo");
8435
+ }
8436
+ if (options.neoTaskOnFailure) {
8437
+ __flags.push("--neo-task-on-failure");
8438
+ }
8439
+ for (const __item of options.overrideEnv ?? []) {
8440
+ if (__item != null) {
8441
+ __flags.push("--override-env", "" + __item);
8442
+ }
8443
+ }
8444
+ if (options.parallel != null) {
8445
+ __flags.push("--parallel", "" + options.parallel);
8446
+ }
8447
+ for (const __item of options.policyPack ?? []) {
8448
+ if (__item != null) {
8449
+ __flags.push("--policy-pack", "" + __item);
8450
+ }
8451
+ }
8452
+ for (const __item of options.policyPackConfig ?? []) {
8453
+ if (__item != null) {
8454
+ __flags.push("--policy-pack-config", "" + __item);
8455
+ }
8456
+ }
8457
+ if (options.refresh != null) {
8458
+ __flags.push("--refresh", "" + options.refresh);
8459
+ }
8460
+ for (const __item of options.replace ?? []) {
8461
+ if (__item != null) {
8462
+ __flags.push("--replace", "" + __item);
8463
+ }
8464
+ }
8465
+ if (options.runProgram) {
8466
+ __flags.push("--run-program");
8467
+ }
8468
+ if (options.savePlan != null) {
8469
+ __flags.push("--save-plan", "" + options.savePlan);
8470
+ }
8471
+ if (options.showConfig) {
8472
+ __flags.push("--show-config");
8473
+ }
8474
+ if (options.showFullOutput) {
8475
+ __flags.push("--show-full-output");
8476
+ }
8477
+ if (options.showPolicyExceptions) {
8478
+ __flags.push("--show-policy-exceptions");
8479
+ }
8480
+ if (options.showPolicyRemediations) {
8481
+ __flags.push("--show-policy-remediations");
8482
+ }
8483
+ if (options.showReads) {
8484
+ __flags.push("--show-reads");
8485
+ }
8486
+ if (options.showReplacementSteps) {
8487
+ __flags.push("--show-replacement-steps");
8488
+ }
8489
+ if (options.showSames) {
8490
+ __flags.push("--show-sames");
8491
+ }
8492
+ if (options.showSecrets) {
8493
+ __flags.push("--show-secrets");
8494
+ }
8495
+ if (options.skipConfigValidation) {
8496
+ __flags.push("--skip-config-validation");
8497
+ }
8498
+ if (options.skipPluginPreInstall) {
8499
+ __flags.push("--skip-plugin-pre-install");
8500
+ }
8501
+ if (options.stack != null) {
8502
+ __flags.push("--stack", "" + options.stack);
8503
+ }
8504
+ if (options.suppressOutputs) {
8505
+ __flags.push("--suppress-outputs");
8506
+ }
8507
+ if (options.suppressPermalink != null) {
8508
+ __flags.push("--suppress-permalink", "" + options.suppressPermalink);
8509
+ }
8510
+ if (options.suppressProgress) {
8511
+ __flags.push("--suppress-progress");
8512
+ }
8513
+ for (const __item of options.target ?? []) {
8514
+ if (__item != null) {
8515
+ __flags.push("--target", "" + __item);
8516
+ }
8517
+ }
8518
+ if (options.targetDependents) {
8519
+ __flags.push("--target-dependents");
8520
+ }
8521
+ for (const __item of options.targetReplace ?? []) {
8522
+ if (__item != null) {
8523
+ __flags.push("--target-replace", "" + __item);
8524
+ }
8525
+ }
8526
+ if (options.urns) {
8527
+ __flags.push("--urns");
8528
+ }
8529
+ __final.push(...__flags);
8530
+ const __arguments = [];
8531
+ if (__arguments.length > 0) {
8532
+ __final.push("--");
8533
+ __final.push(...__arguments);
8534
+ }
8535
+ return this.__run(options, __final);
8536
+ }
8341
8537
  projectList(options) {
8342
8538
  const __final = [];
8343
8539
  __final.push("project");
@@ -8864,6 +9060,9 @@ class API {
8864
9060
  if (options.includeParents) {
8865
9061
  __flags.push("--include-parents");
8866
9062
  }
9063
+ if (options.parent != null) {
9064
+ __flags.push("--parent", "" + options.parent);
9065
+ }
8867
9066
  if (options.source != null) {
8868
9067
  __flags.push("--source", "" + options.source);
8869
9068
  }