@pierskarsenbarg/sdm 1.31.0 → 1.33.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.
Files changed (86) hide show
  1. package/account.d.ts +7 -10
  2. package/account.js +4 -4
  3. package/account.js.map +1 -1
  4. package/accountAttachment.d.ts +1 -1
  5. package/accountAttachment.js +1 -1
  6. package/accountGroup.d.ts +87 -0
  7. package/accountGroup.js +84 -0
  8. package/accountGroup.js.map +1 -0
  9. package/approvalWorkflow.d.ts +16 -6
  10. package/approvalWorkflow.js +16 -6
  11. package/approvalWorkflow.js.map +1 -1
  12. package/getAccount.d.ts +10 -10
  13. package/getAccount.js +8 -8
  14. package/getAccountGroup.d.ts +101 -0
  15. package/getAccountGroup.js +66 -0
  16. package/getAccountGroup.js.map +1 -0
  17. package/getApprovalWorkflow.d.ts +4 -4
  18. package/getApprovalWorkflow.js +4 -4
  19. package/getGroup.d.ts +127 -0
  20. package/getGroup.js +72 -0
  21. package/getGroup.js.map +1 -0
  22. package/getGroupRole.d.ts +101 -0
  23. package/getGroupRole.js +66 -0
  24. package/getGroupRole.js.map +1 -0
  25. package/getNode.d.ts +6 -6
  26. package/getNode.js +4 -4
  27. package/getResource.d.ts +6 -6
  28. package/getResource.js +4 -4
  29. package/getRole.d.ts +2 -0
  30. package/getRole.js +2 -0
  31. package/getRole.js.map +1 -1
  32. package/getSecretEngine.d.ts +74 -2
  33. package/getSecretEngine.js +12 -0
  34. package/getSecretEngine.js.map +1 -1
  35. package/getSecretStore.d.ts +2 -2
  36. package/getWorkflow.d.ts +38 -0
  37. package/getWorkflow.js +38 -0
  38. package/getWorkflow.js.map +1 -1
  39. package/getWorkflowRole.d.ts +14 -4
  40. package/getWorkflowRole.js +14 -4
  41. package/getWorkflowRole.js.map +1 -1
  42. package/group.d.ts +113 -0
  43. package/group.js +82 -0
  44. package/group.js.map +1 -0
  45. package/groupRole.d.ts +87 -0
  46. package/groupRole.js +84 -0
  47. package/groupRole.js.map +1 -0
  48. package/identityAlias.d.ts +13 -0
  49. package/identityAlias.js +13 -0
  50. package/identityAlias.js.map +1 -1
  51. package/identitySet.d.ts +1 -1
  52. package/identitySet.js +1 -1
  53. package/index.d.ts +18 -0
  54. package/index.js +26 -2
  55. package/index.js.map +1 -1
  56. package/node.d.ts +4 -4
  57. package/node.js +4 -4
  58. package/package.json +1 -1
  59. package/policy.d.ts +3 -4
  60. package/policy.js +3 -4
  61. package/policy.js.map +1 -1
  62. package/proxyClusterKey.d.ts +1 -1
  63. package/proxyClusterKey.js +1 -1
  64. package/remoteIdentity.d.ts +13 -0
  65. package/remoteIdentity.js +13 -0
  66. package/remoteIdentity.js.map +1 -1
  67. package/resource.d.ts +15 -24
  68. package/resource.js +2 -0
  69. package/resource.js.map +1 -1
  70. package/role.d.ts +66 -17
  71. package/role.js +66 -17
  72. package/role.js.map +1 -1
  73. package/secretEngine.d.ts +9 -15
  74. package/secretEngine.js +2 -0
  75. package/secretEngine.js.map +1 -1
  76. package/secretStore.d.ts +63 -6
  77. package/secretStore.js +10 -0
  78. package/secretStore.js.map +1 -1
  79. package/types/input.d.ts +397 -117
  80. package/types/output.d.ts +887 -252
  81. package/workflow.d.ts +48 -0
  82. package/workflow.js +48 -0
  83. package/workflow.js.map +1 -1
  84. package/workflowRole.d.ts +7 -3
  85. package/workflowRole.js +7 -3
  86. package/workflowRole.js.map +1 -1
@@ -0,0 +1,66 @@
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.getAccountGroupOutput = exports.getAccountGroup = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * An AccountGroup is a link between an Account and a Group.
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as sdm from "@pierskarsenbarg/sdm";
15
+ *
16
+ * const securityLeadGroups = sdm.getAccountGroup({
17
+ * accountId: securityLead.id,
18
+ * });
19
+ * const specificRelationship = sdm.getAccountGroup({
20
+ * id: "accountgroup-1234567890abcdef",
21
+ * });
22
+ * const usersInGroup = sdm.getAccountGroup({
23
+ * groupId: devopsGroup.id,
24
+ * });
25
+ * ```
26
+ */
27
+ function getAccountGroup(args, opts) {
28
+ args = args || {};
29
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
30
+ return pulumi.runtime.invoke("sdm:index/getAccountGroup:getAccountGroup", {
31
+ "accountId": args.accountId,
32
+ "groupId": args.groupId,
33
+ "id": args.id,
34
+ }, opts);
35
+ }
36
+ exports.getAccountGroup = getAccountGroup;
37
+ /**
38
+ * An AccountGroup is a link between an Account and a Group.
39
+ * ## Example Usage
40
+ *
41
+ * ```typescript
42
+ * import * as pulumi from "@pulumi/pulumi";
43
+ * import * as sdm from "@pierskarsenbarg/sdm";
44
+ *
45
+ * const securityLeadGroups = sdm.getAccountGroup({
46
+ * accountId: securityLead.id,
47
+ * });
48
+ * const specificRelationship = sdm.getAccountGroup({
49
+ * id: "accountgroup-1234567890abcdef",
50
+ * });
51
+ * const usersInGroup = sdm.getAccountGroup({
52
+ * groupId: devopsGroup.id,
53
+ * });
54
+ * ```
55
+ */
56
+ function getAccountGroupOutput(args, opts) {
57
+ args = args || {};
58
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
59
+ return pulumi.runtime.invokeOutput("sdm:index/getAccountGroup:getAccountGroup", {
60
+ "accountId": args.accountId,
61
+ "groupId": args.groupId,
62
+ "id": args.id,
63
+ }, opts);
64
+ }
65
+ exports.getAccountGroupOutput = getAccountGroupOutput;
66
+ //# sourceMappingURL=getAccountGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAccountGroup.js","sourceRoot":"","sources":["../getAccountGroup.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,eAAe,CAAC,IAA0B,EAAE,IAA2B;IACnF,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,2CAA2C,EAAE;QACtE,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,0CAQC;AA6CD;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,qBAAqB,CAAC,IAAgC,EAAE,IAAiC;IACrG,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,2CAA2C,EAAE;QAC5E,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,sDAQC"}
@@ -11,12 +11,12 @@ import * as outputs from "./types/output";
11
11
  * import * as sdm from "@pierskarsenbarg/sdm";
12
12
  *
13
13
  * const manualApprovalWorkflowQuery = sdm.getApprovalWorkflow({
14
- * approvalMode: "manual",
15
14
  * name: "approval workflow manual",
15
+ * approvalMode: "manual",
16
16
  * });
17
17
  * const autoGrantApprovalWorkflowQuery = sdm.getApprovalWorkflow({
18
- * approvalMode: "automatic",
19
18
  * name: "approval workflow auto",
19
+ * approvalMode: "automatic",
20
20
  * });
21
21
  * ```
22
22
  */
@@ -89,12 +89,12 @@ export interface GetApprovalWorkflowResult {
89
89
  * import * as sdm from "@pierskarsenbarg/sdm";
90
90
  *
91
91
  * const manualApprovalWorkflowQuery = sdm.getApprovalWorkflow({
92
- * approvalMode: "manual",
93
92
  * name: "approval workflow manual",
93
+ * approvalMode: "manual",
94
94
  * });
95
95
  * const autoGrantApprovalWorkflowQuery = sdm.getApprovalWorkflow({
96
- * approvalMode: "automatic",
97
96
  * name: "approval workflow auto",
97
+ * approvalMode: "automatic",
98
98
  * });
99
99
  * ```
100
100
  */
@@ -15,12 +15,12 @@ const utilities = require("./utilities");
15
15
  * import * as sdm from "@pierskarsenbarg/sdm";
16
16
  *
17
17
  * const manualApprovalWorkflowQuery = sdm.getApprovalWorkflow({
18
- * approvalMode: "manual",
19
18
  * name: "approval workflow manual",
19
+ * approvalMode: "manual",
20
20
  * });
21
21
  * const autoGrantApprovalWorkflowQuery = sdm.getApprovalWorkflow({
22
- * approvalMode: "automatic",
23
22
  * name: "approval workflow auto",
23
+ * approvalMode: "automatic",
24
24
  * });
25
25
  * ```
26
26
  */
@@ -46,12 +46,12 @@ exports.getApprovalWorkflow = getApprovalWorkflow;
46
46
  * import * as sdm from "@pierskarsenbarg/sdm";
47
47
  *
48
48
  * const manualApprovalWorkflowQuery = sdm.getApprovalWorkflow({
49
- * approvalMode: "manual",
50
49
  * name: "approval workflow manual",
50
+ * approvalMode: "manual",
51
51
  * });
52
52
  * const autoGrantApprovalWorkflowQuery = sdm.getApprovalWorkflow({
53
- * approvalMode: "automatic",
54
53
  * name: "approval workflow auto",
54
+ * approvalMode: "automatic",
55
55
  * });
56
56
  * ```
57
57
  */
package/getGroup.d.ts ADDED
@@ -0,0 +1,127 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
3
+ /**
4
+ * A Group is a named set of principals.
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as sdm from "@pierskarsenbarg/sdm";
10
+ *
11
+ * const securityTeam = sdm.getGroup({
12
+ * name: "Security Team",
13
+ * });
14
+ * const administrators = sdm.getGroup({
15
+ * id: "group-1234567890abcdef",
16
+ * });
17
+ * const adminTeams = sdm.getGroup({
18
+ * tags: {
19
+ * admin: "true",
20
+ * },
21
+ * });
22
+ * ```
23
+ */
24
+ export declare function getGroup(args?: GetGroupArgs, opts?: pulumi.InvokeOptions): Promise<GetGroupResult>;
25
+ /**
26
+ * A collection of arguments for invoking getGroup.
27
+ */
28
+ export interface GetGroupArgs {
29
+ /**
30
+ * Description of the Group.
31
+ */
32
+ description?: string;
33
+ /**
34
+ * Unique identifier of the Group.
35
+ */
36
+ id?: string;
37
+ /**
38
+ * Unique human-readable name of the Group.
39
+ */
40
+ name?: string;
41
+ /**
42
+ * Tags is a map of key/value pairs that can be attached to a Group.
43
+ */
44
+ tags?: {
45
+ [key: string]: string;
46
+ };
47
+ }
48
+ /**
49
+ * A collection of values returned by getGroup.
50
+ */
51
+ export interface GetGroupResult {
52
+ /**
53
+ * Description of the Group.
54
+ */
55
+ readonly description?: string;
56
+ /**
57
+ * A list where each element has the following attributes:
58
+ */
59
+ readonly groups: outputs.GetGroupGroup[];
60
+ /**
61
+ * Unique identifier of the Group.
62
+ */
63
+ readonly id?: string;
64
+ /**
65
+ * a list of strings of ids of data sources that match the given arguments.
66
+ */
67
+ readonly ids: string[];
68
+ /**
69
+ * Unique human-readable name of the Group.
70
+ */
71
+ readonly name?: string;
72
+ /**
73
+ * Source is a read only field for what service manages this group, e.g. StrongDM, Okta, Azure.
74
+ */
75
+ readonly source: string;
76
+ /**
77
+ * Tags is a map of key/value pairs that can be attached to a Group.
78
+ */
79
+ readonly tags?: {
80
+ [key: string]: string;
81
+ };
82
+ }
83
+ /**
84
+ * A Group is a named set of principals.
85
+ * ## Example Usage
86
+ *
87
+ * ```typescript
88
+ * import * as pulumi from "@pulumi/pulumi";
89
+ * import * as sdm from "@pierskarsenbarg/sdm";
90
+ *
91
+ * const securityTeam = sdm.getGroup({
92
+ * name: "Security Team",
93
+ * });
94
+ * const administrators = sdm.getGroup({
95
+ * id: "group-1234567890abcdef",
96
+ * });
97
+ * const adminTeams = sdm.getGroup({
98
+ * tags: {
99
+ * admin: "true",
100
+ * },
101
+ * });
102
+ * ```
103
+ */
104
+ export declare function getGroupOutput(args?: GetGroupOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetGroupResult>;
105
+ /**
106
+ * A collection of arguments for invoking getGroup.
107
+ */
108
+ export interface GetGroupOutputArgs {
109
+ /**
110
+ * Description of the Group.
111
+ */
112
+ description?: pulumi.Input<string>;
113
+ /**
114
+ * Unique identifier of the Group.
115
+ */
116
+ id?: pulumi.Input<string>;
117
+ /**
118
+ * Unique human-readable name of the Group.
119
+ */
120
+ name?: pulumi.Input<string>;
121
+ /**
122
+ * Tags is a map of key/value pairs that can be attached to a Group.
123
+ */
124
+ tags?: pulumi.Input<{
125
+ [key: string]: pulumi.Input<string>;
126
+ }>;
127
+ }
package/getGroup.js ADDED
@@ -0,0 +1,72 @@
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.getGroupOutput = exports.getGroup = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * A Group is a named set of principals.
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as sdm from "@pierskarsenbarg/sdm";
15
+ *
16
+ * const securityTeam = sdm.getGroup({
17
+ * name: "Security Team",
18
+ * });
19
+ * const administrators = sdm.getGroup({
20
+ * id: "group-1234567890abcdef",
21
+ * });
22
+ * const adminTeams = sdm.getGroup({
23
+ * tags: {
24
+ * admin: "true",
25
+ * },
26
+ * });
27
+ * ```
28
+ */
29
+ function getGroup(args, opts) {
30
+ args = args || {};
31
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
32
+ return pulumi.runtime.invoke("sdm:index/getGroup:getGroup", {
33
+ "description": args.description,
34
+ "id": args.id,
35
+ "name": args.name,
36
+ "tags": args.tags,
37
+ }, opts);
38
+ }
39
+ exports.getGroup = getGroup;
40
+ /**
41
+ * A Group is a named set of principals.
42
+ * ## Example Usage
43
+ *
44
+ * ```typescript
45
+ * import * as pulumi from "@pulumi/pulumi";
46
+ * import * as sdm from "@pierskarsenbarg/sdm";
47
+ *
48
+ * const securityTeam = sdm.getGroup({
49
+ * name: "Security Team",
50
+ * });
51
+ * const administrators = sdm.getGroup({
52
+ * id: "group-1234567890abcdef",
53
+ * });
54
+ * const adminTeams = sdm.getGroup({
55
+ * tags: {
56
+ * admin: "true",
57
+ * },
58
+ * });
59
+ * ```
60
+ */
61
+ function getGroupOutput(args, opts) {
62
+ args = args || {};
63
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
64
+ return pulumi.runtime.invokeOutput("sdm:index/getGroup:getGroup", {
65
+ "description": args.description,
66
+ "id": args.id,
67
+ "name": args.name,
68
+ "tags": args.tags,
69
+ }, opts);
70
+ }
71
+ exports.getGroupOutput = getGroupOutput;
72
+ //# sourceMappingURL=getGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getGroup.js","sourceRoot":"","sources":["../getGroup.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,QAAQ,CAAC,IAAmB,EAAE,IAA2B;IACrE,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,6BAA6B,EAAE;QACxD,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,4BASC;AAyDD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,cAAc,CAAC,IAAyB,EAAE,IAAiC;IACvF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,6BAA6B,EAAE;QAC9D,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,wCASC"}
@@ -0,0 +1,101 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
3
+ /**
4
+ * A GroupRole assigns a Group to a Role.
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as sdm from "@pierskarsenbarg/sdm";
10
+ *
11
+ * const securityTeamRoles = sdm.getGroupRole({
12
+ * groupId: securityTeam.id,
13
+ * });
14
+ * const specificRelationship = sdm.getGroupRole({
15
+ * id: "grouprole-1234567890abcdef",
16
+ * });
17
+ * const groupsWithRole = sdm.getGroupRole({
18
+ * roleId: adminRole.id,
19
+ * });
20
+ * ```
21
+ */
22
+ export declare function getGroupRole(args?: GetGroupRoleArgs, opts?: pulumi.InvokeOptions): Promise<GetGroupRoleResult>;
23
+ /**
24
+ * A collection of arguments for invoking getGroupRole.
25
+ */
26
+ export interface GetGroupRoleArgs {
27
+ /**
28
+ * The assigned Group ID.
29
+ */
30
+ groupId?: string;
31
+ /**
32
+ * Unique identifier of the GroupRole.
33
+ */
34
+ id?: string;
35
+ /**
36
+ * The assigned Role ID.
37
+ */
38
+ roleId?: string;
39
+ }
40
+ /**
41
+ * A collection of values returned by getGroupRole.
42
+ */
43
+ export interface GetGroupRoleResult {
44
+ /**
45
+ * The assigned Group ID.
46
+ */
47
+ readonly groupId?: string;
48
+ /**
49
+ * A list where each element has the following attributes:
50
+ */
51
+ readonly groupsRoles: outputs.GetGroupRoleGroupsRole[];
52
+ /**
53
+ * Unique identifier of the GroupRole.
54
+ */
55
+ readonly id?: string;
56
+ /**
57
+ * a list of strings of ids of data sources that match the given arguments.
58
+ */
59
+ readonly ids: string[];
60
+ /**
61
+ * The assigned Role ID.
62
+ */
63
+ readonly roleId?: string;
64
+ }
65
+ /**
66
+ * A GroupRole assigns a Group to a Role.
67
+ * ## Example Usage
68
+ *
69
+ * ```typescript
70
+ * import * as pulumi from "@pulumi/pulumi";
71
+ * import * as sdm from "@pierskarsenbarg/sdm";
72
+ *
73
+ * const securityTeamRoles = sdm.getGroupRole({
74
+ * groupId: securityTeam.id,
75
+ * });
76
+ * const specificRelationship = sdm.getGroupRole({
77
+ * id: "grouprole-1234567890abcdef",
78
+ * });
79
+ * const groupsWithRole = sdm.getGroupRole({
80
+ * roleId: adminRole.id,
81
+ * });
82
+ * ```
83
+ */
84
+ export declare function getGroupRoleOutput(args?: GetGroupRoleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetGroupRoleResult>;
85
+ /**
86
+ * A collection of arguments for invoking getGroupRole.
87
+ */
88
+ export interface GetGroupRoleOutputArgs {
89
+ /**
90
+ * The assigned Group ID.
91
+ */
92
+ groupId?: pulumi.Input<string>;
93
+ /**
94
+ * Unique identifier of the GroupRole.
95
+ */
96
+ id?: pulumi.Input<string>;
97
+ /**
98
+ * The assigned Role ID.
99
+ */
100
+ roleId?: pulumi.Input<string>;
101
+ }
@@ -0,0 +1,66 @@
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.getGroupRoleOutput = exports.getGroupRole = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * A GroupRole assigns a Group to a Role.
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as sdm from "@pierskarsenbarg/sdm";
15
+ *
16
+ * const securityTeamRoles = sdm.getGroupRole({
17
+ * groupId: securityTeam.id,
18
+ * });
19
+ * const specificRelationship = sdm.getGroupRole({
20
+ * id: "grouprole-1234567890abcdef",
21
+ * });
22
+ * const groupsWithRole = sdm.getGroupRole({
23
+ * roleId: adminRole.id,
24
+ * });
25
+ * ```
26
+ */
27
+ function getGroupRole(args, opts) {
28
+ args = args || {};
29
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
30
+ return pulumi.runtime.invoke("sdm:index/getGroupRole:getGroupRole", {
31
+ "groupId": args.groupId,
32
+ "id": args.id,
33
+ "roleId": args.roleId,
34
+ }, opts);
35
+ }
36
+ exports.getGroupRole = getGroupRole;
37
+ /**
38
+ * A GroupRole assigns a Group to a Role.
39
+ * ## Example Usage
40
+ *
41
+ * ```typescript
42
+ * import * as pulumi from "@pulumi/pulumi";
43
+ * import * as sdm from "@pierskarsenbarg/sdm";
44
+ *
45
+ * const securityTeamRoles = sdm.getGroupRole({
46
+ * groupId: securityTeam.id,
47
+ * });
48
+ * const specificRelationship = sdm.getGroupRole({
49
+ * id: "grouprole-1234567890abcdef",
50
+ * });
51
+ * const groupsWithRole = sdm.getGroupRole({
52
+ * roleId: adminRole.id,
53
+ * });
54
+ * ```
55
+ */
56
+ function getGroupRoleOutput(args, opts) {
57
+ args = args || {};
58
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
59
+ return pulumi.runtime.invokeOutput("sdm:index/getGroupRole:getGroupRole", {
60
+ "groupId": args.groupId,
61
+ "id": args.id,
62
+ "roleId": args.roleId,
63
+ }, opts);
64
+ }
65
+ exports.getGroupRoleOutput = getGroupRoleOutput;
66
+ //# sourceMappingURL=getGroupRole.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getGroupRole.js","sourceRoot":"","sources":["../getGroupRole.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,YAAY,CAAC,IAAuB,EAAE,IAA2B;IAC7E,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,qCAAqC,EAAE;QAChE,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,oCAQC;AA6CD;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,kBAAkB,CAAC,IAA6B,EAAE,IAAiC;IAC/F,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,qCAAqC,EAAE;QACtE,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,gDAQC"}
package/getNode.d.ts CHANGED
@@ -12,11 +12,11 @@ import * as outputs from "./types/output";
12
12
  * import * as sdm from "@pierskarsenbarg/sdm";
13
13
  *
14
14
  * const gatewayQuery = sdm.getNode({
15
+ * type: "gateway",
15
16
  * tags: {
16
- * env: "dev",
17
17
  * region: "us-west",
18
+ * env: "dev",
18
19
  * },
19
- * type: "gateway",
20
20
  * });
21
21
  * ```
22
22
  */
@@ -48,7 +48,7 @@ export interface GetNodeArgs {
48
48
  [key: string]: string;
49
49
  };
50
50
  /**
51
- * a filter to select all items of a certain subtype. See the [filter documentation](https://www.strongdm.com/docs/cli/filters/) for more information.
51
+ * a filter to select all items of a certain subtype. See the [filter documentation](https://docs.strongdm.com/references/cli/filters/) for more information.
52
52
  */
53
53
  type?: string;
54
54
  }
@@ -101,11 +101,11 @@ export interface GetNodeResult {
101
101
  * import * as sdm from "@pierskarsenbarg/sdm";
102
102
  *
103
103
  * const gatewayQuery = sdm.getNode({
104
+ * type: "gateway",
104
105
  * tags: {
105
- * env: "dev",
106
106
  * region: "us-west",
107
+ * env: "dev",
107
108
  * },
108
- * type: "gateway",
109
109
  * });
110
110
  * ```
111
111
  */
@@ -137,7 +137,7 @@ export interface GetNodeOutputArgs {
137
137
  [key: string]: pulumi.Input<string>;
138
138
  }>;
139
139
  /**
140
- * a filter to select all items of a certain subtype. See the [filter documentation](https://www.strongdm.com/docs/cli/filters/) for more information.
140
+ * a filter to select all items of a certain subtype. See the [filter documentation](https://docs.strongdm.com/references/cli/filters/) for more information.
141
141
  */
142
142
  type?: pulumi.Input<string>;
143
143
  }
package/getNode.js CHANGED
@@ -17,11 +17,11 @@ const utilities = require("./utilities");
17
17
  * import * as sdm from "@pierskarsenbarg/sdm";
18
18
  *
19
19
  * const gatewayQuery = sdm.getNode({
20
+ * type: "gateway",
20
21
  * tags: {
21
- * env: "dev",
22
22
  * region: "us-west",
23
+ * env: "dev",
23
24
  * },
24
- * type: "gateway",
25
25
  * });
26
26
  * ```
27
27
  */
@@ -50,11 +50,11 @@ exports.getNode = getNode;
50
50
  * import * as sdm from "@pierskarsenbarg/sdm";
51
51
  *
52
52
  * const gatewayQuery = sdm.getNode({
53
+ * type: "gateway",
53
54
  * tags: {
54
- * env: "dev",
55
55
  * region: "us-west",
56
+ * env: "dev",
56
57
  * },
57
- * type: "gateway",
58
58
  * });
59
59
  * ```
60
60
  */
package/getResource.d.ts CHANGED
@@ -11,11 +11,11 @@ import * as outputs from "./types/output";
11
11
  *
12
12
  * const mysqlDatasources = sdm.getResource({
13
13
  * name: "us-west*",
14
+ * type: "mysql",
14
15
  * tags: {
15
- * env: "dev",
16
16
  * region: "us-west",
17
+ * env: "dev",
17
18
  * },
18
- * type: "mysql",
19
19
  * });
20
20
  * ```
21
21
  */
@@ -47,7 +47,7 @@ export interface GetResourceArgs {
47
47
  [key: string]: string;
48
48
  };
49
49
  /**
50
- * a filter to select all items of a certain subtype. See the [filter documentation](https://www.strongdm.com/docs/cli/filters/) for more information.
50
+ * a filter to select all items of a certain subtype. See the [filter documentation](https://docs.strongdm.com/references/cli/filters/) for more information.
51
51
  */
52
52
  type?: string;
53
53
  /**
@@ -107,11 +107,11 @@ export interface GetResourceResult {
107
107
  *
108
108
  * const mysqlDatasources = sdm.getResource({
109
109
  * name: "us-west*",
110
+ * type: "mysql",
110
111
  * tags: {
111
- * env: "dev",
112
112
  * region: "us-west",
113
+ * env: "dev",
113
114
  * },
114
- * type: "mysql",
115
115
  * });
116
116
  * ```
117
117
  */
@@ -143,7 +143,7 @@ export interface GetResourceOutputArgs {
143
143
  [key: string]: pulumi.Input<string>;
144
144
  }>;
145
145
  /**
146
- * a filter to select all items of a certain subtype. See the [filter documentation](https://www.strongdm.com/docs/cli/filters/) for more information.
146
+ * a filter to select all items of a certain subtype. See the [filter documentation](https://docs.strongdm.com/references/cli/filters/) for more information.
147
147
  */
148
148
  type?: pulumi.Input<string>;
149
149
  /**
package/getResource.js CHANGED
@@ -16,11 +16,11 @@ const utilities = require("./utilities");
16
16
  *
17
17
  * const mysqlDatasources = sdm.getResource({
18
18
  * name: "us-west*",
19
+ * type: "mysql",
19
20
  * tags: {
20
- * env: "dev",
21
21
  * region: "us-west",
22
+ * env: "dev",
22
23
  * },
23
- * type: "mysql",
24
24
  * });
25
25
  * ```
26
26
  */
@@ -49,11 +49,11 @@ exports.getResource = getResource;
49
49
  *
50
50
  * const mysqlDatasources = sdm.getResource({
51
51
  * name: "us-west*",
52
+ * type: "mysql",
52
53
  * tags: {
53
- * env: "dev",
54
54
  * region: "us-west",
55
+ * env: "dev",
55
56
  * },
56
- * type: "mysql",
57
57
  * });
58
58
  * ```
59
59
  */
package/getRole.d.ts CHANGED
@@ -4,6 +4,7 @@ import * as outputs from "./types/output";
4
4
  * A Role has a list of access rules which determine which Resources the members
5
5
  * of the Role have access to. An Account can be a member of multiple Roles via
6
6
  * AccountAttachments.
7
+ * ## Example Usage
7
8
  */
8
9
  export declare function getRole(args?: GetRoleArgs, opts?: pulumi.InvokeOptions): Promise<GetRoleResult>;
9
10
  /**
@@ -60,6 +61,7 @@ export interface GetRoleResult {
60
61
  * A Role has a list of access rules which determine which Resources the members
61
62
  * of the Role have access to. An Account can be a member of multiple Roles via
62
63
  * AccountAttachments.
64
+ * ## Example Usage
63
65
  */
64
66
  export declare function getRoleOutput(args?: GetRoleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetRoleResult>;
65
67
  /**
package/getRole.js CHANGED
@@ -9,6 +9,7 @@ const utilities = require("./utilities");
9
9
  * A Role has a list of access rules which determine which Resources the members
10
10
  * of the Role have access to. An Account can be a member of multiple Roles via
11
11
  * AccountAttachments.
12
+ * ## Example Usage
12
13
  */
13
14
  function getRole(args, opts) {
14
15
  args = args || {};
@@ -24,6 +25,7 @@ exports.getRole = getRole;
24
25
  * A Role has a list of access rules which determine which Resources the members
25
26
  * of the Role have access to. An Account can be a member of multiple Roles via
26
27
  * AccountAttachments.
28
+ * ## Example Usage
27
29
  */
28
30
  function getRoleOutput(args, opts) {
29
31
  args = args || {};