@pulumi/digitalocean 4.71.0-alpha.1781853585 → 4.71.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/types/output.d.ts CHANGED
@@ -483,21 +483,21 @@ export interface AppSpecIngress {
483
483
  * Rules for configuring HTTP ingress for component routes, CORS, rewrites, and redirects.
484
484
  */
485
485
  rules?: outputs.AppSpecIngressRule[];
486
- secureHeader: outputs.AppSpecIngressSecureHeader;
486
+ secureHeader?: outputs.AppSpecIngressSecureHeader;
487
487
  }
488
488
  export interface AppSpecIngressRule {
489
489
  /**
490
490
  * The component to route to. Only one of `component` or `redirect` may be set.
491
491
  */
492
- component: outputs.AppSpecIngressRuleComponent;
492
+ component?: outputs.AppSpecIngressRuleComponent;
493
493
  /**
494
494
  * The [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) policies of the app.
495
495
  */
496
- cors: outputs.AppSpecIngressRuleCors;
496
+ cors?: outputs.AppSpecIngressRuleCors;
497
497
  /**
498
498
  * The match configuration for the rule
499
499
  */
500
- match: outputs.AppSpecIngressRuleMatch;
500
+ match?: outputs.AppSpecIngressRuleMatch;
501
501
  /**
502
502
  * The redirect configuration for the rule. Only one of `component` or `redirect` may be set.
503
503
  */
@@ -507,15 +507,15 @@ export interface AppSpecIngressRuleComponent {
507
507
  /**
508
508
  * The name of the component to route to.
509
509
  */
510
- name: string;
510
+ name?: string;
511
511
  /**
512
512
  * An optional boolean flag to preserve the path that is forwarded to the backend service. By default, the HTTP request path will be trimmed from the left when forwarded to the component.
513
513
  */
514
- preservePathPrefix: boolean;
514
+ preservePathPrefix?: boolean;
515
515
  /**
516
516
  * An optional field that will rewrite the path of the component to be what is specified here. This is mutually exclusive with `preservePathPrefix`.
517
517
  */
518
- rewrite: string;
518
+ rewrite?: string;
519
519
  }
520
520
  export interface AppSpecIngressRuleCors {
521
521
  /**
@@ -563,23 +563,23 @@ export interface AppSpecIngressRuleMatch {
563
563
  /**
564
564
  * The authority (domain) to match on.
565
565
  */
566
- authority: outputs.AppSpecIngressRuleMatchAuthority;
566
+ authority?: outputs.AppSpecIngressRuleMatchAuthority;
567
567
  /**
568
568
  * The path to match on.
569
569
  */
570
- path: outputs.AppSpecIngressRuleMatchPath;
570
+ path?: outputs.AppSpecIngressRuleMatchPath;
571
571
  }
572
572
  export interface AppSpecIngressRuleMatchAuthority {
573
573
  /**
574
574
  * Exact match.
575
575
  */
576
- exact: string;
576
+ exact?: string;
577
577
  }
578
578
  export interface AppSpecIngressRuleMatchPath {
579
579
  /**
580
580
  * Prefix-based match.
581
581
  */
582
- prefix: string;
582
+ prefix?: string;
583
583
  }
584
584
  export interface AppSpecIngressRuleRedirect {
585
585
  /**
@@ -607,8 +607,8 @@ export interface AppSpecIngressSecureHeader {
607
607
  /**
608
608
  * The name of the environment variable.
609
609
  */
610
- key: string;
611
- value: string;
610
+ key?: string;
611
+ value?: string;
612
612
  }
613
613
  export interface AppSpecJob {
614
614
  /**
@@ -1005,6 +1005,10 @@ export interface AppSpecService {
1005
1005
  * A list of ports on which this service will listen for internal traffic.
1006
1006
  */
1007
1007
  internalPorts: number[];
1008
+ /**
1009
+ * A liveness health check to determine if the worker should be restarted. Workers do not accept inbound traffic, so only HTTP liveness probes are supported (TCP is not).
1010
+ */
1011
+ livenessHealthCheck?: outputs.AppSpecServiceLivenessHealthCheck;
1008
1012
  /**
1009
1013
  * Describes a log forwarding destination.
1010
1014
  */
@@ -1022,7 +1026,7 @@ export interface AppSpecService {
1022
1026
  /**
1023
1027
  * An optional run command to override the component's default.
1024
1028
  */
1025
- runCommand: string;
1029
+ runCommand?: string;
1026
1030
  /**
1027
1031
  * An optional path to the working directory to use for the build.
1028
1032
  */
@@ -1282,6 +1286,36 @@ export interface AppSpecServiceImageDeployOnPush {
1282
1286
  */
1283
1287
  enabled?: boolean;
1284
1288
  }
1289
+ export interface AppSpecServiceLivenessHealthCheck {
1290
+ /**
1291
+ * The number of failed health checks before considered unhealthy.
1292
+ */
1293
+ failureThreshold?: number;
1294
+ /**
1295
+ * The route path used for the HTTP health check ping.
1296
+ */
1297
+ httpPath?: string;
1298
+ /**
1299
+ * The number of seconds to wait before beginning health checks.
1300
+ */
1301
+ initialDelaySeconds?: number;
1302
+ /**
1303
+ * The number of seconds to wait between health checks.
1304
+ */
1305
+ periodSeconds?: number;
1306
+ /**
1307
+ * The port on which the health check will be performed.
1308
+ */
1309
+ port?: number;
1310
+ /**
1311
+ * The number of successful health checks before considered healthy.
1312
+ */
1313
+ successThreshold?: number;
1314
+ /**
1315
+ * The number of seconds after which the check times out.
1316
+ */
1317
+ timeoutSeconds?: number;
1318
+ }
1285
1319
  export interface AppSpecServiceLogDestination {
1286
1320
  /**
1287
1321
  * Datadog configuration.
@@ -1629,6 +1663,10 @@ export interface AppSpecWorker {
1629
1663
  * The instance size to use for this component. This determines the plan (basic or professional) and the available CPU and memory. The list of available instance sizes can be [found with the API](https://docs.digitalocean.com/reference/api/digitalocean/#tag/Apps/operation/apps_list_instanceSizes) or using the [doctl CLI](https://docs.digitalocean.com/reference/doctl/) (`doctl apps tier instance-size list`). Default: `basic-xxs`
1630
1664
  */
1631
1665
  instanceSizeSlug?: string;
1666
+ /**
1667
+ * A liveness health check to determine if the worker should be restarted. Workers do not accept inbound traffic, so only HTTP liveness probes are supported (TCP is not).
1668
+ */
1669
+ livenessHealthCheck?: outputs.AppSpecWorkerLivenessHealthCheck;
1632
1670
  /**
1633
1671
  * Describes a log forwarding destination.
1634
1672
  */
@@ -1828,6 +1866,36 @@ export interface AppSpecWorkerImageDeployOnPush {
1828
1866
  */
1829
1867
  enabled?: boolean;
1830
1868
  }
1869
+ export interface AppSpecWorkerLivenessHealthCheck {
1870
+ /**
1871
+ * The number of failed health checks before considered unhealthy.
1872
+ */
1873
+ failureThreshold?: number;
1874
+ /**
1875
+ * The route path used for the HTTP health check ping.
1876
+ */
1877
+ httpPath?: string;
1878
+ /**
1879
+ * The number of seconds to wait before beginning health checks.
1880
+ */
1881
+ initialDelaySeconds?: number;
1882
+ /**
1883
+ * The number of seconds to wait between health checks.
1884
+ */
1885
+ periodSeconds?: number;
1886
+ /**
1887
+ * The port on which the health check will be performed.
1888
+ */
1889
+ port?: number;
1890
+ /**
1891
+ * The number of successful health checks before considered healthy.
1892
+ */
1893
+ successThreshold?: number;
1894
+ /**
1895
+ * The number of seconds after which the check times out.
1896
+ */
1897
+ timeoutSeconds?: number;
1898
+ }
1831
1899
  export interface AppSpecWorkerLogDestination {
1832
1900
  /**
1833
1901
  * Datadog configuration.
@@ -3960,27 +4028,27 @@ export interface GetAppSpecIngress {
3960
4028
  * The type of the alert to configure. Component app alert policies can be: `CPU_UTILIZATION`, `MEM_UTILIZATION`, or `RESTART_COUNT`.
3961
4029
  */
3962
4030
  rules?: outputs.GetAppSpecIngressRule[];
3963
- secureHeader: outputs.GetAppSpecIngressSecureHeader;
4031
+ secureHeader?: outputs.GetAppSpecIngressSecureHeader;
3964
4032
  }
3965
4033
  export interface GetAppSpecIngressRule {
3966
- component: outputs.GetAppSpecIngressRuleComponent;
4034
+ component?: outputs.GetAppSpecIngressRuleComponent;
3967
4035
  /**
3968
4036
  * The [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) policies of the app.
3969
4037
  */
3970
- cors: outputs.GetAppSpecIngressRuleCors;
3971
- match: outputs.GetAppSpecIngressRuleMatch;
4038
+ cors?: outputs.GetAppSpecIngressRuleCors;
4039
+ match?: outputs.GetAppSpecIngressRuleMatch;
3972
4040
  redirect?: outputs.GetAppSpecIngressRuleRedirect;
3973
4041
  }
3974
4042
  export interface GetAppSpecIngressRuleComponent {
3975
4043
  /**
3976
4044
  * The name of the component.
3977
4045
  */
3978
- name: string;
4046
+ name?: string;
3979
4047
  /**
3980
4048
  * An optional flag to preserve the path that is forwarded to the backend service.
3981
4049
  */
3982
- preservePathPrefix: boolean;
3983
- rewrite: string;
4050
+ preservePathPrefix?: boolean;
4051
+ rewrite?: string;
3984
4052
  }
3985
4053
  export interface GetAppSpecIngressRuleCors {
3986
4054
  /**
@@ -4025,23 +4093,23 @@ export interface GetAppSpecIngressRuleCorsAllowOrigins {
4025
4093
  regex?: string;
4026
4094
  }
4027
4095
  export interface GetAppSpecIngressRuleMatch {
4028
- authority: outputs.GetAppSpecIngressRuleMatchAuthority;
4096
+ authority?: outputs.GetAppSpecIngressRuleMatchAuthority;
4029
4097
  /**
4030
4098
  * Paths must start with `/` and must be unique within the app.
4031
4099
  */
4032
- path: outputs.GetAppSpecIngressRuleMatchPath;
4100
+ path?: outputs.GetAppSpecIngressRuleMatchPath;
4033
4101
  }
4034
4102
  export interface GetAppSpecIngressRuleMatchAuthority {
4035
4103
  /**
4036
4104
  * The `Access-Control-Allow-Origin` header will be set to the client's origin only if the client's origin exactly matches the value you provide.
4037
4105
  */
4038
- exact: string;
4106
+ exact?: string;
4039
4107
  }
4040
4108
  export interface GetAppSpecIngressRuleMatchPath {
4041
4109
  /**
4042
4110
  * The `Access-Control-Allow-Origin` header will be set to the client's origin if the beginning of the client's origin matches the value you provide.
4043
4111
  */
4044
- prefix: string;
4112
+ prefix?: string;
4045
4113
  }
4046
4114
  export interface GetAppSpecIngressRuleRedirect {
4047
4115
  authority?: string;
@@ -4054,11 +4122,11 @@ export interface GetAppSpecIngressSecureHeader {
4054
4122
  /**
4055
4123
  * The name of the environment variable.
4056
4124
  */
4057
- key: string;
4125
+ key?: string;
4058
4126
  /**
4059
4127
  * The threshold for the type of the warning.
4060
4128
  */
4061
- value: string;
4129
+ value?: string;
4062
4130
  }
4063
4131
  export interface GetAppSpecJob {
4064
4132
  /**
@@ -4444,6 +4512,7 @@ export interface GetAppSpecService {
4444
4512
  * A list of ports on which this service will listen for internal traffic.
4445
4513
  */
4446
4514
  internalPorts: number[];
4515
+ livenessHealthCheck?: outputs.GetAppSpecServiceLivenessHealthCheck;
4447
4516
  /**
4448
4517
  * Describes a log forwarding destination.
4449
4518
  */
@@ -4459,7 +4528,7 @@ export interface GetAppSpecService {
4459
4528
  /**
4460
4529
  * An optional run command to override the component's default.
4461
4530
  */
4462
- runCommand: string;
4531
+ runCommand?: string;
4463
4532
  /**
4464
4533
  * An optional path to the working directory to use for the build.
4465
4534
  */
@@ -4710,6 +4779,36 @@ export interface GetAppSpecServiceImageDeployOnPush {
4710
4779
  */
4711
4780
  enabled?: boolean;
4712
4781
  }
4782
+ export interface GetAppSpecServiceLivenessHealthCheck {
4783
+ /**
4784
+ * The number of failed health checks before considered unhealthy.
4785
+ */
4786
+ failureThreshold?: number;
4787
+ /**
4788
+ * The route path used for the HTTP health check ping.
4789
+ */
4790
+ httpPath?: string;
4791
+ /**
4792
+ * The number of seconds to wait before beginning health checks.
4793
+ */
4794
+ initialDelaySeconds?: number;
4795
+ /**
4796
+ * The number of seconds to wait between health checks.
4797
+ */
4798
+ periodSeconds?: number;
4799
+ /**
4800
+ * The port on which the health check will be performed. If not set, the health check will be performed on the component's http_port.
4801
+ */
4802
+ port?: number;
4803
+ /**
4804
+ * The number of successful health checks before considered healthy.
4805
+ */
4806
+ successThreshold?: number;
4807
+ /**
4808
+ * The number of seconds after which the check times out.
4809
+ */
4810
+ timeoutSeconds?: number;
4811
+ }
4713
4812
  export interface GetAppSpecServiceLogDestination {
4714
4813
  /**
4715
4814
  * Datadog configuration.
@@ -5051,6 +5150,7 @@ export interface GetAppSpecWorker {
5051
5150
  * The instance size to use for this component.
5052
5151
  */
5053
5152
  instanceSizeSlug?: string;
5153
+ livenessHealthCheck?: outputs.GetAppSpecWorkerLivenessHealthCheck;
5054
5154
  /**
5055
5155
  * Describes a log forwarding destination.
5056
5156
  */
@@ -5241,6 +5341,36 @@ export interface GetAppSpecWorkerImageDeployOnPush {
5241
5341
  */
5242
5342
  enabled?: boolean;
5243
5343
  }
5344
+ export interface GetAppSpecWorkerLivenessHealthCheck {
5345
+ /**
5346
+ * The number of failed health checks before considered unhealthy.
5347
+ */
5348
+ failureThreshold?: number;
5349
+ /**
5350
+ * The route path used for the HTTP health check ping.
5351
+ */
5352
+ httpPath?: string;
5353
+ /**
5354
+ * The number of seconds to wait before beginning health checks.
5355
+ */
5356
+ initialDelaySeconds?: number;
5357
+ /**
5358
+ * The number of seconds to wait between health checks.
5359
+ */
5360
+ periodSeconds?: number;
5361
+ /**
5362
+ * The port on which the health check will be performed. If not set, the health check will be performed on the component's http_port.
5363
+ */
5364
+ port?: number;
5365
+ /**
5366
+ * The number of successful health checks before considered healthy.
5367
+ */
5368
+ successThreshold?: number;
5369
+ /**
5370
+ * The number of seconds after which the check times out.
5371
+ */
5372
+ timeoutSeconds?: number;
5373
+ }
5244
5374
  export interface GetAppSpecWorkerLogDestination {
5245
5375
  /**
5246
5376
  * Datadog configuration.