@pulumi/pulumiservice 0.35.0 → 0.38.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 (53) hide show
  1. package/buildEnvironmentScopedPermissions.d.ts +41 -0
  2. package/buildEnvironmentScopedPermissions.js +30 -0
  3. package/buildEnvironmentScopedPermissions.js.map +1 -0
  4. package/buildInsightsAccountScopedPermissions.d.ts +41 -0
  5. package/buildInsightsAccountScopedPermissions.js +30 -0
  6. package/buildInsightsAccountScopedPermissions.js.map +1 -0
  7. package/buildStackScopedPermissions.d.ts +41 -0
  8. package/buildStackScopedPermissions.js +30 -0
  9. package/buildStackScopedPermissions.js.map +1 -0
  10. package/environment.d.ts +4 -0
  11. package/environment.js +2 -0
  12. package/environment.js.map +1 -1
  13. package/getCurrentUser.d.ts +29 -0
  14. package/getCurrentUser.js +25 -0
  15. package/getCurrentUser.js.map +1 -0
  16. package/getEnvironment.d.ts +55 -0
  17. package/getEnvironment.js +32 -0
  18. package/getEnvironment.js.map +1 -0
  19. package/getInsightsAccount.d.ts +1 -1
  20. package/getOrganizationMember.d.ts +51 -0
  21. package/getOrganizationMember.js +30 -0
  22. package/getOrganizationMember.js.map +1 -0
  23. package/getOrganizationMembers.d.ts +25 -0
  24. package/getOrganizationMembers.js +28 -0
  25. package/getOrganizationMembers.js.map +1 -0
  26. package/getOrganizationRoleScopes.d.ts +25 -0
  27. package/getOrganizationRoleScopes.js +28 -0
  28. package/getOrganizationRoleScopes.js.map +1 -0
  29. package/index.d.ts +36 -0
  30. package/index.js +42 -1
  31. package/index.js.map +1 -1
  32. package/insightsAccount.d.ts +2 -2
  33. package/organizationMember.d.ts +81 -0
  34. package/organizationMember.js +78 -0
  35. package/organizationMember.js.map +1 -0
  36. package/organizationRole.d.ts +87 -0
  37. package/organizationRole.js +81 -0
  38. package/organizationRole.js.map +1 -0
  39. package/package.json +2 -2
  40. package/policyGroup.d.ts +1 -1
  41. package/stackTag.js +2 -0
  42. package/stackTag.js.map +1 -1
  43. package/stackTags.d.ts +73 -0
  44. package/stackTags.js +78 -0
  45. package/stackTags.js.map +1 -0
  46. package/teamRoleAssignment.d.ts +61 -0
  47. package/teamRoleAssignment.js +73 -0
  48. package/teamRoleAssignment.js.map +1 -0
  49. package/types/enums/index.d.ts +4 -0
  50. package/types/enums/index.js +4 -0
  51. package/types/enums/index.js.map +1 -1
  52. package/types/input.d.ts +3 -7
  53. package/types/output.d.ts +43 -3
@@ -0,0 +1,41 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Builds an `OrganizationRole.permissions` descriptor that grants the supplied scopes only on the named environment. Pair with `Environment.environmentId` (or the `getEnvironment` data source) to avoid hand-rolling the underlying `PermissionDescriptorGroup` / `PermissionDescriptorCondition` / `PermissionLiteralExpressionEnvironment` JSON. The result is directly assignable to `OrganizationRole.permissions`. To grant scopes on more than one entity in a single role, hand-roll a `PermissionDescriptorGroup` whose `entries` list pulls a `PermissionDescriptorCondition` from each helper output.
4
+ */
5
+ export declare function buildEnvironmentScopedPermissions(args: BuildEnvironmentScopedPermissionsArgs, opts?: pulumi.InvokeOptions): Promise<BuildEnvironmentScopedPermissionsResult>;
6
+ export interface BuildEnvironmentScopedPermissionsArgs {
7
+ /**
8
+ * The target environment's UUID. Use the `environmentId` output of an `Environment` resource or the `getEnvironment` data source.
9
+ */
10
+ environmentId: string;
11
+ /**
12
+ * The set of `environment:*` scopes to grant on the target environment (e.g. `environment:read`, `environment:open`, `environment:update`). Discover valid scope names via the `getOrganizationRoleScopes` data source.
13
+ */
14
+ permissions: string[];
15
+ }
16
+ export interface BuildEnvironmentScopedPermissionsResult {
17
+ /**
18
+ * A `PermissionDescriptor` tree ready to assign to `OrganizationRole.permissions`.
19
+ */
20
+ readonly permissions: {
21
+ [key: string]: any;
22
+ };
23
+ /**
24
+ * A JSON-encoded copy of `permissions`. Pulumi's Python SDK strips `__`-prefixed keys from invoke responses (see `pulumi/sdk` Python `runtime/rpc.py:deserialize_property`), so the structured `permissions` Mapping arrives at downstream resources missing every `__type` discriminator and Pulumi Cloud rejects it. Python users should consume `permissionsJson` and `.apply(json.loads)` it instead — that re-creates the dict on the input path (`serialize_property`), which preserves `__` keys. TypeScript/Yaml/Go/.NET/Java callers can use either field; `permissions` is the more ergonomic default.
25
+ */
26
+ readonly permissionsJson: string;
27
+ }
28
+ /**
29
+ * Builds an `OrganizationRole.permissions` descriptor that grants the supplied scopes only on the named environment. Pair with `Environment.environmentId` (or the `getEnvironment` data source) to avoid hand-rolling the underlying `PermissionDescriptorGroup` / `PermissionDescriptorCondition` / `PermissionLiteralExpressionEnvironment` JSON. The result is directly assignable to `OrganizationRole.permissions`. To grant scopes on more than one entity in a single role, hand-roll a `PermissionDescriptorGroup` whose `entries` list pulls a `PermissionDescriptorCondition` from each helper output.
30
+ */
31
+ export declare function buildEnvironmentScopedPermissionsOutput(args: BuildEnvironmentScopedPermissionsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<BuildEnvironmentScopedPermissionsResult>;
32
+ export interface BuildEnvironmentScopedPermissionsOutputArgs {
33
+ /**
34
+ * The target environment's UUID. Use the `environmentId` output of an `Environment` resource or the `getEnvironment` data source.
35
+ */
36
+ environmentId: pulumi.Input<string>;
37
+ /**
38
+ * The set of `environment:*` scopes to grant on the target environment (e.g. `environment:read`, `environment:open`, `environment:update`). Discover valid scope names via the `getOrganizationRoleScopes` data source.
39
+ */
40
+ permissions: pulumi.Input<pulumi.Input<string>[]>;
41
+ }
@@ -0,0 +1,30 @@
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.buildEnvironmentScopedPermissionsOutput = exports.buildEnvironmentScopedPermissions = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Builds an `OrganizationRole.permissions` descriptor that grants the supplied scopes only on the named environment. Pair with `Environment.environmentId` (or the `getEnvironment` data source) to avoid hand-rolling the underlying `PermissionDescriptorGroup` / `PermissionDescriptorCondition` / `PermissionLiteralExpressionEnvironment` JSON. The result is directly assignable to `OrganizationRole.permissions`. To grant scopes on more than one entity in a single role, hand-roll a `PermissionDescriptorGroup` whose `entries` list pulls a `PermissionDescriptorCondition` from each helper output.
10
+ */
11
+ function buildEnvironmentScopedPermissions(args, opts) {
12
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
13
+ return pulumi.runtime.invoke("pulumiservice:index:buildEnvironmentScopedPermissions", {
14
+ "environmentId": args.environmentId,
15
+ "permissions": args.permissions,
16
+ }, opts);
17
+ }
18
+ exports.buildEnvironmentScopedPermissions = buildEnvironmentScopedPermissions;
19
+ /**
20
+ * Builds an `OrganizationRole.permissions` descriptor that grants the supplied scopes only on the named environment. Pair with `Environment.environmentId` (or the `getEnvironment` data source) to avoid hand-rolling the underlying `PermissionDescriptorGroup` / `PermissionDescriptorCondition` / `PermissionLiteralExpressionEnvironment` JSON. The result is directly assignable to `OrganizationRole.permissions`. To grant scopes on more than one entity in a single role, hand-roll a `PermissionDescriptorGroup` whose `entries` list pulls a `PermissionDescriptorCondition` from each helper output.
21
+ */
22
+ function buildEnvironmentScopedPermissionsOutput(args, opts) {
23
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
24
+ return pulumi.runtime.invokeOutput("pulumiservice:index:buildEnvironmentScopedPermissions", {
25
+ "environmentId": args.environmentId,
26
+ "permissions": args.permissions,
27
+ }, opts);
28
+ }
29
+ exports.buildEnvironmentScopedPermissionsOutput = buildEnvironmentScopedPermissionsOutput;
30
+ //# sourceMappingURL=buildEnvironmentScopedPermissions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildEnvironmentScopedPermissions.js","sourceRoot":"","sources":["../buildEnvironmentScopedPermissions.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,iCAAiC,CAAC,IAA2C,EAAE,IAA2B;IACtH,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,uDAAuD,EAAE;QAClF,eAAe,EAAE,IAAI,CAAC,aAAa;QACnC,aAAa,EAAE,IAAI,CAAC,WAAW;KAClC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,8EAMC;AAuBD;;GAEG;AACH,SAAgB,uCAAuC,CAAC,IAAiD,EAAE,IAAiC;IACxI,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,uDAAuD,EAAE;QACxF,eAAe,EAAE,IAAI,CAAC,aAAa;QACnC,aAAa,EAAE,IAAI,CAAC,WAAW;KAClC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,0FAMC"}
@@ -0,0 +1,41 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Builds an `OrganizationRole.permissions` descriptor that grants the supplied scopes only on the named insights account. Pair with `InsightsAccount.insightsAccountId` (or the `getInsightsAccount` data source) to avoid hand-rolling the underlying `PermissionLiteralExpressionInsightsAccount` JSON. The result is directly assignable to `OrganizationRole.permissions`. To grant scopes on more than one entity in a single role, hand-roll a `PermissionDescriptorGroup` whose `entries` list pulls a `PermissionDescriptorCondition` from each helper output.
4
+ */
5
+ export declare function buildInsightsAccountScopedPermissions(args: BuildInsightsAccountScopedPermissionsArgs, opts?: pulumi.InvokeOptions): Promise<BuildInsightsAccountScopedPermissionsResult>;
6
+ export interface BuildInsightsAccountScopedPermissionsArgs {
7
+ /**
8
+ * The target insights account's identifier. Use the `insightsAccountId` output of an `InsightsAccount` resource or the `getInsightsAccount` data source.
9
+ */
10
+ insightsAccountId: string;
11
+ /**
12
+ * The set of `insights-account:*` scopes to grant on the target account. Discover valid scope names via the `getOrganizationRoleScopes` data source.
13
+ */
14
+ permissions: string[];
15
+ }
16
+ export interface BuildInsightsAccountScopedPermissionsResult {
17
+ /**
18
+ * A `PermissionDescriptor` tree ready to assign to `OrganizationRole.permissions`.
19
+ */
20
+ readonly permissions: {
21
+ [key: string]: any;
22
+ };
23
+ /**
24
+ * A JSON-encoded copy of `permissions`. Pulumi's Python SDK strips `__`-prefixed keys from invoke responses (see `pulumi/sdk` Python `runtime/rpc.py:deserialize_property`), so the structured `permissions` Mapping arrives at downstream resources missing every `__type` discriminator and Pulumi Cloud rejects it. Python users should consume `permissionsJson` and `.apply(json.loads)` it instead — that re-creates the dict on the input path (`serialize_property`), which preserves `__` keys. TypeScript/Yaml/Go/.NET/Java callers can use either field; `permissions` is the more ergonomic default.
25
+ */
26
+ readonly permissionsJson: string;
27
+ }
28
+ /**
29
+ * Builds an `OrganizationRole.permissions` descriptor that grants the supplied scopes only on the named insights account. Pair with `InsightsAccount.insightsAccountId` (or the `getInsightsAccount` data source) to avoid hand-rolling the underlying `PermissionLiteralExpressionInsightsAccount` JSON. The result is directly assignable to `OrganizationRole.permissions`. To grant scopes on more than one entity in a single role, hand-roll a `PermissionDescriptorGroup` whose `entries` list pulls a `PermissionDescriptorCondition` from each helper output.
30
+ */
31
+ export declare function buildInsightsAccountScopedPermissionsOutput(args: BuildInsightsAccountScopedPermissionsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<BuildInsightsAccountScopedPermissionsResult>;
32
+ export interface BuildInsightsAccountScopedPermissionsOutputArgs {
33
+ /**
34
+ * The target insights account's identifier. Use the `insightsAccountId` output of an `InsightsAccount` resource or the `getInsightsAccount` data source.
35
+ */
36
+ insightsAccountId: pulumi.Input<string>;
37
+ /**
38
+ * The set of `insights-account:*` scopes to grant on the target account. Discover valid scope names via the `getOrganizationRoleScopes` data source.
39
+ */
40
+ permissions: pulumi.Input<pulumi.Input<string>[]>;
41
+ }
@@ -0,0 +1,30 @@
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.buildInsightsAccountScopedPermissionsOutput = exports.buildInsightsAccountScopedPermissions = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Builds an `OrganizationRole.permissions` descriptor that grants the supplied scopes only on the named insights account. Pair with `InsightsAccount.insightsAccountId` (or the `getInsightsAccount` data source) to avoid hand-rolling the underlying `PermissionLiteralExpressionInsightsAccount` JSON. The result is directly assignable to `OrganizationRole.permissions`. To grant scopes on more than one entity in a single role, hand-roll a `PermissionDescriptorGroup` whose `entries` list pulls a `PermissionDescriptorCondition` from each helper output.
10
+ */
11
+ function buildInsightsAccountScopedPermissions(args, opts) {
12
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
13
+ return pulumi.runtime.invoke("pulumiservice:index:buildInsightsAccountScopedPermissions", {
14
+ "insightsAccountId": args.insightsAccountId,
15
+ "permissions": args.permissions,
16
+ }, opts);
17
+ }
18
+ exports.buildInsightsAccountScopedPermissions = buildInsightsAccountScopedPermissions;
19
+ /**
20
+ * Builds an `OrganizationRole.permissions` descriptor that grants the supplied scopes only on the named insights account. Pair with `InsightsAccount.insightsAccountId` (or the `getInsightsAccount` data source) to avoid hand-rolling the underlying `PermissionLiteralExpressionInsightsAccount` JSON. The result is directly assignable to `OrganizationRole.permissions`. To grant scopes on more than one entity in a single role, hand-roll a `PermissionDescriptorGroup` whose `entries` list pulls a `PermissionDescriptorCondition` from each helper output.
21
+ */
22
+ function buildInsightsAccountScopedPermissionsOutput(args, opts) {
23
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
24
+ return pulumi.runtime.invokeOutput("pulumiservice:index:buildInsightsAccountScopedPermissions", {
25
+ "insightsAccountId": args.insightsAccountId,
26
+ "permissions": args.permissions,
27
+ }, opts);
28
+ }
29
+ exports.buildInsightsAccountScopedPermissionsOutput = buildInsightsAccountScopedPermissionsOutput;
30
+ //# sourceMappingURL=buildInsightsAccountScopedPermissions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildInsightsAccountScopedPermissions.js","sourceRoot":"","sources":["../buildInsightsAccountScopedPermissions.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,qCAAqC,CAAC,IAA+C,EAAE,IAA2B;IAC9H,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,2DAA2D,EAAE;QACtF,mBAAmB,EAAE,IAAI,CAAC,iBAAiB;QAC3C,aAAa,EAAE,IAAI,CAAC,WAAW;KAClC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,sFAMC;AAuBD;;GAEG;AACH,SAAgB,2CAA2C,CAAC,IAAqD,EAAE,IAAiC;IAChJ,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,2DAA2D,EAAE;QAC5F,mBAAmB,EAAE,IAAI,CAAC,iBAAiB;QAC3C,aAAa,EAAE,IAAI,CAAC,WAAW;KAClC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,kGAMC"}
@@ -0,0 +1,41 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Builds an `OrganizationRole.permissions` descriptor that grants the supplied scopes only on the named stack. The `stackId` is the stack's opaque Pulumi Cloud identifier — distinct from the `organization/project/stack` triple — and is what `PermissionLiteralExpressionStack` expects. The result is directly assignable to `OrganizationRole.permissions`. To grant scopes on more than one entity in a single role, hand-roll a `PermissionDescriptorGroup` whose `entries` list pulls a `PermissionDescriptorCondition` from each helper output.
4
+ */
5
+ export declare function buildStackScopedPermissions(args: BuildStackScopedPermissionsArgs, opts?: pulumi.InvokeOptions): Promise<BuildStackScopedPermissionsResult>;
6
+ export interface BuildStackScopedPermissionsArgs {
7
+ /**
8
+ * The set of `stack:*` scopes to grant on the target stack (e.g. `stack:read`, `stack:edit`, `stack:admin`). Discover valid scope names via the `getOrganizationRoleScopes` data source.
9
+ */
10
+ permissions: string[];
11
+ /**
12
+ * The target stack's opaque Pulumi Cloud identifier (not the `organization/project/stack` triple).
13
+ */
14
+ stackId: string;
15
+ }
16
+ export interface BuildStackScopedPermissionsResult {
17
+ /**
18
+ * A `PermissionDescriptor` tree ready to assign to `OrganizationRole.permissions`.
19
+ */
20
+ readonly permissions: {
21
+ [key: string]: any;
22
+ };
23
+ /**
24
+ * A JSON-encoded copy of `permissions`. Pulumi's Python SDK strips `__`-prefixed keys from invoke responses (see `pulumi/sdk` Python `runtime/rpc.py:deserialize_property`), so the structured `permissions` Mapping arrives at downstream resources missing every `__type` discriminator and Pulumi Cloud rejects it. Python users should consume `permissionsJson` and `.apply(json.loads)` it instead — that re-creates the dict on the input path (`serialize_property`), which preserves `__` keys. TypeScript/Yaml/Go/.NET/Java callers can use either field; `permissions` is the more ergonomic default.
25
+ */
26
+ readonly permissionsJson: string;
27
+ }
28
+ /**
29
+ * Builds an `OrganizationRole.permissions` descriptor that grants the supplied scopes only on the named stack. The `stackId` is the stack's opaque Pulumi Cloud identifier — distinct from the `organization/project/stack` triple — and is what `PermissionLiteralExpressionStack` expects. The result is directly assignable to `OrganizationRole.permissions`. To grant scopes on more than one entity in a single role, hand-roll a `PermissionDescriptorGroup` whose `entries` list pulls a `PermissionDescriptorCondition` from each helper output.
30
+ */
31
+ export declare function buildStackScopedPermissionsOutput(args: BuildStackScopedPermissionsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<BuildStackScopedPermissionsResult>;
32
+ export interface BuildStackScopedPermissionsOutputArgs {
33
+ /**
34
+ * The set of `stack:*` scopes to grant on the target stack (e.g. `stack:read`, `stack:edit`, `stack:admin`). Discover valid scope names via the `getOrganizationRoleScopes` data source.
35
+ */
36
+ permissions: pulumi.Input<pulumi.Input<string>[]>;
37
+ /**
38
+ * The target stack's opaque Pulumi Cloud identifier (not the `organization/project/stack` triple).
39
+ */
40
+ stackId: pulumi.Input<string>;
41
+ }
@@ -0,0 +1,30 @@
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.buildStackScopedPermissionsOutput = exports.buildStackScopedPermissions = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Builds an `OrganizationRole.permissions` descriptor that grants the supplied scopes only on the named stack. The `stackId` is the stack's opaque Pulumi Cloud identifier — distinct from the `organization/project/stack` triple — and is what `PermissionLiteralExpressionStack` expects. The result is directly assignable to `OrganizationRole.permissions`. To grant scopes on more than one entity in a single role, hand-roll a `PermissionDescriptorGroup` whose `entries` list pulls a `PermissionDescriptorCondition` from each helper output.
10
+ */
11
+ function buildStackScopedPermissions(args, opts) {
12
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
13
+ return pulumi.runtime.invoke("pulumiservice:index:buildStackScopedPermissions", {
14
+ "permissions": args.permissions,
15
+ "stackId": args.stackId,
16
+ }, opts);
17
+ }
18
+ exports.buildStackScopedPermissions = buildStackScopedPermissions;
19
+ /**
20
+ * Builds an `OrganizationRole.permissions` descriptor that grants the supplied scopes only on the named stack. The `stackId` is the stack's opaque Pulumi Cloud identifier — distinct from the `organization/project/stack` triple — and is what `PermissionLiteralExpressionStack` expects. The result is directly assignable to `OrganizationRole.permissions`. To grant scopes on more than one entity in a single role, hand-roll a `PermissionDescriptorGroup` whose `entries` list pulls a `PermissionDescriptorCondition` from each helper output.
21
+ */
22
+ function buildStackScopedPermissionsOutput(args, opts) {
23
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
24
+ return pulumi.runtime.invokeOutput("pulumiservice:index:buildStackScopedPermissions", {
25
+ "permissions": args.permissions,
26
+ "stackId": args.stackId,
27
+ }, opts);
28
+ }
29
+ exports.buildStackScopedPermissionsOutput = buildStackScopedPermissionsOutput;
30
+ //# sourceMappingURL=buildStackScopedPermissions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildStackScopedPermissions.js","sourceRoot":"","sources":["../buildStackScopedPermissions.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,2BAA2B,CAAC,IAAqC,EAAE,IAA2B;IAC1G,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,iDAAiD,EAAE;QAC5E,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,kEAMC;AAuBD;;GAEG;AACH,SAAgB,iCAAiC,CAAC,IAA2C,EAAE,IAAiC;IAC5H,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,iDAAiD,EAAE;QAClF,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,8EAMC"}
package/environment.d.ts CHANGED
@@ -17,6 +17,10 @@ export declare class Environment extends pulumi.CustomResource {
17
17
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
18
18
  */
19
19
  static isInstance(obj: any): obj is Environment;
20
+ /**
21
+ * The environment's UUID. Use this as the `identity` value when pinning a custom RBAC role to this environment via a `PermissionLiteralExpressionEnvironment` expression in `OrganizationRole.permissions`.
22
+ */
23
+ readonly environmentId: pulumi.Output<string | undefined>;
20
24
  /**
21
25
  * Environment name.
22
26
  */
package/environment.js CHANGED
@@ -54,9 +54,11 @@ class Environment extends pulumi.CustomResource {
54
54
  resourceInputs["organization"] = args?.organization;
55
55
  resourceInputs["project"] = (args?.project) ?? "default";
56
56
  resourceInputs["yaml"] = args?.yaml;
57
+ resourceInputs["environmentId"] = undefined /*out*/;
57
58
  resourceInputs["revision"] = undefined /*out*/;
58
59
  }
59
60
  else {
61
+ resourceInputs["environmentId"] = undefined /*out*/;
60
62
  resourceInputs["name"] = undefined /*out*/;
61
63
  resourceInputs["organization"] = undefined /*out*/;
62
64
  resourceInputs["project"] = undefined /*out*/;
@@ -1 +1 @@
1
- {"version":3,"file":"environment.js","sourceRoot":"","sources":["../environment.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;GAEG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,WAAW,CAAC,IAAI,EAAE,SAAgB,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACxE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ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,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AAxFL,kCAyFC;AA5EG,gBAAgB;AACO,wBAAY,GAAG,iCAAiC,CAAC"}
@@ -0,0 +1,29 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Returns the Pulumi Cloud user that the provider's access token belongs to. Useful for seeding a newly-created `Team` with the creator as a member, since Pulumi Cloud auto-adds the creator. Omitting this user from the team will result in a refresh drift.
4
+ */
5
+ export declare function getCurrentUser(args?: GetCurrentUserArgs, opts?: pulumi.InvokeOptions): Promise<GetCurrentUserResult>;
6
+ export interface GetCurrentUserArgs {
7
+ }
8
+ export interface GetCurrentUserResult {
9
+ /**
10
+ * URL of the user's avatar image.
11
+ */
12
+ readonly avatarUrl: string;
13
+ /**
14
+ * The user's email address.
15
+ */
16
+ readonly email: string;
17
+ /**
18
+ * The user's display name.
19
+ */
20
+ readonly name: string;
21
+ /**
22
+ * The user's Pulumi Cloud username.
23
+ */
24
+ readonly username: string;
25
+ }
26
+ /**
27
+ * Returns the Pulumi Cloud user that the provider's access token belongs to. Useful for seeding a newly-created `Team` with the creator as a member, since Pulumi Cloud auto-adds the creator. Omitting this user from the team will result in a refresh drift.
28
+ */
29
+ export declare function getCurrentUserOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetCurrentUserResult>;
@@ -0,0 +1,25 @@
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.getCurrentUserOutput = exports.getCurrentUser = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Returns the Pulumi Cloud user that the provider's access token belongs to. Useful for seeding a newly-created `Team` with the creator as a member, since Pulumi Cloud auto-adds the creator. Omitting this user from the team will result in a refresh drift.
10
+ */
11
+ function getCurrentUser(args, opts) {
12
+ args = args || {};
13
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
14
+ return pulumi.runtime.invoke("pulumiservice:index:getCurrentUser", {}, opts);
15
+ }
16
+ exports.getCurrentUser = getCurrentUser;
17
+ /**
18
+ * Returns the Pulumi Cloud user that the provider's access token belongs to. Useful for seeding a newly-created `Team` with the creator as a member, since Pulumi Cloud auto-adds the creator. Omitting this user from the team will result in a refresh drift.
19
+ */
20
+ function getCurrentUserOutput(opts) {
21
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
22
+ return pulumi.runtime.invokeOutput("pulumiservice:index:getCurrentUser", {}, opts);
23
+ }
24
+ exports.getCurrentUserOutput = getCurrentUserOutput;
25
+ //# sourceMappingURL=getCurrentUser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCurrentUser.js","sourceRoot":"","sources":["../getCurrentUser.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,cAAc,CAAC,IAAyB,EAAE,IAA2B;IACjF,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,oCAAoC,EAAE,EAClE,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,wCAKC;AAuBD;;GAEG;AACH,SAAgB,oBAAoB,CAAC,IAAiC;IAClE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,oCAAoC,EAAE,EACxE,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,oDAIC"}
@@ -0,0 +1,55 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Looks up an existing ESC environment by name and returns its UUID. Use this to pin a custom RBAC role to a specific environment via `PermissionLiteralExpressionEnvironment` when the environment is not managed by the current Pulumi program. Errors when the environment is not found.
4
+ */
5
+ export declare function getEnvironment(args: GetEnvironmentArgs, opts?: pulumi.InvokeOptions): Promise<GetEnvironmentResult>;
6
+ export interface GetEnvironmentArgs {
7
+ /**
8
+ * The environment name.
9
+ */
10
+ name: string;
11
+ /**
12
+ * The Pulumi Cloud organization that owns the environment.
13
+ */
14
+ organizationName: string;
15
+ /**
16
+ * The ESC project name. Defaults to `default`.
17
+ */
18
+ projectName?: string;
19
+ }
20
+ export interface GetEnvironmentResult {
21
+ /**
22
+ * The environment's UUID. Use this as the `identity` value when pinning a custom RBAC role to this environment via a `PermissionLiteralExpressionEnvironment` expression.
23
+ */
24
+ readonly environmentId: string;
25
+ /**
26
+ * The environment name.
27
+ */
28
+ readonly name: string;
29
+ /**
30
+ * The Pulumi Cloud organization that owns the environment.
31
+ */
32
+ readonly organizationName: string;
33
+ /**
34
+ * The ESC project the environment lives in.
35
+ */
36
+ readonly projectName: string;
37
+ }
38
+ /**
39
+ * Looks up an existing ESC environment by name and returns its UUID. Use this to pin a custom RBAC role to a specific environment via `PermissionLiteralExpressionEnvironment` when the environment is not managed by the current Pulumi program. Errors when the environment is not found.
40
+ */
41
+ export declare function getEnvironmentOutput(args: GetEnvironmentOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetEnvironmentResult>;
42
+ export interface GetEnvironmentOutputArgs {
43
+ /**
44
+ * The environment name.
45
+ */
46
+ name: pulumi.Input<string>;
47
+ /**
48
+ * The Pulumi Cloud organization that owns the environment.
49
+ */
50
+ organizationName: pulumi.Input<string>;
51
+ /**
52
+ * The ESC project name. Defaults to `default`.
53
+ */
54
+ projectName?: pulumi.Input<string>;
55
+ }
@@ -0,0 +1,32 @@
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.getEnvironmentOutput = exports.getEnvironment = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Looks up an existing ESC environment by name and returns its UUID. Use this to pin a custom RBAC role to a specific environment via `PermissionLiteralExpressionEnvironment` when the environment is not managed by the current Pulumi program. Errors when the environment is not found.
10
+ */
11
+ function getEnvironment(args, opts) {
12
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
13
+ return pulumi.runtime.invoke("pulumiservice:index:getEnvironment", {
14
+ "name": args.name,
15
+ "organizationName": args.organizationName,
16
+ "projectName": args.projectName,
17
+ }, opts);
18
+ }
19
+ exports.getEnvironment = getEnvironment;
20
+ /**
21
+ * Looks up an existing ESC environment by name and returns its UUID. Use this to pin a custom RBAC role to a specific environment via `PermissionLiteralExpressionEnvironment` when the environment is not managed by the current Pulumi program. Errors when the environment is not found.
22
+ */
23
+ function getEnvironmentOutput(args, opts) {
24
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
25
+ return pulumi.runtime.invokeOutput("pulumiservice:index:getEnvironment", {
26
+ "name": args.name,
27
+ "organizationName": args.organizationName,
28
+ "projectName": args.projectName,
29
+ }, opts);
30
+ }
31
+ exports.getEnvironmentOutput = getEnvironmentOutput;
32
+ //# sourceMappingURL=getEnvironment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getEnvironment.js","sourceRoot":"","sources":["../getEnvironment.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,cAAc,CAAC,IAAwB,EAAE,IAA2B;IAChF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,oCAAoC,EAAE;QAC/D,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,kBAAkB,EAAE,IAAI,CAAC,gBAAgB;QACzC,aAAa,EAAE,IAAI,CAAC,WAAW;KAClC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,wCAOC;AAmCD;;GAEG;AACH,SAAgB,oBAAoB,CAAC,IAA8B,EAAE,IAAiC;IAClG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,oCAAoC,EAAE;QACrE,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,kBAAkB,EAAE,IAAI,CAAC,gBAAgB;QACzC,aAAa,EAAE,IAAI,CAAC,WAAW;KAClC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,oDAOC"}
@@ -36,7 +36,7 @@ export interface GetInsightsAccountResult {
36
36
  [key: string]: any;
37
37
  };
38
38
  /**
39
- * Schedule for automated scanning. Use 'daily' to enable daily scans, or 'none' to disable scheduled scanning. Defaults to 'none'.
39
+ * Schedule for automated scanning. Use 'daily' for daily scans, '12h' for scans every twelve hours, or 'none' to disable scheduled scanning. Defaults to 'none'.
40
40
  */
41
41
  readonly scanSchedule: enums.ScanSchedule;
42
42
  /**
@@ -0,0 +1,51 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Looks up a single member of a Pulumi Cloud organization by username (the backing identity-provider login, e.g. GitHub login). Returns an error when the member is not found.
4
+ */
5
+ export declare function getOrganizationMember(args: GetOrganizationMemberArgs, opts?: pulumi.InvokeOptions): Promise<GetOrganizationMemberResult>;
6
+ export interface GetOrganizationMemberArgs {
7
+ /**
8
+ * The name of the Pulumi organization.
9
+ */
10
+ organizationName: string;
11
+ /**
12
+ * The Pulumi Cloud username (backing identity-provider login) to look up.
13
+ */
14
+ username: string;
15
+ }
16
+ export interface GetOrganizationMemberResult {
17
+ /**
18
+ * The member's built-in role (member, admin, billing-manager). Absent when a custom role is assigned — check `roleId` in that case.
19
+ */
20
+ readonly role?: string;
21
+ /**
22
+ * The custom role ID assigned to this member, if any.
23
+ */
24
+ readonly roleId?: string;
25
+ /**
26
+ * The name of the currently assigned role (custom role name, or built-in role).
27
+ */
28
+ readonly roleName?: string;
29
+ /**
30
+ * The member's Pulumi Cloud username.
31
+ */
32
+ readonly username: string;
33
+ /**
34
+ * Whether this member is an admin in Pulumi Cloud without admin access on the backing identity provider.
35
+ */
36
+ readonly virtualAdmin: boolean;
37
+ }
38
+ /**
39
+ * Looks up a single member of a Pulumi Cloud organization by username (the backing identity-provider login, e.g. GitHub login). Returns an error when the member is not found.
40
+ */
41
+ export declare function getOrganizationMemberOutput(args: GetOrganizationMemberOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetOrganizationMemberResult>;
42
+ export interface GetOrganizationMemberOutputArgs {
43
+ /**
44
+ * The name of the Pulumi organization.
45
+ */
46
+ organizationName: pulumi.Input<string>;
47
+ /**
48
+ * The Pulumi Cloud username (backing identity-provider login) to look up.
49
+ */
50
+ username: pulumi.Input<string>;
51
+ }
@@ -0,0 +1,30 @@
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.getOrganizationMemberOutput = exports.getOrganizationMember = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Looks up a single member of a Pulumi Cloud organization by username (the backing identity-provider login, e.g. GitHub login). Returns an error when the member is not found.
10
+ */
11
+ function getOrganizationMember(args, opts) {
12
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
13
+ return pulumi.runtime.invoke("pulumiservice:index:getOrganizationMember", {
14
+ "organizationName": args.organizationName,
15
+ "username": args.username,
16
+ }, opts);
17
+ }
18
+ exports.getOrganizationMember = getOrganizationMember;
19
+ /**
20
+ * Looks up a single member of a Pulumi Cloud organization by username (the backing identity-provider login, e.g. GitHub login). Returns an error when the member is not found.
21
+ */
22
+ function getOrganizationMemberOutput(args, opts) {
23
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
24
+ return pulumi.runtime.invokeOutput("pulumiservice:index:getOrganizationMember", {
25
+ "organizationName": args.organizationName,
26
+ "username": args.username,
27
+ }, opts);
28
+ }
29
+ exports.getOrganizationMemberOutput = getOrganizationMemberOutput;
30
+ //# sourceMappingURL=getOrganizationMember.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getOrganizationMember.js","sourceRoot":"","sources":["../getOrganizationMember.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAA2B;IAC9F,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,kBAAkB,EAAE,IAAI,CAAC,gBAAgB;QACzC,UAAU,EAAE,IAAI,CAAC,QAAQ;KAC5B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,sDAMC;AAmCD;;GAEG;AACH,SAAgB,2BAA2B,CAAC,IAAqC,EAAE,IAAiC;IAChH,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,kBAAkB,EAAE,IAAI,CAAC,gBAAgB;QACzC,UAAU,EAAE,IAAI,CAAC,QAAQ;KAC5B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,kEAMC"}
@@ -0,0 +1,25 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
3
+ /**
4
+ * Lists all members of a Pulumi Cloud organization, including their role assignments.
5
+ */
6
+ export declare function getOrganizationMembers(args: GetOrganizationMembersArgs, opts?: pulumi.InvokeOptions): Promise<GetOrganizationMembersResult>;
7
+ export interface GetOrganizationMembersArgs {
8
+ /**
9
+ * The name of the Pulumi organization.
10
+ */
11
+ organizationName: string;
12
+ }
13
+ export interface GetOrganizationMembersResult {
14
+ readonly members: outputs.OrganizationMemberInfo[];
15
+ }
16
+ /**
17
+ * Lists all members of a Pulumi Cloud organization, including their role assignments.
18
+ */
19
+ export declare function getOrganizationMembersOutput(args: GetOrganizationMembersOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetOrganizationMembersResult>;
20
+ export interface GetOrganizationMembersOutputArgs {
21
+ /**
22
+ * The name of the Pulumi organization.
23
+ */
24
+ organizationName: pulumi.Input<string>;
25
+ }
@@ -0,0 +1,28 @@
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.getOrganizationMembersOutput = exports.getOrganizationMembers = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Lists all members of a Pulumi Cloud organization, including their role assignments.
10
+ */
11
+ function getOrganizationMembers(args, opts) {
12
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
13
+ return pulumi.runtime.invoke("pulumiservice:index:getOrganizationMembers", {
14
+ "organizationName": args.organizationName,
15
+ }, opts);
16
+ }
17
+ exports.getOrganizationMembers = getOrganizationMembers;
18
+ /**
19
+ * Lists all members of a Pulumi Cloud organization, including their role assignments.
20
+ */
21
+ function getOrganizationMembersOutput(args, opts) {
22
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
23
+ return pulumi.runtime.invokeOutput("pulumiservice:index:getOrganizationMembers", {
24
+ "organizationName": args.organizationName,
25
+ }, opts);
26
+ }
27
+ exports.getOrganizationMembersOutput = getOrganizationMembersOutput;
28
+ //# sourceMappingURL=getOrganizationMembers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getOrganizationMembers.js","sourceRoot":"","sources":["../getOrganizationMembers.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,sBAAsB,CAAC,IAAgC,EAAE,IAA2B;IAChG,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,kBAAkB,EAAE,IAAI,CAAC,gBAAgB;KAC5C,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,wDAKC;AAYD;;GAEG;AACH,SAAgB,4BAA4B,CAAC,IAAsC,EAAE,IAAiC;IAClH,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,kBAAkB,EAAE,IAAI,CAAC,gBAAgB;KAC5C,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,oEAKC"}
@@ -0,0 +1,25 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
3
+ /**
4
+ * Lists the permission scopes available for custom roles in an organization. Use this to discover valid scope names before setting `OrganizationRole.permissions`. The catalogue is flattened into a single list with resource type and group context, sorted deterministically.
5
+ */
6
+ export declare function getOrganizationRoleScopes(args: GetOrganizationRoleScopesArgs, opts?: pulumi.InvokeOptions): Promise<GetOrganizationRoleScopesResult>;
7
+ export interface GetOrganizationRoleScopesArgs {
8
+ /**
9
+ * The Pulumi Cloud organization name.
10
+ */
11
+ organizationName: string;
12
+ }
13
+ export interface GetOrganizationRoleScopesResult {
14
+ readonly scopes: outputs.RoleScopeInfo[];
15
+ }
16
+ /**
17
+ * Lists the permission scopes available for custom roles in an organization. Use this to discover valid scope names before setting `OrganizationRole.permissions`. The catalogue is flattened into a single list with resource type and group context, sorted deterministically.
18
+ */
19
+ export declare function getOrganizationRoleScopesOutput(args: GetOrganizationRoleScopesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetOrganizationRoleScopesResult>;
20
+ export interface GetOrganizationRoleScopesOutputArgs {
21
+ /**
22
+ * The Pulumi Cloud organization name.
23
+ */
24
+ organizationName: pulumi.Input<string>;
25
+ }