@pulumi/pulumi 3.273.0 → 3.274.0-alpha.x2e30c33

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.
@@ -94,10 +94,15 @@ export declare class API {
94
94
  logsRemove(options: PulumiLogsRemoveOptions): ReturnType<API["__run"]>;
95
95
  logsShare(options: PulumiLogsShareOptions, filename?: string): ReturnType<API["__run"]>;
96
96
  new(options: PulumiNewOptions, templateOrUrl?: string): ReturnType<API["__run"]>;
97
+ orgAuditLogExport(options: PulumiOrgAuditLogExportOptions): ReturnType<API["__run"]>;
98
+ orgAuditLogList(options: PulumiOrgAuditLogListOptions): ReturnType<API["__run"]>;
99
+ orgAuditLog(options: PulumiOrgAuditLogOptions): ReturnType<API["__run"]>;
97
100
  orgGetDefault(options: PulumiOrgGetDefaultOptions): ReturnType<API["__run"]>;
98
101
  orgSearchAi(options: PulumiOrgSearchAiOptions): ReturnType<API["__run"]>;
99
102
  orgSearch(options: PulumiOrgSearchOptions): ReturnType<API["__run"]>;
100
103
  orgSetDefault(options: PulumiOrgSetDefaultOptions, name: string): ReturnType<API["__run"]>;
104
+ orgUsageGet(options: PulumiOrgUsageGetOptions): ReturnType<API["__run"]>;
105
+ orgUsage(options: PulumiOrgUsageOptions): ReturnType<API["__run"]>;
101
106
  org(options: PulumiOrgOptions): ReturnType<API["__run"]>;
102
107
  refresh(options: PulumiRefreshOptions): ReturnType<API["__run"]>;
103
108
  stateEdit(options: PulumiStateEditOptions): ReturnType<API["__run"]>;
@@ -2965,6 +2970,113 @@ export interface PulumiOrgOptions extends BaseOptions {
2965
2970
  /** Enable verbose logging (e.g., v=3); anything >3 is very verbose */
2966
2971
  verbose?: number;
2967
2972
  }
2973
+ /** Options for the `pulumi org audit-log` command. */
2974
+ export interface PulumiOrgAuditLogOptions extends BaseOptions {
2975
+ /** Colorize output. Choices are: always, never, raw, auto */
2976
+ color?: string;
2977
+ /** Disable integrity checking of checkpoint files */
2978
+ disableIntegrityChecking?: boolean;
2979
+ /** Show fully-qualified stack names */
2980
+ fullyQualifyStackNames?: boolean;
2981
+ /** Flow log settings to child processes (like plugins) */
2982
+ logflow?: boolean;
2983
+ /** Log to stderr instead of to files */
2984
+ logtostderr?: boolean;
2985
+ /** Enable more precise (and expensive) memory allocation profiles by setting runtime.MemProfileRate */
2986
+ memprofilerate?: number;
2987
+ /** Export OpenTelemetry traces to the specified endpoint. Use file:// for local JSON files, grpc:// or https:// for remote collectors */
2988
+ otelTraces?: string;
2989
+ /** Emit CPU and memory profiles and an execution trace to '[filename].[pid].{cpu,mem,trace}', respectively */
2990
+ profiling?: string;
2991
+ /** Emit tracing to the specified endpoint. Use the `file:` scheme to write tracing data to a local file */
2992
+ tracing?: string;
2993
+ /** Include the tracing header with the given contents. */
2994
+ tracingHeader?: string;
2995
+ /** Enable verbose logging (e.g., v=3); anything >3 is very verbose */
2996
+ verbose?: number;
2997
+ }
2998
+ /** Options for the `pulumi org audit-log export` command. */
2999
+ export interface PulumiOrgAuditLogExportOptions extends BaseOptions {
3000
+ /** Colorize output. Choices are: always, never, raw, auto */
3001
+ color?: string;
3002
+ /** Disable integrity checking of checkpoint files */
3003
+ disableIntegrityChecking?: boolean;
3004
+ /** Show fully-qualified stack names */
3005
+ fullyQualifyStackNames?: boolean;
3006
+ /** Flow log settings to child processes (like plugins) */
3007
+ logflow?: boolean;
3008
+ /** Log to stderr instead of to files */
3009
+ logtostderr?: boolean;
3010
+ /** Enable more precise (and expensive) memory allocation profiles by setting runtime.MemProfileRate */
3011
+ memprofilerate?: number;
3012
+ /** Export OpenTelemetry traces to the specified endpoint. Use file:// for local JSON files, grpc:// or https:// for remote collectors */
3013
+ otelTraces?: string;
3014
+ /** Emit CPU and memory profiles and an execution trace to '[filename].[pid].{cpu,mem,trace}', respectively */
3015
+ profiling?: string;
3016
+ /** Emit tracing to the specified endpoint. Use the `file:` scheme to write tracing data to a local file */
3017
+ tracing?: string;
3018
+ /** Include the tracing header with the given contents. */
3019
+ tracingHeader?: string;
3020
+ /** Enable verbose logging (e.g., v=3); anything >3 is very verbose */
3021
+ verbose?: number;
3022
+ /** Truncate the exported response to the given number of bytes (0 returns the full response) */
3023
+ count?: number;
3024
+ /** The upper bound of the time range, as a Unix timestamp */
3025
+ endTime?: string;
3026
+ /** Filter by event type */
3027
+ eventType?: string;
3028
+ /** The export format. One of: csv, cef */
3029
+ format?: string;
3030
+ /** The organization to export audit logs for */
3031
+ org?: string;
3032
+ /** Output format. Supported values are: default and json */
3033
+ output?: string;
3034
+ /** The lower bound of the time range, as a Unix timestamp */
3035
+ startTime?: string;
3036
+ /** Filter by user login */
3037
+ user?: string;
3038
+ }
3039
+ /** Options for the `pulumi org audit-log list` command. */
3040
+ export interface PulumiOrgAuditLogListOptions extends BaseOptions {
3041
+ /** Colorize output. Choices are: always, never, raw, auto */
3042
+ color?: string;
3043
+ /** Disable integrity checking of checkpoint files */
3044
+ disableIntegrityChecking?: boolean;
3045
+ /** Show fully-qualified stack names */
3046
+ fullyQualifyStackNames?: boolean;
3047
+ /** Flow log settings to child processes (like plugins) */
3048
+ logflow?: boolean;
3049
+ /** Log to stderr instead of to files */
3050
+ logtostderr?: boolean;
3051
+ /** Enable more precise (and expensive) memory allocation profiles by setting runtime.MemProfileRate */
3052
+ memprofilerate?: number;
3053
+ /** Export OpenTelemetry traces to the specified endpoint. Use file:// for local JSON files, grpc:// or https:// for remote collectors */
3054
+ otelTraces?: string;
3055
+ /** Emit CPU and memory profiles and an execution trace to '[filename].[pid].{cpu,mem,trace}', respectively */
3056
+ profiling?: string;
3057
+ /** Emit tracing to the specified endpoint. Use the `file:` scheme to write tracing data to a local file */
3058
+ tracing?: string;
3059
+ /** Include the tracing header with the given contents. */
3060
+ tracingHeader?: string;
3061
+ /** Enable verbose logging (e.g., v=3); anything >3 is very verbose */
3062
+ verbose?: number;
3063
+ /** Return all matching events; mutually exclusive with --count */
3064
+ all?: boolean;
3065
+ /** Maximum number of events to return. Defaults to the size of the first page; larger values auto-paginate */
3066
+ count?: number;
3067
+ /** The upper bound of the time range, as a Unix timestamp */
3068
+ endTime?: string;
3069
+ /** Filter by event type */
3070
+ eventType?: string;
3071
+ /** The organization to list audit logs for */
3072
+ org?: string;
3073
+ /** Output format. Supported values are: default and json */
3074
+ output?: string;
3075
+ /** The lower bound of the time range, as a Unix timestamp */
3076
+ startTime?: string;
3077
+ /** Filter by user login */
3078
+ user?: string;
3079
+ }
2968
3080
  /** Options for the `pulumi org get-default` command. */
2969
3081
  export interface PulumiOrgGetDefaultOptions extends BaseOptions {
2970
3082
  /** Colorize output. Choices are: always, never, raw, auto */
@@ -3090,6 +3202,66 @@ export interface PulumiOrgSetDefaultOptions extends BaseOptions {
3090
3202
  /** Enable verbose logging (e.g., v=3); anything >3 is very verbose */
3091
3203
  verbose?: number;
3092
3204
  }
3205
+ /** Options for the `pulumi org usage` command. */
3206
+ export interface PulumiOrgUsageOptions extends BaseOptions {
3207
+ /** Colorize output. Choices are: always, never, raw, auto */
3208
+ color?: string;
3209
+ /** Disable integrity checking of checkpoint files */
3210
+ disableIntegrityChecking?: boolean;
3211
+ /** Show fully-qualified stack names */
3212
+ fullyQualifyStackNames?: boolean;
3213
+ /** Flow log settings to child processes (like plugins) */
3214
+ logflow?: boolean;
3215
+ /** Log to stderr instead of to files */
3216
+ logtostderr?: boolean;
3217
+ /** Enable more precise (and expensive) memory allocation profiles by setting runtime.MemProfileRate */
3218
+ memprofilerate?: number;
3219
+ /** Export OpenTelemetry traces to the specified endpoint. Use file:// for local JSON files, grpc:// or https:// for remote collectors */
3220
+ otelTraces?: string;
3221
+ /** Emit CPU and memory profiles and an execution trace to '[filename].[pid].{cpu,mem,trace}', respectively */
3222
+ profiling?: string;
3223
+ /** Emit tracing to the specified endpoint. Use the `file:` scheme to write tracing data to a local file */
3224
+ tracing?: string;
3225
+ /** Include the tracing header with the given contents. */
3226
+ tracingHeader?: string;
3227
+ /** Enable verbose logging (e.g., v=3); anything >3 is very verbose */
3228
+ verbose?: number;
3229
+ }
3230
+ /** Options for the `pulumi org usage get` command. */
3231
+ export interface PulumiOrgUsageGetOptions extends BaseOptions {
3232
+ /** Colorize output. Choices are: always, never, raw, auto */
3233
+ color?: string;
3234
+ /** Disable integrity checking of checkpoint files */
3235
+ disableIntegrityChecking?: boolean;
3236
+ /** Show fully-qualified stack names */
3237
+ fullyQualifyStackNames?: boolean;
3238
+ /** Flow log settings to child processes (like plugins) */
3239
+ logflow?: boolean;
3240
+ /** Log to stderr instead of to files */
3241
+ logtostderr?: boolean;
3242
+ /** Enable more precise (and expensive) memory allocation profiles by setting runtime.MemProfileRate */
3243
+ memprofilerate?: number;
3244
+ /** Export OpenTelemetry traces to the specified endpoint. Use file:// for local JSON files, grpc:// or https:// for remote collectors */
3245
+ otelTraces?: string;
3246
+ /** Emit CPU and memory profiles and an execution trace to '[filename].[pid].{cpu,mem,trace}', respectively */
3247
+ profiling?: string;
3248
+ /** Emit tracing to the specified endpoint. Use the `file:` scheme to write tracing data to a local file */
3249
+ tracing?: string;
3250
+ /** Include the tracing header with the given contents. */
3251
+ tracingHeader?: string;
3252
+ /** Enable verbose logging (e.g., v=3); anything >3 is very verbose */
3253
+ verbose?: number;
3254
+ /** Time granularity for aggregation. One of: hourly, daily, monthly */
3255
+ granularity?: string;
3256
+ /** Number of days to look back from --lookback-start (or the current time) */
3257
+ lookbackDays?: number;
3258
+ /** Unix timestamp (seconds) marking the end of the lookback window */
3259
+ lookbackStart?: number;
3260
+ /** Organization to fetch usage for (defaults to the current default org) */
3261
+ org?: string;
3262
+ /** Output format. Supported values are: default and json */
3263
+ output?: string;
3264
+ }
3093
3265
  /** Options for the `pulumi refresh` command. */
3094
3266
  export interface PulumiRefreshOptions extends BaseOptions {
3095
3267
  /** Colorize output. Choices are: always, never, raw, auto */
@@ -5105,6 +5105,194 @@ class API {
5105
5105
  }
5106
5106
  return this.__run(options, __final);
5107
5107
  }
5108
+ orgAuditLogExport(options) {
5109
+ const __final = [];
5110
+ __final.push("org");
5111
+ __final.push("audit-log");
5112
+ __final.push("export");
5113
+ const __flags = [];
5114
+ if (options.color != null) {
5115
+ __flags.push("--color", "" + options.color);
5116
+ }
5117
+ if (options.disableIntegrityChecking) {
5118
+ __flags.push("--disable-integrity-checking");
5119
+ }
5120
+ if (options.fullyQualifyStackNames) {
5121
+ __flags.push("--fully-qualify-stack-names");
5122
+ }
5123
+ if (options.logflow) {
5124
+ __flags.push("--logflow");
5125
+ }
5126
+ if (options.logtostderr) {
5127
+ __flags.push("--logtostderr");
5128
+ }
5129
+ if (options.memprofilerate != null) {
5130
+ __flags.push("--memprofilerate", "" + options.memprofilerate);
5131
+ }
5132
+ if (options.otelTraces != null) {
5133
+ __flags.push("--otel-traces", "" + options.otelTraces);
5134
+ }
5135
+ if (options.profiling != null) {
5136
+ __flags.push("--profiling", "" + options.profiling);
5137
+ }
5138
+ if (options.tracing != null) {
5139
+ __flags.push("--tracing", "" + options.tracing);
5140
+ }
5141
+ if (options.tracingHeader != null) {
5142
+ __flags.push("--tracing-header", "" + options.tracingHeader);
5143
+ }
5144
+ if (options.verbose != null) {
5145
+ __flags.push("--verbose", "" + options.verbose);
5146
+ }
5147
+ if (options.count != null) {
5148
+ __flags.push("--count", "" + options.count);
5149
+ }
5150
+ if (options.endTime != null) {
5151
+ __flags.push("--end-time", "" + options.endTime);
5152
+ }
5153
+ if (options.eventType != null) {
5154
+ __flags.push("--event-type", "" + options.eventType);
5155
+ }
5156
+ if (options.format != null) {
5157
+ __flags.push("--format", "" + options.format);
5158
+ }
5159
+ if (options.org != null) {
5160
+ __flags.push("--org", "" + options.org);
5161
+ }
5162
+ if (options.output != null) {
5163
+ __flags.push("--output", "" + options.output);
5164
+ }
5165
+ if (options.startTime != null) {
5166
+ __flags.push("--start-time", "" + options.startTime);
5167
+ }
5168
+ if (options.user != null) {
5169
+ __flags.push("--user", "" + options.user);
5170
+ }
5171
+ __final.push(...__flags);
5172
+ const __arguments = [];
5173
+ if (__arguments.length > 0) {
5174
+ __final.push("--");
5175
+ __final.push(...__arguments);
5176
+ }
5177
+ return this.__run(options, __final);
5178
+ }
5179
+ orgAuditLogList(options) {
5180
+ const __final = [];
5181
+ __final.push("org");
5182
+ __final.push("audit-log");
5183
+ __final.push("list");
5184
+ const __flags = [];
5185
+ if (options.color != null) {
5186
+ __flags.push("--color", "" + options.color);
5187
+ }
5188
+ if (options.disableIntegrityChecking) {
5189
+ __flags.push("--disable-integrity-checking");
5190
+ }
5191
+ if (options.fullyQualifyStackNames) {
5192
+ __flags.push("--fully-qualify-stack-names");
5193
+ }
5194
+ if (options.logflow) {
5195
+ __flags.push("--logflow");
5196
+ }
5197
+ if (options.logtostderr) {
5198
+ __flags.push("--logtostderr");
5199
+ }
5200
+ if (options.memprofilerate != null) {
5201
+ __flags.push("--memprofilerate", "" + options.memprofilerate);
5202
+ }
5203
+ if (options.otelTraces != null) {
5204
+ __flags.push("--otel-traces", "" + options.otelTraces);
5205
+ }
5206
+ if (options.profiling != null) {
5207
+ __flags.push("--profiling", "" + options.profiling);
5208
+ }
5209
+ if (options.tracing != null) {
5210
+ __flags.push("--tracing", "" + options.tracing);
5211
+ }
5212
+ if (options.tracingHeader != null) {
5213
+ __flags.push("--tracing-header", "" + options.tracingHeader);
5214
+ }
5215
+ if (options.verbose != null) {
5216
+ __flags.push("--verbose", "" + options.verbose);
5217
+ }
5218
+ if (options.all) {
5219
+ __flags.push("--all");
5220
+ }
5221
+ if (options.count != null) {
5222
+ __flags.push("--count", "" + options.count);
5223
+ }
5224
+ if (options.endTime != null) {
5225
+ __flags.push("--end-time", "" + options.endTime);
5226
+ }
5227
+ if (options.eventType != null) {
5228
+ __flags.push("--event-type", "" + options.eventType);
5229
+ }
5230
+ if (options.org != null) {
5231
+ __flags.push("--org", "" + options.org);
5232
+ }
5233
+ if (options.output != null) {
5234
+ __flags.push("--output", "" + options.output);
5235
+ }
5236
+ if (options.startTime != null) {
5237
+ __flags.push("--start-time", "" + options.startTime);
5238
+ }
5239
+ if (options.user != null) {
5240
+ __flags.push("--user", "" + options.user);
5241
+ }
5242
+ __final.push(...__flags);
5243
+ const __arguments = [];
5244
+ if (__arguments.length > 0) {
5245
+ __final.push("--");
5246
+ __final.push(...__arguments);
5247
+ }
5248
+ return this.__run(options, __final);
5249
+ }
5250
+ orgAuditLog(options) {
5251
+ const __final = [];
5252
+ __final.push("org");
5253
+ __final.push("audit-log");
5254
+ const __flags = [];
5255
+ if (options.color != null) {
5256
+ __flags.push("--color", "" + options.color);
5257
+ }
5258
+ if (options.disableIntegrityChecking) {
5259
+ __flags.push("--disable-integrity-checking");
5260
+ }
5261
+ if (options.fullyQualifyStackNames) {
5262
+ __flags.push("--fully-qualify-stack-names");
5263
+ }
5264
+ if (options.logflow) {
5265
+ __flags.push("--logflow");
5266
+ }
5267
+ if (options.logtostderr) {
5268
+ __flags.push("--logtostderr");
5269
+ }
5270
+ if (options.memprofilerate != null) {
5271
+ __flags.push("--memprofilerate", "" + options.memprofilerate);
5272
+ }
5273
+ if (options.otelTraces != null) {
5274
+ __flags.push("--otel-traces", "" + options.otelTraces);
5275
+ }
5276
+ if (options.profiling != null) {
5277
+ __flags.push("--profiling", "" + options.profiling);
5278
+ }
5279
+ if (options.tracing != null) {
5280
+ __flags.push("--tracing", "" + options.tracing);
5281
+ }
5282
+ if (options.tracingHeader != null) {
5283
+ __flags.push("--tracing-header", "" + options.tracingHeader);
5284
+ }
5285
+ if (options.verbose != null) {
5286
+ __flags.push("--verbose", "" + options.verbose);
5287
+ }
5288
+ __final.push(...__flags);
5289
+ const __arguments = [];
5290
+ if (__arguments.length > 0) {
5291
+ __final.push("--");
5292
+ __final.push(...__arguments);
5293
+ }
5294
+ return this.__run(options, __final);
5295
+ }
5108
5296
  orgGetDefault(options) {
5109
5297
  const __final = [];
5110
5298
  __final.push("org");
@@ -5323,6 +5511,114 @@ class API {
5323
5511
  }
5324
5512
  return this.__run(options, __final);
5325
5513
  }
5514
+ orgUsageGet(options) {
5515
+ const __final = [];
5516
+ __final.push("org");
5517
+ __final.push("usage");
5518
+ __final.push("get");
5519
+ const __flags = [];
5520
+ if (options.color != null) {
5521
+ __flags.push("--color", "" + options.color);
5522
+ }
5523
+ if (options.disableIntegrityChecking) {
5524
+ __flags.push("--disable-integrity-checking");
5525
+ }
5526
+ if (options.fullyQualifyStackNames) {
5527
+ __flags.push("--fully-qualify-stack-names");
5528
+ }
5529
+ if (options.logflow) {
5530
+ __flags.push("--logflow");
5531
+ }
5532
+ if (options.logtostderr) {
5533
+ __flags.push("--logtostderr");
5534
+ }
5535
+ if (options.memprofilerate != null) {
5536
+ __flags.push("--memprofilerate", "" + options.memprofilerate);
5537
+ }
5538
+ if (options.otelTraces != null) {
5539
+ __flags.push("--otel-traces", "" + options.otelTraces);
5540
+ }
5541
+ if (options.profiling != null) {
5542
+ __flags.push("--profiling", "" + options.profiling);
5543
+ }
5544
+ if (options.tracing != null) {
5545
+ __flags.push("--tracing", "" + options.tracing);
5546
+ }
5547
+ if (options.tracingHeader != null) {
5548
+ __flags.push("--tracing-header", "" + options.tracingHeader);
5549
+ }
5550
+ if (options.verbose != null) {
5551
+ __flags.push("--verbose", "" + options.verbose);
5552
+ }
5553
+ if (options.granularity != null) {
5554
+ __flags.push("--granularity", "" + options.granularity);
5555
+ }
5556
+ if (options.lookbackDays != null) {
5557
+ __flags.push("--lookback-days", "" + options.lookbackDays);
5558
+ }
5559
+ if (options.lookbackStart != null) {
5560
+ __flags.push("--lookback-start", "" + options.lookbackStart);
5561
+ }
5562
+ if (options.org != null) {
5563
+ __flags.push("--org", "" + options.org);
5564
+ }
5565
+ if (options.output != null) {
5566
+ __flags.push("--output", "" + options.output);
5567
+ }
5568
+ __final.push(...__flags);
5569
+ const __arguments = [];
5570
+ if (__arguments.length > 0) {
5571
+ __final.push("--");
5572
+ __final.push(...__arguments);
5573
+ }
5574
+ return this.__run(options, __final);
5575
+ }
5576
+ orgUsage(options) {
5577
+ const __final = [];
5578
+ __final.push("org");
5579
+ __final.push("usage");
5580
+ const __flags = [];
5581
+ if (options.color != null) {
5582
+ __flags.push("--color", "" + options.color);
5583
+ }
5584
+ if (options.disableIntegrityChecking) {
5585
+ __flags.push("--disable-integrity-checking");
5586
+ }
5587
+ if (options.fullyQualifyStackNames) {
5588
+ __flags.push("--fully-qualify-stack-names");
5589
+ }
5590
+ if (options.logflow) {
5591
+ __flags.push("--logflow");
5592
+ }
5593
+ if (options.logtostderr) {
5594
+ __flags.push("--logtostderr");
5595
+ }
5596
+ if (options.memprofilerate != null) {
5597
+ __flags.push("--memprofilerate", "" + options.memprofilerate);
5598
+ }
5599
+ if (options.otelTraces != null) {
5600
+ __flags.push("--otel-traces", "" + options.otelTraces);
5601
+ }
5602
+ if (options.profiling != null) {
5603
+ __flags.push("--profiling", "" + options.profiling);
5604
+ }
5605
+ if (options.tracing != null) {
5606
+ __flags.push("--tracing", "" + options.tracing);
5607
+ }
5608
+ if (options.tracingHeader != null) {
5609
+ __flags.push("--tracing-header", "" + options.tracingHeader);
5610
+ }
5611
+ if (options.verbose != null) {
5612
+ __flags.push("--verbose", "" + options.verbose);
5613
+ }
5614
+ __final.push(...__flags);
5615
+ const __arguments = [];
5616
+ if (__arguments.length > 0) {
5617
+ __final.push("--");
5618
+ __final.push(...__arguments);
5619
+ }
5620
+ return this.__run(options, __final);
5621
+ }
5326
5622
  org(options) {
5327
5623
  const __final = [];
5328
5624
  __final.push("org");