@pulumi/harness 0.9.0 → 0.9.1
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/autostopping/getRuleScaleGroup.d.ts +134 -0
- package/autostopping/getRuleScaleGroup.js +46 -0
- package/autostopping/getRuleScaleGroup.js.map +1 -0
- package/autostopping/index.d.ts +6 -0
- package/autostopping/index.js +9 -1
- package/autostopping/index.js.map +1 -1
- package/autostopping/ruleScaleGroup.d.ts +186 -0
- package/autostopping/ruleScaleGroup.js +115 -0
- package/autostopping/ruleScaleGroup.js.map +1 -0
- package/package.json +2 -2
- package/platform/environmentGroup.d.ts +5 -5
- package/platform/environmentGroup.js +5 -5
- package/platform/getDefaultNotificationTemplateSet.d.ts +6 -0
- package/platform/getDefaultNotificationTemplateSet.js +4 -0
- package/platform/getDefaultNotificationTemplateSet.js.map +1 -1
- package/platform/getPipelineCentralNotificationRule.d.ts +4 -0
- package/platform/getPipelineCentralNotificationRule.js +4 -0
- package/platform/getPipelineCentralNotificationRule.js.map +1 -1
- package/platform/pipeline.d.ts +1 -1
- package/platform/pipeline.js +1 -1
- package/platform/pipelineCentralNotificationRule.d.ts +90 -0
- package/platform/pipelineCentralNotificationRule.js +90 -0
- package/platform/pipelineCentralNotificationRule.js.map +1 -1
- package/platform/triggers.d.ts +3 -2
- package/platform/triggers.js +3 -2
- package/platform/triggers.js.map +1 -1
- package/types/input.d.ts +420 -0
- package/types/output.d.ts +312 -0
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Data source for retrieving a Harness Variable.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*/
|
|
9
|
+
export declare function getRuleScaleGroup(args: GetRuleScaleGroupArgs, opts?: pulumi.InvokeOptions): Promise<GetRuleScaleGroupResult>;
|
|
10
|
+
/**
|
|
11
|
+
* A collection of arguments for invoking getRuleScaleGroup.
|
|
12
|
+
*/
|
|
13
|
+
export interface GetRuleScaleGroupArgs {
|
|
14
|
+
/**
|
|
15
|
+
* Id of the cloud connector
|
|
16
|
+
*/
|
|
17
|
+
cloudConnectorId: string;
|
|
18
|
+
/**
|
|
19
|
+
* Custom URLs used to access the instances
|
|
20
|
+
*/
|
|
21
|
+
customDomains?: string[];
|
|
22
|
+
/**
|
|
23
|
+
* Dependent rules
|
|
24
|
+
*/
|
|
25
|
+
depends?: inputs.autostopping.GetRuleScaleGroupDepend[];
|
|
26
|
+
/**
|
|
27
|
+
* Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
|
|
28
|
+
*/
|
|
29
|
+
dryRun?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Http routing configuration
|
|
32
|
+
*/
|
|
33
|
+
https?: inputs.autostopping.GetRuleScaleGroupHttp[];
|
|
34
|
+
/**
|
|
35
|
+
* Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
|
|
36
|
+
*/
|
|
37
|
+
idleTimeMins?: number;
|
|
38
|
+
/**
|
|
39
|
+
* Name of the rule
|
|
40
|
+
*/
|
|
41
|
+
name: string;
|
|
42
|
+
/**
|
|
43
|
+
* Scaling Group configuration
|
|
44
|
+
*/
|
|
45
|
+
scaleGroup: inputs.autostopping.GetRuleScaleGroupScaleGroup;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* A collection of values returned by getRuleScaleGroup.
|
|
49
|
+
*/
|
|
50
|
+
export interface GetRuleScaleGroupResult {
|
|
51
|
+
/**
|
|
52
|
+
* Id of the cloud connector
|
|
53
|
+
*/
|
|
54
|
+
readonly cloudConnectorId: string;
|
|
55
|
+
/**
|
|
56
|
+
* Custom URLs used to access the instances
|
|
57
|
+
*/
|
|
58
|
+
readonly customDomains?: string[];
|
|
59
|
+
/**
|
|
60
|
+
* Dependent rules
|
|
61
|
+
*/
|
|
62
|
+
readonly depends?: outputs.autostopping.GetRuleScaleGroupDepend[];
|
|
63
|
+
/**
|
|
64
|
+
* Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
|
|
65
|
+
*/
|
|
66
|
+
readonly dryRun?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Http routing configuration
|
|
69
|
+
*/
|
|
70
|
+
readonly https?: outputs.autostopping.GetRuleScaleGroupHttp[];
|
|
71
|
+
/**
|
|
72
|
+
* The provider-assigned unique ID for this managed resource.
|
|
73
|
+
*/
|
|
74
|
+
readonly id: string;
|
|
75
|
+
/**
|
|
76
|
+
* Unique identifier of the resource
|
|
77
|
+
*/
|
|
78
|
+
readonly identifier: number;
|
|
79
|
+
/**
|
|
80
|
+
* Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
|
|
81
|
+
*/
|
|
82
|
+
readonly idleTimeMins?: number;
|
|
83
|
+
/**
|
|
84
|
+
* Name of the rule
|
|
85
|
+
*/
|
|
86
|
+
readonly name: string;
|
|
87
|
+
/**
|
|
88
|
+
* Scaling Group configuration
|
|
89
|
+
*/
|
|
90
|
+
readonly scaleGroup: outputs.autostopping.GetRuleScaleGroupScaleGroup;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Data source for retrieving a Harness Variable.
|
|
94
|
+
*
|
|
95
|
+
* ## Example Usage
|
|
96
|
+
*/
|
|
97
|
+
export declare function getRuleScaleGroupOutput(args: GetRuleScaleGroupOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetRuleScaleGroupResult>;
|
|
98
|
+
/**
|
|
99
|
+
* A collection of arguments for invoking getRuleScaleGroup.
|
|
100
|
+
*/
|
|
101
|
+
export interface GetRuleScaleGroupOutputArgs {
|
|
102
|
+
/**
|
|
103
|
+
* Id of the cloud connector
|
|
104
|
+
*/
|
|
105
|
+
cloudConnectorId: pulumi.Input<string>;
|
|
106
|
+
/**
|
|
107
|
+
* Custom URLs used to access the instances
|
|
108
|
+
*/
|
|
109
|
+
customDomains?: pulumi.Input<pulumi.Input<string>[]>;
|
|
110
|
+
/**
|
|
111
|
+
* Dependent rules
|
|
112
|
+
*/
|
|
113
|
+
depends?: pulumi.Input<pulumi.Input<inputs.autostopping.GetRuleScaleGroupDependArgs>[]>;
|
|
114
|
+
/**
|
|
115
|
+
* Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
|
|
116
|
+
*/
|
|
117
|
+
dryRun?: pulumi.Input<boolean>;
|
|
118
|
+
/**
|
|
119
|
+
* Http routing configuration
|
|
120
|
+
*/
|
|
121
|
+
https?: pulumi.Input<pulumi.Input<inputs.autostopping.GetRuleScaleGroupHttpArgs>[]>;
|
|
122
|
+
/**
|
|
123
|
+
* Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
|
|
124
|
+
*/
|
|
125
|
+
idleTimeMins?: pulumi.Input<number>;
|
|
126
|
+
/**
|
|
127
|
+
* Name of the rule
|
|
128
|
+
*/
|
|
129
|
+
name: pulumi.Input<string>;
|
|
130
|
+
/**
|
|
131
|
+
* Scaling Group configuration
|
|
132
|
+
*/
|
|
133
|
+
scaleGroup: pulumi.Input<inputs.autostopping.GetRuleScaleGroupScaleGroupArgs>;
|
|
134
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
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.getRuleScaleGroupOutput = exports.getRuleScaleGroup = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Data source for retrieving a Harness Variable.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*/
|
|
13
|
+
function getRuleScaleGroup(args, opts) {
|
|
14
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
15
|
+
return pulumi.runtime.invoke("harness:autostopping/getRuleScaleGroup:getRuleScaleGroup", {
|
|
16
|
+
"cloudConnectorId": args.cloudConnectorId,
|
|
17
|
+
"customDomains": args.customDomains,
|
|
18
|
+
"depends": args.depends,
|
|
19
|
+
"dryRun": args.dryRun,
|
|
20
|
+
"https": args.https,
|
|
21
|
+
"idleTimeMins": args.idleTimeMins,
|
|
22
|
+
"name": args.name,
|
|
23
|
+
"scaleGroup": args.scaleGroup,
|
|
24
|
+
}, opts);
|
|
25
|
+
}
|
|
26
|
+
exports.getRuleScaleGroup = getRuleScaleGroup;
|
|
27
|
+
/**
|
|
28
|
+
* Data source for retrieving a Harness Variable.
|
|
29
|
+
*
|
|
30
|
+
* ## Example Usage
|
|
31
|
+
*/
|
|
32
|
+
function getRuleScaleGroupOutput(args, opts) {
|
|
33
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
34
|
+
return pulumi.runtime.invokeOutput("harness:autostopping/getRuleScaleGroup:getRuleScaleGroup", {
|
|
35
|
+
"cloudConnectorId": args.cloudConnectorId,
|
|
36
|
+
"customDomains": args.customDomains,
|
|
37
|
+
"depends": args.depends,
|
|
38
|
+
"dryRun": args.dryRun,
|
|
39
|
+
"https": args.https,
|
|
40
|
+
"idleTimeMins": args.idleTimeMins,
|
|
41
|
+
"name": args.name,
|
|
42
|
+
"scaleGroup": args.scaleGroup,
|
|
43
|
+
}, opts);
|
|
44
|
+
}
|
|
45
|
+
exports.getRuleScaleGroupOutput = getRuleScaleGroupOutput;
|
|
46
|
+
//# sourceMappingURL=getRuleScaleGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRuleScaleGroup.js","sourceRoot":"","sources":["../../autostopping/getRuleScaleGroup.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;GAIG;AACH,SA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
|
|
|
34
34
|
export { GetRuleRdsArgs, GetRuleRdsResult, GetRuleRdsOutputArgs } from "./getRuleRds";
|
|
35
35
|
export declare const getRuleRds: typeof import("./getRuleRds").getRuleRds;
|
|
36
36
|
export declare const getRuleRdsOutput: typeof import("./getRuleRds").getRuleRdsOutput;
|
|
37
|
+
export { GetRuleScaleGroupArgs, GetRuleScaleGroupResult, GetRuleScaleGroupOutputArgs } from "./getRuleScaleGroup";
|
|
38
|
+
export declare const getRuleScaleGroup: typeof import("./getRuleScaleGroup").getRuleScaleGroup;
|
|
39
|
+
export declare const getRuleScaleGroupOutput: typeof import("./getRuleScaleGroup").getRuleScaleGroupOutput;
|
|
37
40
|
export { GetRuleVmArgs, GetRuleVmResult, GetRuleVmOutputArgs } from "./getRuleVm";
|
|
38
41
|
export declare const getRuleVm: typeof import("./getRuleVm").getRuleVm;
|
|
39
42
|
export declare const getRuleVmOutput: typeof import("./getRuleVm").getRuleVmOutput;
|
|
@@ -46,6 +49,9 @@ export declare const RuleEcs: typeof import("./ruleEcs").RuleEcs;
|
|
|
46
49
|
export { RuleRdsArgs, RuleRdsState } from "./ruleRds";
|
|
47
50
|
export type RuleRds = import("./ruleRds").RuleRds;
|
|
48
51
|
export declare const RuleRds: typeof import("./ruleRds").RuleRds;
|
|
52
|
+
export { RuleScaleGroupArgs, RuleScaleGroupState } from "./ruleScaleGroup";
|
|
53
|
+
export type RuleScaleGroup = import("./ruleScaleGroup").RuleScaleGroup;
|
|
54
|
+
export declare const RuleScaleGroup: typeof import("./ruleScaleGroup").RuleScaleGroup;
|
|
49
55
|
export { RuleVmArgs, RuleVmState } from "./ruleVm";
|
|
50
56
|
export type RuleVm = import("./ruleVm").RuleVm;
|
|
51
57
|
export declare const RuleVm: typeof import("./ruleVm").RuleVm;
|
package/autostopping/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
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.Schedule = exports.RuleVm = exports.RuleRds = exports.RuleEcs = exports.getScheduleOutput = exports.getSchedule = exports.getRuleVmOutput = exports.getRuleVm = exports.getRuleRdsOutput = exports.getRuleRds = exports.getRuleEcsOutput = exports.getRuleEcs = exports.getGcpProxyOutput = exports.getGcpProxy = exports.getAzureProxyOutput = exports.getAzureProxy = exports.getAzureGatewayOutput = exports.getAzureGateway = exports.getAwsProxyOutput = exports.getAwsProxy = exports.getAwsAlbOutput = exports.getAwsAlb = exports.GcpProxy = exports.AzureProxy = exports.AzureGateway = exports.AwsProxy = exports.AwsAlb = void 0;
|
|
5
|
+
exports.Schedule = exports.RuleVm = exports.RuleScaleGroup = exports.RuleRds = exports.RuleEcs = exports.getScheduleOutput = exports.getSchedule = exports.getRuleVmOutput = exports.getRuleVm = exports.getRuleScaleGroupOutput = exports.getRuleScaleGroup = exports.getRuleRdsOutput = exports.getRuleRds = exports.getRuleEcsOutput = exports.getRuleEcs = exports.getGcpProxyOutput = exports.getGcpProxy = exports.getAzureProxyOutput = exports.getAzureProxy = exports.getAzureGatewayOutput = exports.getAzureGateway = exports.getAwsProxyOutput = exports.getAwsProxy = exports.getAwsAlbOutput = exports.getAwsAlb = exports.GcpProxy = exports.AzureProxy = exports.AzureGateway = exports.AwsProxy = exports.AwsAlb = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
exports.AwsAlb = null;
|
|
@@ -36,6 +36,9 @@ utilities.lazyLoad(exports, ["getRuleEcs", "getRuleEcsOutput"], () => require(".
|
|
|
36
36
|
exports.getRuleRds = null;
|
|
37
37
|
exports.getRuleRdsOutput = null;
|
|
38
38
|
utilities.lazyLoad(exports, ["getRuleRds", "getRuleRdsOutput"], () => require("./getRuleRds"));
|
|
39
|
+
exports.getRuleScaleGroup = null;
|
|
40
|
+
exports.getRuleScaleGroupOutput = null;
|
|
41
|
+
utilities.lazyLoad(exports, ["getRuleScaleGroup", "getRuleScaleGroupOutput"], () => require("./getRuleScaleGroup"));
|
|
39
42
|
exports.getRuleVm = null;
|
|
40
43
|
exports.getRuleVmOutput = null;
|
|
41
44
|
utilities.lazyLoad(exports, ["getRuleVm", "getRuleVmOutput"], () => require("./getRuleVm"));
|
|
@@ -46,6 +49,8 @@ exports.RuleEcs = null;
|
|
|
46
49
|
utilities.lazyLoad(exports, ["RuleEcs"], () => require("./ruleEcs"));
|
|
47
50
|
exports.RuleRds = null;
|
|
48
51
|
utilities.lazyLoad(exports, ["RuleRds"], () => require("./ruleRds"));
|
|
52
|
+
exports.RuleScaleGroup = null;
|
|
53
|
+
utilities.lazyLoad(exports, ["RuleScaleGroup"], () => require("./ruleScaleGroup"));
|
|
49
54
|
exports.RuleVm = null;
|
|
50
55
|
utilities.lazyLoad(exports, ["RuleVm"], () => require("./ruleVm"));
|
|
51
56
|
exports.Schedule = null;
|
|
@@ -68,6 +73,8 @@ const _module = {
|
|
|
68
73
|
return new exports.RuleEcs(name, undefined, { urn });
|
|
69
74
|
case "harness:autostopping/ruleRds:RuleRds":
|
|
70
75
|
return new exports.RuleRds(name, undefined, { urn });
|
|
76
|
+
case "harness:autostopping/ruleScaleGroup:RuleScaleGroup":
|
|
77
|
+
return new exports.RuleScaleGroup(name, undefined, { urn });
|
|
71
78
|
case "harness:autostopping/ruleVm:RuleVm":
|
|
72
79
|
return new exports.RuleVm(name, undefined, { urn });
|
|
73
80
|
case "harness:autostopping/schedule:Schedule":
|
|
@@ -84,6 +91,7 @@ pulumi.runtime.registerResourceModule("harness", "autostopping/azureProxy", _mod
|
|
|
84
91
|
pulumi.runtime.registerResourceModule("harness", "autostopping/gcpProxy", _module);
|
|
85
92
|
pulumi.runtime.registerResourceModule("harness", "autostopping/ruleEcs", _module);
|
|
86
93
|
pulumi.runtime.registerResourceModule("harness", "autostopping/ruleRds", _module);
|
|
94
|
+
pulumi.runtime.registerResourceModule("harness", "autostopping/ruleScaleGroup", _module);
|
|
87
95
|
pulumi.runtime.registerResourceModule("harness", "autostopping/ruleVm", _module);
|
|
88
96
|
pulumi.runtime.registerResourceModule("harness", "autostopping/schedule", _module);
|
|
89
97
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../autostopping/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B,QAAA,MAAM,GAAqC,IAAW,CAAC;AACpE,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;AAItD,QAAA,QAAQ,GAAyC,IAAW,CAAC;AAC1E,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC;AAI1D,QAAA,YAAY,GAAiD,IAAW,CAAC;AACtF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,cAAc,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC;AAIlE,QAAA,UAAU,GAA6C,IAAW,CAAC;AAChF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,YAAY,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC;AAI9D,QAAA,QAAQ,GAAyC,IAAW,CAAC;AAC1E,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC;AAG1D,QAAA,SAAS,GAA2C,IAAW,CAAC;AAChE,QAAA,eAAe,GAAiD,IAAW,CAAC;AACzF,SAAS,C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CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,uBAAuB,EAAE,OAAO,CAAC,CAAA;AAClF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,2BAA2B,EAAE,OAAO,CAAC,CAAA;AACtF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,yBAAyB,EAAE,OAAO,CAAC,CAAA;AACpF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,uBAAuB,EAAE,OAAO,CAAC,CAAA;AAClF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,sBAAsB,EAAE,OAAO,CAAC,CAAA;AACjF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,sBAAsB,EAAE,OAAO,CAAC,CAAA;AACjF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,6BAA6B,EAAE,OAAO,CAAC,CAAA;AACxF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,qBAAqB,EAAE,OAAO,CAAC,CAAA;AAChF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,uBAAuB,EAAE,OAAO,CAAC,CAAA"}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Resource for creating a Harness AutoStopping rule for Scaling Groups.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as harness from "@pulumi/harness";
|
|
12
|
+
*
|
|
13
|
+
* const test = new harness.autostopping.RuleScaleGroup("test", {
|
|
14
|
+
* name: "test",
|
|
15
|
+
* cloudConnectorId: "test-connector",
|
|
16
|
+
* idleTimeMins: 5,
|
|
17
|
+
* customDomains: ["app.example.com"],
|
|
18
|
+
* scaleGroup: {
|
|
19
|
+
* id: "asg-arn",
|
|
20
|
+
* name: "asg-name",
|
|
21
|
+
* region: "us-east-1",
|
|
22
|
+
* desired: 1,
|
|
23
|
+
* min: 1,
|
|
24
|
+
* max: 2,
|
|
25
|
+
* onDemand: 1,
|
|
26
|
+
* },
|
|
27
|
+
* https: [{
|
|
28
|
+
* proxyId: "lb-id",
|
|
29
|
+
* routings: [{
|
|
30
|
+
* sourceProtocol: "http",
|
|
31
|
+
* sourcePort: 80,
|
|
32
|
+
* action: "forward",
|
|
33
|
+
* targetProtocol: "http",
|
|
34
|
+
* targetPort: 80,
|
|
35
|
+
* }],
|
|
36
|
+
* healths: [{
|
|
37
|
+
* protocol: "http",
|
|
38
|
+
* port: 80,
|
|
39
|
+
* path: "/",
|
|
40
|
+
* timeout: 30,
|
|
41
|
+
* statusCodeFrom: 200,
|
|
42
|
+
* statusCodeTo: 299,
|
|
43
|
+
* }],
|
|
44
|
+
* }],
|
|
45
|
+
* });
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
export declare class RuleScaleGroup extends pulumi.CustomResource {
|
|
49
|
+
/**
|
|
50
|
+
* Get an existing RuleScaleGroup resource's state with the given name, ID, and optional extra
|
|
51
|
+
* properties used to qualify the lookup.
|
|
52
|
+
*
|
|
53
|
+
* @param name The _unique_ name of the resulting resource.
|
|
54
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
55
|
+
* @param state Any extra arguments used during the lookup.
|
|
56
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
57
|
+
*/
|
|
58
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RuleScaleGroupState, opts?: pulumi.CustomResourceOptions): RuleScaleGroup;
|
|
59
|
+
/**
|
|
60
|
+
* Returns true if the given object is an instance of RuleScaleGroup. This is designed to work even
|
|
61
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
62
|
+
*/
|
|
63
|
+
static isInstance(obj: any): obj is RuleScaleGroup;
|
|
64
|
+
/**
|
|
65
|
+
* Id of the cloud connector
|
|
66
|
+
*/
|
|
67
|
+
readonly cloudConnectorId: pulumi.Output<string>;
|
|
68
|
+
/**
|
|
69
|
+
* Custom URLs used to access the instances
|
|
70
|
+
*/
|
|
71
|
+
readonly customDomains: pulumi.Output<string[] | undefined>;
|
|
72
|
+
/**
|
|
73
|
+
* Dependent rules
|
|
74
|
+
*/
|
|
75
|
+
readonly depends: pulumi.Output<outputs.autostopping.RuleScaleGroupDepend[] | undefined>;
|
|
76
|
+
/**
|
|
77
|
+
* Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
|
|
78
|
+
*/
|
|
79
|
+
readonly dryRun: pulumi.Output<boolean | undefined>;
|
|
80
|
+
/**
|
|
81
|
+
* Http routing configuration
|
|
82
|
+
*/
|
|
83
|
+
readonly https: pulumi.Output<outputs.autostopping.RuleScaleGroupHttp[] | undefined>;
|
|
84
|
+
/**
|
|
85
|
+
* Unique identifier of the resource
|
|
86
|
+
*/
|
|
87
|
+
readonly identifier: pulumi.Output<number>;
|
|
88
|
+
/**
|
|
89
|
+
* Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
|
|
90
|
+
*/
|
|
91
|
+
readonly idleTimeMins: pulumi.Output<number | undefined>;
|
|
92
|
+
/**
|
|
93
|
+
* Name of the rule
|
|
94
|
+
*/
|
|
95
|
+
readonly name: pulumi.Output<string>;
|
|
96
|
+
/**
|
|
97
|
+
* Scaling Group configuration
|
|
98
|
+
*/
|
|
99
|
+
readonly scaleGroup: pulumi.Output<outputs.autostopping.RuleScaleGroupScaleGroup>;
|
|
100
|
+
/**
|
|
101
|
+
* Create a RuleScaleGroup resource with the given unique name, arguments, and options.
|
|
102
|
+
*
|
|
103
|
+
* @param name The _unique_ name of the resource.
|
|
104
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
105
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
106
|
+
*/
|
|
107
|
+
constructor(name: string, args: RuleScaleGroupArgs, opts?: pulumi.CustomResourceOptions);
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Input properties used for looking up and filtering RuleScaleGroup resources.
|
|
111
|
+
*/
|
|
112
|
+
export interface RuleScaleGroupState {
|
|
113
|
+
/**
|
|
114
|
+
* Id of the cloud connector
|
|
115
|
+
*/
|
|
116
|
+
cloudConnectorId?: pulumi.Input<string>;
|
|
117
|
+
/**
|
|
118
|
+
* Custom URLs used to access the instances
|
|
119
|
+
*/
|
|
120
|
+
customDomains?: pulumi.Input<pulumi.Input<string>[]>;
|
|
121
|
+
/**
|
|
122
|
+
* Dependent rules
|
|
123
|
+
*/
|
|
124
|
+
depends?: pulumi.Input<pulumi.Input<inputs.autostopping.RuleScaleGroupDepend>[]>;
|
|
125
|
+
/**
|
|
126
|
+
* Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
|
|
127
|
+
*/
|
|
128
|
+
dryRun?: pulumi.Input<boolean>;
|
|
129
|
+
/**
|
|
130
|
+
* Http routing configuration
|
|
131
|
+
*/
|
|
132
|
+
https?: pulumi.Input<pulumi.Input<inputs.autostopping.RuleScaleGroupHttp>[]>;
|
|
133
|
+
/**
|
|
134
|
+
* Unique identifier of the resource
|
|
135
|
+
*/
|
|
136
|
+
identifier?: pulumi.Input<number>;
|
|
137
|
+
/**
|
|
138
|
+
* Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
|
|
139
|
+
*/
|
|
140
|
+
idleTimeMins?: pulumi.Input<number>;
|
|
141
|
+
/**
|
|
142
|
+
* Name of the rule
|
|
143
|
+
*/
|
|
144
|
+
name?: pulumi.Input<string>;
|
|
145
|
+
/**
|
|
146
|
+
* Scaling Group configuration
|
|
147
|
+
*/
|
|
148
|
+
scaleGroup?: pulumi.Input<inputs.autostopping.RuleScaleGroupScaleGroup>;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* The set of arguments for constructing a RuleScaleGroup resource.
|
|
152
|
+
*/
|
|
153
|
+
export interface RuleScaleGroupArgs {
|
|
154
|
+
/**
|
|
155
|
+
* Id of the cloud connector
|
|
156
|
+
*/
|
|
157
|
+
cloudConnectorId: pulumi.Input<string>;
|
|
158
|
+
/**
|
|
159
|
+
* Custom URLs used to access the instances
|
|
160
|
+
*/
|
|
161
|
+
customDomains?: pulumi.Input<pulumi.Input<string>[]>;
|
|
162
|
+
/**
|
|
163
|
+
* Dependent rules
|
|
164
|
+
*/
|
|
165
|
+
depends?: pulumi.Input<pulumi.Input<inputs.autostopping.RuleScaleGroupDepend>[]>;
|
|
166
|
+
/**
|
|
167
|
+
* Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
|
|
168
|
+
*/
|
|
169
|
+
dryRun?: pulumi.Input<boolean>;
|
|
170
|
+
/**
|
|
171
|
+
* Http routing configuration
|
|
172
|
+
*/
|
|
173
|
+
https?: pulumi.Input<pulumi.Input<inputs.autostopping.RuleScaleGroupHttp>[]>;
|
|
174
|
+
/**
|
|
175
|
+
* Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
|
|
176
|
+
*/
|
|
177
|
+
idleTimeMins?: pulumi.Input<number>;
|
|
178
|
+
/**
|
|
179
|
+
* Name of the rule
|
|
180
|
+
*/
|
|
181
|
+
name?: pulumi.Input<string>;
|
|
182
|
+
/**
|
|
183
|
+
* Scaling Group configuration
|
|
184
|
+
*/
|
|
185
|
+
scaleGroup: pulumi.Input<inputs.autostopping.RuleScaleGroupScaleGroup>;
|
|
186
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
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.RuleScaleGroup = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Resource for creating a Harness AutoStopping rule for Scaling Groups.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as harness from "@pulumi/harness";
|
|
16
|
+
*
|
|
17
|
+
* const test = new harness.autostopping.RuleScaleGroup("test", {
|
|
18
|
+
* name: "test",
|
|
19
|
+
* cloudConnectorId: "test-connector",
|
|
20
|
+
* idleTimeMins: 5,
|
|
21
|
+
* customDomains: ["app.example.com"],
|
|
22
|
+
* scaleGroup: {
|
|
23
|
+
* id: "asg-arn",
|
|
24
|
+
* name: "asg-name",
|
|
25
|
+
* region: "us-east-1",
|
|
26
|
+
* desired: 1,
|
|
27
|
+
* min: 1,
|
|
28
|
+
* max: 2,
|
|
29
|
+
* onDemand: 1,
|
|
30
|
+
* },
|
|
31
|
+
* https: [{
|
|
32
|
+
* proxyId: "lb-id",
|
|
33
|
+
* routings: [{
|
|
34
|
+
* sourceProtocol: "http",
|
|
35
|
+
* sourcePort: 80,
|
|
36
|
+
* action: "forward",
|
|
37
|
+
* targetProtocol: "http",
|
|
38
|
+
* targetPort: 80,
|
|
39
|
+
* }],
|
|
40
|
+
* healths: [{
|
|
41
|
+
* protocol: "http",
|
|
42
|
+
* port: 80,
|
|
43
|
+
* path: "/",
|
|
44
|
+
* timeout: 30,
|
|
45
|
+
* statusCodeFrom: 200,
|
|
46
|
+
* statusCodeTo: 299,
|
|
47
|
+
* }],
|
|
48
|
+
* }],
|
|
49
|
+
* });
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
class RuleScaleGroup extends pulumi.CustomResource {
|
|
53
|
+
/**
|
|
54
|
+
* Get an existing RuleScaleGroup resource's state with the given name, ID, and optional extra
|
|
55
|
+
* properties used to qualify the lookup.
|
|
56
|
+
*
|
|
57
|
+
* @param name The _unique_ name of the resulting resource.
|
|
58
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
59
|
+
* @param state Any extra arguments used during the lookup.
|
|
60
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
61
|
+
*/
|
|
62
|
+
static get(name, id, state, opts) {
|
|
63
|
+
return new RuleScaleGroup(name, state, { ...opts, id: id });
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Returns true if the given object is an instance of RuleScaleGroup. This is designed to work even
|
|
67
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
68
|
+
*/
|
|
69
|
+
static isInstance(obj) {
|
|
70
|
+
if (obj === undefined || obj === null) {
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
73
|
+
return obj['__pulumiType'] === RuleScaleGroup.__pulumiType;
|
|
74
|
+
}
|
|
75
|
+
constructor(name, argsOrState, opts) {
|
|
76
|
+
let resourceInputs = {};
|
|
77
|
+
opts = opts || {};
|
|
78
|
+
if (opts.id) {
|
|
79
|
+
const state = argsOrState;
|
|
80
|
+
resourceInputs["cloudConnectorId"] = state?.cloudConnectorId;
|
|
81
|
+
resourceInputs["customDomains"] = state?.customDomains;
|
|
82
|
+
resourceInputs["depends"] = state?.depends;
|
|
83
|
+
resourceInputs["dryRun"] = state?.dryRun;
|
|
84
|
+
resourceInputs["https"] = state?.https;
|
|
85
|
+
resourceInputs["identifier"] = state?.identifier;
|
|
86
|
+
resourceInputs["idleTimeMins"] = state?.idleTimeMins;
|
|
87
|
+
resourceInputs["name"] = state?.name;
|
|
88
|
+
resourceInputs["scaleGroup"] = state?.scaleGroup;
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
const args = argsOrState;
|
|
92
|
+
if (args?.cloudConnectorId === undefined && !opts.urn) {
|
|
93
|
+
throw new Error("Missing required property 'cloudConnectorId'");
|
|
94
|
+
}
|
|
95
|
+
if (args?.scaleGroup === undefined && !opts.urn) {
|
|
96
|
+
throw new Error("Missing required property 'scaleGroup'");
|
|
97
|
+
}
|
|
98
|
+
resourceInputs["cloudConnectorId"] = args?.cloudConnectorId;
|
|
99
|
+
resourceInputs["customDomains"] = args?.customDomains;
|
|
100
|
+
resourceInputs["depends"] = args?.depends;
|
|
101
|
+
resourceInputs["dryRun"] = args?.dryRun;
|
|
102
|
+
resourceInputs["https"] = args?.https;
|
|
103
|
+
resourceInputs["idleTimeMins"] = args?.idleTimeMins;
|
|
104
|
+
resourceInputs["name"] = args?.name;
|
|
105
|
+
resourceInputs["scaleGroup"] = args?.scaleGroup;
|
|
106
|
+
resourceInputs["identifier"] = undefined /*out*/;
|
|
107
|
+
}
|
|
108
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
109
|
+
super(RuleScaleGroup.__pulumiType, name, resourceInputs, opts);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
exports.RuleScaleGroup = RuleScaleGroup;
|
|
113
|
+
/** @internal */
|
|
114
|
+
RuleScaleGroup.__pulumiType = 'harness:autostopping/ruleScaleGroup:RuleScaleGroup';
|
|
115
|
+
//# sourceMappingURL=ruleScaleGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ruleScaleGroup.js","sourceRoot":"","sources":["../../autostopping/ruleScaleGroup.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACrE,CAAC;IAKD;;;OAGG;I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IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,cAAc,CAAC,kBAAkB,CAAC,GAAG,IAAI,EAAE,gBAAgB,CAAC;YAC5D,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;YACpD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACpD;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;;AA3GL,wCA4GC;AA9FG,gBAAgB;AACO,2BAAY,GAAG,oDAAoD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/harness",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"description": "A Pulumi package for creating and managing Harness resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"pulumi": {
|
|
24
24
|
"resource": true,
|
|
25
25
|
"name": "harness",
|
|
26
|
-
"version": "0.9.
|
|
26
|
+
"version": "0.9.1",
|
|
27
27
|
"server": "github://api.github.com/pulumi"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -14,11 +14,11 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
14
14
|
* projectId: "projectIdentifier",
|
|
15
15
|
* color: "#0063F7",
|
|
16
16
|
* yaml: `environmentGroup:
|
|
17
|
-
* name: "name"
|
|
18
|
-
* identifier: "identifier"
|
|
19
|
-
* description: "temp"
|
|
20
|
-
* orgIdentifier: "orgIdentifer"
|
|
21
|
-
* projectIdentifier: "projectIdentifier"
|
|
17
|
+
* name: \\"name\\"
|
|
18
|
+
* identifier: \\"identifier\\"
|
|
19
|
+
* description: \\"temp\\"
|
|
20
|
+
* orgIdentifier: \\"orgIdentifer\\"
|
|
21
|
+
* projectIdentifier: \\"projectIdentifier\\"
|
|
22
22
|
* envIdentifiers: []
|
|
23
23
|
* `,
|
|
24
24
|
* });
|
|
@@ -20,11 +20,11 @@ const utilities = require("../utilities");
|
|
|
20
20
|
* projectId: "projectIdentifier",
|
|
21
21
|
* color: "#0063F7",
|
|
22
22
|
* yaml: `environmentGroup:
|
|
23
|
-
* name: "name"
|
|
24
|
-
* identifier: "identifier"
|
|
25
|
-
* description: "temp"
|
|
26
|
-
* orgIdentifier: "orgIdentifer"
|
|
27
|
-
* projectIdentifier: "projectIdentifier"
|
|
23
|
+
* name: \\"name\\"
|
|
24
|
+
* identifier: \\"identifier\\"
|
|
25
|
+
* description: \\"temp\\"
|
|
26
|
+
* orgIdentifier: \\"orgIdentifer\\"
|
|
27
|
+
* projectIdentifier: \\"projectIdentifier\\"
|
|
28
28
|
* envIdentifiers: []
|
|
29
29
|
* `,
|
|
30
30
|
* });
|
|
@@ -33,6 +33,8 @@ export interface GetDefaultNotificationTemplateSetArgs {
|
|
|
33
33
|
* Type of the entity (e.g. PIPELINE, SERVICE, etc.)
|
|
34
34
|
*/
|
|
35
35
|
notificationEntity: string;
|
|
36
|
+
org?: string;
|
|
37
|
+
project?: string;
|
|
36
38
|
/**
|
|
37
39
|
* Key-value tags
|
|
38
40
|
*/
|
|
@@ -80,6 +82,8 @@ export interface GetDefaultNotificationTemplateSetResult {
|
|
|
80
82
|
* Type of the entity (e.g. PIPELINE, SERVICE, etc.)
|
|
81
83
|
*/
|
|
82
84
|
readonly notificationEntity: string;
|
|
85
|
+
readonly org?: string;
|
|
86
|
+
readonly project?: string;
|
|
83
87
|
/**
|
|
84
88
|
* Key-value tags
|
|
85
89
|
*/
|
|
@@ -119,6 +123,8 @@ export interface GetDefaultNotificationTemplateSetOutputArgs {
|
|
|
119
123
|
* Type of the entity (e.g. PIPELINE, SERVICE, etc.)
|
|
120
124
|
*/
|
|
121
125
|
notificationEntity: pulumi.Input<string>;
|
|
126
|
+
org?: pulumi.Input<string>;
|
|
127
|
+
project?: pulumi.Input<string>;
|
|
122
128
|
/**
|
|
123
129
|
* Key-value tags
|
|
124
130
|
*/
|