@pulumi/harness 0.17.0 → 0.17.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/getRuleEcs.d.ts +82 -56
- package/autostopping/getRuleEcs.d.ts.map +1 -1
- package/autostopping/getRuleEcs.js +70 -12
- package/autostopping/getRuleEcs.js.map +1 -1
- package/autostopping/getRuleK8s.d.ts +82 -77
- package/autostopping/getRuleK8s.d.ts.map +1 -1
- package/autostopping/getRuleK8s.js +70 -14
- package/autostopping/getRuleK8s.js.map +1 -1
- package/autostopping/getRuleRds.d.ts +84 -46
- package/autostopping/getRuleRds.d.ts.map +1 -1
- package/autostopping/getRuleRds.js +70 -10
- package/autostopping/getRuleRds.js.map +1 -1
- package/autostopping/getRuleScaleGroup.d.ts +82 -77
- package/autostopping/getRuleScaleGroup.d.ts.map +1 -1
- package/autostopping/getRuleScaleGroup.js +70 -14
- package/autostopping/getRuleScaleGroup.js.map +1 -1
- package/autostopping/getRuleVm.d.ts +82 -86
- package/autostopping/getRuleVm.d.ts.map +1 -1
- package/autostopping/getRuleVm.js +70 -16
- package/autostopping/getRuleVm.js.map +1 -1
- package/autostopping/getRules.d.ts +14 -0
- package/autostopping/getRules.d.ts.map +1 -1
- package/autostopping/getRules.js +14 -0
- package/autostopping/getRules.js.map +1 -1
- package/package.json +2 -2
- package/platform/connectorAnthropicModel.d.ts +314 -0
- package/platform/connectorAnthropicModel.d.ts.map +1 -0
- package/platform/connectorAnthropicModel.js +237 -0
- package/platform/connectorAnthropicModel.js.map +1 -0
- package/platform/connectorOpenaiModel.d.ts +257 -0
- package/platform/connectorOpenaiModel.d.ts.map +1 -0
- package/platform/connectorOpenaiModel.js +180 -0
- package/platform/connectorOpenaiModel.js.map +1 -0
- package/platform/getConnectorAnthropicModel.d.ts +132 -0
- package/platform/getConnectorAnthropicModel.d.ts.map +1 -0
- package/platform/getConnectorAnthropicModel.js +79 -0
- package/platform/getConnectorAnthropicModel.js.map +1 -0
- package/platform/getConnectorOpenaiModel.d.ts +132 -0
- package/platform/getConnectorOpenaiModel.d.ts.map +1 -0
- package/platform/getConnectorOpenaiModel.js +79 -0
- package/platform/getConnectorOpenaiModel.js.map +1 -0
- package/platform/getHarRegistry.d.ts +3 -3
- package/platform/harRegistry.d.ts +60 -3
- package/platform/harRegistry.d.ts.map +1 -1
- package/platform/harRegistry.js +57 -0
- package/platform/harRegistry.js.map +1 -1
- package/platform/index.d.ts +15 -0
- package/platform/index.d.ts.map +1 -1
- package/platform/index.js +30 -9
- package/platform/index.js.map +1 -1
- package/platform/setting.d.ts +210 -0
- package/platform/setting.d.ts.map +1 -0
- package/platform/setting.js +163 -0
- package/platform/setting.js.map +1 -0
- package/types/input.d.ts +96 -696
- package/types/input.d.ts.map +1 -1
- package/types/output.d.ts +197 -303
- package/types/output.d.ts.map +1 -1
|
@@ -1,37 +1,56 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import * as inputs from "../types/input";
|
|
3
2
|
import * as outputs from "../types/output";
|
|
4
3
|
/**
|
|
5
4
|
* Data source for retrieving a Harness AutoStopping rule for RDS databases.
|
|
6
5
|
*
|
|
7
6
|
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ### Lookup by ID
|
|
9
|
+
*
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
+
* import * as harness from "@pulumi/harness";
|
|
13
|
+
*
|
|
14
|
+
* const byId = harness.autostopping.getRuleRds({
|
|
15
|
+
* identifier: "12345",
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* ### Lookup by name (regex)
|
|
20
|
+
*
|
|
21
|
+
* ```typescript
|
|
22
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
23
|
+
* import * as harness from "@pulumi/harness";
|
|
24
|
+
*
|
|
25
|
+
* const byName = harness.autostopping.getRuleRds({
|
|
26
|
+
* name: "^my-rds-rule$",
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* ### Lookup by name pattern
|
|
31
|
+
*
|
|
32
|
+
* ```typescript
|
|
33
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
34
|
+
* import * as harness from "@pulumi/harness";
|
|
35
|
+
*
|
|
36
|
+
* const byPattern = harness.autostopping.getRuleRds({
|
|
37
|
+
* name: "my-rds-.*-prod",
|
|
38
|
+
* });
|
|
39
|
+
* ```
|
|
8
40
|
*/
|
|
9
|
-
export declare function getRuleRds(args
|
|
41
|
+
export declare function getRuleRds(args?: GetRuleRdsArgs, opts?: pulumi.InvokeOptions): Promise<GetRuleRdsResult>;
|
|
10
42
|
/**
|
|
11
43
|
* A collection of arguments for invoking getRuleRds.
|
|
12
44
|
*/
|
|
13
45
|
export interface GetRuleRdsArgs {
|
|
14
46
|
/**
|
|
15
|
-
*
|
|
16
|
-
*/
|
|
17
|
-
cloudConnectorId: string;
|
|
18
|
-
database: inputs.autostopping.GetRuleRdsDatabase;
|
|
19
|
-
/**
|
|
20
|
-
* Dependent rules
|
|
21
|
-
*/
|
|
22
|
-
depends?: inputs.autostopping.GetRuleRdsDepend[];
|
|
23
|
-
/**
|
|
24
|
-
* Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
|
|
25
|
-
*/
|
|
26
|
-
idleTimeMins?: number;
|
|
27
|
-
/**
|
|
28
|
-
* Name of the rule
|
|
47
|
+
* Unique identifier of the resource. Either `identifier` or `name` must be specified.
|
|
29
48
|
*/
|
|
30
|
-
|
|
49
|
+
identifier?: string;
|
|
31
50
|
/**
|
|
32
|
-
*
|
|
51
|
+
* Name or regex pattern to match the rule name. Either `identifier` or `name` must be specified.
|
|
33
52
|
*/
|
|
34
|
-
|
|
53
|
+
name?: string;
|
|
35
54
|
}
|
|
36
55
|
/**
|
|
37
56
|
* A collection of values returned by getRuleRds.
|
|
@@ -41,62 +60,81 @@ export interface GetRuleRdsResult {
|
|
|
41
60
|
* Id of the cloud connector
|
|
42
61
|
*/
|
|
43
62
|
readonly cloudConnectorId: string;
|
|
44
|
-
readonly database: outputs.autostopping.GetRuleRdsDatabase;
|
|
45
63
|
/**
|
|
46
64
|
* Dependent rules
|
|
47
65
|
*/
|
|
48
|
-
readonly depends
|
|
66
|
+
readonly depends: outputs.autostopping.GetRuleRdsDepend[];
|
|
67
|
+
/**
|
|
68
|
+
* Boolean that indicates whether the AutoStopping rule is in DryRun mode
|
|
69
|
+
*/
|
|
70
|
+
readonly dryRun: boolean;
|
|
49
71
|
/**
|
|
50
72
|
* The provider-assigned unique ID for this managed resource.
|
|
51
73
|
*/
|
|
52
74
|
readonly id: string;
|
|
53
75
|
/**
|
|
54
|
-
* Unique identifier of the resource
|
|
76
|
+
* Unique identifier of the resource. Either `identifier` or `name` must be specified.
|
|
55
77
|
*/
|
|
56
78
|
readonly identifier: string;
|
|
57
79
|
/**
|
|
58
80
|
* Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
|
|
59
81
|
*/
|
|
60
|
-
readonly idleTimeMins
|
|
82
|
+
readonly idleTimeMins: number;
|
|
61
83
|
/**
|
|
62
|
-
* Name
|
|
84
|
+
* Name or regex pattern to match the rule name. Either `identifier` or `name` must be specified.
|
|
63
85
|
*/
|
|
64
86
|
readonly name: string;
|
|
65
|
-
/**
|
|
66
|
-
* TCP routing configuration
|
|
67
|
-
*/
|
|
68
|
-
readonly tcps?: outputs.autostopping.GetRuleRdsTcp[];
|
|
69
87
|
}
|
|
70
88
|
/**
|
|
71
89
|
* Data source for retrieving a Harness AutoStopping rule for RDS databases.
|
|
72
90
|
*
|
|
73
91
|
* ## Example Usage
|
|
92
|
+
*
|
|
93
|
+
* ### Lookup by ID
|
|
94
|
+
*
|
|
95
|
+
* ```typescript
|
|
96
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
97
|
+
* import * as harness from "@pulumi/harness";
|
|
98
|
+
*
|
|
99
|
+
* const byId = harness.autostopping.getRuleRds({
|
|
100
|
+
* identifier: "12345",
|
|
101
|
+
* });
|
|
102
|
+
* ```
|
|
103
|
+
*
|
|
104
|
+
* ### Lookup by name (regex)
|
|
105
|
+
*
|
|
106
|
+
* ```typescript
|
|
107
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
108
|
+
* import * as harness from "@pulumi/harness";
|
|
109
|
+
*
|
|
110
|
+
* const byName = harness.autostopping.getRuleRds({
|
|
111
|
+
* name: "^my-rds-rule$",
|
|
112
|
+
* });
|
|
113
|
+
* ```
|
|
114
|
+
*
|
|
115
|
+
* ### Lookup by name pattern
|
|
116
|
+
*
|
|
117
|
+
* ```typescript
|
|
118
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
119
|
+
* import * as harness from "@pulumi/harness";
|
|
120
|
+
*
|
|
121
|
+
* const byPattern = harness.autostopping.getRuleRds({
|
|
122
|
+
* name: "my-rds-.*-prod",
|
|
123
|
+
* });
|
|
124
|
+
* ```
|
|
74
125
|
*/
|
|
75
|
-
export declare function getRuleRdsOutput(args
|
|
126
|
+
export declare function getRuleRdsOutput(args?: GetRuleRdsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetRuleRdsResult>;
|
|
76
127
|
/**
|
|
77
128
|
* A collection of arguments for invoking getRuleRds.
|
|
78
129
|
*/
|
|
79
130
|
export interface GetRuleRdsOutputArgs {
|
|
80
131
|
/**
|
|
81
|
-
*
|
|
82
|
-
*/
|
|
83
|
-
cloudConnectorId: pulumi.Input<string>;
|
|
84
|
-
database: pulumi.Input<inputs.autostopping.GetRuleRdsDatabaseArgs>;
|
|
85
|
-
/**
|
|
86
|
-
* Dependent rules
|
|
87
|
-
*/
|
|
88
|
-
depends?: pulumi.Input<pulumi.Input<inputs.autostopping.GetRuleRdsDependArgs>[] | undefined>;
|
|
89
|
-
/**
|
|
90
|
-
* Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
|
|
91
|
-
*/
|
|
92
|
-
idleTimeMins?: pulumi.Input<number | undefined>;
|
|
93
|
-
/**
|
|
94
|
-
* Name of the rule
|
|
132
|
+
* Unique identifier of the resource. Either `identifier` or `name` must be specified.
|
|
95
133
|
*/
|
|
96
|
-
|
|
134
|
+
identifier?: pulumi.Input<string | undefined>;
|
|
97
135
|
/**
|
|
98
|
-
*
|
|
136
|
+
* Name or regex pattern to match the rule name. Either `identifier` or `name` must be specified.
|
|
99
137
|
*/
|
|
100
|
-
|
|
138
|
+
name?: pulumi.Input<string | undefined>;
|
|
101
139
|
}
|
|
102
140
|
//# sourceMappingURL=getRuleRds.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRuleRds.d.ts","sourceRoot":"","sources":["../../autostopping/getRuleRds.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"getRuleRds.d.ts","sourceRoot":"","sources":["../../autostopping/getRuleRds.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAC;AAG3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAgB,UAAU,CAAC,IAAI,CAAC,EAAE,cAAc,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAOxG;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;OAEG;IACH,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,YAAY,CAAC,gBAAgB,EAAE,CAAC;IAC1D;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACzB;AACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,CAAC,EAAE,oBAAoB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAOhI;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC9C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC3C"}
|
|
@@ -32,16 +32,46 @@ const utilities = __importStar(require("../utilities"));
|
|
|
32
32
|
* Data source for retrieving a Harness AutoStopping rule for RDS databases.
|
|
33
33
|
*
|
|
34
34
|
* ## Example Usage
|
|
35
|
+
*
|
|
36
|
+
* ### Lookup by ID
|
|
37
|
+
*
|
|
38
|
+
* ```typescript
|
|
39
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
40
|
+
* import * as harness from "@pulumi/harness";
|
|
41
|
+
*
|
|
42
|
+
* const byId = harness.autostopping.getRuleRds({
|
|
43
|
+
* identifier: "12345",
|
|
44
|
+
* });
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* ### Lookup by name (regex)
|
|
48
|
+
*
|
|
49
|
+
* ```typescript
|
|
50
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
51
|
+
* import * as harness from "@pulumi/harness";
|
|
52
|
+
*
|
|
53
|
+
* const byName = harness.autostopping.getRuleRds({
|
|
54
|
+
* name: "^my-rds-rule$",
|
|
55
|
+
* });
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* ### Lookup by name pattern
|
|
59
|
+
*
|
|
60
|
+
* ```typescript
|
|
61
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
62
|
+
* import * as harness from "@pulumi/harness";
|
|
63
|
+
*
|
|
64
|
+
* const byPattern = harness.autostopping.getRuleRds({
|
|
65
|
+
* name: "my-rds-.*-prod",
|
|
66
|
+
* });
|
|
67
|
+
* ```
|
|
35
68
|
*/
|
|
36
69
|
function getRuleRds(args, opts) {
|
|
70
|
+
args = args || {};
|
|
37
71
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
38
72
|
return pulumi.runtime.invoke("harness:autostopping/getRuleRds:getRuleRds", {
|
|
39
|
-
"
|
|
40
|
-
"database": args.database,
|
|
41
|
-
"depends": args.depends,
|
|
42
|
-
"idleTimeMins": args.idleTimeMins,
|
|
73
|
+
"identifier": args.identifier,
|
|
43
74
|
"name": args.name,
|
|
44
|
-
"tcps": args.tcps,
|
|
45
75
|
}, opts);
|
|
46
76
|
}
|
|
47
77
|
exports.getRuleRds = getRuleRds;
|
|
@@ -49,16 +79,46 @@ exports.getRuleRds = getRuleRds;
|
|
|
49
79
|
* Data source for retrieving a Harness AutoStopping rule for RDS databases.
|
|
50
80
|
*
|
|
51
81
|
* ## Example Usage
|
|
82
|
+
*
|
|
83
|
+
* ### Lookup by ID
|
|
84
|
+
*
|
|
85
|
+
* ```typescript
|
|
86
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
87
|
+
* import * as harness from "@pulumi/harness";
|
|
88
|
+
*
|
|
89
|
+
* const byId = harness.autostopping.getRuleRds({
|
|
90
|
+
* identifier: "12345",
|
|
91
|
+
* });
|
|
92
|
+
* ```
|
|
93
|
+
*
|
|
94
|
+
* ### Lookup by name (regex)
|
|
95
|
+
*
|
|
96
|
+
* ```typescript
|
|
97
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
98
|
+
* import * as harness from "@pulumi/harness";
|
|
99
|
+
*
|
|
100
|
+
* const byName = harness.autostopping.getRuleRds({
|
|
101
|
+
* name: "^my-rds-rule$",
|
|
102
|
+
* });
|
|
103
|
+
* ```
|
|
104
|
+
*
|
|
105
|
+
* ### Lookup by name pattern
|
|
106
|
+
*
|
|
107
|
+
* ```typescript
|
|
108
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
109
|
+
* import * as harness from "@pulumi/harness";
|
|
110
|
+
*
|
|
111
|
+
* const byPattern = harness.autostopping.getRuleRds({
|
|
112
|
+
* name: "my-rds-.*-prod",
|
|
113
|
+
* });
|
|
114
|
+
* ```
|
|
52
115
|
*/
|
|
53
116
|
function getRuleRdsOutput(args, opts) {
|
|
117
|
+
args = args || {};
|
|
54
118
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
55
119
|
return pulumi.runtime.invokeOutput("harness:autostopping/getRuleRds:getRuleRds", {
|
|
56
|
-
"
|
|
57
|
-
"database": args.database,
|
|
58
|
-
"depends": args.depends,
|
|
59
|
-
"idleTimeMins": args.idleTimeMins,
|
|
120
|
+
"identifier": args.identifier,
|
|
60
121
|
"name": args.name,
|
|
61
|
-
"tcps": args.tcps,
|
|
62
122
|
}, opts);
|
|
63
123
|
}
|
|
64
124
|
exports.getRuleRdsOutput = getRuleRdsOutput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRuleRds.js","sourceRoot":"","sources":["../../autostopping/getRuleRds.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,wDAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"getRuleRds.js","sourceRoot":"","sources":["../../autostopping/getRuleRds.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,wDAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,SAAgB,UAAU,CAAC,IAAqB,EAAE,IAA2B;IACzE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4CAA4C,EAAE;QACvE,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,gCAOC;AAiDD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,SAAgB,gBAAgB,CAAC,IAA2B,EAAE,IAAiC;IAC3F,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,4CAA4C,EAAE;QAC7E,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,4CAOC"}
|
|
@@ -1,48 +1,56 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import * as inputs from "../types/input";
|
|
3
2
|
import * as outputs from "../types/output";
|
|
4
3
|
/**
|
|
5
4
|
* Data source for retrieving a Harness AutoStopping rule for Scaling Groups.
|
|
6
5
|
*
|
|
7
6
|
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ### Lookup by ID
|
|
9
|
+
*
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
+
* import * as harness from "@pulumi/harness";
|
|
13
|
+
*
|
|
14
|
+
* const byId = harness.autostopping.getRuleScaleGroup({
|
|
15
|
+
* identifier: "12345",
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* ### Lookup by name (regex)
|
|
20
|
+
*
|
|
21
|
+
* ```typescript
|
|
22
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
23
|
+
* import * as harness from "@pulumi/harness";
|
|
24
|
+
*
|
|
25
|
+
* const byName = harness.autostopping.getRuleScaleGroup({
|
|
26
|
+
* name: "^my-scale-group-rule$",
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* ### Lookup by name pattern
|
|
31
|
+
*
|
|
32
|
+
* ```typescript
|
|
33
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
34
|
+
* import * as harness from "@pulumi/harness";
|
|
35
|
+
*
|
|
36
|
+
* const byPattern = harness.autostopping.getRuleScaleGroup({
|
|
37
|
+
* name: "my-asg-.*-prod",
|
|
38
|
+
* });
|
|
39
|
+
* ```
|
|
8
40
|
*/
|
|
9
|
-
export declare function getRuleScaleGroup(args
|
|
41
|
+
export declare function getRuleScaleGroup(args?: GetRuleScaleGroupArgs, opts?: pulumi.InvokeOptions): Promise<GetRuleScaleGroupResult>;
|
|
10
42
|
/**
|
|
11
43
|
* A collection of arguments for invoking getRuleScaleGroup.
|
|
12
44
|
*/
|
|
13
45
|
export interface GetRuleScaleGroupArgs {
|
|
14
46
|
/**
|
|
15
|
-
*
|
|
47
|
+
* Unique identifier of the resource. Either `identifier` or `name` must be specified.
|
|
16
48
|
*/
|
|
17
|
-
|
|
49
|
+
identifier?: string;
|
|
18
50
|
/**
|
|
19
|
-
*
|
|
51
|
+
* Name or regex pattern to match the rule name. Either `identifier` or `name` must be specified.
|
|
20
52
|
*/
|
|
21
|
-
|
|
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;
|
|
53
|
+
name?: string;
|
|
46
54
|
}
|
|
47
55
|
/**
|
|
48
56
|
* A collection of values returned by getRuleScaleGroup.
|
|
@@ -52,84 +60,81 @@ export interface GetRuleScaleGroupResult {
|
|
|
52
60
|
* Id of the cloud connector
|
|
53
61
|
*/
|
|
54
62
|
readonly cloudConnectorId: string;
|
|
55
|
-
/**
|
|
56
|
-
* Custom URLs used to access the instances
|
|
57
|
-
*/
|
|
58
|
-
readonly customDomains?: string[];
|
|
59
63
|
/**
|
|
60
64
|
* Dependent rules
|
|
61
65
|
*/
|
|
62
|
-
readonly depends
|
|
63
|
-
/**
|
|
64
|
-
* Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
|
|
65
|
-
*/
|
|
66
|
-
readonly dryRun?: boolean;
|
|
66
|
+
readonly depends: outputs.autostopping.GetRuleScaleGroupDepend[];
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
68
|
+
* Boolean that indicates whether the AutoStopping rule is in DryRun mode
|
|
69
69
|
*/
|
|
70
|
-
readonly
|
|
70
|
+
readonly dryRun: boolean;
|
|
71
71
|
/**
|
|
72
72
|
* The provider-assigned unique ID for this managed resource.
|
|
73
73
|
*/
|
|
74
74
|
readonly id: string;
|
|
75
75
|
/**
|
|
76
|
-
* Unique identifier of the resource
|
|
76
|
+
* Unique identifier of the resource. Either `identifier` or `name` must be specified.
|
|
77
77
|
*/
|
|
78
78
|
readonly identifier: string;
|
|
79
79
|
/**
|
|
80
80
|
* Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
|
|
81
81
|
*/
|
|
82
|
-
readonly idleTimeMins
|
|
82
|
+
readonly idleTimeMins: number;
|
|
83
83
|
/**
|
|
84
|
-
* Name
|
|
84
|
+
* Name or regex pattern to match the rule name. Either `identifier` or `name` must be specified.
|
|
85
85
|
*/
|
|
86
86
|
readonly name: string;
|
|
87
|
-
/**
|
|
88
|
-
* Scaling Group configuration
|
|
89
|
-
*/
|
|
90
|
-
readonly scaleGroup: outputs.autostopping.GetRuleScaleGroupScaleGroup;
|
|
91
87
|
}
|
|
92
88
|
/**
|
|
93
89
|
* Data source for retrieving a Harness AutoStopping rule for Scaling Groups.
|
|
94
90
|
*
|
|
95
91
|
* ## Example Usage
|
|
92
|
+
*
|
|
93
|
+
* ### Lookup by ID
|
|
94
|
+
*
|
|
95
|
+
* ```typescript
|
|
96
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
97
|
+
* import * as harness from "@pulumi/harness";
|
|
98
|
+
*
|
|
99
|
+
* const byId = harness.autostopping.getRuleScaleGroup({
|
|
100
|
+
* identifier: "12345",
|
|
101
|
+
* });
|
|
102
|
+
* ```
|
|
103
|
+
*
|
|
104
|
+
* ### Lookup by name (regex)
|
|
105
|
+
*
|
|
106
|
+
* ```typescript
|
|
107
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
108
|
+
* import * as harness from "@pulumi/harness";
|
|
109
|
+
*
|
|
110
|
+
* const byName = harness.autostopping.getRuleScaleGroup({
|
|
111
|
+
* name: "^my-scale-group-rule$",
|
|
112
|
+
* });
|
|
113
|
+
* ```
|
|
114
|
+
*
|
|
115
|
+
* ### Lookup by name pattern
|
|
116
|
+
*
|
|
117
|
+
* ```typescript
|
|
118
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
119
|
+
* import * as harness from "@pulumi/harness";
|
|
120
|
+
*
|
|
121
|
+
* const byPattern = harness.autostopping.getRuleScaleGroup({
|
|
122
|
+
* name: "my-asg-.*-prod",
|
|
123
|
+
* });
|
|
124
|
+
* ```
|
|
96
125
|
*/
|
|
97
|
-
export declare function getRuleScaleGroupOutput(args
|
|
126
|
+
export declare function getRuleScaleGroupOutput(args?: GetRuleScaleGroupOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetRuleScaleGroupResult>;
|
|
98
127
|
/**
|
|
99
128
|
* A collection of arguments for invoking getRuleScaleGroup.
|
|
100
129
|
*/
|
|
101
130
|
export interface GetRuleScaleGroupOutputArgs {
|
|
102
131
|
/**
|
|
103
|
-
*
|
|
104
|
-
*/
|
|
105
|
-
cloudConnectorId: pulumi.Input<string>;
|
|
106
|
-
/**
|
|
107
|
-
* Custom URLs used to access the instances
|
|
108
|
-
*/
|
|
109
|
-
customDomains?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
110
|
-
/**
|
|
111
|
-
* Dependent rules
|
|
112
|
-
*/
|
|
113
|
-
depends?: pulumi.Input<pulumi.Input<inputs.autostopping.GetRuleScaleGroupDependArgs>[] | undefined>;
|
|
114
|
-
/**
|
|
115
|
-
* Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
|
|
116
|
-
*/
|
|
117
|
-
dryRun?: pulumi.Input<boolean | undefined>;
|
|
118
|
-
/**
|
|
119
|
-
* Http routing configuration
|
|
120
|
-
*/
|
|
121
|
-
https?: pulumi.Input<pulumi.Input<inputs.autostopping.GetRuleScaleGroupHttpArgs>[] | undefined>;
|
|
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 | undefined>;
|
|
126
|
-
/**
|
|
127
|
-
* Name of the rule
|
|
132
|
+
* Unique identifier of the resource. Either `identifier` or `name` must be specified.
|
|
128
133
|
*/
|
|
129
|
-
|
|
134
|
+
identifier?: pulumi.Input<string | undefined>;
|
|
130
135
|
/**
|
|
131
|
-
*
|
|
136
|
+
* Name or regex pattern to match the rule name. Either `identifier` or `name` must be specified.
|
|
132
137
|
*/
|
|
133
|
-
|
|
138
|
+
name?: pulumi.Input<string | undefined>;
|
|
134
139
|
}
|
|
135
140
|
//# sourceMappingURL=getRuleScaleGroup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRuleScaleGroup.d.ts","sourceRoot":"","sources":["../../autostopping/getRuleScaleGroup.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"getRuleScaleGroup.d.ts","sourceRoot":"","sources":["../../autostopping/getRuleScaleGroup.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAC;AAG3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,CAAC,EAAE,qBAAqB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAO7H;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC;;OAEG;IACH,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,YAAY,CAAC,uBAAuB,EAAE,CAAC;IACjE;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACzB;AACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,CAAC,EAAE,2BAA2B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAOrJ;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IACxC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC9C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC3C"}
|
|
@@ -32,18 +32,46 @@ const utilities = __importStar(require("../utilities"));
|
|
|
32
32
|
* Data source for retrieving a Harness AutoStopping rule for Scaling Groups.
|
|
33
33
|
*
|
|
34
34
|
* ## Example Usage
|
|
35
|
+
*
|
|
36
|
+
* ### Lookup by ID
|
|
37
|
+
*
|
|
38
|
+
* ```typescript
|
|
39
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
40
|
+
* import * as harness from "@pulumi/harness";
|
|
41
|
+
*
|
|
42
|
+
* const byId = harness.autostopping.getRuleScaleGroup({
|
|
43
|
+
* identifier: "12345",
|
|
44
|
+
* });
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* ### Lookup by name (regex)
|
|
48
|
+
*
|
|
49
|
+
* ```typescript
|
|
50
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
51
|
+
* import * as harness from "@pulumi/harness";
|
|
52
|
+
*
|
|
53
|
+
* const byName = harness.autostopping.getRuleScaleGroup({
|
|
54
|
+
* name: "^my-scale-group-rule$",
|
|
55
|
+
* });
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* ### Lookup by name pattern
|
|
59
|
+
*
|
|
60
|
+
* ```typescript
|
|
61
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
62
|
+
* import * as harness from "@pulumi/harness";
|
|
63
|
+
*
|
|
64
|
+
* const byPattern = harness.autostopping.getRuleScaleGroup({
|
|
65
|
+
* name: "my-asg-.*-prod",
|
|
66
|
+
* });
|
|
67
|
+
* ```
|
|
35
68
|
*/
|
|
36
69
|
function getRuleScaleGroup(args, opts) {
|
|
70
|
+
args = args || {};
|
|
37
71
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
38
72
|
return pulumi.runtime.invoke("harness:autostopping/getRuleScaleGroup:getRuleScaleGroup", {
|
|
39
|
-
"
|
|
40
|
-
"customDomains": args.customDomains,
|
|
41
|
-
"depends": args.depends,
|
|
42
|
-
"dryRun": args.dryRun,
|
|
43
|
-
"https": args.https,
|
|
44
|
-
"idleTimeMins": args.idleTimeMins,
|
|
73
|
+
"identifier": args.identifier,
|
|
45
74
|
"name": args.name,
|
|
46
|
-
"scaleGroup": args.scaleGroup,
|
|
47
75
|
}, opts);
|
|
48
76
|
}
|
|
49
77
|
exports.getRuleScaleGroup = getRuleScaleGroup;
|
|
@@ -51,18 +79,46 @@ exports.getRuleScaleGroup = getRuleScaleGroup;
|
|
|
51
79
|
* Data source for retrieving a Harness AutoStopping rule for Scaling Groups.
|
|
52
80
|
*
|
|
53
81
|
* ## Example Usage
|
|
82
|
+
*
|
|
83
|
+
* ### Lookup by ID
|
|
84
|
+
*
|
|
85
|
+
* ```typescript
|
|
86
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
87
|
+
* import * as harness from "@pulumi/harness";
|
|
88
|
+
*
|
|
89
|
+
* const byId = harness.autostopping.getRuleScaleGroup({
|
|
90
|
+
* identifier: "12345",
|
|
91
|
+
* });
|
|
92
|
+
* ```
|
|
93
|
+
*
|
|
94
|
+
* ### Lookup by name (regex)
|
|
95
|
+
*
|
|
96
|
+
* ```typescript
|
|
97
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
98
|
+
* import * as harness from "@pulumi/harness";
|
|
99
|
+
*
|
|
100
|
+
* const byName = harness.autostopping.getRuleScaleGroup({
|
|
101
|
+
* name: "^my-scale-group-rule$",
|
|
102
|
+
* });
|
|
103
|
+
* ```
|
|
104
|
+
*
|
|
105
|
+
* ### Lookup by name pattern
|
|
106
|
+
*
|
|
107
|
+
* ```typescript
|
|
108
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
109
|
+
* import * as harness from "@pulumi/harness";
|
|
110
|
+
*
|
|
111
|
+
* const byPattern = harness.autostopping.getRuleScaleGroup({
|
|
112
|
+
* name: "my-asg-.*-prod",
|
|
113
|
+
* });
|
|
114
|
+
* ```
|
|
54
115
|
*/
|
|
55
116
|
function getRuleScaleGroupOutput(args, opts) {
|
|
117
|
+
args = args || {};
|
|
56
118
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
57
119
|
return pulumi.runtime.invokeOutput("harness:autostopping/getRuleScaleGroup:getRuleScaleGroup", {
|
|
58
|
-
"
|
|
59
|
-
"customDomains": args.customDomains,
|
|
60
|
-
"depends": args.depends,
|
|
61
|
-
"dryRun": args.dryRun,
|
|
62
|
-
"https": args.https,
|
|
63
|
-
"idleTimeMins": args.idleTimeMins,
|
|
120
|
+
"identifier": args.identifier,
|
|
64
121
|
"name": args.name,
|
|
65
|
-
"scaleGroup": args.scaleGroup,
|
|
66
122
|
}, opts);
|
|
67
123
|
}
|
|
68
124
|
exports.getRuleScaleGroupOutput = getRuleScaleGroupOutput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRuleScaleGroup.js","sourceRoot":"","sources":["../../autostopping/getRuleScaleGroup.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,wDAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"getRuleScaleGroup.js","sourceRoot":"","sources":["../../autostopping/getRuleScaleGroup.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,wDAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,SAAgB,iBAAiB,CAAC,IAA4B,EAAE,IAA2B;IACvF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0DAA0D,EAAE;QACrF,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,8CAOC;AAiDD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,SAAgB,uBAAuB,CAAC,IAAkC,EAAE,IAAiC;IACzG,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,0DAA0D,EAAE;QAC3F,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,0DAOC"}
|