@pierskarsenbarg/sdm 1.4.2 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/account.d.ts +1 -1
- package/account.js +1 -1
- package/accountAttachment.d.ts +1 -1
- package/accountAttachment.js +1 -1
- package/getWorkflow.d.ts +131 -0
- package/getWorkflow.js +57 -0
- package/getWorkflow.js.map +1 -0
- package/getWorkflowApprover.d.ts +91 -0
- package/getWorkflowApprover.js +50 -0
- package/getWorkflowApprover.js.map +1 -0
- package/getWorkflowRole.d.ts +93 -0
- package/getWorkflowRole.js +52 -0
- package/getWorkflowRole.js.map +1 -0
- package/index.d.ts +18 -0
- package/index.js +25 -1
- package/index.js.map +1 -1
- package/node.d.ts +1 -1
- package/node.js +1 -1
- package/package.json +2 -3
- package/package.json.bak +1 -2
- package/peeringGroup.d.ts +1 -1
- package/peeringGroup.js +1 -1
- package/peeringGroupNode.d.ts +1 -1
- package/peeringGroupNode.js +1 -1
- package/peeringGroupPeer.d.ts +1 -1
- package/peeringGroupPeer.js +1 -1
- package/peeringGroupResource.d.ts +1 -1
- package/peeringGroupResource.js +1 -1
- package/remoteIdentity.d.ts +1 -1
- package/remoteIdentity.js +1 -1
- package/resource.d.ts +22 -40
- package/resource.js +5 -1
- package/resource.js.map +1 -1
- package/role.d.ts +1 -1
- package/role.js +1 -1
- package/secretStore.d.ts +1 -1
- package/secretStore.js +1 -1
- package/types/input.d.ts +147 -11
- package/types/output.d.ts +367 -27
- package/workflow.d.ts +148 -0
- package/workflow.js +99 -0
- package/workflow.js.map +1 -0
- package/workflowApprover.d.ts +83 -0
- package/workflowApprover.js +80 -0
- package/workflowApprover.js.map +1 -0
- package/workflowRole.d.ts +84 -0
- package/workflowRole.js +81 -0
- package/workflowRole.js.map +1 -0
- package/scripts/install-pulumi-plugin.js +0 -26
package/workflow.d.ts
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Workflows are the collection of rules that define the resources to which access can be requested,
|
|
4
|
+
* the users that can request that access, and the mechanism for approving those requests which can either
|
|
5
|
+
* but automatic approval or a set of users authorized to approve the requests.
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as sdm from "@pierskarsenbarg/sdm";
|
|
11
|
+
*
|
|
12
|
+
* const autoGrantWorkflow = new sdm.Workflow("autoGrantWorkflow", {
|
|
13
|
+
* autoGrant: true,
|
|
14
|
+
* enabled: true,
|
|
15
|
+
* accessRules: JSON.stringify([{
|
|
16
|
+
* type: "redis",
|
|
17
|
+
* tags: {
|
|
18
|
+
* region: "us-east",
|
|
19
|
+
* },
|
|
20
|
+
* }]),
|
|
21
|
+
* });
|
|
22
|
+
* const manualApprovalWorkflow = new sdm.Workflow("manualApprovalWorkflow", {
|
|
23
|
+
* autoGrant: false,
|
|
24
|
+
* accessRules: JSON.stringify([{
|
|
25
|
+
* type: "redis",
|
|
26
|
+
* tags: {
|
|
27
|
+
* region: "us-east",
|
|
28
|
+
* },
|
|
29
|
+
* }]),
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
* This resource can be imported using the import command.
|
|
33
|
+
*
|
|
34
|
+
* ## Import
|
|
35
|
+
*
|
|
36
|
+
* A Workflow can be imported using the id, e.g.,
|
|
37
|
+
*
|
|
38
|
+
* ```sh
|
|
39
|
+
* $ pulumi import sdm:index/workflow:Workflow example aw-12345678
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
export declare class Workflow extends pulumi.CustomResource {
|
|
43
|
+
/**
|
|
44
|
+
* Get an existing Workflow resource's state with the given name, ID, and optional extra
|
|
45
|
+
* properties used to qualify the lookup.
|
|
46
|
+
*
|
|
47
|
+
* @param name The _unique_ name of the resulting resource.
|
|
48
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
49
|
+
* @param state Any extra arguments used during the lookup.
|
|
50
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
51
|
+
*/
|
|
52
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: WorkflowState, opts?: pulumi.CustomResourceOptions): Workflow;
|
|
53
|
+
/**
|
|
54
|
+
* Returns true if the given object is an instance of Workflow. This is designed to work even
|
|
55
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
56
|
+
*/
|
|
57
|
+
static isInstance(obj: any): obj is Workflow;
|
|
58
|
+
/**
|
|
59
|
+
* AccessRules is a list of access rules defining the resources this Workflow provides access to.
|
|
60
|
+
*/
|
|
61
|
+
readonly accessRules: pulumi.Output<string>;
|
|
62
|
+
/**
|
|
63
|
+
* Optional auto grant setting to automatically approve requests or not, defaults to false.
|
|
64
|
+
*/
|
|
65
|
+
readonly autoGrant: pulumi.Output<boolean | undefined>;
|
|
66
|
+
/**
|
|
67
|
+
* Optional description of the Workflow.
|
|
68
|
+
*/
|
|
69
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
70
|
+
/**
|
|
71
|
+
* Optional enabled state for workflow. This setting may be overridden by the system if the workflow doesn't meet the requirements to be enabled or if other conditions prevent enabling the workflow. The requirements to enable a workflow are that the workflow must be either set up for with auto grant enabled or have one or more WorkflowApprovers created for the workflow.
|
|
72
|
+
*/
|
|
73
|
+
readonly enabled: pulumi.Output<boolean | undefined>;
|
|
74
|
+
/**
|
|
75
|
+
* Unique human-readable name of the Workflow.
|
|
76
|
+
*/
|
|
77
|
+
readonly name: pulumi.Output<string>;
|
|
78
|
+
/**
|
|
79
|
+
* Optional weight for workflow to specify it's priority in matching a request.
|
|
80
|
+
*/
|
|
81
|
+
readonly weight: pulumi.Output<number | undefined>;
|
|
82
|
+
/**
|
|
83
|
+
* Create a Workflow resource with the given unique name, arguments, and options.
|
|
84
|
+
*
|
|
85
|
+
* @param name The _unique_ name of the resource.
|
|
86
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
87
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
88
|
+
*/
|
|
89
|
+
constructor(name: string, args?: WorkflowArgs, opts?: pulumi.CustomResourceOptions);
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Input properties used for looking up and filtering Workflow resources.
|
|
93
|
+
*/
|
|
94
|
+
export interface WorkflowState {
|
|
95
|
+
/**
|
|
96
|
+
* AccessRules is a list of access rules defining the resources this Workflow provides access to.
|
|
97
|
+
*/
|
|
98
|
+
accessRules?: pulumi.Input<string>;
|
|
99
|
+
/**
|
|
100
|
+
* Optional auto grant setting to automatically approve requests or not, defaults to false.
|
|
101
|
+
*/
|
|
102
|
+
autoGrant?: pulumi.Input<boolean>;
|
|
103
|
+
/**
|
|
104
|
+
* Optional description of the Workflow.
|
|
105
|
+
*/
|
|
106
|
+
description?: pulumi.Input<string>;
|
|
107
|
+
/**
|
|
108
|
+
* Optional enabled state for workflow. This setting may be overridden by the system if the workflow doesn't meet the requirements to be enabled or if other conditions prevent enabling the workflow. The requirements to enable a workflow are that the workflow must be either set up for with auto grant enabled or have one or more WorkflowApprovers created for the workflow.
|
|
109
|
+
*/
|
|
110
|
+
enabled?: pulumi.Input<boolean>;
|
|
111
|
+
/**
|
|
112
|
+
* Unique human-readable name of the Workflow.
|
|
113
|
+
*/
|
|
114
|
+
name?: pulumi.Input<string>;
|
|
115
|
+
/**
|
|
116
|
+
* Optional weight for workflow to specify it's priority in matching a request.
|
|
117
|
+
*/
|
|
118
|
+
weight?: pulumi.Input<number>;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* The set of arguments for constructing a Workflow resource.
|
|
122
|
+
*/
|
|
123
|
+
export interface WorkflowArgs {
|
|
124
|
+
/**
|
|
125
|
+
* AccessRules is a list of access rules defining the resources this Workflow provides access to.
|
|
126
|
+
*/
|
|
127
|
+
accessRules?: pulumi.Input<string>;
|
|
128
|
+
/**
|
|
129
|
+
* Optional auto grant setting to automatically approve requests or not, defaults to false.
|
|
130
|
+
*/
|
|
131
|
+
autoGrant?: pulumi.Input<boolean>;
|
|
132
|
+
/**
|
|
133
|
+
* Optional description of the Workflow.
|
|
134
|
+
*/
|
|
135
|
+
description?: pulumi.Input<string>;
|
|
136
|
+
/**
|
|
137
|
+
* Optional enabled state for workflow. This setting may be overridden by the system if the workflow doesn't meet the requirements to be enabled or if other conditions prevent enabling the workflow. The requirements to enable a workflow are that the workflow must be either set up for with auto grant enabled or have one or more WorkflowApprovers created for the workflow.
|
|
138
|
+
*/
|
|
139
|
+
enabled?: pulumi.Input<boolean>;
|
|
140
|
+
/**
|
|
141
|
+
* Unique human-readable name of the Workflow.
|
|
142
|
+
*/
|
|
143
|
+
name?: pulumi.Input<string>;
|
|
144
|
+
/**
|
|
145
|
+
* Optional weight for workflow to specify it's priority in matching a request.
|
|
146
|
+
*/
|
|
147
|
+
weight?: pulumi.Input<number>;
|
|
148
|
+
}
|
package/workflow.js
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
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.Workflow = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Workflows are the collection of rules that define the resources to which access can be requested,
|
|
10
|
+
* the users that can request that access, and the mechanism for approving those requests which can either
|
|
11
|
+
* but automatic approval or a set of users authorized to approve the requests.
|
|
12
|
+
* ## Example Usage
|
|
13
|
+
*
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as sdm from "@pierskarsenbarg/sdm";
|
|
17
|
+
*
|
|
18
|
+
* const autoGrantWorkflow = new sdm.Workflow("autoGrantWorkflow", {
|
|
19
|
+
* autoGrant: true,
|
|
20
|
+
* enabled: true,
|
|
21
|
+
* accessRules: JSON.stringify([{
|
|
22
|
+
* type: "redis",
|
|
23
|
+
* tags: {
|
|
24
|
+
* region: "us-east",
|
|
25
|
+
* },
|
|
26
|
+
* }]),
|
|
27
|
+
* });
|
|
28
|
+
* const manualApprovalWorkflow = new sdm.Workflow("manualApprovalWorkflow", {
|
|
29
|
+
* autoGrant: false,
|
|
30
|
+
* accessRules: JSON.stringify([{
|
|
31
|
+
* type: "redis",
|
|
32
|
+
* tags: {
|
|
33
|
+
* region: "us-east",
|
|
34
|
+
* },
|
|
35
|
+
* }]),
|
|
36
|
+
* });
|
|
37
|
+
* ```
|
|
38
|
+
* This resource can be imported using the import command.
|
|
39
|
+
*
|
|
40
|
+
* ## Import
|
|
41
|
+
*
|
|
42
|
+
* A Workflow can be imported using the id, e.g.,
|
|
43
|
+
*
|
|
44
|
+
* ```sh
|
|
45
|
+
* $ pulumi import sdm:index/workflow:Workflow example aw-12345678
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
class Workflow extends pulumi.CustomResource {
|
|
49
|
+
/**
|
|
50
|
+
* Get an existing Workflow resource's state with the given name, ID, and optional extra
|
|
51
|
+
* properties used to qualify the lookup.
|
|
52
|
+
*
|
|
53
|
+
* @param name The _unique_ name of the resulting resource.
|
|
54
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
55
|
+
* @param state Any extra arguments used during the lookup.
|
|
56
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
57
|
+
*/
|
|
58
|
+
static get(name, id, state, opts) {
|
|
59
|
+
return new Workflow(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Returns true if the given object is an instance of Workflow. This is designed to work even
|
|
63
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
64
|
+
*/
|
|
65
|
+
static isInstance(obj) {
|
|
66
|
+
if (obj === undefined || obj === null) {
|
|
67
|
+
return false;
|
|
68
|
+
}
|
|
69
|
+
return obj['__pulumiType'] === Workflow.__pulumiType;
|
|
70
|
+
}
|
|
71
|
+
constructor(name, argsOrState, opts) {
|
|
72
|
+
let resourceInputs = {};
|
|
73
|
+
opts = opts || {};
|
|
74
|
+
if (opts.id) {
|
|
75
|
+
const state = argsOrState;
|
|
76
|
+
resourceInputs["accessRules"] = state ? state.accessRules : undefined;
|
|
77
|
+
resourceInputs["autoGrant"] = state ? state.autoGrant : undefined;
|
|
78
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
79
|
+
resourceInputs["enabled"] = state ? state.enabled : undefined;
|
|
80
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
81
|
+
resourceInputs["weight"] = state ? state.weight : undefined;
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
const args = argsOrState;
|
|
85
|
+
resourceInputs["accessRules"] = args ? args.accessRules : undefined;
|
|
86
|
+
resourceInputs["autoGrant"] = args ? args.autoGrant : undefined;
|
|
87
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
88
|
+
resourceInputs["enabled"] = args ? args.enabled : undefined;
|
|
89
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
90
|
+
resourceInputs["weight"] = args ? args.weight : undefined;
|
|
91
|
+
}
|
|
92
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
93
|
+
super(Workflow.__pulumiType, name, resourceInputs, opts);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
exports.Workflow = Workflow;
|
|
97
|
+
/** @internal */
|
|
98
|
+
Workflow.__pulumiType = 'sdm:index/workflow:Workflow';
|
|
99
|
+
//# sourceMappingURL=workflow.js.map
|
package/workflow.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow.js","sourceRoot":"","sources":["../workflow.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,y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flowApprover is an account with the ability to approve requests bound to a workflow.
|
|
4
|
+
* ## Example Usage
|
|
5
|
+
*
|
|
6
|
+
* ```typescript
|
|
7
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
8
|
+
* import * as sdm from "@pierskarsenbarg/sdm";
|
|
9
|
+
*
|
|
10
|
+
* const workflowApproverExample = new sdm.WorkflowApprover("workflowApproverExample", {
|
|
11
|
+
* approverId: "a-234605",
|
|
12
|
+
* workflowId: "aw-6799234",
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
* This resource can be imported using the import command.
|
|
16
|
+
*
|
|
17
|
+
* ## Import
|
|
18
|
+
*
|
|
19
|
+
* A WorkflowApprover can be imported using the id, e.g.,
|
|
20
|
+
*
|
|
21
|
+
* ```sh
|
|
22
|
+
* $ pulumi import sdm:index/workflowApprover:WorkflowApprover example nt-12345678
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export declare class WorkflowApprover extends pulumi.CustomResource {
|
|
26
|
+
/**
|
|
27
|
+
* Get an existing WorkflowApprover resource's state with the given name, ID, and optional extra
|
|
28
|
+
* properties used to qualify the lookup.
|
|
29
|
+
*
|
|
30
|
+
* @param name The _unique_ name of the resulting resource.
|
|
31
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
32
|
+
* @param state Any extra arguments used during the lookup.
|
|
33
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
34
|
+
*/
|
|
35
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: WorkflowApproverState, opts?: pulumi.CustomResourceOptions): WorkflowApprover;
|
|
36
|
+
/**
|
|
37
|
+
* Returns true if the given object is an instance of WorkflowApprover. This is designed to work even
|
|
38
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
39
|
+
*/
|
|
40
|
+
static isInstance(obj: any): obj is WorkflowApprover;
|
|
41
|
+
/**
|
|
42
|
+
* The approver id.
|
|
43
|
+
*/
|
|
44
|
+
readonly approverId: pulumi.Output<string>;
|
|
45
|
+
/**
|
|
46
|
+
* The workflow id.
|
|
47
|
+
*/
|
|
48
|
+
readonly workflowId: pulumi.Output<string>;
|
|
49
|
+
/**
|
|
50
|
+
* Create a WorkflowApprover resource with the given unique name, arguments, and options.
|
|
51
|
+
*
|
|
52
|
+
* @param name The _unique_ name of the resource.
|
|
53
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
54
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
55
|
+
*/
|
|
56
|
+
constructor(name: string, args: WorkflowApproverArgs, opts?: pulumi.CustomResourceOptions);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Input properties used for looking up and filtering WorkflowApprover resources.
|
|
60
|
+
*/
|
|
61
|
+
export interface WorkflowApproverState {
|
|
62
|
+
/**
|
|
63
|
+
* The approver id.
|
|
64
|
+
*/
|
|
65
|
+
approverId?: pulumi.Input<string>;
|
|
66
|
+
/**
|
|
67
|
+
* The workflow id.
|
|
68
|
+
*/
|
|
69
|
+
workflowId?: pulumi.Input<string>;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* The set of arguments for constructing a WorkflowApprover resource.
|
|
73
|
+
*/
|
|
74
|
+
export interface WorkflowApproverArgs {
|
|
75
|
+
/**
|
|
76
|
+
* The approver id.
|
|
77
|
+
*/
|
|
78
|
+
approverId: pulumi.Input<string>;
|
|
79
|
+
/**
|
|
80
|
+
* The workflow id.
|
|
81
|
+
*/
|
|
82
|
+
workflowId: pulumi.Input<string>;
|
|
83
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
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.WorkflowApprover = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* WorkflowApprover is an account with the ability to approve requests bound to a workflow.
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as sdm from "@pierskarsenbarg/sdm";
|
|
15
|
+
*
|
|
16
|
+
* const workflowApproverExample = new sdm.WorkflowApprover("workflowApproverExample", {
|
|
17
|
+
* approverId: "a-234605",
|
|
18
|
+
* workflowId: "aw-6799234",
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
* This resource can be imported using the import command.
|
|
22
|
+
*
|
|
23
|
+
* ## Import
|
|
24
|
+
*
|
|
25
|
+
* A WorkflowApprover can be imported using the id, e.g.,
|
|
26
|
+
*
|
|
27
|
+
* ```sh
|
|
28
|
+
* $ pulumi import sdm:index/workflowApprover:WorkflowApprover example nt-12345678
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
class WorkflowApprover extends pulumi.CustomResource {
|
|
32
|
+
/**
|
|
33
|
+
* Get an existing WorkflowApprover resource's state with the given name, ID, and optional extra
|
|
34
|
+
* properties used to qualify the lookup.
|
|
35
|
+
*
|
|
36
|
+
* @param name The _unique_ name of the resulting resource.
|
|
37
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
38
|
+
* @param state Any extra arguments used during the lookup.
|
|
39
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
40
|
+
*/
|
|
41
|
+
static get(name, id, state, opts) {
|
|
42
|
+
return new WorkflowApprover(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Returns true if the given object is an instance of WorkflowApprover. This is designed to work even
|
|
46
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
47
|
+
*/
|
|
48
|
+
static isInstance(obj) {
|
|
49
|
+
if (obj === undefined || obj === null) {
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
52
|
+
return obj['__pulumiType'] === WorkflowApprover.__pulumiType;
|
|
53
|
+
}
|
|
54
|
+
constructor(name, argsOrState, opts) {
|
|
55
|
+
let resourceInputs = {};
|
|
56
|
+
opts = opts || {};
|
|
57
|
+
if (opts.id) {
|
|
58
|
+
const state = argsOrState;
|
|
59
|
+
resourceInputs["approverId"] = state ? state.approverId : undefined;
|
|
60
|
+
resourceInputs["workflowId"] = state ? state.workflowId : undefined;
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
const args = argsOrState;
|
|
64
|
+
if ((!args || args.approverId === undefined) && !opts.urn) {
|
|
65
|
+
throw new Error("Missing required property 'approverId'");
|
|
66
|
+
}
|
|
67
|
+
if ((!args || args.workflowId === undefined) && !opts.urn) {
|
|
68
|
+
throw new Error("Missing required property 'workflowId'");
|
|
69
|
+
}
|
|
70
|
+
resourceInputs["approverId"] = args ? args.approverId : undefined;
|
|
71
|
+
resourceInputs["workflowId"] = args ? args.workflowId : undefined;
|
|
72
|
+
}
|
|
73
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
74
|
+
super(WorkflowApprover.__pulumiType, name, resourceInputs, opts);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
exports.WorkflowApprover = WorkflowApprover;
|
|
78
|
+
/** @internal */
|
|
79
|
+
WorkflowApprover.__pulumiType = 'sdm:index/workflowApprover:WorkflowApprover';
|
|
80
|
+
//# sourceMappingURL=workflowApprover.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflowApprover.js","sourceRoot":"","sources":["../workflowApprover.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAA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,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;SACrE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;;AAjEL,4CAkEC;AApDG,gBAAgB;AACO,6BAAY,GAAG,6CAA6C,CAAC"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* WorkflowRole links a role to a workflow. The linked roles indicate which roles a user must be a part of
|
|
4
|
+
* to request access to a resource via the workflow.
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as sdm from "@pierskarsenbarg/sdm";
|
|
10
|
+
*
|
|
11
|
+
* const workflowRoleExample = new sdm.WorkflowRole("workflowRoleExample", {
|
|
12
|
+
* roleId: "r-243561",
|
|
13
|
+
* workflowId: "aw-343865",
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
* This resource can be imported using the import command.
|
|
17
|
+
*
|
|
18
|
+
* ## Import
|
|
19
|
+
*
|
|
20
|
+
* A WorkflowRole can be imported using the id, e.g.,
|
|
21
|
+
*
|
|
22
|
+
* ```sh
|
|
23
|
+
* $ pulumi import sdm:index/workflowRole:WorkflowRole example wr-12345678
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare class WorkflowRole extends pulumi.CustomResource {
|
|
27
|
+
/**
|
|
28
|
+
* Get an existing WorkflowRole resource's state with the given name, ID, and optional extra
|
|
29
|
+
* properties used to qualify the lookup.
|
|
30
|
+
*
|
|
31
|
+
* @param name The _unique_ name of the resulting resource.
|
|
32
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
33
|
+
* @param state Any extra arguments used during the lookup.
|
|
34
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
35
|
+
*/
|
|
36
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: WorkflowRoleState, opts?: pulumi.CustomResourceOptions): WorkflowRole;
|
|
37
|
+
/**
|
|
38
|
+
* Returns true if the given object is an instance of WorkflowRole. This is designed to work even
|
|
39
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
40
|
+
*/
|
|
41
|
+
static isInstance(obj: any): obj is WorkflowRole;
|
|
42
|
+
/**
|
|
43
|
+
* The role id.
|
|
44
|
+
*/
|
|
45
|
+
readonly roleId: pulumi.Output<string>;
|
|
46
|
+
/**
|
|
47
|
+
* The workflow id.
|
|
48
|
+
*/
|
|
49
|
+
readonly workflowId: pulumi.Output<string>;
|
|
50
|
+
/**
|
|
51
|
+
* Create a WorkflowRole resource with the given unique name, arguments, and options.
|
|
52
|
+
*
|
|
53
|
+
* @param name The _unique_ name of the resource.
|
|
54
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
55
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
56
|
+
*/
|
|
57
|
+
constructor(name: string, args: WorkflowRoleArgs, opts?: pulumi.CustomResourceOptions);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Input properties used for looking up and filtering WorkflowRole resources.
|
|
61
|
+
*/
|
|
62
|
+
export interface WorkflowRoleState {
|
|
63
|
+
/**
|
|
64
|
+
* The role id.
|
|
65
|
+
*/
|
|
66
|
+
roleId?: pulumi.Input<string>;
|
|
67
|
+
/**
|
|
68
|
+
* The workflow id.
|
|
69
|
+
*/
|
|
70
|
+
workflowId?: pulumi.Input<string>;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* The set of arguments for constructing a WorkflowRole resource.
|
|
74
|
+
*/
|
|
75
|
+
export interface WorkflowRoleArgs {
|
|
76
|
+
/**
|
|
77
|
+
* The role id.
|
|
78
|
+
*/
|
|
79
|
+
roleId: pulumi.Input<string>;
|
|
80
|
+
/**
|
|
81
|
+
* The workflow id.
|
|
82
|
+
*/
|
|
83
|
+
workflowId: pulumi.Input<string>;
|
|
84
|
+
}
|
package/workflowRole.js
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
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.WorkflowRole = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* WorkflowRole links a role to a workflow. The linked roles indicate which roles a user must be a part of
|
|
10
|
+
* to request access to a resource via the workflow.
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as sdm from "@pierskarsenbarg/sdm";
|
|
16
|
+
*
|
|
17
|
+
* const workflowRoleExample = new sdm.WorkflowRole("workflowRoleExample", {
|
|
18
|
+
* roleId: "r-243561",
|
|
19
|
+
* workflowId: "aw-343865",
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
* This resource can be imported using the import command.
|
|
23
|
+
*
|
|
24
|
+
* ## Import
|
|
25
|
+
*
|
|
26
|
+
* A WorkflowRole can be imported using the id, e.g.,
|
|
27
|
+
*
|
|
28
|
+
* ```sh
|
|
29
|
+
* $ pulumi import sdm:index/workflowRole:WorkflowRole example wr-12345678
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
class WorkflowRole extends pulumi.CustomResource {
|
|
33
|
+
/**
|
|
34
|
+
* Get an existing WorkflowRole resource's state with the given name, ID, and optional extra
|
|
35
|
+
* properties used to qualify the lookup.
|
|
36
|
+
*
|
|
37
|
+
* @param name The _unique_ name of the resulting resource.
|
|
38
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
39
|
+
* @param state Any extra arguments used during the lookup.
|
|
40
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
41
|
+
*/
|
|
42
|
+
static get(name, id, state, opts) {
|
|
43
|
+
return new WorkflowRole(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Returns true if the given object is an instance of WorkflowRole. This is designed to work even
|
|
47
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
48
|
+
*/
|
|
49
|
+
static isInstance(obj) {
|
|
50
|
+
if (obj === undefined || obj === null) {
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
53
|
+
return obj['__pulumiType'] === WorkflowRole.__pulumiType;
|
|
54
|
+
}
|
|
55
|
+
constructor(name, argsOrState, opts) {
|
|
56
|
+
let resourceInputs = {};
|
|
57
|
+
opts = opts || {};
|
|
58
|
+
if (opts.id) {
|
|
59
|
+
const state = argsOrState;
|
|
60
|
+
resourceInputs["roleId"] = state ? state.roleId : undefined;
|
|
61
|
+
resourceInputs["workflowId"] = state ? state.workflowId : undefined;
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
const args = argsOrState;
|
|
65
|
+
if ((!args || args.roleId === undefined) && !opts.urn) {
|
|
66
|
+
throw new Error("Missing required property 'roleId'");
|
|
67
|
+
}
|
|
68
|
+
if ((!args || args.workflowId === undefined) && !opts.urn) {
|
|
69
|
+
throw new Error("Missing required property 'workflowId'");
|
|
70
|
+
}
|
|
71
|
+
resourceInputs["roleId"] = args ? args.roleId : undefined;
|
|
72
|
+
resourceInputs["workflowId"] = args ? args.workflowId : undefined;
|
|
73
|
+
}
|
|
74
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
75
|
+
super(WorkflowRole.__pulumiType, name, resourceInputs, opts);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.WorkflowRole = WorkflowRole;
|
|
79
|
+
/** @internal */
|
|
80
|
+
WorkflowRole.__pulumiType = 'sdm:index/workflowRole:WorkflowRole';
|
|
81
|
+
//# sourceMappingURL=workflowRole.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflowRole.js","sourceRoot":"","sources":["../workflowRole.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnE,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,YAAY,CAAC,YAAY,CAAC;IAC7D,CAAC;IAmBD,YAAY,IAAY,EAAE,WAAkD,EAAE,IAAmC;QAC7G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA4C,CAAC;YAC3D,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;SACvE;aAAM;YACH,MAAM,IAAI,GAAG,WAA2C,CAAC;YACzD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACnD,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvD,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;SACrE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;;AAjEL,oCAkEC;AApDG,gBAAgB;AACO,yBAAY,GAAG,qCAAqC,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var childProcess = require("child_process");
|
|
3
|
-
|
|
4
|
-
var args = process.argv.slice(2);
|
|
5
|
-
|
|
6
|
-
if (args.indexOf("${VERSION}") !== -1) {
|
|
7
|
-
process.exit(0);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
var res = childProcess.spawnSync("pulumi", ["plugin", "install", "--server", "github://api.github.com/pierskarsenbarg/pulumi-sdm"].concat(args), {
|
|
11
|
-
stdio: ["ignore", "inherit", "inherit"]
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
if (res.error && res.error.code === "ENOENT") {
|
|
15
|
-
console.error("\nThere was an error installing the resource provider plugin. " +
|
|
16
|
-
"It looks like `pulumi` is not installed on your system. " +
|
|
17
|
-
"Please visit https://pulumi.com/ to install the Pulumi CLI.\n" +
|
|
18
|
-
"You may try manually installing the plugin by running " +
|
|
19
|
-
"`pulumi plugin install " + args.join(" ") + "`");
|
|
20
|
-
} else if (res.error || res.status !== 0) {
|
|
21
|
-
console.error("\nThere was an error installing the resource provider plugin. " +
|
|
22
|
-
"You may try to manually installing the plugin by running " +
|
|
23
|
-
"`pulumi plugin install " + args.join(" ") + "`");
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
process.exit(0);
|