{
  "name": "pulumiservice",
  "displayName": "Pulumi Cloud",
  "description": "A native Pulumi package for creating and managing Pulumi Cloud constructs.",
  "keywords": [
    "pulumi",
    "kind/native",
    "category/infrastructure"
  ],
  "homepage": "https://pulumi.com",
  "license": "Apache-2.0",
  "repository": "https://github.com/pulumi/pulumi-pulumiservice",
  "publisher": "Pulumi",
  "namespace": "pulumi",
  "language": {
    "csharp": {
      "namespaces": {
        "api": "Api",
        "pulumiservice": "PulumiService"
      },
      "packageReferences": {
        "Pulumi": "3.*"
      },
      "respectSchemaVersion": true
    },
    "go": {
      "generateResourceContainerTypes": true,
      "importBasePath": "github.com/pulumi/pulumi-pulumiservice/sdk/go/pulumiservice",
      "respectSchemaVersion": true
    },
    "java": {
      "basePackage": "",
      "buildFiles": "gradle",
      "dependencies": {
        "com.google.code.findbugs:jsr305": "3.0.2",
        "com.google.code.gson:gson": "2.8.9",
        "com.pulumi:pulumi": "1.16.2"
      },
      "gradleNexusPublishPluginVersion": "2.0.0",
      "gradleTest": "",
      "readme": "# Pulumi Service Provider\n\n[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com)\n[![NPM version](https://badge.fury.io/js/%40pulumi%2Fpulumiservice.svg)](https://www.npmjs.com/package/@pulumi/pulumiservice)\n[![Python version](https://badge.fury.io/py/pulumi-pulumiservice.svg)](https://pypi.org/project/pulumi-pulumiservice)\n[![NuGet version](https://badge.fury.io/nu/pulumi.pulumiservice.svg)](https://badge.fury.io/nu/pulumi.pulumiservice)\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/pulumi/pulumi-pulumiservice/sdk/go/pulumiservice)](https://pkg.go.dev/github.com/pulumi/pulumi-pulumiservice/sdk/go)\n[![License](https://img.shields.io/npm/l/%40pulumi%2Fpulumiservice.svg)](https://github.com/pulumi/pulumi-pulumiservice/blob/main/LICENSE)\n\nPulumi Service Provider for creating Pulumi Cloud resources.\n\nThe Pulumi Service Provider (PSP) is built on top of the [Pulumi Cloud REST API](https://www.pulumi.com/docs/pulumi-cloud/reference/cloud-rest-api/), allowing Pulumi customers to create Pulumi Cloud resources using Pulumi programs. That includes Stacks, Environments, Teams, Tokens, Webhooks, Tags, Deployment Settings, Deployment Schedules and much more! Pulumi Service Provider is especially powerful when used in combination with the [Automation API](https://pulumi.com/automation).\n\nFor a full list of supported resources, visit the [Pulumi Registry](https://www.pulumi.com/registry/packages/pulumiservice/). For the REST API reference documentation, visit [Pulumi Cloud API Documentation](https://www.pulumi.com/docs/pulumi-cloud/reference/cloud-rest-api/).\n\n## Resource surfaces\n\nResources are organized into two surfaces under one package:\n\n- **v0 (package root)** — Mature, hand-maintained resources accessible directly off the package import (e.g. `pulumiservice.Stack`). **In maintenance mode**: bug fixes and security updates only; no new resources or features. Existing programs continue to work without any code changes.\n- **api (`pulumiservice.api`)** — **Preview.** Actively developed, generated at runtime from the public Pulumi Cloud OpenAPI specification. Resource shape and module layout may change before GA; not yet recommended for production. Coverage expands as new operations are mapped from the spec.\n\nResources from both surfaces can be used in the same program. There is no forced migration: existing users stay on v0 indefinitely, or migrate individual resources to the api surface by updating their IaC code (resource type + input shape) and adding Pulumi `aliases` on the new api declaration so state rebinds in place. v0 has known coverage gaps relative to the full Cloud API; the api surface closes those gaps over time.\n\n## Installing\n\nThis package is available in many languages in the standard packaging formats.\n\n### Node.js (Javascript/TypeScript)\n\nTo use from JavaScript or TypeScript in Node.js, install using either `npm`:\n\n```sh\nnpm install @pulumi/pulumiservice\n```\n\nor `yarn`:\n\n```sh\nyarn add @pulumi/pulumiservice\n```\n\n### Python\n\nTo use from Python, install using `pip`:\n\n```sh\npip install pulumi_pulumiservice\n```\n\n### Go\n\nTo use from Go, use `go get` to grab the latest version of the library\n\n```sh\ngo get github.com/pulumi/pulumi-pulumiservice/sdk/go\n```\n\n### .NET\n\nTo use from .NET, install using `dotnet add package`:\n\n```sh\ndotnet add package Pulumi.PulumiService\n```\n\n### Java\n\nTo use from Java, add an entry to your `build.gradle` file:\n\n```groovy\nimplementation 'com.pulumi:pulumiservice:%Fill in latest version from the badge up top%'\n```\n\nOr to your `pom.xml` file:\n\n```xml\n<dependency>\n    <groupId>com.pulumi</groupId>\n    <artifactId>pulumiservice</artifactId>\n    <version>%Fill in latest version from the badge up top%</version>\n</dependency>\n```\n\n## Setup\n\nEnsure that you have ran `pulumi login`. Run `pulumi whoami` to verify that you are logged in.\n\n### Configuration Options\n\nUse `pulumi config set pulumiservice:<option>` or pass options to the [constructor of `new pulumiservice.Provider`][1].\n\n| Option        | Environment Variable Name | Required/Optional | Description                                                                           |\n|---------------|---------------------------|-------------------|---------------------------------------------------------------------------------------|\n| `accessToken` | `PULUMI_ACCESS_TOKEN`     | Optional          | Overrides [Pulumi Service Access Tokens][2]                                           |\n| `apiUrl`      | `PULUMI_BACKEND_URL`      | Optional          | Allows overriding default [Pulumi Service API URL][3] for [self hosted customers][4]. |\n|               |                           |                   |                                                                                       |\n\n## Examples\n\n```typescript\nimport * as aws from \"@pulumi/awsx\"\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as service from \"@pulumi/pulumiservice\";\n\nconst team = new service.Team(\"team\", {\n    name: \"pulumi-service-team\",\n    displayName: \"Pulumi Service\",\n    description: \"The Pulumi Service Team\",\n    organizationName: \"pulumi\",\n    teamType: \"pulumi\",\n    members: [\n        \"piers\",\n        \"bryce\",\n        \"casey\"\n        \"evan\",\n        \"devon\",\n        \"meagan\",\n        \"myles\",\n        \"steve\"\n    ],\n});\n\nexport const members = team.members;\n```\n\nCheck out the [examples/](examples/) directory for more examples.\n\n[1]: https://www.pulumi.com/registry/packages/pulumiservice/api-docs/provider/\n[2]: https://www.pulumi.com/docs/pulumi-cloud/access-management/access-tokens/\n[3]: https://www.pulumi.com/docs/pulumi-cloud/reference/cloud-rest-api/\n[4]: https://www.pulumi.com/docs/pulumi-cloud/self-hosted/\n"
    },
    "nodejs": {
      "dependencies": {
        "@pulumi/pulumi": "^3.0.0"
      },
      "packageName": "@pulumi/pulumiservice",
      "readme": "# Pulumi Service Provider\n\n[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com)\n[![NPM version](https://badge.fury.io/js/%40pulumi%2Fpulumiservice.svg)](https://www.npmjs.com/package/@pulumi/pulumiservice)\n[![Python version](https://badge.fury.io/py/pulumi-pulumiservice.svg)](https://pypi.org/project/pulumi-pulumiservice)\n[![NuGet version](https://badge.fury.io/nu/pulumi.pulumiservice.svg)](https://badge.fury.io/nu/pulumi.pulumiservice)\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/pulumi/pulumi-pulumiservice/sdk/go/pulumiservice)](https://pkg.go.dev/github.com/pulumi/pulumi-pulumiservice/sdk/go)\n[![License](https://img.shields.io/npm/l/%40pulumi%2Fpulumiservice.svg)](https://github.com/pulumi/pulumi-pulumiservice/blob/main/LICENSE)\n\nPulumi Service Provider for creating Pulumi Cloud resources.\n\nThe Pulumi Service Provider (PSP) is built on top of the [Pulumi Cloud REST API](https://www.pulumi.com/docs/pulumi-cloud/reference/cloud-rest-api/), allowing Pulumi customers to create Pulumi Cloud resources using Pulumi programs. That includes Stacks, Environments, Teams, Tokens, Webhooks, Tags, Deployment Settings, Deployment Schedules and much more! Pulumi Service Provider is especially powerful when used in combination with the [Automation API](https://pulumi.com/automation).\n\nFor a full list of supported resources, visit the [Pulumi Registry](https://www.pulumi.com/registry/packages/pulumiservice/). For the REST API reference documentation, visit [Pulumi Cloud API Documentation](https://www.pulumi.com/docs/pulumi-cloud/reference/cloud-rest-api/).\n\n## Resource surfaces\n\nResources are organized into two surfaces under one package:\n\n- **v0 (package root)** — Mature, hand-maintained resources accessible directly off the package import (e.g. `pulumiservice.Stack`). **In maintenance mode**: bug fixes and security updates only; no new resources or features. Existing programs continue to work without any code changes.\n- **api (`pulumiservice.api`)** — **Preview.** Actively developed, generated at runtime from the public Pulumi Cloud OpenAPI specification. Resource shape and module layout may change before GA; not yet recommended for production. Coverage expands as new operations are mapped from the spec.\n\nResources from both surfaces can be used in the same program. There is no forced migration: existing users stay on v0 indefinitely, or migrate individual resources to the api surface by updating their IaC code (resource type + input shape) and adding Pulumi `aliases` on the new api declaration so state rebinds in place. v0 has known coverage gaps relative to the full Cloud API; the api surface closes those gaps over time.\n\n## Installing\n\nThis package is available in many languages in the standard packaging formats.\n\n### Node.js (Javascript/TypeScript)\n\nTo use from JavaScript or TypeScript in Node.js, install using either `npm`:\n\n```sh\nnpm install @pulumi/pulumiservice\n```\n\nor `yarn`:\n\n```sh\nyarn add @pulumi/pulumiservice\n```\n\n### Python\n\nTo use from Python, install using `pip`:\n\n```sh\npip install pulumi_pulumiservice\n```\n\n### Go\n\nTo use from Go, use `go get` to grab the latest version of the library\n\n```sh\ngo get github.com/pulumi/pulumi-pulumiservice/sdk/go\n```\n\n### .NET\n\nTo use from .NET, install using `dotnet add package`:\n\n```sh\ndotnet add package Pulumi.PulumiService\n```\n\n### Java\n\nTo use from Java, add an entry to your `build.gradle` file:\n\n```groovy\nimplementation 'com.pulumi:pulumiservice:%Fill in latest version from the badge up top%'\n```\n\nOr to your `pom.xml` file:\n\n```xml\n<dependency>\n    <groupId>com.pulumi</groupId>\n    <artifactId>pulumiservice</artifactId>\n    <version>%Fill in latest version from the badge up top%</version>\n</dependency>\n```\n\n## Setup\n\nEnsure that you have ran `pulumi login`. Run `pulumi whoami` to verify that you are logged in.\n\n### Configuration Options\n\nUse `pulumi config set pulumiservice:<option>` or pass options to the [constructor of `new pulumiservice.Provider`][1].\n\n| Option        | Environment Variable Name | Required/Optional | Description                                                                           |\n|---------------|---------------------------|-------------------|---------------------------------------------------------------------------------------|\n| `accessToken` | `PULUMI_ACCESS_TOKEN`     | Optional          | Overrides [Pulumi Service Access Tokens][2]                                           |\n| `apiUrl`      | `PULUMI_BACKEND_URL`      | Optional          | Allows overriding default [Pulumi Service API URL][3] for [self hosted customers][4]. |\n|               |                           |                   |                                                                                       |\n\n## Examples\n\n```typescript\nimport * as aws from \"@pulumi/awsx\"\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as service from \"@pulumi/pulumiservice\";\n\nconst team = new service.Team(\"team\", {\n    name: \"pulumi-service-team\",\n    displayName: \"Pulumi Service\",\n    description: \"The Pulumi Service Team\",\n    organizationName: \"pulumi\",\n    teamType: \"pulumi\",\n    members: [\n        \"piers\",\n        \"bryce\",\n        \"casey\"\n        \"evan\",\n        \"devon\",\n        \"meagan\",\n        \"myles\",\n        \"steve\"\n    ],\n});\n\nexport const members = team.members;\n```\n\nCheck out the [examples/](examples/) directory for more examples.\n\n[1]: https://www.pulumi.com/registry/packages/pulumiservice/api-docs/provider/\n[2]: https://www.pulumi.com/docs/pulumi-cloud/access-management/access-tokens/\n[3]: https://www.pulumi.com/docs/pulumi-cloud/reference/cloud-rest-api/\n[4]: https://www.pulumi.com/docs/pulumi-cloud/self-hosted/\n",
      "respectSchemaVersion": true
    },
    "python": {
      "packageName": "pulumi_pulumiservice",
      "pyproject": {
        "enabled": true
      },
      "readme": "# Pulumi Service Provider\n\n[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com)\n[![NPM version](https://badge.fury.io/js/%40pulumi%2Fpulumiservice.svg)](https://www.npmjs.com/package/@pulumi/pulumiservice)\n[![Python version](https://badge.fury.io/py/pulumi-pulumiservice.svg)](https://pypi.org/project/pulumi-pulumiservice)\n[![NuGet version](https://badge.fury.io/nu/pulumi.pulumiservice.svg)](https://badge.fury.io/nu/pulumi.pulumiservice)\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/pulumi/pulumi-pulumiservice/sdk/go/pulumiservice)](https://pkg.go.dev/github.com/pulumi/pulumi-pulumiservice/sdk/go)\n[![License](https://img.shields.io/npm/l/%40pulumi%2Fpulumiservice.svg)](https://github.com/pulumi/pulumi-pulumiservice/blob/main/LICENSE)\n\nPulumi Service Provider for creating Pulumi Cloud resources.\n\nThe Pulumi Service Provider (PSP) is built on top of the [Pulumi Cloud REST API](https://www.pulumi.com/docs/pulumi-cloud/reference/cloud-rest-api/), allowing Pulumi customers to create Pulumi Cloud resources using Pulumi programs. That includes Stacks, Environments, Teams, Tokens, Webhooks, Tags, Deployment Settings, Deployment Schedules and much more! Pulumi Service Provider is especially powerful when used in combination with the [Automation API](https://pulumi.com/automation).\n\nFor a full list of supported resources, visit the [Pulumi Registry](https://www.pulumi.com/registry/packages/pulumiservice/). For the REST API reference documentation, visit [Pulumi Cloud API Documentation](https://www.pulumi.com/docs/pulumi-cloud/reference/cloud-rest-api/).\n\n## Resource surfaces\n\nResources are organized into two surfaces under one package:\n\n- **v0 (package root)** — Mature, hand-maintained resources accessible directly off the package import (e.g. `pulumiservice.Stack`). **In maintenance mode**: bug fixes and security updates only; no new resources or features. Existing programs continue to work without any code changes.\n- **api (`pulumiservice.api`)** — **Preview.** Actively developed, generated at runtime from the public Pulumi Cloud OpenAPI specification. Resource shape and module layout may change before GA; not yet recommended for production. Coverage expands as new operations are mapped from the spec.\n\nResources from both surfaces can be used in the same program. There is no forced migration: existing users stay on v0 indefinitely, or migrate individual resources to the api surface by updating their IaC code (resource type + input shape) and adding Pulumi `aliases` on the new api declaration so state rebinds in place. v0 has known coverage gaps relative to the full Cloud API; the api surface closes those gaps over time.\n\n## Installing\n\nThis package is available in many languages in the standard packaging formats.\n\n### Node.js (Javascript/TypeScript)\n\nTo use from JavaScript or TypeScript in Node.js, install using either `npm`:\n\n```sh\nnpm install @pulumi/pulumiservice\n```\n\nor `yarn`:\n\n```sh\nyarn add @pulumi/pulumiservice\n```\n\n### Python\n\nTo use from Python, install using `pip`:\n\n```sh\npip install pulumi_pulumiservice\n```\n\n### Go\n\nTo use from Go, use `go get` to grab the latest version of the library\n\n```sh\ngo get github.com/pulumi/pulumi-pulumiservice/sdk/go\n```\n\n### .NET\n\nTo use from .NET, install using `dotnet add package`:\n\n```sh\ndotnet add package Pulumi.PulumiService\n```\n\n### Java\n\nTo use from Java, add an entry to your `build.gradle` file:\n\n```groovy\nimplementation 'com.pulumi:pulumiservice:%Fill in latest version from the badge up top%'\n```\n\nOr to your `pom.xml` file:\n\n```xml\n<dependency>\n    <groupId>com.pulumi</groupId>\n    <artifactId>pulumiservice</artifactId>\n    <version>%Fill in latest version from the badge up top%</version>\n</dependency>\n```\n\n## Setup\n\nEnsure that you have ran `pulumi login`. Run `pulumi whoami` to verify that you are logged in.\n\n### Configuration Options\n\nUse `pulumi config set pulumiservice:<option>` or pass options to the [constructor of `new pulumiservice.Provider`][1].\n\n| Option        | Environment Variable Name | Required/Optional | Description                                                                           |\n|---------------|---------------------------|-------------------|---------------------------------------------------------------------------------------|\n| `accessToken` | `PULUMI_ACCESS_TOKEN`     | Optional          | Overrides [Pulumi Service Access Tokens][2]                                           |\n| `apiUrl`      | `PULUMI_BACKEND_URL`      | Optional          | Allows overriding default [Pulumi Service API URL][3] for [self hosted customers][4]. |\n|               |                           |                   |                                                                                       |\n\n## Examples\n\n```typescript\nimport * as aws from \"@pulumi/awsx\"\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as service from \"@pulumi/pulumiservice\";\n\nconst team = new service.Team(\"team\", {\n    name: \"pulumi-service-team\",\n    displayName: \"Pulumi Service\",\n    description: \"The Pulumi Service Team\",\n    organizationName: \"pulumi\",\n    teamType: \"pulumi\",\n    members: [\n        \"piers\",\n        \"bryce\",\n        \"casey\"\n        \"evan\",\n        \"devon\",\n        \"meagan\",\n        \"myles\",\n        \"steve\"\n    ],\n});\n\nexport const members = team.members;\n```\n\nCheck out the [examples/](examples/) directory for more examples.\n\n[1]: https://www.pulumi.com/registry/packages/pulumiservice/api-docs/provider/\n[2]: https://www.pulumi.com/docs/pulumi-cloud/access-management/access-tokens/\n[3]: https://www.pulumi.com/docs/pulumi-cloud/reference/cloud-rest-api/\n[4]: https://www.pulumi.com/docs/pulumi-cloud/self-hosted/\n",
      "requires": {
        "pulumi": ">=3.235.0,<4.0.0"
      },
      "respectSchemaVersion": true
    }
  },
  "config": {
    "variables": {
      "accessToken": {
        "type": "string",
        "description": "Access token to authenticate with Pulumi Cloud. Optional: if unset, the provider uses the `PULUMI_ACCESS_TOKEN` environment variable, then the access token of the account you're logged in to with `pulumi login`.",
        "secret": true
      },
      "apiUrl": {
        "type": "string",
        "description": "Optional override of Pulumi Cloud API endpoint.",
        "default": "https://api.pulumi.com",
        "defaultInfo": {
          "environment": [
            "PULUMI_BACKEND_URL",
            "PULUMI_API"
          ]
        }
      }
    }
  },
  "types": {
    "pulumiservice:index:AWSOIDCConfiguration": {
      "description": "AWS configuration for Deployments OIDC. Pulumi ESC is the recommended way to supply cloud credentials to Pulumi Deployments. See [Supplying Cloud Credentials to Pulumi Deployments](https://www.pulumi.com/docs/deployments/guides/cloud-credentials/).",
      "properties": {
        "duration": {
          "type": "string",
          "description": "Duration of the assume-role session in “XhYmZs” format"
        },
        "policyARNs": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Optional set of IAM policy ARNs that further restrict the assume-role session"
        },
        "roleARN": {
          "type": "string",
          "description": "The ARN of the role to assume using the OIDC token."
        },
        "sessionName": {
          "type": "string",
          "description": "The name of the assume-role session."
        }
      },
      "type": "object",
      "required": [
        "roleARN",
        "sessionName"
      ]
    },
    "pulumiservice:index:ApprovalRuleConfig": {
      "properties": {
        "allowSelfApproval": {
          "type": "boolean",
          "description": "Whether self-approval is allowed."
        },
        "eligibleApprovers": {
          "type": "array",
          "items": {
            "$ref": "#/types/pulumiservice:index:EligibleApprover"
          },
          "description": "List of eligible approvers."
        },
        "numApprovalsRequired": {
          "type": "integer",
          "description": "Number of approvals required."
        },
        "requireReapprovalOnChange": {
          "type": "boolean",
          "description": "Whether reapproval is required on changes."
        }
      },
      "type": "object",
      "required": [
        "numApprovalsRequired",
        "allowSelfApproval",
        "requireReapprovalOnChange",
        "eligibleApprovers"
      ]
    },
    "pulumiservice:index:AuthPolicyDecision": {
      "type": "string",
      "enum": [
        {
          "description": "A deny rule for Oidc Issuer Policy.",
          "value": "deny"
        },
        {
          "description": "An allow rule for Oidc Issuer Policy.",
          "value": "allow"
        }
      ]
    },
    "pulumiservice:index:AuthPolicyDefinition": {
      "properties": {
        "authorizedPermissions": {
          "type": "array",
          "items": {
            "$ref": "#/types/pulumiservice:index:AuthPolicyPermissionLevel"
          },
          "description": "The permission level for organization tokens."
        },
        "decision": {
          "$ref": "#/types/pulumiservice:index:AuthPolicyDecision",
          "description": "The rule type of this policy definition."
        },
        "roleID": {
          "type": "string",
          "description": "The role ID for organization tokens."
        },
        "rules": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "OIDC rules to set for this policy."
        },
        "runnerID": {
          "type": "string",
          "description": "The runner ID for deployment runner tokens."
        },
        "teamName": {
          "type": "string",
          "description": "The team name for team tokens."
        },
        "tokenType": {
          "$ref": "#/types/pulumiservice:index:AuthPolicyTokenType",
          "description": "The token type for this policy definition."
        },
        "userLogin": {
          "type": "string",
          "description": "The user login for personal tokens."
        }
      },
      "type": "object",
      "required": [
        "decision",
        "tokenType",
        "rules"
      ]
    },
    "pulumiservice:index:AuthPolicyPermissionLevel": {
      "type": "string",
      "enum": [
        {
          "description": "Standard level of permissions.",
          "value": "standard"
        },
        {
          "description": "Admin level of permissions.",
          "value": "admin"
        }
      ]
    },
    "pulumiservice:index:AuthPolicyTokenType": {
      "type": "string",
      "enum": [
        {
          "description": "Personal Pulumi token. Requires userLogin field to be filled.",
          "value": "personal"
        },
        {
          "description": "Team Pulumi token. Requires teamName field to be filled.",
          "value": "team"
        },
        {
          "description": "Organization Pulumi token. Requires authorizedPermissions or roleID field to be filled.",
          "value": "organization"
        },
        {
          "description": "Deployment Runner Pulumi token. Requires runnerID field to be filled.",
          "value": "runner"
        }
      ]
    },
    "pulumiservice:index:AzureOIDCConfiguration": {
      "description": "Azure configuration for Deployments OIDC. Pulumi ESC is the recommended way to supply cloud credentials to Pulumi Deployments. See [Supplying Cloud Credentials to Pulumi Deployments](https://www.pulumi.com/docs/deployments/guides/cloud-credentials/).",
      "properties": {
        "clientId": {
          "type": "string",
          "description": "The client ID of the federated workload identity."
        },
        "subscriptionId": {
          "type": "string",
          "description": "The subscription ID of the federated workload identity."
        },
        "tenantId": {
          "type": "string",
          "description": "The tenant ID of the federated workload identity."
        }
      },
      "type": "object",
      "required": [
        "clientId",
        "tenantId",
        "subscriptionId"
      ]
    },
    "pulumiservice:index:CloudProvider": {
      "type": "string",
      "enum": [
        {
          "name": "aws",
          "description": "Amazon Web Services",
          "value": "aws"
        },
        {
          "name": "azure-native",
          "description": "Microsoft Azure",
          "value": "azure-native"
        },
        {
          "name": "gcp",
          "description": "Google Cloud Platform",
          "value": "gcp"
        },
        {
          "name": "kubernetes",
          "description": "Kubernetes",
          "value": "kubernetes"
        },
        {
          "name": "oci",
          "description": "Oracle Cloud Infrastructure",
          "value": "oci"
        }
      ]
    },
    "pulumiservice:index:DeploymentSettingsCacheOptions": {
      "description": "Dependency cache settings for the deployment",
      "properties": {
        "enable": {
          "type": "boolean",
          "description": "Enable dependency caching",
          "default": false
        }
      },
      "type": "object"
    },
    "pulumiservice:index:DeploymentSettingsExecutorContext": {
      "description": "The executor context defines information about the executor where the deployment is executed. If unspecified, the default 'pulumi/pulumi' image is used.",
      "properties": {
        "credentials": {
          "$ref": "#/types/pulumiservice:index:DeploymentSettingsExecutorImageCredentials",
          "description": "Credentials for pulling `executorImage` from a private container registry. Only needed when the image is not publicly accessible."
        },
        "executorImage": {
          "type": "string",
          "description": "Allows overriding the default executor image with a custom image. E.g. 'pulumi/pulumi-nodejs:latest'"
        }
      },
      "type": "object",
      "required": [
        "executorImage"
      ]
    },
    "pulumiservice:index:DeploymentSettingsExecutorImageCredentials": {
      "description": "Credentials for pulling the executor image from a private container registry.",
      "properties": {
        "password": {
          "type": "string",
          "description": "Password or access token for authenticating with the container registry.",
          "secret": true
        },
        "username": {
          "type": "string",
          "description": "Username for authenticating with the container registry."
        }
      },
      "type": "object",
      "required": [
        "username",
        "password"
      ]
    },
    "pulumiservice:index:DeploymentSettingsGitAuthBasicAuth": {
      "description": "Git source settings for a deployment.",
      "properties": {
        "password": {
          "type": "string",
          "description": "Password for git basic authentication.",
          "secret": true
        },
        "username": {
          "type": "string",
          "description": "User name for git basic authentication.",
          "secret": true
        }
      },
      "type": "object",
      "required": [
        "username",
        "password"
      ]
    },
    "pulumiservice:index:DeploymentSettingsGitAuthSSHAuth": {
      "description": "Git source settings for a deployment.",
      "properties": {
        "password": {
          "type": "string",
          "description": "Optional password for SSH authentication.",
          "secret": true
        },
        "sshPrivateKey": {
          "type": "string",
          "description": "SSH private key.",
          "secret": true
        }
      },
      "type": "object",
      "required": [
        "sshPrivateKey"
      ]
    },
    "pulumiservice:index:DeploymentSettingsGitSource": {
      "description": "Git source settings for a deployment.",
      "properties": {
        "branch": {
          "type": "string",
          "description": "The branch to deploy. One of either `branch` or `commit` must be specified."
        },
        "commit": {
          "type": "string",
          "description": "The commit to deploy. One of either `branch` or `commit` must be specified."
        },
        "gitAuth": {
          "$ref": "#/types/pulumiservice:index:DeploymentSettingsGitSourceGitAuth",
          "description": "Git authentication configuration for this deployment. Should not be specified if there are `gitHub` settings for this deployment."
        },
        "repoDir": {
          "type": "string",
          "description": "The directory within the repository where the Pulumi.yaml is located."
        },
        "repoUrl": {
          "type": "string",
          "description": "The repository URL to use for git settings. Should not be specified if there are `gitHub` settings for this deployment."
        }
      },
      "type": "object"
    },
    "pulumiservice:index:DeploymentSettingsGitSourceGitAuth": {
      "description": "Git source settings for a deployment.",
      "properties": {
        "basicAuth": {
          "$ref": "#/types/pulumiservice:index:DeploymentSettingsGitAuthBasicAuth",
          "description": "Basic auth for git authentication. Only one of `personalAccessToken`, `sshAuth`, or `basicAuth` must be defined."
        },
        "sshAuth": {
          "$ref": "#/types/pulumiservice:index:DeploymentSettingsGitAuthSSHAuth",
          "description": "SSH auth for git authentication. Only one of `personalAccessToken`, `sshAuth`, or `basicAuth` must be defined."
        }
      },
      "type": "object"
    },
    "pulumiservice:index:DeploymentSettingsGithub": {
      "description": "GitHub settings for the deployment.",
      "properties": {
        "deployCommits": {
          "type": "boolean",
          "description": "Trigger a deployment running `pulumi up` on commit. Must be `false` when `deployTags` is `true`, because Pulumi Cloud rejects the two together.",
          "default": true
        },
        "deployTags": {
          "type": "boolean",
          "description": "Trigger a deployment running `pulumi up` when a tag matching `tagFilters` is pushed. Can't be combined with `deployCommits`, which defaults to `true`, so set `deployCommits` to `false` when you enable this.",
          "default": false
        },
        "paths": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The paths within the repo that deployments should be filtered to."
        },
        "previewPullRequests": {
          "type": "boolean",
          "description": "Trigger a deployment running `pulumi preview` when a PR is opened.",
          "default": true
        },
        "pullRequestTemplate": {
          "type": "boolean",
          "description": "Use this stack as a template for pull request review stacks.",
          "default": false
        },
        "repository": {
          "type": "string",
          "description": "The GitHub repository in the format org/repo."
        },
        "tagFilters": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Glob patterns matching the tag names that trigger a deployment when `deployTags` is true. Prefix a pattern with `!` to exclude matching tags, for example `!*-rc*`. An empty list matches all tags."
        }
      },
      "type": "object"
    },
    "pulumiservice:index:DeploymentSettingsOperationContext": {
      "description": "Settings related to the Pulumi operation environment during the deployment.",
      "properties": {
        "environmentVariables": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Environment variables to set for the deployment."
        },
        "oidc": {
          "$ref": "#/types/pulumiservice:index:OperationContextOIDC",
          "description": "Deployments OIDC configuration for obtaining cloud credentials during the deployment. Pulumi ESC is the recommended way to supply cloud credentials to Pulumi Deployments. Deployments OIDC still fits when a customer-managed runner can't reach Pulumi Cloud to use ESC, or when pre-run commands need credentials and aren't wrapped in `pulumi env run`. See [Supplying Cloud Credentials to Pulumi Deployments](https://www.pulumi.com/docs/deployments/guides/cloud-credentials/)."
        },
        "options": {
          "$ref": "#/types/pulumiservice:index:OperationContextOptions",
          "description": "Options to override default behavior during the deployment."
        },
        "preRunCommands": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Shell commands to run before the Pulumi operation executes."
        }
      },
      "type": "object"
    },
    "pulumiservice:index:DeploymentSettingsSourceContext": {
      "description": "Settings related to the source of the deployment.",
      "properties": {
        "git": {
          "$ref": "#/types/pulumiservice:index:DeploymentSettingsGitSource",
          "description": "Git source settings for a deployment."
        }
      },
      "type": "object"
    },
    "pulumiservice:index:DeploymentSettingsVcs": {
      "description": "VCS settings for the deployment, supporting multiple VCS providers.",
      "properties": {
        "deployCommits": {
          "type": "boolean",
          "description": "Trigger a deployment running `pulumi up` on commit. Must be `false` when `deployTags` is `true`, because Pulumi Cloud rejects the two together.",
          "default": true
        },
        "deployPullRequest": {
          "type": "integer",
          "description": "Deploy a specific pull request number."
        },
        "deployTags": {
          "type": "boolean",
          "description": "Trigger a deployment running `pulumi up` when a tag matching `tagFilters` is pushed. Can't be combined with `deployCommits`, which defaults to `true`, so set `deployCommits` to `false` when you enable this.",
          "default": false
        },
        "installationId": {
          "type": "string",
          "description": "The VCS integration installation ID. Use to disambiguate when an organization has multiple integrations of the same provider type (e.g., two GitHub Apps). If omitted, the API resolves the integration automatically from `provider` and `repository`."
        },
        "paths": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The paths within the repo that deployments should be filtered to."
        },
        "previewPullRequests": {
          "type": "boolean",
          "description": "Trigger a deployment running `pulumi preview` when a PR is opened.",
          "default": true
        },
        "provider": {
          "type": "string",
          "description": "The VCS provider type."
        },
        "pullRequestTemplate": {
          "type": "boolean",
          "description": "Use this stack as a template for pull request review stacks.",
          "default": false
        },
        "repository": {
          "type": "string",
          "description": "The repository identifier (e.g., 'ProjectName/RepoName' for Azure DevOps, 'org/repo' for GitHub)."
        },
        "tagFilters": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Glob patterns matching the tag names that trigger a deployment when `deployTags` is true. Prefix a pattern with `!` to exclude matching tags, for example `!*-rc*`. An empty list matches all tags."
        }
      },
      "type": "object",
      "required": [
        "provider"
      ]
    },
    "pulumiservice:index:EligibleApprover": {
      "properties": {
        "rbacPermission": {
          "$ref": "#/types/pulumiservice:index:RbacPermission",
          "description": "RBAC permission that gives right to approve."
        },
        "teamName": {
          "type": "string",
          "description": "Name of the team that can approve."
        },
        "user": {
          "type": "string",
          "description": "Login of the user that can approve."
        }
      },
      "type": "object"
    },
    "pulumiservice:index:EnvironmentIdentifier": {
      "properties": {
        "name": {
          "type": "string",
          "description": "The environment name.",
          "replaceOnChanges": true
        },
        "organization": {
          "type": "string",
          "description": "The organization name.",
          "replaceOnChanges": true
        },
        "project": {
          "type": "string",
          "description": "The project name.",
          "replaceOnChanges": true
        }
      },
      "type": "object",
      "required": [
        "organization",
        "project",
        "name"
      ]
    },
    "pulumiservice:index:EnvironmentPermission": {
      "type": "string",
      "enum": [
        {
          "description": "No permissions.",
          "value": "none"
        },
        {
          "description": "Permission to read environment definition only.",
          "value": "read"
        },
        {
          "description": "Permission to open and read the environment.",
          "value": "open"
        },
        {
          "description": "Permission to open, read and update the environment.",
          "value": "write"
        },
        {
          "description": "Permission for all operations on the environment.",
          "value": "admin"
        }
      ]
    },
    "pulumiservice:index:GCPOIDCConfiguration": {
      "description": "GCP configuration for Deployments OIDC. Pulumi ESC is the recommended way to supply cloud credentials to Pulumi Deployments. See [Supplying Cloud Credentials to Pulumi Deployments](https://www.pulumi.com/docs/deployments/guides/cloud-credentials/).",
      "properties": {
        "projectId": {
          "type": "string",
          "description": "The GCP project number, a numeric value such as `123456789012`. This is not the project ID (such as `my-project`). To look up the number, run `gcloud projects describe <project-id> --format='value(projectNumber)'`."
        },
        "providerId": {
          "type": "string",
          "description": "The ID of the identity provider associated with the workload pool."
        },
        "region": {
          "type": "string",
          "description": "The region of the GCP project."
        },
        "serviceAccount": {
          "type": "string",
          "description": "The email address of the service account to use."
        },
        "tokenLifetime": {
          "type": "string",
          "description": "The lifetime of the temporary credentials in “XhYmZs” format."
        },
        "workloadPoolId": {
          "type": "string",
          "description": "The ID of the workload pool to use."
        }
      },
      "type": "object",
      "required": [
        "projectId",
        "workloadPoolId",
        "providerId",
        "serviceAccount"
      ]
    },
    "pulumiservice:index:InsightsAccountState": {
      "properties": {
        "accountName": {
          "type": "string",
          "description": "Name of the insights account.",
          "replaceOnChanges": true
        },
        "environment": {
          "type": "string",
          "description": "The ESC environment used for provider credentials. Format: 'project/environment' with optional '@version' suffix (e.g., 'my-project/prod-env' or 'my-project/prod-env@v1.0')."
        },
        "insightsAccountId": {
          "type": "string",
          "description": "The insights account identifier."
        },
        "organizationName": {
          "type": "string",
          "description": "The organization's name.",
          "replaceOnChanges": true
        },
        "provider": {
          "$ref": "#/types/pulumiservice:index:CloudProvider",
          "description": "The cloud provider for scanning.",
          "replaceOnChanges": true
        },
        "providerConfig": {
          "type": "object",
          "additionalProperties": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "Provider-specific configuration as a JSON object. For AWS, specify regions to scan: {\"regions\": [\"us-west-1\", \"us-west-2\"]}."
        },
        "scanSchedule": {
          "$ref": "#/types/pulumiservice:index:ScanSchedule",
          "description": "Schedule for automated scanning. Use 'daily' for daily scans, '12h' for scans every twelve hours, or 'none' to disable scheduled scanning. Defaults to 'none'.",
          "default": "none"
        },
        "scheduledScanEnabled": {
          "type": "boolean",
          "description": "Whether scheduled scanning is enabled."
        },
        "tags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Key-value tags to associate with the insights account."
        }
      },
      "type": "object",
      "required": [
        "organizationName",
        "accountName",
        "provider",
        "environment",
        "scanSchedule",
        "insightsAccountId",
        "scheduledScanEnabled"
      ]
    },
    "pulumiservice:index:OperationContextOIDC": {
      "description": "Deployments OIDC configuration for obtaining cloud credentials during a deployment.\n\nPulumi ESC is the recommended way to supply cloud credentials to Pulumi Deployments. Deployments OIDC predates Pulumi ESC and still works, but for most users ESC is the better choice. Deployments OIDC is still a good fit when:\n\n- A customer-managed runner can't reach Pulumi Cloud over the network to use ESC.\n- Pre-run commands need credentials. An ESC environment applies only to the Pulumi operation itself, unless the command is wrapped in `pulumi env run`.\n\nSee [Supplying Cloud Credentials to Pulumi Deployments](https://www.pulumi.com/docs/deployments/guides/cloud-credentials/).",
      "properties": {
        "aws": {
          "$ref": "#/types/pulumiservice:index:AWSOIDCConfiguration",
          "description": "AWS-specific OIDC configuration."
        },
        "azure": {
          "$ref": "#/types/pulumiservice:index:AzureOIDCConfiguration",
          "description": "Azure-specific OIDC configuration."
        },
        "gcp": {
          "$ref": "#/types/pulumiservice:index:GCPOIDCConfiguration",
          "description": "GCP-specific OIDC configuration."
        }
      },
      "type": "object"
    },
    "pulumiservice:index:OperationContextOptions": {
      "properties": {
        "deleteAfterDestroy": {
          "type": "boolean",
          "description": "Whether the stack should be deleted after it is destroyed."
        },
        "shell": {
          "type": "string",
          "description": "The shell to use to run commands during the deployment. Defaults to 'bash'."
        },
        "skipInstallDependencies": {
          "type": "boolean",
          "description": "Skip the default dependency installation step - use this to customize the dependency installation (e.g. if using yarn or poetry)"
        },
        "skipIntermediateDeployments": {
          "type": "boolean",
          "description": "Skip intermediate deployments (Consolidate multiple deployments of the same type into one deployment)"
        }
      },
      "type": "object"
    },
    "pulumiservice:index:OrganizationMemberInfo": {
      "properties": {
        "role": {
          "type": "string",
          "description": "The member's built-in role (member, admin, billing-manager, reader, builder, maintainer). Absent when a custom role is assigned — check `roleId` in that case."
        },
        "roleId": {
          "type": "string",
          "description": "The custom role ID assigned to this member, if any."
        },
        "roleName": {
          "type": "string",
          "description": "The name of the currently assigned role (custom role name, or built-in role)."
        },
        "username": {
          "type": "string",
          "description": "The member's Pulumi Cloud username."
        },
        "virtualAdmin": {
          "type": "boolean",
          "description": "Whether this member is an admin in Pulumi Cloud without admin access on the backing identity provider."
        }
      },
      "type": "object",
      "required": [
        "username",
        "virtualAdmin"
      ]
    },
    "pulumiservice:index:OrganizationRoleInfo": {
      "properties": {
        "builtIn": {
          "type": "boolean",
          "description": "Whether this is one of the roles every organization has (Admin, Member and Billing Manager), rather than a custom role."
        },
        "description": {
          "type": "string",
          "description": "The role's description, if it has one."
        },
        "name": {
          "type": "string",
          "description": "The role's name, as shown in the Pulumi Cloud console."
        },
        "roleId": {
          "type": "string",
          "description": "The role's ID. Pass it to inputs that take a role ID, such as `TeamRoleAssignment.roleId` and `OrganizationMember.roleId`."
        }
      },
      "type": "object",
      "required": [
        "roleId",
        "name",
        "builtIn"
      ]
    },
    "pulumiservice:index:PolicyGroupMatchRule": {
      "properties": {
        "conditions": {
          "type": "array",
          "items": {
            "$ref": "#/types/pulumiservice:index:PolicyGroupTagCondition"
          },
          "description": "Tag conditions that must all hold for the rule to match. At least one is required."
        }
      },
      "type": "object",
      "required": [
        "conditions"
      ]
    },
    "pulumiservice:index:PolicyGroupPolicyPackReference": {
      "description": "A reference to a policy pack within a policy group.",
      "properties": {
        "config": {
          "type": "object",
          "additionalProperties": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "Optional configuration for the policy pack. The special key `all` sets the default enforcement level for every policy in the pack; per-policy entries override it."
        },
        "displayName": {
          "type": "string",
          "description": "The display name of the policy pack."
        },
        "name": {
          "type": "string",
          "description": "The name of the policy pack."
        },
        "version": {
          "type": "number",
          "description": "The server-derived numeric version of the policy pack. This is output-only; use `versionTag` to pin a specific version."
        },
        "versionTag": {
          "type": "string",
          "description": "The version tag of the policy pack."
        }
      },
      "type": "object",
      "required": [
        "name"
      ]
    },
    "pulumiservice:index:PolicyGroupPolicyPackReferenceInput": {
      "description": "A reference to a policy pack within a policy group (input).",
      "properties": {
        "config": {
          "type": "object",
          "additionalProperties": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "Optional configuration for the policy pack. The special key `all` sets the default enforcement level for every policy in the pack; per-policy entries override it."
        },
        "displayName": {
          "type": "string",
          "description": "The display name of the policy pack."
        },
        "name": {
          "type": "string",
          "description": "The name of the policy pack."
        },
        "versionTag": {
          "type": "string",
          "description": "The version tag of the policy pack."
        }
      },
      "type": "object",
      "required": [
        "name"
      ]
    },
    "pulumiservice:index:PolicyGroupStackReference": {
      "description": "A reference to a stack within a policy group.",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the stack."
        },
        "routingProject": {
          "type": "string",
          "description": "The routing project name (also known as project name)."
        }
      },
      "type": "object",
      "required": [
        "name",
        "routingProject"
      ]
    },
    "pulumiservice:index:PolicyGroupTagCondition": {
      "properties": {
        "key": {
          "type": "string",
          "description": "The tag key."
        },
        "operator": {
          "$ref": "#/types/pulumiservice:index:PolicyGroupTagOperator",
          "description": "How the tag is compared. Defaults to `equals`."
        },
        "value": {
          "type": "string",
          "description": "The tag value. Required with `equals` and `notEquals`, and not allowed with `exists` and `notExists`."
        }
      },
      "type": "object",
      "required": [
        "key"
      ]
    },
    "pulumiservice:index:PolicyGroupTagOperator": {
      "type": "string",
      "enum": [
        {
          "name": "Equals",
          "description": "The tag is set to `value`.",
          "value": "equals"
        },
        {
          "name": "NotEquals",
          "description": "The tag isn't set to `value`. Also matches entities that don't have the tag.",
          "value": "notEquals"
        },
        {
          "name": "Exists",
          "description": "The entity has the tag, with any value.",
          "value": "exists"
        },
        {
          "name": "NotExists",
          "description": "The entity doesn't have the tag.",
          "value": "notExists"
        }
      ]
    },
    "pulumiservice:index:PolicyPackComplianceFrameworkInput": {
      "properties": {
        "name": {
          "type": "string",
          "description": "Compliance framework name (e.g. \"PCI-DSS\", \"SOC2\")."
        },
        "reference": {
          "type": "string",
          "description": "Reference to the framework (e.g. a control ID)."
        },
        "specification": {
          "type": "string",
          "description": "Free-form specification text."
        },
        "version": {
          "type": "string",
          "description": "Compliance framework version."
        }
      },
      "type": "object",
      "required": [
        "name"
      ]
    },
    "pulumiservice:index:PolicyPackPolicyInput": {
      "properties": {
        "configSchema": {
          "type": "object",
          "additionalProperties": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "JSON Schema (properties/required/type) for the policy's runtime config. Values are supplied per-policy via the PolicyGroup's policyPacks[].config map."
        },
        "description": {
          "type": "string"
        },
        "displayName": {
          "type": "string"
        },
        "enforcementLevel": {
          "type": "string",
          "description": "One of: advisory, mandatory, remediate, disabled."
        },
        "framework": {
          "$ref": "#/types/pulumiservice:index:PolicyPackComplianceFrameworkInput",
          "description": "Compliance framework this policy belongs to."
        },
        "message": {
          "type": "string"
        },
        "name": {
          "type": "string",
          "description": "Unique policy name within the pack."
        },
        "remediationSteps": {
          "type": "string",
          "description": "Description of steps to remediate a violation."
        },
        "severity": {
          "type": "string",
          "description": "Severity level: low, medium, high, or critical."
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Tags associated with the policy."
        },
        "url": {
          "type": "string",
          "description": "URL with more information about the policy."
        }
      },
      "type": "object",
      "required": [
        "name"
      ]
    },
    "pulumiservice:index:PolicyPackSummary": {
      "description": "Summary metadata for a policy pack available to an organization, including its Pulumi Registry provenance.",
      "properties": {
        "displayName": {
          "type": "string",
          "description": "The display name of the policy pack."
        },
        "name": {
          "type": "string",
          "description": "The name of the policy pack."
        },
        "publisher": {
          "type": "string",
          "description": "The organization or user that published the policy pack. `pulumi` for Pulumi-published packs, otherwise the publishing organization's name. Omitted when the provider could not determine registry metadata for this pack."
        },
        "source": {
          "type": "string",
          "description": "Where the policy pack is hosted in the Pulumi Registry: `pulumi` for packs published by Pulumi (for example `cis-aws`), `private` for packs published by an organization. Omitted when the provider could not determine registry metadata for this pack."
        },
        "versionTags": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "List of version tags for this policy pack."
        },
        "versions": {
          "type": "array",
          "items": {
            "type": "integer"
          },
          "description": "List of version numbers for this policy pack."
        }
      },
      "type": "object",
      "required": [
        "name",
        "displayName",
        "versions",
        "versionTags"
      ]
    },
    "pulumiservice:index:PulumiOperation": {
      "type": "string",
      "enum": [
        {
          "name": "update",
          "description": "Analogous to `pulumi up` command.",
          "value": "update"
        },
        {
          "name": "preview",
          "description": "Analogous to `pulumi preview` command.",
          "value": "preview"
        },
        {
          "name": "refresh",
          "description": "Analogous to `pulumi refresh` command.",
          "value": "refresh"
        },
        {
          "name": "destroy",
          "description": "Analogous to `pulumi destroy` command.",
          "value": "destroy"
        }
      ]
    },
    "pulumiservice:index:RbacAccountScope": {
      "type": "string",
      "enum": [
        {
          "name": "InsightsAccountDelete",
          "description": "Delete Insights account",
          "value": "insights_account:delete"
        },
        {
          "name": "InsightsAccountRead",
          "description": "Read Insights account",
          "value": "insights_account:read"
        },
        {
          "name": "InsightsAccountScan",
          "description": "Scan Insights account",
          "value": "insights_account:scan"
        },
        {
          "name": "InsightsAccountUpdate",
          "description": "Update Insights account",
          "value": "insights_account:update"
        },
        {
          "name": "InsightsAccountAccessRead",
          "description": "Read Insights account access",
          "value": "insights_account_access:read"
        },
        {
          "name": "InsightsAccountAccessUpdate",
          "description": "Update Insights account access",
          "value": "insights_account_access:update"
        },
        {
          "name": "InsightsAccountScanCancel",
          "description": "Cancel Insights account scan",
          "value": "insights_account_scan:cancel"
        },
        {
          "name": "InsightsAccountScanPause",
          "description": "Pause Insights account scan",
          "value": "insights_account_scan:pause"
        },
        {
          "name": "InsightsAccountScanRead",
          "description": "Read Insights account scan",
          "value": "insights_account_scan:read"
        },
        {
          "name": "InsightsAccountScanResume",
          "description": "Resume Insights account scan",
          "value": "insights_account_scan:resume"
        },
        {
          "name": "InsightsAccountScanUpdate",
          "description": "Update Insights account scan",
          "value": "insights_account_scan:update"
        }
      ]
    },
    "pulumiservice:index:RbacEnvironmentScope": {
      "type": "string",
      "enum": [
        {
          "name": "ChangeGateCreate",
          "description": "Create approval rules",
          "value": "change_gate:create"
        },
        {
          "name": "ChangeGateDelete",
          "description": "Delete approval rules",
          "value": "change_gate:delete"
        },
        {
          "name": "ChangeGateUpdate",
          "description": "Update approval rules",
          "value": "change_gate:update"
        },
        {
          "name": "EnvironmentClone",
          "description": "Clone environment",
          "value": "environment:clone"
        },
        {
          "name": "EnvironmentDelete",
          "description": "Delete environment",
          "value": "environment:delete"
        },
        {
          "name": "EnvironmentOpen",
          "description": "Open and decrypt environment",
          "value": "environment:open"
        },
        {
          "name": "EnvironmentRead",
          "description": "Read environment",
          "value": "environment:read"
        },
        {
          "name": "EnvironmentRotate",
          "description": "Rotates secrets in an environment",
          "value": "environment:rotate"
        },
        {
          "name": "EnvironmentRotateHistory",
          "description": "List secret rotation history of an environment",
          "value": "environment:rotate_history"
        },
        {
          "name": "EnvironmentWrite",
          "description": "Write environment",
          "value": "environment:write"
        },
        {
          "name": "EnvironmentAccessRead",
          "description": "Read environment access",
          "value": "environment_access:read"
        },
        {
          "name": "EnvironmentAccessUpdate",
          "description": "Update environment access",
          "value": "environment_access:update"
        },
        {
          "name": "EnvironmentScheduleCreate",
          "description": "Creates a new environment schedule",
          "value": "environment_schedule:create"
        },
        {
          "name": "EnvironmentScheduleDelete",
          "description": "Deletes an environment schedule",
          "value": "environment_schedule:delete"
        },
        {
          "name": "EnvironmentSchedulePause",
          "description": "Pauses an environment schedule",
          "value": "environment_schedule:pause"
        },
        {
          "name": "EnvironmentScheduleRead",
          "description": "Reads an environment schedule",
          "value": "environment_schedule:read"
        },
        {
          "name": "EnvironmentScheduleResume",
          "description": "Resumes an environment schedule",
          "value": "environment_schedule:resume"
        },
        {
          "name": "EnvironmentScheduleUpdate",
          "description": "Updates an environment schedule",
          "value": "environment_schedule:update"
        },
        {
          "name": "EnvironmentSettingsRead",
          "description": "Read environment settings",
          "value": "environment_settings:read"
        },
        {
          "name": "EnvironmentSettingsUpdate",
          "description": "Update environment settings",
          "value": "environment_settings:update"
        },
        {
          "name": "EnvironmentTagCreate",
          "description": "Adds a new tag to an environment",
          "value": "environment_tag:create"
        },
        {
          "name": "EnvironmentTagDelete",
          "description": "Removes a tag from an environment",
          "value": "environment_tag:delete"
        },
        {
          "name": "EnvironmentTagRead",
          "description": "Reads the value of an environments tag",
          "value": "environment_tag:read"
        },
        {
          "name": "EnvironmentTagUpdate",
          "description": "Modifies the value of an environments tag",
          "value": "environment_tag:update"
        },
        {
          "name": "EnvironmentVersionCreate",
          "description": "Creates a new version tag",
          "value": "environment_version:create"
        },
        {
          "name": "EnvironmentVersionDelete",
          "description": "Deletes a version tag",
          "value": "environment_version:delete"
        },
        {
          "name": "EnvironmentVersionOpen",
          "description": "Open and decrypt a version tag",
          "value": "environment_version:open"
        },
        {
          "name": "EnvironmentVersionRead",
          "description": "Reads a version tag",
          "value": "environment_version:read"
        },
        {
          "name": "EnvironmentVersionRetract",
          "description": "Retracts a specific version of the given environment",
          "value": "environment_version:retract"
        },
        {
          "name": "EnvironmentVersionUpdate",
          "description": "Updates a version tag",
          "value": "environment_version:update"
        },
        {
          "name": "EnvironmentWebhookCreate",
          "description": "Create environment webhook",
          "value": "environment_webhook:create"
        },
        {
          "name": "EnvironmentWebhookDelete",
          "description": "Delete environment webhook",
          "value": "environment_webhook:delete"
        },
        {
          "name": "EnvironmentWebhookRead",
          "description": "Read environment webhook",
          "value": "environment_webhook:read"
        },
        {
          "name": "EnvironmentWebhookUpdate",
          "description": "Update environment webhook",
          "value": "environment_webhook:update"
        }
      ]
    },
    "pulumiservice:index:RbacOrganizationScope": {
      "type": "string",
      "enum": [
        {
          "name": "AgentAutomationsCreate",
          "description": "Create org-owned Neo automations",
          "value": "agent_automations:create"
        },
        {
          "name": "AgentAutomationsDelete",
          "description": "Delete org-owned Neo automations",
          "value": "agent_automations:delete"
        },
        {
          "name": "AgentAutomationsRead",
          "description": "Read org-owned Neo automations",
          "value": "agent_automations:read"
        },
        {
          "name": "AgentAutomationsUpdate",
          "description": "Update org-owned Neo automations",
          "value": "agent_automations:update"
        },
        {
          "name": "AgentDefinitionsCreate",
          "description": "Create Custom Agents",
          "value": "agent_definitions:create"
        },
        {
          "name": "AgentDefinitionsDelete",
          "description": "Delete Custom Agents",
          "value": "agent_definitions:delete"
        },
        {
          "name": "AgentDefinitionsUpdate",
          "description": "Update Custom Agents",
          "value": "agent_definitions:update"
        },
        {
          "name": "AgentPoolCreate",
          "description": "Create agent pool",
          "value": "agent_pool:create"
        },
        {
          "name": "AgentPoolDelete",
          "description": "Delete agent pool",
          "value": "agent_pool:delete"
        },
        {
          "name": "AgentPoolRead",
          "description": "Read agent pool",
          "value": "agent_pool:read"
        },
        {
          "name": "AgentPoolUpdate",
          "description": "Update agent pool",
          "value": "agent_pool:update"
        },
        {
          "name": "AgentTaskCreate",
          "description": "Create Neo tasks",
          "value": "agent_task:create"
        },
        {
          "name": "AuditLogsExport",
          "description": "Export audit logs",
          "value": "audit_logs:export"
        },
        {
          "name": "AuditLogsRead",
          "description": "Read audit logs",
          "value": "audit_logs:read"
        },
        {
          "name": "AuthPoliciesRead",
          "description": "Read authentication policies",
          "value": "auth_policies:read"
        },
        {
          "name": "AuthPoliciesUpdate",
          "description": "Update authentication policies",
          "value": "auth_policies:update"
        },
        {
          "name": "ChangeGateCreate",
          "description": "Create approval rules",
          "value": "change_gate:create"
        },
        {
          "name": "ChangeGateDelete",
          "description": "Delete approval rules",
          "value": "change_gate:delete"
        },
        {
          "name": "ChangeGateUpdate",
          "description": "Update approval rules",
          "value": "change_gate:update"
        },
        {
          "name": "DeploymentsPause",
          "description": "Pause deployments",
          "value": "deployments:pause"
        },
        {
          "name": "DeploymentsRead",
          "description": "Read deployments",
          "value": "deployments:read"
        },
        {
          "name": "DeploymentsReadUsage",
          "description": "Read deployment usage",
          "value": "deployments:read_usage"
        },
        {
          "name": "DeploymentsResume",
          "description": "Resume deployments",
          "value": "deployments:resume"
        },
        {
          "name": "EnvironmentCreate",
          "description": "Create environment",
          "value": "environment:create"
        },
        {
          "name": "EnvironmentListDeleted",
          "description": "List deleted environments",
          "value": "environment:list_deleted"
        },
        {
          "name": "EnvironmentRestoreDeleted",
          "description": "Restore deleted environment",
          "value": "environment:restore_deleted"
        },
        {
          "name": "EnvironmentTagsList",
          "description": "List the tags across all environments",
          "value": "environment_tags:list"
        },
        {
          "name": "GithubTeamCreate",
          "description": "Create GitHub team",
          "value": "github_team:create"
        },
        {
          "name": "InsightsAccountCreate",
          "description": "Create Insights account",
          "value": "insights_account:create"
        },
        {
          "name": "IntegrationsRead",
          "description": "Read integrations",
          "value": "integrations:read"
        },
        {
          "name": "IntegrationsUpdate",
          "description": "Update integrations",
          "value": "integrations:update"
        },
        {
          "name": "InvitesCreate",
          "description": "Create invites",
          "value": "invites:create"
        },
        {
          "name": "InvitesRead",
          "description": "Read invites",
          "value": "invites:read"
        },
        {
          "name": "OidcIssuersCreate",
          "description": "Create OIDC issuer",
          "value": "oidc_issuers:create"
        },
        {
          "name": "OidcIssuersDelete",
          "description": "Delete OIDC issuer",
          "value": "oidc_issuers:delete"
        },
        {
          "name": "OidcIssuersRead",
          "description": "Read OIDC issuers",
          "value": "oidc_issuers:read"
        },
        {
          "name": "OidcIssuersRegenerateThumbprints",
          "description": "Regenerate OIDC issuer thumbprints",
          "value": "oidc_issuers:regenerate_thumbprints"
        },
        {
          "name": "OidcIssuersUpdate",
          "description": "Update OIDC issuers",
          "value": "oidc_issuers:update"
        },
        {
          "name": "OrgIntegrationsRead",
          "description": "Read organization integrations",
          "value": "org_integrations:read"
        },
        {
          "name": "OrgIntegrationsUpdate",
          "description": "Update organization integrations",
          "value": "org_integrations:update"
        },
        {
          "name": "OrgMemberAdd",
          "description": "Add organization member",
          "value": "org_member:add"
        },
        {
          "name": "OrgMemberDelete",
          "description": "Delete organization member",
          "value": "org_member:delete"
        },
        {
          "name": "OrgMemberRead",
          "description": "Read organization member",
          "value": "org_member:read"
        },
        {
          "name": "OrgMemberSetAdmin",
          "description": "Set organization member admin",
          "value": "org_member:set_admin"
        },
        {
          "name": "OrgMemberUpdate",
          "description": "Update organization member",
          "value": "org_member:update"
        },
        {
          "name": "OrgMemberAccessRead",
          "description": "Read organization member access",
          "value": "org_member_access:read"
        },
        {
          "name": "OrgRequestsRead",
          "description": "Read organization requests",
          "value": "org_requests:read"
        },
        {
          "name": "OrgRequestsUpdate",
          "description": "Update organization requests",
          "value": "org_requests:update"
        },
        {
          "name": "OrgTokenCreate",
          "description": "Create organization access token",
          "value": "org_token:create"
        },
        {
          "name": "OrgTokenDelete",
          "description": "Delete organization access token",
          "value": "org_token:delete"
        },
        {
          "name": "OrgTokenRead",
          "description": "Read organization access token",
          "value": "org_token:read"
        },
        {
          "name": "OrganizationBilling",
          "description": "Manage organization billing",
          "value": "organization:billing"
        },
        {
          "name": "OrganizationChangeBackend",
          "description": "Change organization backend",
          "value": "organization:change_backend"
        },
        {
          "name": "OrganizationDelete",
          "description": "Delete organization",
          "value": "organization:delete"
        },
        {
          "name": "OrganizationReadUsage",
          "description": "Read organization usage",
          "value": "organization:read_usage"
        },
        {
          "name": "OrganizationRename",
          "description": "Rename organization",
          "value": "organization:rename"
        },
        {
          "name": "OrganizationTransferStacks",
          "description": "Transfer organization stacks",
          "value": "organization:transfer_stacks"
        },
        {
          "name": "OrganizationUpdate",
          "description": "Update organization",
          "value": "organization:update"
        },
        {
          "name": "OrganizationWebhookCreate",
          "description": "Create organization webhook",
          "value": "organization_webhook:create"
        },
        {
          "name": "OrganizationWebhookDelete",
          "description": "Delete organization webhook",
          "value": "organization_webhook:delete"
        },
        {
          "name": "OrganizationWebhookRead",
          "description": "Read organization webhook",
          "value": "organization_webhook:read"
        },
        {
          "name": "OrganizationWebhookUpdate",
          "description": "Update organization webhook",
          "value": "organization_webhook:update"
        },
        {
          "name": "PolicyGroupsCreate",
          "description": "Create Insights policy groups",
          "value": "policy_groups:create"
        },
        {
          "name": "PolicyGroupsDelete",
          "description": "Delete Insights policy groups",
          "value": "policy_groups:delete"
        },
        {
          "name": "PolicyGroupsRead",
          "description": "Read Insights policy groups",
          "value": "policy_groups:read"
        },
        {
          "name": "PolicyGroupsUpdate",
          "description": "Update Insights policy groups",
          "value": "policy_groups:update"
        },
        {
          "name": "PolicyPackCreate",
          "description": "Create Insights policy pack",
          "value": "policy_pack:create"
        },
        {
          "name": "PolicyPackDelete",
          "description": "Delete Insights policy pack",
          "value": "policy_pack:delete"
        },
        {
          "name": "PolicyPackRead",
          "description": "Read Insights policy pack",
          "value": "policy_pack:read"
        },
        {
          "name": "PolicyPackUpdate",
          "description": "Update Insights policy pack",
          "value": "policy_pack:update"
        },
        {
          "name": "PolicyResultsRead",
          "description": "Read Insights policy results",
          "value": "policy_results:read"
        },
        {
          "name": "PolicyResultsUpdate",
          "description": "Update Insights policy results",
          "value": "policy_results:update"
        },
        {
          "name": "ProjectDecrypt",
          "description": "Decrypt project",
          "value": "project:decrypt"
        },
        {
          "name": "ProjectEncrypt",
          "description": "Encrypt project",
          "value": "project:encrypt"
        },
        {
          "name": "ResourcesDashboard",
          "description": "View resources dashboard",
          "value": "resources:dashboard"
        },
        {
          "name": "ResourcesIndex",
          "description": "Index resources",
          "value": "resources:index"
        },
        {
          "name": "ResourcesSearch",
          "description": "Search resources",
          "value": "resources:search"
        },
        {
          "name": "RoleCreate",
          "description": "Create role",
          "value": "role:create"
        },
        {
          "name": "RoleDelete",
          "description": "Delete role",
          "value": "role:delete"
        },
        {
          "name": "RoleRead",
          "description": "Read role",
          "value": "role:read"
        },
        {
          "name": "RoleUpdate",
          "description": "Update role",
          "value": "role:update"
        },
        {
          "name": "SamlRead",
          "description": "Read SAML",
          "value": "saml:read"
        },
        {
          "name": "SamlUpdate",
          "description": "Update SAML",
          "value": "saml:update"
        },
        {
          "name": "ScimDelete",
          "description": "Delete SCIM",
          "value": "scim:delete"
        },
        {
          "name": "ScimRead",
          "description": "Read SCIM",
          "value": "scim:read"
        },
        {
          "name": "ScimUpdate",
          "description": "Update SCIM",
          "value": "scim:update"
        },
        {
          "name": "StackCreate",
          "description": "Create stack",
          "value": "stack:create"
        },
        {
          "name": "StackListDeleted",
          "description": "List deleted stacks",
          "value": "stack:list_deleted"
        },
        {
          "name": "StackRestoreDeleted",
          "description": "Restore deleted stack",
          "value": "stack:restore_deleted"
        },
        {
          "name": "TagsRead",
          "description": "Read project tags",
          "value": "tags:read"
        },
        {
          "name": "TeamCreate",
          "description": "Create team",
          "value": "team:create"
        },
        {
          "name": "TeamCreateToken",
          "description": "Create team access token",
          "value": "team:create_token"
        },
        {
          "name": "TeamDelete",
          "description": "Delete team",
          "value": "team:delete"
        },
        {
          "name": "TeamDeleteToken",
          "description": "Delete team access token",
          "value": "team:delete_token"
        },
        {
          "name": "TeamList",
          "description": "List teams",
          "value": "team:list"
        },
        {
          "name": "TeamListTokens",
          "description": "List team access tokens",
          "value": "team:list_tokens"
        },
        {
          "name": "TeamRead",
          "description": "Read team",
          "value": "team:read"
        },
        {
          "name": "TeamUpdate",
          "description": "Update team",
          "value": "team:update"
        },
        {
          "name": "TemplatesRead",
          "description": "Read templates",
          "value": "templates:read"
        },
        {
          "name": "TemplatesSourceCreate",
          "description": "Create template sources",
          "value": "templates_source:create"
        },
        {
          "name": "TemplatesSourceDelete",
          "description": "Delete template sources",
          "value": "templates_source:delete"
        },
        {
          "name": "TemplatesSourceRead",
          "description": "Read template sources",
          "value": "templates_source:read"
        },
        {
          "name": "TemplatesSourceUpdate",
          "description": "Update template sources",
          "value": "templates_source:update"
        }
      ]
    },
    "pulumiservice:index:RbacPermission": {
      "type": "string",
      "enum": [
        {
          "name": "Read",
          "description": "Read permission.",
          "value": "environment:read"
        },
        {
          "name": "ReadDecrypt",
          "description": "Read and decrypt permission.",
          "value": "environment:read_decrypt"
        },
        {
          "name": "Open",
          "description": "Open permission.",
          "value": "environment:open"
        },
        {
          "name": "Write",
          "description": "Write permission.",
          "value": "environment:write"
        },
        {
          "name": "Delete",
          "description": "Delete permission.",
          "value": "environment:delete"
        },
        {
          "name": "Clone",
          "description": "Clone permission.",
          "value": "environment:clone"
        },
        {
          "name": "Rotate",
          "description": "Rotate permission.",
          "value": "environment:rotate"
        }
      ]
    },
    "pulumiservice:index:RbacStackScope": {
      "type": "string",
      "enum": [
        {
          "name": "StackCancelUpdate",
          "description": "Cancel stack update",
          "value": "stack:cancel_update"
        },
        {
          "name": "StackCreate",
          "description": "Create stack",
          "value": "stack:create"
        },
        {
          "name": "StackDecrypt",
          "description": "Decrypt stack",
          "value": "stack:decrypt"
        },
        {
          "name": "StackDelete",
          "description": "Delete stack",
          "value": "stack:delete"
        },
        {
          "name": "StackEncrypt",
          "description": "Encrypt stack",
          "value": "stack:encrypt"
        },
        {
          "name": "StackExport",
          "description": "Export stack",
          "value": "stack:export"
        },
        {
          "name": "StackImport",
          "description": "Import stack",
          "value": "stack:import"
        },
        {
          "name": "StackRead",
          "description": "Read stack",
          "value": "stack:read"
        },
        {
          "name": "StackRename",
          "description": "Rename stack",
          "value": "stack:rename"
        },
        {
          "name": "StackTransfer",
          "description": "Transfer stack",
          "value": "stack:transfer"
        },
        {
          "name": "StackWrite",
          "description": "Write stack",
          "value": "stack:write"
        },
        {
          "name": "StackAccessRead",
          "description": "Read stack teams",
          "value": "stack_access:read"
        },
        {
          "name": "StackAccessUpdate",
          "description": "Update stack teams",
          "value": "stack_access:update"
        },
        {
          "name": "StackDeploymentCreate",
          "description": "Create deployment",
          "value": "stack_deployment:create"
        },
        {
          "name": "StackDeploymentRead",
          "description": "Read deployment",
          "value": "stack_deployment:read"
        },
        {
          "name": "StackDeploymentSettingsEncrypt",
          "description": "Encrypt deployment settings",
          "value": "stack_deployment_settings:encrypt"
        },
        {
          "name": "StackDeploymentSettingsRead",
          "description": "Read deployment settings",
          "value": "stack_deployment_settings:read"
        },
        {
          "name": "StackDeploymentSettingsWrite",
          "description": "Write deployment settings",
          "value": "stack_deployment_settings:write"
        },
        {
          "name": "StackScheduleCreate",
          "description": "Create stack schedule",
          "value": "stack_schedule:create"
        },
        {
          "name": "StackScheduleDelete",
          "description": "Delete stack schedule",
          "value": "stack_schedule:delete"
        },
        {
          "name": "StackSchedulePause",
          "description": "Pause stack schedule",
          "value": "stack_schedule:pause"
        },
        {
          "name": "StackScheduleRead",
          "description": "Read stack schedule",
          "value": "stack_schedule:read"
        },
        {
          "name": "StackScheduleResume",
          "description": "Resume stack schedule",
          "value": "stack_schedule:resume"
        },
        {
          "name": "StackScheduleUpdate",
          "description": "Update stack schedule",
          "value": "stack_schedule:update"
        },
        {
          "name": "StackTagsUpdate",
          "description": "Update stack tags",
          "value": "stack_tags:update"
        },
        {
          "name": "StackWebhookCreate",
          "description": "Create stack webhook",
          "value": "stack_webhook:create"
        },
        {
          "name": "StackWebhookDelete",
          "description": "Delete stack webhook",
          "value": "stack_webhook:delete"
        },
        {
          "name": "StackWebhookRead",
          "description": "Read stack webhook",
          "value": "stack_webhook:read"
        },
        {
          "name": "StackWebhookUpdate",
          "description": "Update stack webhook",
          "value": "stack_webhook:update"
        }
      ]
    },
    "pulumiservice:index:RoleAccountRule": {
      "properties": {
        "all": {
          "type": "boolean",
          "description": "Apply to every entity of this type in the organization. Exactly one of `all`, `id`, or `tags` must be set."
        },
        "id": {
          "type": "string",
          "description": "Apply to a single entity: a stack's `stackId` (from `getStack`), an environment's `environmentId`, or a cloud account's `insightsAccountId`."
        },
        "scopes": {
          "type": "array",
          "items": {
            "$ref": "#/types/pulumiservice:index:RbacAccountScope"
          },
          "description": "Cloud account scopes to grant on the selected accounts."
        },
        "tags": {
          "type": "array",
          "items": {
            "$ref": "#/types/pulumiservice:index:TagCondition"
          },
          "description": "Apply to entities whose tags match every condition."
        }
      },
      "type": "object"
    },
    "pulumiservice:index:RoleEnvironmentRule": {
      "properties": {
        "all": {
          "type": "boolean",
          "description": "Apply to every entity of this type in the organization. Exactly one of `all`, `id`, or `tags` must be set."
        },
        "id": {
          "type": "string",
          "description": "Apply to a single entity: a stack's `stackId` (from `getStack`), an environment's `environmentId`, or a cloud account's `insightsAccountId`."
        },
        "scopes": {
          "type": "array",
          "items": {
            "$ref": "#/types/pulumiservice:index:RbacEnvironmentScope"
          },
          "description": "Environment scopes to grant on the selected environments."
        },
        "tags": {
          "type": "array",
          "items": {
            "$ref": "#/types/pulumiservice:index:TagCondition"
          },
          "description": "Apply to entities whose tags match every condition."
        }
      },
      "type": "object"
    },
    "pulumiservice:index:RoleScopeInfo": {
      "properties": {
        "description": {
          "type": "string",
          "description": "Human-readable description of what the scope grants."
        },
        "groupName": {
          "type": "string",
          "description": "The scope group label as shown in the Pulumi Cloud console (e.g. `Stacks`)."
        },
        "name": {
          "type": "string",
          "description": "The scope name (e.g. `stack:read`)."
        },
        "resourceType": {
          "type": "string",
          "description": "The resource-type bucket the scope belongs to (e.g. `stack`, `team`)."
        }
      },
      "type": "object",
      "required": [
        "name",
        "description",
        "groupName",
        "resourceType"
      ]
    },
    "pulumiservice:index:RoleStackRule": {
      "properties": {
        "all": {
          "type": "boolean",
          "description": "Apply to every entity of this type in the organization. Exactly one of `all`, `id`, or `tags` must be set."
        },
        "id": {
          "type": "string",
          "description": "Apply to a single entity: a stack's `stackId` (from `getStack`), an environment's `environmentId`, or a cloud account's `insightsAccountId`."
        },
        "scopes": {
          "type": "array",
          "items": {
            "$ref": "#/types/pulumiservice:index:RbacStackScope"
          },
          "description": "Stack scopes to grant on the selected stacks."
        },
        "tags": {
          "type": "array",
          "items": {
            "$ref": "#/types/pulumiservice:index:TagCondition"
          },
          "description": "Apply to entities whose tags match every condition."
        }
      },
      "type": "object"
    },
    "pulumiservice:index:ScanSchedule": {
      "type": "string",
      "enum": [
        {
          "name": "none",
          "description": "Disable automated scanning.",
          "value": "none"
        },
        {
          "description": "Run automated scans every twelve hours.",
          "value": "12h"
        },
        {
          "name": "daily",
          "description": "Run automated scans once per day.",
          "value": "daily"
        }
      ]
    },
    "pulumiservice:index:TagCondition": {
      "properties": {
        "key": {
          "type": "string",
          "description": "The tag key."
        },
        "operator": {
          "$ref": "#/types/pulumiservice:index:TagOperator",
          "description": "How the tag is compared. Defaults to `equals`."
        },
        "value": {
          "type": "string",
          "description": "The tag value. Required with `equals` and `notEquals`, and not allowed with `exists` and `notExists`."
        }
      },
      "type": "object",
      "required": [
        "key"
      ]
    },
    "pulumiservice:index:TagOperator": {
      "type": "string",
      "enum": [
        {
          "name": "Equals",
          "description": "The tag is set to `value`.",
          "value": "equals"
        },
        {
          "name": "NotEquals",
          "description": "The tag isn't set to `value`. Also matches entities that don't have the tag.",
          "value": "notEquals"
        },
        {
          "name": "Exists",
          "description": "The entity has the tag, with any value.",
          "value": "exists"
        },
        {
          "name": "NotExists",
          "description": "The entity doesn't have the tag.",
          "value": "notExists"
        }
      ]
    },
    "pulumiservice:index:TargetActionType": {
      "type": "string",
      "enum": [
        {
          "name": "Update",
          "description": "Update action type for approval rules.",
          "value": "update"
        }
      ]
    },
    "pulumiservice:index:TeamStackPermissionScope": {
      "type": "integer",
      "enum": [
        {
          "name": "read",
          "description": "Grants read permissions to stack.",
          "value": 101
        },
        {
          "name": "edit",
          "description": "Grants edit permissions to stack.",
          "value": 102
        },
        {
          "name": "admin",
          "description": "Grants admin permissions to stack.",
          "value": 103
        }
      ]
    },
    "pulumiservice:index:TemplateSourceDestination": {
      "properties": {
        "url": {
          "type": "string",
          "description": "Destination URL that gets filled in on new project creation."
        }
      },
      "type": "object"
    },
    "pulumiservice:index:WebhookFilters": {
      "type": "string",
      "enum": [
        {
          "name": "StackCreated",
          "description": "Trigger a webhook when a stack is created. Only valid for org webhooks.",
          "value": "stack_created"
        },
        {
          "name": "StackDeleted",
          "description": "Trigger a webhook when a stack is deleted. Only valid for org webhooks.",
          "value": "stack_deleted"
        },
        {
          "name": "UpdateSucceeded",
          "description": "Trigger a webhook when a stack update succeeds.",
          "value": "update_succeeded"
        },
        {
          "name": "UpdateFailed",
          "description": "Trigger a webhook when a stack update fails.",
          "value": "update_failed"
        },
        {
          "name": "PreviewSucceeded",
          "description": "Trigger a webhook when a stack preview succeeds.",
          "value": "preview_succeeded"
        },
        {
          "name": "PreviewFailed",
          "description": "Trigger a webhook when a stack preview fails.",
          "value": "preview_failed"
        },
        {
          "name": "DestroySucceeded",
          "description": "Trigger a webhook when a stack destroy succeeds.",
          "value": "destroy_succeeded"
        },
        {
          "name": "DestroyFailed",
          "description": "Trigger a webhook when a stack destroy fails.",
          "value": "destroy_failed"
        },
        {
          "name": "RefreshSucceeded",
          "description": "Trigger a webhook when a stack refresh succeeds.",
          "value": "refresh_succeeded"
        },
        {
          "name": "RefreshFailed",
          "description": "Trigger a webhook when a stack refresh fails.",
          "value": "refresh_failed"
        },
        {
          "name": "DeploymentQueued",
          "description": "Trigger a webhook when a deployment is queued.",
          "value": "deployment_queued"
        },
        {
          "name": "DeploymentStarted",
          "description": "Trigger a webhook when a deployment starts running.",
          "value": "deployment_started"
        },
        {
          "name": "DeploymentSucceeded",
          "description": "Trigger a webhook when a deployment succeeds.",
          "value": "deployment_succeeded"
        },
        {
          "name": "DeploymentFailed",
          "description": "Trigger a webhook when a deployment fails.",
          "value": "deployment_failed"
        },
        {
          "name": "DriftDetected",
          "description": "Trigger a webhook when drift is detected.",
          "value": "drift_detected"
        },
        {
          "name": "DriftDetectionSucceeded",
          "description": "Trigger a webhook when a drift detection run succeeds, regardless of whether drift is detected.",
          "value": "drift_detection_succeeded"
        },
        {
          "name": "DriftDetectionFailed",
          "description": "Trigger a webhook when a drift detection run fails.",
          "value": "drift_detection_failed"
        },
        {
          "name": "DriftRemediationSucceeded",
          "description": "Trigger a webhook when a drift remediation run succeeds.",
          "value": "drift_remediation_succeeded"
        },
        {
          "name": "DriftRemediationFailed",
          "description": "Trigger a webhook when a drift remediation run fails.",
          "value": "drift_remediation_failed"
        },
        {
          "name": "EnvironmentCreated",
          "description": "Trigger a webhook when a new environment is created.",
          "value": "environment_created"
        },
        {
          "name": "EnvironmentDeleted",
          "description": "Trigger a webhook when an environment is deleted.",
          "value": "environment_deleted"
        },
        {
          "name": "EnvironmentRevisionCreated",
          "description": "Trigger a webhook when a new revision is created on an environment.",
          "value": "environment_revision_created"
        },
        {
          "name": "EnvironmentRevisionRetracted",
          "description": "Trigger a webhook when a revision is retracted on an environment.",
          "value": "environment_revision_retracted"
        },
        {
          "name": "EnvironmentRevisionTagCreated",
          "description": "Trigger a webhook when a revision tag is created on an environment.",
          "value": "environment_revision_tag_created"
        },
        {
          "name": "EnvironmentRevisionTagDeleted",
          "description": "Trigger a webhook when a revision tag is deleted on an environment.",
          "value": "environment_revision_tag_deleted"
        },
        {
          "name": "EnvironmentRevisionTagUpdated",
          "description": "Trigger a webhook when a revision tag is updated on an environment.",
          "value": "environment_revision_tag_updated"
        },
        {
          "name": "EnvironmentTagCreated",
          "description": "Trigger a webhook when an environment tag is created.",
          "value": "environment_tag_created"
        },
        {
          "name": "EnvironmentTagDeleted",
          "description": "Trigger a webhook when an environment tag is deleted.",
          "value": "environment_tag_deleted"
        },
        {
          "name": "EnvironmentTagUpdated",
          "description": "Trigger a webhook when an environment tag is updated.",
          "value": "environment_tag_updated"
        },
        {
          "name": "ImportedEnvironmentChanged",
          "description": "Trigger a webhook when an imported environment has changed.",
          "value": "imported_environment_changed"
        },
        {
          "name": "EnvironmentRotationSucceeded",
          "description": "Trigger a webhook when an environment rotation succeeds.",
          "value": "environment_rotation_succeeded"
        },
        {
          "name": "EnvironmentRotationFailed",
          "description": "Trigger a webhook when an environment rotation fails.",
          "value": "environment_rotation_failed"
        }
      ]
    },
    "pulumiservice:index:WebhookFormat": {
      "type": "string",
      "enum": [
        {
          "description": "The default webhook format.",
          "value": "raw"
        },
        {
          "description": "Messages formatted for consumption by Slack incoming webhooks.",
          "value": "slack"
        },
        {
          "name": "PulumiDeployments",
          "description": "Initiate deployments on a stack from a Pulumi Cloud webhook.",
          "value": "pulumi_deployments"
        },
        {
          "name": "MicrosoftTeams",
          "description": "Messages formatted for consumption by Microsoft Teams incoming webhooks.",
          "value": "ms_teams"
        }
      ]
    },
    "pulumiservice:index:WebhookGroup": {
      "type": "string",
      "enum": [
        {
          "name": "Stacks",
          "description": "A group of webhooks containing all stack events.",
          "value": "stacks"
        },
        {
          "name": "Deployments",
          "description": "A group of webhooks containing all deployment events.",
          "value": "deployments"
        },
        {
          "name": "Environments",
          "description": "A group of webhooks containing all environment events.",
          "value": "environments"
        }
      ]
    }
  },
  "provider": {
    "properties": {
      "accessToken": {
        "type": "string",
        "description": "Access token to authenticate with Pulumi Cloud. Optional: if unset, the provider uses the `PULUMI_ACCESS_TOKEN` environment variable, then the access token of the account you're logged in to with `pulumi login`.",
        "secret": true
      },
      "apiUrl": {
        "type": "string",
        "description": "Optional override of Pulumi Cloud API endpoint.",
        "default": "https://api.pulumi.com",
        "defaultInfo": {
          "environment": [
            "PULUMI_BACKEND_URL",
            "PULUMI_API"
          ]
        }
      }
    },
    "required": [
      "apiUrl"
    ],
    "inputProperties": {
      "accessToken": {
        "type": "string",
        "description": "Access token to authenticate with Pulumi Cloud. Optional: if unset, the provider uses the `PULUMI_ACCESS_TOKEN` environment variable, then the access token of the account you're logged in to with `pulumi login`.",
        "secret": true
      },
      "apiUrl": {
        "type": "string",
        "description": "Optional override of Pulumi Cloud API endpoint.",
        "default": "https://api.pulumi.com",
        "defaultInfo": {
          "environment": [
            "PULUMI_BACKEND_URL",
            "PULUMI_API"
          ]
        }
      }
    }
  },
  "resources": {
    "pulumiservice:api/agents:Definition": {
      "description": "Creates a Custom Agent definition for the organization from the supplied configuration (name, optional RBAC role, integrations, and instructions). Requires agent_definitions:create, granted to organization admins by default. Returns the created definition including its generated id. Returns 404 if a supplied role does not exist in the organization.",
      "properties": {
        "approvalMode": {
          "type": "string",
          "description": "The approval posture the agent's runs inherit. When omitted, runs are auto-approved, matching scheduled automations."
        },
        "avatar": {
          "type": "string",
          "description": "A presentation token the console maps to an icon. Not an uploaded asset."
        },
        "customInstructions": {
          "type": "string",
          "description": "Instructions that shape how the agent behaves in the team's environment."
        },
        "definitionID": {
          "type": "string",
          "description": "The unique identifier of the agent definition."
        },
        "displayName": {
          "type": "string",
          "description": "The human-readable label shown wherever the agent is displayed. Falls back to the name when the agent has none."
        },
        "enabledIntegrations": {
          "type": "array",
          "items": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "The integrations enabled for the agent's tasks, by id. Omitted or null inherits all organization integrations; an empty list enables none."
        },
        "name": {
          "type": "string",
          "description": "The agent's name: lower-case letters, digits and hyphens, unique within the organization. This is the stable handle a person writes down -- in an automation, in a CLI invocation -- and it may be changed, because everything that references an agent internally references it by id."
        },
        "pausedAt": {
          "type": "string",
          "description": "When the agent was paused, or null if it is not paused. A paused agent starts no new runs from any source -- console, schedule, or trigger -- until it is resumed; runs already in flight continue."
        },
        "pausedBy": {
          "type": "string",
          "description": "Who paused the agent, by user id. Null when the agent is not paused. Recorded by the server from the caller rather than supplied by the client."
        },
        "pausedReason": {
          "type": "string",
          "description": "Why the agent was paused. Null when it is not paused, or when no reason was given."
        },
        "permissionMode": {
          "type": "string",
          "description": "Deprecated. Custom Agent authority is controlled by roleId."
        },
        "purpose": {
          "type": "string",
          "description": "A one-line description of what this agent is for, shown under its name in the roster."
        },
        "roleId": {
          "type": "string",
          "description": "The RBAC role id the agent's tasks assume, identified by role id. Null means no assumed role: tasks run with the invoking user's own permissions."
        },
        "taskCounts": {
          "$ref": "pulumi.json#/Any",
          "description": "Run counts for this agent, shown on its roster card."
        }
      },
      "type": "object",
      "required": [
        "definitionID",
        "displayName",
        "name"
      ],
      "inputProperties": {
        "approvalMode": {
          "type": "string",
          "description": "The approval posture the agent's runs inherit. When omitted, runs are auto-approved, matching scheduled automations. 'manual' makes the agent propose rather than act, and applies to every run of the agent, including scheduled and triggered ones -- such a run stops and waits for a person even though nothing yet notifies them it is waiting, so choose it deliberately for an unattended agent."
        },
        "avatar": {
          "type": "string",
          "description": "A presentation token the console maps to an icon. Not an uploaded asset."
        },
        "customInstructions": {
          "type": "string",
          "description": "Instructions that shape how the agent behaves in the team's environment."
        },
        "definitionID": {
          "type": "string",
          "description": "The agent definition identifier",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "displayName": {
          "type": "string",
          "description": "The human-readable label shown wherever the agent is displayed. Required unless name is supplied, in which case the name is used as the label too."
        },
        "enabledIntegrations": {
          "type": "array",
          "items": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "The integrations to enable for the agent's tasks, by id. Omitted or null inherits all organization integrations; an empty list enables none."
        },
        "name": {
          "type": "string",
          "description": "The agent's name: lower-case letters, digits and hyphens, at most 64 characters, unique within the organization. Optional -- when omitted it is derived from displayName, so a form that asks for one name still works. A name already taken by another agent is rejected with a 409 rather than silently suffixed. Supplying a different name on an update renames the agent, which is safe because every internal reference is by id."
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "permissionMode": {
          "type": "string",
          "description": "Deprecated. Custom Agent authority is controlled by roleId and this field is ignored."
        },
        "purpose": {
          "type": "string",
          "description": "A one-line description of what this agent is for, shown under its name in the roster."
        },
        "roleId": {
          "type": "string",
          "description": "The RBAC role id the agent's tasks assume. With Agents-as-Team-Members enabled, creation with omitted/null or empty uses the feature's read-only default; on update, omitted/null preserves the existing role and empty selects that default. A role that does not exist in the organization is rejected with a 404."
        }
      },
      "requiredInputs": [
        "orgName"
      ]
    },
    "pulumiservice:api/agents:Pool": {
      "description": "Creates a new agent pool for an organization. Agent pools enable self-hosted deployment agents, allowing organizations to run Pulumi Deployments on their own infrastructure rather than Pulumi-managed infrastructure. This is useful for accessing private networks, meeting compliance requirements, or using custom execution environments. The response includes an access token (agent pool secret) that self-hosted agents use to authenticate when polling for deployment work. This token is only returned once at creation time and cannot be retrieved later.",
      "properties": {
        "agents": {
          "type": "array",
          "items": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "The agents"
        },
        "created": {
          "type": "integer",
          "description": "The creation timestamp"
        },
        "description": {
          "type": "string",
          "description": "The description"
        },
        "name": {
          "type": "string",
          "description": "The name"
        },
        "poolId": {
          "type": "string",
          "description": "The unique identifier"
        },
        "tokenValue": {
          "type": "string",
          "description": "The token value",
          "secret": true
        }
      },
      "type": "object",
      "required": [
        "agents",
        "created",
        "description",
        "name",
        "poolId"
      ],
      "inputProperties": {
        "description": {
          "type": "string",
          "description": "The description"
        },
        "name": {
          "type": "string",
          "description": "The name"
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "poolId": {
          "type": "string",
          "description": "The agent pool identifier",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        }
      },
      "requiredInputs": [
        "description",
        "name",
        "orgName"
      ]
    },
    "pulumiservice:api/agents:Task": {
      "description": "Creates a new agent task for the specified organization. The request must include a prompt (the user event message) that initiates the task. The message is a user message, so its discriminator field must be set to \"type\": \"user_message\". Set the 'permissionMode' field in the request body to restrict the agent to read-only operations. Returns the created task details including task ID, name, status, and timestamp.",
      "properties": {
        "agentDefinitionId": {
          "type": "string",
          "description": "The Custom Agent definition this task was run as, if any. Null for tasks run by a user directly rather than as a saved agent."
        },
        "approvalMode": {
          "type": "string",
          "description": "Approval mode for this task. Valid values: 'manual', 'auto', 'balanced'."
        },
        "asyncTriggerType": {
          "type": "string",
          "description": "The async trigger source for this task. Null for sync tasks."
        },
        "contextCompactionThresholdPercent": {
          "type": "integer",
          "description": "Percentage of the context window (1-100) at which the agent triggers conversation compaction. Populated alongside contextWindowTokens when token usage data is available; omitted otherwise."
        },
        "contextUsedTokens": {
          "type": "integer",
          "description": "Total input tokens consumed across all model invocations for this task. Approximate context window usage."
        },
        "contextWindowTokens": {
          "type": "integer",
          "description": "Maximum context window size in tokens for the primary model used by this task."
        },
        "createdAt": {
          "type": "string",
          "description": "When the task was created, in ISO 8601 format."
        },
        "createdBy": {
          "$ref": "pulumi.json#/Any",
          "description": "Information about the user who created this task."
        },
        "entities": {
          "type": "array",
          "items": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "Pulumi entities (stacks, projects, etc.) that provide context for the agent."
        },
        "isShared": {
          "type": "boolean",
          "description": "Whether this task is shared with other org members."
        },
        "lastHeartbeat": {
          "type": "string",
          "description": "When the task runtime last reported a heartbeat. Null if the runtime has never checked in."
        },
        "name": {
          "type": "string",
          "description": "Display name for the task, typically auto-generated from the initial user message."
        },
        "pendingInputCount": {
          "type": "integer",
          "description": "The number of pending inputs waiting behind this task. Present for tasks that can receive asynchronous inputs."
        },
        "permissionMode": {
          "type": "string",
          "description": "The permission scope for the task."
        },
        "planMode": {
          "type": "boolean",
          "description": "Whether the task is in plan mode. Set based on the first user message."
        },
        "role": {
          "type": "string",
          "description": "The id of the RBAC role this task assumes. Null when the task runs with the creating user's own permissions (no assumed role)."
        },
        "roleName": {
          "type": "string",
          "description": "The display name of the RBAC role this task assumes. Null when the task has no assumed role or the role no longer exists."
        },
        "runtimePhase": {
          "type": "string",
          "description": "The current runtime phase for this task. Null until the runtime checks in."
        },
        "sharedAt": {
          "type": "string",
          "description": "When the task was first shared. Null if never shared."
        },
        "source": {
          "type": "string",
          "description": "The origin that triggered this task. Valid values: 'console', 'cli', 'slack', 'schedule', 'api', 'github', 'code-review'."
        },
        "sourceAutomationID": {
          "type": "string",
          "description": "The automation that spawned this task, if the task was created by an automation run."
        },
        "status": {
          "type": "string",
          "description": "Current execution status of the task."
        },
        "taskType": {
          "type": "string",
          "description": "Whether the task was started synchronously by a user or asynchronously by background automation."
        },
        "tokensUsed": {
          "type": "integer",
          "description": "Total Neo tokens consumed across all model invocations for this task. Neo tokens are the priced unit used for billing — distinct from the raw model input tokens surfaced in contextUsedTokens / contextWindowTokens."
        },
        "toolExecutionMode": {
          "type": "string",
          "description": "Where tools are executed for this task. Valid values: 'cloud', 'cli'."
        },
        "vcsProvider": {
          "type": "string",
          "description": "The version control system this task operates against. Set for tasks that target a specific VCS platform (e.g. code reviews). Null for tasks with no VCS context."
        }
      },
      "type": "object",
      "required": [
        "approvalMode",
        "createdAt",
        "createdBy",
        "entities",
        "isShared",
        "name",
        "planMode",
        "status",
        "taskType",
        "tokensUsed"
      ],
      "inputProperties": {
        "agentDefinitionId": {
          "type": "string",
          "description": "Optional Custom Agent definition id to run this task as. When set, the task's role, permission mode, and enabled integrations are taken from the named agent definition instead of from this request, and the task is attributed to that agent. The agent's instructions and approval mode are not copied at creation: they are read from the definition on every turn, so editing the agent applies to the next turn of every run. A preview capability, gated per organization."
        },
        "approvalMode": {
          "type": "string",
          "description": "Optional approval mode override for this task. If omitted, org default is used."
        },
        "cliIntegrations": {
          "type": "array",
          "items": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "Optional filter for CLI integrations to enable for this task. Semantics: omitted/null → enable all CLI integrations connected for the org; empty list → explicit opt-out (no CLI integrations for this task); populated list → whitelist by (catalogId, name) of the configured instances to enable. Entries with missing or unknown catalogId, missing name, or referencing a (catalogId, name) pair that is not connected for the organization are rejected with a 400 response. catalogId matching is case-insensitive."
        },
        "enabledIntegrations": {
          "type": "array",
          "items": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "Optional list of integrations to enable for this task. Semantics: omitted/null → inherit all org-enabled integrations; empty list → explicit opt-out (no integration credentials for this task); populated list → whitelist of specific integrations by ID. Modeled as an object array rather than a bare string array so multi-instance support (instance_name, scope, etc.) can be added later without a wire break."
        },
        "message": {
          "$ref": "pulumi.json#/Any",
          "description": "The message content. This is the first event in the conversation and must be a user message, so its discriminator field must be set to \"type\": \"user_message\"."
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "permissionMode": {
          "type": "string",
          "description": "Controls the permission scope for the task. When omitted, defaults to 'default' (the agent uses the creating user's full permissions)."
        },
        "planMode": {
          "type": "boolean",
          "description": "Whether to enable plan mode for this task."
        },
        "role": {
          "type": "string",
          "description": "Optional RBAC role the task assumes, identified by role id. When set, the task operates with that role's permissions in place of the creating user's own assignments. You may only assume a role that is assigned to you, directly or through a team; a role you do not hold is rejected with a 403. Omitted/null means no assumed role: the task uses the creating user's full permissions. Orthogonal to permissionMode, which controls the read-only behavior posture independently."
        },
        "source": {
          "type": "string",
          "description": "The origin that triggered this task. Defaults to 'api' if omitted."
        },
        "taskID": {
          "type": "string",
          "description": "The agent task identifier",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "toolExecutionMode": {
          "type": "string",
          "description": "Where tools should be executed. Defaults to 'cloud' if omitted."
        }
      },
      "requiredInputs": [
        "orgName"
      ]
    },
    "pulumiservice:api/auth:OidcIssuer": {
      "description": "Registers a new OIDC issuer for an organization, establishing a trust relationship with an external identity provider. Once registered, the identity provider can issue signed, short-lived tokens that are exchanged for temporary Pulumi Cloud credentials during deployments. This eliminates the need to store long-lived access tokens. Supported providers include AWS, Azure, Google Cloud, GitHub Actions, and any OIDC-compliant identity provider. The request must include the issuer URL, and the service will fetch the provider's public signing keys to verify token authenticity.",
      "properties": {
        "created": {
          "type": "string",
          "description": "The ISO 8601 timestamp when the OIDC issuer was created."
        },
        "issuer": {
          "type": "string",
          "description": "The OIDC issuer identifier, typically a URL that uniquely identifies the identity provider."
        },
        "issuerId": {
          "type": "string",
          "description": "The unique identifier of the registered OIDC issuer."
        },
        "jwks": {
          "$ref": "pulumi.json#/Any",
          "description": "The JSON Web Key Set for the OIDC issuer."
        },
        "lastUsed": {
          "type": "string",
          "description": "The ISO 8601 timestamp when the OIDC issuer was last used for token exchange."
        },
        "maxExpiration": {
          "type": "integer",
          "description": "The maximum token expiration time in seconds."
        },
        "modified": {
          "type": "string",
          "description": "The ISO 8601 timestamp when the OIDC issuer was last modified."
        },
        "name": {
          "type": "string",
          "description": "The display name of the OIDC issuer."
        },
        "thumbprints": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "SHA-1 certificate thumbprints used to verify the OIDC issuer's TLS certificate."
        },
        "url": {
          "type": "string",
          "description": "The URL of the OIDC issuer."
        }
      },
      "type": "object",
      "required": [
        "issuer",
        "issuerId",
        "name",
        "url"
      ],
      "inputProperties": {
        "issuerId": {
          "type": "string",
          "description": "The OIDC issuer identifier",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "jwks": {
          "$ref": "pulumi.json#/Any",
          "description": "The JSON Web Key Set for the OIDC issuer."
        },
        "maxExpiration": {
          "type": "integer",
          "description": "The maximum token expiration time in seconds."
        },
        "name": {
          "type": "string",
          "description": "The display name of the OIDC issuer."
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "thumbprints": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "SHA-1 certificate thumbprints used to verify the OIDC issuer's TLS certificate."
        },
        "url": {
          "type": "string",
          "description": "The URL of the OIDC issuer."
        }
      },
      "requiredInputs": [
        "name",
        "orgName",
        "url"
      ]
    },
    "pulumiservice:api/auth:Policy": {
      "description": "Updates an authentication policy for an organization. Authentication policies define rules for how OIDC tokens are validated and what access they grant, including claim mappings, trust conditions, and role assignments. The policy definition cannot be empty.\n\nThe request body contains a `policies` array where each policy object includes:\n- `decision`: `allow` or `deny`\n- `tokenType`: `organization`, `team`, `personal`, or `runner`\n- `teamName`: required when tokenType is `team`\n- `userLogin`: required when tokenType is `personal`\n- `runnerID`: required when tokenType is `runner`\n- `authorizedPermissions`: array of permissions (only `admin` is supported for organization tokens)\n- `rules`: object defining claim-matching rules for the token\n\nFor more information about authorization rules, refer to the [OIDC authorization policies documentation](https://www.pulumi.com/docs/pulumi-cloud/access-management/oidc/client/#configure-the-authorization-policies).",
      "properties": {
        "created": {
          "type": "string",
          "description": "The creation timestamp"
        },
        "issuerId": {
          "type": "string",
          "description": "The unique identifier"
        },
        "modified": {
          "type": "string",
          "description": "The last modification timestamp"
        },
        "policies": {
          "type": "array",
          "items": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "List of policies"
        },
        "version": {
          "type": "integer",
          "description": "The version number"
        }
      },
      "type": "object",
      "required": [
        "issuerId",
        "policies",
        "version"
      ],
      "inputProperties": {
        "issuerId": {
          "type": "string",
          "description": "The OIDC issuer identifier",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "policies": {
          "type": "array",
          "items": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "List of policies"
        },
        "policyId": {
          "type": "string",
          "description": "The policy identifier",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        }
      },
      "requiredInputs": [
        "orgName",
        "policies",
        "policyId"
      ]
    },
    "pulumiservice:api/auth:SAML": {
      "description": "Updates the SAML configuration for a SAML-backed organization, including the identity provider SSO descriptor, attribute mappings, and other SAML settings. The new IDP SSO descriptor is required in the update request.",
      "properties": {
        "entityId": {
          "type": "string",
          "description": "The following fields can be empty if the metadata (IDPSSODescriptor)\nitself is empty for the organization."
        },
        "idpSsoDescriptor": {
          "type": "string",
          "description": "The SAML Identity Provider SSO descriptor XML."
        },
        "nameIdFormat": {
          "type": "string",
          "description": "The SAML NameID format used by the identity provider."
        },
        "organization": {
          "$ref": "pulumi.json#/Any",
          "description": "The Pulumi organization."
        },
        "ssoUrl": {
          "type": "string",
          "description": "The SSO URL for the identity provider."
        },
        "validUntil": {
          "type": "string",
          "description": "ValidUntil is the date until which the X.509 Certificate\nissued to the organization by the identity provider is valid."
        },
        "validationError": {
          "type": "string",
          "description": "ValidationError will be set only if there is an error validating the SAML org's metadata XML."
        }
      },
      "type": "object",
      "required": [
        "idpSsoDescriptor",
        "organization"
      ],
      "inputProperties": {
        "newIdpSsoDescriptor": {
          "type": "string",
          "description": "The new IDP SSO descriptor XML for the SAML configuration."
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        }
      },
      "requiredInputs": [
        "orgName"
      ]
    },
    "pulumiservice:api/deployments:ScheduledDeployment": {
      "description": "Creates a custom deployment schedule for a stack using Pulumi Deployments. Custom schedules allow you to automate recurring or one-time Pulumi operations on a stack. The request must include exactly one of 'scheduleCron' (a cron expression for recurring executions, e.g. '0 */4 * * *' for every 4 hours) or 'scheduleOnce' (an ISO 8601 timestamp for a one-time execution). The 'request' field contains the deployment configuration that will be executed on each scheduled run, including the Pulumi operation type and any settings overrides. The stack must have deployment settings configured before a schedule can be created.",
      "properties": {
        "created": {
          "type": "string",
          "description": "The timestamp when this scheduled action was created."
        },
        "definition": {
          "type": "object",
          "additionalProperties": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "The action definition, which varies based on the action kind."
        },
        "kind": {
          "type": "string",
          "description": "The kind of action to be executed."
        },
        "lastExecuted": {
          "type": "string",
          "description": "The timestamp of the last execution, if any."
        },
        "modified": {
          "type": "string",
          "description": "The timestamp when this scheduled action was last modified."
        },
        "nextExecution": {
          "type": "string",
          "description": "The timestamp of the next scheduled execution."
        },
        "orgID": {
          "type": "string",
          "description": "The organization ID that owns this scheduled action."
        },
        "paused": {
          "type": "boolean",
          "description": "Whether the scheduled action is currently paused."
        },
        "scheduleCron": {
          "type": "string",
          "description": "A cron expression defining the recurring schedule."
        },
        "scheduleID": {
          "type": "string",
          "description": "The unique identifier for this scheduled action."
        },
        "scheduleOnce": {
          "type": "string",
          "description": "A timestamp for a one-time scheduled execution."
        }
      },
      "type": "object",
      "required": [
        "created",
        "definition",
        "kind",
        "lastExecuted",
        "modified",
        "nextExecution",
        "orgID",
        "paused",
        "scheduleID"
      ],
      "inputProperties": {
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "projectName": {
          "type": "string",
          "description": "The project name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "request": {
          "$ref": "pulumi.json#/Any",
          "description": "Deployment request payload to execute when the schedule fires. This has the same shape and semantics as CreateDeploymentRequest used for immediate deployments."
        },
        "scheduleCron": {
          "type": "string",
          "description": "Cron expression defining a recurring schedule for this deployment. When set, scheduleOnce must be null. Uses standard 5-field cron syntax (MIN HOUR DOM MON DOW) and is evaluated in UTC."
        },
        "scheduleID": {
          "type": "string",
          "description": "The schedule identifier",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "scheduleOnce": {
          "type": "string",
          "description": "Single point-in-time schedule for this deployment. When set, scheduleCron must be null. The value must be an ISO 8601 timestamp with timezone."
        },
        "stackName": {
          "type": "string",
          "description": "The stack name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        }
      },
      "requiredInputs": [
        "orgName",
        "projectName",
        "stackName"
      ]
    },
    "pulumiservice:api/deployments:Settings": {
      "description": "Creates or updates Pulumi Deployments settings for a stack using a merge operation. If no settings exist, they are created. If settings already exist, the request body is merged with the current settings using the following logic: for each property, start with the current value, remove it if the patch specifies null, or merge the new non-null value with the existing one. Non-object properties (strings, numbers, booleans) are replaced entirely. Settings include source context (git repository URL, branch, directory), operation context (environment variables, pre-run commands, OIDC configuration), executor context, GitHub integration settings, and cache options. Requires a Team Growth or higher subscription. Cannot be used to configure Pulumi Deployments for Terraform stacks.",
      "properties": {
        "agentPoolID": {
          "type": "string",
          "description": "The identifier of the agent pool to use for deployments."
        },
        "cacheOptions": {
          "$ref": "pulumi.json#/Any",
          "description": "Cache options for the deployment."
        },
        "executorContext": {
          "$ref": "pulumi.json#/Any",
          "description": "The executor context defining the execution environment."
        },
        "gitHub": {
          "$ref": "pulumi.json#/Any",
          "description": "GitHub-specific deployment settings"
        },
        "operationContext": {
          "$ref": "pulumi.json#/Any",
          "description": "The operation context defining pre-run and post-run commands and environment variables."
        },
        "source": {
          "type": "string",
          "description": "The source from which the deployment settings were created."
        },
        "sourceContext": {
          "$ref": "pulumi.json#/Any",
          "description": "The source context defining where the source code is located."
        },
        "tag": {
          "type": "string",
          "description": "A tag to identify the deployment settings configuration."
        },
        "vcs": {
          "$ref": "pulumi.json#/Any",
          "description": "VCS provider settings"
        },
        "version": {
          "type": "integer",
          "description": "The version of the deployment settings."
        }
      },
      "type": "object",
      "inputProperties": {
        "agentPoolID": {
          "type": "string",
          "description": "The identifier of the agent pool to use for deployments."
        },
        "cacheOptions": {
          "$ref": "pulumi.json#/Any",
          "description": "Cache options for the deployment."
        },
        "executorContext": {
          "$ref": "pulumi.json#/Any",
          "description": "The executor context defining the execution environment."
        },
        "gitHub": {
          "$ref": "pulumi.json#/Any",
          "description": "GitHub-specific deployment settings"
        },
        "operationContext": {
          "$ref": "pulumi.json#/Any",
          "description": "The operation context defining pre-run and post-run commands and environment variables."
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "projectName": {
          "type": "string",
          "description": "The project name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "sourceContext": {
          "$ref": "pulumi.json#/Any",
          "description": "The source context defining where the source code is located."
        },
        "stackName": {
          "type": "string",
          "description": "The stack name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "tag": {
          "type": "string",
          "description": "A tag to identify the deployment settings configuration."
        },
        "vcs": {
          "$ref": "pulumi.json#/Any",
          "description": "VCS provider settings"
        }
      },
      "requiredInputs": [
        "orgName",
        "projectName",
        "stackName"
      ]
    },
    "pulumiservice:api/esc:Environment": {
      "description": "Creates a new Pulumi ESC (Environments, Secrets, and Configuration) environment within the specified organization. The request body must include the project name and the environment name. Environment names must be unique within a project and may only contain alphanumeric characters, hyphens, underscores, and periods. The newly created environment starts with an empty YAML definition that can be updated via the UpdateEnvironment endpoint.",
      "properties": {
        "yaml": {
          "type": "string",
          "description": "Raw YAML body content.",
          "secret": true
        }
      },
      "type": "object",
      "inputProperties": {
        "name": {
          "type": "string",
          "description": "The name of the environment.",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "project": {
          "type": "string",
          "description": "The project name for the environment.",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "yaml": {
          "type": "string",
          "description": "Raw YAML body content.",
          "secret": true
        }
      },
      "requiredInputs": [
        "name",
        "orgName",
        "project"
      ]
    },
    "pulumiservice:api/esc:EnvironmentDraft": {
      "description": "Creates a new draft change request for a Pulumi ESC environment. Drafts allow proposing changes to an environment definition that can be reviewed and approved before being applied. This is part of the approvals workflow for environments. Returns a ChangeRequestRef containing the draft identifier. Requires the Approvals feature to be enabled for the organization.",
      "properties": {
        "changeRequestId": {
          "type": "string",
          "description": "The change request identifier"
        },
        "latestRevisionNumber": {
          "type": "integer",
          "description": "The latest revision number"
        },
        "yaml": {
          "type": "string",
          "description": "Raw YAML body content.",
          "secret": true
        }
      },
      "type": "object",
      "inputProperties": {
        "changeRequestId": {
          "type": "string",
          "description": "The change request ID",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "envName": {
          "type": "string",
          "description": "The environment name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "projectName": {
          "type": "string",
          "description": "The project name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        }
      },
      "requiredInputs": [
        "envName",
        "orgName",
        "projectName"
      ]
    },
    "pulumiservice:api/esc:EnvironmentSchedule": {
      "description": "Creates a new scheduled action for a Pulumi ESC environment. Schedules can be used to automate recurring operations on environments, such as secret rotation. The request body specifies the schedule timing and the action to perform. Returns the created ScheduledAction on success. Requires the secret rotation feature to be enabled for the organization.",
      "properties": {
        "created": {
          "type": "string",
          "description": "The timestamp when this scheduled action was created."
        },
        "definition": {
          "type": "object",
          "additionalProperties": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "The action definition, which varies based on the action kind."
        },
        "kind": {
          "type": "string",
          "description": "The kind of action to be executed."
        },
        "lastExecuted": {
          "type": "string",
          "description": "The timestamp of the last execution, if any."
        },
        "modified": {
          "type": "string",
          "description": "The timestamp when this scheduled action was last modified."
        },
        "nextExecution": {
          "type": "string",
          "description": "The timestamp of the next scheduled execution."
        },
        "orgID": {
          "type": "string",
          "description": "The organization ID that owns this scheduled action."
        },
        "paused": {
          "type": "boolean",
          "description": "Whether the scheduled action is currently paused."
        },
        "scheduleCron": {
          "type": "string",
          "description": "A cron expression defining the recurring schedule."
        },
        "scheduleID": {
          "type": "string",
          "description": "The unique identifier for this scheduled action."
        },
        "scheduleOnce": {
          "type": "string",
          "description": "A timestamp for a one-time scheduled execution."
        }
      },
      "type": "object",
      "required": [
        "created",
        "definition",
        "kind",
        "lastExecuted",
        "modified",
        "nextExecution",
        "orgID",
        "paused",
        "scheduleID"
      ],
      "inputProperties": {
        "envName": {
          "type": "string",
          "description": "The environment name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "projectName": {
          "type": "string",
          "description": "The project name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "scheduleCron": {
          "type": "string",
          "description": "The schedule cron"
        },
        "scheduleID": {
          "type": "string",
          "description": "The schedule ID",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "scheduleOnce": {
          "type": "string",
          "description": "The schedule once"
        },
        "secretRotationRequest": {
          "$ref": "pulumi.json#/Any",
          "description": "The secret rotation request",
          "secret": true
        }
      },
      "requiredInputs": [
        "envName",
        "orgName",
        "projectName"
      ]
    },
    "pulumiservice:api/esc:EnvironmentSettings": {
      "description": "Updates settings for a Pulumi ESC environment using a partial update (patch) approach. Currently supports toggling deletion protection via the deletionProtected field. When deletionProtected is set to true, the environment cannot be deleted until the setting is explicitly disabled. Only the fields included in the request body are modified; omitted fields retain their current values.",
      "properties": {
        "deletionProtected": {
          "type": "boolean",
          "description": "Whether the environment is protected from deletion."
        }
      },
      "type": "object",
      "required": [
        "deletionProtected"
      ],
      "inputProperties": {
        "deletionProtected": {
          "type": "boolean",
          "description": "DeletionProtected indicates whether deletion protection should be enabled for this environment. Null means no change."
        },
        "envName": {
          "type": "string",
          "description": "The environment name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "projectName": {
          "type": "string",
          "description": "The project name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        }
      },
      "requiredInputs": [
        "envName",
        "orgName",
        "projectName"
      ]
    },
    "pulumiservice:api/esc:EnvironmentTag": {
      "description": "Adds a new user-defined tag to a Pulumi ESC environment. Tags are key-value pairs that provide contextual metadata for organizing and searching environments (e.g., region=us-east-1, team=platform). The tag name and value are provided in the request body. Returns the created EnvironmentTag on success. Returns 409 if a tag with the same name already exists on the environment.",
      "properties": {
        "created": {
          "type": "string",
          "description": "The timestamp when the tag was created."
        },
        "editorLogin": {
          "type": "string",
          "description": "The login name of the user who last edited the tag."
        },
        "editorName": {
          "type": "string",
          "description": "The display name of the user who last edited the tag."
        },
        "modified": {
          "type": "string",
          "description": "The timestamp when the tag was last modified."
        },
        "name": {
          "type": "string",
          "description": "The name of the tag."
        },
        "value": {
          "type": "string",
          "description": "The value of the tag."
        }
      },
      "type": "object",
      "required": [
        "created",
        "editorLogin",
        "editorName",
        "modified",
        "name",
        "value"
      ],
      "inputProperties": {
        "envName": {
          "type": "string",
          "description": "The environment name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "name": {
          "type": "string",
          "description": "The name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "projectName": {
          "type": "string",
          "description": "The project name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "value": {
          "type": "string",
          "description": "The value"
        }
      },
      "requiredInputs": [
        "envName",
        "name",
        "orgName",
        "projectName",
        "value"
      ]
    },
    "pulumiservice:api/esc:OpenEnvironmentRequest": {
      "description": "Creates an open request for a Pulumi ESC environment that has gated opens enabled. When an environment has open gates configured, opening the environment requires an approval workflow. This endpoint initiates that process by creating an open request, and also creates corresponding open requests for each imported environment that has open gates. Requires the Approvals feature to be enabled for the organization. Returns 400 if the environment does not have gated opens.",
      "properties": {
        "accessDurationSeconds": {
          "type": "integer",
          "description": "Total duration that the resulting grant can be used to access the environment open endpoint (after first open)"
        },
        "grantExpirationSeconds": {
          "type": "integer",
          "description": "Time from application of the request until the resulting grant expires"
        }
      },
      "type": "object",
      "required": [
        "accessDurationSeconds",
        "grantExpirationSeconds"
      ],
      "inputProperties": {
        "accessDurationSeconds": {
          "type": "integer",
          "description": "Total duration that the resulting grant can be used to access the environment open endpoint (after first open)"
        },
        "changeRequestId": {
          "type": "string",
          "description": "The change request ID",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "envName": {
          "type": "string",
          "description": "The environment name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "grantExpirationSeconds": {
          "type": "integer",
          "description": "Time from application of the request until the resulting grant expires"
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "projectName": {
          "type": "string",
          "description": "The project name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        }
      },
      "requiredInputs": [
        "accessDurationSeconds",
        "envName",
        "grantExpirationSeconds",
        "orgName",
        "projectName"
      ]
    },
    "pulumiservice:api/esc:RevisionTag": {
      "description": "Creates a new revision tag for a Pulumi ESC environment. Revision tags are named references that point to specific revision numbers, similar to Git tags. They allow pinning a stable reference to a known-good version of an environment. Tagged versions can be used in imports and Pulumi stack configuration (e.g., myproject/env@prod) to ensure stable references unaffected by subsequent changes. The built-in 'latest' tag always points to the most recent revision.",
      "properties": {
        "created": {
          "type": "string",
          "description": "The timestamp when the tag was created."
        },
        "editorLogin": {
          "type": "string",
          "description": "The login name of the user who last edited the tag."
        },
        "editorName": {
          "type": "string",
          "description": "The display name of the user who last edited the tag."
        },
        "modified": {
          "type": "string",
          "description": "The timestamp when the tag was last modified."
        },
        "name": {
          "type": "string",
          "description": "The name of the tag."
        },
        "revision": {
          "type": "integer",
          "description": "The revision number this tag points to."
        }
      },
      "type": "object",
      "required": [
        "created",
        "modified",
        "name",
        "revision"
      ],
      "inputProperties": {
        "envName": {
          "type": "string",
          "description": "The environment name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "name": {
          "type": "string",
          "description": "The name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "projectName": {
          "type": "string",
          "description": "The project name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "revision": {
          "type": "integer",
          "description": "The revision"
        }
      },
      "requiredInputs": [
        "envName",
        "name",
        "orgName",
        "projectName"
      ]
    },
    "pulumiservice:api/esc:Webhook": {
      "description": "Creates a new webhook for a Pulumi ESC environment. Webhooks allow external services to be notified when environment events occur, such as updates or opens. The request body specifies the webhook configuration including the destination URL, event filters, and format. Returns 400 if the organization name in the request body does not match the URL path parameter. Returns 409 if a webhook with the same name already exists.",
      "properties": {
        "active": {
          "type": "boolean",
          "description": "Whether the webhook is active and will receive deliveries."
        },
        "displayName": {
          "type": "string",
          "description": "The human-readable display name shown in the UI."
        },
        "envName": {
          "type": "string",
          "description": "The environment name. Set when the webhook is scoped to a specific environment."
        },
        "filters": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Specific event types this webhook subscribes to. If empty, all events are delivered."
        },
        "format": {
          "type": "string",
          "description": "The format of the webhook payload (e.g., 'raw', 'slack', 'ms_teams')."
        },
        "groups": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Event groups this webhook subscribes to (e.g., 'stacks', 'deployments')."
        },
        "hasSecret": {
          "type": "boolean",
          "description": "HasSecret is true if the webhook has a secret. This is used to determine whether\nto show that there is a secret in the UI.",
          "secret": true
        },
        "name": {
          "type": "string",
          "description": "The unique identifier name for the webhook within its scope. Optional on creation; if omitted, the service generates a short random name. Always populated in responses."
        },
        "organizationName": {
          "type": "string",
          "description": "The organization that owns this webhook."
        },
        "payloadUrl": {
          "type": "string",
          "description": "The URL to which webhook payloads are delivered."
        },
        "projectName": {
          "type": "string",
          "description": "The project name. Set when the webhook is scoped to a specific stack."
        },
        "secret": {
          "type": "string",
          "description": "Secret will be omitted when returned from the service.",
          "secret": true
        },
        "secretCiphertext": {
          "type": "string",
          "description": "SecretCiphertext is the ciphertext value of the webhook's secret.\nIt's used to check whether the secret was changed by the PSP",
          "secret": true
        },
        "stackName": {
          "type": "string",
          "description": "The stack name. Set when the webhook is scoped to a specific stack."
        }
      },
      "type": "object",
      "required": [
        "active",
        "displayName",
        "hasSecret",
        "organizationName",
        "payloadUrl",
        "secretCiphertext"
      ],
      "inputProperties": {
        "active": {
          "type": "boolean",
          "description": "Whether the webhook is active and will receive deliveries."
        },
        "displayName": {
          "type": "string",
          "description": "The human-readable display name shown in the UI."
        },
        "envName": {
          "type": "string",
          "description": "The environment name. Set when the webhook is scoped to a specific environment.",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "filters": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Specific event types this webhook subscribes to. If empty, all events are delivered."
        },
        "format": {
          "type": "string",
          "description": "The format of the webhook payload (e.g., 'raw', 'slack', 'ms_teams')."
        },
        "groups": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Event groups this webhook subscribes to (e.g., 'stacks', 'deployments')."
        },
        "name": {
          "type": "string",
          "description": "The unique identifier name for the webhook within its scope. Optional on creation; if omitted, the service generates a short random name. Always populated in responses.",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "organizationName": {
          "type": "string",
          "description": "The organization that owns this webhook.",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "payloadUrl": {
          "type": "string",
          "description": "The URL to which webhook payloads are delivered."
        },
        "projectName": {
          "type": "string",
          "description": "The project name. Set when the webhook is scoped to a specific stack.",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "secret": {
          "type": "string",
          "description": "Secret will be omitted when returned from the service.",
          "secret": true
        },
        "stackName": {
          "type": "string",
          "description": "The stack name. Set when the webhook is scoped to a specific stack."
        }
      },
      "requiredInputs": [
        "active",
        "displayName",
        "envName",
        "organizationName",
        "payloadUrl",
        "projectName"
      ]
    },
    "pulumiservice:api/insights:Account": {
      "description": "Creates a new Insights account. An Insights account represents a cloud provider account (e.g., AWS, Azure, OCI) configured for resource discovery.",
      "properties": {
        "agentPoolID": {
          "type": "string",
          "description": "The ID of the agent pool to run account discovery workflows.\nIf not specified, discovery will use the default agent pool."
        },
        "name": {
          "type": "string",
          "description": "The name of the account."
        },
        "ownedBy": {
          "$ref": "pulumi.json#/Any",
          "description": "The user with ownership of this Insights account"
        },
        "provider": {
          "type": "string",
          "description": "The cloud provider for the account (e.g., aws, gcp, azure-native)."
        },
        "providerConfig": {
          "type": "object",
          "additionalProperties": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "Provider-specific configuration for the account."
        },
        "providerEnvRef": {
          "type": "string",
          "description": "Reference to an ESC environment containing provider credentials,\nin the format 'project/environment' with an optional @version suffix."
        },
        "providerVersion": {
          "type": "string",
          "description": "Deprecated: no longer populated. Omitted from responses, and ignored if sent.\nThe provider version used for discovery is now recorded per resource."
        },
        "scanStatus": {
          "$ref": "pulumi.json#/Any",
          "description": "Status of the last discovery scan for this account."
        },
        "scheduledScanEnabled": {
          "type": "boolean",
          "description": "If true, the account is scheduled for recurring discovery."
        }
      },
      "type": "object",
      "required": [
        "name",
        "ownedBy",
        "provider",
        "scheduledScanEnabled"
      ],
      "inputProperties": {
        "accountName": {
          "type": "string",
          "description": "The Insights account name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "agentPoolID": {
          "type": "string",
          "description": "The ID of the agent pool to run account discovery workflows.\nIf not specified, discovery will use the default agent pool."
        },
        "cron": {
          "type": "string",
          "description": "Deprecated: Use scanSchedule instead. Cron expression for scheduling scans."
        },
        "environment": {
          "type": "string",
          "description": "Reference to an ESC environment containing provider credentials,\nin the format 'project/environment' with an optional @version suffix."
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "provider": {
          "type": "string",
          "description": "The cloud provider for the account (e.g., aws, gcp, azure-native)."
        },
        "providerConfig": {
          "type": "object",
          "additionalProperties": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "Provider-specific configuration for the account."
        },
        "scanSchedule": {
          "type": "string",
          "description": "Schedule for automated discovery scans (e.g., 'none', 'daily')."
        }
      },
      "requiredInputs": [
        "accountName",
        "environment",
        "orgName",
        "provider"
      ]
    },
    "pulumiservice:api/insights:ScheduledScanSettings": {
      "description": "Updates the scheduled scan configuration for an Insights account, such as scan frequency and schedule.",
      "properties": {
        "batchSize": {
          "type": "integer",
          "description": "The batch size for processing resources during the scan."
        },
        "listConcurrency": {
          "type": "integer",
          "description": "The concurrency level for list operations during the scan."
        },
        "paused": {
          "type": "boolean",
          "description": "Whether the scheduled scan is paused."
        },
        "readConcurrency": {
          "type": "integer",
          "description": "The concurrency level for read operations during the scan."
        },
        "readTimeout": {
          "type": "string",
          "description": "The timeout duration for read operations, as a Go duration string (e.g., '30s', '5m')."
        },
        "scheduleCron": {
          "type": "string",
          "description": "The cron expression defining the scan schedule."
        }
      },
      "type": "object",
      "required": [
        "paused",
        "scheduleCron"
      ],
      "inputProperties": {
        "accountName": {
          "type": "string",
          "description": "The Insights account name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "batchSize": {
          "type": "integer",
          "description": "The batch size for processing resources during the scan."
        },
        "listConcurrency": {
          "type": "integer",
          "description": "The concurrency level for list operations during the scan."
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "paused": {
          "type": "boolean",
          "description": "Whether the scheduled scan is paused."
        },
        "readConcurrency": {
          "type": "integer",
          "description": "The concurrency level for read operations during the scan."
        },
        "readTimeout": {
          "type": "string",
          "description": "The timeout duration for read operations, as a Go duration string (e.g., '30s', '5m')."
        },
        "scheduleCron": {
          "type": "string",
          "description": "The cron expression defining the scan schedule."
        }
      },
      "requiredInputs": [
        "accountName",
        "orgName",
        "paused"
      ]
    },
    "pulumiservice:api/integrations:AzureDevOpsIntegration": {
      "description": "Updates an existing Azure DevOps integration's settings. Can modify the Azure DevOps organization, project, or authentication configuration.",
      "properties": {
        "authUser": {
          "$ref": "pulumi.json#/Any",
          "description": "The Pulumi user whose Azure DevOps authentication token is being used"
        },
        "disableDetailedDiff": {
          "type": "boolean",
          "description": "Whether detailed property-level diffs are disabled for PR comments"
        },
        "disableNeoSummaries": {
          "type": "boolean",
          "description": "Whether Neo AI summaries are disabled for this integration"
        },
        "disablePRComments": {
          "type": "boolean",
          "description": "Whether PR comments are disabled for this integration"
        },
        "installed": {
          "type": "boolean",
          "description": "Does the org have an Azure DevOps app integration configured"
        },
        "organization": {
          "$ref": "pulumi.json#/Any",
          "description": "Metadata about the Azure DevOps organization linked to the Pulumi organization"
        },
        "project": {
          "$ref": "pulumi.json#/Any",
          "description": "Metadata about the Azure DevOps project linked to the Pulumi organization"
        },
        "valid": {
          "type": "boolean",
          "description": "Is the app integration valid"
        }
      },
      "type": "object",
      "required": [
        "installed",
        "valid"
      ],
      "inputProperties": {
        "disableDetailedDiff": {
          "type": "boolean",
          "description": "Whether detailed property-level diffs are disabled for PR comments"
        },
        "disableNeoSummaries": {
          "type": "boolean",
          "description": "Whether Neo AI summaries are disabled for this integration"
        },
        "disablePRComments": {
          "type": "boolean",
          "description": "Whether PR comments are disabled for this integration"
        },
        "integrationId": {
          "type": "string",
          "description": "The Azure DevOps integration identifier",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        }
      },
      "requiredInputs": [
        "integrationId",
        "orgName"
      ]
    },
    "pulumiservice:api/integrations:BitBucketIntegration": {
      "description": "Updates an existing BitBucket integration's settings, such as PR comment preferences and AI summary options.",
      "properties": {
        "authType": {
          "type": "string",
          "description": "The authentication type used: 'workspace_token', 'user_token', or 'pat'."
        },
        "authUser": {
          "$ref": "pulumi.json#/Any",
          "description": "The user whose BitBucket OAuth token is being used for authentication, if user-based auth is configured."
        },
        "avatarUrl": {
          "type": "string",
          "description": "URL of the BitBucket workspace avatar image."
        },
        "disableDetailedDiff": {
          "type": "boolean",
          "description": "Whether detailed property-level diffs are disabled for PR comments."
        },
        "disableNeoSummaries": {
          "type": "boolean",
          "description": "Whether Neo AI summaries are disabled for this integration."
        },
        "disablePRComments": {
          "type": "boolean",
          "description": "Whether PR comments are disabled for this integration."
        },
        "installed": {
          "type": "boolean",
          "description": "Whether this integration is fully installed and operational."
        },
        "valid": {
          "type": "boolean",
          "description": "Whether the integration's credentials are currently valid."
        },
        "workspaceName": {
          "type": "string",
          "description": "Display name of the BitBucket workspace."
        },
        "workspaceSlug": {
          "type": "string",
          "description": "The slug (URL-friendly name) of the linked BitBucket workspace."
        },
        "workspaceUuid": {
          "type": "string",
          "description": "The UUID of the linked BitBucket workspace."
        }
      },
      "type": "object",
      "required": [
        "disableDetailedDiff",
        "disableNeoSummaries",
        "disablePRComments",
        "installed",
        "valid",
        "workspaceSlug",
        "workspaceUuid"
      ],
      "inputProperties": {
        "disableDetailedDiff": {
          "type": "boolean",
          "description": "If true, disable detailed property-level diffs in PR comments."
        },
        "disableNeoSummaries": {
          "type": "boolean",
          "description": "If true, disable Neo AI-generated deployment summaries in PR comments."
        },
        "disablePRComments": {
          "type": "boolean",
          "description": "If true, disable automatic PR comments on deployments."
        },
        "integrationId": {
          "type": "string",
          "description": "The BitBucket integration identifier",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        }
      },
      "requiredInputs": [
        "integrationId",
        "orgName"
      ]
    },
    "pulumiservice:api/integrations:CustomVCSIntegration": {
      "description": "Creates a new custom VCS integration for an organization. Custom VCS integrations allow connecting self-hosted or third-party version control systems (e.g. Gitea, Forgejo, Bitbucket Server) to Pulumi Deployments. Credentials are managed via ESC environments, and deployments are triggered by inbound webhooks. Returns the created integration including its webhook URL and HMAC secret for signature verification.",
      "properties": {
        "baseUrl": {
          "type": "string",
          "description": "URL prefix for repositories covered by this integration"
        },
        "created": {
          "type": "string",
          "description": "ISO 8601 timestamp of when the integration was created"
        },
        "environment": {
          "type": "string",
          "description": "ESC environment reference in 'project/envName' format containing VCS credentials"
        },
        "integrationId": {
          "type": "string",
          "description": "Unique identifier (UUID) for this integration"
        },
        "modified": {
          "type": "string",
          "description": "ISO 8601 timestamp of when the integration was last modified"
        },
        "name": {
          "type": "string",
          "description": "Human-readable name for the integration"
        },
        "repositories": {
          "type": "array",
          "items": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "List of repositories configured on this integration"
        },
        "vcsType": {
          "type": "string",
          "description": "Version control system type"
        },
        "webhookSecret": {
          "type": "string",
          "description": "HMAC secret for webhook signature verification. Only returned on integration creation; subsequent GET requests omit this field.",
          "secret": true
        },
        "webhookUrl": {
          "type": "string",
          "description": "Full webhook endpoint URL that the external VCS should POST events to. This URL is generated by the service and includes the integration ID."
        }
      },
      "type": "object",
      "required": [
        "baseUrl",
        "created",
        "environment",
        "integrationId",
        "modified",
        "name",
        "vcsType"
      ],
      "inputProperties": {
        "baseUrl": {
          "type": "string",
          "description": "URL prefix for repositories covered by this integration (e.g. 'https://gitea.example.com/myorg'). Used to match repositories to integrations."
        },
        "environment": {
          "type": "string",
          "description": "ESC environment reference in 'project/envName' format containing VCS credentials (e.g. SSH keys, access tokens) used for repository operations"
        },
        "integrationId": {
          "type": "string",
          "description": "The custom VCS integration identifier",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "name": {
          "type": "string",
          "description": "Human-readable name for the integration, unique within the organization (e.g. 'Gitea Production')"
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "vcsType": {
          "type": "string",
          "description": "Version control system type. Defaults to 'git' if not specified."
        }
      },
      "requiredInputs": [
        "baseUrl",
        "environment",
        "name",
        "orgName"
      ]
    },
    "pulumiservice:api/integrations:CustomVCSRepository": {
      "description": "Adds a repository to a custom VCS integration. The repository name must be unique within the integration. Returns 409 Conflict if a repository with the same name is already configured.",
      "type": "object",
      "inputProperties": {
        "displayName": {
          "type": "string",
          "description": "Human-readable display name for the repository. If not provided, the name is used for display purposes."
        },
        "integrationId": {
          "type": "string",
          "description": "The custom VCS integration identifier",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "name": {
          "type": "string",
          "description": "Repository name or path, joined with the integration's base URL to form the clone URL (e.g. 'myrepo' or 'subgroup/myrepo')"
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        }
      },
      "requiredInputs": [
        "integrationId",
        "name",
        "orgName"
      ]
    },
    "pulumiservice:api/integrations:GitHubEnterpriseIntegration": {
      "description": "Updates GitHub Enterprise Server integration settings.",
      "properties": {
        "accountID": {
          "type": "integer",
          "description": "The GitHub account ID (user or org)."
        },
        "accountName": {
          "type": "string",
          "description": "The GitHub account name (login)."
        },
        "avatarUrl": {
          "type": "string",
          "description": "The avatar URL of the GitHub account."
        },
        "created": {
          "type": "string",
          "description": "When the installation was created."
        },
        "disableCodeAccessForReviews": {
          "type": "boolean",
          "description": "Whether code access for AI reviews is disabled for this installation."
        },
        "disableDetailedDiff": {
          "type": "boolean",
          "description": "Whether detailed property-level diffs are disabled for PR comments."
        },
        "disableDraftPRComments": {
          "type": "boolean",
          "description": "Whether PR comments are disabled while a pull request is in draft."
        },
        "disableNeoSummaries": {
          "type": "boolean",
          "description": "Whether Neo AI summaries are disabled for this installation."
        },
        "disablePRComments": {
          "type": "boolean",
          "description": "Whether PR comments are disabled for this installation."
        },
        "ghUrls": {
          "$ref": "pulumi.json#/Any",
          "description": "URL to configure repository access for this GitHub App installation."
        },
        "hasContentsPermission": {
          "type": "boolean",
          "description": "Whether the installation has the 'contents' permission."
        },
        "hasMembersPermission": {
          "type": "boolean",
          "description": "Whether the installation has the 'members' permission (only relevant for organization accounts)."
        },
        "individualAuthEnabled": {
          "type": "boolean",
          "description": "Whether per-user (individual) GitHub Enterprise authentication is enabled. Only applies to self-hosted GitHub Enterprise installations."
        },
        "installationID": {
          "type": "integer",
          "description": "The GitHub installation ID."
        },
        "isOrganization": {
          "type": "boolean",
          "description": "Whether the GitHub account is an organization (as opposed to a personal account)."
        },
        "isSelfHosted": {
          "type": "boolean",
          "description": "Whether this is a self-hosted GitHub Enterprise installation."
        },
        "neoGitHubAppPermissionRequirements": {
          "type": "array",
          "items": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "Neo GitHub App permission requirements for this installation."
        }
      },
      "type": "object",
      "required": [
        "disableCodeAccessForReviews",
        "disableDetailedDiff",
        "disableNeoSummaries",
        "disablePRComments",
        "hasContentsPermission",
        "hasMembersPermission",
        "installationID",
        "isOrganization",
        "isSelfHosted"
      ],
      "inputProperties": {
        "disableCodeAccessForReviews": {
          "type": "boolean",
          "description": "Whether to disable code access for AI reviews"
        },
        "disableDetailedDiff": {
          "type": "boolean",
          "description": "Whether to disable detailed property-level diffs in PR comments"
        },
        "disableDraftPRComments": {
          "type": "boolean",
          "description": "Whether to disable PR comments while a pull request is in draft"
        },
        "disableNeoSummaries": {
          "type": "boolean",
          "description": "Whether to disable Neo AI summaries on PRs"
        },
        "disablePRComments": {
          "type": "boolean",
          "description": "Whether to disable PR comments from the Pulumi GitHub App"
        },
        "individualAuthEnabled": {
          "type": "boolean",
          "description": "Whether per-user (individual) GitHub Enterprise authentication is enabled. Only applies to self-hosted GitHub Enterprise installations."
        },
        "integrationId": {
          "type": "string",
          "description": "The GitHub Enterprise integration identifier",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        }
      },
      "requiredInputs": [
        "integrationId",
        "orgName"
      ]
    },
    "pulumiservice:api/integrations:GitHubIntegration": {
      "description": "Updates GitHub App integration settings.",
      "properties": {
        "accountID": {
          "type": "integer",
          "description": "The GitHub account ID (user or org)."
        },
        "accountName": {
          "type": "string",
          "description": "The GitHub account name (login)."
        },
        "avatarUrl": {
          "type": "string",
          "description": "The avatar URL of the GitHub account."
        },
        "created": {
          "type": "string",
          "description": "When the installation was created."
        },
        "disableCodeAccessForReviews": {
          "type": "boolean",
          "description": "Whether code access for AI reviews is disabled for this installation."
        },
        "disableDetailedDiff": {
          "type": "boolean",
          "description": "Whether detailed property-level diffs are disabled for PR comments."
        },
        "disableDraftPRComments": {
          "type": "boolean",
          "description": "Whether PR comments are disabled while a pull request is in draft."
        },
        "disableNeoSummaries": {
          "type": "boolean",
          "description": "Whether Neo AI summaries are disabled for this installation."
        },
        "disablePRComments": {
          "type": "boolean",
          "description": "Whether PR comments are disabled for this installation."
        },
        "ghUrls": {
          "$ref": "pulumi.json#/Any",
          "description": "URL to configure repository access for this GitHub App installation."
        },
        "hasContentsPermission": {
          "type": "boolean",
          "description": "Whether the installation has the 'contents' permission."
        },
        "hasMembersPermission": {
          "type": "boolean",
          "description": "Whether the installation has the 'members' permission (only relevant for organization accounts)."
        },
        "individualAuthEnabled": {
          "type": "boolean",
          "description": "Whether per-user (individual) GitHub Enterprise authentication is enabled. Only applies to self-hosted GitHub Enterprise installations."
        },
        "installationID": {
          "type": "integer",
          "description": "The GitHub installation ID."
        },
        "isOrganization": {
          "type": "boolean",
          "description": "Whether the GitHub account is an organization (as opposed to a personal account)."
        },
        "isSelfHosted": {
          "type": "boolean",
          "description": "Whether this is a self-hosted GitHub Enterprise installation."
        },
        "neoGitHubAppPermissionRequirements": {
          "type": "array",
          "items": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "Neo GitHub App permission requirements for this installation."
        }
      },
      "type": "object",
      "required": [
        "disableCodeAccessForReviews",
        "disableDetailedDiff",
        "disableNeoSummaries",
        "disablePRComments",
        "hasContentsPermission",
        "hasMembersPermission",
        "installationID",
        "isOrganization",
        "isSelfHosted"
      ],
      "inputProperties": {
        "disableCodeAccessForReviews": {
          "type": "boolean",
          "description": "Whether to disable code access for AI reviews"
        },
        "disableDetailedDiff": {
          "type": "boolean",
          "description": "Whether to disable detailed property-level diffs in PR comments"
        },
        "disableDraftPRComments": {
          "type": "boolean",
          "description": "Whether to disable PR comments while a pull request is in draft"
        },
        "disableNeoSummaries": {
          "type": "boolean",
          "description": "Whether to disable Neo AI summaries on PRs"
        },
        "disablePRComments": {
          "type": "boolean",
          "description": "Whether to disable PR comments from the Pulumi GitHub App"
        },
        "individualAuthEnabled": {
          "type": "boolean",
          "description": "Whether per-user (individual) GitHub Enterprise authentication is enabled. Only applies to self-hosted GitHub Enterprise installations."
        },
        "integrationId": {
          "type": "string",
          "description": "The GitHub App integration identifier",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        }
      },
      "requiredInputs": [
        "integrationId",
        "orgName"
      ]
    },
    "pulumiservice:api/integrations:GitLabIntegration": {
      "description": "Updates an existing GitLab integration's settings, such as PR comment preferences and AI summary options.",
      "properties": {
        "authUser": {
          "$ref": "pulumi.json#/Any",
          "description": "The Pulumi user whose GitLab authentication token is being used, if applicable."
        },
        "avatarUrl": {
          "type": "string",
          "description": "The URL of the GitLab group's avatar image."
        },
        "disableDetailedDiff": {
          "type": "boolean",
          "description": "Whether detailed property-level diffs are disabled for PR comments."
        },
        "disableNeoSummaries": {
          "type": "boolean",
          "description": "Whether Neo AI summaries are disabled for this integration."
        },
        "disablePRComments": {
          "type": "boolean",
          "description": "Whether PR comments are disabled for this integration."
        },
        "gitLabGroupId": {
          "type": "integer",
          "description": "The GitLab group ID linked to this integration."
        },
        "gitLabOrg": {
          "$ref": "pulumi.json#/Any",
          "description": "Metadata about the GitLab group linked to this integration."
        },
        "groupAccessTokenExpiration": {
          "type": "string",
          "description": "The expiration date of the group access token, if one is being used for authentication.",
          "secret": true
        },
        "groupName": {
          "type": "string",
          "description": "The display name of the GitLab group."
        },
        "groupPath": {
          "type": "string",
          "description": "The URL-safe path of the GitLab group (e.g. 'parent-group/child-group')."
        },
        "installed": {
          "type": "boolean",
          "description": "Whether the integration has been fully installed."
        },
        "valid": {
          "type": "boolean",
          "description": "Whether the integration is currently valid (tokens, hooks, etc.)."
        }
      },
      "type": "object",
      "required": [
        "disableDetailedDiff",
        "disableNeoSummaries",
        "disablePRComments",
        "gitLabGroupId",
        "installed",
        "valid"
      ],
      "inputProperties": {
        "disableDetailedDiff": {
          "type": "boolean",
          "description": "Whether detailed property-level diffs are disabled for PR comments."
        },
        "disableNeoSummaries": {
          "type": "boolean",
          "description": "Whether Neo AI summaries are disabled for this integration."
        },
        "disablePRComments": {
          "type": "boolean",
          "description": "Whether PR comments are disabled for this integration."
        },
        "integrationId": {
          "type": "string",
          "description": "The GitLab integration identifier",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        }
      },
      "requiredInputs": [
        "integrationId",
        "orgName"
      ]
    },
    "pulumiservice:api/neo:UsageCap": {
      "description": "Creates or replaces the monthly Neo usage cap for an organization. The cap must be at least $10/month. To remove the cap, call DeleteNeoUsageCap.",
      "properties": {
        "capCents": {
          "type": "integer",
          "description": "Monthly cap in US-dollar cents. Always strictly positive; \"no cap\" is the absence of a row (GetNeoUsageCap returns 204)."
        },
        "notificationsEnabled": {
          "type": "boolean",
          "description": "Whether threshold-warning emails (50/80/95/100% of the cap) are sent to billing admins. True unless the admin has turned them off."
        },
        "updatedAt": {
          "type": "string",
          "description": "Time when the cap was last updated."
        }
      },
      "type": "object",
      "required": [
        "capCents",
        "notificationsEnabled",
        "updatedAt"
      ],
      "inputProperties": {
        "capCents": {
          "type": "integer",
          "description": "Monthly cap in US-dollar cents. Must be at least 1000 ($10, the self-serve floor) and at most 100_000_000 ($1M). Outside that range the call returns 400."
        },
        "notificationsEnabled": {
          "type": "boolean",
          "description": "Whether to send threshold-warning emails (50/80/95/100% of the cap) to billing admins. Omit (null) to leave the current setting unchanged; new caps default to enabled."
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        }
      },
      "requiredInputs": [
        "capCents",
        "orgName"
      ]
    },
    "pulumiservice:api/services:Item": {
      "description": "Adds items, such as stacks or ESC environments, to an existing service. A service is a Pulumi Cloud construct that groups stacks, environments, and other resources under shared metadata so members of the service can discover and access them together. Returns the updated service details with the first page of items; if `continuationToken` is set on the response, pass it to `GetService` to fetch the remaining pages.\n\nPrefer `AddServiceItemsV2`, then `GetService` to read the items.",
      "properties": {
        "continuationToken": {
          "type": "string",
          "description": "ContinuationToken is an opaque value the client can send to fetch additional\nitems. Will be nil once all items have been returned."
        },
        "items": {
          "type": "array",
          "items": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "The list of service items"
        },
        "service": {
          "$ref": "pulumi.json#/Any",
          "description": "The service details"
        }
      },
      "type": "object",
      "required": [
        "items",
        "service"
      ],
      "inputProperties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "List of items"
        },
        "maxResults": {
          "type": "integer",
          "description": "Maximum number of items to return on the first page (max 1000)",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "ownerName": {
          "type": "string",
          "description": "The owner name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "ownerType": {
          "type": "string",
          "description": "The owner type",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "serviceName": {
          "type": "string",
          "description": "The service name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        }
      },
      "requiredInputs": [
        "items",
        "orgName",
        "ownerName",
        "ownerType",
        "serviceName"
      ]
    },
    "pulumiservice:api/services:Service": {
      "description": "Creates a new service in an organization. A service is a Pulumi Cloud construct that groups stacks, ESC environments, and other resources under shared metadata, making it easier for its members to discover and access the resources that make up a piece of software. The service is owned by a user or a team, and the name must be unique among services owned by the same owner.",
      "properties": {
        "continuationToken": {
          "type": "string",
          "description": "ContinuationToken is an opaque value the client can send to fetch additional\nitems. Will be nil once all items have been returned."
        },
        "items": {
          "type": "array",
          "items": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "The list of service items"
        }
      },
      "type": "object",
      "required": [
        "items"
      ],
      "inputProperties": {
        "description": {
          "type": "string",
          "description": "an optional description of the service"
        },
        "items": {
          "type": "array",
          "items": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "an optional list of items to add during service creation"
        },
        "name": {
          "type": "string",
          "description": "the name of the service",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "ownerName": {
          "type": "string",
          "description": "the service owner name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "ownerType": {
          "type": "string",
          "description": "the service owner type",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "properties": {
          "type": "array",
          "items": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "an optional list of properties to set on the service"
        }
      },
      "requiredInputs": [
        "description",
        "items",
        "name",
        "orgName",
        "ownerName",
        "ownerType",
        "properties"
      ]
    },
    "pulumiservice:api/stacks:Config": {
      "description": "Updates the service-managed configuration for a stack. The request body sets the ESC environment reference that points the stack at a service-backed configuration. If stack configuration is returned by the API, it is used in place of the local stack config file (e.g. Pulumi.[stack].yaml). Returns the updated configuration object. Returns 400 if the environment reference is invalid or not found. The 'secretsProvider', 'encryptedKey', and 'encryptionSalt' fields are deprecated; new callers should omit them.",
      "properties": {
        "encryptedKey": {
          "type": "string",
          "description": "Deprecated: this field is no longer used by the service. Stacks that use a service-backed configuration store all config (including secrets) in ESC, which uses its own encryption. New callers should omit this field."
        },
        "encryptionSalt": {
          "type": "string",
          "description": "Deprecated: this field is no longer used by the service. Stacks that use a service-backed configuration store all config (including secrets) in ESC, which uses its own encryption. New callers should omit this field."
        },
        "environment": {
          "type": "string",
          "description": "Reference to ESC environment to use as stack configuration."
        },
        "secretsProvider": {
          "type": "string",
          "description": "Deprecated: this field is no longer used by the service. Stacks that use a service-backed configuration store all config (including secrets) in ESC, which uses its own encryption. New callers should omit this field.",
          "secret": true
        }
      },
      "type": "object",
      "required": [
        "environment"
      ],
      "inputProperties": {
        "encryptedKey": {
          "type": "string",
          "description": "Deprecated: this field is no longer used by the service. Stacks that use a service-backed configuration store all config (including secrets) in ESC, which uses its own encryption. New callers should omit this field."
        },
        "encryptionSalt": {
          "type": "string",
          "description": "Deprecated: this field is no longer used by the service. Stacks that use a service-backed configuration store all config (including secrets) in ESC, which uses its own encryption. New callers should omit this field."
        },
        "environment": {
          "type": "string",
          "description": "Reference to ESC environment to use as stack configuration."
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "projectName": {
          "type": "string",
          "description": "The project name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "secretsProvider": {
          "type": "string",
          "description": "Deprecated: this field is no longer used by the service. Stacks that use a service-backed configuration store all config (including secrets) in ESC, which uses its own encryption. New callers should omit this field.",
          "secret": true
        },
        "stackName": {
          "type": "string",
          "description": "The stack name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        }
      },
      "requiredInputs": [
        "environment",
        "orgName",
        "projectName",
        "stackName"
      ]
    },
    "pulumiservice:api/stacks:Stack": {
      "description": "Creates a new stack within a project in the organization. If the project does not exist, it will be created. A stack is an isolated, independently configurable instance of a Pulumi program, typically representing a deployment environment (e.g., development, staging, production). The stack name must be unique within the project.\n\nThe optional `config` object supports:\n- `environment`: reference to an ESC environment for storing stack configuration (must not already exist)\n- `secretsProvider`: the secrets provider for the stack\n- `encryptedKey`: KMS-encrypted ciphertext for the data key (cloud-based secrets providers only)\n- `encryptionSalt`: base64-encoded encryption salt (passphrase-based secrets providers only)",
      "properties": {
        "activeUpdate": {
          "type": "string",
          "description": "UUID of the most recent update on this stack, either completed or in-progress."
        },
        "config": {
          "$ref": "pulumi.json#/Any",
          "description": "Optional cloud-persisted stack configuration.\nIf set, then the stack's configuration is loaded from the cloud and not a file on disk."
        },
        "currentOperation": {
          "$ref": "pulumi.json#/Any",
          "description": "Information about a live operation currently running for the stack, its kind, the author who initiated it, and its start time. Null when no operation is in flight."
        },
        "orgName": {
          "type": "string",
          "description": "The organization name"
        },
        "projectName": {
          "type": "string",
          "description": "The project name"
        },
        "stackName": {
          "type": "string",
          "description": "The stack name"
        },
        "tags": {
          "type": "object",
          "additionalProperties": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "Map of tags"
        },
        "version": {
          "type": "integer",
          "description": "The version number"
        }
      },
      "type": "object",
      "required": [
        "activeUpdate",
        "orgName",
        "projectName",
        "stackName",
        "version"
      ],
      "inputProperties": {
        "config": {
          "$ref": "pulumi.json#/Any",
          "description": "The configuration for the new stack."
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "projectName": {
          "type": "string",
          "description": "The project name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "stackName": {
          "type": "string",
          "description": "The name of the stack being created.",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "state": {
          "$ref": "pulumi.json#/Any",
          "description": "An optional state to initialize the stack with."
        },
        "tags": {
          "type": "object",
          "additionalProperties": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "An optional set of tags to apply to the stack."
        },
        "teams": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "An optional set of teams to assign to the stack."
        }
      },
      "requiredInputs": [
        "orgName",
        "projectName",
        "stackName"
      ]
    },
    "pulumiservice:api/stacks:Tag": {
      "description": "Creates a new tag on the specified stack. Tags are key-value metadata pairs that can be used for organization, filtering, and storing additional information about stacks. The request body must include both a tag name and value. Returns 400 if the tag name is invalid or the tag already exists. The 'pulumi:', 'gitHub:' and 'vcs:' name prefixes are reserved for built-in tags that Pulumi manages automatically: deploys refresh them from project metadata, so a value written directly is overwritten by the next update. In particular, a stack's description is the 'description' field in the project's Pulumi.yaml, surfaced as the 'pulumi:description' tag — set it by editing Pulumi.yaml rather than by creating the tag.",
      "type": "object",
      "inputProperties": {
        "name": {
          "type": "string",
          "description": "The tag key, which must conform to the stack tag naming rules."
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "projectName": {
          "type": "string",
          "description": "The project name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "stackName": {
          "type": "string",
          "description": "The stack name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "value": {
          "type": "string",
          "description": "The tag value associated with this key."
        }
      },
      "requiredInputs": [
        "name",
        "orgName",
        "projectName",
        "stackName",
        "value"
      ]
    },
    "pulumiservice:api/stacks:Webhook": {
      "description": "Creates a new webhook for the specified stack. The request body must include the webhook name, payload URL, and format.\n\nThe `format` field accepts: `raw` (default), `slack`, `ms_teams`, or `pulumi_deployments`.\n\nThe `filters` field accepts a list of event types to subscribe to. See the [webhook event filtering documentation](https://www.pulumi.com/docs/pulumi-cloud/webhooks/#event-filtering) for available filters.\n\nThe optional `secret` field sets the HMAC key for signature verification. See the [webhook headers documentation](https://www.pulumi.com/docs/pulumi-cloud/webhooks/#headers) for details.\n\nReturns 409 if a webhook with the same name already exists. Returns 400 if the organization or stack name in the request body does not match the URL path parameters.",
      "properties": {
        "active": {
          "type": "boolean",
          "description": "Whether the webhook is active and will receive deliveries."
        },
        "displayName": {
          "type": "string",
          "description": "The human-readable display name shown in the UI."
        },
        "envName": {
          "type": "string",
          "description": "The environment name. Set when the webhook is scoped to a specific environment."
        },
        "filters": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Specific event types this webhook subscribes to. If empty, all events are delivered."
        },
        "format": {
          "type": "string",
          "description": "The format of the webhook payload (e.g., 'raw', 'slack', 'ms_teams')."
        },
        "groups": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Event groups this webhook subscribes to (e.g., 'stacks', 'deployments')."
        },
        "hasSecret": {
          "type": "boolean",
          "description": "HasSecret is true if the webhook has a secret. This is used to determine whether\nto show that there is a secret in the UI.",
          "secret": true
        },
        "name": {
          "type": "string",
          "description": "The unique identifier name for the webhook within its scope. Optional on creation; if omitted, the service generates a short random name. Always populated in responses."
        },
        "organizationName": {
          "type": "string",
          "description": "The organization that owns this webhook."
        },
        "payloadUrl": {
          "type": "string",
          "description": "The URL to which webhook payloads are delivered."
        },
        "projectName": {
          "type": "string",
          "description": "The project name. Set when the webhook is scoped to a specific stack."
        },
        "secret": {
          "type": "string",
          "description": "Secret will be omitted when returned from the service.",
          "secret": true
        },
        "secretCiphertext": {
          "type": "string",
          "description": "SecretCiphertext is the ciphertext value of the webhook's secret.\nIt's used to check whether the secret was changed by the PSP",
          "secret": true
        },
        "stackName": {
          "type": "string",
          "description": "The stack name. Set when the webhook is scoped to a specific stack."
        }
      },
      "type": "object",
      "required": [
        "active",
        "displayName",
        "hasSecret",
        "organizationName",
        "payloadUrl",
        "secretCiphertext"
      ],
      "inputProperties": {
        "active": {
          "type": "boolean",
          "description": "Whether the webhook is active and will receive deliveries."
        },
        "displayName": {
          "type": "string",
          "description": "The human-readable display name shown in the UI."
        },
        "envName": {
          "type": "string",
          "description": "The environment name. Set when the webhook is scoped to a specific environment."
        },
        "filters": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Specific event types this webhook subscribes to. If empty, all events are delivered."
        },
        "format": {
          "type": "string",
          "description": "The format of the webhook payload (e.g., 'raw', 'slack', 'ms_teams')."
        },
        "groups": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Event groups this webhook subscribes to (e.g., 'stacks', 'deployments')."
        },
        "name": {
          "type": "string",
          "description": "The unique identifier name for the webhook within its scope. Optional on creation; if omitted, the service generates a short random name. Always populated in responses.",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "organizationName": {
          "type": "string",
          "description": "The organization that owns this webhook.",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "payloadUrl": {
          "type": "string",
          "description": "The URL to which webhook payloads are delivered."
        },
        "projectName": {
          "type": "string",
          "description": "The project name. Set when the webhook is scoped to a specific stack.",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "secret": {
          "type": "string",
          "description": "Secret will be omitted when returned from the service.",
          "secret": true
        },
        "stackName": {
          "type": "string",
          "description": "The stack name. Set when the webhook is scoped to a specific stack.",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        }
      },
      "requiredInputs": [
        "active",
        "displayName",
        "organizationName",
        "payloadUrl",
        "projectName",
        "stackName"
      ]
    },
    "pulumiservice:api/teams:Role": {
      "description": "UpdateTeamRoles upserts the role assigned to a team since we currently only support\na 1:1 mapping of teams to roles.",
      "type": "object",
      "inputProperties": {
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "roleID": {
          "type": "string",
          "description": "The role identifier",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "teamName": {
          "type": "string",
          "description": "The team name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        }
      },
      "requiredInputs": [
        "orgName",
        "roleID",
        "teamName"
      ]
    },
    "pulumiservice:api/teams:Team": {
      "description": "CreatePulumiTeam creates a \"Pulumi\" team, i.e. one whose membership is managed by Pulumi.\n(As opposed to a GitHub or GitLab-based team.)",
      "properties": {
        "accounts": {
          "type": "array",
          "items": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "The list of account permissions granted to the team."
        },
        "description": {
          "type": "string",
          "description": "A free-form text description of the team's purpose."
        },
        "displayName": {
          "type": "string",
          "description": "The human-readable display name shown in the UI."
        },
        "environments": {
          "type": "array",
          "items": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "The list of environment settings for the team."
        },
        "kind": {
          "type": "string",
          "description": "The kind of team (e.g., pulumi or GitHub-backed)."
        },
        "listMembersError": {
          "type": "string",
          "description": "ListMembersError is the error message if an error was encountered whilst trying to\ncontact the team's backend (eg. GitHub). The UI will only show this error if it is non-nil\nand if Members itself is an empty slice."
        },
        "members": {
          "type": "array",
          "items": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "The list of team members."
        },
        "name": {
          "type": "string",
          "description": "The unique identifier name of the team within the organization."
        },
        "roleIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "RoleIDs are the IDs of the FGA roles assigned to the team, if any.\nCurrently only one role per team is supported."
        },
        "stacks": {
          "type": "array",
          "items": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "The list of stack permissions granted to the team."
        },
        "userRole": {
          "type": "string",
          "description": "UserRole is the calling user's role on the given team."
        }
      },
      "type": "object",
      "required": [
        "description",
        "displayName",
        "kind",
        "name"
      ],
      "inputProperties": {
        "description": {
          "type": "string",
          "description": "The description"
        },
        "displayName": {
          "type": "string",
          "description": "The display name"
        },
        "name": {
          "type": "string",
          "description": "The name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        }
      },
      "requiredInputs": [
        "description",
        "displayName",
        "name",
        "orgName"
      ]
    },
    "pulumiservice:api/tokens:OrgToken": {
      "description": "Generates a new access token scoped to the organization for use in CI/CD pipelines and automated workflows. Organization tokens belong to the organization rather than individual users, ensuring that access is not disrupted when team members leave.\n\nThe `name` field must be unique across the organization (including deleted tokens) and cannot exceed 40 characters. The `expires` field accepts a unix epoch timestamp up to two years from the present, or `0` for no expiry (default).\n\n**Important:** The token value in the response is only returned once at creation time and cannot be retrieved later. Audit logs for actions performed with organization tokens are attributed to the organization rather than an individual user.\n\nThis request must be authenticated as a user, for example with a personal access token. Organization and team access tokens cannot create organization tokens, even when they have the Admin role, so that a token cannot be used to mint further organization tokens. Such requests return a 403 error.",
      "properties": {
        "tokenId": {
          "type": "string",
          "description": "The unique identifier"
        },
        "tokenValue": {
          "type": "string",
          "description": "The token value",
          "secret": true
        }
      },
      "type": "object",
      "required": [
        "tokenId",
        "tokenValue"
      ],
      "inputProperties": {
        "admin": {
          "type": "boolean",
          "description": "Whether the entity has admin privileges"
        },
        "description": {
          "type": "string",
          "description": "The description"
        },
        "expires": {
          "type": "integer",
          "description": "The expiration time"
        },
        "name": {
          "type": "string",
          "description": "The name"
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "reason": {
          "type": "string",
          "description": "Audit log reason for creating this token",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "roleID": {
          "type": "string",
          "description": "The role identifier"
        }
      },
      "requiredInputs": [
        "admin",
        "description",
        "expires",
        "name",
        "orgName"
      ]
    },
    "pulumiservice:api/tokens:PersonalToken": {
      "description": "Creates a new personal access token for the authenticated user. The request body includes a description for the token and an optional expiration time. The response includes the token ID and the tokenValue (prefixed with 'pul-'). The token value is only returned once at creation time and cannot be retrieved later.",
      "properties": {
        "tokenId": {
          "type": "string",
          "description": "The unique identifier"
        },
        "tokenValue": {
          "type": "string",
          "description": "The token value",
          "secret": true
        }
      },
      "type": "object",
      "required": [
        "tokenId",
        "tokenValue"
      ],
      "inputProperties": {
        "description": {
          "type": "string",
          "description": "The description"
        },
        "expires": {
          "type": "integer",
          "description": "The expiration time"
        },
        "reason": {
          "type": "string",
          "description": "Tracks the context that triggered token creation (e.g., redirect URL or referral source)",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        }
      },
      "requiredInputs": [
        "description",
        "expires"
      ]
    },
    "pulumiservice:api/tokens:TeamToken": {
      "description": "Generates a new access token scoped to a specific team within an organization. Team tokens inherit the stack permissions assigned to the team, making them suitable for CI/CD pipelines that need access limited to a specific set of stacks.\n\nThe `name` field must be unique across the organization (including deleted tokens) and cannot exceed 40 characters. The `expires` field accepts a unix epoch timestamp up to two years from the present, or `0` for no expiry (default).\n\n**Important:** The token value in the response is only returned once at creation time and cannot be retrieved later.",
      "properties": {
        "tokenId": {
          "type": "string",
          "description": "The unique identifier"
        },
        "tokenValue": {
          "type": "string",
          "description": "The token value",
          "secret": true
        }
      },
      "type": "object",
      "required": [
        "tokenId",
        "tokenValue"
      ],
      "inputProperties": {
        "description": {
          "type": "string",
          "description": "The description"
        },
        "expires": {
          "type": "integer",
          "description": "The expiration time"
        },
        "name": {
          "type": "string",
          "description": "The name"
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "reason": {
          "type": "string",
          "description": "Audit log reason for creating this token",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "teamName": {
          "type": "string",
          "description": "The team name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        }
      },
      "requiredInputs": [
        "description",
        "expires",
        "name",
        "orgName",
        "teamName"
      ]
    },
    "pulumiservice:api:AgentAutomationV2": {
      "description": "Creates an organization-owned scheduled or triggered agent automation in the specified organization. Set kind to scheduled or triggered and provide the corresponding configuration. Webhook automation responses include a secret that is shown only once.",
      "properties": {
        "asyncTriggerType": {
          "type": "string",
          "description": "The async trigger type for this automation."
        },
        "automationID": {
          "type": "string",
          "description": "The unique identifier for this automation."
        },
        "kind": {
          "type": "string",
          "description": "The automation kind."
        },
        "lastExecuted": {
          "type": "string",
          "description": "The timestamp when this automation last ran, if any."
        },
        "lastRunStatus": {
          "type": "string",
          "description": "The result of the most recent automation run, if any. Valid values currently include 'succeeded', 'failed', and 'skipped'."
        },
        "name": {
          "type": "string",
          "description": "A human-readable name for this automation."
        },
        "nextExecution": {
          "type": "string",
          "description": "The timestamp of the next scheduled execution. Present for scheduled automations."
        },
        "notificationTargets": {
          "type": "array",
          "items": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "The destinations that receive notifications about automation runs."
        },
        "paused": {
          "type": "boolean",
          "description": "Whether future executions are currently paused."
        },
        "scheduleCron": {
          "type": "string",
          "description": "A standard five-field cron expression in UTC that controls when this automation runs. Present for scheduled automations."
        },
        "task": {
          "$ref": "pulumi.json#/Any",
          "description": "The task configuration used for each run of this automation, including the prompt, attached entities, and task execution settings. Each run creates a fresh task from this definition.",
          "secret": true
        },
        "trigger": {
          "$ref": "pulumi.json#/Any",
          "description": "The trigger configuration for this automation. Present for triggered automations.",
          "secret": true
        }
      },
      "type": "object",
      "required": [
        "asyncTriggerType",
        "automationID",
        "kind",
        "name",
        "notificationTargets",
        "paused",
        "task"
      ],
      "inputProperties": {
        "automationID": {
          "type": "string",
          "description": "The automation identifier",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "kind": {
          "type": "string",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "name": {
          "type": "string",
          "description": "A human-readable name for the automation."
        },
        "notificationTargets": {
          "type": "array",
          "items": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "The destinations that receive notifications about automation runs."
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "scheduleCron": {
          "type": "string",
          "description": "A standard five-field cron expression in UTC that controls when the automation runs. The minimum interval between consecutive runs must be at least 10 minutes; tighter schedules are rejected."
        },
        "task": {
          "$ref": "pulumi.json#/Any",
          "description": "The task configuration that should be used whenever the automation runs. This includes the prompt, attached entities, and task execution settings such as plan mode, approval mode, permission mode, tool execution mode, and enabled integrations. Each automation run creates a fresh task from this definition.",
          "secret": true
        },
        "trigger": {
          "$ref": "pulumi.json#/Any",
          "description": "The event source and shared configuration for this triggered automation.",
          "secret": true
        }
      },
      "requiredInputs": [
        "kind",
        "name",
        "orgName",
        "task"
      ]
    },
    "pulumiservice:api:AuditLogExportConfiguration": {
      "description": "Creates or updates the organization's automated audit log export configuration. Audit log export enables automatic delivery of audit events to an S3 bucket for long-term retention and SIEM integration. The configuration includes the S3 bucket details and IAM role for authentication. This feature is available on Business Critical edition.",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Whether audit log export is currently active. May be paused automatically if the configured destination repeatedly fails to authenticate."
        },
        "lastResult": {
          "$ref": "pulumi.json#/Any",
          "description": "The result of the last audit log export attempt."
        },
        "s3Config": {
          "$ref": "pulumi.json#/Any",
          "description": "The S3 configuration for exporting audit logs."
        }
      },
      "type": "object",
      "required": [
        "enabled",
        "lastResult",
        "s3Config"
      ],
      "inputProperties": {
        "newEnabled": {
          "type": "boolean",
          "description": "Whether the audit log export is enabled."
        },
        "newS3Configuration": {
          "$ref": "pulumi.json#/Any",
          "description": "The new S3 configuration for audit log export."
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        }
      },
      "requiredInputs": [
        "newEnabled",
        "newS3Configuration",
        "orgName"
      ]
    },
    "pulumiservice:api:DefaultOrganization": {
      "description": "UpdateDefaultOrganization sets the default organization for the current user.",
      "properties": {
        "GitHubLogin": {
          "type": "string",
          "description": "Returns the organization name. Can be an empty string, if the user is a member of no organizations"
        },
        "Messages": {
          "type": "array",
          "items": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "Messages is a list of messages that should be displayed to the user that contextualize\nthe default org; for example: warning new users if their default org as returned by the\nservice is on an expiring trial and not free tier, with possible recommendations\non how to configure their default org locally.\nCan be possibly empty."
        }
      },
      "type": "object",
      "required": [
        "GitHubLogin",
        "Messages"
      ],
      "inputProperties": {
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        }
      },
      "requiredInputs": [
        "orgName"
      ]
    },
    "pulumiservice:api:Gate": {
      "description": "Creates a new change gate for an entity in the organization. Change gates enforce approval workflows by requiring one or more approvals before infrastructure changes can be applied to the protected resource.",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Whether the change gate is enabled"
        },
        "gateID": {
          "type": "string",
          "description": "Unique identifier of the change gate"
        },
        "name": {
          "type": "string",
          "description": "Name of the change gate"
        },
        "rule": {
          "$ref": "pulumi.json#/Any",
          "description": "Rule configuration for the gate"
        },
        "target": {
          "$ref": "pulumi.json#/Any",
          "description": "Target configuration for the gate"
        }
      },
      "type": "object",
      "required": [
        "enabled",
        "gateID",
        "name",
        "rule",
        "target"
      ],
      "inputProperties": {
        "enabled": {
          "type": "boolean",
          "description": "Whether the change gate is enabled"
        },
        "gateID": {
          "type": "string",
          "description": "The change gate identifier",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "name": {
          "type": "string",
          "description": "Name of the change gate"
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "rule": {
          "$ref": "pulumi.json#/Any",
          "description": "Rule configuration for the gate"
        },
        "target": {
          "$ref": "pulumi.json#/Any",
          "description": "Target configuration for the gate"
        }
      },
      "requiredInputs": [
        "enabled",
        "name",
        "orgName",
        "rule",
        "target"
      ]
    },
    "pulumiservice:api:OrgTemplateCollection": {
      "description": "Creates a new template collection (source) for an organization. Template collections define where project templates are sourced from, such as a Git repository. Organization members can use these templates to create new stacks with pre-configured infrastructure code.",
      "properties": {
        "destination": {
          "$ref": "pulumi.json#/Any",
          "description": "Deprecated - use destinationURL instead."
        },
        "destinationURL": {
          "type": "string",
          "description": "The destination URL for the template source."
        },
        "error": {
          "type": "string",
          "description": "An error message if the template source is invalid. Omitted or empty when the source is valid."
        },
        "isValid": {
          "type": "boolean",
          "description": "Whether the template source configuration is valid."
        },
        "name": {
          "type": "string",
          "description": "The human-readable name for this template source."
        },
        "sourceURL": {
          "type": "string",
          "description": "The source URL to fetch templates from."
        },
        "templateID": {
          "type": "string",
          "description": "The unique identifier of the template source."
        }
      },
      "type": "object",
      "required": [
        "isValid",
        "name",
        "sourceURL",
        "templateID"
      ],
      "inputProperties": {
        "destination": {
          "$ref": "pulumi.json#/Any",
          "description": "deprecated - use DestinationURL instead"
        },
        "destinationURL": {
          "type": "string",
          "description": "The destination URL for the template source."
        },
        "name": {
          "type": "string",
          "description": "The name of the template source."
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "sourceURL": {
          "type": "string",
          "description": "The source URL to fetch templates from."
        }
      },
      "requiredInputs": [
        "name",
        "orgName",
        "sourceURL"
      ]
    },
    "pulumiservice:api:OrganizationMember": {
      "description": "Adds an existing Pulumi user to an organization with a built-in role. **Important:** The user must have already signed up for a Pulumi account before they can be added to an organization.\n\nThis endpoint only assigns built-in roles. To onboard a user with a custom role, use the organization invite flow (`BatchCreateOrgInviteEmail`) and set `roleId` on the invite — the custom role is applied when the user accepts. Alternatively, add the user here with a built-in role and then call `UpdateOrganizationMember` with `fgaRoleId` to reassign.\n\nReturns the newly created organization member record. Returns 409 if the user is already a member of the organization.",
      "properties": {
        "created": {
          "type": "string",
          "description": "When the member joined the organization."
        },
        "fgaRole": {
          "$ref": "pulumi.json#/Any",
          "description": "The role currently assigned to this member — either a built-in role (member, admin, billingManager) or a custom role. Falls back to the organization's default role if no role is assigned directly."
        },
        "knownToPulumi": {
          "type": "boolean",
          "description": "KnownToPulumi returns if the organization member has a Pulumi account."
        },
        "links": {
          "$ref": "pulumi.json#/Any",
          "description": "Links to the member in the Pulumi Console"
        },
        "role": {
          "type": "string",
          "description": "**Deprecated:** Use `fgaRole` instead. The member's built-in role within the organization. For members assigned a custom role, this is the closest built-in projection (`member`, `admin`, or `billingManager`) and may lose detail; `fgaRole` is authoritative."
        },
        "suspended": {
          "type": "boolean",
          "description": "Suspended indicates that the membership is suspended: the member keeps their\nplace in the organization but has no access until an administrator restores them.\nSuspended members are only included in responses when explicitly requested."
        },
        "teams": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Deprecated. Use GetOrganizationMemberTeams to list teams."
        },
        "user": {
          "$ref": "pulumi.json#/Any",
          "description": "The user information for this organization member."
        },
        "virtualAdmin": {
          "type": "boolean",
          "description": "VirtualAdmin indicates that the member does not have admin access on the\nbacking identity provider, but does have admin access to the Pulumi organization."
        }
      },
      "type": "object",
      "required": [
        "created",
        "fgaRole",
        "knownToPulumi",
        "role",
        "user",
        "virtualAdmin"
      ],
      "inputProperties": {
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "role": {
          "type": "string",
          "description": "The built-in role assigned to the new member. Must be `member`, `admin`, or `billingManager`."
        },
        "userLogin": {
          "type": "string",
          "description": "The user login name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        }
      },
      "requiredInputs": [
        "orgName",
        "role",
        "userLogin"
      ]
    },
    "pulumiservice:api:OrganizationWebhook": {
      "description": "Creates a new webhook for an organization to notify external services when events occur. Webhooks can be configured to fire on stack events (created, deleted, update succeeded/failed), deployment events (queued, started, succeeded, failed), drift detection events, and policy violation events (mandatory, advisory).\n\nThe `format` field accepts: `raw` (default), `slack`, `ms_teams`, or `pulumi_deployments`.\n\nThe `filters` field accepts a list of event types to subscribe to. See the [webhook event filtering documentation](https://www.pulumi.com/docs/pulumi-cloud/webhooks/#event-filtering) for available filters.\n\nThe optional `secret` field sets the HMAC key for signature verification via the `Pulumi-Webhook-Signature` header. See the [webhook headers documentation](https://www.pulumi.com/docs/pulumi-cloud/webhooks/#headers) for details.",
      "properties": {
        "active": {
          "type": "boolean",
          "description": "Whether the webhook is active and will receive deliveries."
        },
        "displayName": {
          "type": "string",
          "description": "The human-readable display name shown in the UI."
        },
        "envName": {
          "type": "string",
          "description": "The environment name. Set when the webhook is scoped to a specific environment."
        },
        "filters": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Specific event types this webhook subscribes to. If empty, all events are delivered."
        },
        "format": {
          "type": "string",
          "description": "The format of the webhook payload (e.g., 'raw', 'slack', 'ms_teams')."
        },
        "groups": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Event groups this webhook subscribes to (e.g., 'stacks', 'deployments')."
        },
        "hasSecret": {
          "type": "boolean",
          "description": "HasSecret is true if the webhook has a secret. This is used to determine whether\nto show that there is a secret in the UI.",
          "secret": true
        },
        "name": {
          "type": "string",
          "description": "The unique identifier name for the webhook within its scope. Optional on creation; if omitted, the service generates a short random name. Always populated in responses."
        },
        "organizationName": {
          "type": "string",
          "description": "The organization that owns this webhook."
        },
        "payloadUrl": {
          "type": "string",
          "description": "The URL to which webhook payloads are delivered."
        },
        "projectName": {
          "type": "string",
          "description": "The project name. Set when the webhook is scoped to a specific stack."
        },
        "secret": {
          "type": "string",
          "description": "Secret will be omitted when returned from the service.",
          "secret": true
        },
        "secretCiphertext": {
          "type": "string",
          "description": "SecretCiphertext is the ciphertext value of the webhook's secret.\nIt's used to check whether the secret was changed by the PSP",
          "secret": true
        },
        "stackName": {
          "type": "string",
          "description": "The stack name. Set when the webhook is scoped to a specific stack."
        }
      },
      "type": "object",
      "required": [
        "active",
        "displayName",
        "hasSecret",
        "organizationName",
        "payloadUrl",
        "secretCiphertext"
      ],
      "inputProperties": {
        "active": {
          "type": "boolean",
          "description": "Whether the webhook is active and will receive deliveries."
        },
        "displayName": {
          "type": "string",
          "description": "The human-readable display name shown in the UI."
        },
        "envName": {
          "type": "string",
          "description": "The environment name. Set when the webhook is scoped to a specific environment."
        },
        "filters": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Specific event types this webhook subscribes to. If empty, all events are delivered."
        },
        "format": {
          "type": "string",
          "description": "The format of the webhook payload (e.g., 'raw', 'slack', 'ms_teams')."
        },
        "groups": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Event groups this webhook subscribes to (e.g., 'stacks', 'deployments')."
        },
        "name": {
          "type": "string",
          "description": "The unique identifier name for the webhook within its scope. Optional on creation; if omitted, the service generates a short random name. Always populated in responses.",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "organizationName": {
          "type": "string",
          "description": "The organization that owns this webhook.",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "payloadUrl": {
          "type": "string",
          "description": "The URL to which webhook payloads are delivered."
        },
        "projectName": {
          "type": "string",
          "description": "The project name. Set when the webhook is scoped to a specific stack."
        },
        "secret": {
          "type": "string",
          "description": "Secret will be omitted when returned from the service.",
          "secret": true
        },
        "stackName": {
          "type": "string",
          "description": "The stack name. Set when the webhook is scoped to a specific stack."
        }
      },
      "requiredInputs": [
        "active",
        "displayName",
        "organizationName",
        "payloadUrl"
      ]
    },
    "pulumiservice:api:PolicyGroup": {
      "description": "Creates a new Policy Group for an organization. Policy Groups define which Policy Packs are enforced on which stacks or cloud accounts, with configurable enforcement levels (advisory, mandatory, or disabled) per pack. This allows different policy strictness for different environments, such as advisory-only in development and mandatory in production.",
      "properties": {
        "accountMatchRule": {
          "$ref": "pulumi.json#/Any",
          "description": "Preview: the account match rule, a boolean expression over Insights account tags. Accounts whose tags satisfy it are members of the group alongside the accounts added individually. Absent when the group has no rule."
        },
        "accounts": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The Insights accounts added to this policy group individually, with `addInsightsAccount`."
        },
        "agentPoolId": {
          "type": "string",
          "description": "Agent pool ID for audit policy evaluation. Defaults to Pulumi hosted pool if not specified."
        },
        "appliedPolicyPacks": {
          "type": "array",
          "items": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "List of policy packs that are applied to this policy group."
        },
        "entityType": {
          "type": "string",
          "description": "Deprecated: a legacy label set when the policy group was created. It does not restrict which entities the group holds; `mode` does."
        },
        "isOrgDefault": {
          "type": "boolean",
          "description": "True if this is either the default stacks or default accounts policy group for the organization."
        },
        "mode": {
          "type": "string",
          "description": "The enforcement mode for the policy group (audit or preventative)."
        },
        "name": {
          "type": "string",
          "description": "The name of the policy group."
        },
        "stackMatchRule": {
          "$ref": "pulumi.json#/Any",
          "description": "Preview: the stack match rule, a boolean expression over stack tags. Stacks whose tags satisfy it are members of the group alongside the stacks added individually. Absent when the group has no rule."
        },
        "stacks": {
          "type": "array",
          "items": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "The stacks added to this policy group individually, with `addStack`."
        }
      },
      "type": "object",
      "required": [
        "accounts",
        "appliedPolicyPacks",
        "entityType",
        "isOrgDefault",
        "mode",
        "name",
        "stacks"
      ],
      "inputProperties": {
        "accountMatchRule": {
          "$ref": "pulumi.json#/Any",
          "description": "Preview: an account match rule to create the group with, a boolean expression over Insights account tags. Requires the tag-based policy groups feature; not allowed on preventative groups."
        },
        "agentPoolId": {
          "type": "string",
          "description": "Agent pool ID for policy evaluation. Defaults to Pulumi hosted pool if not specified."
        },
        "entityType": {
          "type": "string",
          "description": "Deprecated: a legacy label, `stacks` or `accounts`. When `mode` is omitted it picks the mode (`accounts` → audit, `stacks` → preventative). When this is omitted, it is derived from `mode`. It does not restrict which entities the group can hold."
        },
        "mode": {
          "type": "string",
          "description": "The enforcement mode for the policy group (audit or preventative). The mode decides what the group can hold: an audit group holds stacks and Insights accounts, a preventative group holds stacks only. Required unless the deprecated `entityType` is sent. Fixed at creation; it cannot be changed later.",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "name": {
          "type": "string",
          "description": "The name of the new policy group. Up to 100 characters, made up of letters, numbers, hyphens, underscores, periods, or spaces, and may not begin or end with a space.",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "stackMatchRule": {
          "$ref": "pulumi.json#/Any",
          "description": "Preview: a stack match rule to create the group with, a boolean expression over stack tags. Requires the tag-based policy groups feature."
        }
      },
      "requiredInputs": [
        "name",
        "orgName"
      ]
    },
    "pulumiservice:api:PolicyGroupInsightsAccountAttachment": {
      "description": "Manages a single membership edge through UpdatePolicyGroup (addInsightsAccount / removeInsightsAccount).",
      "properties": {
        "name": {
          "type": "string"
        },
        "orgName": {
          "type": "string",
          "description": "The organization name"
        },
        "policyGroup": {
          "type": "string",
          "description": "The policy group name"
        }
      },
      "type": "object",
      "required": [
        "name",
        "orgName",
        "policyGroup"
      ],
      "inputProperties": {
        "name": {
          "type": "string",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "policyGroup": {
          "type": "string",
          "description": "The policy group name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        }
      },
      "requiredInputs": [
        "name",
        "orgName",
        "policyGroup"
      ]
    },
    "pulumiservice:api:PolicyGroupStackAttachment": {
      "description": "Manages a single membership edge through UpdatePolicyGroup (addStack / removeStack).",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name"
        },
        "orgName": {
          "type": "string",
          "description": "The organization name"
        },
        "policyGroup": {
          "type": "string",
          "description": "The policy group name"
        },
        "routingProject": {
          "type": "string",
          "description": "The routing project"
        }
      },
      "type": "object",
      "required": [
        "name",
        "orgName",
        "policyGroup",
        "routingProject"
      ],
      "inputProperties": {
        "name": {
          "type": "string",
          "description": "The name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "policyGroup": {
          "type": "string",
          "description": "The policy group name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "routingProject": {
          "type": "string",
          "description": "The routing project",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        }
      },
      "requiredInputs": [
        "name",
        "orgName",
        "policyGroup",
        "routingProject"
      ]
    },
    "pulumiservice:api:Role": {
      "description": "Creates a new custom role for an organization. Custom roles define fine-grained permission sets that can be assigned to organization members and teams, enabling precise access control beyond the built-in admin and member roles. Optionally, an associated policy and role binding can be created alongside the role. Role definitions are subject to two limits: a permission descriptor group may contain at most 2000 entries (each directly-specified entity counts as one entry), and the total serialized size of the role definition may not exceed 1 MB. Exceeding either limit returns a 400 error. If you need to grant access to more than 2000 individually listed resources, use tag-based (ABAC) rules instead.",
      "properties": {
        "created": {
          "type": "string",
          "description": "When the role was created."
        },
        "defaultIdentifier": {
          "type": "string",
          "description": "The identifier for default roles. Empty for custom roles."
        },
        "description": {
          "type": "string",
          "description": "A human-readable description of the permission descriptor."
        },
        "details": {
          "$ref": "pulumi.json#/Any",
          "description": "The detailed permission descriptor tree."
        },
        "isOrgDefault": {
          "type": "boolean",
          "description": "Whether this role is the organization default."
        },
        "modified": {
          "type": "string",
          "description": "When the role was last modified."
        },
        "name": {
          "type": "string",
          "description": "The name of the permission descriptor."
        },
        "orgId": {
          "type": "string",
          "description": "The ID of the organization this role belongs to."
        },
        "resourceType": {
          "type": "string",
          "description": "The resource type this permission descriptor applies to."
        },
        "roleID": {
          "type": "string",
          "description": "The unique identifier for this role."
        },
        "uxPurpose": {
          "type": "string",
          "description": "The UX purpose of this permission descriptor (e.g. role, policy, set)."
        },
        "version": {
          "type": "integer",
          "description": "The version of this role."
        }
      },
      "type": "object",
      "required": [
        "created",
        "isOrgDefault",
        "modified",
        "orgId",
        "roleID",
        "version"
      ],
      "inputProperties": {
        "createPolicyAndRole": {
          "type": "boolean",
          "description": "Also create an associated policy and role binding alongside the role",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "description": {
          "type": "string",
          "description": "A human-readable description of the permission descriptor."
        },
        "details": {
          "$ref": "pulumi.json#/Any",
          "description": "The detailed permission descriptor tree."
        },
        "name": {
          "type": "string",
          "description": "The name of the permission descriptor."
        },
        "orgName": {
          "type": "string",
          "description": "The organization name",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "resourceType": {
          "type": "string",
          "description": "The resource type this permission descriptor applies to."
        },
        "roleID": {
          "type": "string",
          "description": "The role identifier",
          "replaceOnChanges": true,
          "willReplaceOnChanges": true
        },
        "uxPurpose": {
          "type": "string",
          "description": "The UX purpose of this permission descriptor (e.g. role, policy, set)."
        }
      },
      "requiredInputs": [
        "orgName"
      ]
    },
    "pulumiservice:index:AccessToken": {
      "description": "Creates a personal access token for the Pulumi Cloud user that the provider is authenticated as. The token acts with that user's permissions.\n\nTo create a token that isn't tied to a user, use `OrgAccessToken` or `TeamAccessToken`.\n\n## Import\n\nThis resource can be imported using its `id`, which has the format `{tokenId}`, e.g.,\n\n```sh\n $ pulumi import pulumiservice:index:AccessToken my-access-token 3f2b9c1e-7d4a-4e8b-9a61-0c5d2e8f7b13\n```\n\nThe Pulumi Cloud console doesn't show the token ID. List it with the [Pulumi Cloud REST API](https://www.pulumi.com/docs/reference/cloud-rest-api/):\n\n```sh\ncurl -s -H \"Authorization: token $PULUMI_ACCESS_TOKEN\" \\\n  https://api.pulumi.com/api/user/tokens | jq '.tokens[] | {name, id}'\n```\n\nThe token's `value` can't be read back from Pulumi Cloud, so it's empty after import.\n",
      "properties": {
        "description": {
          "type": "string",
          "description": "Description of the access token.",
          "replaceOnChanges": true
        },
        "expires": {
          "type": "string",
          "description": "When the token expires, as an RFC 3339 date-time such as `2027-06-30T17:00:00Z`. Omit it for a token that never expires. Pulumi Cloud rejects an expiry that is in the past or more than two years away.",
          "replaceOnChanges": true
        },
        "value": {
          "type": "string",
          "description": "The token's value.",
          "secret": true
        }
      },
      "required": [
        "description",
        "value"
      ],
      "inputProperties": {
        "description": {
          "type": "string",
          "description": "Description of the access token.",
          "replaceOnChanges": true
        },
        "expires": {
          "type": "string",
          "description": "When the token expires, as an RFC 3339 date-time such as `2027-06-30T17:00:00Z`. Omit it for a token that never expires. Pulumi Cloud rejects an expiry that is in the past or more than two years away.",
          "replaceOnChanges": true
        }
      },
      "requiredInputs": [
        "description"
      ]
    },
    "pulumiservice:index:AgentPool": {
      "description": "Agent Pool for customer managed deployments.\n\n## Import\n\nThis resource can be imported using its `id`, which has the format `{organization}/{name}/{agentPoolId}`, e.g.,\n\n```sh\n $ pulumi import pulumiservice:index:AgentPool my-agent-pool my-org/my-pool/e4a1b7c2-9f30-4d58-b6e1-2a7c9d0f4e86\n```\n\nThe agent pool ID is the last segment of its page URL in the Pulumi Cloud console, for example `https://app.pulumi.com/my-org/settings/workflow-runner-pools/e4a1b7c2-9f30-4d58-b6e1-2a7c9d0f4e86`.\n\nThe pool's `tokenValue` can't be read back from Pulumi Cloud, so it's empty after import.\n",
      "properties": {
        "agentPoolId": {
          "type": "string",
          "description": "The agent pool identifier."
        },
        "description": {
          "type": "string",
          "description": "Description of the agent pool."
        },
        "forceDestroy": {
          "type": "boolean",
          "description": "Optional. Flag indicating whether to delete the agent pool even if stacks are configured to use it."
        },
        "name": {
          "type": "string",
          "description": "Name of the agent pool."
        },
        "organizationName": {
          "type": "string",
          "description": "The organization's name.",
          "replaceOnChanges": true
        },
        "tokenValue": {
          "type": "string",
          "description": "The agent pool's token's value.",
          "secret": true
        }
      },
      "required": [
        "organizationName",
        "name",
        "agentPoolId",
        "tokenValue"
      ],
      "inputProperties": {
        "description": {
          "type": "string",
          "description": "Description of the agent pool."
        },
        "forceDestroy": {
          "type": "boolean",
          "description": "Optional. Flag indicating whether to delete the agent pool even if stacks are configured to use it."
        },
        "name": {
          "type": "string",
          "description": "Name of the agent pool."
        },
        "organizationName": {
          "type": "string",
          "description": "The organization's name.",
          "replaceOnChanges": true
        }
      },
      "requiredInputs": [
        "organizationName",
        "name"
      ]
    },
    "pulumiservice:index:ApprovalRule": {
      "description": "An approval rule for environment deployments.\n\n## Import\n\nThis resource can be imported using its `id`, which has the format `environment/{organization}/{project}/{environment}/{ruleId}`, e.g.,\n\n```sh\n $ pulumi import pulumiservice:index:ApprovalRule my-approval-rule environment/my-org/my-project/my-environment/0b9e6f2d-4c81-4a37-9e5b-7f2d1a6c8e03\n```\n\nThe ID starts with the literal segment `environment`.\n\nThe rule ID is the last segment of its page URL in the Pulumi Cloud console, for example `https://app.pulumi.com/my-org/esc/my-project/my-environment/change-requests/ruleset/0b9e6f2d-4c81-4a37-9e5b-7f2d1a6c8e03`.\n",
      "properties": {
        "approvalRuleConfig": {
          "$ref": "#/types/pulumiservice:index:ApprovalRuleConfig",
          "description": "The approval rule configuration."
        },
        "enabled": {
          "type": "boolean",
          "description": "Whether the approval rule is enabled."
        },
        "environmentIdentifier": {
          "$ref": "#/types/pulumiservice:index:EnvironmentIdentifier",
          "description": "The environment this rule applies to."
        },
        "name": {
          "type": "string",
          "description": "The name of the approval rule.",
          "replaceOnChanges": true
        },
        "targetActionTypes": {
          "type": "array",
          "items": {
            "$ref": "#/types/pulumiservice:index:TargetActionType"
          },
          "description": "The type of action this rule applies to."
        }
      },
      "required": [
        "name",
        "enabled",
        "targetActionTypes",
        "environmentIdentifier",
        "approvalRuleConfig"
      ],
      "inputProperties": {
        "approvalRuleConfig": {
          "$ref": "#/types/pulumiservice:index:ApprovalRuleConfig",
          "description": "The approval rule configuration."
        },
        "enabled": {
          "type": "boolean",
          "description": "Whether the approval rule is enabled."
        },
        "environmentIdentifier": {
          "$ref": "#/types/pulumiservice:index:EnvironmentIdentifier",
          "description": "The environment this rule applies to."
        },
        "name": {
          "type": "string",
          "description": "The name of the approval rule.",
          "replaceOnChanges": true
        },
        "targetActionTypes": {
          "type": "array",
          "items": {
            "$ref": "#/types/pulumiservice:index:TargetActionType"
          },
          "description": "The type of action this rule applies to."
        }
      },
      "requiredInputs": [
        "name",
        "enabled",
        "targetActionTypes",
        "environmentIdentifier",
        "approvalRuleConfig"
      ]
    },
    "pulumiservice:index:DeploymentSchedule": {
      "description": "A scheduled recurring or single time run of a pulumi command.\n\n## Import\n\nThis resource can be imported using its `id`, which has the format `{organization}/{project}/{stack}/{scheduleId}`, e.g.,\n\n```sh\n $ pulumi import pulumiservice:index:DeploymentSchedule my-deployment-schedule my-org/my-project/my-stack/7d3c5e1a-0f8b-4b26-a9d4-3e6f2b8c1a59\n```\n\nThe Pulumi Cloud console doesn't show the schedule ID. List it with the [Pulumi Cloud REST API](https://www.pulumi.com/docs/reference/cloud-rest-api/):\n\n```sh\ncurl -s -H \"Authorization: token $PULUMI_ACCESS_TOKEN\" \\\n  https://api.pulumi.com/api/stacks/my-org/my-project/my-stack/deployments/schedules | jq '.schedules[]'\n```\n",
      "properties": {
        "organization": {
          "type": "string",
          "description": "Organization name.",
          "replaceOnChanges": true
        },
        "project": {
          "type": "string",
          "description": "Project name.",
          "replaceOnChanges": true
        },
        "pulumiOperation": {
          "$ref": "#/types/pulumiservice:index:PulumiOperation",
          "description": "Which command to run."
        },
        "scheduleCron": {
          "type": "string",
          "description": "Cron expression for recurring scheduled runs. If you are supplying this, do not supply timestamp."
        },
        "scheduleId": {
          "type": "string",
          "description": "Schedule ID of the created schedule, assigned by Pulumi Cloud."
        },
        "stack": {
          "type": "string",
          "description": "Stack name.",
          "replaceOnChanges": true
        },
        "timestamp": {
          "type": "string",
          "description": "The time at which the schedule should run, in ISO 8601 format. Eg: 2020-01-01T00:00:00Z. If you are supplying this, do not supply scheduleCron.",
          "replaceOnChanges": true
        }
      },
      "required": [
        "organization",
        "project",
        "stack",
        "pulumiOperation",
        "scheduleId"
      ],
      "inputProperties": {
        "organization": {
          "type": "string",
          "description": "Organization name.",
          "replaceOnChanges": true
        },
        "project": {
          "type": "string",
          "description": "Project name.",
          "replaceOnChanges": true
        },
        "pulumiOperation": {
          "$ref": "#/types/pulumiservice:index:PulumiOperation",
          "description": "Which command to run."
        },
        "scheduleCron": {
          "type": "string",
          "description": "Cron expression for recurring scheduled runs. If you are supplying this, do not supply timestamp."
        },
        "stack": {
          "type": "string",
          "description": "Stack name.",
          "replaceOnChanges": true
        },
        "timestamp": {
          "type": "string",
          "description": "The time at which the schedule should run, in ISO 8601 format. Eg: 2020-01-01T00:00:00Z. If you are supplying this, do not supply scheduleCron.",
          "replaceOnChanges": true
        }
      },
      "requiredInputs": [
        "organization",
        "project",
        "stack",
        "pulumiOperation"
      ]
    },
    "pulumiservice:index:DeploymentSettings": {
      "description": "Deployment settings configure Pulumi Deployments for a stack.\n\nPulumi ESC is the recommended way to supply cloud credentials to Pulumi Deployments. See [Supplying Cloud Credentials to Pulumi Deployments](https://www.pulumi.com/docs/deployments/guides/cloud-credentials/) to choose between ESC and Deployments OIDC (`operationContext.oidc`).\n\n{{% examples %}}\n## Example Usage\n\n{{% example %}}\n### Deploy on every commit\n\nThis runs `pulumi up` on each push to `main` that changes a file under `infra/`, and `pulumi preview` on pull requests. The organization must have the Pulumi GitHub app installed on the repository.\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as pulumiservice from \"@pulumi/pulumiservice\";\n\nconst settings = new pulumiservice.DeploymentSettings(\"settings\", {\n    organization: \"my-org\",\n    project: \"my-project\",\n    stack: \"dev\",\n    sourceContext: {\n        git: {\n            branch: \"refs/heads/main\",\n        },\n    },\n    github: {\n        repository: \"my-org/my-repo\",\n        deployCommits: true,\n        previewPullRequests: true,\n        paths: [\"infra/**\"],\n    },\n});\n```\n```python\nimport pulumi\nimport pulumi_pulumiservice as pulumiservice\n\nsettings = pulumiservice.DeploymentSettings(\"settings\",\n    organization=\"my-org\",\n    project=\"my-project\",\n    stack=\"dev\",\n    source_context={\n        \"git\": {\n            \"branch\": \"refs/heads/main\",\n        },\n    },\n    github={\n        \"repository\": \"my-org/my-repo\",\n        \"deploy_commits\": True,\n        \"preview_pull_requests\": True,\n        \"paths\": [\"infra/**\"],\n    })\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-pulumiservice/sdk/go/pulumiservice\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := pulumiservice.NewDeploymentSettings(ctx, \"settings\", &pulumiservice.DeploymentSettingsArgs{\n\t\t\tOrganization: pulumi.String(\"my-org\"),\n\t\t\tProject:      pulumi.String(\"my-project\"),\n\t\t\tStack:        pulumi.String(\"dev\"),\n\t\t\tSourceContext: &pulumiservice.DeploymentSettingsSourceContextArgs{\n\t\t\t\tGit: &pulumiservice.DeploymentSettingsGitSourceArgs{\n\t\t\t\t\tBranch: pulumi.String(\"refs/heads/main\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tGithub: &pulumiservice.DeploymentSettingsGithubArgs{\n\t\t\t\tRepository:          pulumi.String(\"my-org/my-repo\"),\n\t\t\t\tDeployCommits:       pulumi.Bool(true),\n\t\t\t\tPreviewPullRequests: pulumi.Bool(true),\n\t\t\t\tPaths: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"infra/**\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing PulumiService = Pulumi.PulumiService;\n\nreturn await Deployment.RunAsync(() =>\n{\n    var settings = new PulumiService.DeploymentSettings(\"settings\", new()\n    {\n        Organization = \"my-org\",\n        Project = \"my-project\",\n        Stack = \"dev\",\n        SourceContext = new PulumiService.Inputs.DeploymentSettingsSourceContextArgs\n        {\n            Git = new PulumiService.Inputs.DeploymentSettingsGitSourceArgs\n            {\n                Branch = \"refs/heads/main\",\n            },\n        },\n        Github = new PulumiService.Inputs.DeploymentSettingsGithubArgs\n        {\n            Repository = \"my-org/my-repo\",\n            DeployCommits = true,\n            PreviewPullRequests = true,\n            Paths = new[]\n            {\n                \"infra/**\",\n            },\n        },\n    });\n});\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.pulumiservice.DeploymentSettings;\nimport com.pulumi.pulumiservice.DeploymentSettingsArgs;\nimport com.pulumi.pulumiservice.inputs.DeploymentSettingsSourceContextArgs;\nimport com.pulumi.pulumiservice.inputs.DeploymentSettingsGitSourceArgs;\nimport com.pulumi.pulumiservice.inputs.DeploymentSettingsGithubArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n    public static void main(String[] args) {\n        Pulumi.run(App::stack);\n    }\n\n    public static void stack(Context ctx) {\n        var settings = new DeploymentSettings(\"settings\", DeploymentSettingsArgs.builder()\n            .organization(\"my-org\")\n            .project(\"my-project\")\n            .stack(\"dev\")\n            .sourceContext(DeploymentSettingsSourceContextArgs.builder()\n                .git(DeploymentSettingsGitSourceArgs.builder()\n                    .branch(\"refs/heads/main\")\n                    .build())\n                .build())\n            .github(DeploymentSettingsGithubArgs.builder()\n                .repository(\"my-org/my-repo\")\n                .deployCommits(true)\n                .previewPullRequests(true)\n                .paths(\"infra/**\")\n                .build())\n            .build());\n    }\n}\n```\n```yaml\nresources:\n  settings:\n    type: pulumiservice:DeploymentSettings\n    properties:\n      organization: my-org\n      project: my-project\n      stack: dev\n      sourceContext:\n        git:\n          branch: refs/heads/main\n      github:\n        repository: my-org/my-repo\n        deployCommits: true\n        previewPullRequests: true\n        paths:\n          - infra/**\n```\n{{% /example %}}\n{{% example %}}\n### Deploy when a git tag is pushed\n\nThis runs `pulumi up` when a tag matching `v*` is pushed, except release candidates such as `v1.2.0-rc1`. Pulumi Cloud rejects `deployCommits` and `deployTags` together, and `deployCommits` defaults to `true`, so set `deployCommits` to `false` when you enable `deployTags`. The organization must have the Pulumi GitHub app installed on the repository.\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as pulumiservice from \"@pulumi/pulumiservice\";\n\nconst settings = new pulumiservice.DeploymentSettings(\"settings\", {\n    organization: \"my-org\",\n    project: \"my-project\",\n    stack: \"production\",\n    sourceContext: {\n        git: {\n            branch: \"refs/heads/main\",\n        },\n    },\n    github: {\n        repository: \"my-org/my-repo\",\n        deployCommits: false,\n        deployTags: true,\n        tagFilters: [\n            \"v*\",\n            \"!*-rc*\",\n        ],\n    },\n});\n```\n```python\nimport pulumi\nimport pulumi_pulumiservice as pulumiservice\n\nsettings = pulumiservice.DeploymentSettings(\"settings\",\n    organization=\"my-org\",\n    project=\"my-project\",\n    stack=\"production\",\n    source_context={\n        \"git\": {\n            \"branch\": \"refs/heads/main\",\n        },\n    },\n    github={\n        \"repository\": \"my-org/my-repo\",\n        \"deploy_commits\": False,\n        \"deploy_tags\": True,\n        \"tag_filters\": [\n            \"v*\",\n            \"!*-rc*\",\n        ],\n    })\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-pulumiservice/sdk/go/pulumiservice\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := pulumiservice.NewDeploymentSettings(ctx, \"settings\", &pulumiservice.DeploymentSettingsArgs{\n\t\t\tOrganization: pulumi.String(\"my-org\"),\n\t\t\tProject:      pulumi.String(\"my-project\"),\n\t\t\tStack:        pulumi.String(\"production\"),\n\t\t\tSourceContext: &pulumiservice.DeploymentSettingsSourceContextArgs{\n\t\t\t\tGit: &pulumiservice.DeploymentSettingsGitSourceArgs{\n\t\t\t\t\tBranch: pulumi.String(\"refs/heads/main\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tGithub: &pulumiservice.DeploymentSettingsGithubArgs{\n\t\t\t\tRepository:    pulumi.String(\"my-org/my-repo\"),\n\t\t\t\tDeployCommits: pulumi.Bool(false),\n\t\t\t\tDeployTags:    pulumi.Bool(true),\n\t\t\t\tTagFilters: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"v*\"),\n\t\t\t\t\tpulumi.String(\"!*-rc*\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing PulumiService = Pulumi.PulumiService;\n\nreturn await Deployment.RunAsync(() =>\n{\n    var settings = new PulumiService.DeploymentSettings(\"settings\", new()\n    {\n        Organization = \"my-org\",\n        Project = \"my-project\",\n        Stack = \"production\",\n        SourceContext = new PulumiService.Inputs.DeploymentSettingsSourceContextArgs\n        {\n            Git = new PulumiService.Inputs.DeploymentSettingsGitSourceArgs\n            {\n                Branch = \"refs/heads/main\",\n            },\n        },\n        Github = new PulumiService.Inputs.DeploymentSettingsGithubArgs\n        {\n            Repository = \"my-org/my-repo\",\n            DeployCommits = false,\n            DeployTags = true,\n            TagFilters = new[]\n            {\n                \"v*\",\n                \"!*-rc*\",\n            },\n        },\n    });\n});\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.pulumiservice.DeploymentSettings;\nimport com.pulumi.pulumiservice.DeploymentSettingsArgs;\nimport com.pulumi.pulumiservice.inputs.DeploymentSettingsSourceContextArgs;\nimport com.pulumi.pulumiservice.inputs.DeploymentSettingsGitSourceArgs;\nimport com.pulumi.pulumiservice.inputs.DeploymentSettingsGithubArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n    public static void main(String[] args) {\n        Pulumi.run(App::stack);\n    }\n\n    public static void stack(Context ctx) {\n        var settings = new DeploymentSettings(\"settings\", DeploymentSettingsArgs.builder()\n            .organization(\"my-org\")\n            .project(\"my-project\")\n            .stack(\"production\")\n            .sourceContext(DeploymentSettingsSourceContextArgs.builder()\n                .git(DeploymentSettingsGitSourceArgs.builder()\n                    .branch(\"refs/heads/main\")\n                    .build())\n                .build())\n            .github(DeploymentSettingsGithubArgs.builder()\n                .repository(\"my-org/my-repo\")\n                .deployCommits(false)\n                .deployTags(true)\n                .tagFilters(\n                    \"v*\",\n                    \"!*-rc*\")\n                .build())\n            .build());\n    }\n}\n```\n```yaml\nresources:\n  settings:\n    type: pulumiservice:DeploymentSettings\n    properties:\n      organization: my-org\n      project: my-project\n      stack: production\n      sourceContext:\n        git:\n          branch: refs/heads/main\n      github:\n        repository: my-org/my-repo\n        # Pulumi Cloud rejects deployCommits and deployTags together, and\n        # deployCommits defaults to true.\n        deployCommits: false\n        deployTags: true\n        tagFilters:\n          - v*\n          - \"!*-rc*\"\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nThis resource can be imported using its `id`, which has the format `{organization}/{project}/{stack}`, e.g.,\n\n```sh\n $ pulumi import pulumiservice:index:DeploymentSettings my-deployment-settings my-org/my-project/my-stack\n```\n\nSecret values can't be read back from Pulumi Cloud, so import sets each one to the placeholder `<REPLACE WITH ACTUAL SECRET VALUE>`. Replace them with the real values in your program.\n",
      "properties": {
        "agentPoolId": {
          "type": "string",
          "description": "The agent pool identifier to use for the deployment."
        },
        "cacheOptions": {
          "$ref": "#/types/pulumiservice:index:DeploymentSettingsCacheOptions",
          "description": "Dependency cache settings for the deployment"
        },
        "executorContext": {
          "$ref": "#/types/pulumiservice:index:DeploymentSettingsExecutorContext",
          "description": "Settings related to the deployment executor."
        },
        "github": {
          "$ref": "#/types/pulumiservice:index:DeploymentSettingsGithub",
          "description": "GitHub settings for the deployment.",
          "deprecationMessage": "Use the 'vcs' property instead, which supports both GitHub and Azure DevOps."
        },
        "operationContext": {
          "$ref": "#/types/pulumiservice:index:DeploymentSettingsOperationContext",
          "description": "Settings related to the Pulumi operation environment during the deployment."
        },
        "organization": {
          "type": "string",
          "description": "Organization name."
        },
        "project": {
          "type": "string",
          "description": "Project name."
        },
        "sourceContext": {
          "$ref": "#/types/pulumiservice:index:DeploymentSettingsSourceContext",
          "description": "Settings related to the source of the deployment."
        },
        "stack": {
          "type": "string",
          "description": "Stack name."
        },
        "vcs": {
          "$ref": "#/types/pulumiservice:index:DeploymentSettingsVcs",
          "description": "VCS settings for the deployment. Supports Azure DevOps and GitHub via the 'provider' discriminator field."
        }
      },
      "required": [
        "organization",
        "project",
        "stack"
      ],
      "inputProperties": {
        "agentPoolId": {
          "type": "string",
          "description": "The agent pool identifier to use for the deployment."
        },
        "cacheOptions": {
          "$ref": "#/types/pulumiservice:index:DeploymentSettingsCacheOptions",
          "description": "Dependency cache settings for the deployment"
        },
        "executorContext": {
          "$ref": "#/types/pulumiservice:index:DeploymentSettingsExecutorContext",
          "description": "Settings related to the deployment executor."
        },
        "github": {
          "$ref": "#/types/pulumiservice:index:DeploymentSettingsGithub",
          "description": "GitHub settings for the deployment.",
          "deprecationMessage": "Use the 'vcs' property instead, which supports both GitHub and Azure DevOps."
        },
        "operationContext": {
          "$ref": "#/types/pulumiservice:index:DeploymentSettingsOperationContext",
          "description": "Settings related to the Pulumi operation environment during the deployment."
        },
        "organization": {
          "type": "string",
          "description": "Organization name.",
          "willReplaceOnChanges": true
        },
        "project": {
          "type": "string",
          "description": "Project name.",
          "willReplaceOnChanges": true
        },
        "sourceContext": {
          "$ref": "#/types/pulumiservice:index:DeploymentSettingsSourceContext",
          "description": "Settings related to the source of the deployment."
        },
        "stack": {
          "type": "string",
          "description": "Stack name.",
          "willReplaceOnChanges": true
        },
        "vcs": {
          "$ref": "#/types/pulumiservice:index:DeploymentSettingsVcs",
          "description": "VCS settings for the deployment. Supports Azure DevOps and GitHub via the 'provider' discriminator field."
        }
      },
      "requiredInputs": [
        "organization",
        "project",
        "stack"
      ]
    },
    "pulumiservice:index:DriftSchedule": {
      "description": "A cron schedule to run drift detection.\n\n## Import\n\nThis resource can be imported using its `id`, which has the format `{organization}/{project}/{stack}/drift/{scheduleId}`, e.g.,\n\n```sh\n $ pulumi import pulumiservice:index:DriftSchedule my-drift-schedule my-org/my-project/my-stack/drift/7d3c5e1a-0f8b-4b26-a9d4-3e6f2b8c1a59\n```\n\nThe Pulumi Cloud console doesn't show the schedule ID. List it with the [Pulumi Cloud REST API](https://www.pulumi.com/docs/reference/cloud-rest-api/):\n\n```sh\ncurl -s -H \"Authorization: token $PULUMI_ACCESS_TOKEN\" \\\n  https://api.pulumi.com/api/stacks/my-org/my-project/my-stack/deployments/schedules | jq '.schedules[]'\n```\n",
      "properties": {
        "autoRemediate": {
          "type": "boolean",
          "description": "Whether any drift detected should be remediated after a drift run.",
          "default": false
        },
        "organization": {
          "type": "string",
          "description": "Organization name.",
          "replaceOnChanges": true
        },
        "project": {
          "type": "string",
          "description": "Project name.",
          "replaceOnChanges": true
        },
        "scheduleCron": {
          "type": "string",
          "description": "Cron expression for when to run drift detection."
        },
        "scheduleId": {
          "type": "string",
          "description": "Schedule ID of the created schedule, assigned by Pulumi Cloud."
        },
        "stack": {
          "type": "string",
          "description": "Stack name.",
          "replaceOnChanges": true
        }
      },
      "required": [
        "organization",
        "project",
        "stack",
        "scheduleCron",
        "autoRemediate",
        "scheduleId"
      ],
      "inputProperties": {
        "autoRemediate": {
          "type": "boolean",
          "description": "Whether any drift detected should be remediated after a drift run.",
          "default": false
        },
        "organization": {
          "type": "string",
          "description": "Organization name.",
          "replaceOnChanges": true
        },
        "project": {
          "type": "string",
          "description": "Project name.",
          "replaceOnChanges": true
        },
        "scheduleCron": {
          "type": "string",
          "description": "Cron expression for when to run drift detection."
        },
        "stack": {
          "type": "string",
          "description": "Stack name.",
          "replaceOnChanges": true
        }
      },
      "requiredInputs": [
        "organization",
        "project",
        "stack",
        "scheduleCron"
      ]
    },
    "pulumiservice:index:Environment": {
      "description": "An ESC Environment.\n\n## Import\n\nThis resource can be imported using its `id`, which has the format `{organization}/{project}/{environment}`, e.g.,\n\n```sh\n $ pulumi import pulumiservice:index:Environment my-environment my-org/my-project/my-environment\n```\n\nThe legacy format `{organization}/{environment}` is also accepted, and uses the `default` project.\n",
      "properties": {
        "environmentId": {
          "type": "string",
          "description": "The environment's UUID. Use this as the `identity` value when pinning a custom RBAC role to this environment via a `PermissionLiteralExpressionEnvironment` in `OrganizationRole.permissions`, or pass it as the `id` of an `environmentRules` entry in `buildRolePermissions`."
        },
        "name": {
          "type": "string",
          "description": "Environment name."
        },
        "organization": {
          "type": "string",
          "description": "Organization name."
        },
        "project": {
          "type": "string",
          "description": "Project name."
        },
        "revision": {
          "type": "integer",
          "description": "Revision number of the latest version."
        },
        "yaml": {
          "$ref": "pulumi.json#/Asset",
          "description": "Environment's yaml file.",
          "secret": true
        }
      },
      "required": [
        "organization",
        "project",
        "name",
        "yaml",
        "revision"
      ],
      "inputProperties": {
        "name": {
          "type": "string",
          "description": "Environment name.",
          "replaceOnChanges": true
        },
        "organization": {
          "type": "string",
          "description": "Organization name.",
          "replaceOnChanges": true
        },
        "project": {
          "type": "string",
          "description": "Project name.",
          "default": "default",
          "replaceOnChanges": true
        },
        "yaml": {
          "$ref": "pulumi.json#/Asset",
          "description": "Environment's yaml file.",
          "secret": true
        }
      },
      "requiredInputs": [
        "organization",
        "name",
        "yaml"
      ]
    },
    "pulumiservice:index:EnvironmentRotationSchedule": {
      "description": "A scheduled recurring or single time environment rotation.\n\n## Import\n\nThis resource can be imported using its `id`, which has the format `{organization}/{project}/{environment}/rotations/{scheduleId}`, e.g.,\n\n```sh\n $ pulumi import pulumiservice:index:EnvironmentRotationSchedule my-environment-rotation-schedule my-org/my-project/my-environment/rotations/c2f8a4d6-3e1b-4c97-8b50-1d9e7a2f6c34\n```\n\nThe Pulumi Cloud console doesn't show the schedule ID. List it with the [Pulumi Cloud REST API](https://www.pulumi.com/docs/reference/cloud-rest-api/):\n\n```sh\ncurl -s -H \"Authorization: token $PULUMI_ACCESS_TOKEN\" \\\n  https://api.pulumi.com/api/esc/environments/my-org/my-project/my-environment/schedules | jq '.schedules[]'\n```\n",
      "properties": {
        "environment": {
          "type": "string",
          "description": "Environment name.",
          "replaceOnChanges": true
        },
        "organization": {
          "type": "string",
          "description": "Organization name.",
          "replaceOnChanges": true
        },
        "project": {
          "type": "string",
          "description": "Project name.",
          "replaceOnChanges": true
        },
        "scheduleCron": {
          "type": "string",
          "description": "Cron expression for recurring scheduled rotations. If you are supplying this, do not supply timestamp."
        },
        "scheduleId": {
          "type": "string",
          "description": "Schedule ID of the created rotation schedule, assigned by Pulumi Cloud."
        },
        "timestamp": {
          "type": "string",
          "description": "The time at which the rotation should run, in ISO 8601 format. Eg: 2020-01-01T00:00:00Z. If you are supplying this, do not supply scheduleCron.",
          "replaceOnChanges": true
        }
      },
      "required": [
        "organization",
        "project",
        "environment",
        "scheduleId"
      ],
      "inputProperties": {
        "environment": {
          "type": "string",
          "description": "Environment name.",
          "replaceOnChanges": true
        },
        "organization": {
          "type": "string",
          "description": "Organization name.",
          "replaceOnChanges": true
        },
        "project": {
          "type": "string",
          "description": "Project name.",
          "replaceOnChanges": true
        },
        "scheduleCron": {
          "type": "string",
          "description": "Cron expression for recurring scheduled rotations. If you are supplying this, do not supply timestamp."
        },
        "timestamp": {
          "type": "string",
          "description": "The time at which the rotation should run, in ISO 8601 format. Eg: 2020-01-01T00:00:00Z. If you are supplying this, do not supply scheduleCron.",
          "replaceOnChanges": true
        }
      },
      "requiredInputs": [
        "organization",
        "project",
        "environment"
      ]
    },
    "pulumiservice:index:EnvironmentVersionTag": {
      "description": "A tag on a specific revision of an environment.\n\n## Import\n\nThis resource can be imported using its `id`, which has the format `{organization}/{project}/{environment}/{tagName}`, e.g.,\n\n```sh\n $ pulumi import pulumiservice:index:EnvironmentVersionTag my-environment-version-tag my-org/my-project/my-environment/my-tag\n```\n\nThe legacy format `{organization}/{environment}/{tagName}` is also accepted, and uses the `default` project.\n",
      "properties": {
        "environment": {
          "type": "string",
          "description": "Environment name.",
          "replaceOnChanges": true
        },
        "organization": {
          "type": "string",
          "description": "Organization name.",
          "replaceOnChanges": true
        },
        "project": {
          "type": "string",
          "description": "Project name.",
          "default": "default",
          "replaceOnChanges": true
        },
        "revision": {
          "type": "integer",
          "description": "Revision number."
        },
        "tagName": {
          "type": "string",
          "description": "Tag name.",
          "replaceOnChanges": true
        }
      },
      "required": [
        "organization",
        "project",
        "environment",
        "tagName",
        "revision"
      ],
      "inputProperties": {
        "environment": {
          "type": "string",
          "description": "Environment name.",
          "replaceOnChanges": true
        },
        "organization": {
          "type": "string",
          "description": "Organization name.",
          "replaceOnChanges": true
        },
        "project": {
          "type": "string",
          "description": "Project name.",
          "default": "default",
          "replaceOnChanges": true
        },
        "revision": {
          "type": "integer",
          "description": "Revision number."
        },
        "tagName": {
          "type": "string",
          "description": "Tag name.",
          "replaceOnChanges": true
        }
      },
      "requiredInputs": [
        "organization",
        "environment",
        "tagName",
        "revision"
      ]
    },
    "pulumiservice:index:InsightsAccount": {
      "description": "Insights Account for cloud resource scanning and analysis across AWS, Azure, and GCP.\n\n## Import\n\nThis resource can be imported using its `id`, which has the format `{organization}/{accountName}`, e.g.,\n\n```sh\n $ pulumi import pulumiservice:index:InsightsAccount my-insights-account my-org/my-account\n```\n\n`scanSchedule` isn't read back from Pulumi Cloud, so set it in your program after import.\n",
      "properties": {
        "accountName": {
          "type": "string",
          "description": "Name of the insights account.",
          "replaceOnChanges": true
        },
        "environment": {
          "type": "string",
          "description": "The ESC environment used for provider credentials. Format: 'project/environment' with optional '@version' suffix (e.g., 'my-project/prod-env' or 'my-project/prod-env@v1.0')."
        },
        "insightsAccountId": {
          "type": "string",
          "description": "The insights account identifier."
        },
        "organizationName": {
          "type": "string",
          "description": "The organization's name.",
          "replaceOnChanges": true
        },
        "provider": {
          "$ref": "#/types/pulumiservice:index:CloudProvider",
          "description": "The cloud provider for scanning.",
          "replaceOnChanges": true
        },
        "providerConfig": {
          "type": "object",
          "additionalProperties": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "Provider-specific configuration as a JSON object. For AWS, specify regions to scan: {\"regions\": [\"us-west-1\", \"us-west-2\"]}."
        },
        "scanSchedule": {
          "$ref": "#/types/pulumiservice:index:ScanSchedule",
          "description": "Schedule for automated scanning. Use 'daily' for daily scans, '12h' for scans every twelve hours, or 'none' to disable scheduled scanning. Defaults to 'none'.",
          "default": "none"
        },
        "scheduledScanEnabled": {
          "type": "boolean",
          "description": "Whether scheduled scanning is enabled."
        },
        "tags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Key-value tags to associate with the insights account."
        }
      },
      "required": [
        "organizationName",
        "accountName",
        "provider",
        "environment",
        "scanSchedule",
        "insightsAccountId",
        "scheduledScanEnabled"
      ],
      "inputProperties": {
        "accountName": {
          "type": "string",
          "description": "Name of the insights account.",
          "replaceOnChanges": true
        },
        "environment": {
          "type": "string",
          "description": "The ESC environment used for provider credentials. Format: 'project/environment' with optional '@version' suffix (e.g., 'my-project/prod-env' or 'my-project/prod-env@v1.0')."
        },
        "organizationName": {
          "type": "string",
          "description": "The organization's name.",
          "replaceOnChanges": true
        },
        "provider": {
          "$ref": "#/types/pulumiservice:index:CloudProvider",
          "description": "The cloud provider for scanning.",
          "replaceOnChanges": true
        },
        "providerConfig": {
          "type": "object",
          "additionalProperties": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "Provider-specific configuration as a JSON object. For AWS, specify regions to scan: {\"regions\": [\"us-west-1\", \"us-west-2\"]}."
        },
        "scanSchedule": {
          "$ref": "#/types/pulumiservice:index:ScanSchedule",
          "description": "Schedule for automated scanning. Use 'daily' for daily scans, '12h' for scans every twelve hours, or 'none' to disable scheduled scanning. Defaults to 'none'.",
          "default": "none"
        },
        "tags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Key-value tags to associate with the insights account."
        }
      },
      "requiredInputs": [
        "organizationName",
        "accountName",
        "provider",
        "environment",
        "scanSchedule"
      ]
    },
    "pulumiservice:index:OidcIssuer": {
      "description": "Register an OIDC Provider to establish a trust relationship between third-party systems like GitHub Actions and Pulumi Cloud, obviating the need to store a hard-coded Pulumi Cloud token in systems that need to run Pulumi commands or consume Pulumi Cloud APIs. Instead of a hard-coded, static token that must be manually rotated, trusted systems are granted temporary Pulumi Cloud tokens on an as-needed basis, which is more secure than static tokens.\n\n## Import\n\nThis resource can be imported using its `id`, which has the format `{organization}/{issuerId}`, e.g.,\n\n```sh\n $ pulumi import pulumiservice:index:OidcIssuer my-oidc-issuer my-org/9a6e2c4f-8b17-4d03-a5c9-6f1e3b7d2a80\n```\n\nThe Pulumi Cloud console doesn't show the issuer ID. List it with the [Pulumi Cloud REST API](https://www.pulumi.com/docs/reference/cloud-rest-api/):\n\n```sh\ncurl -s -H \"Authorization: token $PULUMI_ACCESS_TOKEN\" \\\n  https://api.pulumi.com/api/orgs/my-org/oidc/issuers | jq '.oidcIssuers[] | {name, id}'\n```\n",
      "properties": {
        "maxExpirationSeconds": {
          "type": "integer",
          "description": "The maximum duration of the Pulumi access token working after an exchange, specified in seconds."
        },
        "name": {
          "type": "string",
          "description": "Issuer name."
        },
        "organization": {
          "type": "string",
          "description": "Organization name.",
          "replaceOnChanges": true
        },
        "policies": {
          "type": "array",
          "items": {
            "$ref": "#/types/pulumiservice:index:AuthPolicyDefinition"
          },
          "description": "The auth policies for this Oidc Issuer."
        },
        "thumbprints": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The thumbprints of issuer's TLS certificates. By default, Pulumi will store the thumbprint of the certificate used to serve the OpenID configuration. If the provider uses multiple certificates to serve content, it is required to manually configure these."
        },
        "url": {
          "type": "string",
          "description": "The OIDC issuer URL.",
          "replaceOnChanges": true
        }
      },
      "required": [
        "organization",
        "name",
        "url",
        "thumbprints",
        "policies"
      ],
      "inputProperties": {
        "maxExpirationSeconds": {
          "type": "integer",
          "description": "The maximum duration of the Pulumi access token working after an exchange, specified in seconds."
        },
        "name": {
          "type": "string",
          "description": "Issuer name."
        },
        "organization": {
          "type": "string",
          "description": "Organization name.",
          "replaceOnChanges": true
        },
        "policies": {
          "type": "array",
          "items": {
            "$ref": "#/types/pulumiservice:index:AuthPolicyDefinition"
          },
          "description": "The auth policies for this Oidc Issuer."
        },
        "thumbprints": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The thumbprints of issuer's TLS certificates. By default, Pulumi will store the thumbprint of the certificate used to serve the OpenID configuration. If the provider uses multiple certificates to serve content, it is required to manually configure these."
        },
        "url": {
          "type": "string",
          "description": "The OIDC issuer URL.",
          "replaceOnChanges": true
        }
      },
      "requiredInputs": [
        "organization",
        "name",
        "url"
      ]
    },
    "pulumiservice:index:OrgAccessToken": {
      "description": "Creates an organization access token in Pulumi Cloud. Organization tokens aren't tied to a user, so they suit CI/CD and other automation.\n\nThe provider must authenticate as a user, for example with a personal access token, to create or delete this resource. Pulumi Cloud rejects organization and team access tokens here, even Admin ones, with `403 Machine tokens are not allowed to perform this operation`, so that one machine token can't mint another. For automation, use the personal access token of a dedicated service-account user, or use `TeamAccessToken`, which has no such restriction.\n\n{{% examples %}}\n## Example Usage\n\n{{% example %}}\n### Token with an expiry and a custom role\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as pulumiservice from \"@pulumi/pulumiservice\";\n\nconst ciDeployerRole = pulumiservice.getOrganizationRoleOutput({\n    organizationName: \"my-org\",\n    name: \"CI Deployer\",\n});\nconst ciToken = new pulumiservice.OrgAccessToken(\"ciToken\", {\n    organizationName: \"my-org\",\n    name: \"ci-token\",\n    description: \"Token for CI pipelines\",\n    expires: \"2027-06-30T17:00:00Z\",\n    roleId: ciDeployerRole.roleId,\n});\nexport const ciTokenValue = ciToken.value;\n```\n\n```python\nimport pulumi\nimport pulumi_pulumiservice as pulumiservice\n\nci_deployer_role = pulumiservice.get_organization_role_output(organization_name=\"my-org\",\n    name=\"CI Deployer\")\nci_token = pulumiservice.OrgAccessToken(\"ciToken\",\n    organization_name=\"my-org\",\n    name=\"ci-token\",\n    description=\"Token for CI pipelines\",\n    expires=\"2027-06-30T17:00:00Z\",\n    role_id=ci_deployer_role.role_id)\npulumi.export(\"ciTokenValue\", ci_token.value)\n```\n\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-pulumiservice/sdk/go/pulumiservice\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tciDeployerRole := pulumiservice.GetOrganizationRoleOutput(ctx, pulumiservice.GetOrganizationRoleOutputArgs{\n\t\t\tOrganizationName: pulumi.String(\"my-org\"),\n\t\t\tName:             pulumi.String(\"CI Deployer\"),\n\t\t}, nil)\n\t\tciToken, err := pulumiservice.NewOrgAccessToken(ctx, \"ciToken\", &pulumiservice.OrgAccessTokenArgs{\n\t\t\tOrganizationName: pulumi.String(\"my-org\"),\n\t\t\tName:             pulumi.String(\"ci-token\"),\n\t\t\tDescription:      pulumi.String(\"Token for CI pipelines\"),\n\t\t\tExpires:          pulumi.String(\"2027-06-30T17:00:00Z\"),\n\t\t\tRoleId:           ciDeployerRole.RoleId(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"ciTokenValue\", ciToken.Value)\n\t\treturn nil\n\t})\n}\n```\n\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing PulumiService = Pulumi.PulumiService;\n\nreturn await Deployment.RunAsync(() => \n{\n    var ciDeployerRole = PulumiService.GetOrganizationRole.Invoke(new()\n    {\n        OrganizationName = \"my-org\",\n        Name = \"CI Deployer\",\n    });\n\n    var ciToken = new PulumiService.OrgAccessToken(\"ciToken\", new()\n    {\n        OrganizationName = \"my-org\",\n        Name = \"ci-token\",\n        Description = \"Token for CI pipelines\",\n        Expires = \"2027-06-30T17:00:00Z\",\n        RoleId = ciDeployerRole.Apply(getOrganizationRoleResult => getOrganizationRoleResult.RoleId),\n    });\n\n    return new Dictionary<string, object?>\n    {\n        [\"ciTokenValue\"] = ciToken.Value,\n    };\n});\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.pulumiservice.PulumiserviceFunctions;\nimport com.pulumi.pulumiservice.inputs.GetOrganizationRoleArgs;\nimport com.pulumi.pulumiservice.OrgAccessToken;\nimport com.pulumi.pulumiservice.OrgAccessTokenArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n    public static void main(String[] args) {\n        Pulumi.run(App::stack);\n    }\n\n    public static void stack(Context ctx) {\n        final var ciDeployerRole = PulumiserviceFunctions.getOrganizationRole(GetOrganizationRoleArgs.builder()\n            .organizationName(\"my-org\")\n            .name(\"CI Deployer\")\n            .build());\n\n        var ciToken = new OrgAccessToken(\"ciToken\", OrgAccessTokenArgs.builder()\n            .organizationName(\"my-org\")\n            .name(\"ci-token\")\n            .description(\"Token for CI pipelines\")\n            .expires(\"2027-06-30T17:00:00Z\")\n            .roleId(ciDeployerRole.applyValue(_ciDeployerRole -> _ciDeployerRole.roleId()))\n            .build());\n\n        ctx.export(\"ciTokenValue\", ciToken.value());\n    }\n}\n```\n\n```yaml\nvariables:\n  ciDeployerRole:\n    fn::invoke:\n      function: pulumiservice:getOrganizationRole\n      arguments:\n        organizationName: my-org\n        name: CI Deployer\nresources:\n  ciToken:\n    type: pulumiservice:OrgAccessToken\n    properties:\n      organizationName: my-org\n      name: ci-token\n      description: Token for CI pipelines\n      expires: \"2027-06-30T17:00:00Z\"\n      roleId: ${ciDeployerRole.roleId}\noutputs:\n  ciTokenValue: ${ciToken.value}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nThis resource can be imported using its `id`, which has the format `{organization}/{name}/{tokenId}`, e.g.,\n\n```sh\n $ pulumi import pulumiservice:index:OrgAccessToken my-org-access-token my-org/my-token/a81d4c3e-52f0-4b7a-b9e2-6d0f1c8e2a47\n```\n\nThe Pulumi Cloud console doesn't show the token ID. List it with the [Pulumi Cloud REST API](https://www.pulumi.com/docs/reference/cloud-rest-api/):\n\n```sh\ncurl -s -H \"Authorization: token $PULUMI_ACCESS_TOKEN\" \\\n  https://api.pulumi.com/api/orgs/my-org/tokens | jq '.tokens[] | {name, id}'\n```\n\nThe token's `value` can't be read back from Pulumi Cloud, so it's empty after import.\n",
      "properties": {
        "admin": {
          "type": "boolean",
          "description": "Whether the token has the Admin role. Defaults to `false`. Mutually exclusive with `roleId`: set `admin: true` or `roleId`, not both.",
          "default": false,
          "replaceOnChanges": true
        },
        "description": {
          "type": "string",
          "description": "A description of the token.",
          "replaceOnChanges": true
        },
        "expires": {
          "type": "string",
          "description": "When the token expires, as an RFC 3339 date-time such as `2027-06-30T17:00:00Z`. Omit it for a token that never expires. Pulumi Cloud rejects an expiry that is in the past, more than two years away, or beyond the organization's maximum token lifetime.",
          "replaceOnChanges": true
        },
        "name": {
          "type": "string",
          "description": "The name for the token.",
          "replaceOnChanges": true
        },
        "organizationName": {
          "type": "string",
          "description": "The organization's name.",
          "replaceOnChanges": true
        },
        "roleId": {
          "type": "string",
          "description": "The ID of the role to assign to the token. Use `getOrganizationRole` to look up a role's ID by its name. Mutually exclusive with `admin: true`: set one or the other, not both. Pulumi Cloud accepts both, but some of its permission checks still treat such a token as an Admin whatever its role, so the provider rejects the combination. When neither is set, the token gets the Member role.",
          "replaceOnChanges": true
        },
        "value": {
          "type": "string",
          "description": "The token's value.",
          "secret": true
        }
      },
      "required": [
        "name",
        "organizationName",
        "admin",
        "value"
      ],
      "inputProperties": {
        "admin": {
          "type": "boolean",
          "description": "Whether the token has the Admin role. Defaults to `false`. Mutually exclusive with `roleId`: set `admin: true` or `roleId`, not both.",
          "default": false,
          "replaceOnChanges": true
        },
        "description": {
          "type": "string",
          "description": "A description of the token.",
          "replaceOnChanges": true
        },
        "expires": {
          "type": "string",
          "description": "When the token expires, as an RFC 3339 date-time such as `2027-06-30T17:00:00Z`. Omit it for a token that never expires. Pulumi Cloud rejects an expiry that is in the past, more than two years away, or beyond the organization's maximum token lifetime.",
          "replaceOnChanges": true
        },
        "name": {
          "type": "string",
          "description": "The name for the token.",
          "replaceOnChanges": true
        },
        "organizationName": {
          "type": "string",
          "description": "The organization's name.",
          "replaceOnChanges": true
        },
        "roleId": {
          "type": "string",
          "description": "The ID of the role to assign to the token. Use `getOrganizationRole` to look up a role's ID by its name. Mutually exclusive with `admin: true`: set one or the other, not both. Pulumi Cloud accepts both, but some of its permission checks still treat such a token as an Admin whatever its role, so the provider rejects the combination. When neither is set, the token gets the Member role.",
          "replaceOnChanges": true
        }
      },
      "requiredInputs": [
        "name",
        "organizationName"
      ]
    },
    "pulumiservice:index:OrganizationDefaultRole": {
      "description": "Sets the default role of a Pulumi Cloud organization: the role that members without an explicit role follow, and that new members receive. Set either `role`, for a built-in role, or `roleId`, for a custom role. An organization always has a default role and Pulumi Cloud has no call to clear it, so destroying this resource leaves the current default role in place. At most one `OrganizationDefaultRole` should manage an organization.\n\n## Import\n\nThis resource can be imported using its `id`, which has the format `{organization}`, e.g.,\n\n```sh\n $ pulumi import pulumiservice:index:OrganizationDefaultRole my-organization-default-role my-org\n```\n",
      "properties": {
        "organizationName": {
          "type": "string",
          "description": "The Pulumi Cloud organization name.",
          "replaceOnChanges": true
        },
        "role": {
          "type": "string",
          "description": "The built-in role to use as the default. One of `reader`, `builder` or `maintainer`. Exactly one of `role` and `roleId` must be set."
        },
        "roleId": {
          "type": "string",
          "description": "The ID of a custom role to use as the default. Exactly one of `role` and `roleId` must be set."
        },
        "roleName": {
          "type": "string",
          "description": "The name of the current default role."
        }
      },
      "required": [
        "organizationName",
        "roleName"
      ],
      "inputProperties": {
        "organizationName": {
          "type": "string",
          "description": "The Pulumi Cloud organization name.",
          "replaceOnChanges": true
        },
        "role": {
          "type": "string",
          "description": "The built-in role to use as the default. One of `reader`, `builder` or `maintainer`. Exactly one of `role` and `roleId` must be set."
        },
        "roleId": {
          "type": "string",
          "description": "The ID of a custom role to use as the default. Exactly one of `role` and `roleId` must be set."
        }
      },
      "requiredInputs": [
        "organizationName"
      ]
    },
    "pulumiservice:index:OrganizationMember": {
      "description": "Manages a user's membership in a Pulumi Cloud organization and their assigned role. The user must already have a Pulumi Cloud account before they can be added. Custom (fine-grained) roles are assigned by setting `roleId`; built-in roles are assigned by setting `role`. When both are set, `roleId` takes precedence.\n\n## Import\n\nThis resource can be imported using its `id`, which has the format `{organization}/{username}`, e.g.,\n\n```sh\n $ pulumi import pulumiservice:index:OrganizationMember my-organization-member my-org/my-user\n```\n",
      "properties": {
        "adopted": {
          "type": "boolean",
          "description": "True when this resource adopted an existing organization member (the user was already in the org at Create time). Adopted memberships are left in place on destroy; only the role is reset."
        },
        "email": {
          "type": "string",
          "description": "The member's email address."
        },
        "name": {
          "type": "string",
          "description": "The member's display name."
        },
        "organizationName": {
          "type": "string",
          "description": "The Pulumi Cloud organization name.",
          "replaceOnChanges": true
        },
        "role": {
          "type": "string",
          "description": "The built-in organization role. One of `member`, `admin`, `billing-manager`, `reader`, `builder`, `maintainer`. `reader`, `builder` and `maintainer` exist only in organizations that use stored default roles. In those organizations `member` means the organization's default role: the member follows it if an administrator changes it. Defaults to `member` on create. Ignored when `roleId` is set."
        },
        "roleId": {
          "type": "string",
          "description": "The ID of a custom (fine-grained) organization role to assign. Takes precedence over `role`."
        },
        "roleName": {
          "type": "string",
          "description": "The name of the currently assigned role (custom role name, or built-in role)."
        },
        "username": {
          "type": "string",
          "description": "The Pulumi Cloud username of the member.",
          "replaceOnChanges": true
        }
      },
      "required": [
        "organizationName",
        "username",
        "name",
        "email",
        "roleName",
        "adopted"
      ],
      "inputProperties": {
        "organizationName": {
          "type": "string",
          "description": "The Pulumi Cloud organization name.",
          "replaceOnChanges": true
        },
        "role": {
          "type": "string",
          "description": "The built-in organization role. One of `member`, `admin`, `billing-manager`, `reader`, `builder`, `maintainer`. `reader`, `builder` and `maintainer` exist only in organizations that use stored default roles. In those organizations `member` means the organization's default role: the member follows it if an administrator changes it. Defaults to `member` on create. Ignored when `roleId` is set."
        },
        "roleId": {
          "type": "string",
          "description": "The ID of a custom (fine-grained) organization role to assign. Takes precedence over `role`."
        },
        "username": {
          "type": "string",
          "description": "The Pulumi Cloud username of the member.",
          "replaceOnChanges": true
        }
      },
      "requiredInputs": [
        "organizationName",
        "username"
      ]
    },
    "pulumiservice:index:OrganizationMemberEntityAccess": {
      "description": "Grants one organization member a permission set on one stack, environment or Insights account, as in the entity access section of the Pulumi Cloud console. See the [entity access docs](https://www.pulumi.com/docs/administration/concepts/rbac/entities/). Each resource manages the grant of one member on one entity. Other grants of the member, and grants of other members on the same entity, are not touched, and destroying the resource removes only this grant. Set either `permission`, for a built-in permission set, or `permissionSetId`, for a custom one.\n\n## Import\n\nThis resource can be imported using its `id`, which has the format `{organization}/{username}/{entityType}/{entityName}`, e.g.,\n\n```sh\n $ pulumi import pulumiservice:index:OrganizationMemberEntityAccess my-organization-member-entity-access my-org/alice/stack/my-project/dev\n```\n\n`entityType` is `stack`, `environment` or `insightsAccount`. `entityName` is `{project}/{stack}`, `{project}/{environment}` or the account name.\n",
      "properties": {
        "entityId": {
          "type": "string",
          "description": "The ID of the entity Pulumi Cloud stores the grant against."
        },
        "entityName": {
          "type": "string",
          "description": "The name of the entity: `{project}/{stack}` for a stack, `{project}/{environment}` for an environment, or the account name for an Insights account.",
          "replaceOnChanges": true
        },
        "entityType": {
          "type": "string",
          "description": "The kind of entity to grant access to. One of `stack`, `environment` or `insightsAccount`.",
          "replaceOnChanges": true
        },
        "organizationName": {
          "type": "string",
          "description": "The Pulumi Cloud organization name.",
          "replaceOnChanges": true
        },
        "permission": {
          "type": "string",
          "description": "The built-in permission set to grant, for example `stack-read`, `stack-write`, `stack-admin`, `environment-read`, `environment-open`, `environment-write`, `environment-admin`, `insights-account-read`, `insights-account-write` or `insights-account-admin`. Exactly one of `permission` and `permissionSetId` must be set."
        },
        "permissionSetId": {
          "type": "string",
          "description": "The ID of a custom permission set to grant. Exactly one of `permission` and `permissionSetId` must be set."
        },
        "permissionSetName": {
          "type": "string",
          "description": "The display name of the granted permission set."
        },
        "username": {
          "type": "string",
          "description": "The Pulumi Cloud username of the organization member.",
          "replaceOnChanges": true
        }
      },
      "required": [
        "organizationName",
        "username",
        "entityType",
        "entityName",
        "entityId",
        "permissionSetName"
      ],
      "inputProperties": {
        "entityName": {
          "type": "string",
          "description": "The name of the entity: `{project}/{stack}` for a stack, `{project}/{environment}` for an environment, or the account name for an Insights account.",
          "replaceOnChanges": true
        },
        "entityType": {
          "type": "string",
          "description": "The kind of entity to grant access to. One of `stack`, `environment` or `insightsAccount`.",
          "replaceOnChanges": true
        },
        "organizationName": {
          "type": "string",
          "description": "The Pulumi Cloud organization name.",
          "replaceOnChanges": true
        },
        "permission": {
          "type": "string",
          "description": "The built-in permission set to grant, for example `stack-read`, `stack-write`, `stack-admin`, `environment-read`, `environment-open`, `environment-write`, `environment-admin`, `insights-account-read`, `insights-account-write` or `insights-account-admin`. Exactly one of `permission` and `permissionSetId` must be set."
        },
        "permissionSetId": {
          "type": "string",
          "description": "The ID of a custom permission set to grant. Exactly one of `permission` and `permissionSetId` must be set."
        },
        "username": {
          "type": "string",
          "description": "The Pulumi Cloud username of the organization member.",
          "replaceOnChanges": true
        }
      },
      "requiredInputs": [
        "organizationName",
        "username",
        "entityType",
        "entityName"
      ]
    },
    "pulumiservice:index:OrganizationRole": {
      "description": "A custom (fine-grained) role defined on a Pulumi Cloud organization. Custom roles allow precise permission control beyond the built-in `admin` / `member` / `billing-manager` roles. Assign them to members via the `OrganizationMember.roleId` field or to teams via `TeamRoleAssignment`.\n\nRequires the Custom Roles feature to be enabled on the organization. See the [Pulumi Cloud RBAC docs](https://www.pulumi.com/docs/pulumi-cloud/access-management/rbac/) for the shape of the `permissions` descriptor.\n\nThis resource manages only permission descriptors with `uxPurpose=\"role\"`. Pulumi Cloud uses `uxPurpose` to split the permission-descriptor table into roles and other kinds (for example `policy`). Use `pulumiservice:api:Role`, which exposes `uxPurpose` directly, to manage the other kinds.\n\nBuild the role's `permissions` with the `buildRolePermissions` helper function, as in the example below.\n\n**Manage these roles in code, not in the Pulumi Cloud console.** In the console's role editor, every rule grants a permission set (the \"access level\"); it can't show scopes granted directly. Roles that grant scopes directly, as `buildRolePermissions` does, open read-only there.\n\n{{% examples %}}\n## Example Usage\n\n{{% example %}}\n### A role with organization-level access and entity rules\n\nThe program looks up an existing stack, environment, and cloud account, then defines a role that grants scopes at the organization level and on each kind of entity.\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as pulumiservice from \"@pulumi/pulumiservice\";\n\nconst config = new pulumi.Config();\nconst organizationName = config.get(\"organizationName\") || \"my-org\";\nconst prodStack = pulumiservice.getStackOutput({\n    organizationName: organizationName,\n    projectName: \"networking\",\n    stackName: \"prod\",\n});\nconst sharedEnvironment = pulumiservice.getEnvironmentOutput({\n    organizationName: organizationName,\n    projectName: \"platform\",\n    name: \"shared\",\n});\nconst awsAccount = pulumiservice.getInsightsAccountOutput({\n    organizationName: organizationName,\n    accountName: \"aws-production\",\n});\nconst platformPermissions = pulumiservice.buildRolePermissionsOutput({\n    organizationScopes: [\n        pulumiservice.RbacOrganizationScope.TeamRead,\n        pulumiservice.RbacOrganizationScope.StackCreate,\n    ],\n    stackRules: [\n        // Read every stack in the organization\n        {\n            all: true,\n            scopes: [pulumiservice.RbacStackScope.StackRead],\n        },\n        // Deploy one specific stack\n        {\n            id: prodStack.stackId,\n            scopes: [\n                pulumiservice.RbacStackScope.StackWrite,\n                pulumiservice.RbacStackScope.StackDeploymentCreate,\n            ],\n        },\n        // Deploy stacks tagged team=platform (the operator defaults to equals)\n        {\n            tags: [{\n                key: \"team\",\n                value: \"platform\",\n            }],\n            scopes: [\n                pulumiservice.RbacStackScope.StackWrite,\n                pulumiservice.RbacStackScope.StackDeploymentCreate,\n            ],\n        },\n        // Deploy stacks whose env tag is anything but \"prod\"\n        {\n            tags: [{\n                key: \"env\",\n                value: \"prod\",\n                operator: pulumiservice.TagOperator.NotEquals,\n            }],\n            scopes: [\n                pulumiservice.RbacStackScope.StackWrite,\n                pulumiservice.RbacStackScope.StackDeploymentCreate,\n            ],\n        },\n        // Read deployment settings on stacks that have a cost-center tag, whatever its value\n        {\n            tags: [{\n                key: \"cost-center\",\n                operator: pulumiservice.TagOperator.Exists,\n            }],\n            scopes: [pulumiservice.RbacStackScope.StackDeploymentSettingsRead],\n        },\n        // Tag stacks that don't have an owner tag yet\n        {\n            tags: [{\n                key: \"owner\",\n                operator: pulumiservice.TagOperator.NotExists,\n            }],\n            scopes: [pulumiservice.RbacStackScope.StackTagsUpdate],\n        },\n        // Delete stacks that match every tag condition\n        {\n            tags: [\n                {\n                    key: \"team\",\n                    value: \"platform\",\n                },\n                {\n                    key: \"lifecycle\",\n                    value: \"ephemeral\",\n                },\n            ],\n            scopes: [pulumiservice.RbacStackScope.StackDelete],\n        },\n    ],\n    environmentRules: [\n        // Read every environment\n        {\n            all: true,\n            scopes: [pulumiservice.RbacEnvironmentScope.EnvironmentRead],\n        },\n        // Open, update, and rotate one specific environment\n        {\n            id: sharedEnvironment.environmentId,\n            scopes: [\n                pulumiservice.RbacEnvironmentScope.EnvironmentOpen,\n                pulumiservice.RbacEnvironmentScope.EnvironmentWrite,\n                pulumiservice.RbacEnvironmentScope.EnvironmentRotate,\n            ],\n        },\n        // Open environments tagged team=platform\n        {\n            tags: [{\n                key: \"team\",\n                value: \"platform\",\n            }],\n            scopes: [pulumiservice.RbacEnvironmentScope.EnvironmentOpen],\n        },\n    ],\n    accountRules: [\n        // Read every cloud account\n        {\n            all: true,\n            scopes: [pulumiservice.RbacAccountScope.InsightsAccountRead],\n        },\n        // Scan one specific account\n        {\n            id: awsAccount.insightsAccountId,\n            scopes: [pulumiservice.RbacAccountScope.InsightsAccountScan],\n        },\n        // Update accounts tagged team=platform\n        {\n            tags: [{\n                key: \"team\",\n                value: \"platform\",\n            }],\n            scopes: [pulumiservice.RbacAccountScope.InsightsAccountUpdate],\n        },\n    ],\n});\nconst platformRole = new pulumiservice.OrganizationRole(\"platformRole\", {\n    organizationName: organizationName,\n    name: \"Platform Engineers\",\n    description: \"Read access across the organization, plus deploy access to platform stacks.\",\n    permissions: platformPermissions.permissions,\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_pulumiservice as pulumiservice\n\nconfig = pulumi.Config()\norganization_name = config.get(\"organizationName\")\nif organization_name is None:\n    organization_name = \"my-org\"\nprod_stack = pulumiservice.get_stack_output(organization_name=organization_name,\n    project_name=\"networking\",\n    stack_name=\"prod\")\nshared_environment = pulumiservice.get_environment_output(organization_name=organization_name,\n    project_name=\"platform\",\n    name=\"shared\")\naws_account = pulumiservice.get_insights_account_output(organization_name=organization_name,\n    account_name=\"aws-production\")\nplatform_permissions = pulumiservice.build_role_permissions_output(organization_scopes=[\n        pulumiservice.RbacOrganizationScope.TEAM_READ,\n        pulumiservice.RbacOrganizationScope.STACK_CREATE,\n    ],\n    stack_rules=[\n        # Read every stack in the organization\n        {\n            \"all\": True,\n            \"scopes\": [pulumiservice.RbacStackScope.STACK_READ],\n        },\n        # Deploy one specific stack\n        {\n            \"id\": prod_stack.stack_id,\n            \"scopes\": [\n                pulumiservice.RbacStackScope.STACK_WRITE,\n                pulumiservice.RbacStackScope.STACK_DEPLOYMENT_CREATE,\n            ],\n        },\n        # Deploy stacks tagged team=platform (the operator defaults to equals)\n        {\n            \"tags\": [{\n                \"key\": \"team\",\n                \"value\": \"platform\",\n            }],\n            \"scopes\": [\n                pulumiservice.RbacStackScope.STACK_WRITE,\n                pulumiservice.RbacStackScope.STACK_DEPLOYMENT_CREATE,\n            ],\n        },\n        # Deploy stacks whose env tag is anything but \"prod\"\n        {\n            \"tags\": [{\n                \"key\": \"env\",\n                \"value\": \"prod\",\n                \"operator\": pulumiservice.TagOperator.NOT_EQUALS,\n            }],\n            \"scopes\": [\n                pulumiservice.RbacStackScope.STACK_WRITE,\n                pulumiservice.RbacStackScope.STACK_DEPLOYMENT_CREATE,\n            ],\n        },\n        # Read deployment settings on stacks that have a cost-center tag, whatever its value\n        {\n            \"tags\": [{\n                \"key\": \"cost-center\",\n                \"operator\": pulumiservice.TagOperator.EXISTS,\n            }],\n            \"scopes\": [pulumiservice.RbacStackScope.STACK_DEPLOYMENT_SETTINGS_READ],\n        },\n        # Tag stacks that don't have an owner tag yet\n        {\n            \"tags\": [{\n                \"key\": \"owner\",\n                \"operator\": pulumiservice.TagOperator.NOT_EXISTS,\n            }],\n            \"scopes\": [pulumiservice.RbacStackScope.STACK_TAGS_UPDATE],\n        },\n        # Delete stacks that match every tag condition\n        {\n            \"tags\": [\n                {\n                    \"key\": \"team\",\n                    \"value\": \"platform\",\n                },\n                {\n                    \"key\": \"lifecycle\",\n                    \"value\": \"ephemeral\",\n                },\n            ],\n            \"scopes\": [pulumiservice.RbacStackScope.STACK_DELETE],\n        },\n    ],\n    environment_rules=[\n        # Read every environment\n        {\n            \"all\": True,\n            \"scopes\": [pulumiservice.RbacEnvironmentScope.ENVIRONMENT_READ],\n        },\n        # Open, update, and rotate one specific environment\n        {\n            \"id\": shared_environment.environment_id,\n            \"scopes\": [\n                pulumiservice.RbacEnvironmentScope.ENVIRONMENT_OPEN,\n                pulumiservice.RbacEnvironmentScope.ENVIRONMENT_WRITE,\n                pulumiservice.RbacEnvironmentScope.ENVIRONMENT_ROTATE,\n            ],\n        },\n        # Open environments tagged team=platform\n        {\n            \"tags\": [{\n                \"key\": \"team\",\n                \"value\": \"platform\",\n            }],\n            \"scopes\": [pulumiservice.RbacEnvironmentScope.ENVIRONMENT_OPEN],\n        },\n    ],\n    account_rules=[\n        # Read every cloud account\n        {\n            \"all\": True,\n            \"scopes\": [pulumiservice.RbacAccountScope.INSIGHTS_ACCOUNT_READ],\n        },\n        # Scan one specific account\n        {\n            \"id\": aws_account.insights_account_id,\n            \"scopes\": [pulumiservice.RbacAccountScope.INSIGHTS_ACCOUNT_SCAN],\n        },\n        # Update accounts tagged team=platform\n        {\n            \"tags\": [{\n                \"key\": \"team\",\n                \"value\": \"platform\",\n            }],\n            \"scopes\": [pulumiservice.RbacAccountScope.INSIGHTS_ACCOUNT_UPDATE],\n        },\n    ])\nplatform_role = pulumiservice.OrganizationRole(\"platformRole\",\n    organization_name=organization_name,\n    name=\"Platform Engineers\",\n    description=\"Read access across the organization, plus deploy access to platform stacks.\",\n    permissions=platform_permissions.permissions)\n\n```\n\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-pulumiservice/sdk/go/pulumiservice\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcfg := config.New(ctx, \"\")\n\t\torganizationName := \"my-org\"\n\t\tif param := cfg.Get(\"organizationName\"); param != \"\" {\n\t\t\torganizationName = param\n\t\t}\n\t\tprodStack := pulumiservice.GetStackOutput(ctx, pulumiservice.GetStackOutputArgs{\n\t\t\tOrganizationName: pulumi.String(organizationName),\n\t\t\tProjectName:      pulumi.String(\"networking\"),\n\t\t\tStackName:        pulumi.String(\"prod\"),\n\t\t}, nil)\n\t\tsharedEnvironment := pulumiservice.GetEnvironmentOutput(ctx, pulumiservice.GetEnvironmentOutputArgs{\n\t\t\tOrganizationName: pulumi.String(organizationName),\n\t\t\tProjectName:      pulumi.String(\"platform\"),\n\t\t\tName:             pulumi.String(\"shared\"),\n\t\t}, nil)\n\t\tawsAccount := pulumiservice.GetInsightsAccountOutput(ctx, pulumiservice.GetInsightsAccountOutputArgs{\n\t\t\tOrganizationName: pulumi.String(organizationName),\n\t\t\tAccountName:      pulumi.String(\"aws-production\"),\n\t\t}, nil)\n\t\tplatformPermissions := pulumiservice.BuildRolePermissionsOutput(ctx, pulumiservice.BuildRolePermissionsOutputArgs{\n\t\t\tOrganizationScopes: pulumiservice.RbacOrganizationScopeArray{\n\t\t\t\tpulumiservice.RbacOrganizationScopeTeamRead,\n\t\t\t\tpulumiservice.RbacOrganizationScopeStackCreate,\n\t\t\t},\n\t\t\tStackRules: pulumiservice.RoleStackRuleArray{\n\t\t\t\t// Read every stack in the organization\n\t\t\t\t&pulumiservice.RoleStackRuleArgs{\n\t\t\t\t\tAll: pulumi.Bool(true),\n\t\t\t\t\tScopes: pulumiservice.RbacStackScopeArray{\n\t\t\t\t\t\tpulumiservice.RbacStackScopeStackRead,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t// Deploy one specific stack\n\t\t\t\t&pulumiservice.RoleStackRuleArgs{\n\t\t\t\t\tId: prodStack.StackId(),\n\t\t\t\t\tScopes: pulumiservice.RbacStackScopeArray{\n\t\t\t\t\t\tpulumiservice.RbacStackScopeStackWrite,\n\t\t\t\t\t\tpulumiservice.RbacStackScopeStackDeploymentCreate,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t// Deploy stacks tagged team=platform (the operator defaults to equals)\n\t\t\t\t&pulumiservice.RoleStackRuleArgs{\n\t\t\t\t\tTags: pulumiservice.TagConditionArray{\n\t\t\t\t\t\t&pulumiservice.TagConditionArgs{\n\t\t\t\t\t\t\tKey:   pulumi.String(\"team\"),\n\t\t\t\t\t\t\tValue: pulumi.String(\"platform\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tScopes: pulumiservice.RbacStackScopeArray{\n\t\t\t\t\t\tpulumiservice.RbacStackScopeStackWrite,\n\t\t\t\t\t\tpulumiservice.RbacStackScopeStackDeploymentCreate,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t// Deploy stacks whose env tag is anything but \"prod\"\n\t\t\t\t&pulumiservice.RoleStackRuleArgs{\n\t\t\t\t\tTags: pulumiservice.TagConditionArray{\n\t\t\t\t\t\t&pulumiservice.TagConditionArgs{\n\t\t\t\t\t\t\tKey:      pulumi.String(\"env\"),\n\t\t\t\t\t\t\tValue:    pulumi.String(\"prod\"),\n\t\t\t\t\t\t\tOperator: pulumiservice.TagOperatorNotEquals,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tScopes: pulumiservice.RbacStackScopeArray{\n\t\t\t\t\t\tpulumiservice.RbacStackScopeStackWrite,\n\t\t\t\t\t\tpulumiservice.RbacStackScopeStackDeploymentCreate,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t// Read deployment settings on stacks that have a cost-center tag, whatever its value\n\t\t\t\t&pulumiservice.RoleStackRuleArgs{\n\t\t\t\t\tTags: pulumiservice.TagConditionArray{\n\t\t\t\t\t\t&pulumiservice.TagConditionArgs{\n\t\t\t\t\t\t\tKey:      pulumi.String(\"cost-center\"),\n\t\t\t\t\t\t\tOperator: pulumiservice.TagOperatorExists,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tScopes: pulumiservice.RbacStackScopeArray{\n\t\t\t\t\t\tpulumiservice.RbacStackScopeStackDeploymentSettingsRead,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t// Tag stacks that don't have an owner tag yet\n\t\t\t\t&pulumiservice.RoleStackRuleArgs{\n\t\t\t\t\tTags: pulumiservice.TagConditionArray{\n\t\t\t\t\t\t&pulumiservice.TagConditionArgs{\n\t\t\t\t\t\t\tKey:      pulumi.String(\"owner\"),\n\t\t\t\t\t\t\tOperator: pulumiservice.TagOperatorNotExists,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tScopes: pulumiservice.RbacStackScopeArray{\n\t\t\t\t\t\tpulumiservice.RbacStackScopeStackTagsUpdate,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t// Delete stacks that match every tag condition\n\t\t\t\t&pulumiservice.RoleStackRuleArgs{\n\t\t\t\t\tTags: pulumiservice.TagConditionArray{\n\t\t\t\t\t\t&pulumiservice.TagConditionArgs{\n\t\t\t\t\t\t\tKey:   pulumi.String(\"team\"),\n\t\t\t\t\t\t\tValue: pulumi.String(\"platform\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t\t&pulumiservice.TagConditionArgs{\n\t\t\t\t\t\t\tKey:   pulumi.String(\"lifecycle\"),\n\t\t\t\t\t\t\tValue: pulumi.String(\"ephemeral\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tScopes: pulumiservice.RbacStackScopeArray{\n\t\t\t\t\t\tpulumiservice.RbacStackScopeStackDelete,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tEnvironmentRules: pulumiservice.RoleEnvironmentRuleArray{\n\t\t\t\t// Read every environment\n\t\t\t\t&pulumiservice.RoleEnvironmentRuleArgs{\n\t\t\t\t\tAll: pulumi.Bool(true),\n\t\t\t\t\tScopes: pulumiservice.RbacEnvironmentScopeArray{\n\t\t\t\t\t\tpulumiservice.RbacEnvironmentScopeEnvironmentRead,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t// Open, update, and rotate one specific environment\n\t\t\t\t&pulumiservice.RoleEnvironmentRuleArgs{\n\t\t\t\t\tId: sharedEnvironment.EnvironmentId(),\n\t\t\t\t\tScopes: pulumiservice.RbacEnvironmentScopeArray{\n\t\t\t\t\t\tpulumiservice.RbacEnvironmentScopeEnvironmentOpen,\n\t\t\t\t\t\tpulumiservice.RbacEnvironmentScopeEnvironmentWrite,\n\t\t\t\t\t\tpulumiservice.RbacEnvironmentScopeEnvironmentRotate,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t// Open environments tagged team=platform\n\t\t\t\t&pulumiservice.RoleEnvironmentRuleArgs{\n\t\t\t\t\tTags: pulumiservice.TagConditionArray{\n\t\t\t\t\t\t&pulumiservice.TagConditionArgs{\n\t\t\t\t\t\t\tKey:   pulumi.String(\"team\"),\n\t\t\t\t\t\t\tValue: pulumi.String(\"platform\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tScopes: pulumiservice.RbacEnvironmentScopeArray{\n\t\t\t\t\t\tpulumiservice.RbacEnvironmentScopeEnvironmentOpen,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tAccountRules: pulumiservice.RoleAccountRuleArray{\n\t\t\t\t// Read every cloud account\n\t\t\t\t&pulumiservice.RoleAccountRuleArgs{\n\t\t\t\t\tAll: pulumi.Bool(true),\n\t\t\t\t\tScopes: pulumiservice.RbacAccountScopeArray{\n\t\t\t\t\t\tpulumiservice.RbacAccountScopeInsightsAccountRead,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t// Scan one specific account\n\t\t\t\t&pulumiservice.RoleAccountRuleArgs{\n\t\t\t\t\tId: awsAccount.InsightsAccountId(),\n\t\t\t\t\tScopes: pulumiservice.RbacAccountScopeArray{\n\t\t\t\t\t\tpulumiservice.RbacAccountScopeInsightsAccountScan,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t// Update accounts tagged team=platform\n\t\t\t\t&pulumiservice.RoleAccountRuleArgs{\n\t\t\t\t\tTags: pulumiservice.TagConditionArray{\n\t\t\t\t\t\t&pulumiservice.TagConditionArgs{\n\t\t\t\t\t\t\tKey:   pulumi.String(\"team\"),\n\t\t\t\t\t\t\tValue: pulumi.String(\"platform\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tScopes: pulumiservice.RbacAccountScopeArray{\n\t\t\t\t\t\tpulumiservice.RbacAccountScopeInsightsAccountUpdate,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t}, nil)\n\t\t_, err := pulumiservice.NewOrganizationRole(ctx, \"platformRole\", &pulumiservice.OrganizationRoleArgs{\n\t\t\tOrganizationName: pulumi.String(organizationName),\n\t\t\tName:             pulumi.String(\"Platform Engineers\"),\n\t\t\tDescription:      pulumi.String(\"Read access across the organization, plus deploy access to platform stacks.\"),\n\t\t\tPermissions:      platformPermissions.Permissions(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing PulumiService = Pulumi.PulumiService;\n\nreturn await Deployment.RunAsync(() => \n{\n    var config = new Config();\n    var organizationName = config.Get(\"organizationName\") ?? \"my-org\";\n    var prodStack = PulumiService.GetStack.Invoke(new()\n    {\n        OrganizationName = organizationName,\n        ProjectName = \"networking\",\n        StackName = \"prod\",\n    });\n\n    var sharedEnvironment = PulumiService.GetEnvironment.Invoke(new()\n    {\n        OrganizationName = organizationName,\n        ProjectName = \"platform\",\n        Name = \"shared\",\n    });\n\n    var awsAccount = PulumiService.GetInsightsAccount.Invoke(new()\n    {\n        OrganizationName = organizationName,\n        AccountName = \"aws-production\",\n    });\n\n    var platformPermissions = PulumiService.BuildRolePermissions.Invoke(new()\n    {\n        OrganizationScopes = new[]\n        {\n            PulumiService.RbacOrganizationScope.TeamRead,\n            PulumiService.RbacOrganizationScope.StackCreate,\n        },\n        StackRules = new[]\n        {\n            // Read every stack in the organization\n            new PulumiService.Inputs.RoleStackRuleInputArgs\n            {\n                All = true,\n                Scopes = new[]\n                {\n                    PulumiService.RbacStackScope.StackRead,\n                },\n            },\n            // Deploy one specific stack\n            new PulumiService.Inputs.RoleStackRuleInputArgs\n            {\n                Id = prodStack.Apply(getStackResult => getStackResult.StackId),\n                Scopes = new[]\n                {\n                    PulumiService.RbacStackScope.StackWrite,\n                    PulumiService.RbacStackScope.StackDeploymentCreate,\n                },\n            },\n            // Deploy stacks tagged team=platform (the operator defaults to equals)\n            new PulumiService.Inputs.RoleStackRuleInputArgs\n            {\n                Tags = new[]\n                {\n                    new PulumiService.Inputs.TagConditionInputArgs\n                    {\n                        Key = \"team\",\n                        Value = \"platform\",\n                    },\n                },\n                Scopes = new[]\n                {\n                    PulumiService.RbacStackScope.StackWrite,\n                    PulumiService.RbacStackScope.StackDeploymentCreate,\n                },\n            },\n            // Deploy stacks whose env tag is anything but \"prod\"\n            new PulumiService.Inputs.RoleStackRuleInputArgs\n            {\n                Tags = new[]\n                {\n                    new PulumiService.Inputs.TagConditionInputArgs\n                    {\n                        Key = \"env\",\n                        Value = \"prod\",\n                        Operator = PulumiService.TagOperator.NotEquals,\n                    },\n                },\n                Scopes = new[]\n                {\n                    PulumiService.RbacStackScope.StackWrite,\n                    PulumiService.RbacStackScope.StackDeploymentCreate,\n                },\n            },\n            // Read deployment settings on stacks that have a cost-center tag, whatever its value\n            new PulumiService.Inputs.RoleStackRuleInputArgs\n            {\n                Tags = new[]\n                {\n                    new PulumiService.Inputs.TagConditionInputArgs\n                    {\n                        Key = \"cost-center\",\n                        Operator = PulumiService.TagOperator.Exists,\n                    },\n                },\n                Scopes = new[]\n                {\n                    PulumiService.RbacStackScope.StackDeploymentSettingsRead,\n                },\n            },\n            // Tag stacks that don't have an owner tag yet\n            new PulumiService.Inputs.RoleStackRuleInputArgs\n            {\n                Tags = new[]\n                {\n                    new PulumiService.Inputs.TagConditionInputArgs\n                    {\n                        Key = \"owner\",\n                        Operator = PulumiService.TagOperator.NotExists,\n                    },\n                },\n                Scopes = new[]\n                {\n                    PulumiService.RbacStackScope.StackTagsUpdate,\n                },\n            },\n            // Delete stacks that match every tag condition\n            new PulumiService.Inputs.RoleStackRuleInputArgs\n            {\n                Tags = new[]\n                {\n                    new PulumiService.Inputs.TagConditionInputArgs\n                    {\n                        Key = \"team\",\n                        Value = \"platform\",\n                    },\n                    new PulumiService.Inputs.TagConditionInputArgs\n                    {\n                        Key = \"lifecycle\",\n                        Value = \"ephemeral\",\n                    },\n                },\n                Scopes = new[]\n                {\n                    PulumiService.RbacStackScope.StackDelete,\n                },\n            },\n        },\n        EnvironmentRules = new[]\n        {\n            // Read every environment\n            new PulumiService.Inputs.RoleEnvironmentRuleInputArgs\n            {\n                All = true,\n                Scopes = new[]\n                {\n                    PulumiService.RbacEnvironmentScope.EnvironmentRead,\n                },\n            },\n            // Open, update, and rotate one specific environment\n            new PulumiService.Inputs.RoleEnvironmentRuleInputArgs\n            {\n                Id = sharedEnvironment.Apply(getEnvironmentResult => getEnvironmentResult.EnvironmentId),\n                Scopes = new[]\n                {\n                    PulumiService.RbacEnvironmentScope.EnvironmentOpen,\n                    PulumiService.RbacEnvironmentScope.EnvironmentWrite,\n                    PulumiService.RbacEnvironmentScope.EnvironmentRotate,\n                },\n            },\n            // Open environments tagged team=platform\n            new PulumiService.Inputs.RoleEnvironmentRuleInputArgs\n            {\n                Tags = new[]\n                {\n                    new PulumiService.Inputs.TagConditionInputArgs\n                    {\n                        Key = \"team\",\n                        Value = \"platform\",\n                    },\n                },\n                Scopes = new[]\n                {\n                    PulumiService.RbacEnvironmentScope.EnvironmentOpen,\n                },\n            },\n        },\n        AccountRules = new[]\n        {\n            // Read every cloud account\n            new PulumiService.Inputs.RoleAccountRuleInputArgs\n            {\n                All = true,\n                Scopes = new[]\n                {\n                    PulumiService.RbacAccountScope.InsightsAccountRead,\n                },\n            },\n            // Scan one specific account\n            new PulumiService.Inputs.RoleAccountRuleInputArgs\n            {\n                Id = awsAccount.Apply(getInsightsAccountResult => getInsightsAccountResult.InsightsAccountId),\n                Scopes = new[]\n                {\n                    PulumiService.RbacAccountScope.InsightsAccountScan,\n                },\n            },\n            // Update accounts tagged team=platform\n            new PulumiService.Inputs.RoleAccountRuleInputArgs\n            {\n                Tags = new[]\n                {\n                    new PulumiService.Inputs.TagConditionInputArgs\n                    {\n                        Key = \"team\",\n                        Value = \"platform\",\n                    },\n                },\n                Scopes = new[]\n                {\n                    PulumiService.RbacAccountScope.InsightsAccountUpdate,\n                },\n            },\n        },\n    });\n\n    var platformRole = new PulumiService.OrganizationRole(\"platformRole\", new()\n    {\n        OrganizationName = organizationName,\n        Name = \"Platform Engineers\",\n        Description = \"Read access across the organization, plus deploy access to platform stacks.\",\n        Permissions = platformPermissions.Apply(buildRolePermissionsResult => buildRolePermissionsResult.Permissions),\n    });\n\n});\n\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.pulumiservice.enums.RbacAccountScope;\nimport com.pulumi.pulumiservice.enums.RbacEnvironmentScope;\nimport com.pulumi.pulumiservice.enums.RbacOrganizationScope;\nimport com.pulumi.pulumiservice.enums.RbacStackScope;\nimport com.pulumi.pulumiservice.enums.TagOperator;\nimport com.pulumi.pulumiservice.PulumiserviceFunctions;\nimport com.pulumi.pulumiservice.inputs.GetStackArgs;\nimport com.pulumi.pulumiservice.inputs.GetEnvironmentArgs;\nimport com.pulumi.pulumiservice.inputs.GetInsightsAccountArgs;\nimport com.pulumi.pulumiservice.inputs.BuildRolePermissionsArgs;\nimport com.pulumi.pulumiservice.inputs.RoleStackRuleArgs;\nimport com.pulumi.pulumiservice.inputs.TagConditionArgs;\nimport com.pulumi.pulumiservice.inputs.RoleEnvironmentRuleArgs;\nimport com.pulumi.pulumiservice.inputs.RoleAccountRuleArgs;\nimport com.pulumi.pulumiservice.OrganizationRole;\nimport com.pulumi.pulumiservice.OrganizationRoleArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n    public static void main(String[] args) {\n        Pulumi.run(App::stack);\n    }\n\n    public static void stack(Context ctx) {\n        final var config = ctx.config();\n        final var organizationName = config.get(\"organizationName\").orElse(\"my-org\");\n        final var prodStack = PulumiserviceFunctions.getStack(GetStackArgs.builder()\n            .organizationName(organizationName)\n            .projectName(\"networking\")\n            .stackName(\"prod\")\n            .build());\n\n        final var sharedEnvironment = PulumiserviceFunctions.getEnvironment(GetEnvironmentArgs.builder()\n            .organizationName(organizationName)\n            .projectName(\"platform\")\n            .name(\"shared\")\n            .build());\n\n        final var awsAccount = PulumiserviceFunctions.getInsightsAccount(GetInsightsAccountArgs.builder()\n            .organizationName(organizationName)\n            .accountName(\"aws-production\")\n            .build());\n\n        final var platformPermissions = PulumiserviceFunctions.buildRolePermissions(BuildRolePermissionsArgs.builder()\n            .organizationScopes(            \n                RbacOrganizationScope.TeamRead,\n                RbacOrganizationScope.StackCreate)\n            .stackRules(            \n                // Read every stack in the organization\n                RoleStackRuleArgs.builder()\n                    .all(true)\n                    .scopes(RbacStackScope.StackRead)\n                    .build(),\n                // Deploy one specific stack\n                RoleStackRuleArgs.builder()\n                    .id(prodStack.applyValue(_prodStack -> _prodStack.stackId()))\n                    .scopes(                    \n                        RbacStackScope.StackWrite,\n                        RbacStackScope.StackDeploymentCreate)\n                    .build(),\n                // Deploy stacks tagged team=platform (the operator defaults to equals)\n                RoleStackRuleArgs.builder()\n                    .tags(TagConditionArgs.builder()\n                        .key(\"team\")\n                        .value(\"platform\")\n                        .build())\n                    .scopes(                    \n                        RbacStackScope.StackWrite,\n                        RbacStackScope.StackDeploymentCreate)\n                    .build(),\n                // Deploy stacks whose env tag is anything but \"prod\"\n                RoleStackRuleArgs.builder()\n                    .tags(TagConditionArgs.builder()\n                        .key(\"env\")\n                        .value(\"prod\")\n                        .operator(TagOperator.NotEquals)\n                        .build())\n                    .scopes(                    \n                        RbacStackScope.StackWrite,\n                        RbacStackScope.StackDeploymentCreate)\n                    .build(),\n                // Read deployment settings on stacks that have a cost-center tag, whatever its value\n                RoleStackRuleArgs.builder()\n                    .tags(TagConditionArgs.builder()\n                        .key(\"cost-center\")\n                        .operator(TagOperator.Exists)\n                        .build())\n                    .scopes(RbacStackScope.StackDeploymentSettingsRead)\n                    .build(),\n                // Tag stacks that don't have an owner tag yet\n                RoleStackRuleArgs.builder()\n                    .tags(TagConditionArgs.builder()\n                        .key(\"owner\")\n                        .operator(TagOperator.NotExists)\n                        .build())\n                    .scopes(RbacStackScope.StackTagsUpdate)\n                    .build(),\n                // Delete stacks that match every tag condition\n                RoleStackRuleArgs.builder()\n                    .tags(                    \n                        TagConditionArgs.builder()\n                            .key(\"team\")\n                            .value(\"platform\")\n                            .build(),\n                        TagConditionArgs.builder()\n                            .key(\"lifecycle\")\n                            .value(\"ephemeral\")\n                            .build())\n                    .scopes(RbacStackScope.StackDelete)\n                    .build())\n            .environmentRules(            \n                // Read every environment\n                RoleEnvironmentRuleArgs.builder()\n                    .all(true)\n                    .scopes(RbacEnvironmentScope.EnvironmentRead)\n                    .build(),\n                // Open, update, and rotate one specific environment\n                RoleEnvironmentRuleArgs.builder()\n                    .id(sharedEnvironment.applyValue(_sharedEnvironment -> _sharedEnvironment.environmentId()))\n                    .scopes(                    \n                        RbacEnvironmentScope.EnvironmentOpen,\n                        RbacEnvironmentScope.EnvironmentWrite,\n                        RbacEnvironmentScope.EnvironmentRotate)\n                    .build(),\n                // Open environments tagged team=platform\n                RoleEnvironmentRuleArgs.builder()\n                    .tags(TagConditionArgs.builder()\n                        .key(\"team\")\n                        .value(\"platform\")\n                        .build())\n                    .scopes(RbacEnvironmentScope.EnvironmentOpen)\n                    .build())\n            .accountRules(            \n                // Read every cloud account\n                RoleAccountRuleArgs.builder()\n                    .all(true)\n                    .scopes(RbacAccountScope.InsightsAccountRead)\n                    .build(),\n                // Scan one specific account\n                RoleAccountRuleArgs.builder()\n                    .id(awsAccount.applyValue(_awsAccount -> _awsAccount.insightsAccountId()))\n                    .scopes(RbacAccountScope.InsightsAccountScan)\n                    .build(),\n                // Update accounts tagged team=platform\n                RoleAccountRuleArgs.builder()\n                    .tags(TagConditionArgs.builder()\n                        .key(\"team\")\n                        .value(\"platform\")\n                        .build())\n                    .scopes(RbacAccountScope.InsightsAccountUpdate)\n                    .build())\n            .build());\n\n        var platformRole = new OrganizationRole(\"platformRole\", OrganizationRoleArgs.builder()\n            .organizationName(organizationName)\n            .name(\"Platform Engineers\")\n            .description(\"Read access across the organization, plus deploy access to platform stacks.\")\n            .permissions(platformPermissions.applyValue(_platformPermissions -> _platformPermissions.permissions()))\n            .build());\n\n    }\n}\n\n```\n\n```yaml\nconfig:\n  organizationName:\n    type: string\n    default: my-org\n\nvariables:\n  # Look up the entities the rules below grant access to. They already exist.\n  prodStack:\n    fn::invoke:\n      function: pulumiservice:getStack\n      arguments:\n        organizationName: ${organizationName}\n        projectName: networking\n        stackName: prod\n  sharedEnvironment:\n    fn::invoke:\n      function: pulumiservice:getEnvironment\n      arguments:\n        organizationName: ${organizationName}\n        projectName: platform\n        name: shared\n  awsAccount:\n    fn::invoke:\n      function: pulumiservice:getInsightsAccount\n      arguments:\n        organizationName: ${organizationName}\n        accountName: aws-production\n\n  # Organization-level access plus rules for stacks, environments, and cloud\n  # accounts. Each rule list accepts only scopes for its own entity type.\n  platformPermissions:\n    fn::invoke:\n      function: pulumiservice:buildRolePermissions\n      arguments:\n        organizationScopes:\n          - team:read\n          - stack:create\n        stackRules:\n          # Read every stack in the organization\n          - all: true\n            scopes:\n              - stack:read\n          # Deploy one specific stack\n          - id: ${prodStack.stackId}\n            scopes:\n              - stack:write\n              - stack_deployment:create\n          # Deploy stacks tagged team=platform (the operator defaults to equals)\n          - tags:\n              - key: team\n                value: platform\n            scopes:\n              - stack:write\n              - stack_deployment:create\n          # Deploy stacks whose env tag is anything but \"prod\"\n          - tags:\n              - key: env\n                value: prod\n                operator: notEquals\n            scopes:\n              - stack:write\n              - stack_deployment:create\n          # Read deployment settings on stacks that have a cost-center tag, whatever its value\n          - tags:\n              - key: cost-center\n                operator: exists\n            scopes:\n              - stack_deployment_settings:read\n          # Tag stacks that don't have an owner tag yet\n          - tags:\n              - key: owner\n                operator: notExists\n            scopes:\n              - stack_tags:update\n          # Delete stacks that match every tag condition\n          - tags:\n              - key: team\n                value: platform\n              - key: lifecycle\n                value: ephemeral\n            scopes:\n              - stack:delete\n        environmentRules:\n          # Read every environment\n          - all: true\n            scopes:\n              - environment:read\n          # Open, update, and rotate one specific environment\n          - id: ${sharedEnvironment.environmentId}\n            scopes:\n              - environment:open\n              - environment:write\n              - environment:rotate\n          # Open environments tagged team=platform\n          - tags:\n              - key: team\n                value: platform\n            scopes:\n              - environment:open\n        accountRules:\n          # Read every cloud account\n          - all: true\n            scopes:\n              - insights_account:read\n          # Scan one specific account\n          - id: ${awsAccount.insightsAccountId}\n            scopes:\n              - insights_account:scan\n          # Update accounts tagged team=platform\n          - tags:\n              - key: team\n                value: platform\n            scopes:\n              - insights_account:update\n\nresources:\n  platformRole:\n    type: pulumiservice:OrganizationRole\n    properties:\n      organizationName: ${organizationName}\n      name: Platform Engineers\n      description: Read access across the organization, plus deploy access to platform stacks.\n      permissions: ${platformPermissions.permissions}\n```\n\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nThis resource can be imported using its `id`, which has the format `{organization}/{roleId}`, e.g.,\n\n```sh\n $ pulumi import pulumiservice:index:OrganizationRole my-organization-role my-org/1e5b8d3a-6c42-4f90-b7a1-8d2c4e6f0b95\n```\n\nThe role ID is the last segment of its page URL in the Pulumi Cloud console, for example `https://app.pulumi.com/my-org/settings/access-management/roles/details/1e5b8d3a-6c42-4f90-b7a1-8d2c4e6f0b95`.\n",
      "properties": {
        "description": {
          "type": "string",
          "description": "Human-readable description of what the role grants."
        },
        "name": {
          "type": "string",
          "description": "The role's display name. Must be unique within the organization."
        },
        "organizationName": {
          "type": "string",
          "description": "The Pulumi Cloud organization name.",
          "replaceOnChanges": true
        },
        "permissions": {
          "type": "object",
          "additionalProperties": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "The role's permission descriptor tree.\n\n**Build this with the helper functions.** They construct the tree for you and validate it before anything reaches Pulumi Cloud:\n- `buildRolePermissions`: start here. It builds a complete role from organization-level scopes and `stackRules`, `environmentRules`, and `accountRules` (cloud accounts: Discovery; `InsightsAccount` in the API and this provider). Each rule grants scopes on every entity of its type, on one specific entity, or on entities matching tags. Each rule list accepts only scopes for its own entity type, so a stack scope can't end up on an environment rule.\n\n`buildAllowPermissions`, `buildStackScopedPermissions`, `buildEnvironmentScopedPermissions`, and `buildInsightsAccountScopedPermissions` are deprecated: `buildRolePermissions` does what they do with typed scopes. Look up stack IDs with `getStack`, environment IDs with `getEnvironment`, and cloud account IDs with `getInsightsAccount`. To assign the role, use `TeamRoleAssignment` or `OrganizationMember.roleId`.\n\n**Permission sets** (such as the built-in Stack Write) aren't supported by the helpers yet. Grant the scopes they contain instead; `getOrganizationRoleScopes` lists the available scopes.\n\n**When Pulumi Cloud adds a scope** that this provider's enums don't list yet, upgrade the provider to grant it.\n\nNote: the helpers' output requires pulumi 3.235.0 or later (pulumi/pulumi#22834). Earlier runtimes drop part of it at the SDK boundary; the Python SDK pins the minimum runtime version automatically."
        },
        "resourceType": {
          "type": "string",
          "description": "The resource type the role's permissions apply to. Defaults to `global` (the org-wide role that can be assigned to members and teams). Other valid values: `stack`, `environment`, `insights-account`."
        },
        "roleId": {
          "type": "string",
          "description": "The unique identifier of the custom role."
        },
        "version": {
          "type": "integer",
          "description": "The service-maintained version number that increments on every update."
        }
      },
      "required": [
        "organizationName",
        "name",
        "permissions",
        "roleId",
        "version"
      ],
      "inputProperties": {
        "description": {
          "type": "string",
          "description": "Human-readable description of what the role grants."
        },
        "name": {
          "type": "string",
          "description": "The role's display name. Must be unique within the organization."
        },
        "organizationName": {
          "type": "string",
          "description": "The Pulumi Cloud organization name.",
          "replaceOnChanges": true
        },
        "permissions": {
          "type": "object",
          "additionalProperties": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "The role's permission descriptor tree.\n\n**Build this with the helper functions.** They construct the tree for you and validate it before anything reaches Pulumi Cloud:\n- `buildRolePermissions`: start here. It builds a complete role from organization-level scopes and `stackRules`, `environmentRules`, and `accountRules` (cloud accounts: Discovery; `InsightsAccount` in the API and this provider). Each rule grants scopes on every entity of its type, on one specific entity, or on entities matching tags. Each rule list accepts only scopes for its own entity type, so a stack scope can't end up on an environment rule.\n\n`buildAllowPermissions`, `buildStackScopedPermissions`, `buildEnvironmentScopedPermissions`, and `buildInsightsAccountScopedPermissions` are deprecated: `buildRolePermissions` does what they do with typed scopes. Look up stack IDs with `getStack`, environment IDs with `getEnvironment`, and cloud account IDs with `getInsightsAccount`. To assign the role, use `TeamRoleAssignment` or `OrganizationMember.roleId`.\n\n**Permission sets** (such as the built-in Stack Write) aren't supported by the helpers yet. Grant the scopes they contain instead; `getOrganizationRoleScopes` lists the available scopes.\n\n**When Pulumi Cloud adds a scope** that this provider's enums don't list yet, upgrade the provider to grant it.\n\nNote: the helpers' output requires pulumi 3.235.0 or later (pulumi/pulumi#22834). Earlier runtimes drop part of it at the SDK boundary; the Python SDK pins the minimum runtime version automatically."
        },
        "resourceType": {
          "type": "string",
          "description": "The resource type the role's permissions apply to. Defaults to `global` (the org-wide role that can be assigned to members and teams). Other valid values: `stack`, `environment`, `insights-account`."
        }
      },
      "requiredInputs": [
        "organizationName",
        "name",
        "permissions"
      ]
    },
    "pulumiservice:index:PolicyGroup": {
      "description": "A Policy Group allows you to apply policy packs to a set of stacks in your organization.\n\n## Import\n\nThis resource can be imported using its `id`, which has the format `{organization}/{policyGroupName}`, e.g.,\n\n```sh\n $ pulumi import pulumiservice:index:PolicyGroup my-policy-group my-org/my-policy-group\n```\n",
      "properties": {
        "accounts": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "List of accounts that belong to this policy group."
        },
        "entityType": {
          "type": "string",
          "description": "The entity type for the policy group. Valid values are 'stacks' or 'accounts'. Defaults to 'stacks'."
        },
        "mode": {
          "type": "string",
          "description": "The mode for the policy group. Valid values are 'audit' (reports violations) or 'preventative' (blocks operations). Defaults to 'audit'."
        },
        "name": {
          "type": "string",
          "description": "The name of the policy group."
        },
        "organizationName": {
          "type": "string",
          "description": "The name of the Pulumi organization the policy group belongs to."
        },
        "policyPacks": {
          "type": "array",
          "items": {
            "$ref": "#/types/pulumiservice:index:PolicyGroupPolicyPackReference"
          },
          "description": "List of policy packs applied to this policy group."
        },
        "stacks": {
          "type": "array",
          "items": {
            "$ref": "#/types/pulumiservice:index:PolicyGroupStackReference"
          },
          "description": "List of stack references that belong to this policy group."
        }
      },
      "required": [
        "name",
        "organizationName",
        "entityType",
        "mode"
      ],
      "inputProperties": {
        "accounts": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "List of accounts that belong to this policy group."
        },
        "entityType": {
          "type": "string",
          "description": "The entity type for the policy group. Valid values are 'stacks' or 'accounts'. Defaults to 'stacks'.",
          "default": "stacks",
          "replaceOnChanges": true
        },
        "mode": {
          "type": "string",
          "description": "The mode for the policy group. Valid values are 'audit' (reports violations) or 'preventative' (blocks operations). Defaults to 'audit'.",
          "default": "audit",
          "replaceOnChanges": true
        },
        "name": {
          "type": "string",
          "description": "The name of the policy group.",
          "replaceOnChanges": true
        },
        "organizationName": {
          "type": "string",
          "description": "The name of the Pulumi organization the policy group belongs to.",
          "replaceOnChanges": true
        },
        "policyPacks": {
          "type": "array",
          "items": {
            "$ref": "#/types/pulumiservice:index:PolicyGroupPolicyPackReferenceInput"
          },
          "description": "List of policy packs applied to this policy group."
        },
        "stacks": {
          "type": "array",
          "items": {
            "$ref": "#/types/pulumiservice:index:PolicyGroupStackReference"
          },
          "description": "List of stack references that belong to this policy group."
        }
      },
      "requiredInputs": [
        "name",
        "organizationName"
      ]
    },
    "pulumiservice:index:PolicyPack": {
      "description": "A Policy Pack published to Pulumi Cloud. The source directory is tarballed and uploaded on Create; changing source content publishes a new version (replace).\n\n## Import\n\nThis resource can be imported using its `id`, which has the format `{organization}/{name}/{versionTag}`, e.g.,\n\n```sh\n $ pulumi import pulumiservice:index:PolicyPack my-policy-pack my-org/my-policy-pack/1.0.0\n```\n\nOnly the organization, name, version tag and display name are read back. Set `sourcePath` in your program after import.\n",
      "properties": {
        "contentHash": {
          "type": "string"
        },
        "displayName": {
          "type": "string",
          "description": "Optional display name. Changing it requires a new versionTag (policy pack versions are immutable in Pulumi Cloud)."
        },
        "name": {
          "type": "string",
          "description": "Policy pack name (unique within the org)."
        },
        "organization": {
          "type": "string",
          "description": "Organization name."
        },
        "policies": {
          "type": "array",
          "items": {
            "$ref": "#/types/pulumiservice:index:PolicyPackPolicyInput"
          },
          "description": "Metadata for each policy in the pack."
        },
        "sourcePath": {
          "type": "string",
          "description": "Path to the directory containing the policy pack source. The directory is tarballed and uploaded."
        },
        "version": {
          "type": "integer"
        },
        "versionTag": {
          "type": "string",
          "description": "Semantic version tag (e.g. \"1.0.0\"). Versions are immutable; change to publish a new version."
        }
      },
      "required": [
        "organization",
        "name",
        "versionTag",
        "sourcePath",
        "version",
        "contentHash"
      ],
      "inputProperties": {
        "displayName": {
          "type": "string",
          "description": "Optional display name. Changing it requires a new versionTag (policy pack versions are immutable in Pulumi Cloud)."
        },
        "name": {
          "type": "string",
          "description": "Policy pack name (unique within the org)."
        },
        "organization": {
          "type": "string",
          "description": "Organization name."
        },
        "policies": {
          "type": "array",
          "items": {
            "$ref": "#/types/pulumiservice:index:PolicyPackPolicyInput"
          },
          "description": "Metadata for each policy in the pack."
        },
        "sourcePath": {
          "type": "string",
          "description": "Path to the directory containing the policy pack source. The directory is tarballed and uploaded."
        },
        "versionTag": {
          "type": "string",
          "description": "Semantic version tag (e.g. \"1.0.0\"). Versions are immutable; change to publish a new version."
        }
      },
      "requiredInputs": [
        "organization",
        "name",
        "versionTag",
        "sourcePath"
      ]
    },
    "pulumiservice:index:Stack": {
      "description": "A stack is a collection of resources that share a common lifecycle. Stacks are uniquely identified by their name and the project they belong to.\n\n## Import\n\nThis resource can be imported using its `id`, which has the format `{organization}/{project}/{stack}`, e.g.,\n\n```sh\n $ pulumi import pulumiservice:index:Stack my-stack my-org/my-project/my-stack\n```\n",
      "properties": {
        "forceDestroy": {
          "type": "boolean",
          "description": "Optional. Flag indicating whether to delete the stack even if it still contains resources. Defaults to `false`."
        },
        "organizationName": {
          "type": "string",
          "description": "The name of the organization.",
          "replaceOnChanges": true
        },
        "projectName": {
          "type": "string",
          "description": "The name of the project.",
          "replaceOnChanges": true
        },
        "stackName": {
          "type": "string",
          "description": "The name of the stack.",
          "replaceOnChanges": true
        }
      },
      "required": [
        "organizationName",
        "projectName",
        "stackName"
      ],
      "inputProperties": {
        "forceDestroy": {
          "type": "boolean",
          "description": "Optional. Flag indicating whether to delete the stack even if it still contains resources. Defaults to `false`."
        },
        "organizationName": {
          "type": "string",
          "description": "The name of the organization.",
          "replaceOnChanges": true
        },
        "projectName": {
          "type": "string",
          "description": "The name of the project.",
          "replaceOnChanges": true
        },
        "stackName": {
          "type": "string",
          "description": "The name of the stack.",
          "replaceOnChanges": true
        }
      },
      "requiredInputs": [
        "organizationName",
        "projectName",
        "stackName"
      ]
    },
    "pulumiservice:index:StackTag": {
      "description": "Stacks have associated metadata in the form of tags. Each tag consists of a name and value.\n\n## Import\n\nThis resource can be imported using its `id`, which has the format `{organization}/{project}/{stack}/{tagName}`, e.g.,\n\n```sh\n $ pulumi import pulumiservice:index:StackTag my-stack-tag my-org/my-project/my-stack/my-tag\n```\n",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the tag. The 'key' part of the key=value pair",
          "replaceOnChanges": true
        },
        "organization": {
          "type": "string",
          "description": "Organization name.",
          "replaceOnChanges": true
        },
        "project": {
          "type": "string",
          "description": "Project name.",
          "replaceOnChanges": true
        },
        "stack": {
          "type": "string",
          "description": "Stack name.",
          "replaceOnChanges": true
        },
        "value": {
          "type": "string",
          "description": "Value of the tag. The 'value' part of the key=value pair",
          "replaceOnChanges": true
        }
      },
      "required": [
        "organization",
        "project",
        "stack",
        "name",
        "value"
      ],
      "inputProperties": {
        "name": {
          "type": "string",
          "description": "Name of the tag. The 'key' part of the key=value pair",
          "replaceOnChanges": true
        },
        "organization": {
          "type": "string",
          "description": "Organization name.",
          "replaceOnChanges": true
        },
        "project": {
          "type": "string",
          "description": "Project name.",
          "replaceOnChanges": true
        },
        "stack": {
          "type": "string",
          "description": "Stack name.",
          "replaceOnChanges": true
        },
        "value": {
          "type": "string",
          "description": "Value of the tag. The 'value' part of the key=value pair",
          "replaceOnChanges": true
        }
      },
      "requiredInputs": [
        "organization",
        "project",
        "stack",
        "name",
        "value"
      ]
    },
    "pulumiservice:index:StackTags": {
      "description": "Manages a set of stack tags as a single resource via a `tags` map, instead of one `StackTag` per key — useful for YAML programs.\n\nOnly tags declared in `tags` are managed; tags added out-of-band (CLI, pulumibot, a singular `StackTag` resource) are left alone. Tag values are immutable in Pulumi Cloud, so a value change is implemented as delete-and-recreate.\n\n## Import\n\nThis resource can be imported using its `id`, which has the format `{organization}/{project}/{stack}/tags`, e.g.,\n\n```sh\n $ pulumi import pulumiservice:index:StackTags my-stack-tags my-org/my-project/my-stack/tags\n```\n\nThe ID ends with the literal segment `tags`. Import adopts every tag currently on the stack; declare `tags` explicitly after import so subsequent updates match your intent.\n",
      "properties": {
        "organization": {
          "type": "string",
          "description": "Organization name.",
          "replaceOnChanges": true
        },
        "project": {
          "type": "string",
          "description": "Project name.",
          "replaceOnChanges": true
        },
        "stack": {
          "type": "string",
          "description": "Stack name.",
          "replaceOnChanges": true
        },
        "tags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Map of tag names to values. Each entry represents a stack tag."
        }
      },
      "required": [
        "organization",
        "project",
        "stack",
        "tags"
      ],
      "inputProperties": {
        "organization": {
          "type": "string",
          "description": "Organization name.",
          "replaceOnChanges": true
        },
        "project": {
          "type": "string",
          "description": "Project name.",
          "replaceOnChanges": true
        },
        "stack": {
          "type": "string",
          "description": "Stack name.",
          "replaceOnChanges": true
        },
        "tags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Map of tag names to values. Each entry represents a stack tag."
        }
      },
      "requiredInputs": [
        "organization",
        "project",
        "stack",
        "tags"
      ]
    },
    "pulumiservice:index:Team": {
      "description": "The Pulumi Cloud offers role-based access control (RBAC) using teams. Teams allow organization admins to assign a set of stack permissions to a group of users.\n\n## Import\n\nThis resource can be imported using its `id`, which has the format `{organization}/{teamName}`, e.g.,\n\n```sh\n $ pulumi import pulumiservice:index:Team my-team my-org/my-team\n```\n\nFor GitHub teams, `githubTeamId` isn't read back, so set it in your program after import.\n",
      "properties": {
        "description": {
          "type": "string",
          "description": "Optional. Team description."
        },
        "displayName": {
          "type": "string",
          "description": "Optional. Team display name."
        },
        "githubTeamId": {
          "type": "number",
          "description": "The GitHub ID of the team to mirror. Must be in the same GitHub organization that the Pulumi org is backed by. Required for \"github\" teams."
        },
        "members": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "List of Pulumi Cloud usernames of team members."
        },
        "name": {
          "type": "string",
          "description": "The team's name. Required for \"pulumi\" teams.",
          "replaceOnChanges": true
        },
        "organizationName": {
          "type": "string",
          "description": "The name of the Pulumi organization the team belongs to.",
          "replaceOnChanges": true
        },
        "teamType": {
          "type": "string",
          "description": "The type of team. Must be either `pulumi` or `github`.",
          "replaceOnChanges": true
        }
      },
      "required": [
        "organizationName",
        "teamType",
        "members"
      ],
      "inputProperties": {
        "description": {
          "type": "string",
          "description": "Optional. Team description."
        },
        "displayName": {
          "type": "string",
          "description": "Optional. Team display name."
        },
        "githubTeamId": {
          "type": "number",
          "description": "The GitHub ID of the team to mirror. Must be in the same GitHub organization that the Pulumi org is backed by. Required for \"github\" teams."
        },
        "members": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "List of Pulumi Cloud usernames of team members."
        },
        "name": {
          "type": "string",
          "description": "The team's name. Required for \"pulumi\" teams.",
          "replaceOnChanges": true
        },
        "organizationName": {
          "type": "string",
          "description": "The name of the Pulumi organization the team belongs to.",
          "replaceOnChanges": true
        },
        "teamType": {
          "type": "string",
          "description": "The type of team. Must be either `pulumi` or `github`.",
          "replaceOnChanges": true
        }
      },
      "requiredInputs": [
        "organizationName",
        "teamType"
      ]
    },
    "pulumiservice:index:TeamAccessToken": {
      "description": "Creates a team access token in Pulumi Cloud. The token isn't tied to a user, and it has the permissions granted to its team.\n\nUnlike `OrgAccessToken`, a provider authenticated with an organization or team access token can create this resource.\n\n## Import\n\nThis resource can be imported using its `id`, which has the format `{organization}/{team}/{name}/{tokenId}`, e.g.,\n\n```sh\n $ pulumi import pulumiservice:index:TeamAccessToken my-team-access-token my-org/my-team/my-token/5c7e0a92-1b3d-4f6e-8a24-9d1b7e3c0f58\n```\n\nThe Pulumi Cloud console doesn't show the token ID. List it with the [Pulumi Cloud REST API](https://www.pulumi.com/docs/reference/cloud-rest-api/):\n\n```sh\ncurl -s -H \"Authorization: token $PULUMI_ACCESS_TOKEN\" \\\n  https://api.pulumi.com/api/orgs/my-org/teams/my-team/tokens | jq '.tokens[] | {name, id}'\n```\n\nThe token's `value` can't be read back from Pulumi Cloud, so it's empty after import.\n",
      "properties": {
        "description": {
          "type": "string",
          "description": "A description of the token.",
          "replaceOnChanges": true
        },
        "name": {
          "type": "string",
          "description": "The name for the token. This must be unique among all organization and team tokens in the organization.",
          "replaceOnChanges": true
        },
        "organizationName": {
          "type": "string",
          "description": "The organization's name.",
          "replaceOnChanges": true
        },
        "teamName": {
          "type": "string",
          "description": "The team name.",
          "replaceOnChanges": true
        },
        "value": {
          "type": "string",
          "description": "The token's value.",
          "secret": true
        }
      },
      "required": [
        "name",
        "organizationName",
        "teamName",
        "value"
      ],
      "inputProperties": {
        "description": {
          "type": "string",
          "description": "A description of the token.",
          "replaceOnChanges": true
        },
        "name": {
          "type": "string",
          "description": "The name for the token. This must be unique among all organization and team tokens in the organization.",
          "replaceOnChanges": true
        },
        "organizationName": {
          "type": "string",
          "description": "The organization's name.",
          "replaceOnChanges": true
        },
        "teamName": {
          "type": "string",
          "description": "The team name.",
          "replaceOnChanges": true
        }
      },
      "requiredInputs": [
        "name",
        "organizationName",
        "teamName"
      ]
    },
    "pulumiservice:index:TeamEnvironmentPermission": {
      "description": "A permission for a team to use an environment.\n\n## Import\n\nThis resource can be imported using its `id`, which has the format `{organization}/{team}/{project}+{environment}`, e.g.,\n\n```sh\n $ pulumi import pulumiservice:index:TeamEnvironmentPermission my-team-environment-permission my-org/my-team/my-project+my-environment\n```\n\nThe project and environment are joined with `+`, not `/`. The legacy format `{organization}/{team}/{environment}` is also accepted, and uses the `default` project.\n",
      "properties": {
        "environment": {
          "type": "string",
          "description": "Environment name.",
          "replaceOnChanges": true
        },
        "maxOpenDuration": {
          "type": "string",
          "description": "The maximum duration for which members of this team may open the environment.",
          "replaceOnChanges": true
        },
        "organization": {
          "type": "string",
          "description": "Organization name.",
          "replaceOnChanges": true
        },
        "permission": {
          "$ref": "#/types/pulumiservice:index:EnvironmentPermission",
          "description": "Which permission level to grant to the specified team.",
          "replaceOnChanges": true
        },
        "project": {
          "type": "string",
          "description": "Project name.",
          "default": "default",
          "replaceOnChanges": true
        },
        "team": {
          "type": "string",
          "description": "Team name.",
          "replaceOnChanges": true
        }
      },
      "required": [
        "organization",
        "team",
        "project",
        "environment",
        "permission"
      ],
      "inputProperties": {
        "environment": {
          "type": "string",
          "description": "Environment name.",
          "replaceOnChanges": true
        },
        "maxOpenDuration": {
          "type": "string",
          "description": "The maximum duration for which members of this team may open the environment.",
          "replaceOnChanges": true
        },
        "organization": {
          "type": "string",
          "description": "Organization name.",
          "replaceOnChanges": true
        },
        "permission": {
          "$ref": "#/types/pulumiservice:index:EnvironmentPermission",
          "description": "Which permission level to grant to the specified team.",
          "replaceOnChanges": true
        },
        "project": {
          "type": "string",
          "description": "Project name.",
          "default": "default",
          "replaceOnChanges": true
        },
        "team": {
          "type": "string",
          "description": "Team name.",
          "replaceOnChanges": true
        }
      },
      "requiredInputs": [
        "organization",
        "team",
        "environment",
        "permission"
      ]
    },
    "pulumiservice:index:TeamRoleAssignment": {
      "description": "Assigns a custom (fine-grained) role to a Pulumi Cloud team. The Pulumi Cloud API currently supports one role per team; creating a second assignment replaces the first. The team's organization must already have the custom-roles feature enabled.\n\n## Import\n\nThis resource can be imported using its `id`, which has the format `{organization}/{team}/{roleId}`, e.g.,\n\n```sh\n $ pulumi import pulumiservice:index:TeamRoleAssignment my-team-role-assignment my-org/my-team/1e5b8d3a-6c42-4f90-b7a1-8d2c4e6f0b95\n```\n\nThe role ID is the last segment of its page URL in the Pulumi Cloud console, for example `https://app.pulumi.com/my-org/settings/access-management/roles/details/1e5b8d3a-6c42-4f90-b7a1-8d2c4e6f0b95`.\n",
      "properties": {
        "organizationName": {
          "type": "string",
          "description": "The Pulumi Cloud organization name.",
          "replaceOnChanges": true
        },
        "roleId": {
          "type": "string",
          "description": "The ID of the custom role to assign.",
          "replaceOnChanges": true
        },
        "roleName": {
          "type": "string",
          "description": "The name of the currently assigned role (custom role name, or built-in role)."
        },
        "teamName": {
          "type": "string",
          "description": "The team name.",
          "replaceOnChanges": true
        }
      },
      "required": [
        "organizationName",
        "teamName",
        "roleId",
        "roleName"
      ],
      "inputProperties": {
        "organizationName": {
          "type": "string",
          "description": "The Pulumi Cloud organization name.",
          "replaceOnChanges": true
        },
        "roleId": {
          "type": "string",
          "description": "The ID of the custom role to assign.",
          "replaceOnChanges": true
        },
        "teamName": {
          "type": "string",
          "description": "The team name.",
          "replaceOnChanges": true
        }
      },
      "requiredInputs": [
        "organizationName",
        "teamName",
        "roleId"
      ]
    },
    "pulumiservice:index:TeamStackPermission": {
      "description": "Grants a team permissions to the specified stack.\n\n## Import\n\nThis resource can be imported using its `id`, which has the format `{organization}/{project}/{stack}/{team}`, e.g.,\n\n```sh\n $ pulumi import pulumiservice:index:TeamStackPermission my-team-stack-permission my-org/my-project/my-stack/my-team\n```\n",
      "properties": {
        "organization": {
          "type": "string",
          "description": "The organization or the personal account name of the stack.",
          "replaceOnChanges": true
        },
        "permission": {
          "$ref": "#/types/pulumiservice:index:TeamStackPermissionScope",
          "description": "Sets the permission level that this team will be granted to the stack.",
          "replaceOnChanges": true
        },
        "project": {
          "type": "string",
          "description": "The project name for this stack.",
          "replaceOnChanges": true
        },
        "stack": {
          "type": "string",
          "description": "The name of the stack that the team will be granted permissions to.",
          "replaceOnChanges": true
        },
        "team": {
          "type": "string",
          "description": "The name of the team to grant this stack permissions to. This is not the display name.",
          "replaceOnChanges": true
        }
      },
      "required": [
        "organization",
        "project",
        "stack",
        "team",
        "permission"
      ],
      "inputProperties": {
        "organization": {
          "type": "string",
          "description": "The organization or the personal account name of the stack.",
          "replaceOnChanges": true
        },
        "permission": {
          "$ref": "#/types/pulumiservice:index:TeamStackPermissionScope",
          "description": "Sets the permission level that this team will be granted to the stack.",
          "replaceOnChanges": true
        },
        "project": {
          "type": "string",
          "description": "The project name for this stack.",
          "replaceOnChanges": true
        },
        "stack": {
          "type": "string",
          "description": "The name of the stack that the team will be granted permissions to.",
          "replaceOnChanges": true
        },
        "team": {
          "type": "string",
          "description": "The name of the team to grant this stack permissions to. This is not the display name.",
          "replaceOnChanges": true
        }
      },
      "requiredInputs": [
        "organization",
        "project",
        "stack",
        "team",
        "permission"
      ]
    },
    "pulumiservice:index:TemplateSource": {
      "description": "A source for Pulumi templates.\n\n## Import\n\nThis resource can be imported using its `id`, which has the format `{organization}/{templateSourceId}`, e.g.,\n\n```sh\n $ pulumi import pulumiservice:index:TemplateSource my-template-source my-org/6f0d3b9e-2a75-4c18-9e46-b3a8c1d7e520\n```\n\nThe Pulumi Cloud console doesn't show the template source ID. List it with the [Pulumi Cloud REST API](https://www.pulumi.com/docs/reference/cloud-rest-api/):\n\n```sh\ncurl -s -H \"Authorization: token $PULUMI_ACCESS_TOKEN\" \\\n  https://api.pulumi.com/api/orgs/my-org/templates/sources | jq '.sources[] | {name, id}'\n```\n",
      "properties": {
        "destination": {
          "$ref": "#/types/pulumiservice:index:TemplateSourceDestination",
          "description": "The default destination for projects using templates from this source."
        },
        "organizationName": {
          "type": "string",
          "description": "Organization name.",
          "replaceOnChanges": true
        },
        "sourceName": {
          "type": "string",
          "description": "Source name."
        },
        "sourceURL": {
          "type": "string",
          "description": "Github URL of the repository from which to grab templates."
        }
      },
      "required": [
        "organizationName",
        "sourceName",
        "sourceURL"
      ],
      "inputProperties": {
        "destination": {
          "$ref": "#/types/pulumiservice:index:TemplateSourceDestination",
          "description": "The default destination for projects using templates from this source."
        },
        "organizationName": {
          "type": "string",
          "description": "Organization name.",
          "replaceOnChanges": true
        },
        "sourceName": {
          "type": "string",
          "description": "Source name."
        },
        "sourceURL": {
          "type": "string",
          "description": "Github URL of the repository from which to grab templates."
        }
      },
      "requiredInputs": [
        "organizationName",
        "sourceName",
        "sourceURL"
      ]
    },
    "pulumiservice:index:TtlSchedule": {
      "description": "A scheduled stack destroy run.\n\n## Import\n\nThis resource can be imported using its `id`, which has the format `{organization}/{project}/{stack}/ttl/{scheduleId}`, e.g.,\n\n```sh\n $ pulumi import pulumiservice:index:TtlSchedule my-ttl-schedule my-org/my-project/my-stack/ttl/7d3c5e1a-0f8b-4b26-a9d4-3e6f2b8c1a59\n```\n\nThe Pulumi Cloud console doesn't show the schedule ID. List it with the [Pulumi Cloud REST API](https://www.pulumi.com/docs/reference/cloud-rest-api/):\n\n```sh\ncurl -s -H \"Authorization: token $PULUMI_ACCESS_TOKEN\" \\\n  https://api.pulumi.com/api/stacks/my-org/my-project/my-stack/deployments/schedules | jq '.schedules[]'\n```\n",
      "properties": {
        "deleteAfterDestroy": {
          "type": "boolean",
          "description": "True if the stack and all associated history and settings should be deleted.",
          "default": false
        },
        "organization": {
          "type": "string",
          "description": "Organization name.",
          "replaceOnChanges": true
        },
        "project": {
          "type": "string",
          "description": "Project name.",
          "replaceOnChanges": true
        },
        "scheduleId": {
          "type": "string",
          "description": "Schedule ID of the created schedule, assigned by Pulumi Cloud."
        },
        "stack": {
          "type": "string",
          "description": "Stack name.",
          "replaceOnChanges": true
        },
        "timestamp": {
          "type": "string",
          "description": "The time at which the schedule should run, in ISO 8601 format. Eg: 2020-01-01T00:00:00Z.",
          "replaceOnChanges": true
        }
      },
      "required": [
        "organization",
        "project",
        "stack",
        "timestamp",
        "deleteAfterDestroy",
        "scheduleId"
      ],
      "inputProperties": {
        "deleteAfterDestroy": {
          "type": "boolean",
          "description": "True if the stack and all associated history and settings should be deleted.",
          "default": false
        },
        "organization": {
          "type": "string",
          "description": "Organization name.",
          "replaceOnChanges": true
        },
        "project": {
          "type": "string",
          "description": "Project name.",
          "replaceOnChanges": true
        },
        "stack": {
          "type": "string",
          "description": "Stack name.",
          "replaceOnChanges": true
        },
        "timestamp": {
          "type": "string",
          "description": "The time at which the schedule should run, in ISO 8601 format. Eg: 2020-01-01T00:00:00Z.",
          "replaceOnChanges": true
        }
      },
      "requiredInputs": [
        "organization",
        "project",
        "stack",
        "timestamp"
      ]
    },
    "pulumiservice:index:Webhook": {
      "description": "Pulumi Webhooks allow you to notify external services of events happening within your Pulumi organization, stack, or ESC environment. For example, you can trigger a notification whenever a stack is updated or an environment revision is created. Whenever an event occurs, Pulumi will send an HTTP POST request to all registered webhooks. The webhook can then be used to emit some notification, start running integration tests, or even update additional stacks.\n\nThe webhook's scope is set by which properties you provide:\n\n- **Organization webhook**: `organizationName` only.\n- **Stack webhook**: `organizationName`, `projectName`, and `stackName`.\n- **Environment webhook**: `organizationName`, `projectName`, and `environmentName`. See [ESC webhooks](https://www.pulumi.com/docs/esc/concepts/webhooks/) for the available events.\n\n## Import\n\nThis resource can be imported using its `id`, which has the format `{organization}/{project}/{stack}/{webhookName}`, e.g.,\n\n```sh\n $ pulumi import pulumiservice:index:Webhook my-webhook my-org/my-project/my-stack/4b0d0671\n```\n\nOrganization webhooks use `{organization}/{webhookName}`, and environment webhooks use `{organization}/environment/{project}/{environment}/{webhookName}`.\n\nThe webhook name is the last segment of its page URL in the Pulumi Cloud console, for example `https://app.pulumi.com/my-org/my-project/my-stack/settings/webhooks/4b0d0671`. It's an 8-character hex value that Pulumi Cloud assigned, not the webhook's display name.\n\nThe webhook's `secret` can't be read back from Pulumi Cloud, so it's empty after import.\n",
      "properties": {
        "active": {
          "type": "boolean",
          "description": "Indicates whether this webhook is enabled or not."
        },
        "displayName": {
          "type": "string",
          "description": "The friendly name displayed in the Pulumi Cloud."
        },
        "environmentName": {
          "type": "string",
          "description": "Name of the environment. Only specified if this is an environment webhook.",
          "replaceOnChanges": true
        },
        "filters": {
          "type": "array",
          "items": {
            "$ref": "#/types/pulumiservice:index:WebhookFilters"
          },
          "description": "Optional set of filters to apply to the webhook. See [webhook docs](https://www.pulumi.com/docs/deployments/concepts/webhooks/#event-filtering) for more information."
        },
        "format": {
          "$ref": "#/types/pulumiservice:index:WebhookFormat",
          "description": "Format of the webhook payload. Can be either `raw`, `slack`, `ms_teams` or `pulumi_deployments`. Defaults to `raw`.",
          "default": "raw"
        },
        "groups": {
          "type": "array",
          "items": {
            "$ref": "#/types/pulumiservice:index:WebhookGroup"
          },
          "description": "Optional set of filter groups to apply to the webhook. See [webhook docs](https://www.pulumi.com/docs/deployments/concepts/webhooks/#event-filtering) for more information."
        },
        "name": {
          "type": "string",
          "description": "Webhook identifier generated by Pulumi Cloud."
        },
        "organizationName": {
          "type": "string",
          "description": "Name of the organization.",
          "replaceOnChanges": true
        },
        "payloadUrl": {
          "type": "string",
          "description": "URL to send request to."
        },
        "projectName": {
          "type": "string",
          "description": "Name of the project. Only specified if this is a stack or environment webhook.",
          "replaceOnChanges": true
        },
        "secret": {
          "type": "string",
          "description": "Optional. secret used as the HMAC key. See [webhook docs](https://www.pulumi.com/docs/deployments/concepts/webhooks/#headers) for more information.",
          "secret": true
        },
        "stackName": {
          "type": "string",
          "description": "Name of the stack. Only needed if this is a stack webhook.",
          "replaceOnChanges": true
        }
      },
      "required": [
        "active",
        "displayName",
        "payloadUrl",
        "organizationName",
        "format",
        "name"
      ],
      "inputProperties": {
        "active": {
          "type": "boolean",
          "description": "Indicates whether this webhook is enabled or not."
        },
        "displayName": {
          "type": "string",
          "description": "The friendly name displayed in the Pulumi Cloud."
        },
        "environmentName": {
          "type": "string",
          "description": "Name of the environment. Only specified if this is an environment webhook.",
          "replaceOnChanges": true
        },
        "filters": {
          "type": "array",
          "items": {
            "$ref": "#/types/pulumiservice:index:WebhookFilters"
          },
          "description": "Optional set of filters to apply to the webhook. See [webhook docs](https://www.pulumi.com/docs/deployments/concepts/webhooks/#event-filtering) for more information."
        },
        "format": {
          "$ref": "#/types/pulumiservice:index:WebhookFormat",
          "description": "Format of the webhook payload. Can be either `raw`, `slack`, `ms_teams` or `pulumi_deployments`. Defaults to `raw`.",
          "default": "raw"
        },
        "groups": {
          "type": "array",
          "items": {
            "$ref": "#/types/pulumiservice:index:WebhookGroup"
          },
          "description": "Optional set of filter groups to apply to the webhook. See [webhook docs](https://www.pulumi.com/docs/deployments/concepts/webhooks/#event-filtering) for more information."
        },
        "organizationName": {
          "type": "string",
          "description": "Name of the organization.",
          "replaceOnChanges": true
        },
        "payloadUrl": {
          "type": "string",
          "description": "URL to send request to."
        },
        "projectName": {
          "type": "string",
          "description": "Name of the project. Only specified if this is a stack or environment webhook.",
          "replaceOnChanges": true
        },
        "secret": {
          "type": "string",
          "description": "Optional. secret used as the HMAC key. See [webhook docs](https://www.pulumi.com/docs/deployments/concepts/webhooks/#headers) for more information.",
          "secret": true
        },
        "stackName": {
          "type": "string",
          "description": "Name of the stack. Only needed if this is a stack webhook.",
          "replaceOnChanges": true
        }
      },
      "requiredInputs": [
        "active",
        "displayName",
        "payloadUrl",
        "organizationName"
      ]
    }
  },
  "functions": {
    "pulumiservice:index:buildAccountMatchRule": {
      "description": "Builds a policy group's Insights account match rule from tag rules, without writing Pulumi Cloud's expression format by hand. Use the result as a policy group's `accountMatchRule`. Pulumi Cloud adds the accounts the rule matches to the group, alongside the accounts added individually, and keeps membership up to date as account tags change. Only `audit` policy groups support account rules. Match rules are a preview feature of Pulumi Cloud.",
      "inputs": {
        "properties": {
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/types/pulumiservice:index:PolicyGroupMatchRule"
            },
            "description": "The rules. An entity matches if it matches any rule."
          }
        },
        "type": "object",
        "required": [
          "rules"
        ]
      },
      "outputs": {
        "properties": {
          "matchRule": {
            "additionalProperties": {
              "$ref": "pulumi.json#/Any"
            },
            "description": "The match rule, as the Pulumi Cloud expression a policy group's match rule field takes.",
            "type": "object"
          }
        },
        "required": [
          "matchRule"
        ],
        "type": "object"
      }
    },
    "pulumiservice:index:buildAllowPermissions": {
      "deprecationMessage": "Use `buildRolePermissions` instead, with `organizationScopes` for organization-level scopes and an `all: true` rule for entity scopes. If a scope you need isn't in the enums yet, upgrade the provider.",
      "description": "Builds an `OrganizationRole.permissions` descriptor that grants the supplied scopes globally — i.e. on every entity of the matching resource type. For grants scoped to a specific entity, see `buildEnvironmentScopedPermissions`, `buildStackScopedPermissions`, or `buildInsightsAccountScopedPermissions`. The result is directly assignable to `OrganizationRole.permissions`. To combine it with other grants in a single role, pass it to `buildRolePermissions` in `additionalEntries`.",
      "inputs": {
        "properties": {
          "permissions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The set of scopes to grant globally (e.g. `stack:read`, `environment:open`, `organization:billingManager`). Discover valid scope names via the `getOrganizationRoleScopes` data source."
          }
        },
        "type": "object",
        "required": [
          "permissions"
        ]
      },
      "outputs": {
        "properties": {
          "permissions": {
            "additionalProperties": {
              "$ref": "pulumi.json#/Any"
            },
            "description": "A `PermissionDescriptorAllow` granting the supplied scopes on every entity of the matching resource type, ready to assign to `OrganizationRole.permissions`.",
            "type": "object"
          }
        },
        "required": [
          "permissions"
        ],
        "type": "object"
      }
    },
    "pulumiservice:index:buildEnvironmentScopedPermissions": {
      "deprecationMessage": "Use `buildRolePermissions` instead, with an `environmentRules` entry that sets `id`. If a scope you need isn't in the enums yet, upgrade the provider.",
      "description": "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 `PermissionDescriptorCondition` tree yourself. The result is directly assignable to `OrganizationRole.permissions`. To combine it with other grants in a single role, pass it to `buildRolePermissions` in `additionalEntries`.",
      "inputs": {
        "properties": {
          "environmentId": {
            "type": "string",
            "description": "The target environment's UUID. Use the `environmentId` output of an `Environment` resource or the `getEnvironment` data source."
          },
          "permissions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "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."
          }
        },
        "type": "object",
        "required": [
          "environmentId",
          "permissions"
        ]
      },
      "outputs": {
        "properties": {
          "permissions": {
            "additionalProperties": {
              "$ref": "pulumi.json#/Any"
            },
            "description": "A `PermissionDescriptorCondition` tree gating a `PermissionDescriptorAllow` on the named environment, ready to assign to `OrganizationRole.permissions`.",
            "type": "object"
          }
        },
        "required": [
          "permissions"
        ],
        "type": "object"
      }
    },
    "pulumiservice:index:buildInsightsAccountScopedPermissions": {
      "deprecationMessage": "Use `buildRolePermissions` instead, with an `accountRules` entry that sets `id`. If a scope you need isn't in the enums yet, upgrade the provider.",
      "description": "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). The result is directly assignable to `OrganizationRole.permissions`. To combine it with other grants in a single role, pass it to `buildRolePermissions` in `additionalEntries`.",
      "inputs": {
        "properties": {
          "insightsAccountId": {
            "type": "string",
            "description": "The target insights account's identifier. Use the `insightsAccountId` output of an `InsightsAccount` resource or the `getInsightsAccount` data source."
          },
          "permissions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The set of `insights-account:*` scopes to grant on the target account. Discover valid scope names via the `getOrganizationRoleScopes` data source."
          }
        },
        "type": "object",
        "required": [
          "insightsAccountId",
          "permissions"
        ]
      },
      "outputs": {
        "properties": {
          "permissions": {
            "additionalProperties": {
              "$ref": "pulumi.json#/Any"
            },
            "description": "A `PermissionDescriptorCondition` tree gating a `PermissionDescriptorAllow` on the named insights account, ready to assign to `OrganizationRole.permissions`.",
            "type": "object"
          }
        },
        "required": [
          "permissions"
        ],
        "type": "object"
      }
    },
    "pulumiservice:index:buildRolePermissions": {
      "description": "Builds a complete `OrganizationRole.permissions` descriptor from organization-level access and rules for stacks, environments, and cloud accounts (Discovery; `InsightsAccount` in the API and this provider), the same model as the role editor in the Pulumi Cloud console. Each rule grants scopes on every entity of its type, on one specific entity, or on entities matching tag conditions. Each rule list accepts only scopes for its own entity type. The result is directly assignable to `OrganizationRole.permissions`.",
      "inputs": {
        "properties": {
          "accountRules": {
            "type": "array",
            "items": {
              "$ref": "#/types/pulumiservice:index:RoleAccountRule"
            },
            "description": "Grants on cloud accounts (`InsightsAccount`)."
          },
          "additionalEntries": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {
                "$ref": "pulumi.json#/Any"
              }
            },
            "description": "Output of the other permission helpers to include in the role."
          },
          "environmentRules": {
            "type": "array",
            "items": {
              "$ref": "#/types/pulumiservice:index:RoleEnvironmentRule"
            },
            "description": "Grants on ESC environments."
          },
          "organizationScopes": {
            "type": "array",
            "items": {
              "$ref": "#/types/pulumiservice:index:RbacOrganizationScope"
            },
            "description": "Organization-level scopes to grant (e.g. `team:read`)."
          },
          "stackRules": {
            "type": "array",
            "items": {
              "$ref": "#/types/pulumiservice:index:RoleStackRule"
            },
            "description": "Grants on stacks."
          }
        },
        "type": "object"
      },
      "outputs": {
        "properties": {
          "permissions": {
            "additionalProperties": {
              "$ref": "pulumi.json#/Any"
            },
            "description": "A `PermissionDescriptorGroup` combining every grant, ready to assign to `OrganizationRole.permissions`.",
            "type": "object"
          }
        },
        "required": [
          "permissions"
        ],
        "type": "object"
      }
    },
    "pulumiservice:index:buildStackMatchRule": {
      "description": "Builds a policy group's stack match rule from tag rules, without writing Pulumi Cloud's expression format by hand. Use the result as a policy group's `stackMatchRule`. Pulumi Cloud adds the stacks the rule matches to the group, alongside the stacks added individually, and keeps membership up to date as stack tags change. Match rules are a preview feature of Pulumi Cloud.",
      "inputs": {
        "properties": {
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/types/pulumiservice:index:PolicyGroupMatchRule"
            },
            "description": "The rules. An entity matches if it matches any rule."
          }
        },
        "type": "object",
        "required": [
          "rules"
        ]
      },
      "outputs": {
        "properties": {
          "matchRule": {
            "additionalProperties": {
              "$ref": "pulumi.json#/Any"
            },
            "description": "The match rule, as the Pulumi Cloud expression a policy group's match rule field takes.",
            "type": "object"
          }
        },
        "required": [
          "matchRule"
        ],
        "type": "object"
      }
    },
    "pulumiservice:index:buildStackScopedPermissions": {
      "deprecationMessage": "Use `buildRolePermissions` instead, with a `stackRules` entry that sets `id`. If a scope you need isn't in the enums yet, upgrade the provider.",
      "description": "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. The result is directly assignable to `OrganizationRole.permissions`. To combine it with other grants in a single role, pass it to `buildRolePermissions` in `additionalEntries`.",
      "inputs": {
        "properties": {
          "permissions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "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."
          },
          "stackId": {
            "type": "string",
            "description": "The target stack's opaque Pulumi Cloud identifier (not the `organization/project/stack` triple)."
          }
        },
        "type": "object",
        "required": [
          "stackId",
          "permissions"
        ]
      },
      "outputs": {
        "properties": {
          "permissions": {
            "additionalProperties": {
              "$ref": "pulumi.json#/Any"
            },
            "description": "A `PermissionDescriptorCondition` tree gating a `PermissionDescriptorAllow` on the named stack, ready to assign to `OrganizationRole.permissions`.",
            "type": "object"
          }
        },
        "required": [
          "permissions"
        ],
        "type": "object"
      }
    },
    "pulumiservice:index:getCurrentUser": {
      "description": "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.",
      "inputs": {
        "type": "object"
      },
      "outputs": {
        "properties": {
          "avatarUrl": {
            "description": "URL of the user's avatar image.",
            "type": "string"
          },
          "email": {
            "description": "The user's email address.",
            "type": "string"
          },
          "name": {
            "description": "The user's display name.",
            "type": "string"
          },
          "username": {
            "description": "The user's Pulumi Cloud username.",
            "type": "string"
          }
        },
        "required": [
          "username",
          "name",
          "email",
          "avatarUrl"
        ],
        "type": "object"
      }
    },
    "pulumiservice:index:getEnvironment": {
      "description": "Looks up an existing ESC environment by name and returns its UUID. Use this to scope a custom RBAC role to a specific environment — pass the returned UUID as the `id` of an `environmentRules` entry in `buildRolePermissions`. Errors when the environment is not found.",
      "inputs": {
        "properties": {
          "name": {
            "type": "string",
            "description": "The environment name."
          },
          "organizationName": {
            "type": "string",
            "description": "The Pulumi Cloud organization that owns the environment."
          },
          "projectName": {
            "type": "string",
            "description": "The ESC project name. Defaults to `default`."
          }
        },
        "type": "object",
        "required": [
          "organizationName",
          "name"
        ]
      },
      "outputs": {
        "properties": {
          "environmentId": {
            "description": "The environment's UUID. Pass it as the `id` of an `environmentRules` entry in `buildRolePermissions`.",
            "type": "string"
          },
          "name": {
            "description": "The environment name.",
            "type": "string"
          },
          "organizationName": {
            "description": "The Pulumi Cloud organization that owns the environment.",
            "type": "string"
          },
          "projectName": {
            "description": "The ESC project the environment lives in.",
            "type": "string"
          }
        },
        "required": [
          "organizationName",
          "projectName",
          "name",
          "environmentId"
        ],
        "type": "object"
      }
    },
    "pulumiservice:index:getInsightsAccount": {
      "description": "Get details about a specific Insights account.",
      "inputs": {
        "properties": {
          "accountName": {
            "type": "string"
          },
          "organizationName": {
            "type": "string"
          }
        },
        "type": "object",
        "required": [
          "organizationName",
          "accountName"
        ]
      },
      "outputs": {
        "properties": {
          "accountName": {
            "description": "Name of the insights account.",
            "replaceOnChanges": true,
            "type": "string"
          },
          "environment": {
            "description": "The ESC environment used for provider credentials. Format: 'project/environment' with optional '@version' suffix (e.g., 'my-project/prod-env' or 'my-project/prod-env@v1.0').",
            "type": "string"
          },
          "insightsAccountId": {
            "description": "The insights account identifier.",
            "type": "string"
          },
          "organizationName": {
            "description": "The organization's name.",
            "replaceOnChanges": true,
            "type": "string"
          },
          "provider": {
            "$ref": "#/types/pulumiservice:index:CloudProvider",
            "description": "The cloud provider for scanning.",
            "replaceOnChanges": true
          },
          "providerConfig": {
            "additionalProperties": {
              "$ref": "pulumi.json#/Any"
            },
            "description": "Provider-specific configuration as a JSON object. For AWS, specify regions to scan: {\"regions\": [\"us-west-1\", \"us-west-2\"]}.",
            "type": "object"
          },
          "scanSchedule": {
            "$ref": "#/types/pulumiservice:index:ScanSchedule",
            "default": "none",
            "description": "Schedule for automated scanning. Use 'daily' for daily scans, '12h' for scans every twelve hours, or 'none' to disable scheduled scanning. Defaults to 'none'."
          },
          "scheduledScanEnabled": {
            "description": "Whether scheduled scanning is enabled.",
            "type": "boolean"
          },
          "tags": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "Key-value tags to associate with the insights account.",
            "type": "object"
          }
        },
        "required": [
          "organizationName",
          "accountName",
          "provider",
          "environment",
          "scanSchedule",
          "insightsAccountId",
          "scheduledScanEnabled"
        ],
        "type": "object"
      }
    },
    "pulumiservice:index:getInsightsAccounts": {
      "description": "Get a list of all Insights accounts for an organization.",
      "inputs": {
        "properties": {
          "organizationName": {
            "type": "string"
          }
        },
        "type": "object",
        "required": [
          "organizationName"
        ]
      },
      "outputs": {
        "properties": {
          "accounts": {
            "items": {
              "$ref": "#/types/pulumiservice:index:InsightsAccountState"
            },
            "type": "array"
          }
        },
        "required": [
          "accounts"
        ],
        "type": "object"
      }
    },
    "pulumiservice:index:getOrganizationMember": {
      "description": "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.",
      "inputs": {
        "properties": {
          "organizationName": {
            "type": "string",
            "description": "The name of the Pulumi organization."
          },
          "username": {
            "type": "string",
            "description": "The Pulumi Cloud username (backing identity-provider login) to look up."
          }
        },
        "type": "object",
        "required": [
          "organizationName",
          "username"
        ]
      },
      "outputs": {
        "properties": {
          "role": {
            "description": "The member's built-in role (member, admin, billing-manager, reader, builder, maintainer). Absent when a custom role is assigned — check `roleId` in that case.",
            "type": "string"
          },
          "roleId": {
            "description": "The custom role ID assigned to this member, if any.",
            "type": "string"
          },
          "roleName": {
            "description": "The name of the currently assigned role (custom role name, or built-in role).",
            "type": "string"
          },
          "username": {
            "description": "The member's Pulumi Cloud username.",
            "type": "string"
          },
          "virtualAdmin": {
            "description": "Whether this member is an admin in Pulumi Cloud without admin access on the backing identity provider.",
            "type": "boolean"
          }
        },
        "required": [
          "username",
          "virtualAdmin"
        ],
        "type": "object"
      }
    },
    "pulumiservice:index:getOrganizationMembers": {
      "description": "Lists all members of a Pulumi Cloud organization, including their role assignments. Merges Pulumi Cloud's identity-provider roster (paginated; includes users who haven't signed in to Pulumi yet) with the seat-count roster, deduped by username, so SAML- and non-SAML-provisioned members both appear regardless of which roster they're tracked in.",
      "inputs": {
        "properties": {
          "organizationName": {
            "type": "string",
            "description": "The name of the Pulumi organization."
          }
        },
        "type": "object",
        "required": [
          "organizationName"
        ]
      },
      "outputs": {
        "properties": {
          "members": {
            "items": {
              "$ref": "#/types/pulumiservice:index:OrganizationMemberInfo"
            },
            "type": "array"
          }
        },
        "required": [
          "members"
        ],
        "type": "object"
      }
    },
    "pulumiservice:index:getOrganizationRole": {
      "description": "Looks up a role in a Pulumi Cloud organization by the name shown in the Pulumi Cloud console. Finds both built-in and custom roles. Use the returned `roleId` for inputs that take a role ID, such as `TeamRoleAssignment.roleId` and `OrganizationMember.roleId`, instead of hardcoding the ID. Returns an error when no role has the given name.\n\n{{% examples %}}\n## Example Usage\n\n{{% example %}}\n### Look up a role you defined\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as pulumiservice from \"@pulumi/pulumiservice\";\n\nconst ciDeployerRole = pulumiservice.getOrganizationRoleOutput({\n    organizationName: \"my-org\",\n    name: \"CI Deployer\",\n});\nconst platformTeamRole = new pulumiservice.TeamRoleAssignment(\"platformTeamRole\", {\n    organizationName: \"my-org\",\n    teamName: \"platform\",\n    roleId: ciDeployerRole.roleId,\n});\n```\n\n```python\nimport pulumi\nimport pulumi_pulumiservice as pulumiservice\n\nci_deployer_role = pulumiservice.get_organization_role_output(organization_name=\"my-org\",\n    name=\"CI Deployer\")\nplatform_team_role = pulumiservice.TeamRoleAssignment(\"platformTeamRole\",\n    organization_name=\"my-org\",\n    team_name=\"platform\",\n    role_id=ci_deployer_role.role_id)\n```\n\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-pulumiservice/sdk/go/pulumiservice\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tciDeployerRole := pulumiservice.GetOrganizationRoleOutput(ctx, pulumiservice.GetOrganizationRoleOutputArgs{\n\t\t\tOrganizationName: pulumi.String(\"my-org\"),\n\t\t\tName:             pulumi.String(\"CI Deployer\"),\n\t\t}, nil)\n\t\t_, err := pulumiservice.NewTeamRoleAssignment(ctx, \"platformTeamRole\", &pulumiservice.TeamRoleAssignmentArgs{\n\t\t\tOrganizationName: pulumi.String(\"my-org\"),\n\t\t\tTeamName:         pulumi.String(\"platform\"),\n\t\t\tRoleId:           ciDeployerRole.RoleId(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing PulumiService = Pulumi.PulumiService;\n\nreturn await Deployment.RunAsync(() => \n{\n    var ciDeployerRole = PulumiService.GetOrganizationRole.Invoke(new()\n    {\n        OrganizationName = \"my-org\",\n        Name = \"CI Deployer\",\n    });\n\n    var platformTeamRole = new PulumiService.TeamRoleAssignment(\"platformTeamRole\", new()\n    {\n        OrganizationName = \"my-org\",\n        TeamName = \"platform\",\n        RoleId = ciDeployerRole.Apply(getOrganizationRoleResult => getOrganizationRoleResult.RoleId),\n    });\n\n});\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.pulumiservice.PulumiserviceFunctions;\nimport com.pulumi.pulumiservice.inputs.GetOrganizationRoleArgs;\nimport com.pulumi.pulumiservice.TeamRoleAssignment;\nimport com.pulumi.pulumiservice.TeamRoleAssignmentArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n    public static void main(String[] args) {\n        Pulumi.run(App::stack);\n    }\n\n    public static void stack(Context ctx) {\n        final var ciDeployerRole = PulumiserviceFunctions.getOrganizationRole(GetOrganizationRoleArgs.builder()\n            .organizationName(\"my-org\")\n            .name(\"CI Deployer\")\n            .build());\n\n        var platformTeamRole = new TeamRoleAssignment(\"platformTeamRole\", TeamRoleAssignmentArgs.builder()\n            .organizationName(\"my-org\")\n            .teamName(\"platform\")\n            .roleId(ciDeployerRole.applyValue(_ciDeployerRole -> _ciDeployerRole.roleId()))\n            .build());\n\n    }\n}\n```\n\n```yaml\nvariables:\n  ciDeployerRole:\n    fn::invoke:\n      function: pulumiservice:getOrganizationRole\n      arguments:\n        organizationName: my-org\n        name: CI Deployer\nresources:\n  platformTeamRole:\n    type: pulumiservice:TeamRoleAssignment\n    properties:\n      organizationName: my-org\n      teamName: platform\n      roleId: ${ciDeployerRole.roleId}\n```\n{{% /example %}}\n\n{{% example %}}\n### Look up a built-in role\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as pulumiservice from \"@pulumi/pulumiservice\";\n\nconst adminRole = pulumiservice.getOrganizationRoleOutput({\n    organizationName: \"my-org\",\n    name: \"Admin\",\n});\nexport const adminRoleId = adminRole.roleId;\n```\n\n```python\nimport pulumi\nimport pulumi_pulumiservice as pulumiservice\n\nadmin_role = pulumiservice.get_organization_role_output(organization_name=\"my-org\",\n    name=\"Admin\")\npulumi.export(\"adminRoleId\", admin_role.role_id)\n```\n\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-pulumiservice/sdk/go/pulumiservice\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tadminRole := pulumiservice.GetOrganizationRoleOutput(ctx, pulumiservice.GetOrganizationRoleOutputArgs{\n\t\t\tOrganizationName: pulumi.String(\"my-org\"),\n\t\t\tName:             pulumi.String(\"Admin\"),\n\t\t}, nil)\n\t\tctx.Export(\"adminRoleId\", adminRole.RoleId())\n\t\treturn nil\n\t})\n}\n```\n\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing PulumiService = Pulumi.PulumiService;\n\nreturn await Deployment.RunAsync(() => \n{\n    var adminRole = PulumiService.GetOrganizationRole.Invoke(new()\n    {\n        OrganizationName = \"my-org\",\n        Name = \"Admin\",\n    });\n\n    return new Dictionary<string, object?>\n    {\n        [\"adminRoleId\"] = adminRole.Apply(getOrganizationRoleResult => getOrganizationRoleResult.RoleId),\n    };\n});\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.pulumiservice.PulumiserviceFunctions;\nimport com.pulumi.pulumiservice.inputs.GetOrganizationRoleArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n    public static void main(String[] args) {\n        Pulumi.run(App::stack);\n    }\n\n    public static void stack(Context ctx) {\n        final var adminRole = PulumiserviceFunctions.getOrganizationRole(GetOrganizationRoleArgs.builder()\n            .organizationName(\"my-org\")\n            .name(\"Admin\")\n            .build());\n\n        ctx.export(\"adminRoleId\", adminRole.applyValue(_adminRole -> _adminRole.roleId()));\n    }\n}\n```\n\n```yaml\nvariables:\n  adminRole:\n    fn::invoke:\n      function: pulumiservice:getOrganizationRole\n      arguments:\n        organizationName: my-org\n        name: Admin\noutputs:\n  adminRoleId: ${adminRole.roleId}\n```\n{{% /example %}}\n{{% /examples %}}\n",
      "inputs": {
        "properties": {
          "name": {
            "type": "string",
            "description": "The role's name, as shown in the Pulumi Cloud console. The match is case-insensitive, as role names are unique within an organization regardless of case."
          },
          "organizationName": {
            "type": "string",
            "description": "The name of the Pulumi organization."
          }
        },
        "type": "object",
        "required": [
          "organizationName",
          "name"
        ]
      },
      "outputs": {
        "properties": {
          "builtIn": {
            "description": "Whether this is one of the roles every organization has (Admin, Member and Billing Manager), rather than a custom role.",
            "type": "boolean"
          },
          "description": {
            "description": "The role's description, if it has one.",
            "type": "string"
          },
          "name": {
            "description": "The role's name, as shown in the Pulumi Cloud console.",
            "type": "string"
          },
          "roleId": {
            "description": "The role's ID. Pass it to inputs that take a role ID, such as `TeamRoleAssignment.roleId` and `OrganizationMember.roleId`.",
            "type": "string"
          }
        },
        "required": [
          "roleId",
          "name",
          "builtIn"
        ],
        "type": "object"
      }
    },
    "pulumiservice:index:getOrganizationRoleScopes": {
      "description": "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.",
      "inputs": {
        "properties": {
          "organizationName": {
            "type": "string",
            "description": "The Pulumi Cloud organization name."
          }
        },
        "type": "object",
        "required": [
          "organizationName"
        ]
      },
      "outputs": {
        "properties": {
          "scopes": {
            "items": {
              "$ref": "#/types/pulumiservice:index:RoleScopeInfo"
            },
            "type": "array"
          }
        },
        "required": [
          "scopes"
        ],
        "type": "object"
      }
    },
    "pulumiservice:index:getOrganizationRoles": {
      "description": "Lists the roles in a Pulumi Cloud organization, including both built-in and custom roles, sorted by name. To look up a single role by the name shown in the Pulumi Cloud console, use `getOrganizationRole`.\n\n{{% examples %}}\n## Example Usage\n\n{{% example %}}\n### List all roles\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as pulumiservice from \"@pulumi/pulumiservice\";\n\nconst allRoles = pulumiservice.getOrganizationRolesOutput({\n    organizationName: \"my-org\",\n});\nexport const roles = allRoles.apply(allRoles => allRoles.roles);\n```\n\n```python\nimport pulumi\nimport pulumi_pulumiservice as pulumiservice\n\nall_roles = pulumiservice.get_organization_roles_output(organization_name=\"my-org\")\npulumi.export(\"roles\", all_roles.roles)\n```\n\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-pulumiservice/sdk/go/pulumiservice\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tallRoles := pulumiservice.GetOrganizationRolesOutput(ctx, pulumiservice.GetOrganizationRolesOutputArgs{\n\t\t\tOrganizationName: pulumi.String(\"my-org\"),\n\t\t}, nil)\n\t\tctx.Export(\"roles\", allRoles.ApplyT(func(allRoles pulumiservice.GetOrganizationRolesResult) ([]pulumiservice.OrganizationRoleInfo, error) {\n\t\t\treturn allRoles.Roles.([]pulumiservice.OrganizationRoleInfo), nil\n\t\t}).(pulumi.ArrayOutput))\n\t\treturn nil\n\t})\n}\n```\n\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing PulumiService = Pulumi.PulumiService;\n\nreturn await Deployment.RunAsync(() => \n{\n    var allRoles = PulumiService.GetOrganizationRoles.Invoke(new()\n    {\n        OrganizationName = \"my-org\",\n    });\n\n    return new Dictionary<string, object?>\n    {\n        [\"roles\"] = allRoles.Apply(getOrganizationRolesResult => getOrganizationRolesResult.Roles),\n    };\n});\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.pulumiservice.PulumiserviceFunctions;\nimport com.pulumi.pulumiservice.inputs.GetOrganizationRolesArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n    public static void main(String[] args) {\n        Pulumi.run(App::stack);\n    }\n\n    public static void stack(Context ctx) {\n        final var allRoles = PulumiserviceFunctions.getOrganizationRoles(GetOrganizationRolesArgs.builder()\n            .organizationName(\"my-org\")\n            .build());\n\n        ctx.export(\"roles\", allRoles.applyValue(_allRoles -> _allRoles.roles()));\n    }\n}\n```\n\n```yaml\nvariables:\n  allRoles:\n    fn::invoke:\n      function: pulumiservice:getOrganizationRoles\n      arguments:\n        organizationName: my-org\noutputs:\n  roles: ${allRoles.roles}\n```\n{{% /example %}}\n{{% /examples %}}\n",
      "inputs": {
        "properties": {
          "organizationName": {
            "type": "string",
            "description": "The name of the Pulumi organization."
          }
        },
        "type": "object",
        "required": [
          "organizationName"
        ]
      },
      "outputs": {
        "properties": {
          "roles": {
            "description": "The organization's roles, built-in and custom, sorted by name.",
            "items": {
              "$ref": "#/types/pulumiservice:index:OrganizationRoleInfo"
            },
            "type": "array"
          }
        },
        "required": [
          "roles"
        ],
        "type": "object"
      }
    },
    "pulumiservice:index:getPolicyPack": {
      "description": "Get details about a specific version of a policy pack.",
      "inputs": {
        "properties": {
          "organizationName": {
            "type": "string",
            "description": "The name of the Pulumi organization."
          },
          "policyPackName": {
            "type": "string",
            "description": "The name of the policy pack."
          },
          "versionTag": {
            "type": "string",
            "description": "The version tag of the policy pack, for example `1.4.1`, as shown in Pulumi Cloud. If not specified, returns the latest version."
          }
        },
        "type": "object",
        "required": [
          "organizationName",
          "policyPackName"
        ]
      },
      "outputs": {
        "properties": {
          "config": {
            "additionalProperties": {
              "$ref": "pulumi.json#/Any"
            },
            "description": "Configuration for the policy pack.",
            "type": "object"
          },
          "displayName": {
            "description": "The display name of the policy pack.",
            "type": "string"
          },
          "name": {
            "description": "The name of the policy pack.",
            "type": "string"
          },
          "policies": {
            "description": "List of policies in this pack.",
            "items": {
              "additionalProperties": {
                "$ref": "pulumi.json#/Any"
              },
              "type": "object"
            },
            "type": "array"
          },
          "publisher": {
            "description": "The organization or user that published the policy pack. `pulumi` for Pulumi-published packs, otherwise the publishing organization's name. Omitted when the provider could not determine registry metadata for this pack.",
            "type": "string"
          },
          "source": {
            "description": "Where the policy pack is hosted in the Pulumi Registry: `pulumi` for packs published by Pulumi (for example `cis-aws`), `private` for packs published by an organization. Omitted when the provider could not determine registry metadata for this pack.",
            "type": "string"
          },
          "version": {
            "description": "The version number.",
            "type": "integer"
          },
          "versionTag": {
            "description": "The version tag (if any).",
            "type": "string"
          }
        },
        "required": [
          "name",
          "displayName",
          "version"
        ],
        "type": "object"
      }
    },
    "pulumiservice:index:getPolicyPacks": {
      "description": "Get a list of all policy packs for an organization.",
      "inputs": {
        "properties": {
          "organizationName": {
            "type": "string",
            "description": "The name of the Pulumi organization."
          }
        },
        "type": "object",
        "required": [
          "organizationName"
        ]
      },
      "outputs": {
        "properties": {
          "policyPacks": {
            "description": "List of policy packs in the organization.",
            "items": {
              "$ref": "#/types/pulumiservice:index:PolicyPackSummary"
            },
            "type": "array"
          }
        },
        "required": [
          "policyPacks"
        ],
        "type": "object"
      }
    },
    "pulumiservice:index:getStack": {
      "description": "Looks up an existing stack in Pulumi Cloud. Use its `stackId` to scope role permissions to the stack with an `id` entity rule in `buildRolePermissions`.",
      "inputs": {
        "properties": {
          "organizationName": {
            "type": "string",
            "description": "The Pulumi Cloud organization name."
          },
          "projectName": {
            "type": "string",
            "description": "The project name."
          },
          "stackName": {
            "type": "string",
            "description": "The stack name."
          }
        },
        "type": "object",
        "required": [
          "organizationName",
          "projectName",
          "stackName"
        ]
      },
      "outputs": {
        "properties": {
          "organizationName": {
            "description": "The Pulumi Cloud organization name.",
            "type": "string"
          },
          "projectName": {
            "description": "The project name.",
            "type": "string"
          },
          "stackId": {
            "description": "The stack's unique Pulumi Cloud identifier, which is distinct from the `organization/project/stack` name.",
            "type": "string"
          },
          "stackName": {
            "description": "The stack name.",
            "type": "string"
          },
          "tags": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "The stack's tags.",
            "type": "object"
          }
        },
        "required": [
          "organizationName",
          "projectName",
          "stackName",
          "stackId",
          "tags"
        ],
        "type": "object"
      }
    }
  }
}
