@pulumi/harness 0.7.5 → 0.7.6
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/package.json +2 -2
- package/platform/centralNotificationChannel.d.ts +86 -0
- package/platform/centralNotificationChannel.js +79 -0
- package/platform/centralNotificationChannel.js.map +1 -0
- package/platform/delegatetoken.d.ts +61 -39
- package/platform/delegatetoken.js +30 -18
- package/platform/delegatetoken.js.map +1 -1
- package/platform/getCentralNotificationChannel.d.ts +150 -0
- package/platform/getCentralNotificationChannel.js +46 -0
- package/platform/getCentralNotificationChannel.js.map +1 -0
- package/platform/getDelegatetoken.d.ts +80 -34
- package/platform/getDelegatetoken.js +54 -6
- package/platform/getDelegatetoken.js.map +1 -1
- package/platform/index.d.ts +6 -0
- package/platform/index.js +15 -7
- package/platform/index.js.map +1 -1
- package/types/input.d.ts +144 -0
- package/types/output.d.ts +82 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/harness",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.6",
|
|
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.7.
|
|
26
|
+
"version": "0.7.6",
|
|
27
27
|
"server": "github://api.github.com/pulumi"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -0,0 +1,86 @@
|
|
|
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 managing Harness Notification Channels.
|
|
6
|
+
*/
|
|
7
|
+
export declare class CentralNotificationChannel extends pulumi.CustomResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get an existing CentralNotificationChannel resource's state with the given name, ID, and optional extra
|
|
10
|
+
* properties used to qualify the lookup.
|
|
11
|
+
*
|
|
12
|
+
* @param name The _unique_ name of the resulting resource.
|
|
13
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
14
|
+
* @param state Any extra arguments used during the lookup.
|
|
15
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
16
|
+
*/
|
|
17
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: CentralNotificationChannelState, opts?: pulumi.CustomResourceOptions): CentralNotificationChannel;
|
|
18
|
+
/**
|
|
19
|
+
* Returns true if the given object is an instance of CentralNotificationChannel. This is designed to work even
|
|
20
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
21
|
+
*/
|
|
22
|
+
static isInstance(obj: any): obj is CentralNotificationChannel;
|
|
23
|
+
/**
|
|
24
|
+
* Account identifier associated with this notification channel.
|
|
25
|
+
*/
|
|
26
|
+
readonly account: pulumi.Output<string>;
|
|
27
|
+
readonly channel: pulumi.Output<outputs.platform.CentralNotificationChannelChannel>;
|
|
28
|
+
/**
|
|
29
|
+
* Timestamp when the notification channel was created.
|
|
30
|
+
*/
|
|
31
|
+
readonly created: pulumi.Output<number>;
|
|
32
|
+
readonly identifier: pulumi.Output<string>;
|
|
33
|
+
/**
|
|
34
|
+
* Timestamp when the notification channel was last modified.
|
|
35
|
+
*/
|
|
36
|
+
readonly lastModified: pulumi.Output<number>;
|
|
37
|
+
readonly name: pulumi.Output<string>;
|
|
38
|
+
readonly notificationChannelType: pulumi.Output<string>;
|
|
39
|
+
readonly org: pulumi.Output<string | undefined>;
|
|
40
|
+
readonly project: pulumi.Output<string | undefined>;
|
|
41
|
+
readonly status: pulumi.Output<string | undefined>;
|
|
42
|
+
/**
|
|
43
|
+
* Create a CentralNotificationChannel resource with the given unique name, arguments, and options.
|
|
44
|
+
*
|
|
45
|
+
* @param name The _unique_ name of the resource.
|
|
46
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
47
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
48
|
+
*/
|
|
49
|
+
constructor(name: string, args: CentralNotificationChannelArgs, opts?: pulumi.CustomResourceOptions);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Input properties used for looking up and filtering CentralNotificationChannel resources.
|
|
53
|
+
*/
|
|
54
|
+
export interface CentralNotificationChannelState {
|
|
55
|
+
/**
|
|
56
|
+
* Account identifier associated with this notification channel.
|
|
57
|
+
*/
|
|
58
|
+
account?: pulumi.Input<string>;
|
|
59
|
+
channel?: pulumi.Input<inputs.platform.CentralNotificationChannelChannel>;
|
|
60
|
+
/**
|
|
61
|
+
* Timestamp when the notification channel was created.
|
|
62
|
+
*/
|
|
63
|
+
created?: pulumi.Input<number>;
|
|
64
|
+
identifier?: pulumi.Input<string>;
|
|
65
|
+
/**
|
|
66
|
+
* Timestamp when the notification channel was last modified.
|
|
67
|
+
*/
|
|
68
|
+
lastModified?: pulumi.Input<number>;
|
|
69
|
+
name?: pulumi.Input<string>;
|
|
70
|
+
notificationChannelType?: pulumi.Input<string>;
|
|
71
|
+
org?: pulumi.Input<string>;
|
|
72
|
+
project?: pulumi.Input<string>;
|
|
73
|
+
status?: pulumi.Input<string>;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* The set of arguments for constructing a CentralNotificationChannel resource.
|
|
77
|
+
*/
|
|
78
|
+
export interface CentralNotificationChannelArgs {
|
|
79
|
+
channel: pulumi.Input<inputs.platform.CentralNotificationChannelChannel>;
|
|
80
|
+
identifier: pulumi.Input<string>;
|
|
81
|
+
name?: pulumi.Input<string>;
|
|
82
|
+
notificationChannelType: pulumi.Input<string>;
|
|
83
|
+
org?: pulumi.Input<string>;
|
|
84
|
+
project?: pulumi.Input<string>;
|
|
85
|
+
status?: pulumi.Input<string>;
|
|
86
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
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.CentralNotificationChannel = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Resource for managing Harness Notification Channels.
|
|
10
|
+
*/
|
|
11
|
+
class CentralNotificationChannel extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get an existing CentralNotificationChannel resource's state with the given name, ID, and optional extra
|
|
14
|
+
* properties used to qualify the lookup.
|
|
15
|
+
*
|
|
16
|
+
* @param name The _unique_ name of the resulting resource.
|
|
17
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
18
|
+
* @param state Any extra arguments used during the lookup.
|
|
19
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
20
|
+
*/
|
|
21
|
+
static get(name, id, state, opts) {
|
|
22
|
+
return new CentralNotificationChannel(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Returns true if the given object is an instance of CentralNotificationChannel. This is designed to work even
|
|
26
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
27
|
+
*/
|
|
28
|
+
static isInstance(obj) {
|
|
29
|
+
if (obj === undefined || obj === null) {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
return obj['__pulumiType'] === CentralNotificationChannel.__pulumiType;
|
|
33
|
+
}
|
|
34
|
+
constructor(name, argsOrState, opts) {
|
|
35
|
+
let resourceInputs = {};
|
|
36
|
+
opts = opts || {};
|
|
37
|
+
if (opts.id) {
|
|
38
|
+
const state = argsOrState;
|
|
39
|
+
resourceInputs["account"] = state ? state.account : undefined;
|
|
40
|
+
resourceInputs["channel"] = state ? state.channel : undefined;
|
|
41
|
+
resourceInputs["created"] = state ? state.created : undefined;
|
|
42
|
+
resourceInputs["identifier"] = state ? state.identifier : undefined;
|
|
43
|
+
resourceInputs["lastModified"] = state ? state.lastModified : undefined;
|
|
44
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
45
|
+
resourceInputs["notificationChannelType"] = state ? state.notificationChannelType : undefined;
|
|
46
|
+
resourceInputs["org"] = state ? state.org : undefined;
|
|
47
|
+
resourceInputs["project"] = state ? state.project : undefined;
|
|
48
|
+
resourceInputs["status"] = state ? state.status : undefined;
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
const args = argsOrState;
|
|
52
|
+
if ((!args || args.channel === undefined) && !opts.urn) {
|
|
53
|
+
throw new Error("Missing required property 'channel'");
|
|
54
|
+
}
|
|
55
|
+
if ((!args || args.identifier === undefined) && !opts.urn) {
|
|
56
|
+
throw new Error("Missing required property 'identifier'");
|
|
57
|
+
}
|
|
58
|
+
if ((!args || args.notificationChannelType === undefined) && !opts.urn) {
|
|
59
|
+
throw new Error("Missing required property 'notificationChannelType'");
|
|
60
|
+
}
|
|
61
|
+
resourceInputs["channel"] = args ? args.channel : undefined;
|
|
62
|
+
resourceInputs["identifier"] = args ? args.identifier : undefined;
|
|
63
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
64
|
+
resourceInputs["notificationChannelType"] = args ? args.notificationChannelType : undefined;
|
|
65
|
+
resourceInputs["org"] = args ? args.org : undefined;
|
|
66
|
+
resourceInputs["project"] = args ? args.project : undefined;
|
|
67
|
+
resourceInputs["status"] = args ? args.status : undefined;
|
|
68
|
+
resourceInputs["account"] = undefined /*out*/;
|
|
69
|
+
resourceInputs["created"] = undefined /*out*/;
|
|
70
|
+
resourceInputs["lastModified"] = undefined /*out*/;
|
|
71
|
+
}
|
|
72
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
73
|
+
super(CentralNotificationChannel.__pulumiType, name, resourceInputs, opts);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
exports.CentralNotificationChannel = CentralNotificationChannel;
|
|
77
|
+
/** @internal */
|
|
78
|
+
CentralNotificationChannel.__pulumiType = 'harness:platform/centralNotificationChannel:CentralNotificationChannel';
|
|
79
|
+
//# sourceMappingURL=centralNotificationChannel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"centralNotificationChannel.js","sourceRoot":"","sources":["../../platform/centralNotificationChannel.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;GAEG;AACH,MAAa,0BAA2B,SAAQ,MAAM,CAAC,cAAc;IACjE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuC,EAAE,IAAmC;QACrI,OAAO,IAAI,0BAA0B,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjF,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,0BAA0B,CAAC,YAAY,CAAC;IAC3E,CAAC;IA8BD,YAAY,IAAY,EAAE,WAA8E,EAAE,IAAmC;QACzI,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA0D,CAAC;YACzE,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SA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AE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,0BAA0B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/E,CAAC;;AA/FL,gEAgGC;AAlFG,gBAAgB;AACO,uCAAY,GAAG,wEAAwE,CAAC"}
|
|
@@ -1,25 +1,35 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* ## Example Usage
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
* ```typescript
|
|
6
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
7
|
+
* import * as harness from "@pulumi/harness";
|
|
6
8
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
9
|
+
* // Create delegate token at account level
|
|
10
|
+
* const accountLevel = new harness.platform.Delegatetoken("account_level", {
|
|
11
|
+
* name: "account-delegate-token",
|
|
12
|
+
* accountId: "account_id",
|
|
13
|
+
* });
|
|
14
|
+
* // Create delegate token at organization level
|
|
15
|
+
* const orgLevel = new harness.platform.Delegatetoken("org_level", {
|
|
16
|
+
* name: "org-delegate-token",
|
|
17
|
+
* accountId: "account_id",
|
|
18
|
+
* orgId: "org_id",
|
|
19
|
+
* });
|
|
20
|
+
* // Create delegate token at project level
|
|
21
|
+
* const projectLevel = new harness.platform.Delegatetoken("project_level", {
|
|
22
|
+
* name: "project-delegate-token",
|
|
23
|
+
* accountId: "account_id",
|
|
24
|
+
* orgId: "org_id",
|
|
25
|
+
* projectId: "project_id",
|
|
26
|
+
* });
|
|
27
|
+
* // Create delegate token with auto-expiry
|
|
28
|
+
* const expiryToken = new harness.platform.Delegatetoken("expiry_token", {
|
|
29
|
+
* name: "expiry-delegate-token",
|
|
30
|
+
* accountId: "account_id",
|
|
31
|
+
* revokeAfter: 1769689600000,
|
|
32
|
+
* });
|
|
23
33
|
* ```
|
|
24
34
|
*/
|
|
25
35
|
export declare class Delegatetoken extends pulumi.CustomResource {
|
|
@@ -43,33 +53,37 @@ export declare class Delegatetoken extends pulumi.CustomResource {
|
|
|
43
53
|
*/
|
|
44
54
|
readonly accountId: pulumi.Output<string>;
|
|
45
55
|
/**
|
|
46
|
-
* Time when the delegate token is created.
|
|
56
|
+
* Time when the delegate token is created. This is an epoch timestamp.
|
|
47
57
|
*/
|
|
48
58
|
readonly createdAt: pulumi.Output<number>;
|
|
49
59
|
/**
|
|
50
|
-
* created by details
|
|
60
|
+
* created by details
|
|
51
61
|
*/
|
|
52
62
|
readonly createdBy: pulumi.Output<{
|
|
53
63
|
[key: string]: string;
|
|
54
64
|
}>;
|
|
55
65
|
/**
|
|
56
|
-
* Name of the
|
|
66
|
+
* Name of the delegate token
|
|
57
67
|
*/
|
|
58
68
|
readonly name: pulumi.Output<string>;
|
|
59
69
|
/**
|
|
60
|
-
*
|
|
70
|
+
* Org Identifier for the Entity
|
|
61
71
|
*/
|
|
62
72
|
readonly orgId: pulumi.Output<string | undefined>;
|
|
63
73
|
/**
|
|
64
|
-
*
|
|
74
|
+
* Project Identifier for the Entity
|
|
65
75
|
*/
|
|
66
76
|
readonly projectId: pulumi.Output<string | undefined>;
|
|
67
77
|
/**
|
|
68
|
-
*
|
|
78
|
+
* Epoch time in milliseconds after which the token will be marked as revoked. There can be a delay of up to one hour from the epoch value provided and actual revoking of the token.
|
|
79
|
+
*/
|
|
80
|
+
readonly revokeAfter: pulumi.Output<number | undefined>;
|
|
81
|
+
/**
|
|
82
|
+
* Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed
|
|
69
83
|
*/
|
|
70
84
|
readonly tokenStatus: pulumi.Output<string>;
|
|
71
85
|
/**
|
|
72
|
-
* Value of the delegate
|
|
86
|
+
* Value of the delegate token. Encoded in base64.
|
|
73
87
|
*/
|
|
74
88
|
readonly value: pulumi.Output<string>;
|
|
75
89
|
/**
|
|
@@ -90,33 +104,37 @@ export interface DelegatetokenState {
|
|
|
90
104
|
*/
|
|
91
105
|
accountId?: pulumi.Input<string>;
|
|
92
106
|
/**
|
|
93
|
-
* Time when the delegate token is created.
|
|
107
|
+
* Time when the delegate token is created. This is an epoch timestamp.
|
|
94
108
|
*/
|
|
95
109
|
createdAt?: pulumi.Input<number>;
|
|
96
110
|
/**
|
|
97
|
-
* created by details
|
|
111
|
+
* created by details
|
|
98
112
|
*/
|
|
99
113
|
createdBy?: pulumi.Input<{
|
|
100
114
|
[key: string]: pulumi.Input<string>;
|
|
101
115
|
}>;
|
|
102
116
|
/**
|
|
103
|
-
* Name of the
|
|
117
|
+
* Name of the delegate token
|
|
104
118
|
*/
|
|
105
119
|
name?: pulumi.Input<string>;
|
|
106
120
|
/**
|
|
107
|
-
*
|
|
121
|
+
* Org Identifier for the Entity
|
|
108
122
|
*/
|
|
109
123
|
orgId?: pulumi.Input<string>;
|
|
110
124
|
/**
|
|
111
|
-
*
|
|
125
|
+
* Project Identifier for the Entity
|
|
112
126
|
*/
|
|
113
127
|
projectId?: pulumi.Input<string>;
|
|
114
128
|
/**
|
|
115
|
-
*
|
|
129
|
+
* Epoch time in milliseconds after which the token will be marked as revoked. There can be a delay of up to one hour from the epoch value provided and actual revoking of the token.
|
|
130
|
+
*/
|
|
131
|
+
revokeAfter?: pulumi.Input<number>;
|
|
132
|
+
/**
|
|
133
|
+
* Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed
|
|
116
134
|
*/
|
|
117
135
|
tokenStatus?: pulumi.Input<string>;
|
|
118
136
|
/**
|
|
119
|
-
* Value of the delegate
|
|
137
|
+
* Value of the delegate token. Encoded in base64.
|
|
120
138
|
*/
|
|
121
139
|
value?: pulumi.Input<string>;
|
|
122
140
|
}
|
|
@@ -129,33 +147,37 @@ export interface DelegatetokenArgs {
|
|
|
129
147
|
*/
|
|
130
148
|
accountId: pulumi.Input<string>;
|
|
131
149
|
/**
|
|
132
|
-
* Time when the delegate token is created.
|
|
150
|
+
* Time when the delegate token is created. This is an epoch timestamp.
|
|
133
151
|
*/
|
|
134
152
|
createdAt?: pulumi.Input<number>;
|
|
135
153
|
/**
|
|
136
|
-
* created by details
|
|
154
|
+
* created by details
|
|
137
155
|
*/
|
|
138
156
|
createdBy?: pulumi.Input<{
|
|
139
157
|
[key: string]: pulumi.Input<string>;
|
|
140
158
|
}>;
|
|
141
159
|
/**
|
|
142
|
-
* Name of the
|
|
160
|
+
* Name of the delegate token
|
|
143
161
|
*/
|
|
144
162
|
name?: pulumi.Input<string>;
|
|
145
163
|
/**
|
|
146
|
-
*
|
|
164
|
+
* Org Identifier for the Entity
|
|
147
165
|
*/
|
|
148
166
|
orgId?: pulumi.Input<string>;
|
|
149
167
|
/**
|
|
150
|
-
*
|
|
168
|
+
* Project Identifier for the Entity
|
|
151
169
|
*/
|
|
152
170
|
projectId?: pulumi.Input<string>;
|
|
153
171
|
/**
|
|
154
|
-
*
|
|
172
|
+
* Epoch time in milliseconds after which the token will be marked as revoked. There can be a delay of up to one hour from the epoch value provided and actual revoking of the token.
|
|
173
|
+
*/
|
|
174
|
+
revokeAfter?: pulumi.Input<number>;
|
|
175
|
+
/**
|
|
176
|
+
* Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed
|
|
155
177
|
*/
|
|
156
178
|
tokenStatus?: pulumi.Input<string>;
|
|
157
179
|
/**
|
|
158
|
-
* Value of the delegate
|
|
180
|
+
* Value of the delegate token. Encoded in base64.
|
|
159
181
|
*/
|
|
160
182
|
value?: pulumi.Input<string>;
|
|
161
183
|
}
|
|
@@ -6,26 +6,36 @@ exports.Delegatetoken = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* ## Example Usage
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as harness from "@pulumi/harness";
|
|
12
14
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
15
|
+
* // Create delegate token at account level
|
|
16
|
+
* const accountLevel = new harness.platform.Delegatetoken("account_level", {
|
|
17
|
+
* name: "account-delegate-token",
|
|
18
|
+
* accountId: "account_id",
|
|
19
|
+
* });
|
|
20
|
+
* // Create delegate token at organization level
|
|
21
|
+
* const orgLevel = new harness.platform.Delegatetoken("org_level", {
|
|
22
|
+
* name: "org-delegate-token",
|
|
23
|
+
* accountId: "account_id",
|
|
24
|
+
* orgId: "org_id",
|
|
25
|
+
* });
|
|
26
|
+
* // Create delegate token at project level
|
|
27
|
+
* const projectLevel = new harness.platform.Delegatetoken("project_level", {
|
|
28
|
+
* name: "project-delegate-token",
|
|
29
|
+
* accountId: "account_id",
|
|
30
|
+
* orgId: "org_id",
|
|
31
|
+
* projectId: "project_id",
|
|
32
|
+
* });
|
|
33
|
+
* // Create delegate token with auto-expiry
|
|
34
|
+
* const expiryToken = new harness.platform.Delegatetoken("expiry_token", {
|
|
35
|
+
* name: "expiry-delegate-token",
|
|
36
|
+
* accountId: "account_id",
|
|
37
|
+
* revokeAfter: 1769689600000,
|
|
38
|
+
* });
|
|
29
39
|
* ```
|
|
30
40
|
*/
|
|
31
41
|
class Delegatetoken extends pulumi.CustomResource {
|
|
@@ -62,6 +72,7 @@ class Delegatetoken extends pulumi.CustomResource {
|
|
|
62
72
|
resourceInputs["name"] = state ? state.name : undefined;
|
|
63
73
|
resourceInputs["orgId"] = state ? state.orgId : undefined;
|
|
64
74
|
resourceInputs["projectId"] = state ? state.projectId : undefined;
|
|
75
|
+
resourceInputs["revokeAfter"] = state ? state.revokeAfter : undefined;
|
|
65
76
|
resourceInputs["tokenStatus"] = state ? state.tokenStatus : undefined;
|
|
66
77
|
resourceInputs["value"] = state ? state.value : undefined;
|
|
67
78
|
}
|
|
@@ -76,6 +87,7 @@ class Delegatetoken extends pulumi.CustomResource {
|
|
|
76
87
|
resourceInputs["name"] = args ? args.name : undefined;
|
|
77
88
|
resourceInputs["orgId"] = args ? args.orgId : undefined;
|
|
78
89
|
resourceInputs["projectId"] = args ? args.projectId : undefined;
|
|
90
|
+
resourceInputs["revokeAfter"] = args ? args.revokeAfter : undefined;
|
|
79
91
|
resourceInputs["tokenStatus"] = args ? args.tokenStatus : undefined;
|
|
80
92
|
resourceInputs["value"] = args ? args.value : undefined;
|
|
81
93
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delegatetoken.js","sourceRoot":"","sources":["../../platform/delegatetoken.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"delegatetoken.js","sourceRoot":"","sources":["../../platform/delegatetoken.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC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CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;;AAxGL,sCAyGC;AA3FG,gBAAgB;AACO,0BAAY,GAAG,8CAA8C,CAAC"}
|
|
@@ -0,0 +1,150 @@
|
|
|
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 central notification channel in Harness.
|
|
6
|
+
*/
|
|
7
|
+
export declare function getCentralNotificationChannel(args: GetCentralNotificationChannelArgs, opts?: pulumi.InvokeOptions): Promise<GetCentralNotificationChannelResult>;
|
|
8
|
+
/**
|
|
9
|
+
* A collection of arguments for invoking getCentralNotificationChannel.
|
|
10
|
+
*/
|
|
11
|
+
export interface GetCentralNotificationChannelArgs {
|
|
12
|
+
/**
|
|
13
|
+
* Account identifier associated with this notification channel.
|
|
14
|
+
*/
|
|
15
|
+
account?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Configuration details of the notification channel.
|
|
18
|
+
*/
|
|
19
|
+
channels?: inputs.platform.GetCentralNotificationChannelChannel[];
|
|
20
|
+
/**
|
|
21
|
+
* Timestamp when the notification channel was created.
|
|
22
|
+
*/
|
|
23
|
+
created?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Unique identifier of the notification channel.
|
|
26
|
+
*/
|
|
27
|
+
identifier: string;
|
|
28
|
+
/**
|
|
29
|
+
* Timestamp when the notification channel was last modified.
|
|
30
|
+
*/
|
|
31
|
+
lastModified?: number;
|
|
32
|
+
/**
|
|
33
|
+
* Name of the notification channel.
|
|
34
|
+
*/
|
|
35
|
+
name?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Type of notification channel. One of: EMAIL, SLACK, PAGERDUTY, MSTeams, WEBHOOK, DATADOG.
|
|
38
|
+
*/
|
|
39
|
+
notificationChannelType?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Identifier of the organization the notification channel is scoped to.
|
|
42
|
+
*/
|
|
43
|
+
org?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Identifier of the project the notification channel is scoped to.
|
|
46
|
+
*/
|
|
47
|
+
project?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Status of the notification channel. Possible values are ENABLED or DISABLED.
|
|
50
|
+
*/
|
|
51
|
+
status?: string;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* A collection of values returned by getCentralNotificationChannel.
|
|
55
|
+
*/
|
|
56
|
+
export interface GetCentralNotificationChannelResult {
|
|
57
|
+
/**
|
|
58
|
+
* Account identifier associated with this notification channel.
|
|
59
|
+
*/
|
|
60
|
+
readonly account?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Configuration details of the notification channel.
|
|
63
|
+
*/
|
|
64
|
+
readonly channels?: outputs.platform.GetCentralNotificationChannelChannel[];
|
|
65
|
+
/**
|
|
66
|
+
* Timestamp when the notification channel was created.
|
|
67
|
+
*/
|
|
68
|
+
readonly created?: number;
|
|
69
|
+
/**
|
|
70
|
+
* The provider-assigned unique ID for this managed resource.
|
|
71
|
+
*/
|
|
72
|
+
readonly id: string;
|
|
73
|
+
/**
|
|
74
|
+
* Unique identifier of the notification channel.
|
|
75
|
+
*/
|
|
76
|
+
readonly identifier: string;
|
|
77
|
+
/**
|
|
78
|
+
* Timestamp when the notification channel was last modified.
|
|
79
|
+
*/
|
|
80
|
+
readonly lastModified?: number;
|
|
81
|
+
/**
|
|
82
|
+
* Name of the notification channel.
|
|
83
|
+
*/
|
|
84
|
+
readonly name?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Type of notification channel. One of: EMAIL, SLACK, PAGERDUTY, MSTeams, WEBHOOK, DATADOG.
|
|
87
|
+
*/
|
|
88
|
+
readonly notificationChannelType?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Identifier of the organization the notification channel is scoped to.
|
|
91
|
+
*/
|
|
92
|
+
readonly org?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Identifier of the project the notification channel is scoped to.
|
|
95
|
+
*/
|
|
96
|
+
readonly project?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Status of the notification channel. Possible values are ENABLED or DISABLED.
|
|
99
|
+
*/
|
|
100
|
+
readonly status?: string;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Data source for retrieving a central notification channel in Harness.
|
|
104
|
+
*/
|
|
105
|
+
export declare function getCentralNotificationChannelOutput(args: GetCentralNotificationChannelOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetCentralNotificationChannelResult>;
|
|
106
|
+
/**
|
|
107
|
+
* A collection of arguments for invoking getCentralNotificationChannel.
|
|
108
|
+
*/
|
|
109
|
+
export interface GetCentralNotificationChannelOutputArgs {
|
|
110
|
+
/**
|
|
111
|
+
* Account identifier associated with this notification channel.
|
|
112
|
+
*/
|
|
113
|
+
account?: pulumi.Input<string>;
|
|
114
|
+
/**
|
|
115
|
+
* Configuration details of the notification channel.
|
|
116
|
+
*/
|
|
117
|
+
channels?: pulumi.Input<pulumi.Input<inputs.platform.GetCentralNotificationChannelChannelArgs>[]>;
|
|
118
|
+
/**
|
|
119
|
+
* Timestamp when the notification channel was created.
|
|
120
|
+
*/
|
|
121
|
+
created?: pulumi.Input<number>;
|
|
122
|
+
/**
|
|
123
|
+
* Unique identifier of the notification channel.
|
|
124
|
+
*/
|
|
125
|
+
identifier: pulumi.Input<string>;
|
|
126
|
+
/**
|
|
127
|
+
* Timestamp when the notification channel was last modified.
|
|
128
|
+
*/
|
|
129
|
+
lastModified?: pulumi.Input<number>;
|
|
130
|
+
/**
|
|
131
|
+
* Name of the notification channel.
|
|
132
|
+
*/
|
|
133
|
+
name?: pulumi.Input<string>;
|
|
134
|
+
/**
|
|
135
|
+
* Type of notification channel. One of: EMAIL, SLACK, PAGERDUTY, MSTeams, WEBHOOK, DATADOG.
|
|
136
|
+
*/
|
|
137
|
+
notificationChannelType?: pulumi.Input<string>;
|
|
138
|
+
/**
|
|
139
|
+
* Identifier of the organization the notification channel is scoped to.
|
|
140
|
+
*/
|
|
141
|
+
org?: pulumi.Input<string>;
|
|
142
|
+
/**
|
|
143
|
+
* Identifier of the project the notification channel is scoped to.
|
|
144
|
+
*/
|
|
145
|
+
project?: pulumi.Input<string>;
|
|
146
|
+
/**
|
|
147
|
+
* Status of the notification channel. Possible values are ENABLED or DISABLED.
|
|
148
|
+
*/
|
|
149
|
+
status?: pulumi.Input<string>;
|
|
150
|
+
}
|
|
@@ -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.getCentralNotificationChannelOutput = exports.getCentralNotificationChannel = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Data source for retrieving a central notification channel in Harness.
|
|
10
|
+
*/
|
|
11
|
+
function getCentralNotificationChannel(args, opts) {
|
|
12
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
13
|
+
return pulumi.runtime.invoke("harness:platform/getCentralNotificationChannel:getCentralNotificationChannel", {
|
|
14
|
+
"account": args.account,
|
|
15
|
+
"channels": args.channels,
|
|
16
|
+
"created": args.created,
|
|
17
|
+
"identifier": args.identifier,
|
|
18
|
+
"lastModified": args.lastModified,
|
|
19
|
+
"name": args.name,
|
|
20
|
+
"notificationChannelType": args.notificationChannelType,
|
|
21
|
+
"org": args.org,
|
|
22
|
+
"project": args.project,
|
|
23
|
+
"status": args.status,
|
|
24
|
+
}, opts);
|
|
25
|
+
}
|
|
26
|
+
exports.getCentralNotificationChannel = getCentralNotificationChannel;
|
|
27
|
+
/**
|
|
28
|
+
* Data source for retrieving a central notification channel in Harness.
|
|
29
|
+
*/
|
|
30
|
+
function getCentralNotificationChannelOutput(args, opts) {
|
|
31
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
32
|
+
return pulumi.runtime.invokeOutput("harness:platform/getCentralNotificationChannel:getCentralNotificationChannel", {
|
|
33
|
+
"account": args.account,
|
|
34
|
+
"channels": args.channels,
|
|
35
|
+
"created": args.created,
|
|
36
|
+
"identifier": args.identifier,
|
|
37
|
+
"lastModified": args.lastModified,
|
|
38
|
+
"name": args.name,
|
|
39
|
+
"notificationChannelType": args.notificationChannelType,
|
|
40
|
+
"org": args.org,
|
|
41
|
+
"project": args.project,
|
|
42
|
+
"status": args.status,
|
|
43
|
+
}, opts);
|
|
44
|
+
}
|
|
45
|
+
exports.getCentralNotificationChannelOutput = getCentralNotificationChannelOutput;
|
|
46
|
+
//# sourceMappingURL=getCentralNotificationChannel.js.map
|