@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,41 +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 ECS services.
|
|
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.getRuleEcs({
|
|
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.getRuleEcs({
|
|
26
|
+
* name: "^my-ecs-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.getRuleEcs({
|
|
37
|
+
* name: "my-ecs-.*-prod",
|
|
38
|
+
* });
|
|
39
|
+
* ```
|
|
8
40
|
*/
|
|
9
|
-
export declare function getRuleEcs(args
|
|
41
|
+
export declare function getRuleEcs(args?: GetRuleEcsArgs, opts?: pulumi.InvokeOptions): Promise<GetRuleEcsResult>;
|
|
10
42
|
/**
|
|
11
43
|
* A collection of arguments for invoking getRuleEcs.
|
|
12
44
|
*/
|
|
13
45
|
export interface GetRuleEcsArgs {
|
|
14
46
|
/**
|
|
15
|
-
*
|
|
47
|
+
* Unique identifier of the resource. Either `identifier` or `name` must be specified.
|
|
16
48
|
*/
|
|
17
|
-
|
|
18
|
-
container?: inputs.autostopping.GetRuleEcsContainer;
|
|
49
|
+
identifier?: string;
|
|
19
50
|
/**
|
|
20
|
-
*
|
|
51
|
+
* Name or regex pattern to match the rule name. Either `identifier` or `name` must be specified.
|
|
21
52
|
*/
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Dependent rules
|
|
25
|
-
*/
|
|
26
|
-
depends?: inputs.autostopping.GetRuleEcsDepend[];
|
|
27
|
-
/**
|
|
28
|
-
* Http routing configuration
|
|
29
|
-
*/
|
|
30
|
-
https?: inputs.autostopping.GetRuleEcsHttp[];
|
|
31
|
-
/**
|
|
32
|
-
* Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
|
|
33
|
-
*/
|
|
34
|
-
idleTimeMins?: number;
|
|
35
|
-
/**
|
|
36
|
-
* Name of the rule
|
|
37
|
-
*/
|
|
38
|
-
name: string;
|
|
53
|
+
name?: string;
|
|
39
54
|
}
|
|
40
55
|
/**
|
|
41
56
|
* A collection of values returned by getRuleEcs.
|
|
@@ -45,33 +60,28 @@ export interface GetRuleEcsResult {
|
|
|
45
60
|
* Id of the cloud connector
|
|
46
61
|
*/
|
|
47
62
|
readonly cloudConnectorId: string;
|
|
48
|
-
readonly container?: outputs.autostopping.GetRuleEcsContainer;
|
|
49
|
-
/**
|
|
50
|
-
* Custom URLs used to access the instances
|
|
51
|
-
*/
|
|
52
|
-
readonly customDomains?: string[];
|
|
53
63
|
/**
|
|
54
64
|
* Dependent rules
|
|
55
65
|
*/
|
|
56
|
-
readonly depends
|
|
66
|
+
readonly depends: outputs.autostopping.GetRuleEcsDepend[];
|
|
57
67
|
/**
|
|
58
|
-
*
|
|
68
|
+
* Boolean that indicates whether the AutoStopping rule is in DryRun mode
|
|
59
69
|
*/
|
|
60
|
-
readonly
|
|
70
|
+
readonly dryRun: boolean;
|
|
61
71
|
/**
|
|
62
72
|
* The provider-assigned unique ID for this managed resource.
|
|
63
73
|
*/
|
|
64
74
|
readonly id: string;
|
|
65
75
|
/**
|
|
66
|
-
* Unique identifier of the resource
|
|
76
|
+
* Unique identifier of the resource. Either `identifier` or `name` must be specified.
|
|
67
77
|
*/
|
|
68
78
|
readonly identifier: string;
|
|
69
79
|
/**
|
|
70
80
|
* Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
|
|
71
81
|
*/
|
|
72
|
-
readonly idleTimeMins
|
|
82
|
+
readonly idleTimeMins: number;
|
|
73
83
|
/**
|
|
74
|
-
* Name
|
|
84
|
+
* Name or regex pattern to match the rule name. Either `identifier` or `name` must be specified.
|
|
75
85
|
*/
|
|
76
86
|
readonly name: string;
|
|
77
87
|
}
|
|
@@ -79,36 +89,52 @@ export interface GetRuleEcsResult {
|
|
|
79
89
|
* Data source for retrieving a Harness AutoStopping rule for ECS services.
|
|
80
90
|
*
|
|
81
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.getRuleEcs({
|
|
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.getRuleEcs({
|
|
111
|
+
* name: "^my-ecs-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.getRuleEcs({
|
|
122
|
+
* name: "my-ecs-.*-prod",
|
|
123
|
+
* });
|
|
124
|
+
* ```
|
|
82
125
|
*/
|
|
83
|
-
export declare function getRuleEcsOutput(args
|
|
126
|
+
export declare function getRuleEcsOutput(args?: GetRuleEcsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetRuleEcsResult>;
|
|
84
127
|
/**
|
|
85
128
|
* A collection of arguments for invoking getRuleEcs.
|
|
86
129
|
*/
|
|
87
130
|
export interface GetRuleEcsOutputArgs {
|
|
88
131
|
/**
|
|
89
|
-
*
|
|
90
|
-
*/
|
|
91
|
-
cloudConnectorId: pulumi.Input<string>;
|
|
92
|
-
container?: pulumi.Input<inputs.autostopping.GetRuleEcsContainerArgs | undefined>;
|
|
93
|
-
/**
|
|
94
|
-
* Custom URLs used to access the instances
|
|
95
|
-
*/
|
|
96
|
-
customDomains?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
97
|
-
/**
|
|
98
|
-
* Dependent rules
|
|
99
|
-
*/
|
|
100
|
-
depends?: pulumi.Input<pulumi.Input<inputs.autostopping.GetRuleEcsDependArgs>[] | undefined>;
|
|
101
|
-
/**
|
|
102
|
-
* Http routing configuration
|
|
103
|
-
*/
|
|
104
|
-
https?: pulumi.Input<pulumi.Input<inputs.autostopping.GetRuleEcsHttpArgs>[] | undefined>;
|
|
105
|
-
/**
|
|
106
|
-
* Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
|
|
132
|
+
* Unique identifier of the resource. Either `identifier` or `name` must be specified.
|
|
107
133
|
*/
|
|
108
|
-
|
|
134
|
+
identifier?: pulumi.Input<string | undefined>;
|
|
109
135
|
/**
|
|
110
|
-
* Name
|
|
136
|
+
* Name or regex pattern to match the rule name. Either `identifier` or `name` must be specified.
|
|
111
137
|
*/
|
|
112
|
-
name
|
|
138
|
+
name?: pulumi.Input<string | undefined>;
|
|
113
139
|
}
|
|
114
140
|
//# sourceMappingURL=getRuleEcs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRuleEcs.d.ts","sourceRoot":"","sources":["../../autostopping/getRuleEcs.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"getRuleEcs.d.ts","sourceRoot":"","sources":["../../autostopping/getRuleEcs.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,45 @@ const utilities = __importStar(require("../utilities"));
|
|
|
32
32
|
* Data source for retrieving a Harness AutoStopping rule for ECS services.
|
|
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.getRuleEcs({
|
|
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.getRuleEcs({
|
|
54
|
+
* name: "^my-ecs-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.getRuleEcs({
|
|
65
|
+
* name: "my-ecs-.*-prod",
|
|
66
|
+
* });
|
|
67
|
+
* ```
|
|
35
68
|
*/
|
|
36
69
|
function getRuleEcs(args, opts) {
|
|
70
|
+
args = args || {};
|
|
37
71
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
38
72
|
return pulumi.runtime.invoke("harness:autostopping/getRuleEcs:getRuleEcs", {
|
|
39
|
-
"
|
|
40
|
-
"container": args.container,
|
|
41
|
-
"customDomains": args.customDomains,
|
|
42
|
-
"depends": args.depends,
|
|
43
|
-
"https": args.https,
|
|
44
|
-
"idleTimeMins": args.idleTimeMins,
|
|
73
|
+
"identifier": args.identifier,
|
|
45
74
|
"name": args.name,
|
|
46
75
|
}, opts);
|
|
47
76
|
}
|
|
@@ -50,16 +79,45 @@ exports.getRuleEcs = getRuleEcs;
|
|
|
50
79
|
* Data source for retrieving a Harness AutoStopping rule for ECS services.
|
|
51
80
|
*
|
|
52
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.getRuleEcs({
|
|
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.getRuleEcs({
|
|
101
|
+
* name: "^my-ecs-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.getRuleEcs({
|
|
112
|
+
* name: "my-ecs-.*-prod",
|
|
113
|
+
* });
|
|
114
|
+
* ```
|
|
53
115
|
*/
|
|
54
116
|
function getRuleEcsOutput(args, opts) {
|
|
117
|
+
args = args || {};
|
|
55
118
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
56
119
|
return pulumi.runtime.invokeOutput("harness:autostopping/getRuleEcs:getRuleEcs", {
|
|
57
|
-
"
|
|
58
|
-
"container": args.container,
|
|
59
|
-
"customDomains": args.customDomains,
|
|
60
|
-
"depends": args.depends,
|
|
61
|
-
"https": args.https,
|
|
62
|
-
"idleTimeMins": args.idleTimeMins,
|
|
120
|
+
"identifier": args.identifier,
|
|
63
121
|
"name": args.name,
|
|
64
122
|
}, opts);
|
|
65
123
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRuleEcs.js","sourceRoot":"","sources":["../../autostopping/getRuleEcs.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,wDAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"getRuleEcs.js","sourceRoot":"","sources":["../../autostopping/getRuleEcs.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 K8s services.
|
|
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.getRuleK8s({
|
|
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.getRuleK8s({
|
|
26
|
+
* name: "^my-k8s-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.getRuleK8s({
|
|
37
|
+
* name: "my-k8s-.*-prod",
|
|
38
|
+
* });
|
|
39
|
+
* ```
|
|
8
40
|
*/
|
|
9
|
-
export declare function getRuleK8s(args
|
|
41
|
+
export declare function getRuleK8s(args?: GetRuleK8sArgs, opts?: pulumi.InvokeOptions): Promise<GetRuleK8sResult>;
|
|
10
42
|
/**
|
|
11
43
|
* A collection of arguments for invoking getRuleK8s.
|
|
12
44
|
*/
|
|
13
45
|
export interface GetRuleK8sArgs {
|
|
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
|
-
* Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
|
|
24
|
-
*/
|
|
25
|
-
dryRun?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
|
|
28
|
-
*/
|
|
29
|
-
idleTimeMins?: number;
|
|
30
|
-
/**
|
|
31
|
-
* Id of the K8s connector
|
|
32
|
-
*/
|
|
33
|
-
k8sConnectorId: string;
|
|
34
|
-
/**
|
|
35
|
-
* Namespace of the cluster
|
|
36
|
-
*/
|
|
37
|
-
k8sNamespace: string;
|
|
38
|
-
/**
|
|
39
|
-
* Name of the rule
|
|
40
|
-
*/
|
|
41
|
-
name: string;
|
|
42
|
-
/**
|
|
43
|
-
* YAML definition of the K8s AutoStopping rule (workload selector, ingress, etc.).
|
|
44
|
-
*/
|
|
45
|
-
ruleYaml: string;
|
|
53
|
+
name?: string;
|
|
46
54
|
}
|
|
47
55
|
/**
|
|
48
56
|
* A collection of values returned by getRuleK8s.
|
|
@@ -55,81 +63,78 @@ export interface GetRuleK8sResult {
|
|
|
55
63
|
/**
|
|
56
64
|
* Dependent rules
|
|
57
65
|
*/
|
|
58
|
-
readonly depends
|
|
66
|
+
readonly depends: outputs.autostopping.GetRuleK8sDepend[];
|
|
59
67
|
/**
|
|
60
|
-
* Boolean that indicates whether the AutoStopping rule
|
|
68
|
+
* Boolean that indicates whether the AutoStopping rule is in DryRun mode
|
|
61
69
|
*/
|
|
62
|
-
readonly dryRun
|
|
70
|
+
readonly dryRun: boolean;
|
|
63
71
|
/**
|
|
64
72
|
* The provider-assigned unique ID for this managed resource.
|
|
65
73
|
*/
|
|
66
74
|
readonly id: string;
|
|
67
75
|
/**
|
|
68
|
-
* Unique identifier of the resource
|
|
76
|
+
* Unique identifier of the resource. Either `identifier` or `name` must be specified.
|
|
69
77
|
*/
|
|
70
78
|
readonly identifier: string;
|
|
71
79
|
/**
|
|
72
80
|
* Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
|
|
73
81
|
*/
|
|
74
|
-
readonly idleTimeMins
|
|
75
|
-
/**
|
|
76
|
-
* Id of the K8s connector
|
|
77
|
-
*/
|
|
78
|
-
readonly k8sConnectorId: string;
|
|
79
|
-
/**
|
|
80
|
-
* Namespace of the cluster
|
|
81
|
-
*/
|
|
82
|
-
readonly k8sNamespace: string;
|
|
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
|
-
* YAML definition of the K8s AutoStopping rule (workload selector, ingress, etc.).
|
|
89
|
-
*/
|
|
90
|
-
readonly ruleYaml: string;
|
|
91
87
|
}
|
|
92
88
|
/**
|
|
93
89
|
* Data source for retrieving a Harness AutoStopping rule for K8s services.
|
|
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.getRuleK8s({
|
|
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.getRuleK8s({
|
|
111
|
+
* name: "^my-k8s-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.getRuleK8s({
|
|
122
|
+
* name: "my-k8s-.*-prod",
|
|
123
|
+
* });
|
|
124
|
+
* ```
|
|
96
125
|
*/
|
|
97
|
-
export declare function getRuleK8sOutput(args
|
|
126
|
+
export declare function getRuleK8sOutput(args?: GetRuleK8sOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetRuleK8sResult>;
|
|
98
127
|
/**
|
|
99
128
|
* A collection of arguments for invoking getRuleK8s.
|
|
100
129
|
*/
|
|
101
130
|
export interface GetRuleK8sOutputArgs {
|
|
102
131
|
/**
|
|
103
|
-
*
|
|
104
|
-
*/
|
|
105
|
-
cloudConnectorId: pulumi.Input<string>;
|
|
106
|
-
/**
|
|
107
|
-
* Dependent rules
|
|
108
|
-
*/
|
|
109
|
-
depends?: pulumi.Input<pulumi.Input<inputs.autostopping.GetRuleK8sDependArgs>[] | undefined>;
|
|
110
|
-
/**
|
|
111
|
-
* Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
|
|
112
|
-
*/
|
|
113
|
-
dryRun?: pulumi.Input<boolean | undefined>;
|
|
114
|
-
/**
|
|
115
|
-
* Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
|
|
116
|
-
*/
|
|
117
|
-
idleTimeMins?: pulumi.Input<number | undefined>;
|
|
118
|
-
/**
|
|
119
|
-
* Id of the K8s connector
|
|
120
|
-
*/
|
|
121
|
-
k8sConnectorId: pulumi.Input<string>;
|
|
122
|
-
/**
|
|
123
|
-
* Namespace of the cluster
|
|
124
|
-
*/
|
|
125
|
-
k8sNamespace: pulumi.Input<string>;
|
|
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=getRuleK8s.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRuleK8s.d.ts","sourceRoot":"","sources":["../../autostopping/getRuleK8s.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"getRuleK8s.d.ts","sourceRoot":"","sources":["../../autostopping/getRuleK8s.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,18 +32,46 @@ const utilities = __importStar(require("../utilities"));
|
|
|
32
32
|
* Data source for retrieving a Harness AutoStopping rule for K8s services.
|
|
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.getRuleK8s({
|
|
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.getRuleK8s({
|
|
54
|
+
* name: "^my-k8s-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.getRuleK8s({
|
|
65
|
+
* name: "my-k8s-.*-prod",
|
|
66
|
+
* });
|
|
67
|
+
* ```
|
|
35
68
|
*/
|
|
36
69
|
function getRuleK8s(args, opts) {
|
|
70
|
+
args = args || {};
|
|
37
71
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
38
72
|
return pulumi.runtime.invoke("harness:autostopping/getRuleK8s:getRuleK8s", {
|
|
39
|
-
"
|
|
40
|
-
"depends": args.depends,
|
|
41
|
-
"dryRun": args.dryRun,
|
|
42
|
-
"idleTimeMins": args.idleTimeMins,
|
|
43
|
-
"k8sConnectorId": args.k8sConnectorId,
|
|
44
|
-
"k8sNamespace": args.k8sNamespace,
|
|
73
|
+
"identifier": args.identifier,
|
|
45
74
|
"name": args.name,
|
|
46
|
-
"ruleYaml": args.ruleYaml,
|
|
47
75
|
}, opts);
|
|
48
76
|
}
|
|
49
77
|
exports.getRuleK8s = getRuleK8s;
|
|
@@ -51,18 +79,46 @@ exports.getRuleK8s = getRuleK8s;
|
|
|
51
79
|
* Data source for retrieving a Harness AutoStopping rule for K8s services.
|
|
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.getRuleK8s({
|
|
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.getRuleK8s({
|
|
101
|
+
* name: "^my-k8s-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.getRuleK8s({
|
|
112
|
+
* name: "my-k8s-.*-prod",
|
|
113
|
+
* });
|
|
114
|
+
* ```
|
|
54
115
|
*/
|
|
55
116
|
function getRuleK8sOutput(args, opts) {
|
|
117
|
+
args = args || {};
|
|
56
118
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
57
119
|
return pulumi.runtime.invokeOutput("harness:autostopping/getRuleK8s:getRuleK8s", {
|
|
58
|
-
"
|
|
59
|
-
"depends": args.depends,
|
|
60
|
-
"dryRun": args.dryRun,
|
|
61
|
-
"idleTimeMins": args.idleTimeMins,
|
|
62
|
-
"k8sConnectorId": args.k8sConnectorId,
|
|
63
|
-
"k8sNamespace": args.k8sNamespace,
|
|
120
|
+
"identifier": args.identifier,
|
|
64
121
|
"name": args.name,
|
|
65
|
-
"ruleYaml": args.ruleYaml,
|
|
66
122
|
}, opts);
|
|
67
123
|
}
|
|
68
124
|
exports.getRuleK8sOutput = getRuleK8sOutput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRuleK8s.js","sourceRoot":"","sources":["../../autostopping/getRuleK8s.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,wDAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"getRuleK8s.js","sourceRoot":"","sources":["../../autostopping/getRuleK8s.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"}
|