@cloudyskysoftware/pulumi-render 0.1.1 → 0.2.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/config/vars.d.ts +1 -1
- package/config/vars.js.map +1 -1
- package/owners/getOwner.d.ts +4 -4
- package/owners/getOwner.js +1 -1
- package/owners/getOwner.js.map +1 -1
- package/owners/listOwners.d.ts +1 -1
- package/package.json +1 -1
- package/registrycredentials/getRegistryCredential.d.ts +13 -3
- package/registrycredentials/getRegistryCredential.js +5 -4
- package/registrycredentials/getRegistryCredential.js.map +1 -1
- package/registrycredentials/index.d.ts +2 -1
- package/registrycredentials/index.js +16 -0
- package/registrycredentials/index.js.map +1 -1
- package/registrycredentials/listRegistryCredentials.d.ts +1 -1
- package/registrycredentials/registryCredential.d.ts +20 -10
- package/registrycredentials/registryCredential.js +12 -0
- package/registrycredentials/registryCredential.js.map +1 -1
- package/services/{autoScaling.d.ts → autoscaleService.d.ts} +18 -18
- package/services/{autoScaling.js → autoscaleService.js} +27 -13
- package/services/autoscaleService.js.map +1 -0
- package/services/backgroundWorker.d.ts +16 -39
- package/services/backgroundWorker.js +16 -14
- package/services/backgroundWorker.js.map +1 -1
- package/services/cancelDeploy.d.ts +50 -0
- package/services/cancelDeploy.js +67 -0
- package/services/cancelDeploy.js.map +1 -0
- package/services/cancelJob.d.ts +45 -0
- package/services/cancelJob.js +66 -0
- package/services/cancelJob.js.map +1 -0
- package/services/cronJob.d.ts +16 -39
- package/services/cronJob.js +16 -15
- package/services/cronJob.js.map +1 -1
- package/services/customDomain.d.ts +36 -0
- package/services/{deploys.js → customDomain.js} +13 -16
- package/services/customDomain.js.map +1 -0
- package/services/deploy.d.ts +70 -0
- package/services/deploy.js +73 -0
- package/services/deploy.js.map +1 -0
- package/services/{envVars.d.ts → envVarsForService.d.ts} +12 -12
- package/services/{envVars.js → envVarsForService.js} +11 -11
- package/services/envVarsForService.js.map +1 -0
- package/services/getBackgroundWorker.d.ts +4 -4
- package/services/getBackgroundWorker.js +1 -1
- package/services/getBackgroundWorker.js.map +1 -1
- package/services/getCronJob.d.ts +4 -4
- package/services/getCronJob.js +1 -1
- package/services/getCronJob.js.map +1 -1
- package/services/getCustomDomain.d.ts +6 -6
- package/services/getCustomDomain.js +1 -1
- package/services/getCustomDomain.js.map +1 -1
- package/services/getDeploy.d.ts +6 -6
- package/services/getDeploy.js +1 -1
- package/services/getDeploy.js.map +1 -1
- package/services/getJob.d.ts +6 -6
- package/services/getJob.js +1 -1
- package/services/getJob.js.map +1 -1
- package/services/getPrivateService.d.ts +4 -4
- package/services/getPrivateService.js +1 -1
- package/services/getPrivateService.js.map +1 -1
- package/services/getStaticSite.d.ts +4 -4
- package/services/getStaticSite.js +1 -1
- package/services/getStaticSite.js.map +1 -1
- package/services/getWebService.d.ts +4 -4
- package/services/getWebService.js +1 -1
- package/services/getWebService.js.map +1 -1
- package/services/index.d.ts +51 -33
- package/services/index.js +65 -41
- package/services/index.js.map +1 -1
- package/services/{jobs.d.ts → job.d.ts} +13 -12
- package/services/{jobs.js → job.js} +12 -14
- package/services/job.js.map +1 -0
- package/services/listCustomDomains.d.ts +3 -3
- package/services/listDeploys.d.ts +3 -3
- package/services/listEnvVarsForService.d.ts +19 -0
- package/services/listEnvVarsForService.js +19 -0
- package/services/listEnvVarsForService.js.map +1 -0
- package/services/listJob.d.ts +19 -0
- package/services/{listJobs.js → listJob.js} +8 -8
- package/services/listJob.js.map +1 -0
- package/services/listRetrieveHeaders.d.ts +19 -0
- package/services/listRetrieveHeaders.js +19 -0
- package/services/listRetrieveHeaders.js.map +1 -0
- package/services/listRetrieveRoutes.d.ts +19 -0
- package/services/listRetrieveRoutes.js +19 -0
- package/services/listRetrieveRoutes.js.map +1 -0
- package/services/listServices.d.ts +1 -1
- package/services/previewService.d.ts +62 -0
- package/services/{customDomains.js → previewService.js} +22 -23
- package/services/previewService.js.map +1 -0
- package/services/privateService.d.ts +16 -39
- package/services/privateService.js +16 -14
- package/services/privateService.js.map +1 -1
- package/services/refreshCustomDomain.d.ts +38 -0
- package/services/refreshCustomDomain.js +53 -0
- package/services/refreshCustomDomain.js.map +1 -0
- package/services/restartServer.d.ts +34 -0
- package/services/restartServer.js +52 -0
- package/services/restartServer.js.map +1 -0
- package/services/rollbackDeploy.d.ts +54 -0
- package/services/rollbackDeploy.js +71 -0
- package/services/rollbackDeploy.js.map +1 -0
- package/services/{scale.d.ts → scaleService.d.ts} +10 -10
- package/services/{scale.js → scaleService.js} +11 -11
- package/services/scaleService.js.map +1 -0
- package/services/staticSite.d.ts +16 -38
- package/services/staticSite.js +16 -13
- package/services/staticSite.js.map +1 -1
- package/services/{suspend.d.ts → suspendService.d.ts} +10 -10
- package/services/{suspend.js → suspendService.js} +11 -11
- package/services/suspendService.js.map +1 -0
- package/services/webService.d.ts +16 -39
- package/services/webService.js +16 -14
- package/services/webService.js.map +1 -1
- package/types/enums/index.d.ts +2 -1
- package/types/enums/index.js +3 -1
- package/types/enums/index.js.map +1 -1
- package/types/enums/owners/index.d.ts +0 -3
- package/types/enums/registrycredentials/index.d.ts +15 -0
- package/types/enums/registrycredentials/index.js +16 -0
- package/types/enums/registrycredentials/index.js.map +1 -0
- package/types/enums/services/index.d.ts +330 -64
- package/types/enums/services/index.js +230 -38
- package/types/enums/services/index.js.map +1 -1
- package/types/input.d.ts +169 -98
- package/types/input.js +29 -30
- package/types/input.js.map +1 -1
- package/types/output.d.ts +425 -465
- package/types/output.js +59 -78
- package/types/output.js.map +1 -1
- package/services/autoScaling.js.map +0 -1
- package/services/customDomains.d.ts +0 -44
- package/services/customDomains.js.map +0 -1
- package/services/deploys.d.ts +0 -39
- package/services/deploys.js.map +0 -1
- package/services/envVars.js.map +0 -1
- package/services/jobs.js.map +0 -1
- package/services/listEnvVars.d.ts +0 -19
- package/services/listEnvVars.js +0 -19
- package/services/listEnvVars.js.map +0 -1
- package/services/listHeaders.d.ts +0 -19
- package/services/listHeaders.js +0 -19
- package/services/listHeaders.js.map +0 -1
- package/services/listJobs.d.ts +0 -19
- package/services/listJobs.js.map +0 -1
- package/services/listRoutes.d.ts +0 -19
- package/services/listRoutes.js +0 -19
- package/services/listRoutes.js.map +0 -1
- package/services/scale.js.map +0 -1
- package/services/suspend.js.map +0 -1
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "../types/output";
|
|
3
|
+
import * as enums from "../types/enums";
|
|
4
|
+
export declare class RollbackDeploy extends pulumi.CustomResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get an existing RollbackDeploy resource's state with the given name, ID, and optional extra
|
|
7
|
+
* properties used to qualify the lookup.
|
|
8
|
+
*
|
|
9
|
+
* @param name The _unique_ name of the resulting resource.
|
|
10
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
11
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
12
|
+
*/
|
|
13
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): RollbackDeploy;
|
|
14
|
+
/**
|
|
15
|
+
* Returns true if the given object is an instance of RollbackDeploy. This is designed to work even
|
|
16
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
17
|
+
*/
|
|
18
|
+
static isInstance(obj: any): obj is RollbackDeploy;
|
|
19
|
+
readonly commit: pulumi.Output<outputs.services.CommitProperties | undefined>;
|
|
20
|
+
readonly createdAt: pulumi.Output<string | undefined>;
|
|
21
|
+
/**
|
|
22
|
+
* The ID of the deploy to rollback to
|
|
23
|
+
*/
|
|
24
|
+
readonly deployId: pulumi.Output<string>;
|
|
25
|
+
readonly finishedAt: pulumi.Output<string | undefined>;
|
|
26
|
+
/**
|
|
27
|
+
* Image information used when creating the deploy. Not present for Git-backed deploys
|
|
28
|
+
*/
|
|
29
|
+
readonly image: pulumi.Output<outputs.services.ImageProperties | undefined>;
|
|
30
|
+
readonly status: pulumi.Output<enums.services.Status | undefined>;
|
|
31
|
+
readonly trigger: pulumi.Output<enums.services.Trigger | undefined>;
|
|
32
|
+
readonly updatedAt: pulumi.Output<string | undefined>;
|
|
33
|
+
/**
|
|
34
|
+
* Create a RollbackDeploy resource with the given unique name, arguments, and options.
|
|
35
|
+
*
|
|
36
|
+
* @param name The _unique_ name of the resource.
|
|
37
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
38
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
39
|
+
*/
|
|
40
|
+
constructor(name: string, args: RollbackDeployArgs, opts?: pulumi.CustomResourceOptions);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* The set of arguments for constructing a RollbackDeploy resource.
|
|
44
|
+
*/
|
|
45
|
+
export interface RollbackDeployArgs {
|
|
46
|
+
/**
|
|
47
|
+
* The ID of the deploy to rollback to
|
|
48
|
+
*/
|
|
49
|
+
deployId: pulumi.Input<string>;
|
|
50
|
+
/**
|
|
51
|
+
* The ID of the service
|
|
52
|
+
*/
|
|
53
|
+
serviceId?: pulumi.Input<string>;
|
|
54
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumigen. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.RollbackDeploy = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
class RollbackDeploy extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing RollbackDeploy resource's state with the given name, ID, and optional extra
|
|
11
|
+
* properties used to qualify the lookup.
|
|
12
|
+
*
|
|
13
|
+
* @param name The _unique_ name of the resulting resource.
|
|
14
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
15
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
16
|
+
*/
|
|
17
|
+
static get(name, id, opts) {
|
|
18
|
+
return new RollbackDeploy(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Returns true if the given object is an instance of RollbackDeploy. This is designed to work even
|
|
22
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
23
|
+
*/
|
|
24
|
+
static isInstance(obj) {
|
|
25
|
+
if (obj === undefined || obj === null) {
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
return obj['__pulumiType'] === RollbackDeploy.__pulumiType;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Create a RollbackDeploy resource with the given unique name, arguments, and options.
|
|
32
|
+
*
|
|
33
|
+
* @param name The _unique_ name of the resource.
|
|
34
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
35
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
36
|
+
*/
|
|
37
|
+
constructor(name, args, opts) {
|
|
38
|
+
let resourceInputs = {};
|
|
39
|
+
opts = opts || {};
|
|
40
|
+
if (!opts.id) {
|
|
41
|
+
if ((!args || args.deployId === undefined) && !opts.urn) {
|
|
42
|
+
throw new Error("Missing required property 'deployId'");
|
|
43
|
+
}
|
|
44
|
+
resourceInputs["deployId"] = args ? args.deployId : undefined;
|
|
45
|
+
resourceInputs["serviceId"] = args ? args.serviceId : undefined;
|
|
46
|
+
resourceInputs["commit"] = undefined /*out*/;
|
|
47
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
48
|
+
resourceInputs["finishedAt"] = undefined /*out*/;
|
|
49
|
+
resourceInputs["image"] = undefined /*out*/;
|
|
50
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
51
|
+
resourceInputs["trigger"] = undefined /*out*/;
|
|
52
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
resourceInputs["commit"] = undefined /*out*/;
|
|
56
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
57
|
+
resourceInputs["deployId"] = undefined /*out*/;
|
|
58
|
+
resourceInputs["finishedAt"] = undefined /*out*/;
|
|
59
|
+
resourceInputs["image"] = undefined /*out*/;
|
|
60
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
61
|
+
resourceInputs["trigger"] = undefined /*out*/;
|
|
62
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
63
|
+
}
|
|
64
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
65
|
+
super(RollbackDeploy.__pulumiType, name, resourceInputs, opts);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
exports.RollbackDeploy = RollbackDeploy;
|
|
69
|
+
/** @internal */
|
|
70
|
+
RollbackDeploy.__pulumiType = 'render:services:RollbackDeploy';
|
|
71
|
+
//# sourceMappingURL=rollbackDeploy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rollbackDeploy.js","sourceRoot":"","sources":["../../services/rollbackDeploy.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,cAAc,CAAC,IAAI,EAAE,SAAgB,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC3E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;IAiBD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAwB,EAAE,IAAmC;QACnF,IAAI,c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AAC;YAC5C,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AA7EL,wCA8EC;AAjEG,gBAAgB;AACO,2BAAY,GAAG,gCAAgC,CAAC"}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class ScaleService extends pulumi.CustomResource {
|
|
3
3
|
/**
|
|
4
|
-
* Get an existing
|
|
4
|
+
* Get an existing ScaleService resource's state with the given name, ID, and optional extra
|
|
5
5
|
* properties used to qualify the lookup.
|
|
6
6
|
*
|
|
7
7
|
* @param name The _unique_ name of the resulting resource.
|
|
8
8
|
* @param id The _unique_ provider ID of the resource to lookup.
|
|
9
9
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
10
10
|
*/
|
|
11
|
-
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions):
|
|
11
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): ScaleService;
|
|
12
12
|
/**
|
|
13
|
-
* Returns true if the given object is an instance of
|
|
13
|
+
* Returns true if the given object is an instance of ScaleService. This is designed to work even
|
|
14
14
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
15
15
|
*/
|
|
16
|
-
static isInstance(obj: any): obj is
|
|
16
|
+
static isInstance(obj: any): obj is ScaleService;
|
|
17
17
|
readonly numInstances: pulumi.Output<number>;
|
|
18
18
|
/**
|
|
19
|
-
* Create a
|
|
19
|
+
* Create a ScaleService resource with the given unique name, arguments, and options.
|
|
20
20
|
*
|
|
21
21
|
* @param name The _unique_ name of the resource.
|
|
22
22
|
* @param args The arguments to use to populate this resource's properties.
|
|
23
23
|
* @param opts A bag of options that control this resource's behavior.
|
|
24
24
|
*/
|
|
25
|
-
constructor(name: string, args:
|
|
25
|
+
constructor(name: string, args: ScaleServiceArgs, opts?: pulumi.CustomResourceOptions);
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
|
-
* The set of arguments for constructing a
|
|
28
|
+
* The set of arguments for constructing a ScaleService resource.
|
|
29
29
|
*/
|
|
30
|
-
export interface
|
|
30
|
+
export interface ScaleServiceArgs {
|
|
31
31
|
numInstances: pulumi.Input<number>;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* The ID of the service
|
|
34
34
|
*/
|
|
35
35
|
serviceId?: pulumi.Input<string>;
|
|
36
36
|
}
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by pulumigen. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.
|
|
5
|
+
exports.ScaleService = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
|
-
class
|
|
8
|
+
class ScaleService extends pulumi.CustomResource {
|
|
9
9
|
/**
|
|
10
|
-
* Get an existing
|
|
10
|
+
* Get an existing ScaleService resource's state with the given name, ID, and optional extra
|
|
11
11
|
* properties used to qualify the lookup.
|
|
12
12
|
*
|
|
13
13
|
* @param name The _unique_ name of the resulting resource.
|
|
@@ -15,20 +15,20 @@ class Scale extends pulumi.CustomResource {
|
|
|
15
15
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
16
16
|
*/
|
|
17
17
|
static get(name, id, opts) {
|
|
18
|
-
return new
|
|
18
|
+
return new ScaleService(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
|
-
* Returns true if the given object is an instance of
|
|
21
|
+
* Returns true if the given object is an instance of ScaleService. This is designed to work even
|
|
22
22
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
23
23
|
*/
|
|
24
24
|
static isInstance(obj) {
|
|
25
25
|
if (obj === undefined || obj === null) {
|
|
26
26
|
return false;
|
|
27
27
|
}
|
|
28
|
-
return obj['__pulumiType'] ===
|
|
28
|
+
return obj['__pulumiType'] === ScaleService.__pulumiType;
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
* Create a
|
|
31
|
+
* Create a ScaleService resource with the given unique name, arguments, and options.
|
|
32
32
|
*
|
|
33
33
|
* @param name The _unique_ name of the resource.
|
|
34
34
|
* @param args The arguments to use to populate this resource's properties.
|
|
@@ -48,10 +48,10 @@ class Scale extends pulumi.CustomResource {
|
|
|
48
48
|
resourceInputs["numInstances"] = undefined /*out*/;
|
|
49
49
|
}
|
|
50
50
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
51
|
-
super(
|
|
51
|
+
super(ScaleService.__pulumiType, name, resourceInputs, opts);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
exports.
|
|
54
|
+
exports.ScaleService = ScaleService;
|
|
55
55
|
/** @internal */
|
|
56
|
-
|
|
57
|
-
//# sourceMappingURL=
|
|
56
|
+
ScaleService.__pulumiType = 'render:services:ScaleService';
|
|
57
|
+
//# sourceMappingURL=scaleService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scaleService.js","sourceRoot":"","sources":["../../services/scaleService.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;OAOG;IACI,MAAM,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G,gBAAgB;AACO,yBAAY,GAAG,8BAA8B,CAAC"}
|
package/services/staticSite.d.ts
CHANGED
|
@@ -3,8 +3,6 @@ import * as inputs from "../types/input";
|
|
|
3
3
|
import * as outputs from "../types/output";
|
|
4
4
|
import * as enums from "../types/enums";
|
|
5
5
|
/**
|
|
6
|
-
* A static website service
|
|
7
|
-
*
|
|
8
6
|
* ## Example Usage
|
|
9
7
|
*
|
|
10
8
|
* ### Create a service
|
|
@@ -31,34 +29,23 @@ export declare class StaticSite extends pulumi.CustomResource {
|
|
|
31
29
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
32
30
|
*/
|
|
33
31
|
static isInstance(obj: any): obj is StaticSite;
|
|
34
|
-
/**
|
|
35
|
-
* Whether to auto deploy the service or not upon git push.
|
|
36
|
-
*/
|
|
37
32
|
readonly autoDeploy: pulumi.Output<enums.services.ServiceAutoDeploy | undefined>;
|
|
38
|
-
/**
|
|
39
|
-
* If left empty, this will fall back to the default branch of the repository.
|
|
40
|
-
*/
|
|
41
33
|
readonly branch: pulumi.Output<string | undefined>;
|
|
34
|
+
readonly buildFilter: pulumi.Output<outputs.services.BuildFilter | undefined>;
|
|
42
35
|
readonly createdAt: pulumi.Output<string | undefined>;
|
|
43
|
-
readonly envVars: pulumi.Output<outputs.services.EnvVarKeyValue[] | undefined>;
|
|
36
|
+
readonly envVars: pulumi.Output<(outputs.services.EnvVarKeyValue | outputs.services.EnvVarKeyGenerateValue)[] | undefined>;
|
|
37
|
+
readonly image: pulumi.Output<outputs.services.Image | undefined>;
|
|
38
|
+
readonly imagePath: pulumi.Output<string | undefined>;
|
|
44
39
|
readonly name: pulumi.Output<string | undefined>;
|
|
45
|
-
/**
|
|
46
|
-
* The notification setting for this service upon deployment failure.
|
|
47
|
-
*/
|
|
48
40
|
readonly notifyOnFail: pulumi.Output<enums.services.ServiceNotifyOnFail | undefined>;
|
|
49
|
-
/**
|
|
50
|
-
* The id of the owner (user/team).
|
|
51
|
-
*/
|
|
52
41
|
readonly ownerId: pulumi.Output<string | undefined>;
|
|
53
|
-
/**
|
|
54
|
-
* Do not include the branch in the repo string. You can instead supply a 'branch' parameter.
|
|
55
|
-
*/
|
|
56
42
|
readonly repo: pulumi.Output<string | undefined>;
|
|
43
|
+
readonly rootDir: pulumi.Output<string | undefined>;
|
|
57
44
|
readonly secretFiles: pulumi.Output<outputs.services.SecretFile[] | undefined>;
|
|
58
|
-
readonly serviceDetails: pulumi.Output<outputs.services.
|
|
45
|
+
readonly serviceDetails: pulumi.Output<outputs.services.StaticSiteDetailsOutput | undefined>;
|
|
59
46
|
readonly slug: pulumi.Output<string | undefined>;
|
|
60
47
|
readonly suspended: pulumi.Output<enums.services.ServiceSuspended | undefined>;
|
|
61
|
-
readonly suspenders: pulumi.Output<
|
|
48
|
+
readonly suspenders: pulumi.Output<enums.services.ServiceSuspendersItem[] | undefined>;
|
|
62
49
|
readonly type: pulumi.Output<string | undefined>;
|
|
63
50
|
readonly updatedAt: pulumi.Output<string | undefined>;
|
|
64
51
|
/**
|
|
@@ -75,33 +62,24 @@ export declare class StaticSite extends pulumi.CustomResource {
|
|
|
75
62
|
*/
|
|
76
63
|
export interface StaticSiteArgs {
|
|
77
64
|
/**
|
|
78
|
-
*
|
|
65
|
+
* Defaults to "yes"
|
|
79
66
|
*/
|
|
80
|
-
autoDeploy?: pulumi.Input<enums.services.
|
|
67
|
+
autoDeploy?: pulumi.Input<enums.services.ServiceCreateAutoDeploy>;
|
|
81
68
|
/**
|
|
82
|
-
* If left empty, this will fall back to the default branch of the repository
|
|
69
|
+
* If left empty, this will fall back to the default branch of the repository
|
|
83
70
|
*/
|
|
84
71
|
branch?: pulumi.Input<string>;
|
|
85
|
-
|
|
86
|
-
envVars?: pulumi.Input<pulumi.Input<inputs.services.EnvVarKeyValueArgs>[]>;
|
|
72
|
+
buildFilter?: pulumi.Input<inputs.services.BuildFilterArgs>;
|
|
73
|
+
envVars?: pulumi.Input<pulumi.Input<inputs.services.EnvVarKeyValueArgs | inputs.services.EnvVarKeyGenerateValueArgs>[]>;
|
|
74
|
+
image?: pulumi.Input<inputs.services.ImageArgs>;
|
|
87
75
|
name: pulumi.Input<string>;
|
|
88
|
-
/**
|
|
89
|
-
* The notification setting for this service upon deployment failure.
|
|
90
|
-
*/
|
|
91
|
-
notifyOnFail?: pulumi.Input<enums.services.ServiceNotifyOnFail>;
|
|
92
|
-
/**
|
|
93
|
-
* The id of the owner (user/team).
|
|
94
|
-
*/
|
|
95
76
|
ownerId: pulumi.Input<string>;
|
|
96
77
|
/**
|
|
97
78
|
* Do not include the branch in the repo string. You can instead supply a 'branch' parameter.
|
|
98
79
|
*/
|
|
99
|
-
repo
|
|
80
|
+
repo?: pulumi.Input<string>;
|
|
81
|
+
rootDir?: pulumi.Input<string>;
|
|
100
82
|
secretFiles?: pulumi.Input<pulumi.Input<inputs.services.SecretFileArgs>[]>;
|
|
101
|
-
serviceDetails?: pulumi.Input<inputs.services.
|
|
102
|
-
slug?: pulumi.Input<string>;
|
|
103
|
-
suspended?: pulumi.Input<enums.services.ServiceSuspended>;
|
|
104
|
-
suspenders?: pulumi.Input<pulumi.Input<string>[]>;
|
|
83
|
+
serviceDetails?: pulumi.Input<inputs.services.StaticSiteDetailsCreateArgs>;
|
|
105
84
|
type?: pulumi.Input<string>;
|
|
106
|
-
updatedAt?: pulumi.Input<string>;
|
|
107
85
|
}
|
package/services/staticSite.js
CHANGED
|
@@ -7,8 +7,6 @@ const pulumi = require("@pulumi/pulumi");
|
|
|
7
7
|
const inputs = require("../types/input");
|
|
8
8
|
const utilities = require("../utilities");
|
|
9
9
|
/**
|
|
10
|
-
* A static website service
|
|
11
|
-
*
|
|
12
10
|
* ## Example Usage
|
|
13
11
|
*
|
|
14
12
|
* ### Create a service
|
|
@@ -60,34 +58,39 @@ class StaticSite extends pulumi.CustomResource {
|
|
|
60
58
|
if ((!args || args.ownerId === undefined) && !opts.urn) {
|
|
61
59
|
throw new Error("Missing required property 'ownerId'");
|
|
62
60
|
}
|
|
63
|
-
|
|
64
|
-
throw new Error("Missing required property 'repo'");
|
|
65
|
-
}
|
|
66
|
-
resourceInputs["autoDeploy"] = (_a = (args ? args.autoDeploy : undefined)) !== null && _a !== void 0 ? _a : "no";
|
|
61
|
+
resourceInputs["autoDeploy"] = (_a = (args ? args.autoDeploy : undefined)) !== null && _a !== void 0 ? _a : "yes";
|
|
67
62
|
resourceInputs["branch"] = args ? args.branch : undefined;
|
|
68
|
-
resourceInputs["
|
|
63
|
+
resourceInputs["buildFilter"] = args ? args.buildFilter : undefined;
|
|
69
64
|
resourceInputs["envVars"] = args ? args.envVars : undefined;
|
|
65
|
+
resourceInputs["image"] = args ? args.image : undefined;
|
|
70
66
|
resourceInputs["name"] = args ? args.name : undefined;
|
|
71
|
-
resourceInputs["notifyOnFail"] = args ? args.notifyOnFail : undefined;
|
|
72
67
|
resourceInputs["ownerId"] = args ? args.ownerId : undefined;
|
|
73
68
|
resourceInputs["repo"] = args ? args.repo : undefined;
|
|
69
|
+
resourceInputs["rootDir"] = args ? args.rootDir : undefined;
|
|
74
70
|
resourceInputs["secretFiles"] = args ? args.secretFiles : undefined;
|
|
75
|
-
resourceInputs["serviceDetails"] = args ? (args.serviceDetails ? pulumi.output(args.serviceDetails).apply(inputs.services.
|
|
76
|
-
resourceInputs["slug"] = args ? args.slug : undefined;
|
|
77
|
-
resourceInputs["suspended"] = args ? args.suspended : undefined;
|
|
78
|
-
resourceInputs["suspenders"] = args ? args.suspenders : undefined;
|
|
71
|
+
resourceInputs["serviceDetails"] = args ? (args.serviceDetails ? pulumi.output(args.serviceDetails).apply(inputs.services.staticSiteDetailsCreateArgsProvideDefaults) : undefined) : undefined;
|
|
79
72
|
resourceInputs["type"] = (_b = (args ? args.type : undefined)) !== null && _b !== void 0 ? _b : "static_site";
|
|
80
|
-
resourceInputs["
|
|
73
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
74
|
+
resourceInputs["imagePath"] = undefined /*out*/;
|
|
75
|
+
resourceInputs["notifyOnFail"] = undefined /*out*/;
|
|
76
|
+
resourceInputs["slug"] = undefined /*out*/;
|
|
77
|
+
resourceInputs["suspended"] = undefined /*out*/;
|
|
78
|
+
resourceInputs["suspenders"] = undefined /*out*/;
|
|
79
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
81
80
|
}
|
|
82
81
|
else {
|
|
83
82
|
resourceInputs["autoDeploy"] = undefined /*out*/;
|
|
84
83
|
resourceInputs["branch"] = undefined /*out*/;
|
|
84
|
+
resourceInputs["buildFilter"] = undefined /*out*/;
|
|
85
85
|
resourceInputs["createdAt"] = undefined /*out*/;
|
|
86
86
|
resourceInputs["envVars"] = undefined /*out*/;
|
|
87
|
+
resourceInputs["image"] = undefined /*out*/;
|
|
88
|
+
resourceInputs["imagePath"] = undefined /*out*/;
|
|
87
89
|
resourceInputs["name"] = undefined /*out*/;
|
|
88
90
|
resourceInputs["notifyOnFail"] = undefined /*out*/;
|
|
89
91
|
resourceInputs["ownerId"] = undefined /*out*/;
|
|
90
92
|
resourceInputs["repo"] = undefined /*out*/;
|
|
93
|
+
resourceInputs["rootDir"] = undefined /*out*/;
|
|
91
94
|
resourceInputs["secretFiles"] = undefined /*out*/;
|
|
92
95
|
resourceInputs["serviceDetails"] = undefined /*out*/;
|
|
93
96
|
resourceInputs["slug"] = undefined /*out*/;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"staticSite.js","sourceRoot":"","sources":["../../services/staticSite.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAGzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"staticSite.js","sourceRoot":"","sources":["../../services/staticSite.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;GAWG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;I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,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACrD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AA1GL,gCA2GC;AA9FG,gBAAgB;AACO,uBAAY,GAAG,4BAA4B,CAAC"}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class SuspendService extends pulumi.CustomResource {
|
|
3
3
|
/**
|
|
4
|
-
* Get an existing
|
|
4
|
+
* Get an existing SuspendService resource's state with the given name, ID, and optional extra
|
|
5
5
|
* properties used to qualify the lookup.
|
|
6
6
|
*
|
|
7
7
|
* @param name The _unique_ name of the resulting resource.
|
|
8
8
|
* @param id The _unique_ provider ID of the resource to lookup.
|
|
9
9
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
10
10
|
*/
|
|
11
|
-
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions):
|
|
11
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): SuspendService;
|
|
12
12
|
/**
|
|
13
|
-
* Returns true if the given object is an instance of
|
|
13
|
+
* Returns true if the given object is an instance of SuspendService. This is designed to work even
|
|
14
14
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
15
15
|
*/
|
|
16
|
-
static isInstance(obj: any): obj is
|
|
16
|
+
static isInstance(obj: any): obj is SuspendService;
|
|
17
17
|
/**
|
|
18
|
-
* Create a
|
|
18
|
+
* Create a SuspendService resource with the given unique name, arguments, and options.
|
|
19
19
|
*
|
|
20
20
|
* @param name The _unique_ name of the resource.
|
|
21
21
|
* @param args The arguments to use to populate this resource's properties.
|
|
22
22
|
* @param opts A bag of options that control this resource's behavior.
|
|
23
23
|
*/
|
|
24
|
-
constructor(name: string, args?:
|
|
24
|
+
constructor(name: string, args?: SuspendServiceArgs, opts?: pulumi.CustomResourceOptions);
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
|
-
* The set of arguments for constructing a
|
|
27
|
+
* The set of arguments for constructing a SuspendService resource.
|
|
28
28
|
*/
|
|
29
|
-
export interface
|
|
29
|
+
export interface SuspendServiceArgs {
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* The ID of the service
|
|
32
32
|
*/
|
|
33
33
|
serviceId?: pulumi.Input<string>;
|
|
34
34
|
}
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by pulumigen. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.
|
|
5
|
+
exports.SuspendService = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
|
-
class
|
|
8
|
+
class SuspendService extends pulumi.CustomResource {
|
|
9
9
|
/**
|
|
10
|
-
* Get an existing
|
|
10
|
+
* Get an existing SuspendService resource's state with the given name, ID, and optional extra
|
|
11
11
|
* properties used to qualify the lookup.
|
|
12
12
|
*
|
|
13
13
|
* @param name The _unique_ name of the resulting resource.
|
|
@@ -15,20 +15,20 @@ class Suspend extends pulumi.CustomResource {
|
|
|
15
15
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
16
16
|
*/
|
|
17
17
|
static get(name, id, opts) {
|
|
18
|
-
return new
|
|
18
|
+
return new SuspendService(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
|
-
* Returns true if the given object is an instance of
|
|
21
|
+
* Returns true if the given object is an instance of SuspendService. This is designed to work even
|
|
22
22
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
23
23
|
*/
|
|
24
24
|
static isInstance(obj) {
|
|
25
25
|
if (obj === undefined || obj === null) {
|
|
26
26
|
return false;
|
|
27
27
|
}
|
|
28
|
-
return obj['__pulumiType'] ===
|
|
28
|
+
return obj['__pulumiType'] === SuspendService.__pulumiType;
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
* Create a
|
|
31
|
+
* Create a SuspendService resource with the given unique name, arguments, and options.
|
|
32
32
|
*
|
|
33
33
|
* @param name The _unique_ name of the resource.
|
|
34
34
|
* @param args The arguments to use to populate this resource's properties.
|
|
@@ -43,10 +43,10 @@ class Suspend extends pulumi.CustomResource {
|
|
|
43
43
|
else {
|
|
44
44
|
}
|
|
45
45
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
46
|
-
super(
|
|
46
|
+
super(SuspendService.__pulumiType, name, resourceInputs, opts);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
exports.
|
|
49
|
+
exports.SuspendService = SuspendService;
|
|
50
50
|
/** @internal */
|
|
51
|
-
|
|
52
|
-
//# sourceMappingURL=
|
|
51
|
+
SuspendService.__pulumiType = 'render:services:SuspendService';
|
|
52
|
+
//# sourceMappingURL=suspendService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"suspendService.js","sourceRoot":"","sources":["../../services/suspendService.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,cAAc,CAAC,IAAI,EAAE,SAAgB,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC3E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;IAGD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAyB,EAAE,IAAmC;QACpF,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACV,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;SACnE;aAAM;SACN;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AA5CL,wCA6CC;AAhCG,gBAAgB;AACO,2BAAY,GAAG,gCAAgC,CAAC"}
|
package/services/webService.d.ts
CHANGED
|
@@ -2,9 +2,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "../types/input";
|
|
3
3
|
import * as outputs from "../types/output";
|
|
4
4
|
import * as enums from "../types/enums";
|
|
5
|
-
/**
|
|
6
|
-
* A web service
|
|
7
|
-
*/
|
|
8
5
|
export declare class WebService extends pulumi.CustomResource {
|
|
9
6
|
/**
|
|
10
7
|
* Get an existing WebService resource's state with the given name, ID, and optional extra
|
|
@@ -20,34 +17,23 @@ export declare class WebService extends pulumi.CustomResource {
|
|
|
20
17
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
21
18
|
*/
|
|
22
19
|
static isInstance(obj: any): obj is WebService;
|
|
23
|
-
/**
|
|
24
|
-
* Whether to auto deploy the service or not upon git push.
|
|
25
|
-
*/
|
|
26
20
|
readonly autoDeploy: pulumi.Output<enums.services.ServiceAutoDeploy | undefined>;
|
|
27
|
-
/**
|
|
28
|
-
* If left empty, this will fall back to the default branch of the repository.
|
|
29
|
-
*/
|
|
30
21
|
readonly branch: pulumi.Output<string | undefined>;
|
|
22
|
+
readonly buildFilter: pulumi.Output<outputs.services.BuildFilter | undefined>;
|
|
31
23
|
readonly createdAt: pulumi.Output<string | undefined>;
|
|
32
|
-
readonly envVars: pulumi.Output<outputs.services.EnvVarKeyValue[] | undefined>;
|
|
24
|
+
readonly envVars: pulumi.Output<(outputs.services.EnvVarKeyValue | outputs.services.EnvVarKeyGenerateValue)[] | undefined>;
|
|
25
|
+
readonly image: pulumi.Output<outputs.services.Image | undefined>;
|
|
26
|
+
readonly imagePath: pulumi.Output<string | undefined>;
|
|
33
27
|
readonly name: pulumi.Output<string | undefined>;
|
|
34
|
-
/**
|
|
35
|
-
* The notification setting for this service upon deployment failure.
|
|
36
|
-
*/
|
|
37
28
|
readonly notifyOnFail: pulumi.Output<enums.services.ServiceNotifyOnFail | undefined>;
|
|
38
|
-
/**
|
|
39
|
-
* The id of the owner (user/team).
|
|
40
|
-
*/
|
|
41
29
|
readonly ownerId: pulumi.Output<string | undefined>;
|
|
42
|
-
/**
|
|
43
|
-
* Do not include the branch in the repo string. You can instead supply a 'branch' parameter.
|
|
44
|
-
*/
|
|
45
30
|
readonly repo: pulumi.Output<string | undefined>;
|
|
31
|
+
readonly rootDir: pulumi.Output<string | undefined>;
|
|
46
32
|
readonly secretFiles: pulumi.Output<outputs.services.SecretFile[] | undefined>;
|
|
47
|
-
readonly serviceDetails: pulumi.Output<outputs.services.
|
|
33
|
+
readonly serviceDetails: pulumi.Output<outputs.services.WebServiceDetailsOutput | undefined>;
|
|
48
34
|
readonly slug: pulumi.Output<string | undefined>;
|
|
49
35
|
readonly suspended: pulumi.Output<enums.services.ServiceSuspended | undefined>;
|
|
50
|
-
readonly suspenders: pulumi.Output<
|
|
36
|
+
readonly suspenders: pulumi.Output<enums.services.ServiceSuspendersItem[] | undefined>;
|
|
51
37
|
readonly type: pulumi.Output<string | undefined>;
|
|
52
38
|
readonly updatedAt: pulumi.Output<string | undefined>;
|
|
53
39
|
/**
|
|
@@ -64,33 +50,24 @@ export declare class WebService extends pulumi.CustomResource {
|
|
|
64
50
|
*/
|
|
65
51
|
export interface WebServiceArgs {
|
|
66
52
|
/**
|
|
67
|
-
*
|
|
53
|
+
* Defaults to "yes"
|
|
68
54
|
*/
|
|
69
|
-
autoDeploy?: pulumi.Input<enums.services.
|
|
55
|
+
autoDeploy?: pulumi.Input<enums.services.ServiceCreateAutoDeploy>;
|
|
70
56
|
/**
|
|
71
|
-
* If left empty, this will fall back to the default branch of the repository
|
|
57
|
+
* If left empty, this will fall back to the default branch of the repository
|
|
72
58
|
*/
|
|
73
59
|
branch?: pulumi.Input<string>;
|
|
74
|
-
|
|
75
|
-
envVars?: pulumi.Input<pulumi.Input<inputs.services.EnvVarKeyValueArgs>[]>;
|
|
60
|
+
buildFilter?: pulumi.Input<inputs.services.BuildFilterArgs>;
|
|
61
|
+
envVars?: pulumi.Input<pulumi.Input<inputs.services.EnvVarKeyValueArgs | inputs.services.EnvVarKeyGenerateValueArgs>[]>;
|
|
62
|
+
image?: pulumi.Input<inputs.services.ImageArgs>;
|
|
76
63
|
name: pulumi.Input<string>;
|
|
77
|
-
/**
|
|
78
|
-
* The notification setting for this service upon deployment failure.
|
|
79
|
-
*/
|
|
80
|
-
notifyOnFail?: pulumi.Input<enums.services.ServiceNotifyOnFail>;
|
|
81
|
-
/**
|
|
82
|
-
* The id of the owner (user/team).
|
|
83
|
-
*/
|
|
84
64
|
ownerId: pulumi.Input<string>;
|
|
85
65
|
/**
|
|
86
66
|
* Do not include the branch in the repo string. You can instead supply a 'branch' parameter.
|
|
87
67
|
*/
|
|
88
|
-
repo
|
|
68
|
+
repo?: pulumi.Input<string>;
|
|
69
|
+
rootDir?: pulumi.Input<string>;
|
|
89
70
|
secretFiles?: pulumi.Input<pulumi.Input<inputs.services.SecretFileArgs>[]>;
|
|
90
|
-
serviceDetails?: pulumi.Input<inputs.services.
|
|
91
|
-
slug?: pulumi.Input<string>;
|
|
92
|
-
suspended?: pulumi.Input<enums.services.ServiceSuspended>;
|
|
93
|
-
suspenders?: pulumi.Input<pulumi.Input<string>[]>;
|
|
71
|
+
serviceDetails?: pulumi.Input<inputs.services.WebServiceDetailsCreateArgs>;
|
|
94
72
|
type?: pulumi.Input<string>;
|
|
95
|
-
updatedAt?: pulumi.Input<string>;
|
|
96
73
|
}
|