From d13c980e6f4ee264ca5a0a9bfddb7346f485abe3 Mon Sep 17 00:00:00 2001 From: pulumi-bot Date: Thu, 21 Mar 2024 12:57:51 +0000 Subject: [PATCH 1/2] make tfgen --- examples/go.mod | 4 +-- examples/go.sum | 8 ++--- .../cmd/pulumi-resource-github/schema.json | 34 +++++++++---------- provider/go.mod | 8 ++--- provider/go.sum | 16 ++++----- sdk/go.mod | 2 +- sdk/go.sum | 4 +-- 7 files changed, 38 insertions(+), 38 deletions(-) diff --git a/examples/go.mod b/examples/go.mod index 0d7032de..7f5c497a 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -3,7 +3,7 @@ module github.com/pulumi/pulumi-github/examples/v4 go 1.21 require ( - github.com/pulumi/pulumi/pkg/v3 v3.108.1 + github.com/pulumi/pulumi/pkg/v3 v3.111.1 github.com/stretchr/testify v1.8.4 ) @@ -138,7 +138,7 @@ require ( github.com/pmezard/go-difflib v1.0.0 // indirect github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect github.com/pulumi/esc v0.6.2 // indirect - github.com/pulumi/pulumi/sdk/v3 v3.108.1 // indirect + github.com/pulumi/pulumi/sdk/v3 v3.111.1 // indirect github.com/rivo/uniseg v0.4.4 // indirect github.com/rogpeppe/go-internal v1.11.0 // indirect github.com/ryanuber/go-glob v1.0.0 // indirect diff --git a/examples/go.sum b/examples/go.sum index e3010fb1..7aaf2c12 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -1467,10 +1467,10 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435 github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= github.com/pulumi/esc v0.6.2 h1:+z+l8cuwIauLSwXQS0uoI3rqB+YG4SzsZYtHfNoXBvw= github.com/pulumi/esc v0.6.2/go.mod h1:jNnYNjzsOgVTjCp0LL24NsCk8ZJxq4IoLQdCT0X7l8k= -github.com/pulumi/pulumi/pkg/v3 v3.108.1 h1:K1UK40v5IpEPIaJ2un3WNOTBbLQaKR26HbLLh5EmMHY= -github.com/pulumi/pulumi/pkg/v3 v3.108.1/go.mod h1:48uCfxkPXUq/XTBqei9VuR0CRWObnSVlqcLkD6DhII8= -github.com/pulumi/pulumi/sdk/v3 v3.108.1 h1:5idjc3JmzToYVizRPbFyjJ5UU4AbExd04pcSP9AhPEc= -github.com/pulumi/pulumi/sdk/v3 v3.108.1/go.mod h1:5A6GHUwAJlRY1SSLZh84aDIbsBShcrfcmHzI50ecSBg= +github.com/pulumi/pulumi/pkg/v3 v3.111.1 h1:SrVgQE96T7YlZx/AZoFSlXYwur7ZmQUHyjbPI8sH96Q= +github.com/pulumi/pulumi/pkg/v3 v3.111.1/go.mod h1:ZWsq8Y0EMHZ5E2ju92jC+POz97TEXs3BbQ6r2o0U4SA= +github.com/pulumi/pulumi/sdk/v3 v3.111.1 h1:uOeG/b6YxBuL59xHtmFPspMa8BB6ovjHelL7sVCGJZw= +github.com/pulumi/pulumi/sdk/v3 v3.111.1/go.mod h1:5A6GHUwAJlRY1SSLZh84aDIbsBShcrfcmHzI50ecSBg= github.com/rakyll/embedmd v0.0.0-20171029212350-c8060a0752a2/go.mod h1:7jOTMgqac46PZcF54q6l2hkLEG8op93fZu61KmxWDV4= github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= diff --git a/provider/cmd/pulumi-resource-github/schema.json b/provider/cmd/pulumi-resource-github/schema.json index 946e6723..dcd77954 100644 --- a/provider/cmd/pulumi-resource-github/schema.json +++ b/provider/cmd/pulumi-resource-github/schema.json @@ -2986,7 +2986,7 @@ }, "resources": { "github:index/actionsEnvironmentSecret:ActionsEnvironmentSecret": { - "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst exampleSecretActionsEnvironmentSecret = new github.ActionsEnvironmentSecret(\"exampleSecretActionsEnvironmentSecret\", {\n environment: \"example_environment\",\n secretName: \"example_secret_name\",\n plaintextValue: _var.some_secret_string,\n});\nconst exampleSecretIndex_actionsEnvironmentSecretActionsEnvironmentSecret = new github.ActionsEnvironmentSecret(\"exampleSecretIndex/actionsEnvironmentSecretActionsEnvironmentSecret\", {\n environment: \"example_environment\",\n secretName: \"example_secret_name\",\n encryptedValue: _var.some_encrypted_secret_string,\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample_secret_actions_environment_secret = github.ActionsEnvironmentSecret(\"exampleSecretActionsEnvironmentSecret\",\n environment=\"example_environment\",\n secret_name=\"example_secret_name\",\n plaintext_value=var[\"some_secret_string\"])\nexample_secret_index_actions_environment_secret_actions_environment_secret = github.ActionsEnvironmentSecret(\"exampleSecretIndex/actionsEnvironmentSecretActionsEnvironmentSecret\",\n environment=\"example_environment\",\n secret_name=\"example_secret_name\",\n encrypted_value=var[\"some_encrypted_secret_string\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleSecretActionsEnvironmentSecret = new Github.ActionsEnvironmentSecret(\"exampleSecretActionsEnvironmentSecret\", new()\n {\n Environment = \"example_environment\",\n SecretName = \"example_secret_name\",\n PlaintextValue = @var.Some_secret_string,\n });\n\n var exampleSecretIndex_actionsEnvironmentSecretActionsEnvironmentSecret = new Github.ActionsEnvironmentSecret(\"exampleSecretIndex/actionsEnvironmentSecretActionsEnvironmentSecret\", new()\n {\n Environment = \"example_environment\",\n SecretName = \"example_secret_name\",\n EncryptedValue = @var.Some_encrypted_secret_string,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\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 := github.NewActionsEnvironmentSecret(ctx, \"exampleSecretActionsEnvironmentSecret\", \u0026github.ActionsEnvironmentSecretArgs{\n\t\t\tEnvironment: pulumi.String(\"example_environment\"),\n\t\t\tSecretName: pulumi.String(\"example_secret_name\"),\n\t\t\tPlaintextValue: pulumi.Any(_var.Some_secret_string),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewActionsEnvironmentSecret(ctx, \"exampleSecretIndex/actionsEnvironmentSecretActionsEnvironmentSecret\", \u0026github.ActionsEnvironmentSecretArgs{\n\t\t\tEnvironment: pulumi.String(\"example_environment\"),\n\t\t\tSecretName: pulumi.String(\"example_secret_name\"),\n\t\t\tEncryptedValue: pulumi.Any(_var.Some_encrypted_secret_string),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.ActionsEnvironmentSecret;\nimport com.pulumi.github.ActionsEnvironmentSecretArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 exampleSecretActionsEnvironmentSecret = new ActionsEnvironmentSecret(\"exampleSecretActionsEnvironmentSecret\", ActionsEnvironmentSecretArgs.builder() \n .environment(\"example_environment\")\n .secretName(\"example_secret_name\")\n .plaintextValue(var_.some_secret_string())\n .build());\n\n var exampleSecretIndex_actionsEnvironmentSecretActionsEnvironmentSecret = new ActionsEnvironmentSecret(\"exampleSecretIndex/actionsEnvironmentSecretActionsEnvironmentSecret\", ActionsEnvironmentSecretArgs.builder() \n .environment(\"example_environment\")\n .secretName(\"example_secret_name\")\n .encryptedValue(var_.some_encrypted_secret_string())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleSecretActionsEnvironmentSecret:\n type: github:ActionsEnvironmentSecret\n properties:\n environment: example_environment\n secretName: example_secret_name\n plaintextValue: ${var.some_secret_string}\n exampleSecretIndex/actionsEnvironmentSecretActionsEnvironmentSecret:\n type: github:ActionsEnvironmentSecret\n properties:\n environment: example_environment\n secretName: example_secret_name\n encryptedValue: ${var.some_encrypted_secret_string}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst repo = github.getRepository({\n fullName: \"my-org/repo\",\n});\nconst repoEnvironment = new github.RepositoryEnvironment(\"repoEnvironment\", {\n repository: repo.then(repo =\u003e repo.name),\n environment: \"example_environment\",\n});\nconst testSecret = new github.ActionsEnvironmentSecret(\"testSecret\", {\n repository: repo.then(repo =\u003e repo.name),\n environment: repoEnvironment.environment,\n secretName: \"test_secret_name\",\n plaintextValue: \"%s\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nrepo = github.get_repository(full_name=\"my-org/repo\")\nrepo_environment = github.RepositoryEnvironment(\"repoEnvironment\",\n repository=repo.name,\n environment=\"example_environment\")\ntest_secret = github.ActionsEnvironmentSecret(\"testSecret\",\n repository=repo.name,\n environment=repo_environment.environment,\n secret_name=\"test_secret_name\",\n plaintext_value=\"%s\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var repo = Github.GetRepository.Invoke(new()\n {\n FullName = \"my-org/repo\",\n });\n\n var repoEnvironment = new Github.RepositoryEnvironment(\"repoEnvironment\", new()\n {\n Repository = repo.Apply(getRepositoryResult =\u003e getRepositoryResult.Name),\n Environment = \"example_environment\",\n });\n\n var testSecret = new Github.ActionsEnvironmentSecret(\"testSecret\", new()\n {\n Repository = repo.Apply(getRepositoryResult =\u003e getRepositoryResult.Name),\n Environment = repoEnvironment.Environment,\n SecretName = \"test_secret_name\",\n PlaintextValue = \"%s\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\trepo, err := github.LookupRepository(ctx, \u0026github.LookupRepositoryArgs{\n\t\t\tFullName: pulumi.StringRef(\"my-org/repo\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\trepoEnvironment, err := github.NewRepositoryEnvironment(ctx, \"repoEnvironment\", \u0026github.RepositoryEnvironmentArgs{\n\t\t\tRepository: *pulumi.String(repo.Name),\n\t\t\tEnvironment: pulumi.String(\"example_environment\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewActionsEnvironmentSecret(ctx, \"testSecret\", \u0026github.ActionsEnvironmentSecretArgs{\n\t\t\tRepository: *pulumi.String(repo.Name),\n\t\t\tEnvironment: repoEnvironment.Environment,\n\t\t\tSecretName: pulumi.String(\"test_secret_name\"),\n\t\t\tPlaintextValue: pulumi.String(\"%s\"),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.GithubFunctions;\nimport com.pulumi.github.inputs.GetRepositoryArgs;\nimport com.pulumi.github.RepositoryEnvironment;\nimport com.pulumi.github.RepositoryEnvironmentArgs;\nimport com.pulumi.github.ActionsEnvironmentSecret;\nimport com.pulumi.github.ActionsEnvironmentSecretArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 repo = GithubFunctions.getRepository(GetRepositoryArgs.builder()\n .fullName(\"my-org/repo\")\n .build());\n\n var repoEnvironment = new RepositoryEnvironment(\"repoEnvironment\", RepositoryEnvironmentArgs.builder() \n .repository(repo.applyValue(getRepositoryResult -\u003e getRepositoryResult.name()))\n .environment(\"example_environment\")\n .build());\n\n var testSecret = new ActionsEnvironmentSecret(\"testSecret\", ActionsEnvironmentSecretArgs.builder() \n .repository(repo.applyValue(getRepositoryResult -\u003e getRepositoryResult.name()))\n .environment(repoEnvironment.environment())\n .secretName(\"test_secret_name\")\n .plaintextValue(\"%s\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n repoEnvironment:\n type: github:RepositoryEnvironment\n properties:\n repository: ${repo.name}\n environment: example_environment\n testSecret:\n type: github:ActionsEnvironmentSecret\n properties:\n repository: ${repo.name}\n environment: ${repoEnvironment.environment}\n secretName: test_secret_name\n plaintextValue: '%s'\nvariables:\n repo:\n fn::invoke:\n Function: github:getRepository\n Arguments:\n fullName: my-org/repo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nThis resource does not support importing. If you'd like to help contribute it, please visit our GitHub page!\n\n", + "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst exampleSecretActionsEnvironmentSecret = new github.ActionsEnvironmentSecret(\"exampleSecretActionsEnvironmentSecret\", {\n environment: \"example_environment\",\n secretName: \"example_secret_name\",\n plaintextValue: _var.some_secret_string,\n});\nconst exampleSecretIndex_actionsEnvironmentSecretActionsEnvironmentSecret = new github.ActionsEnvironmentSecret(\"exampleSecretIndex/actionsEnvironmentSecretActionsEnvironmentSecret\", {\n environment: \"example_environment\",\n secretName: \"example_secret_name\",\n encryptedValue: _var.some_encrypted_secret_string,\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample_secret_actions_environment_secret = github.ActionsEnvironmentSecret(\"exampleSecretActionsEnvironmentSecret\",\n environment=\"example_environment\",\n secret_name=\"example_secret_name\",\n plaintext_value=var[\"some_secret_string\"])\nexample_secret_index_actions_environment_secret_actions_environment_secret = github.ActionsEnvironmentSecret(\"exampleSecretIndex/actionsEnvironmentSecretActionsEnvironmentSecret\",\n environment=\"example_environment\",\n secret_name=\"example_secret_name\",\n encrypted_value=var[\"some_encrypted_secret_string\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleSecretActionsEnvironmentSecret = new Github.ActionsEnvironmentSecret(\"exampleSecretActionsEnvironmentSecret\", new()\n {\n Environment = \"example_environment\",\n SecretName = \"example_secret_name\",\n PlaintextValue = @var.Some_secret_string,\n });\n\n var exampleSecretIndex_actionsEnvironmentSecretActionsEnvironmentSecret = new Github.ActionsEnvironmentSecret(\"exampleSecretIndex/actionsEnvironmentSecretActionsEnvironmentSecret\", new()\n {\n Environment = \"example_environment\",\n SecretName = \"example_secret_name\",\n EncryptedValue = @var.Some_encrypted_secret_string,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\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 := github.NewActionsEnvironmentSecret(ctx, \"exampleSecretActionsEnvironmentSecret\", \u0026github.ActionsEnvironmentSecretArgs{\n\t\t\tEnvironment: pulumi.String(\"example_environment\"),\n\t\t\tSecretName: pulumi.String(\"example_secret_name\"),\n\t\t\tPlaintextValue: pulumi.Any(_var.Some_secret_string),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewActionsEnvironmentSecret(ctx, \"exampleSecretIndex/actionsEnvironmentSecretActionsEnvironmentSecret\", \u0026github.ActionsEnvironmentSecretArgs{\n\t\t\tEnvironment: pulumi.String(\"example_environment\"),\n\t\t\tSecretName: pulumi.String(\"example_secret_name\"),\n\t\t\tEncryptedValue: pulumi.Any(_var.Some_encrypted_secret_string),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.ActionsEnvironmentSecret;\nimport com.pulumi.github.ActionsEnvironmentSecretArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 exampleSecretActionsEnvironmentSecret = new ActionsEnvironmentSecret(\"exampleSecretActionsEnvironmentSecret\", ActionsEnvironmentSecretArgs.builder() \n .environment(\"example_environment\")\n .secretName(\"example_secret_name\")\n .plaintextValue(var_.some_secret_string())\n .build());\n\n var exampleSecretIndex_actionsEnvironmentSecretActionsEnvironmentSecret = new ActionsEnvironmentSecret(\"exampleSecretIndex/actionsEnvironmentSecretActionsEnvironmentSecret\", ActionsEnvironmentSecretArgs.builder() \n .environment(\"example_environment\")\n .secretName(\"example_secret_name\")\n .encryptedValue(var_.some_encrypted_secret_string())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleSecretActionsEnvironmentSecret:\n type: github:ActionsEnvironmentSecret\n properties:\n environment: example_environment\n secretName: example_secret_name\n plaintextValue: ${var.some_secret_string}\n exampleSecretIndex/actionsEnvironmentSecretActionsEnvironmentSecret:\n type: github:ActionsEnvironmentSecret\n properties:\n environment: example_environment\n secretName: example_secret_name\n encryptedValue: ${var.some_encrypted_secret_string}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst repo = github.getRepository({\n fullName: \"my-org/repo\",\n});\nconst repoEnvironment = new github.RepositoryEnvironment(\"repoEnvironment\", {\n repository: repo.then(repo =\u003e repo.name),\n environment: \"example_environment\",\n});\nconst testSecret = new github.ActionsEnvironmentSecret(\"testSecret\", {\n repository: repo.then(repo =\u003e repo.name),\n environment: repoEnvironment.environment,\n secretName: \"test_secret_name\",\n plaintextValue: \"%s\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nrepo = github.get_repository(full_name=\"my-org/repo\")\nrepo_environment = github.RepositoryEnvironment(\"repoEnvironment\",\n repository=repo.name,\n environment=\"example_environment\")\ntest_secret = github.ActionsEnvironmentSecret(\"testSecret\",\n repository=repo.name,\n environment=repo_environment.environment,\n secret_name=\"test_secret_name\",\n plaintext_value=\"%s\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var repo = Github.GetRepository.Invoke(new()\n {\n FullName = \"my-org/repo\",\n });\n\n var repoEnvironment = new Github.RepositoryEnvironment(\"repoEnvironment\", new()\n {\n Repository = repo.Apply(getRepositoryResult =\u003e getRepositoryResult.Name),\n Environment = \"example_environment\",\n });\n\n var testSecret = new Github.ActionsEnvironmentSecret(\"testSecret\", new()\n {\n Repository = repo.Apply(getRepositoryResult =\u003e getRepositoryResult.Name),\n Environment = repoEnvironment.Environment,\n SecretName = \"test_secret_name\",\n PlaintextValue = \"%s\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\trepo, err := github.LookupRepository(ctx, \u0026github.LookupRepositoryArgs{\n\t\t\tFullName: pulumi.StringRef(\"my-org/repo\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\trepoEnvironment, err := github.NewRepositoryEnvironment(ctx, \"repoEnvironment\", \u0026github.RepositoryEnvironmentArgs{\n\t\t\tRepository: pulumi.String(repo.Name),\n\t\t\tEnvironment: pulumi.String(\"example_environment\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewActionsEnvironmentSecret(ctx, \"testSecret\", \u0026github.ActionsEnvironmentSecretArgs{\n\t\t\tRepository: pulumi.String(repo.Name),\n\t\t\tEnvironment: repoEnvironment.Environment,\n\t\t\tSecretName: pulumi.String(\"test_secret_name\"),\n\t\t\tPlaintextValue: pulumi.String(\"%s\"),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.GithubFunctions;\nimport com.pulumi.github.inputs.GetRepositoryArgs;\nimport com.pulumi.github.RepositoryEnvironment;\nimport com.pulumi.github.RepositoryEnvironmentArgs;\nimport com.pulumi.github.ActionsEnvironmentSecret;\nimport com.pulumi.github.ActionsEnvironmentSecretArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 repo = GithubFunctions.getRepository(GetRepositoryArgs.builder()\n .fullName(\"my-org/repo\")\n .build());\n\n var repoEnvironment = new RepositoryEnvironment(\"repoEnvironment\", RepositoryEnvironmentArgs.builder() \n .repository(repo.applyValue(getRepositoryResult -\u003e getRepositoryResult.name()))\n .environment(\"example_environment\")\n .build());\n\n var testSecret = new ActionsEnvironmentSecret(\"testSecret\", ActionsEnvironmentSecretArgs.builder() \n .repository(repo.applyValue(getRepositoryResult -\u003e getRepositoryResult.name()))\n .environment(repoEnvironment.environment())\n .secretName(\"test_secret_name\")\n .plaintextValue(\"%s\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n repoEnvironment:\n type: github:RepositoryEnvironment\n properties:\n repository: ${repo.name}\n environment: example_environment\n testSecret:\n type: github:ActionsEnvironmentSecret\n properties:\n repository: ${repo.name}\n environment: ${repoEnvironment.environment}\n secretName: test_secret_name\n plaintextValue: '%s'\nvariables:\n repo:\n fn::invoke:\n Function: github:getRepository\n Arguments:\n fullName: my-org/repo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nThis resource does not support importing. If you'd like to help contribute it, please visit our GitHub page!\n\n", "properties": { "createdAt": { "type": "string", @@ -3103,7 +3103,7 @@ } }, "github:index/actionsEnvironmentVariable:ActionsEnvironmentVariable": { - "description": "This resource allows you to create and manage GitHub Actions variables within your GitHub repository environments.\nYou must have write access to a repository to use this resource.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst exampleVariable = new github.ActionsEnvironmentVariable(\"exampleVariable\", {\n environment: \"example_environment\",\n value: \"example_variable_value\",\n variableName: \"example_variable_name\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample_variable = github.ActionsEnvironmentVariable(\"exampleVariable\",\n environment=\"example_environment\",\n value=\"example_variable_value\",\n variable_name=\"example_variable_name\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleVariable = new Github.ActionsEnvironmentVariable(\"exampleVariable\", new()\n {\n Environment = \"example_environment\",\n Value = \"example_variable_value\",\n VariableName = \"example_variable_name\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\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 := github.NewActionsEnvironmentVariable(ctx, \"exampleVariable\", \u0026github.ActionsEnvironmentVariableArgs{\n\t\t\tEnvironment: pulumi.String(\"example_environment\"),\n\t\t\tValue: pulumi.String(\"example_variable_value\"),\n\t\t\tVariableName: pulumi.String(\"example_variable_name\"),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.ActionsEnvironmentVariable;\nimport com.pulumi.github.ActionsEnvironmentVariableArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 exampleVariable = new ActionsEnvironmentVariable(\"exampleVariable\", ActionsEnvironmentVariableArgs.builder() \n .environment(\"example_environment\")\n .value(\"example_variable_value\")\n .variableName(\"example_variable_name\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleVariable:\n type: github:ActionsEnvironmentVariable\n properties:\n environment: example_environment\n value: example_variable_value\n variableName: example_variable_name\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst repo = github.getRepository({\n fullName: \"my-org/repo\",\n});\nconst repoEnvironment = new github.RepositoryEnvironment(\"repoEnvironment\", {\n repository: repo.then(repo =\u003e repo.name),\n environment: \"example_environment\",\n});\nconst exampleVariable = new github.ActionsEnvironmentVariable(\"exampleVariable\", {\n repository: repo.then(repo =\u003e repo.name),\n environment: repoEnvironment.environment,\n variableName: \"example_variable_name\",\n value: \"example_variable_value\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nrepo = github.get_repository(full_name=\"my-org/repo\")\nrepo_environment = github.RepositoryEnvironment(\"repoEnvironment\",\n repository=repo.name,\n environment=\"example_environment\")\nexample_variable = github.ActionsEnvironmentVariable(\"exampleVariable\",\n repository=repo.name,\n environment=repo_environment.environment,\n variable_name=\"example_variable_name\",\n value=\"example_variable_value\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var repo = Github.GetRepository.Invoke(new()\n {\n FullName = \"my-org/repo\",\n });\n\n var repoEnvironment = new Github.RepositoryEnvironment(\"repoEnvironment\", new()\n {\n Repository = repo.Apply(getRepositoryResult =\u003e getRepositoryResult.Name),\n Environment = \"example_environment\",\n });\n\n var exampleVariable = new Github.ActionsEnvironmentVariable(\"exampleVariable\", new()\n {\n Repository = repo.Apply(getRepositoryResult =\u003e getRepositoryResult.Name),\n Environment = repoEnvironment.Environment,\n VariableName = \"example_variable_name\",\n Value = \"example_variable_value\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\trepo, err := github.LookupRepository(ctx, \u0026github.LookupRepositoryArgs{\n\t\t\tFullName: pulumi.StringRef(\"my-org/repo\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\trepoEnvironment, err := github.NewRepositoryEnvironment(ctx, \"repoEnvironment\", \u0026github.RepositoryEnvironmentArgs{\n\t\t\tRepository: *pulumi.String(repo.Name),\n\t\t\tEnvironment: pulumi.String(\"example_environment\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewActionsEnvironmentVariable(ctx, \"exampleVariable\", \u0026github.ActionsEnvironmentVariableArgs{\n\t\t\tRepository: *pulumi.String(repo.Name),\n\t\t\tEnvironment: repoEnvironment.Environment,\n\t\t\tVariableName: pulumi.String(\"example_variable_name\"),\n\t\t\tValue: pulumi.String(\"example_variable_value\"),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.GithubFunctions;\nimport com.pulumi.github.inputs.GetRepositoryArgs;\nimport com.pulumi.github.RepositoryEnvironment;\nimport com.pulumi.github.RepositoryEnvironmentArgs;\nimport com.pulumi.github.ActionsEnvironmentVariable;\nimport com.pulumi.github.ActionsEnvironmentVariableArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 repo = GithubFunctions.getRepository(GetRepositoryArgs.builder()\n .fullName(\"my-org/repo\")\n .build());\n\n var repoEnvironment = new RepositoryEnvironment(\"repoEnvironment\", RepositoryEnvironmentArgs.builder() \n .repository(repo.applyValue(getRepositoryResult -\u003e getRepositoryResult.name()))\n .environment(\"example_environment\")\n .build());\n\n var exampleVariable = new ActionsEnvironmentVariable(\"exampleVariable\", ActionsEnvironmentVariableArgs.builder() \n .repository(repo.applyValue(getRepositoryResult -\u003e getRepositoryResult.name()))\n .environment(repoEnvironment.environment())\n .variableName(\"example_variable_name\")\n .value(\"example_variable_value\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n repoEnvironment:\n type: github:RepositoryEnvironment\n properties:\n repository: ${repo.name}\n environment: example_environment\n exampleVariable:\n type: github:ActionsEnvironmentVariable\n properties:\n repository: ${repo.name}\n environment: ${repoEnvironment.environment}\n variableName: example_variable_name\n value: example_variable_value\nvariables:\n repo:\n fn::invoke:\n Function: github:getRepository\n Arguments:\n fullName: my-org/repo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nThis resource can be imported using an ID made up of the repository name, environment name, and variable name:\n\n```sh\n$ pulumi import github:index/actionsEnvironmentVariable:ActionsEnvironmentVariable test_variable myrepo:myenv:myvariable\n```\n", + "description": "This resource allows you to create and manage GitHub Actions variables within your GitHub repository environments.\nYou must have write access to a repository to use this resource.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst exampleVariable = new github.ActionsEnvironmentVariable(\"exampleVariable\", {\n environment: \"example_environment\",\n value: \"example_variable_value\",\n variableName: \"example_variable_name\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample_variable = github.ActionsEnvironmentVariable(\"exampleVariable\",\n environment=\"example_environment\",\n value=\"example_variable_value\",\n variable_name=\"example_variable_name\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleVariable = new Github.ActionsEnvironmentVariable(\"exampleVariable\", new()\n {\n Environment = \"example_environment\",\n Value = \"example_variable_value\",\n VariableName = \"example_variable_name\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\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 := github.NewActionsEnvironmentVariable(ctx, \"exampleVariable\", \u0026github.ActionsEnvironmentVariableArgs{\n\t\t\tEnvironment: pulumi.String(\"example_environment\"),\n\t\t\tValue: pulumi.String(\"example_variable_value\"),\n\t\t\tVariableName: pulumi.String(\"example_variable_name\"),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.ActionsEnvironmentVariable;\nimport com.pulumi.github.ActionsEnvironmentVariableArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 exampleVariable = new ActionsEnvironmentVariable(\"exampleVariable\", ActionsEnvironmentVariableArgs.builder() \n .environment(\"example_environment\")\n .value(\"example_variable_value\")\n .variableName(\"example_variable_name\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleVariable:\n type: github:ActionsEnvironmentVariable\n properties:\n environment: example_environment\n value: example_variable_value\n variableName: example_variable_name\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst repo = github.getRepository({\n fullName: \"my-org/repo\",\n});\nconst repoEnvironment = new github.RepositoryEnvironment(\"repoEnvironment\", {\n repository: repo.then(repo =\u003e repo.name),\n environment: \"example_environment\",\n});\nconst exampleVariable = new github.ActionsEnvironmentVariable(\"exampleVariable\", {\n repository: repo.then(repo =\u003e repo.name),\n environment: repoEnvironment.environment,\n variableName: \"example_variable_name\",\n value: \"example_variable_value\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nrepo = github.get_repository(full_name=\"my-org/repo\")\nrepo_environment = github.RepositoryEnvironment(\"repoEnvironment\",\n repository=repo.name,\n environment=\"example_environment\")\nexample_variable = github.ActionsEnvironmentVariable(\"exampleVariable\",\n repository=repo.name,\n environment=repo_environment.environment,\n variable_name=\"example_variable_name\",\n value=\"example_variable_value\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var repo = Github.GetRepository.Invoke(new()\n {\n FullName = \"my-org/repo\",\n });\n\n var repoEnvironment = new Github.RepositoryEnvironment(\"repoEnvironment\", new()\n {\n Repository = repo.Apply(getRepositoryResult =\u003e getRepositoryResult.Name),\n Environment = \"example_environment\",\n });\n\n var exampleVariable = new Github.ActionsEnvironmentVariable(\"exampleVariable\", new()\n {\n Repository = repo.Apply(getRepositoryResult =\u003e getRepositoryResult.Name),\n Environment = repoEnvironment.Environment,\n VariableName = \"example_variable_name\",\n Value = \"example_variable_value\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\trepo, err := github.LookupRepository(ctx, \u0026github.LookupRepositoryArgs{\n\t\t\tFullName: pulumi.StringRef(\"my-org/repo\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\trepoEnvironment, err := github.NewRepositoryEnvironment(ctx, \"repoEnvironment\", \u0026github.RepositoryEnvironmentArgs{\n\t\t\tRepository: pulumi.String(repo.Name),\n\t\t\tEnvironment: pulumi.String(\"example_environment\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewActionsEnvironmentVariable(ctx, \"exampleVariable\", \u0026github.ActionsEnvironmentVariableArgs{\n\t\t\tRepository: pulumi.String(repo.Name),\n\t\t\tEnvironment: repoEnvironment.Environment,\n\t\t\tVariableName: pulumi.String(\"example_variable_name\"),\n\t\t\tValue: pulumi.String(\"example_variable_value\"),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.GithubFunctions;\nimport com.pulumi.github.inputs.GetRepositoryArgs;\nimport com.pulumi.github.RepositoryEnvironment;\nimport com.pulumi.github.RepositoryEnvironmentArgs;\nimport com.pulumi.github.ActionsEnvironmentVariable;\nimport com.pulumi.github.ActionsEnvironmentVariableArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 repo = GithubFunctions.getRepository(GetRepositoryArgs.builder()\n .fullName(\"my-org/repo\")\n .build());\n\n var repoEnvironment = new RepositoryEnvironment(\"repoEnvironment\", RepositoryEnvironmentArgs.builder() \n .repository(repo.applyValue(getRepositoryResult -\u003e getRepositoryResult.name()))\n .environment(\"example_environment\")\n .build());\n\n var exampleVariable = new ActionsEnvironmentVariable(\"exampleVariable\", ActionsEnvironmentVariableArgs.builder() \n .repository(repo.applyValue(getRepositoryResult -\u003e getRepositoryResult.name()))\n .environment(repoEnvironment.environment())\n .variableName(\"example_variable_name\")\n .value(\"example_variable_value\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n repoEnvironment:\n type: github:RepositoryEnvironment\n properties:\n repository: ${repo.name}\n environment: example_environment\n exampleVariable:\n type: github:ActionsEnvironmentVariable\n properties:\n repository: ${repo.name}\n environment: ${repoEnvironment.environment}\n variableName: example_variable_name\n value: example_variable_value\nvariables:\n repo:\n fn::invoke:\n Function: github:getRepository\n Arguments:\n fullName: my-org/repo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nThis resource can be imported using an ID made up of the repository name, environment name, and variable name:\n\n```sh\n$ pulumi import github:index/actionsEnvironmentVariable:ActionsEnvironmentVariable test_variable myrepo:myenv:myvariable\n```\n", "properties": { "createdAt": { "type": "string", @@ -3305,7 +3305,7 @@ } }, "github:index/actionsOrganizationSecret:ActionsOrganizationSecret": { - "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst exampleSecretActionsOrganizationSecret = new github.ActionsOrganizationSecret(\"exampleSecretActionsOrganizationSecret\", {\n secretName: \"example_secret_name\",\n visibility: \"private\",\n plaintextValue: _var.some_secret_string,\n});\nconst exampleSecretIndex_actionsOrganizationSecretActionsOrganizationSecret = new github.ActionsOrganizationSecret(\"exampleSecretIndex/actionsOrganizationSecretActionsOrganizationSecret\", {\n secretName: \"example_secret_name\",\n visibility: \"private\",\n encryptedValue: _var.some_encrypted_secret_string,\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample_secret_actions_organization_secret = github.ActionsOrganizationSecret(\"exampleSecretActionsOrganizationSecret\",\n secret_name=\"example_secret_name\",\n visibility=\"private\",\n plaintext_value=var[\"some_secret_string\"])\nexample_secret_index_actions_organization_secret_actions_organization_secret = github.ActionsOrganizationSecret(\"exampleSecretIndex/actionsOrganizationSecretActionsOrganizationSecret\",\n secret_name=\"example_secret_name\",\n visibility=\"private\",\n encrypted_value=var[\"some_encrypted_secret_string\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleSecretActionsOrganizationSecret = new Github.ActionsOrganizationSecret(\"exampleSecretActionsOrganizationSecret\", new()\n {\n SecretName = \"example_secret_name\",\n Visibility = \"private\",\n PlaintextValue = @var.Some_secret_string,\n });\n\n var exampleSecretIndex_actionsOrganizationSecretActionsOrganizationSecret = new Github.ActionsOrganizationSecret(\"exampleSecretIndex/actionsOrganizationSecretActionsOrganizationSecret\", new()\n {\n SecretName = \"example_secret_name\",\n Visibility = \"private\",\n EncryptedValue = @var.Some_encrypted_secret_string,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\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 := github.NewActionsOrganizationSecret(ctx, \"exampleSecretActionsOrganizationSecret\", \u0026github.ActionsOrganizationSecretArgs{\n\t\t\tSecretName: pulumi.String(\"example_secret_name\"),\n\t\t\tVisibility: pulumi.String(\"private\"),\n\t\t\tPlaintextValue: pulumi.Any(_var.Some_secret_string),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewActionsOrganizationSecret(ctx, \"exampleSecretIndex/actionsOrganizationSecretActionsOrganizationSecret\", \u0026github.ActionsOrganizationSecretArgs{\n\t\t\tSecretName: pulumi.String(\"example_secret_name\"),\n\t\t\tVisibility: pulumi.String(\"private\"),\n\t\t\tEncryptedValue: pulumi.Any(_var.Some_encrypted_secret_string),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.ActionsOrganizationSecret;\nimport com.pulumi.github.ActionsOrganizationSecretArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 exampleSecretActionsOrganizationSecret = new ActionsOrganizationSecret(\"exampleSecretActionsOrganizationSecret\", ActionsOrganizationSecretArgs.builder() \n .secretName(\"example_secret_name\")\n .visibility(\"private\")\n .plaintextValue(var_.some_secret_string())\n .build());\n\n var exampleSecretIndex_actionsOrganizationSecretActionsOrganizationSecret = new ActionsOrganizationSecret(\"exampleSecretIndex/actionsOrganizationSecretActionsOrganizationSecret\", ActionsOrganizationSecretArgs.builder() \n .secretName(\"example_secret_name\")\n .visibility(\"private\")\n .encryptedValue(var_.some_encrypted_secret_string())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleSecretActionsOrganizationSecret:\n type: github:ActionsOrganizationSecret\n properties:\n secretName: example_secret_name\n visibility: private\n plaintextValue: ${var.some_secret_string}\n exampleSecretIndex/actionsOrganizationSecretActionsOrganizationSecret:\n type: github:ActionsOrganizationSecret\n properties:\n secretName: example_secret_name\n visibility: private\n encryptedValue: ${var.some_encrypted_secret_string}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst repo = github.getRepository({\n fullName: \"my-org/repo\",\n});\nconst exampleSecretActionsOrganizationSecret = new github.ActionsOrganizationSecret(\"exampleSecretActionsOrganizationSecret\", {\n secretName: \"example_secret_name\",\n visibility: \"selected\",\n plaintextValue: _var.some_secret_string,\n selectedRepositoryIds: [repo.then(repo =\u003e repo.repoId)],\n});\nconst exampleSecretIndex_actionsOrganizationSecretActionsOrganizationSecret = new github.ActionsOrganizationSecret(\"exampleSecretIndex/actionsOrganizationSecretActionsOrganizationSecret\", {\n secretName: \"example_secret_name\",\n visibility: \"selected\",\n encryptedValue: _var.some_encrypted_secret_string,\n selectedRepositoryIds: [repo.then(repo =\u003e repo.repoId)],\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nrepo = github.get_repository(full_name=\"my-org/repo\")\nexample_secret_actions_organization_secret = github.ActionsOrganizationSecret(\"exampleSecretActionsOrganizationSecret\",\n secret_name=\"example_secret_name\",\n visibility=\"selected\",\n plaintext_value=var[\"some_secret_string\"],\n selected_repository_ids=[repo.repo_id])\nexample_secret_index_actions_organization_secret_actions_organization_secret = github.ActionsOrganizationSecret(\"exampleSecretIndex/actionsOrganizationSecretActionsOrganizationSecret\",\n secret_name=\"example_secret_name\",\n visibility=\"selected\",\n encrypted_value=var[\"some_encrypted_secret_string\"],\n selected_repository_ids=[repo.repo_id])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var repo = Github.GetRepository.Invoke(new()\n {\n FullName = \"my-org/repo\",\n });\n\n var exampleSecretActionsOrganizationSecret = new Github.ActionsOrganizationSecret(\"exampleSecretActionsOrganizationSecret\", new()\n {\n SecretName = \"example_secret_name\",\n Visibility = \"selected\",\n PlaintextValue = @var.Some_secret_string,\n SelectedRepositoryIds = new[]\n {\n repo.Apply(getRepositoryResult =\u003e getRepositoryResult.RepoId),\n },\n });\n\n var exampleSecretIndex_actionsOrganizationSecretActionsOrganizationSecret = new Github.ActionsOrganizationSecret(\"exampleSecretIndex/actionsOrganizationSecretActionsOrganizationSecret\", new()\n {\n SecretName = \"example_secret_name\",\n Visibility = \"selected\",\n EncryptedValue = @var.Some_encrypted_secret_string,\n SelectedRepositoryIds = new[]\n {\n repo.Apply(getRepositoryResult =\u003e getRepositoryResult.RepoId),\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\trepo, err := github.LookupRepository(ctx, \u0026github.LookupRepositoryArgs{\n\t\t\tFullName: pulumi.StringRef(\"my-org/repo\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewActionsOrganizationSecret(ctx, \"exampleSecretActionsOrganizationSecret\", \u0026github.ActionsOrganizationSecretArgs{\n\t\t\tSecretName: pulumi.String(\"example_secret_name\"),\n\t\t\tVisibility: pulumi.String(\"selected\"),\n\t\t\tPlaintextValue: pulumi.Any(_var.Some_secret_string),\n\t\t\tSelectedRepositoryIds: pulumi.IntArray{\n\t\t\t\t*pulumi.Int(repo.RepoId),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewActionsOrganizationSecret(ctx, \"exampleSecretIndex/actionsOrganizationSecretActionsOrganizationSecret\", \u0026github.ActionsOrganizationSecretArgs{\n\t\t\tSecretName: pulumi.String(\"example_secret_name\"),\n\t\t\tVisibility: pulumi.String(\"selected\"),\n\t\t\tEncryptedValue: pulumi.Any(_var.Some_encrypted_secret_string),\n\t\t\tSelectedRepositoryIds: pulumi.IntArray{\n\t\t\t\t*pulumi.Int(repo.RepoId),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.GithubFunctions;\nimport com.pulumi.github.inputs.GetRepositoryArgs;\nimport com.pulumi.github.ActionsOrganizationSecret;\nimport com.pulumi.github.ActionsOrganizationSecretArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 repo = GithubFunctions.getRepository(GetRepositoryArgs.builder()\n .fullName(\"my-org/repo\")\n .build());\n\n var exampleSecretActionsOrganizationSecret = new ActionsOrganizationSecret(\"exampleSecretActionsOrganizationSecret\", ActionsOrganizationSecretArgs.builder() \n .secretName(\"example_secret_name\")\n .visibility(\"selected\")\n .plaintextValue(var_.some_secret_string())\n .selectedRepositoryIds(repo.applyValue(getRepositoryResult -\u003e getRepositoryResult.repoId()))\n .build());\n\n var exampleSecretIndex_actionsOrganizationSecretActionsOrganizationSecret = new ActionsOrganizationSecret(\"exampleSecretIndex/actionsOrganizationSecretActionsOrganizationSecret\", ActionsOrganizationSecretArgs.builder() \n .secretName(\"example_secret_name\")\n .visibility(\"selected\")\n .encryptedValue(var_.some_encrypted_secret_string())\n .selectedRepositoryIds(repo.applyValue(getRepositoryResult -\u003e getRepositoryResult.repoId()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleSecretActionsOrganizationSecret:\n type: github:ActionsOrganizationSecret\n properties:\n secretName: example_secret_name\n visibility: selected\n plaintextValue: ${var.some_secret_string}\n selectedRepositoryIds:\n - ${repo.repoId}\n exampleSecretIndex/actionsOrganizationSecretActionsOrganizationSecret:\n type: github:ActionsOrganizationSecret\n properties:\n secretName: example_secret_name\n visibility: selected\n encryptedValue: ${var.some_encrypted_secret_string}\n selectedRepositoryIds:\n - ${repo.repoId}\nvariables:\n repo:\n fn::invoke:\n Function: github:getRepository\n Arguments:\n fullName: my-org/repo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nThis resource can be imported using an ID made up of the secret name:\n\n```sh\n$ pulumi import github:index/actionsOrganizationSecret:ActionsOrganizationSecret test_secret test_secret_name\n```\nNOTE: the implementation is limited in that it won't fetch the value of the\n`plaintext_value` or `encrypted_value` fields when importing. You may need to ignore changes for these as a workaround.\n\n", + "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst exampleSecretActionsOrganizationSecret = new github.ActionsOrganizationSecret(\"exampleSecretActionsOrganizationSecret\", {\n secretName: \"example_secret_name\",\n visibility: \"private\",\n plaintextValue: _var.some_secret_string,\n});\nconst exampleSecretIndex_actionsOrganizationSecretActionsOrganizationSecret = new github.ActionsOrganizationSecret(\"exampleSecretIndex/actionsOrganizationSecretActionsOrganizationSecret\", {\n secretName: \"example_secret_name\",\n visibility: \"private\",\n encryptedValue: _var.some_encrypted_secret_string,\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample_secret_actions_organization_secret = github.ActionsOrganizationSecret(\"exampleSecretActionsOrganizationSecret\",\n secret_name=\"example_secret_name\",\n visibility=\"private\",\n plaintext_value=var[\"some_secret_string\"])\nexample_secret_index_actions_organization_secret_actions_organization_secret = github.ActionsOrganizationSecret(\"exampleSecretIndex/actionsOrganizationSecretActionsOrganizationSecret\",\n secret_name=\"example_secret_name\",\n visibility=\"private\",\n encrypted_value=var[\"some_encrypted_secret_string\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleSecretActionsOrganizationSecret = new Github.ActionsOrganizationSecret(\"exampleSecretActionsOrganizationSecret\", new()\n {\n SecretName = \"example_secret_name\",\n Visibility = \"private\",\n PlaintextValue = @var.Some_secret_string,\n });\n\n var exampleSecretIndex_actionsOrganizationSecretActionsOrganizationSecret = new Github.ActionsOrganizationSecret(\"exampleSecretIndex/actionsOrganizationSecretActionsOrganizationSecret\", new()\n {\n SecretName = \"example_secret_name\",\n Visibility = \"private\",\n EncryptedValue = @var.Some_encrypted_secret_string,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\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 := github.NewActionsOrganizationSecret(ctx, \"exampleSecretActionsOrganizationSecret\", \u0026github.ActionsOrganizationSecretArgs{\n\t\t\tSecretName: pulumi.String(\"example_secret_name\"),\n\t\t\tVisibility: pulumi.String(\"private\"),\n\t\t\tPlaintextValue: pulumi.Any(_var.Some_secret_string),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewActionsOrganizationSecret(ctx, \"exampleSecretIndex/actionsOrganizationSecretActionsOrganizationSecret\", \u0026github.ActionsOrganizationSecretArgs{\n\t\t\tSecretName: pulumi.String(\"example_secret_name\"),\n\t\t\tVisibility: pulumi.String(\"private\"),\n\t\t\tEncryptedValue: pulumi.Any(_var.Some_encrypted_secret_string),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.ActionsOrganizationSecret;\nimport com.pulumi.github.ActionsOrganizationSecretArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 exampleSecretActionsOrganizationSecret = new ActionsOrganizationSecret(\"exampleSecretActionsOrganizationSecret\", ActionsOrganizationSecretArgs.builder() \n .secretName(\"example_secret_name\")\n .visibility(\"private\")\n .plaintextValue(var_.some_secret_string())\n .build());\n\n var exampleSecretIndex_actionsOrganizationSecretActionsOrganizationSecret = new ActionsOrganizationSecret(\"exampleSecretIndex/actionsOrganizationSecretActionsOrganizationSecret\", ActionsOrganizationSecretArgs.builder() \n .secretName(\"example_secret_name\")\n .visibility(\"private\")\n .encryptedValue(var_.some_encrypted_secret_string())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleSecretActionsOrganizationSecret:\n type: github:ActionsOrganizationSecret\n properties:\n secretName: example_secret_name\n visibility: private\n plaintextValue: ${var.some_secret_string}\n exampleSecretIndex/actionsOrganizationSecretActionsOrganizationSecret:\n type: github:ActionsOrganizationSecret\n properties:\n secretName: example_secret_name\n visibility: private\n encryptedValue: ${var.some_encrypted_secret_string}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst repo = github.getRepository({\n fullName: \"my-org/repo\",\n});\nconst exampleSecretActionsOrganizationSecret = new github.ActionsOrganizationSecret(\"exampleSecretActionsOrganizationSecret\", {\n secretName: \"example_secret_name\",\n visibility: \"selected\",\n plaintextValue: _var.some_secret_string,\n selectedRepositoryIds: [repo.then(repo =\u003e repo.repoId)],\n});\nconst exampleSecretIndex_actionsOrganizationSecretActionsOrganizationSecret = new github.ActionsOrganizationSecret(\"exampleSecretIndex/actionsOrganizationSecretActionsOrganizationSecret\", {\n secretName: \"example_secret_name\",\n visibility: \"selected\",\n encryptedValue: _var.some_encrypted_secret_string,\n selectedRepositoryIds: [repo.then(repo =\u003e repo.repoId)],\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nrepo = github.get_repository(full_name=\"my-org/repo\")\nexample_secret_actions_organization_secret = github.ActionsOrganizationSecret(\"exampleSecretActionsOrganizationSecret\",\n secret_name=\"example_secret_name\",\n visibility=\"selected\",\n plaintext_value=var[\"some_secret_string\"],\n selected_repository_ids=[repo.repo_id])\nexample_secret_index_actions_organization_secret_actions_organization_secret = github.ActionsOrganizationSecret(\"exampleSecretIndex/actionsOrganizationSecretActionsOrganizationSecret\",\n secret_name=\"example_secret_name\",\n visibility=\"selected\",\n encrypted_value=var[\"some_encrypted_secret_string\"],\n selected_repository_ids=[repo.repo_id])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var repo = Github.GetRepository.Invoke(new()\n {\n FullName = \"my-org/repo\",\n });\n\n var exampleSecretActionsOrganizationSecret = new Github.ActionsOrganizationSecret(\"exampleSecretActionsOrganizationSecret\", new()\n {\n SecretName = \"example_secret_name\",\n Visibility = \"selected\",\n PlaintextValue = @var.Some_secret_string,\n SelectedRepositoryIds = new[]\n {\n repo.Apply(getRepositoryResult =\u003e getRepositoryResult.RepoId),\n },\n });\n\n var exampleSecretIndex_actionsOrganizationSecretActionsOrganizationSecret = new Github.ActionsOrganizationSecret(\"exampleSecretIndex/actionsOrganizationSecretActionsOrganizationSecret\", new()\n {\n SecretName = \"example_secret_name\",\n Visibility = \"selected\",\n EncryptedValue = @var.Some_encrypted_secret_string,\n SelectedRepositoryIds = new[]\n {\n repo.Apply(getRepositoryResult =\u003e getRepositoryResult.RepoId),\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\trepo, err := github.LookupRepository(ctx, \u0026github.LookupRepositoryArgs{\n\t\t\tFullName: pulumi.StringRef(\"my-org/repo\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewActionsOrganizationSecret(ctx, \"exampleSecretActionsOrganizationSecret\", \u0026github.ActionsOrganizationSecretArgs{\n\t\t\tSecretName: pulumi.String(\"example_secret_name\"),\n\t\t\tVisibility: pulumi.String(\"selected\"),\n\t\t\tPlaintextValue: pulumi.Any(_var.Some_secret_string),\n\t\t\tSelectedRepositoryIds: pulumi.IntArray{\n\t\t\t\tpulumi.Int(repo.RepoId),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewActionsOrganizationSecret(ctx, \"exampleSecretIndex/actionsOrganizationSecretActionsOrganizationSecret\", \u0026github.ActionsOrganizationSecretArgs{\n\t\t\tSecretName: pulumi.String(\"example_secret_name\"),\n\t\t\tVisibility: pulumi.String(\"selected\"),\n\t\t\tEncryptedValue: pulumi.Any(_var.Some_encrypted_secret_string),\n\t\t\tSelectedRepositoryIds: pulumi.IntArray{\n\t\t\t\tpulumi.Int(repo.RepoId),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.GithubFunctions;\nimport com.pulumi.github.inputs.GetRepositoryArgs;\nimport com.pulumi.github.ActionsOrganizationSecret;\nimport com.pulumi.github.ActionsOrganizationSecretArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 repo = GithubFunctions.getRepository(GetRepositoryArgs.builder()\n .fullName(\"my-org/repo\")\n .build());\n\n var exampleSecretActionsOrganizationSecret = new ActionsOrganizationSecret(\"exampleSecretActionsOrganizationSecret\", ActionsOrganizationSecretArgs.builder() \n .secretName(\"example_secret_name\")\n .visibility(\"selected\")\n .plaintextValue(var_.some_secret_string())\n .selectedRepositoryIds(repo.applyValue(getRepositoryResult -\u003e getRepositoryResult.repoId()))\n .build());\n\n var exampleSecretIndex_actionsOrganizationSecretActionsOrganizationSecret = new ActionsOrganizationSecret(\"exampleSecretIndex/actionsOrganizationSecretActionsOrganizationSecret\", ActionsOrganizationSecretArgs.builder() \n .secretName(\"example_secret_name\")\n .visibility(\"selected\")\n .encryptedValue(var_.some_encrypted_secret_string())\n .selectedRepositoryIds(repo.applyValue(getRepositoryResult -\u003e getRepositoryResult.repoId()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleSecretActionsOrganizationSecret:\n type: github:ActionsOrganizationSecret\n properties:\n secretName: example_secret_name\n visibility: selected\n plaintextValue: ${var.some_secret_string}\n selectedRepositoryIds:\n - ${repo.repoId}\n exampleSecretIndex/actionsOrganizationSecretActionsOrganizationSecret:\n type: github:ActionsOrganizationSecret\n properties:\n secretName: example_secret_name\n visibility: selected\n encryptedValue: ${var.some_encrypted_secret_string}\n selectedRepositoryIds:\n - ${repo.repoId}\nvariables:\n repo:\n fn::invoke:\n Function: github:getRepository\n Arguments:\n fullName: my-org/repo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nThis resource can be imported using an ID made up of the secret name:\n\n```sh\n$ pulumi import github:index/actionsOrganizationSecret:ActionsOrganizationSecret test_secret test_secret_name\n```\nNOTE: the implementation is limited in that it won't fetch the value of the\n`plaintext_value` or `encrypted_value` fields when importing. You may need to ignore changes for these as a workaround.\n\n", "properties": { "createdAt": { "type": "string", @@ -3427,7 +3427,7 @@ } }, "github:index/actionsOrganizationSecretRepositories:ActionsOrganizationSecretRepositories": { - "description": "This resource allows you to manage repository allow list for existing GitHub Actions secrets within your GitHub organization.\nYou must have write access to an organization secret to use this resource.\n\nThis resource is only applicable when `visibility` of the existing organization secret has been set to `selected`.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst repo = github.getRepository({\n fullName: \"my-org/repo\",\n});\nconst orgSecretRepos = new github.ActionsOrganizationSecretRepositories(\"orgSecretRepos\", {\n secretName: \"existing_secret_name\",\n selectedRepositoryIds: [repo.then(repo =\u003e repo.repoId)],\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nrepo = github.get_repository(full_name=\"my-org/repo\")\norg_secret_repos = github.ActionsOrganizationSecretRepositories(\"orgSecretRepos\",\n secret_name=\"existing_secret_name\",\n selected_repository_ids=[repo.repo_id])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var repo = Github.GetRepository.Invoke(new()\n {\n FullName = \"my-org/repo\",\n });\n\n var orgSecretRepos = new Github.ActionsOrganizationSecretRepositories(\"orgSecretRepos\", new()\n {\n SecretName = \"existing_secret_name\",\n SelectedRepositoryIds = new[]\n {\n repo.Apply(getRepositoryResult =\u003e getRepositoryResult.RepoId),\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\trepo, err := github.LookupRepository(ctx, \u0026github.LookupRepositoryArgs{\n\t\t\tFullName: pulumi.StringRef(\"my-org/repo\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewActionsOrganizationSecretRepositories(ctx, \"orgSecretRepos\", \u0026github.ActionsOrganizationSecretRepositoriesArgs{\n\t\t\tSecretName: pulumi.String(\"existing_secret_name\"),\n\t\t\tSelectedRepositoryIds: pulumi.IntArray{\n\t\t\t\t*pulumi.Int(repo.RepoId),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.GithubFunctions;\nimport com.pulumi.github.inputs.GetRepositoryArgs;\nimport com.pulumi.github.ActionsOrganizationSecretRepositories;\nimport com.pulumi.github.ActionsOrganizationSecretRepositoriesArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 repo = GithubFunctions.getRepository(GetRepositoryArgs.builder()\n .fullName(\"my-org/repo\")\n .build());\n\n var orgSecretRepos = new ActionsOrganizationSecretRepositories(\"orgSecretRepos\", ActionsOrganizationSecretRepositoriesArgs.builder() \n .secretName(\"existing_secret_name\")\n .selectedRepositoryIds(repo.applyValue(getRepositoryResult -\u003e getRepositoryResult.repoId()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n orgSecretRepos:\n type: github:ActionsOrganizationSecretRepositories\n properties:\n secretName: existing_secret_name\n selectedRepositoryIds:\n - ${repo.repoId}\nvariables:\n repo:\n fn::invoke:\n Function: github:getRepository\n Arguments:\n fullName: my-org/repo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nThis resource can be imported using an ID made up of the secret name:\n\n```sh\n$ pulumi import github:index/actionsOrganizationSecretRepositories:ActionsOrganizationSecretRepositories test_secret_repos test_secret_name\n```\n", + "description": "This resource allows you to manage repository allow list for existing GitHub Actions secrets within your GitHub organization.\nYou must have write access to an organization secret to use this resource.\n\nThis resource is only applicable when `visibility` of the existing organization secret has been set to `selected`.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst repo = github.getRepository({\n fullName: \"my-org/repo\",\n});\nconst orgSecretRepos = new github.ActionsOrganizationSecretRepositories(\"orgSecretRepos\", {\n secretName: \"existing_secret_name\",\n selectedRepositoryIds: [repo.then(repo =\u003e repo.repoId)],\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nrepo = github.get_repository(full_name=\"my-org/repo\")\norg_secret_repos = github.ActionsOrganizationSecretRepositories(\"orgSecretRepos\",\n secret_name=\"existing_secret_name\",\n selected_repository_ids=[repo.repo_id])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var repo = Github.GetRepository.Invoke(new()\n {\n FullName = \"my-org/repo\",\n });\n\n var orgSecretRepos = new Github.ActionsOrganizationSecretRepositories(\"orgSecretRepos\", new()\n {\n SecretName = \"existing_secret_name\",\n SelectedRepositoryIds = new[]\n {\n repo.Apply(getRepositoryResult =\u003e getRepositoryResult.RepoId),\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\trepo, err := github.LookupRepository(ctx, \u0026github.LookupRepositoryArgs{\n\t\t\tFullName: pulumi.StringRef(\"my-org/repo\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewActionsOrganizationSecretRepositories(ctx, \"orgSecretRepos\", \u0026github.ActionsOrganizationSecretRepositoriesArgs{\n\t\t\tSecretName: pulumi.String(\"existing_secret_name\"),\n\t\t\tSelectedRepositoryIds: pulumi.IntArray{\n\t\t\t\tpulumi.Int(repo.RepoId),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.GithubFunctions;\nimport com.pulumi.github.inputs.GetRepositoryArgs;\nimport com.pulumi.github.ActionsOrganizationSecretRepositories;\nimport com.pulumi.github.ActionsOrganizationSecretRepositoriesArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 repo = GithubFunctions.getRepository(GetRepositoryArgs.builder()\n .fullName(\"my-org/repo\")\n .build());\n\n var orgSecretRepos = new ActionsOrganizationSecretRepositories(\"orgSecretRepos\", ActionsOrganizationSecretRepositoriesArgs.builder() \n .secretName(\"existing_secret_name\")\n .selectedRepositoryIds(repo.applyValue(getRepositoryResult -\u003e getRepositoryResult.repoId()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n orgSecretRepos:\n type: github:ActionsOrganizationSecretRepositories\n properties:\n secretName: existing_secret_name\n selectedRepositoryIds:\n - ${repo.repoId}\nvariables:\n repo:\n fn::invoke:\n Function: github:getRepository\n Arguments:\n fullName: my-org/repo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nThis resource can be imported using an ID made up of the secret name:\n\n```sh\n$ pulumi import github:index/actionsOrganizationSecretRepositories:ActionsOrganizationSecretRepositories test_secret_repos test_secret_name\n```\n", "properties": { "secretName": { "type": "string", @@ -3483,7 +3483,7 @@ } }, "github:index/actionsOrganizationVariable:ActionsOrganizationVariable": { - "description": "This resource allows you to create and manage GitHub Actions variables within your GitHub organization.\nYou must have write access to a repository to use this resource.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst exampleVariable = new github.ActionsOrganizationVariable(\"exampleVariable\", {\n value: \"example_variable_value\",\n variableName: \"example_variable_name\",\n visibility: \"private\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample_variable = github.ActionsOrganizationVariable(\"exampleVariable\",\n value=\"example_variable_value\",\n variable_name=\"example_variable_name\",\n visibility=\"private\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleVariable = new Github.ActionsOrganizationVariable(\"exampleVariable\", new()\n {\n Value = \"example_variable_value\",\n VariableName = \"example_variable_name\",\n Visibility = \"private\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\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 := github.NewActionsOrganizationVariable(ctx, \"exampleVariable\", \u0026github.ActionsOrganizationVariableArgs{\n\t\t\tValue: pulumi.String(\"example_variable_value\"),\n\t\t\tVariableName: pulumi.String(\"example_variable_name\"),\n\t\t\tVisibility: pulumi.String(\"private\"),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.ActionsOrganizationVariable;\nimport com.pulumi.github.ActionsOrganizationVariableArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 exampleVariable = new ActionsOrganizationVariable(\"exampleVariable\", ActionsOrganizationVariableArgs.builder() \n .value(\"example_variable_value\")\n .variableName(\"example_variable_name\")\n .visibility(\"private\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleVariable:\n type: github:ActionsOrganizationVariable\n properties:\n value: example_variable_value\n variableName: example_variable_name\n visibility: private\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst repo = github.getRepository({\n fullName: \"my-org/repo\",\n});\nconst exampleVariable = new github.ActionsOrganizationVariable(\"exampleVariable\", {\n variableName: \"example_variable_name\",\n visibility: \"selected\",\n value: \"example_variable_value\",\n selectedRepositoryIds: [repo.then(repo =\u003e repo.repoId)],\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nrepo = github.get_repository(full_name=\"my-org/repo\")\nexample_variable = github.ActionsOrganizationVariable(\"exampleVariable\",\n variable_name=\"example_variable_name\",\n visibility=\"selected\",\n value=\"example_variable_value\",\n selected_repository_ids=[repo.repo_id])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var repo = Github.GetRepository.Invoke(new()\n {\n FullName = \"my-org/repo\",\n });\n\n var exampleVariable = new Github.ActionsOrganizationVariable(\"exampleVariable\", new()\n {\n VariableName = \"example_variable_name\",\n Visibility = \"selected\",\n Value = \"example_variable_value\",\n SelectedRepositoryIds = new[]\n {\n repo.Apply(getRepositoryResult =\u003e getRepositoryResult.RepoId),\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\trepo, err := github.LookupRepository(ctx, \u0026github.LookupRepositoryArgs{\n\t\t\tFullName: pulumi.StringRef(\"my-org/repo\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewActionsOrganizationVariable(ctx, \"exampleVariable\", \u0026github.ActionsOrganizationVariableArgs{\n\t\t\tVariableName: pulumi.String(\"example_variable_name\"),\n\t\t\tVisibility: pulumi.String(\"selected\"),\n\t\t\tValue: pulumi.String(\"example_variable_value\"),\n\t\t\tSelectedRepositoryIds: pulumi.IntArray{\n\t\t\t\t*pulumi.Int(repo.RepoId),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.GithubFunctions;\nimport com.pulumi.github.inputs.GetRepositoryArgs;\nimport com.pulumi.github.ActionsOrganizationVariable;\nimport com.pulumi.github.ActionsOrganizationVariableArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 repo = GithubFunctions.getRepository(GetRepositoryArgs.builder()\n .fullName(\"my-org/repo\")\n .build());\n\n var exampleVariable = new ActionsOrganizationVariable(\"exampleVariable\", ActionsOrganizationVariableArgs.builder() \n .variableName(\"example_variable_name\")\n .visibility(\"selected\")\n .value(\"example_variable_value\")\n .selectedRepositoryIds(repo.applyValue(getRepositoryResult -\u003e getRepositoryResult.repoId()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleVariable:\n type: github:ActionsOrganizationVariable\n properties:\n variableName: example_variable_name\n visibility: selected\n value: example_variable_value\n selectedRepositoryIds:\n - ${repo.repoId}\nvariables:\n repo:\n fn::invoke:\n Function: github:getRepository\n Arguments:\n fullName: my-org/repo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nThis resource can be imported using an ID made up of the variable name:\n\n```sh\n$ pulumi import github:index/actionsOrganizationVariable:ActionsOrganizationVariable test_variable test_variable_name\n```\n", + "description": "This resource allows you to create and manage GitHub Actions variables within your GitHub organization.\nYou must have write access to a repository to use this resource.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst exampleVariable = new github.ActionsOrganizationVariable(\"exampleVariable\", {\n value: \"example_variable_value\",\n variableName: \"example_variable_name\",\n visibility: \"private\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample_variable = github.ActionsOrganizationVariable(\"exampleVariable\",\n value=\"example_variable_value\",\n variable_name=\"example_variable_name\",\n visibility=\"private\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleVariable = new Github.ActionsOrganizationVariable(\"exampleVariable\", new()\n {\n Value = \"example_variable_value\",\n VariableName = \"example_variable_name\",\n Visibility = \"private\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\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 := github.NewActionsOrganizationVariable(ctx, \"exampleVariable\", \u0026github.ActionsOrganizationVariableArgs{\n\t\t\tValue: pulumi.String(\"example_variable_value\"),\n\t\t\tVariableName: pulumi.String(\"example_variable_name\"),\n\t\t\tVisibility: pulumi.String(\"private\"),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.ActionsOrganizationVariable;\nimport com.pulumi.github.ActionsOrganizationVariableArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 exampleVariable = new ActionsOrganizationVariable(\"exampleVariable\", ActionsOrganizationVariableArgs.builder() \n .value(\"example_variable_value\")\n .variableName(\"example_variable_name\")\n .visibility(\"private\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleVariable:\n type: github:ActionsOrganizationVariable\n properties:\n value: example_variable_value\n variableName: example_variable_name\n visibility: private\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst repo = github.getRepository({\n fullName: \"my-org/repo\",\n});\nconst exampleVariable = new github.ActionsOrganizationVariable(\"exampleVariable\", {\n variableName: \"example_variable_name\",\n visibility: \"selected\",\n value: \"example_variable_value\",\n selectedRepositoryIds: [repo.then(repo =\u003e repo.repoId)],\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nrepo = github.get_repository(full_name=\"my-org/repo\")\nexample_variable = github.ActionsOrganizationVariable(\"exampleVariable\",\n variable_name=\"example_variable_name\",\n visibility=\"selected\",\n value=\"example_variable_value\",\n selected_repository_ids=[repo.repo_id])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var repo = Github.GetRepository.Invoke(new()\n {\n FullName = \"my-org/repo\",\n });\n\n var exampleVariable = new Github.ActionsOrganizationVariable(\"exampleVariable\", new()\n {\n VariableName = \"example_variable_name\",\n Visibility = \"selected\",\n Value = \"example_variable_value\",\n SelectedRepositoryIds = new[]\n {\n repo.Apply(getRepositoryResult =\u003e getRepositoryResult.RepoId),\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\trepo, err := github.LookupRepository(ctx, \u0026github.LookupRepositoryArgs{\n\t\t\tFullName: pulumi.StringRef(\"my-org/repo\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewActionsOrganizationVariable(ctx, \"exampleVariable\", \u0026github.ActionsOrganizationVariableArgs{\n\t\t\tVariableName: pulumi.String(\"example_variable_name\"),\n\t\t\tVisibility: pulumi.String(\"selected\"),\n\t\t\tValue: pulumi.String(\"example_variable_value\"),\n\t\t\tSelectedRepositoryIds: pulumi.IntArray{\n\t\t\t\tpulumi.Int(repo.RepoId),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.GithubFunctions;\nimport com.pulumi.github.inputs.GetRepositoryArgs;\nimport com.pulumi.github.ActionsOrganizationVariable;\nimport com.pulumi.github.ActionsOrganizationVariableArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 repo = GithubFunctions.getRepository(GetRepositoryArgs.builder()\n .fullName(\"my-org/repo\")\n .build());\n\n var exampleVariable = new ActionsOrganizationVariable(\"exampleVariable\", ActionsOrganizationVariableArgs.builder() \n .variableName(\"example_variable_name\")\n .visibility(\"selected\")\n .value(\"example_variable_value\")\n .selectedRepositoryIds(repo.applyValue(getRepositoryResult -\u003e getRepositoryResult.repoId()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleVariable:\n type: github:ActionsOrganizationVariable\n properties:\n variableName: example_variable_name\n visibility: selected\n value: example_variable_value\n selectedRepositoryIds:\n - ${repo.repoId}\nvariables:\n repo:\n fn::invoke:\n Function: github:getRepository\n Arguments:\n fullName: my-org/repo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nThis resource can be imported using an ID made up of the variable name:\n\n```sh\n$ pulumi import github:index/actionsOrganizationVariable:ActionsOrganizationVariable test_variable test_variable_name\n```\n", "properties": { "createdAt": { "type": "string", @@ -4396,7 +4396,7 @@ } }, "github:index/branchProtection:BranchProtection": { - "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst exampleRepository = new github.Repository(\"exampleRepository\", {});\nconst exampleUser = github.getUser({\n username: \"example\",\n});\nconst exampleTeam = new github.Team(\"exampleTeam\", {});\n// Protect the main branch of the foo repository. Additionally, require that\n// the \"ci/travis\" context to be passing and only allow the engineers team merge\n// to the branch.\nconst exampleBranchProtection = new github.BranchProtection(\"exampleBranchProtection\", {\n repositoryId: exampleRepository.nodeId,\n pattern: \"main\",\n enforceAdmins: true,\n allowsDeletions: true,\n requiredStatusChecks: [{\n strict: false,\n contexts: [\"ci/travis\"],\n }],\n requiredPullRequestReviews: [{\n dismissStaleReviews: true,\n restrictDismissals: true,\n dismissalRestrictions: [\n exampleUser.then(exampleUser =\u003e exampleUser.nodeId),\n exampleTeam.nodeId,\n \"/exampleuser\",\n \"exampleorganization/exampleteam\",\n ],\n }],\n restrictPushes: [{\n pushAllowances: [\n exampleUser.then(exampleUser =\u003e exampleUser.nodeId),\n \"/exampleuser\",\n \"exampleorganization/exampleteam\",\n ],\n }],\n forcePushBypassers: [\n exampleUser.then(exampleUser =\u003e exampleUser.nodeId),\n \"/exampleuser\",\n \"exampleorganization/exampleteam\",\n ],\n});\nconst exampleTeamRepository = new github.TeamRepository(\"exampleTeamRepository\", {\n teamId: exampleTeam.id,\n repository: exampleRepository.name,\n permission: \"pull\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample_repository = github.Repository(\"exampleRepository\")\nexample_user = github.get_user(username=\"example\")\nexample_team = github.Team(\"exampleTeam\")\n# Protect the main branch of the foo repository. Additionally, require that\n# the \"ci/travis\" context to be passing and only allow the engineers team merge\n# to the branch.\nexample_branch_protection = github.BranchProtection(\"exampleBranchProtection\",\n repository_id=example_repository.node_id,\n pattern=\"main\",\n enforce_admins=True,\n allows_deletions=True,\n required_status_checks=[github.BranchProtectionRequiredStatusCheckArgs(\n strict=False,\n contexts=[\"ci/travis\"],\n )],\n required_pull_request_reviews=[github.BranchProtectionRequiredPullRequestReviewArgs(\n dismiss_stale_reviews=True,\n restrict_dismissals=True,\n dismissal_restrictions=[\n example_user.node_id,\n example_team.node_id,\n \"/exampleuser\",\n \"exampleorganization/exampleteam\",\n ],\n )],\n restrict_pushes=[github.BranchProtectionRestrictPushArgs(\n push_allowances=[\n example_user.node_id,\n \"/exampleuser\",\n \"exampleorganization/exampleteam\",\n ],\n )],\n force_push_bypassers=[\n example_user.node_id,\n \"/exampleuser\",\n \"exampleorganization/exampleteam\",\n ])\nexample_team_repository = github.TeamRepository(\"exampleTeamRepository\",\n team_id=example_team.id,\n repository=example_repository.name,\n permission=\"pull\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleRepository = new Github.Repository(\"exampleRepository\");\n\n var exampleUser = Github.GetUser.Invoke(new()\n {\n Username = \"example\",\n });\n\n var exampleTeam = new Github.Team(\"exampleTeam\");\n\n // Protect the main branch of the foo repository. Additionally, require that\n // the \"ci/travis\" context to be passing and only allow the engineers team merge\n // to the branch.\n var exampleBranchProtection = new Github.BranchProtection(\"exampleBranchProtection\", new()\n {\n RepositoryId = exampleRepository.NodeId,\n Pattern = \"main\",\n EnforceAdmins = true,\n AllowsDeletions = true,\n RequiredStatusChecks = new[]\n {\n new Github.Inputs.BranchProtectionRequiredStatusCheckArgs\n {\n Strict = false,\n Contexts = new[]\n {\n \"ci/travis\",\n },\n },\n },\n RequiredPullRequestReviews = new[]\n {\n new Github.Inputs.BranchProtectionRequiredPullRequestReviewArgs\n {\n DismissStaleReviews = true,\n RestrictDismissals = true,\n DismissalRestrictions = new[]\n {\n exampleUser.Apply(getUserResult =\u003e getUserResult.NodeId),\n exampleTeam.NodeId,\n \"/exampleuser\",\n \"exampleorganization/exampleteam\",\n },\n },\n },\n RestrictPushes = new[]\n {\n new Github.Inputs.BranchProtectionRestrictPushArgs\n {\n PushAllowances = new[]\n {\n exampleUser.Apply(getUserResult =\u003e getUserResult.NodeId),\n \"/exampleuser\",\n \"exampleorganization/exampleteam\",\n },\n },\n },\n ForcePushBypassers = new[]\n {\n exampleUser.Apply(getUserResult =\u003e getUserResult.NodeId),\n \"/exampleuser\",\n \"exampleorganization/exampleteam\",\n },\n });\n\n var exampleTeamRepository = new Github.TeamRepository(\"exampleTeamRepository\", new()\n {\n TeamId = exampleTeam.Id,\n Repository = exampleRepository.Name,\n Permission = \"pull\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleRepository, err := github.NewRepository(ctx, \"exampleRepository\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleUser, err := github.GetUser(ctx, \u0026github.GetUserArgs{\n\t\t\tUsername: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleTeam, err := github.NewTeam(ctx, \"exampleTeam\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Protect the main branch of the foo repository. Additionally, require that\n\t\t// the \"ci/travis\" context to be passing and only allow the engineers team merge\n\t\t// to the branch.\n\t\t_, err = github.NewBranchProtection(ctx, \"exampleBranchProtection\", \u0026github.BranchProtectionArgs{\n\t\t\tRepositoryId: exampleRepository.NodeId,\n\t\t\tPattern: pulumi.String(\"main\"),\n\t\t\tEnforceAdmins: pulumi.Bool(true),\n\t\t\tAllowsDeletions: pulumi.Bool(true),\n\t\t\tRequiredStatusChecks: github.BranchProtectionRequiredStatusCheckArray{\n\t\t\t\t\u0026github.BranchProtectionRequiredStatusCheckArgs{\n\t\t\t\t\tStrict: pulumi.Bool(false),\n\t\t\t\t\tContexts: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"ci/travis\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tRequiredPullRequestReviews: github.BranchProtectionRequiredPullRequestReviewArray{\n\t\t\t\t\u0026github.BranchProtectionRequiredPullRequestReviewArgs{\n\t\t\t\t\tDismissStaleReviews: pulumi.Bool(true),\n\t\t\t\t\tRestrictDismissals: pulumi.Bool(true),\n\t\t\t\t\tDismissalRestrictions: pulumi.StringArray{\n\t\t\t\t\t\t*pulumi.String(exampleUser.NodeId),\n\t\t\t\t\t\texampleTeam.NodeId,\n\t\t\t\t\t\tpulumi.String(\"/exampleuser\"),\n\t\t\t\t\t\tpulumi.String(\"exampleorganization/exampleteam\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tRestrictPushes: github.BranchProtectionRestrictPushArray{\n\t\t\t\t\u0026github.BranchProtectionRestrictPushArgs{\n\t\t\t\t\tPushAllowances: pulumi.StringArray{\n\t\t\t\t\t\t*pulumi.String(exampleUser.NodeId),\n\t\t\t\t\t\tpulumi.String(\"/exampleuser\"),\n\t\t\t\t\t\tpulumi.String(\"exampleorganization/exampleteam\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tForcePushBypassers: pulumi.StringArray{\n\t\t\t\t*pulumi.String(exampleUser.NodeId),\n\t\t\t\tpulumi.String(\"/exampleuser\"),\n\t\t\t\tpulumi.String(\"exampleorganization/exampleteam\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewTeamRepository(ctx, \"exampleTeamRepository\", \u0026github.TeamRepositoryArgs{\n\t\t\tTeamId: exampleTeam.ID(),\n\t\t\tRepository: exampleRepository.Name,\n\t\t\tPermission: pulumi.String(\"pull\"),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.Repository;\nimport com.pulumi.github.GithubFunctions;\nimport com.pulumi.github.inputs.GetUserArgs;\nimport com.pulumi.github.Team;\nimport com.pulumi.github.BranchProtection;\nimport com.pulumi.github.BranchProtectionArgs;\nimport com.pulumi.github.inputs.BranchProtectionRequiredStatusCheckArgs;\nimport com.pulumi.github.inputs.BranchProtectionRequiredPullRequestReviewArgs;\nimport com.pulumi.github.inputs.BranchProtectionRestrictPushArgs;\nimport com.pulumi.github.TeamRepository;\nimport com.pulumi.github.TeamRepositoryArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 exampleRepository = new Repository(\"exampleRepository\");\n\n final var exampleUser = GithubFunctions.getUser(GetUserArgs.builder()\n .username(\"example\")\n .build());\n\n var exampleTeam = new Team(\"exampleTeam\");\n\n var exampleBranchProtection = new BranchProtection(\"exampleBranchProtection\", BranchProtectionArgs.builder() \n .repositoryId(exampleRepository.nodeId())\n .pattern(\"main\")\n .enforceAdmins(true)\n .allowsDeletions(true)\n .requiredStatusChecks(BranchProtectionRequiredStatusCheckArgs.builder()\n .strict(false)\n .contexts(\"ci/travis\")\n .build())\n .requiredPullRequestReviews(BranchProtectionRequiredPullRequestReviewArgs.builder()\n .dismissStaleReviews(true)\n .restrictDismissals(true)\n .dismissalRestrictions( \n exampleUser.applyValue(getUserResult -\u003e getUserResult.nodeId()),\n exampleTeam.nodeId(),\n \"/exampleuser\",\n \"exampleorganization/exampleteam\")\n .build())\n .restrictPushes(BranchProtectionRestrictPushArgs.builder()\n .pushAllowances( \n exampleUser.applyValue(getUserResult -\u003e getUserResult.nodeId()),\n \"/exampleuser\",\n \"exampleorganization/exampleteam\")\n .build())\n .forcePushBypassers( \n exampleUser.applyValue(getUserResult -\u003e getUserResult.nodeId()),\n \"/exampleuser\",\n \"exampleorganization/exampleteam\")\n .build());\n\n var exampleTeamRepository = new TeamRepository(\"exampleTeamRepository\", TeamRepositoryArgs.builder() \n .teamId(exampleTeam.id())\n .repository(exampleRepository.name())\n .permission(\"pull\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Protect the main branch of the foo repository. Additionally, require that\n # the \"ci/travis\" context to be passing and only allow the engineers team merge\n # to the branch.\n exampleBranchProtection:\n type: github:BranchProtection\n properties:\n repositoryId: ${exampleRepository.nodeId} # also accepts repository name\n # # repository_id = github_repository.example.name\n pattern: main\n enforceAdmins: true\n allowsDeletions: true\n requiredStatusChecks:\n - strict: false\n contexts:\n - ci/travis\n requiredPullRequestReviews:\n - dismissStaleReviews: true\n restrictDismissals: true\n dismissalRestrictions:\n - ${exampleUser.nodeId}\n - ${exampleTeam.nodeId}\n - /exampleuser\n - exampleorganization/exampleteam\n restrictPushes:\n - pushAllowances:\n - ${exampleUser.nodeId}\n - /exampleuser\n - exampleorganization/exampleteam\n forcePushBypassers:\n - ${exampleUser.nodeId}\n - /exampleuser\n - exampleorganization/exampleteam\n exampleRepository:\n type: github:Repository\n exampleTeam:\n type: github:Team\n exampleTeamRepository:\n type: github:TeamRepository\n properties:\n teamId: ${exampleTeam.id}\n repository: ${exampleRepository.name}\n permission: pull\nvariables:\n exampleUser:\n fn::invoke:\n Function: github:getUser\n Arguments:\n username: example\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nGitHub Branch Protection can be imported using an ID made up of `repository:pattern`, e.g.\n\n```sh\n$ pulumi import github:index/branchProtection:BranchProtection terraform terraform:main\n```\n", + "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst exampleRepository = new github.Repository(\"exampleRepository\", {});\nconst exampleUser = github.getUser({\n username: \"example\",\n});\nconst exampleTeam = new github.Team(\"exampleTeam\", {});\n// Protect the main branch of the foo repository. Additionally, require that\n// the \"ci/travis\" context to be passing and only allow the engineers team merge\n// to the branch.\nconst exampleBranchProtection = new github.BranchProtection(\"exampleBranchProtection\", {\n repositoryId: exampleRepository.nodeId,\n pattern: \"main\",\n enforceAdmins: true,\n allowsDeletions: true,\n requiredStatusChecks: [{\n strict: false,\n contexts: [\"ci/travis\"],\n }],\n requiredPullRequestReviews: [{\n dismissStaleReviews: true,\n restrictDismissals: true,\n dismissalRestrictions: [\n exampleUser.then(exampleUser =\u003e exampleUser.nodeId),\n exampleTeam.nodeId,\n \"/exampleuser\",\n \"exampleorganization/exampleteam\",\n ],\n }],\n restrictPushes: [{\n pushAllowances: [\n exampleUser.then(exampleUser =\u003e exampleUser.nodeId),\n \"/exampleuser\",\n \"exampleorganization/exampleteam\",\n ],\n }],\n forcePushBypassers: [\n exampleUser.then(exampleUser =\u003e exampleUser.nodeId),\n \"/exampleuser\",\n \"exampleorganization/exampleteam\",\n ],\n});\nconst exampleTeamRepository = new github.TeamRepository(\"exampleTeamRepository\", {\n teamId: exampleTeam.id,\n repository: exampleRepository.name,\n permission: \"pull\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample_repository = github.Repository(\"exampleRepository\")\nexample_user = github.get_user(username=\"example\")\nexample_team = github.Team(\"exampleTeam\")\n# Protect the main branch of the foo repository. Additionally, require that\n# the \"ci/travis\" context to be passing and only allow the engineers team merge\n# to the branch.\nexample_branch_protection = github.BranchProtection(\"exampleBranchProtection\",\n repository_id=example_repository.node_id,\n pattern=\"main\",\n enforce_admins=True,\n allows_deletions=True,\n required_status_checks=[github.BranchProtectionRequiredStatusCheckArgs(\n strict=False,\n contexts=[\"ci/travis\"],\n )],\n required_pull_request_reviews=[github.BranchProtectionRequiredPullRequestReviewArgs(\n dismiss_stale_reviews=True,\n restrict_dismissals=True,\n dismissal_restrictions=[\n example_user.node_id,\n example_team.node_id,\n \"/exampleuser\",\n \"exampleorganization/exampleteam\",\n ],\n )],\n restrict_pushes=[github.BranchProtectionRestrictPushArgs(\n push_allowances=[\n example_user.node_id,\n \"/exampleuser\",\n \"exampleorganization/exampleteam\",\n ],\n )],\n force_push_bypassers=[\n example_user.node_id,\n \"/exampleuser\",\n \"exampleorganization/exampleteam\",\n ])\nexample_team_repository = github.TeamRepository(\"exampleTeamRepository\",\n team_id=example_team.id,\n repository=example_repository.name,\n permission=\"pull\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleRepository = new Github.Repository(\"exampleRepository\");\n\n var exampleUser = Github.GetUser.Invoke(new()\n {\n Username = \"example\",\n });\n\n var exampleTeam = new Github.Team(\"exampleTeam\");\n\n // Protect the main branch of the foo repository. Additionally, require that\n // the \"ci/travis\" context to be passing and only allow the engineers team merge\n // to the branch.\n var exampleBranchProtection = new Github.BranchProtection(\"exampleBranchProtection\", new()\n {\n RepositoryId = exampleRepository.NodeId,\n Pattern = \"main\",\n EnforceAdmins = true,\n AllowsDeletions = true,\n RequiredStatusChecks = new[]\n {\n new Github.Inputs.BranchProtectionRequiredStatusCheckArgs\n {\n Strict = false,\n Contexts = new[]\n {\n \"ci/travis\",\n },\n },\n },\n RequiredPullRequestReviews = new[]\n {\n new Github.Inputs.BranchProtectionRequiredPullRequestReviewArgs\n {\n DismissStaleReviews = true,\n RestrictDismissals = true,\n DismissalRestrictions = new[]\n {\n exampleUser.Apply(getUserResult =\u003e getUserResult.NodeId),\n exampleTeam.NodeId,\n \"/exampleuser\",\n \"exampleorganization/exampleteam\",\n },\n },\n },\n RestrictPushes = new[]\n {\n new Github.Inputs.BranchProtectionRestrictPushArgs\n {\n PushAllowances = new[]\n {\n exampleUser.Apply(getUserResult =\u003e getUserResult.NodeId),\n \"/exampleuser\",\n \"exampleorganization/exampleteam\",\n },\n },\n },\n ForcePushBypassers = new[]\n {\n exampleUser.Apply(getUserResult =\u003e getUserResult.NodeId),\n \"/exampleuser\",\n \"exampleorganization/exampleteam\",\n },\n });\n\n var exampleTeamRepository = new Github.TeamRepository(\"exampleTeamRepository\", new()\n {\n TeamId = exampleTeam.Id,\n Repository = exampleRepository.Name,\n Permission = \"pull\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleRepository, err := github.NewRepository(ctx, \"exampleRepository\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleUser, err := github.GetUser(ctx, \u0026github.GetUserArgs{\n\t\t\tUsername: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleTeam, err := github.NewTeam(ctx, \"exampleTeam\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Protect the main branch of the foo repository. Additionally, require that\n\t\t// the \"ci/travis\" context to be passing and only allow the engineers team merge\n\t\t// to the branch.\n\t\t_, err = github.NewBranchProtection(ctx, \"exampleBranchProtection\", \u0026github.BranchProtectionArgs{\n\t\t\tRepositoryId: exampleRepository.NodeId,\n\t\t\tPattern: pulumi.String(\"main\"),\n\t\t\tEnforceAdmins: pulumi.Bool(true),\n\t\t\tAllowsDeletions: pulumi.Bool(true),\n\t\t\tRequiredStatusChecks: github.BranchProtectionRequiredStatusCheckArray{\n\t\t\t\t\u0026github.BranchProtectionRequiredStatusCheckArgs{\n\t\t\t\t\tStrict: pulumi.Bool(false),\n\t\t\t\t\tContexts: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"ci/travis\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tRequiredPullRequestReviews: github.BranchProtectionRequiredPullRequestReviewArray{\n\t\t\t\t\u0026github.BranchProtectionRequiredPullRequestReviewArgs{\n\t\t\t\t\tDismissStaleReviews: pulumi.Bool(true),\n\t\t\t\t\tRestrictDismissals: pulumi.Bool(true),\n\t\t\t\t\tDismissalRestrictions: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(exampleUser.NodeId),\n\t\t\t\t\t\texampleTeam.NodeId,\n\t\t\t\t\t\tpulumi.String(\"/exampleuser\"),\n\t\t\t\t\t\tpulumi.String(\"exampleorganization/exampleteam\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tRestrictPushes: github.BranchProtectionRestrictPushArray{\n\t\t\t\t\u0026github.BranchProtectionRestrictPushArgs{\n\t\t\t\t\tPushAllowances: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(exampleUser.NodeId),\n\t\t\t\t\t\tpulumi.String(\"/exampleuser\"),\n\t\t\t\t\t\tpulumi.String(\"exampleorganization/exampleteam\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tForcePushBypassers: pulumi.StringArray{\n\t\t\t\tpulumi.String(exampleUser.NodeId),\n\t\t\t\tpulumi.String(\"/exampleuser\"),\n\t\t\t\tpulumi.String(\"exampleorganization/exampleteam\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewTeamRepository(ctx, \"exampleTeamRepository\", \u0026github.TeamRepositoryArgs{\n\t\t\tTeamId: exampleTeam.ID(),\n\t\t\tRepository: exampleRepository.Name,\n\t\t\tPermission: pulumi.String(\"pull\"),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.Repository;\nimport com.pulumi.github.GithubFunctions;\nimport com.pulumi.github.inputs.GetUserArgs;\nimport com.pulumi.github.Team;\nimport com.pulumi.github.BranchProtection;\nimport com.pulumi.github.BranchProtectionArgs;\nimport com.pulumi.github.inputs.BranchProtectionRequiredStatusCheckArgs;\nimport com.pulumi.github.inputs.BranchProtectionRequiredPullRequestReviewArgs;\nimport com.pulumi.github.inputs.BranchProtectionRestrictPushArgs;\nimport com.pulumi.github.TeamRepository;\nimport com.pulumi.github.TeamRepositoryArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 exampleRepository = new Repository(\"exampleRepository\");\n\n final var exampleUser = GithubFunctions.getUser(GetUserArgs.builder()\n .username(\"example\")\n .build());\n\n var exampleTeam = new Team(\"exampleTeam\");\n\n var exampleBranchProtection = new BranchProtection(\"exampleBranchProtection\", BranchProtectionArgs.builder() \n .repositoryId(exampleRepository.nodeId())\n .pattern(\"main\")\n .enforceAdmins(true)\n .allowsDeletions(true)\n .requiredStatusChecks(BranchProtectionRequiredStatusCheckArgs.builder()\n .strict(false)\n .contexts(\"ci/travis\")\n .build())\n .requiredPullRequestReviews(BranchProtectionRequiredPullRequestReviewArgs.builder()\n .dismissStaleReviews(true)\n .restrictDismissals(true)\n .dismissalRestrictions( \n exampleUser.applyValue(getUserResult -\u003e getUserResult.nodeId()),\n exampleTeam.nodeId(),\n \"/exampleuser\",\n \"exampleorganization/exampleteam\")\n .build())\n .restrictPushes(BranchProtectionRestrictPushArgs.builder()\n .pushAllowances( \n exampleUser.applyValue(getUserResult -\u003e getUserResult.nodeId()),\n \"/exampleuser\",\n \"exampleorganization/exampleteam\")\n .build())\n .forcePushBypassers( \n exampleUser.applyValue(getUserResult -\u003e getUserResult.nodeId()),\n \"/exampleuser\",\n \"exampleorganization/exampleteam\")\n .build());\n\n var exampleTeamRepository = new TeamRepository(\"exampleTeamRepository\", TeamRepositoryArgs.builder() \n .teamId(exampleTeam.id())\n .repository(exampleRepository.name())\n .permission(\"pull\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Protect the main branch of the foo repository. Additionally, require that\n # the \"ci/travis\" context to be passing and only allow the engineers team merge\n # to the branch.\n exampleBranchProtection:\n type: github:BranchProtection\n properties:\n repositoryId: ${exampleRepository.nodeId} # also accepts repository name\n # # repository_id = github_repository.example.name\n pattern: main\n enforceAdmins: true\n allowsDeletions: true\n requiredStatusChecks:\n - strict: false\n contexts:\n - ci/travis\n requiredPullRequestReviews:\n - dismissStaleReviews: true\n restrictDismissals: true\n dismissalRestrictions:\n - ${exampleUser.nodeId}\n - ${exampleTeam.nodeId}\n - /exampleuser\n - exampleorganization/exampleteam\n restrictPushes:\n - pushAllowances:\n - ${exampleUser.nodeId}\n - /exampleuser\n - exampleorganization/exampleteam\n forcePushBypassers:\n - ${exampleUser.nodeId}\n - /exampleuser\n - exampleorganization/exampleteam\n exampleRepository:\n type: github:Repository\n exampleTeam:\n type: github:Team\n exampleTeamRepository:\n type: github:TeamRepository\n properties:\n teamId: ${exampleTeam.id}\n repository: ${exampleRepository.name}\n permission: pull\nvariables:\n exampleUser:\n fn::invoke:\n Function: github:getUser\n Arguments:\n username: example\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nGitHub Branch Protection can be imported using an ID made up of `repository:pattern`, e.g.\n\n```sh\n$ pulumi import github:index/branchProtection:BranchProtection terraform terraform:main\n```\n", "properties": { "allowsDeletions": { "type": "boolean", @@ -4739,7 +4739,7 @@ } }, "github:index/codespacesOrganizationSecret:CodespacesOrganizationSecret": { - "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst exampleSecretCodespacesOrganizationSecret = new github.CodespacesOrganizationSecret(\"exampleSecretCodespacesOrganizationSecret\", {\n secretName: \"example_secret_name\",\n visibility: \"private\",\n plaintextValue: _var.some_secret_string,\n});\nconst exampleSecretIndex_codespacesOrganizationSecretCodespacesOrganizationSecret = new github.CodespacesOrganizationSecret(\"exampleSecretIndex/codespacesOrganizationSecretCodespacesOrganizationSecret\", {\n secretName: \"example_secret_name\",\n visibility: \"private\",\n encryptedValue: _var.some_encrypted_secret_string,\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample_secret_codespaces_organization_secret = github.CodespacesOrganizationSecret(\"exampleSecretCodespacesOrganizationSecret\",\n secret_name=\"example_secret_name\",\n visibility=\"private\",\n plaintext_value=var[\"some_secret_string\"])\nexample_secret_index_codespaces_organization_secret_codespaces_organization_secret = github.CodespacesOrganizationSecret(\"exampleSecretIndex/codespacesOrganizationSecretCodespacesOrganizationSecret\",\n secret_name=\"example_secret_name\",\n visibility=\"private\",\n encrypted_value=var[\"some_encrypted_secret_string\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleSecretCodespacesOrganizationSecret = new Github.CodespacesOrganizationSecret(\"exampleSecretCodespacesOrganizationSecret\", new()\n {\n SecretName = \"example_secret_name\",\n Visibility = \"private\",\n PlaintextValue = @var.Some_secret_string,\n });\n\n var exampleSecretIndex_codespacesOrganizationSecretCodespacesOrganizationSecret = new Github.CodespacesOrganizationSecret(\"exampleSecretIndex/codespacesOrganizationSecretCodespacesOrganizationSecret\", new()\n {\n SecretName = \"example_secret_name\",\n Visibility = \"private\",\n EncryptedValue = @var.Some_encrypted_secret_string,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\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 := github.NewCodespacesOrganizationSecret(ctx, \"exampleSecretCodespacesOrganizationSecret\", \u0026github.CodespacesOrganizationSecretArgs{\n\t\t\tSecretName: pulumi.String(\"example_secret_name\"),\n\t\t\tVisibility: pulumi.String(\"private\"),\n\t\t\tPlaintextValue: pulumi.Any(_var.Some_secret_string),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewCodespacesOrganizationSecret(ctx, \"exampleSecretIndex/codespacesOrganizationSecretCodespacesOrganizationSecret\", \u0026github.CodespacesOrganizationSecretArgs{\n\t\t\tSecretName: pulumi.String(\"example_secret_name\"),\n\t\t\tVisibility: pulumi.String(\"private\"),\n\t\t\tEncryptedValue: pulumi.Any(_var.Some_encrypted_secret_string),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.CodespacesOrganizationSecret;\nimport com.pulumi.github.CodespacesOrganizationSecretArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 exampleSecretCodespacesOrganizationSecret = new CodespacesOrganizationSecret(\"exampleSecretCodespacesOrganizationSecret\", CodespacesOrganizationSecretArgs.builder() \n .secretName(\"example_secret_name\")\n .visibility(\"private\")\n .plaintextValue(var_.some_secret_string())\n .build());\n\n var exampleSecretIndex_codespacesOrganizationSecretCodespacesOrganizationSecret = new CodespacesOrganizationSecret(\"exampleSecretIndex/codespacesOrganizationSecretCodespacesOrganizationSecret\", CodespacesOrganizationSecretArgs.builder() \n .secretName(\"example_secret_name\")\n .visibility(\"private\")\n .encryptedValue(var_.some_encrypted_secret_string())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleSecretCodespacesOrganizationSecret:\n type: github:CodespacesOrganizationSecret\n properties:\n secretName: example_secret_name\n visibility: private\n plaintextValue: ${var.some_secret_string}\n exampleSecretIndex/codespacesOrganizationSecretCodespacesOrganizationSecret:\n type: github:CodespacesOrganizationSecret\n properties:\n secretName: example_secret_name\n visibility: private\n encryptedValue: ${var.some_encrypted_secret_string}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst repo = github.getRepository({\n fullName: \"my-org/repo\",\n});\nconst exampleSecretCodespacesOrganizationSecret = new github.CodespacesOrganizationSecret(\"exampleSecretCodespacesOrganizationSecret\", {\n secretName: \"example_secret_name\",\n visibility: \"selected\",\n plaintextValue: _var.some_secret_string,\n selectedRepositoryIds: [repo.then(repo =\u003e repo.repoId)],\n});\nconst exampleSecretIndex_codespacesOrganizationSecretCodespacesOrganizationSecret = new github.CodespacesOrganizationSecret(\"exampleSecretIndex/codespacesOrganizationSecretCodespacesOrganizationSecret\", {\n secretName: \"example_secret_name\",\n visibility: \"selected\",\n encryptedValue: _var.some_encrypted_secret_string,\n selectedRepositoryIds: [repo.then(repo =\u003e repo.repoId)],\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nrepo = github.get_repository(full_name=\"my-org/repo\")\nexample_secret_codespaces_organization_secret = github.CodespacesOrganizationSecret(\"exampleSecretCodespacesOrganizationSecret\",\n secret_name=\"example_secret_name\",\n visibility=\"selected\",\n plaintext_value=var[\"some_secret_string\"],\n selected_repository_ids=[repo.repo_id])\nexample_secret_index_codespaces_organization_secret_codespaces_organization_secret = github.CodespacesOrganizationSecret(\"exampleSecretIndex/codespacesOrganizationSecretCodespacesOrganizationSecret\",\n secret_name=\"example_secret_name\",\n visibility=\"selected\",\n encrypted_value=var[\"some_encrypted_secret_string\"],\n selected_repository_ids=[repo.repo_id])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var repo = Github.GetRepository.Invoke(new()\n {\n FullName = \"my-org/repo\",\n });\n\n var exampleSecretCodespacesOrganizationSecret = new Github.CodespacesOrganizationSecret(\"exampleSecretCodespacesOrganizationSecret\", new()\n {\n SecretName = \"example_secret_name\",\n Visibility = \"selected\",\n PlaintextValue = @var.Some_secret_string,\n SelectedRepositoryIds = new[]\n {\n repo.Apply(getRepositoryResult =\u003e getRepositoryResult.RepoId),\n },\n });\n\n var exampleSecretIndex_codespacesOrganizationSecretCodespacesOrganizationSecret = new Github.CodespacesOrganizationSecret(\"exampleSecretIndex/codespacesOrganizationSecretCodespacesOrganizationSecret\", new()\n {\n SecretName = \"example_secret_name\",\n Visibility = \"selected\",\n EncryptedValue = @var.Some_encrypted_secret_string,\n SelectedRepositoryIds = new[]\n {\n repo.Apply(getRepositoryResult =\u003e getRepositoryResult.RepoId),\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\trepo, err := github.LookupRepository(ctx, \u0026github.LookupRepositoryArgs{\n\t\t\tFullName: pulumi.StringRef(\"my-org/repo\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewCodespacesOrganizationSecret(ctx, \"exampleSecretCodespacesOrganizationSecret\", \u0026github.CodespacesOrganizationSecretArgs{\n\t\t\tSecretName: pulumi.String(\"example_secret_name\"),\n\t\t\tVisibility: pulumi.String(\"selected\"),\n\t\t\tPlaintextValue: pulumi.Any(_var.Some_secret_string),\n\t\t\tSelectedRepositoryIds: pulumi.IntArray{\n\t\t\t\t*pulumi.Int(repo.RepoId),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewCodespacesOrganizationSecret(ctx, \"exampleSecretIndex/codespacesOrganizationSecretCodespacesOrganizationSecret\", \u0026github.CodespacesOrganizationSecretArgs{\n\t\t\tSecretName: pulumi.String(\"example_secret_name\"),\n\t\t\tVisibility: pulumi.String(\"selected\"),\n\t\t\tEncryptedValue: pulumi.Any(_var.Some_encrypted_secret_string),\n\t\t\tSelectedRepositoryIds: pulumi.IntArray{\n\t\t\t\t*pulumi.Int(repo.RepoId),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.GithubFunctions;\nimport com.pulumi.github.inputs.GetRepositoryArgs;\nimport com.pulumi.github.CodespacesOrganizationSecret;\nimport com.pulumi.github.CodespacesOrganizationSecretArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 repo = GithubFunctions.getRepository(GetRepositoryArgs.builder()\n .fullName(\"my-org/repo\")\n .build());\n\n var exampleSecretCodespacesOrganizationSecret = new CodespacesOrganizationSecret(\"exampleSecretCodespacesOrganizationSecret\", CodespacesOrganizationSecretArgs.builder() \n .secretName(\"example_secret_name\")\n .visibility(\"selected\")\n .plaintextValue(var_.some_secret_string())\n .selectedRepositoryIds(repo.applyValue(getRepositoryResult -\u003e getRepositoryResult.repoId()))\n .build());\n\n var exampleSecretIndex_codespacesOrganizationSecretCodespacesOrganizationSecret = new CodespacesOrganizationSecret(\"exampleSecretIndex/codespacesOrganizationSecretCodespacesOrganizationSecret\", CodespacesOrganizationSecretArgs.builder() \n .secretName(\"example_secret_name\")\n .visibility(\"selected\")\n .encryptedValue(var_.some_encrypted_secret_string())\n .selectedRepositoryIds(repo.applyValue(getRepositoryResult -\u003e getRepositoryResult.repoId()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleSecretCodespacesOrganizationSecret:\n type: github:CodespacesOrganizationSecret\n properties:\n secretName: example_secret_name\n visibility: selected\n plaintextValue: ${var.some_secret_string}\n selectedRepositoryIds:\n - ${repo.repoId}\n exampleSecretIndex/codespacesOrganizationSecretCodespacesOrganizationSecret:\n type: github:CodespacesOrganizationSecret\n properties:\n secretName: example_secret_name\n visibility: selected\n encryptedValue: ${var.some_encrypted_secret_string}\n selectedRepositoryIds:\n - ${repo.repoId}\nvariables:\n repo:\n fn::invoke:\n Function: github:getRepository\n Arguments:\n fullName: my-org/repo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nThis resource can be imported using an ID made up of the secret name:\n\n```sh\n$ pulumi import github:index/codespacesOrganizationSecret:CodespacesOrganizationSecret test_secret test_secret_name\n```\n\nNOTE: the implementation is limited in that it won't fetch the value of the\n\n`plaintext_value` or `encrypted_value` fields when importing. You may need to ignore changes for these as a workaround.\n\n", + "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst exampleSecretCodespacesOrganizationSecret = new github.CodespacesOrganizationSecret(\"exampleSecretCodespacesOrganizationSecret\", {\n secretName: \"example_secret_name\",\n visibility: \"private\",\n plaintextValue: _var.some_secret_string,\n});\nconst exampleSecretIndex_codespacesOrganizationSecretCodespacesOrganizationSecret = new github.CodespacesOrganizationSecret(\"exampleSecretIndex/codespacesOrganizationSecretCodespacesOrganizationSecret\", {\n secretName: \"example_secret_name\",\n visibility: \"private\",\n encryptedValue: _var.some_encrypted_secret_string,\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample_secret_codespaces_organization_secret = github.CodespacesOrganizationSecret(\"exampleSecretCodespacesOrganizationSecret\",\n secret_name=\"example_secret_name\",\n visibility=\"private\",\n plaintext_value=var[\"some_secret_string\"])\nexample_secret_index_codespaces_organization_secret_codespaces_organization_secret = github.CodespacesOrganizationSecret(\"exampleSecretIndex/codespacesOrganizationSecretCodespacesOrganizationSecret\",\n secret_name=\"example_secret_name\",\n visibility=\"private\",\n encrypted_value=var[\"some_encrypted_secret_string\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleSecretCodespacesOrganizationSecret = new Github.CodespacesOrganizationSecret(\"exampleSecretCodespacesOrganizationSecret\", new()\n {\n SecretName = \"example_secret_name\",\n Visibility = \"private\",\n PlaintextValue = @var.Some_secret_string,\n });\n\n var exampleSecretIndex_codespacesOrganizationSecretCodespacesOrganizationSecret = new Github.CodespacesOrganizationSecret(\"exampleSecretIndex/codespacesOrganizationSecretCodespacesOrganizationSecret\", new()\n {\n SecretName = \"example_secret_name\",\n Visibility = \"private\",\n EncryptedValue = @var.Some_encrypted_secret_string,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\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 := github.NewCodespacesOrganizationSecret(ctx, \"exampleSecretCodespacesOrganizationSecret\", \u0026github.CodespacesOrganizationSecretArgs{\n\t\t\tSecretName: pulumi.String(\"example_secret_name\"),\n\t\t\tVisibility: pulumi.String(\"private\"),\n\t\t\tPlaintextValue: pulumi.Any(_var.Some_secret_string),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewCodespacesOrganizationSecret(ctx, \"exampleSecretIndex/codespacesOrganizationSecretCodespacesOrganizationSecret\", \u0026github.CodespacesOrganizationSecretArgs{\n\t\t\tSecretName: pulumi.String(\"example_secret_name\"),\n\t\t\tVisibility: pulumi.String(\"private\"),\n\t\t\tEncryptedValue: pulumi.Any(_var.Some_encrypted_secret_string),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.CodespacesOrganizationSecret;\nimport com.pulumi.github.CodespacesOrganizationSecretArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 exampleSecretCodespacesOrganizationSecret = new CodespacesOrganizationSecret(\"exampleSecretCodespacesOrganizationSecret\", CodespacesOrganizationSecretArgs.builder() \n .secretName(\"example_secret_name\")\n .visibility(\"private\")\n .plaintextValue(var_.some_secret_string())\n .build());\n\n var exampleSecretIndex_codespacesOrganizationSecretCodespacesOrganizationSecret = new CodespacesOrganizationSecret(\"exampleSecretIndex/codespacesOrganizationSecretCodespacesOrganizationSecret\", CodespacesOrganizationSecretArgs.builder() \n .secretName(\"example_secret_name\")\n .visibility(\"private\")\n .encryptedValue(var_.some_encrypted_secret_string())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleSecretCodespacesOrganizationSecret:\n type: github:CodespacesOrganizationSecret\n properties:\n secretName: example_secret_name\n visibility: private\n plaintextValue: ${var.some_secret_string}\n exampleSecretIndex/codespacesOrganizationSecretCodespacesOrganizationSecret:\n type: github:CodespacesOrganizationSecret\n properties:\n secretName: example_secret_name\n visibility: private\n encryptedValue: ${var.some_encrypted_secret_string}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst repo = github.getRepository({\n fullName: \"my-org/repo\",\n});\nconst exampleSecretCodespacesOrganizationSecret = new github.CodespacesOrganizationSecret(\"exampleSecretCodespacesOrganizationSecret\", {\n secretName: \"example_secret_name\",\n visibility: \"selected\",\n plaintextValue: _var.some_secret_string,\n selectedRepositoryIds: [repo.then(repo =\u003e repo.repoId)],\n});\nconst exampleSecretIndex_codespacesOrganizationSecretCodespacesOrganizationSecret = new github.CodespacesOrganizationSecret(\"exampleSecretIndex/codespacesOrganizationSecretCodespacesOrganizationSecret\", {\n secretName: \"example_secret_name\",\n visibility: \"selected\",\n encryptedValue: _var.some_encrypted_secret_string,\n selectedRepositoryIds: [repo.then(repo =\u003e repo.repoId)],\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nrepo = github.get_repository(full_name=\"my-org/repo\")\nexample_secret_codespaces_organization_secret = github.CodespacesOrganizationSecret(\"exampleSecretCodespacesOrganizationSecret\",\n secret_name=\"example_secret_name\",\n visibility=\"selected\",\n plaintext_value=var[\"some_secret_string\"],\n selected_repository_ids=[repo.repo_id])\nexample_secret_index_codespaces_organization_secret_codespaces_organization_secret = github.CodespacesOrganizationSecret(\"exampleSecretIndex/codespacesOrganizationSecretCodespacesOrganizationSecret\",\n secret_name=\"example_secret_name\",\n visibility=\"selected\",\n encrypted_value=var[\"some_encrypted_secret_string\"],\n selected_repository_ids=[repo.repo_id])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var repo = Github.GetRepository.Invoke(new()\n {\n FullName = \"my-org/repo\",\n });\n\n var exampleSecretCodespacesOrganizationSecret = new Github.CodespacesOrganizationSecret(\"exampleSecretCodespacesOrganizationSecret\", new()\n {\n SecretName = \"example_secret_name\",\n Visibility = \"selected\",\n PlaintextValue = @var.Some_secret_string,\n SelectedRepositoryIds = new[]\n {\n repo.Apply(getRepositoryResult =\u003e getRepositoryResult.RepoId),\n },\n });\n\n var exampleSecretIndex_codespacesOrganizationSecretCodespacesOrganizationSecret = new Github.CodespacesOrganizationSecret(\"exampleSecretIndex/codespacesOrganizationSecretCodespacesOrganizationSecret\", new()\n {\n SecretName = \"example_secret_name\",\n Visibility = \"selected\",\n EncryptedValue = @var.Some_encrypted_secret_string,\n SelectedRepositoryIds = new[]\n {\n repo.Apply(getRepositoryResult =\u003e getRepositoryResult.RepoId),\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\trepo, err := github.LookupRepository(ctx, \u0026github.LookupRepositoryArgs{\n\t\t\tFullName: pulumi.StringRef(\"my-org/repo\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewCodespacesOrganizationSecret(ctx, \"exampleSecretCodespacesOrganizationSecret\", \u0026github.CodespacesOrganizationSecretArgs{\n\t\t\tSecretName: pulumi.String(\"example_secret_name\"),\n\t\t\tVisibility: pulumi.String(\"selected\"),\n\t\t\tPlaintextValue: pulumi.Any(_var.Some_secret_string),\n\t\t\tSelectedRepositoryIds: pulumi.IntArray{\n\t\t\t\tpulumi.Int(repo.RepoId),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewCodespacesOrganizationSecret(ctx, \"exampleSecretIndex/codespacesOrganizationSecretCodespacesOrganizationSecret\", \u0026github.CodespacesOrganizationSecretArgs{\n\t\t\tSecretName: pulumi.String(\"example_secret_name\"),\n\t\t\tVisibility: pulumi.String(\"selected\"),\n\t\t\tEncryptedValue: pulumi.Any(_var.Some_encrypted_secret_string),\n\t\t\tSelectedRepositoryIds: pulumi.IntArray{\n\t\t\t\tpulumi.Int(repo.RepoId),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.GithubFunctions;\nimport com.pulumi.github.inputs.GetRepositoryArgs;\nimport com.pulumi.github.CodespacesOrganizationSecret;\nimport com.pulumi.github.CodespacesOrganizationSecretArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 repo = GithubFunctions.getRepository(GetRepositoryArgs.builder()\n .fullName(\"my-org/repo\")\n .build());\n\n var exampleSecretCodespacesOrganizationSecret = new CodespacesOrganizationSecret(\"exampleSecretCodespacesOrganizationSecret\", CodespacesOrganizationSecretArgs.builder() \n .secretName(\"example_secret_name\")\n .visibility(\"selected\")\n .plaintextValue(var_.some_secret_string())\n .selectedRepositoryIds(repo.applyValue(getRepositoryResult -\u003e getRepositoryResult.repoId()))\n .build());\n\n var exampleSecretIndex_codespacesOrganizationSecretCodespacesOrganizationSecret = new CodespacesOrganizationSecret(\"exampleSecretIndex/codespacesOrganizationSecretCodespacesOrganizationSecret\", CodespacesOrganizationSecretArgs.builder() \n .secretName(\"example_secret_name\")\n .visibility(\"selected\")\n .encryptedValue(var_.some_encrypted_secret_string())\n .selectedRepositoryIds(repo.applyValue(getRepositoryResult -\u003e getRepositoryResult.repoId()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleSecretCodespacesOrganizationSecret:\n type: github:CodespacesOrganizationSecret\n properties:\n secretName: example_secret_name\n visibility: selected\n plaintextValue: ${var.some_secret_string}\n selectedRepositoryIds:\n - ${repo.repoId}\n exampleSecretIndex/codespacesOrganizationSecretCodespacesOrganizationSecret:\n type: github:CodespacesOrganizationSecret\n properties:\n secretName: example_secret_name\n visibility: selected\n encryptedValue: ${var.some_encrypted_secret_string}\n selectedRepositoryIds:\n - ${repo.repoId}\nvariables:\n repo:\n fn::invoke:\n Function: github:getRepository\n Arguments:\n fullName: my-org/repo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nThis resource can be imported using an ID made up of the secret name:\n\n```sh\n$ pulumi import github:index/codespacesOrganizationSecret:CodespacesOrganizationSecret test_secret test_secret_name\n```\n\nNOTE: the implementation is limited in that it won't fetch the value of the\n\n`plaintext_value` or `encrypted_value` fields when importing. You may need to ignore changes for these as a workaround.\n\n", "properties": { "createdAt": { "type": "string", @@ -4861,7 +4861,7 @@ } }, "github:index/codespacesOrganizationSecretRepositories:CodespacesOrganizationSecretRepositories": { - "description": "This resource allows you to manage repository allow list for existing GitHub Codespaces secrets within your GitHub organization.\n\nYou must have write access to an organization secret to use this resource.\n\nThis resource is only applicable when `visibility` of the existing organization secret has been set to `selected`.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst repo = github.getRepository({\n fullName: \"my-org/repo\",\n});\nconst orgSecretRepos = new github.CodespacesOrganizationSecretRepositories(\"orgSecretRepos\", {\n secretName: \"existing_secret_name\",\n selectedRepositoryIds: [repo.then(repo =\u003e repo.repoId)],\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nrepo = github.get_repository(full_name=\"my-org/repo\")\norg_secret_repos = github.CodespacesOrganizationSecretRepositories(\"orgSecretRepos\",\n secret_name=\"existing_secret_name\",\n selected_repository_ids=[repo.repo_id])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var repo = Github.GetRepository.Invoke(new()\n {\n FullName = \"my-org/repo\",\n });\n\n var orgSecretRepos = new Github.CodespacesOrganizationSecretRepositories(\"orgSecretRepos\", new()\n {\n SecretName = \"existing_secret_name\",\n SelectedRepositoryIds = new[]\n {\n repo.Apply(getRepositoryResult =\u003e getRepositoryResult.RepoId),\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\trepo, err := github.LookupRepository(ctx, \u0026github.LookupRepositoryArgs{\n\t\t\tFullName: pulumi.StringRef(\"my-org/repo\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewCodespacesOrganizationSecretRepositories(ctx, \"orgSecretRepos\", \u0026github.CodespacesOrganizationSecretRepositoriesArgs{\n\t\t\tSecretName: pulumi.String(\"existing_secret_name\"),\n\t\t\tSelectedRepositoryIds: pulumi.IntArray{\n\t\t\t\t*pulumi.Int(repo.RepoId),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.GithubFunctions;\nimport com.pulumi.github.inputs.GetRepositoryArgs;\nimport com.pulumi.github.CodespacesOrganizationSecretRepositories;\nimport com.pulumi.github.CodespacesOrganizationSecretRepositoriesArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 repo = GithubFunctions.getRepository(GetRepositoryArgs.builder()\n .fullName(\"my-org/repo\")\n .build());\n\n var orgSecretRepos = new CodespacesOrganizationSecretRepositories(\"orgSecretRepos\", CodespacesOrganizationSecretRepositoriesArgs.builder() \n .secretName(\"existing_secret_name\")\n .selectedRepositoryIds(repo.applyValue(getRepositoryResult -\u003e getRepositoryResult.repoId()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n orgSecretRepos:\n type: github:CodespacesOrganizationSecretRepositories\n properties:\n secretName: existing_secret_name\n selectedRepositoryIds:\n - ${repo.repoId}\nvariables:\n repo:\n fn::invoke:\n Function: github:getRepository\n Arguments:\n fullName: my-org/repo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nThis resource can be imported using an ID made up of the secret name:\n\n```sh\n$ pulumi import github:index/codespacesOrganizationSecretRepositories:CodespacesOrganizationSecretRepositories org_secret_repos existing_secret_name\n```\n", + "description": "This resource allows you to manage repository allow list for existing GitHub Codespaces secrets within your GitHub organization.\n\nYou must have write access to an organization secret to use this resource.\n\nThis resource is only applicable when `visibility` of the existing organization secret has been set to `selected`.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst repo = github.getRepository({\n fullName: \"my-org/repo\",\n});\nconst orgSecretRepos = new github.CodespacesOrganizationSecretRepositories(\"orgSecretRepos\", {\n secretName: \"existing_secret_name\",\n selectedRepositoryIds: [repo.then(repo =\u003e repo.repoId)],\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nrepo = github.get_repository(full_name=\"my-org/repo\")\norg_secret_repos = github.CodespacesOrganizationSecretRepositories(\"orgSecretRepos\",\n secret_name=\"existing_secret_name\",\n selected_repository_ids=[repo.repo_id])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var repo = Github.GetRepository.Invoke(new()\n {\n FullName = \"my-org/repo\",\n });\n\n var orgSecretRepos = new Github.CodespacesOrganizationSecretRepositories(\"orgSecretRepos\", new()\n {\n SecretName = \"existing_secret_name\",\n SelectedRepositoryIds = new[]\n {\n repo.Apply(getRepositoryResult =\u003e getRepositoryResult.RepoId),\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\trepo, err := github.LookupRepository(ctx, \u0026github.LookupRepositoryArgs{\n\t\t\tFullName: pulumi.StringRef(\"my-org/repo\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewCodespacesOrganizationSecretRepositories(ctx, \"orgSecretRepos\", \u0026github.CodespacesOrganizationSecretRepositoriesArgs{\n\t\t\tSecretName: pulumi.String(\"existing_secret_name\"),\n\t\t\tSelectedRepositoryIds: pulumi.IntArray{\n\t\t\t\tpulumi.Int(repo.RepoId),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.GithubFunctions;\nimport com.pulumi.github.inputs.GetRepositoryArgs;\nimport com.pulumi.github.CodespacesOrganizationSecretRepositories;\nimport com.pulumi.github.CodespacesOrganizationSecretRepositoriesArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 repo = GithubFunctions.getRepository(GetRepositoryArgs.builder()\n .fullName(\"my-org/repo\")\n .build());\n\n var orgSecretRepos = new CodespacesOrganizationSecretRepositories(\"orgSecretRepos\", CodespacesOrganizationSecretRepositoriesArgs.builder() \n .secretName(\"existing_secret_name\")\n .selectedRepositoryIds(repo.applyValue(getRepositoryResult -\u003e getRepositoryResult.repoId()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n orgSecretRepos:\n type: github:CodespacesOrganizationSecretRepositories\n properties:\n secretName: existing_secret_name\n selectedRepositoryIds:\n - ${repo.repoId}\nvariables:\n repo:\n fn::invoke:\n Function: github:getRepository\n Arguments:\n fullName: my-org/repo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nThis resource can be imported using an ID made up of the secret name:\n\n```sh\n$ pulumi import github:index/codespacesOrganizationSecretRepositories:CodespacesOrganizationSecretRepositories org_secret_repos existing_secret_name\n```\n", "properties": { "secretName": { "type": "string", @@ -5018,7 +5018,7 @@ } }, "github:index/codespacesUserSecret:CodespacesUserSecret": { - "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst repo = github.getRepository({\n fullName: \"my-org/repo\",\n});\nconst exampleSecretCodespacesUserSecret = new github.CodespacesUserSecret(\"exampleSecretCodespacesUserSecret\", {\n secretName: \"example_secret_name\",\n plaintextValue: _var.some_secret_string,\n selectedRepositoryIds: [repo.then(repo =\u003e repo.repoId)],\n});\nconst exampleSecretIndex_codespacesUserSecretCodespacesUserSecret = new github.CodespacesUserSecret(\"exampleSecretIndex/codespacesUserSecretCodespacesUserSecret\", {\n secretName: \"example_secret_name\",\n encryptedValue: _var.some_encrypted_secret_string,\n selectedRepositoryIds: [repo.then(repo =\u003e repo.repoId)],\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nrepo = github.get_repository(full_name=\"my-org/repo\")\nexample_secret_codespaces_user_secret = github.CodespacesUserSecret(\"exampleSecretCodespacesUserSecret\",\n secret_name=\"example_secret_name\",\n plaintext_value=var[\"some_secret_string\"],\n selected_repository_ids=[repo.repo_id])\nexample_secret_index_codespaces_user_secret_codespaces_user_secret = github.CodespacesUserSecret(\"exampleSecretIndex/codespacesUserSecretCodespacesUserSecret\",\n secret_name=\"example_secret_name\",\n encrypted_value=var[\"some_encrypted_secret_string\"],\n selected_repository_ids=[repo.repo_id])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var repo = Github.GetRepository.Invoke(new()\n {\n FullName = \"my-org/repo\",\n });\n\n var exampleSecretCodespacesUserSecret = new Github.CodespacesUserSecret(\"exampleSecretCodespacesUserSecret\", new()\n {\n SecretName = \"example_secret_name\",\n PlaintextValue = @var.Some_secret_string,\n SelectedRepositoryIds = new[]\n {\n repo.Apply(getRepositoryResult =\u003e getRepositoryResult.RepoId),\n },\n });\n\n var exampleSecretIndex_codespacesUserSecretCodespacesUserSecret = new Github.CodespacesUserSecret(\"exampleSecretIndex/codespacesUserSecretCodespacesUserSecret\", new()\n {\n SecretName = \"example_secret_name\",\n EncryptedValue = @var.Some_encrypted_secret_string,\n SelectedRepositoryIds = new[]\n {\n repo.Apply(getRepositoryResult =\u003e getRepositoryResult.RepoId),\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\trepo, err := github.LookupRepository(ctx, \u0026github.LookupRepositoryArgs{\n\t\t\tFullName: pulumi.StringRef(\"my-org/repo\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewCodespacesUserSecret(ctx, \"exampleSecretCodespacesUserSecret\", \u0026github.CodespacesUserSecretArgs{\n\t\t\tSecretName: pulumi.String(\"example_secret_name\"),\n\t\t\tPlaintextValue: pulumi.Any(_var.Some_secret_string),\n\t\t\tSelectedRepositoryIds: pulumi.IntArray{\n\t\t\t\t*pulumi.Int(repo.RepoId),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewCodespacesUserSecret(ctx, \"exampleSecretIndex/codespacesUserSecretCodespacesUserSecret\", \u0026github.CodespacesUserSecretArgs{\n\t\t\tSecretName: pulumi.String(\"example_secret_name\"),\n\t\t\tEncryptedValue: pulumi.Any(_var.Some_encrypted_secret_string),\n\t\t\tSelectedRepositoryIds: pulumi.IntArray{\n\t\t\t\t*pulumi.Int(repo.RepoId),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.GithubFunctions;\nimport com.pulumi.github.inputs.GetRepositoryArgs;\nimport com.pulumi.github.CodespacesUserSecret;\nimport com.pulumi.github.CodespacesUserSecretArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 repo = GithubFunctions.getRepository(GetRepositoryArgs.builder()\n .fullName(\"my-org/repo\")\n .build());\n\n var exampleSecretCodespacesUserSecret = new CodespacesUserSecret(\"exampleSecretCodespacesUserSecret\", CodespacesUserSecretArgs.builder() \n .secretName(\"example_secret_name\")\n .plaintextValue(var_.some_secret_string())\n .selectedRepositoryIds(repo.applyValue(getRepositoryResult -\u003e getRepositoryResult.repoId()))\n .build());\n\n var exampleSecretIndex_codespacesUserSecretCodespacesUserSecret = new CodespacesUserSecret(\"exampleSecretIndex/codespacesUserSecretCodespacesUserSecret\", CodespacesUserSecretArgs.builder() \n .secretName(\"example_secret_name\")\n .encryptedValue(var_.some_encrypted_secret_string())\n .selectedRepositoryIds(repo.applyValue(getRepositoryResult -\u003e getRepositoryResult.repoId()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleSecretCodespacesUserSecret:\n type: github:CodespacesUserSecret\n properties:\n secretName: example_secret_name\n plaintextValue: ${var.some_secret_string}\n selectedRepositoryIds:\n - ${repo.repoId}\n exampleSecretIndex/codespacesUserSecretCodespacesUserSecret:\n type: github:CodespacesUserSecret\n properties:\n secretName: example_secret_name\n encryptedValue: ${var.some_encrypted_secret_string}\n selectedRepositoryIds:\n - ${repo.repoId}\nvariables:\n repo:\n fn::invoke:\n Function: github:getRepository\n Arguments:\n fullName: my-org/repo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nThis resource can be imported using an ID made up of the secret name:\n\n```sh\n$ pulumi import github:index/codespacesUserSecret:CodespacesUserSecret test_secret test_secret_name\n```\n\nNOTE: the implementation is limited in that it won't fetch the value of the\n\n`plaintext_value` or `encrypted_value` fields when importing. You may need to ignore changes for these as a workaround.\n\n", + "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst repo = github.getRepository({\n fullName: \"my-org/repo\",\n});\nconst exampleSecretCodespacesUserSecret = new github.CodespacesUserSecret(\"exampleSecretCodespacesUserSecret\", {\n secretName: \"example_secret_name\",\n plaintextValue: _var.some_secret_string,\n selectedRepositoryIds: [repo.then(repo =\u003e repo.repoId)],\n});\nconst exampleSecretIndex_codespacesUserSecretCodespacesUserSecret = new github.CodespacesUserSecret(\"exampleSecretIndex/codespacesUserSecretCodespacesUserSecret\", {\n secretName: \"example_secret_name\",\n encryptedValue: _var.some_encrypted_secret_string,\n selectedRepositoryIds: [repo.then(repo =\u003e repo.repoId)],\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nrepo = github.get_repository(full_name=\"my-org/repo\")\nexample_secret_codespaces_user_secret = github.CodespacesUserSecret(\"exampleSecretCodespacesUserSecret\",\n secret_name=\"example_secret_name\",\n plaintext_value=var[\"some_secret_string\"],\n selected_repository_ids=[repo.repo_id])\nexample_secret_index_codespaces_user_secret_codespaces_user_secret = github.CodespacesUserSecret(\"exampleSecretIndex/codespacesUserSecretCodespacesUserSecret\",\n secret_name=\"example_secret_name\",\n encrypted_value=var[\"some_encrypted_secret_string\"],\n selected_repository_ids=[repo.repo_id])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var repo = Github.GetRepository.Invoke(new()\n {\n FullName = \"my-org/repo\",\n });\n\n var exampleSecretCodespacesUserSecret = new Github.CodespacesUserSecret(\"exampleSecretCodespacesUserSecret\", new()\n {\n SecretName = \"example_secret_name\",\n PlaintextValue = @var.Some_secret_string,\n SelectedRepositoryIds = new[]\n {\n repo.Apply(getRepositoryResult =\u003e getRepositoryResult.RepoId),\n },\n });\n\n var exampleSecretIndex_codespacesUserSecretCodespacesUserSecret = new Github.CodespacesUserSecret(\"exampleSecretIndex/codespacesUserSecretCodespacesUserSecret\", new()\n {\n SecretName = \"example_secret_name\",\n EncryptedValue = @var.Some_encrypted_secret_string,\n SelectedRepositoryIds = new[]\n {\n repo.Apply(getRepositoryResult =\u003e getRepositoryResult.RepoId),\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\trepo, err := github.LookupRepository(ctx, \u0026github.LookupRepositoryArgs{\n\t\t\tFullName: pulumi.StringRef(\"my-org/repo\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewCodespacesUserSecret(ctx, \"exampleSecretCodespacesUserSecret\", \u0026github.CodespacesUserSecretArgs{\n\t\t\tSecretName: pulumi.String(\"example_secret_name\"),\n\t\t\tPlaintextValue: pulumi.Any(_var.Some_secret_string),\n\t\t\tSelectedRepositoryIds: pulumi.IntArray{\n\t\t\t\tpulumi.Int(repo.RepoId),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewCodespacesUserSecret(ctx, \"exampleSecretIndex/codespacesUserSecretCodespacesUserSecret\", \u0026github.CodespacesUserSecretArgs{\n\t\t\tSecretName: pulumi.String(\"example_secret_name\"),\n\t\t\tEncryptedValue: pulumi.Any(_var.Some_encrypted_secret_string),\n\t\t\tSelectedRepositoryIds: pulumi.IntArray{\n\t\t\t\tpulumi.Int(repo.RepoId),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.GithubFunctions;\nimport com.pulumi.github.inputs.GetRepositoryArgs;\nimport com.pulumi.github.CodespacesUserSecret;\nimport com.pulumi.github.CodespacesUserSecretArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 repo = GithubFunctions.getRepository(GetRepositoryArgs.builder()\n .fullName(\"my-org/repo\")\n .build());\n\n var exampleSecretCodespacesUserSecret = new CodespacesUserSecret(\"exampleSecretCodespacesUserSecret\", CodespacesUserSecretArgs.builder() \n .secretName(\"example_secret_name\")\n .plaintextValue(var_.some_secret_string())\n .selectedRepositoryIds(repo.applyValue(getRepositoryResult -\u003e getRepositoryResult.repoId()))\n .build());\n\n var exampleSecretIndex_codespacesUserSecretCodespacesUserSecret = new CodespacesUserSecret(\"exampleSecretIndex/codespacesUserSecretCodespacesUserSecret\", CodespacesUserSecretArgs.builder() \n .secretName(\"example_secret_name\")\n .encryptedValue(var_.some_encrypted_secret_string())\n .selectedRepositoryIds(repo.applyValue(getRepositoryResult -\u003e getRepositoryResult.repoId()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleSecretCodespacesUserSecret:\n type: github:CodespacesUserSecret\n properties:\n secretName: example_secret_name\n plaintextValue: ${var.some_secret_string}\n selectedRepositoryIds:\n - ${repo.repoId}\n exampleSecretIndex/codespacesUserSecretCodespacesUserSecret:\n type: github:CodespacesUserSecret\n properties:\n secretName: example_secret_name\n encryptedValue: ${var.some_encrypted_secret_string}\n selectedRepositoryIds:\n - ${repo.repoId}\nvariables:\n repo:\n fn::invoke:\n Function: github:getRepository\n Arguments:\n fullName: my-org/repo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nThis resource can be imported using an ID made up of the secret name:\n\n```sh\n$ pulumi import github:index/codespacesUserSecret:CodespacesUserSecret test_secret test_secret_name\n```\n\nNOTE: the implementation is limited in that it won't fetch the value of the\n\n`plaintext_value` or `encrypted_value` fields when importing. You may need to ignore changes for these as a workaround.\n\n", "properties": { "createdAt": { "type": "string", @@ -5124,7 +5124,7 @@ } }, "github:index/dependabotOrganizationSecret:DependabotOrganizationSecret": { - "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst exampleSecretDependabotOrganizationSecret = new github.DependabotOrganizationSecret(\"exampleSecretDependabotOrganizationSecret\", {\n secretName: \"example_secret_name\",\n visibility: \"private\",\n plaintextValue: _var.some_secret_string,\n});\nconst exampleSecretIndex_dependabotOrganizationSecretDependabotOrganizationSecret = new github.DependabotOrganizationSecret(\"exampleSecretIndex/dependabotOrganizationSecretDependabotOrganizationSecret\", {\n secretName: \"example_secret_name\",\n visibility: \"private\",\n encryptedValue: _var.some_encrypted_secret_string,\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample_secret_dependabot_organization_secret = github.DependabotOrganizationSecret(\"exampleSecretDependabotOrganizationSecret\",\n secret_name=\"example_secret_name\",\n visibility=\"private\",\n plaintext_value=var[\"some_secret_string\"])\nexample_secret_index_dependabot_organization_secret_dependabot_organization_secret = github.DependabotOrganizationSecret(\"exampleSecretIndex/dependabotOrganizationSecretDependabotOrganizationSecret\",\n secret_name=\"example_secret_name\",\n visibility=\"private\",\n encrypted_value=var[\"some_encrypted_secret_string\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleSecretDependabotOrganizationSecret = new Github.DependabotOrganizationSecret(\"exampleSecretDependabotOrganizationSecret\", new()\n {\n SecretName = \"example_secret_name\",\n Visibility = \"private\",\n PlaintextValue = @var.Some_secret_string,\n });\n\n var exampleSecretIndex_dependabotOrganizationSecretDependabotOrganizationSecret = new Github.DependabotOrganizationSecret(\"exampleSecretIndex/dependabotOrganizationSecretDependabotOrganizationSecret\", new()\n {\n SecretName = \"example_secret_name\",\n Visibility = \"private\",\n EncryptedValue = @var.Some_encrypted_secret_string,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\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 := github.NewDependabotOrganizationSecret(ctx, \"exampleSecretDependabotOrganizationSecret\", \u0026github.DependabotOrganizationSecretArgs{\n\t\t\tSecretName: pulumi.String(\"example_secret_name\"),\n\t\t\tVisibility: pulumi.String(\"private\"),\n\t\t\tPlaintextValue: pulumi.Any(_var.Some_secret_string),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewDependabotOrganizationSecret(ctx, \"exampleSecretIndex/dependabotOrganizationSecretDependabotOrganizationSecret\", \u0026github.DependabotOrganizationSecretArgs{\n\t\t\tSecretName: pulumi.String(\"example_secret_name\"),\n\t\t\tVisibility: pulumi.String(\"private\"),\n\t\t\tEncryptedValue: pulumi.Any(_var.Some_encrypted_secret_string),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.DependabotOrganizationSecret;\nimport com.pulumi.github.DependabotOrganizationSecretArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 exampleSecretDependabotOrganizationSecret = new DependabotOrganizationSecret(\"exampleSecretDependabotOrganizationSecret\", DependabotOrganizationSecretArgs.builder() \n .secretName(\"example_secret_name\")\n .visibility(\"private\")\n .plaintextValue(var_.some_secret_string())\n .build());\n\n var exampleSecretIndex_dependabotOrganizationSecretDependabotOrganizationSecret = new DependabotOrganizationSecret(\"exampleSecretIndex/dependabotOrganizationSecretDependabotOrganizationSecret\", DependabotOrganizationSecretArgs.builder() \n .secretName(\"example_secret_name\")\n .visibility(\"private\")\n .encryptedValue(var_.some_encrypted_secret_string())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleSecretDependabotOrganizationSecret:\n type: github:DependabotOrganizationSecret\n properties:\n secretName: example_secret_name\n visibility: private\n plaintextValue: ${var.some_secret_string}\n exampleSecretIndex/dependabotOrganizationSecretDependabotOrganizationSecret:\n type: github:DependabotOrganizationSecret\n properties:\n secretName: example_secret_name\n visibility: private\n encryptedValue: ${var.some_encrypted_secret_string}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst repo = github.getRepository({\n fullName: \"my-org/repo\",\n});\nconst exampleSecretDependabotOrganizationSecret = new github.DependabotOrganizationSecret(\"exampleSecretDependabotOrganizationSecret\", {\n secretName: \"example_secret_name\",\n visibility: \"selected\",\n plaintextValue: _var.some_secret_string,\n selectedRepositoryIds: [repo.then(repo =\u003e repo.repoId)],\n});\nconst exampleSecretIndex_dependabotOrganizationSecretDependabotOrganizationSecret = new github.DependabotOrganizationSecret(\"exampleSecretIndex/dependabotOrganizationSecretDependabotOrganizationSecret\", {\n secretName: \"example_secret_name\",\n visibility: \"selected\",\n encryptedValue: _var.some_encrypted_secret_string,\n selectedRepositoryIds: [repo.then(repo =\u003e repo.repoId)],\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nrepo = github.get_repository(full_name=\"my-org/repo\")\nexample_secret_dependabot_organization_secret = github.DependabotOrganizationSecret(\"exampleSecretDependabotOrganizationSecret\",\n secret_name=\"example_secret_name\",\n visibility=\"selected\",\n plaintext_value=var[\"some_secret_string\"],\n selected_repository_ids=[repo.repo_id])\nexample_secret_index_dependabot_organization_secret_dependabot_organization_secret = github.DependabotOrganizationSecret(\"exampleSecretIndex/dependabotOrganizationSecretDependabotOrganizationSecret\",\n secret_name=\"example_secret_name\",\n visibility=\"selected\",\n encrypted_value=var[\"some_encrypted_secret_string\"],\n selected_repository_ids=[repo.repo_id])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var repo = Github.GetRepository.Invoke(new()\n {\n FullName = \"my-org/repo\",\n });\n\n var exampleSecretDependabotOrganizationSecret = new Github.DependabotOrganizationSecret(\"exampleSecretDependabotOrganizationSecret\", new()\n {\n SecretName = \"example_secret_name\",\n Visibility = \"selected\",\n PlaintextValue = @var.Some_secret_string,\n SelectedRepositoryIds = new[]\n {\n repo.Apply(getRepositoryResult =\u003e getRepositoryResult.RepoId),\n },\n });\n\n var exampleSecretIndex_dependabotOrganizationSecretDependabotOrganizationSecret = new Github.DependabotOrganizationSecret(\"exampleSecretIndex/dependabotOrganizationSecretDependabotOrganizationSecret\", new()\n {\n SecretName = \"example_secret_name\",\n Visibility = \"selected\",\n EncryptedValue = @var.Some_encrypted_secret_string,\n SelectedRepositoryIds = new[]\n {\n repo.Apply(getRepositoryResult =\u003e getRepositoryResult.RepoId),\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\trepo, err := github.LookupRepository(ctx, \u0026github.LookupRepositoryArgs{\n\t\t\tFullName: pulumi.StringRef(\"my-org/repo\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewDependabotOrganizationSecret(ctx, \"exampleSecretDependabotOrganizationSecret\", \u0026github.DependabotOrganizationSecretArgs{\n\t\t\tSecretName: pulumi.String(\"example_secret_name\"),\n\t\t\tVisibility: pulumi.String(\"selected\"),\n\t\t\tPlaintextValue: pulumi.Any(_var.Some_secret_string),\n\t\t\tSelectedRepositoryIds: pulumi.IntArray{\n\t\t\t\t*pulumi.Int(repo.RepoId),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewDependabotOrganizationSecret(ctx, \"exampleSecretIndex/dependabotOrganizationSecretDependabotOrganizationSecret\", \u0026github.DependabotOrganizationSecretArgs{\n\t\t\tSecretName: pulumi.String(\"example_secret_name\"),\n\t\t\tVisibility: pulumi.String(\"selected\"),\n\t\t\tEncryptedValue: pulumi.Any(_var.Some_encrypted_secret_string),\n\t\t\tSelectedRepositoryIds: pulumi.IntArray{\n\t\t\t\t*pulumi.Int(repo.RepoId),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.GithubFunctions;\nimport com.pulumi.github.inputs.GetRepositoryArgs;\nimport com.pulumi.github.DependabotOrganizationSecret;\nimport com.pulumi.github.DependabotOrganizationSecretArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 repo = GithubFunctions.getRepository(GetRepositoryArgs.builder()\n .fullName(\"my-org/repo\")\n .build());\n\n var exampleSecretDependabotOrganizationSecret = new DependabotOrganizationSecret(\"exampleSecretDependabotOrganizationSecret\", DependabotOrganizationSecretArgs.builder() \n .secretName(\"example_secret_name\")\n .visibility(\"selected\")\n .plaintextValue(var_.some_secret_string())\n .selectedRepositoryIds(repo.applyValue(getRepositoryResult -\u003e getRepositoryResult.repoId()))\n .build());\n\n var exampleSecretIndex_dependabotOrganizationSecretDependabotOrganizationSecret = new DependabotOrganizationSecret(\"exampleSecretIndex/dependabotOrganizationSecretDependabotOrganizationSecret\", DependabotOrganizationSecretArgs.builder() \n .secretName(\"example_secret_name\")\n .visibility(\"selected\")\n .encryptedValue(var_.some_encrypted_secret_string())\n .selectedRepositoryIds(repo.applyValue(getRepositoryResult -\u003e getRepositoryResult.repoId()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleSecretDependabotOrganizationSecret:\n type: github:DependabotOrganizationSecret\n properties:\n secretName: example_secret_name\n visibility: selected\n plaintextValue: ${var.some_secret_string}\n selectedRepositoryIds:\n - ${repo.repoId}\n exampleSecretIndex/dependabotOrganizationSecretDependabotOrganizationSecret:\n type: github:DependabotOrganizationSecret\n properties:\n secretName: example_secret_name\n visibility: selected\n encryptedValue: ${var.some_encrypted_secret_string}\n selectedRepositoryIds:\n - ${repo.repoId}\nvariables:\n repo:\n fn::invoke:\n Function: github:getRepository\n Arguments:\n fullName: my-org/repo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nThis resource can be imported using an ID made up of the secret name:\n\n```sh\n$ pulumi import github:index/dependabotOrganizationSecret:DependabotOrganizationSecret test_secret test_secret_name\n```\n\nNOTE: the implementation is limited in that it won't fetch the value of the\n\n`plaintext_value` or `encrypted_value` fields when importing. You may need to ignore changes for these as a workaround.\n\n", + "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst exampleSecretDependabotOrganizationSecret = new github.DependabotOrganizationSecret(\"exampleSecretDependabotOrganizationSecret\", {\n secretName: \"example_secret_name\",\n visibility: \"private\",\n plaintextValue: _var.some_secret_string,\n});\nconst exampleSecretIndex_dependabotOrganizationSecretDependabotOrganizationSecret = new github.DependabotOrganizationSecret(\"exampleSecretIndex/dependabotOrganizationSecretDependabotOrganizationSecret\", {\n secretName: \"example_secret_name\",\n visibility: \"private\",\n encryptedValue: _var.some_encrypted_secret_string,\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample_secret_dependabot_organization_secret = github.DependabotOrganizationSecret(\"exampleSecretDependabotOrganizationSecret\",\n secret_name=\"example_secret_name\",\n visibility=\"private\",\n plaintext_value=var[\"some_secret_string\"])\nexample_secret_index_dependabot_organization_secret_dependabot_organization_secret = github.DependabotOrganizationSecret(\"exampleSecretIndex/dependabotOrganizationSecretDependabotOrganizationSecret\",\n secret_name=\"example_secret_name\",\n visibility=\"private\",\n encrypted_value=var[\"some_encrypted_secret_string\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleSecretDependabotOrganizationSecret = new Github.DependabotOrganizationSecret(\"exampleSecretDependabotOrganizationSecret\", new()\n {\n SecretName = \"example_secret_name\",\n Visibility = \"private\",\n PlaintextValue = @var.Some_secret_string,\n });\n\n var exampleSecretIndex_dependabotOrganizationSecretDependabotOrganizationSecret = new Github.DependabotOrganizationSecret(\"exampleSecretIndex/dependabotOrganizationSecretDependabotOrganizationSecret\", new()\n {\n SecretName = \"example_secret_name\",\n Visibility = \"private\",\n EncryptedValue = @var.Some_encrypted_secret_string,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\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 := github.NewDependabotOrganizationSecret(ctx, \"exampleSecretDependabotOrganizationSecret\", \u0026github.DependabotOrganizationSecretArgs{\n\t\t\tSecretName: pulumi.String(\"example_secret_name\"),\n\t\t\tVisibility: pulumi.String(\"private\"),\n\t\t\tPlaintextValue: pulumi.Any(_var.Some_secret_string),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewDependabotOrganizationSecret(ctx, \"exampleSecretIndex/dependabotOrganizationSecretDependabotOrganizationSecret\", \u0026github.DependabotOrganizationSecretArgs{\n\t\t\tSecretName: pulumi.String(\"example_secret_name\"),\n\t\t\tVisibility: pulumi.String(\"private\"),\n\t\t\tEncryptedValue: pulumi.Any(_var.Some_encrypted_secret_string),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.DependabotOrganizationSecret;\nimport com.pulumi.github.DependabotOrganizationSecretArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 exampleSecretDependabotOrganizationSecret = new DependabotOrganizationSecret(\"exampleSecretDependabotOrganizationSecret\", DependabotOrganizationSecretArgs.builder() \n .secretName(\"example_secret_name\")\n .visibility(\"private\")\n .plaintextValue(var_.some_secret_string())\n .build());\n\n var exampleSecretIndex_dependabotOrganizationSecretDependabotOrganizationSecret = new DependabotOrganizationSecret(\"exampleSecretIndex/dependabotOrganizationSecretDependabotOrganizationSecret\", DependabotOrganizationSecretArgs.builder() \n .secretName(\"example_secret_name\")\n .visibility(\"private\")\n .encryptedValue(var_.some_encrypted_secret_string())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleSecretDependabotOrganizationSecret:\n type: github:DependabotOrganizationSecret\n properties:\n secretName: example_secret_name\n visibility: private\n plaintextValue: ${var.some_secret_string}\n exampleSecretIndex/dependabotOrganizationSecretDependabotOrganizationSecret:\n type: github:DependabotOrganizationSecret\n properties:\n secretName: example_secret_name\n visibility: private\n encryptedValue: ${var.some_encrypted_secret_string}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst repo = github.getRepository({\n fullName: \"my-org/repo\",\n});\nconst exampleSecretDependabotOrganizationSecret = new github.DependabotOrganizationSecret(\"exampleSecretDependabotOrganizationSecret\", {\n secretName: \"example_secret_name\",\n visibility: \"selected\",\n plaintextValue: _var.some_secret_string,\n selectedRepositoryIds: [repo.then(repo =\u003e repo.repoId)],\n});\nconst exampleSecretIndex_dependabotOrganizationSecretDependabotOrganizationSecret = new github.DependabotOrganizationSecret(\"exampleSecretIndex/dependabotOrganizationSecretDependabotOrganizationSecret\", {\n secretName: \"example_secret_name\",\n visibility: \"selected\",\n encryptedValue: _var.some_encrypted_secret_string,\n selectedRepositoryIds: [repo.then(repo =\u003e repo.repoId)],\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nrepo = github.get_repository(full_name=\"my-org/repo\")\nexample_secret_dependabot_organization_secret = github.DependabotOrganizationSecret(\"exampleSecretDependabotOrganizationSecret\",\n secret_name=\"example_secret_name\",\n visibility=\"selected\",\n plaintext_value=var[\"some_secret_string\"],\n selected_repository_ids=[repo.repo_id])\nexample_secret_index_dependabot_organization_secret_dependabot_organization_secret = github.DependabotOrganizationSecret(\"exampleSecretIndex/dependabotOrganizationSecretDependabotOrganizationSecret\",\n secret_name=\"example_secret_name\",\n visibility=\"selected\",\n encrypted_value=var[\"some_encrypted_secret_string\"],\n selected_repository_ids=[repo.repo_id])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var repo = Github.GetRepository.Invoke(new()\n {\n FullName = \"my-org/repo\",\n });\n\n var exampleSecretDependabotOrganizationSecret = new Github.DependabotOrganizationSecret(\"exampleSecretDependabotOrganizationSecret\", new()\n {\n SecretName = \"example_secret_name\",\n Visibility = \"selected\",\n PlaintextValue = @var.Some_secret_string,\n SelectedRepositoryIds = new[]\n {\n repo.Apply(getRepositoryResult =\u003e getRepositoryResult.RepoId),\n },\n });\n\n var exampleSecretIndex_dependabotOrganizationSecretDependabotOrganizationSecret = new Github.DependabotOrganizationSecret(\"exampleSecretIndex/dependabotOrganizationSecretDependabotOrganizationSecret\", new()\n {\n SecretName = \"example_secret_name\",\n Visibility = \"selected\",\n EncryptedValue = @var.Some_encrypted_secret_string,\n SelectedRepositoryIds = new[]\n {\n repo.Apply(getRepositoryResult =\u003e getRepositoryResult.RepoId),\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\trepo, err := github.LookupRepository(ctx, \u0026github.LookupRepositoryArgs{\n\t\t\tFullName: pulumi.StringRef(\"my-org/repo\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewDependabotOrganizationSecret(ctx, \"exampleSecretDependabotOrganizationSecret\", \u0026github.DependabotOrganizationSecretArgs{\n\t\t\tSecretName: pulumi.String(\"example_secret_name\"),\n\t\t\tVisibility: pulumi.String(\"selected\"),\n\t\t\tPlaintextValue: pulumi.Any(_var.Some_secret_string),\n\t\t\tSelectedRepositoryIds: pulumi.IntArray{\n\t\t\t\tpulumi.Int(repo.RepoId),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewDependabotOrganizationSecret(ctx, \"exampleSecretIndex/dependabotOrganizationSecretDependabotOrganizationSecret\", \u0026github.DependabotOrganizationSecretArgs{\n\t\t\tSecretName: pulumi.String(\"example_secret_name\"),\n\t\t\tVisibility: pulumi.String(\"selected\"),\n\t\t\tEncryptedValue: pulumi.Any(_var.Some_encrypted_secret_string),\n\t\t\tSelectedRepositoryIds: pulumi.IntArray{\n\t\t\t\tpulumi.Int(repo.RepoId),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.GithubFunctions;\nimport com.pulumi.github.inputs.GetRepositoryArgs;\nimport com.pulumi.github.DependabotOrganizationSecret;\nimport com.pulumi.github.DependabotOrganizationSecretArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 repo = GithubFunctions.getRepository(GetRepositoryArgs.builder()\n .fullName(\"my-org/repo\")\n .build());\n\n var exampleSecretDependabotOrganizationSecret = new DependabotOrganizationSecret(\"exampleSecretDependabotOrganizationSecret\", DependabotOrganizationSecretArgs.builder() \n .secretName(\"example_secret_name\")\n .visibility(\"selected\")\n .plaintextValue(var_.some_secret_string())\n .selectedRepositoryIds(repo.applyValue(getRepositoryResult -\u003e getRepositoryResult.repoId()))\n .build());\n\n var exampleSecretIndex_dependabotOrganizationSecretDependabotOrganizationSecret = new DependabotOrganizationSecret(\"exampleSecretIndex/dependabotOrganizationSecretDependabotOrganizationSecret\", DependabotOrganizationSecretArgs.builder() \n .secretName(\"example_secret_name\")\n .visibility(\"selected\")\n .encryptedValue(var_.some_encrypted_secret_string())\n .selectedRepositoryIds(repo.applyValue(getRepositoryResult -\u003e getRepositoryResult.repoId()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleSecretDependabotOrganizationSecret:\n type: github:DependabotOrganizationSecret\n properties:\n secretName: example_secret_name\n visibility: selected\n plaintextValue: ${var.some_secret_string}\n selectedRepositoryIds:\n - ${repo.repoId}\n exampleSecretIndex/dependabotOrganizationSecretDependabotOrganizationSecret:\n type: github:DependabotOrganizationSecret\n properties:\n secretName: example_secret_name\n visibility: selected\n encryptedValue: ${var.some_encrypted_secret_string}\n selectedRepositoryIds:\n - ${repo.repoId}\nvariables:\n repo:\n fn::invoke:\n Function: github:getRepository\n Arguments:\n fullName: my-org/repo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nThis resource can be imported using an ID made up of the secret name:\n\n```sh\n$ pulumi import github:index/dependabotOrganizationSecret:DependabotOrganizationSecret test_secret test_secret_name\n```\n\nNOTE: the implementation is limited in that it won't fetch the value of the\n\n`plaintext_value` or `encrypted_value` fields when importing. You may need to ignore changes for these as a workaround.\n\n", "properties": { "createdAt": { "type": "string", @@ -5246,7 +5246,7 @@ } }, "github:index/dependabotOrganizationSecretRepositories:DependabotOrganizationSecretRepositories": { - "description": "This resource allows you to manage the repository allow list for existing GitHub Dependabot secrets within your GitHub organization.\nYou must have write access to an organization secret to use this resource.\n\nThis resource is only applicable when `visibility` of the existing organization secret has been set to `selected`.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst repo = github.getRepository({\n fullName: \"my-org/repo\",\n});\nconst exampleSecret = new github.DependabotOrganizationSecret(\"exampleSecret\", {\n secretName: \"example_secret_name\",\n visibility: \"private\",\n plaintextValue: _var.some_secret_string,\n});\nconst orgSecretRepos = new github.DependabotOrganizationSecretRepositories(\"orgSecretRepos\", {\n secretName: exampleSecret.secretName,\n selectedRepositoryIds: [repo.then(repo =\u003e repo.repoId)],\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nrepo = github.get_repository(full_name=\"my-org/repo\")\nexample_secret = github.DependabotOrganizationSecret(\"exampleSecret\",\n secret_name=\"example_secret_name\",\n visibility=\"private\",\n plaintext_value=var[\"some_secret_string\"])\norg_secret_repos = github.DependabotOrganizationSecretRepositories(\"orgSecretRepos\",\n secret_name=example_secret.secret_name,\n selected_repository_ids=[repo.repo_id])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var repo = Github.GetRepository.Invoke(new()\n {\n FullName = \"my-org/repo\",\n });\n\n var exampleSecret = new Github.DependabotOrganizationSecret(\"exampleSecret\", new()\n {\n SecretName = \"example_secret_name\",\n Visibility = \"private\",\n PlaintextValue = @var.Some_secret_string,\n });\n\n var orgSecretRepos = new Github.DependabotOrganizationSecretRepositories(\"orgSecretRepos\", new()\n {\n SecretName = exampleSecret.SecretName,\n SelectedRepositoryIds = new[]\n {\n repo.Apply(getRepositoryResult =\u003e getRepositoryResult.RepoId),\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\trepo, err := github.LookupRepository(ctx, \u0026github.LookupRepositoryArgs{\n\t\t\tFullName: pulumi.StringRef(\"my-org/repo\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleSecret, err := github.NewDependabotOrganizationSecret(ctx, \"exampleSecret\", \u0026github.DependabotOrganizationSecretArgs{\n\t\t\tSecretName: pulumi.String(\"example_secret_name\"),\n\t\t\tVisibility: pulumi.String(\"private\"),\n\t\t\tPlaintextValue: pulumi.Any(_var.Some_secret_string),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewDependabotOrganizationSecretRepositories(ctx, \"orgSecretRepos\", \u0026github.DependabotOrganizationSecretRepositoriesArgs{\n\t\t\tSecretName: exampleSecret.SecretName,\n\t\t\tSelectedRepositoryIds: pulumi.IntArray{\n\t\t\t\t*pulumi.Int(repo.RepoId),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.GithubFunctions;\nimport com.pulumi.github.inputs.GetRepositoryArgs;\nimport com.pulumi.github.DependabotOrganizationSecret;\nimport com.pulumi.github.DependabotOrganizationSecretArgs;\nimport com.pulumi.github.DependabotOrganizationSecretRepositories;\nimport com.pulumi.github.DependabotOrganizationSecretRepositoriesArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 repo = GithubFunctions.getRepository(GetRepositoryArgs.builder()\n .fullName(\"my-org/repo\")\n .build());\n\n var exampleSecret = new DependabotOrganizationSecret(\"exampleSecret\", DependabotOrganizationSecretArgs.builder() \n .secretName(\"example_secret_name\")\n .visibility(\"private\")\n .plaintextValue(var_.some_secret_string())\n .build());\n\n var orgSecretRepos = new DependabotOrganizationSecretRepositories(\"orgSecretRepos\", DependabotOrganizationSecretRepositoriesArgs.builder() \n .secretName(exampleSecret.secretName())\n .selectedRepositoryIds(repo.applyValue(getRepositoryResult -\u003e getRepositoryResult.repoId()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleSecret:\n type: github:DependabotOrganizationSecret\n properties:\n secretName: example_secret_name\n visibility: private\n plaintextValue: ${var.some_secret_string}\n orgSecretRepos:\n type: github:DependabotOrganizationSecretRepositories\n properties:\n secretName: ${exampleSecret.secretName}\n selectedRepositoryIds:\n - ${repo.repoId}\nvariables:\n repo:\n fn::invoke:\n Function: github:getRepository\n Arguments:\n fullName: my-org/repo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nThis resource can be imported using an ID made up of the secret name:\n\n```sh\n$ pulumi import github:index/dependabotOrganizationSecretRepositories:DependabotOrganizationSecretRepositories test_secret_repos test_secret_name\n```\n\n", + "description": "This resource allows you to manage the repository allow list for existing GitHub Dependabot secrets within your GitHub organization.\nYou must have write access to an organization secret to use this resource.\n\nThis resource is only applicable when `visibility` of the existing organization secret has been set to `selected`.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst repo = github.getRepository({\n fullName: \"my-org/repo\",\n});\nconst exampleSecret = new github.DependabotOrganizationSecret(\"exampleSecret\", {\n secretName: \"example_secret_name\",\n visibility: \"private\",\n plaintextValue: _var.some_secret_string,\n});\nconst orgSecretRepos = new github.DependabotOrganizationSecretRepositories(\"orgSecretRepos\", {\n secretName: exampleSecret.secretName,\n selectedRepositoryIds: [repo.then(repo =\u003e repo.repoId)],\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nrepo = github.get_repository(full_name=\"my-org/repo\")\nexample_secret = github.DependabotOrganizationSecret(\"exampleSecret\",\n secret_name=\"example_secret_name\",\n visibility=\"private\",\n plaintext_value=var[\"some_secret_string\"])\norg_secret_repos = github.DependabotOrganizationSecretRepositories(\"orgSecretRepos\",\n secret_name=example_secret.secret_name,\n selected_repository_ids=[repo.repo_id])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var repo = Github.GetRepository.Invoke(new()\n {\n FullName = \"my-org/repo\",\n });\n\n var exampleSecret = new Github.DependabotOrganizationSecret(\"exampleSecret\", new()\n {\n SecretName = \"example_secret_name\",\n Visibility = \"private\",\n PlaintextValue = @var.Some_secret_string,\n });\n\n var orgSecretRepos = new Github.DependabotOrganizationSecretRepositories(\"orgSecretRepos\", new()\n {\n SecretName = exampleSecret.SecretName,\n SelectedRepositoryIds = new[]\n {\n repo.Apply(getRepositoryResult =\u003e getRepositoryResult.RepoId),\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\trepo, err := github.LookupRepository(ctx, \u0026github.LookupRepositoryArgs{\n\t\t\tFullName: pulumi.StringRef(\"my-org/repo\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleSecret, err := github.NewDependabotOrganizationSecret(ctx, \"exampleSecret\", \u0026github.DependabotOrganizationSecretArgs{\n\t\t\tSecretName: pulumi.String(\"example_secret_name\"),\n\t\t\tVisibility: pulumi.String(\"private\"),\n\t\t\tPlaintextValue: pulumi.Any(_var.Some_secret_string),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewDependabotOrganizationSecretRepositories(ctx, \"orgSecretRepos\", \u0026github.DependabotOrganizationSecretRepositoriesArgs{\n\t\t\tSecretName: exampleSecret.SecretName,\n\t\t\tSelectedRepositoryIds: pulumi.IntArray{\n\t\t\t\tpulumi.Int(repo.RepoId),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.GithubFunctions;\nimport com.pulumi.github.inputs.GetRepositoryArgs;\nimport com.pulumi.github.DependabotOrganizationSecret;\nimport com.pulumi.github.DependabotOrganizationSecretArgs;\nimport com.pulumi.github.DependabotOrganizationSecretRepositories;\nimport com.pulumi.github.DependabotOrganizationSecretRepositoriesArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 repo = GithubFunctions.getRepository(GetRepositoryArgs.builder()\n .fullName(\"my-org/repo\")\n .build());\n\n var exampleSecret = new DependabotOrganizationSecret(\"exampleSecret\", DependabotOrganizationSecretArgs.builder() \n .secretName(\"example_secret_name\")\n .visibility(\"private\")\n .plaintextValue(var_.some_secret_string())\n .build());\n\n var orgSecretRepos = new DependabotOrganizationSecretRepositories(\"orgSecretRepos\", DependabotOrganizationSecretRepositoriesArgs.builder() \n .secretName(exampleSecret.secretName())\n .selectedRepositoryIds(repo.applyValue(getRepositoryResult -\u003e getRepositoryResult.repoId()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleSecret:\n type: github:DependabotOrganizationSecret\n properties:\n secretName: example_secret_name\n visibility: private\n plaintextValue: ${var.some_secret_string}\n orgSecretRepos:\n type: github:DependabotOrganizationSecretRepositories\n properties:\n secretName: ${exampleSecret.secretName}\n selectedRepositoryIds:\n - ${repo.repoId}\nvariables:\n repo:\n fn::invoke:\n Function: github:getRepository\n Arguments:\n fullName: my-org/repo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nThis resource can be imported using an ID made up of the secret name:\n\n```sh\n$ pulumi import github:index/dependabotOrganizationSecretRepositories:DependabotOrganizationSecretRepositories test_secret_repos test_secret_name\n```\n\n", "properties": { "secretName": { "type": "string", @@ -5455,7 +5455,7 @@ } }, "github:index/enterpriseActionsPermissions:EnterpriseActionsPermissions": { - "description": "This resource allows you to create and manage GitHub Actions permissions within your GitHub enterprise.\nYou must have admin access to an enterprise to use this resource.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example-enterprise = github.getEnterprise({\n slug: \"my-enterprise\",\n});\nconst example-org = github.getOrganization({\n name: \"my-org\",\n});\nconst test = new github.EnterpriseActionsPermissions(\"test\", {\n enterpriseId: example_enterprise.then(example_enterprise =\u003e example_enterprise.slug),\n allowedActions: \"selected\",\n enabledOrganizations: \"selected\",\n allowedActionsConfig: {\n githubOwnedAllowed: true,\n patternsAlloweds: [\n \"actions/cache@*\",\n \"actions/checkout@*\",\n ],\n verifiedAllowed: true,\n },\n enabledOrganizationsConfig: {\n organizationIds: [example_org.then(example_org =\u003e example_org.id)],\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample_enterprise = github.get_enterprise(slug=\"my-enterprise\")\nexample_org = github.get_organization(name=\"my-org\")\ntest = github.EnterpriseActionsPermissions(\"test\",\n enterprise_id=example_enterprise.slug,\n allowed_actions=\"selected\",\n enabled_organizations=\"selected\",\n allowed_actions_config=github.EnterpriseActionsPermissionsAllowedActionsConfigArgs(\n github_owned_allowed=True,\n patterns_alloweds=[\n \"actions/cache@*\",\n \"actions/checkout@*\",\n ],\n verified_allowed=True,\n ),\n enabled_organizations_config=github.EnterpriseActionsPermissionsEnabledOrganizationsConfigArgs(\n organization_ids=[example_org.id],\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example_enterprise = Github.GetEnterprise.Invoke(new()\n {\n Slug = \"my-enterprise\",\n });\n\n var example_org = Github.GetOrganization.Invoke(new()\n {\n Name = \"my-org\",\n });\n\n var test = new Github.EnterpriseActionsPermissions(\"test\", new()\n {\n EnterpriseId = example_enterprise.Apply(example_enterprise =\u003e example_enterprise.Apply(getEnterpriseResult =\u003e getEnterpriseResult.Slug)),\n AllowedActions = \"selected\",\n EnabledOrganizations = \"selected\",\n AllowedActionsConfig = new Github.Inputs.EnterpriseActionsPermissionsAllowedActionsConfigArgs\n {\n GithubOwnedAllowed = true,\n PatternsAlloweds = new[]\n {\n \"actions/cache@*\",\n \"actions/checkout@*\",\n },\n VerifiedAllowed = true,\n },\n EnabledOrganizationsConfig = new Github.Inputs.EnterpriseActionsPermissionsEnabledOrganizationsConfigArgs\n {\n OrganizationIds = new[]\n {\n example_org.Apply(example_org =\u003e example_org.Apply(getOrganizationResult =\u003e getOrganizationResult.Id)),\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample_enterprise, err := github.GetEnterprise(ctx, \u0026github.GetEnterpriseArgs{\n\t\t\tSlug: \"my-enterprise\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texample_org, err := github.GetOrganization(ctx, \u0026github.GetOrganizationArgs{\n\t\t\tName: \"my-org\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewEnterpriseActionsPermissions(ctx, \"test\", \u0026github.EnterpriseActionsPermissionsArgs{\n\t\t\tEnterpriseId: *pulumi.String(example_enterprise.Slug),\n\t\t\tAllowedActions: pulumi.String(\"selected\"),\n\t\t\tEnabledOrganizations: pulumi.String(\"selected\"),\n\t\t\tAllowedActionsConfig: \u0026github.EnterpriseActionsPermissionsAllowedActionsConfigArgs{\n\t\t\t\tGithubOwnedAllowed: pulumi.Bool(true),\n\t\t\t\tPatternsAlloweds: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"actions/cache@*\"),\n\t\t\t\t\tpulumi.String(\"actions/checkout@*\"),\n\t\t\t\t},\n\t\t\t\tVerifiedAllowed: pulumi.Bool(true),\n\t\t\t},\n\t\t\tEnabledOrganizationsConfig: \u0026github.EnterpriseActionsPermissionsEnabledOrganizationsConfigArgs{\n\t\t\t\tOrganizationIds: pulumi.IntArray{\n\t\t\t\t\t*pulumi.String(example_org.Id),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.GithubFunctions;\nimport com.pulumi.github.inputs.GetEnterpriseArgs;\nimport com.pulumi.github.inputs.GetOrganizationArgs;\nimport com.pulumi.github.EnterpriseActionsPermissions;\nimport com.pulumi.github.EnterpriseActionsPermissionsArgs;\nimport com.pulumi.github.inputs.EnterpriseActionsPermissionsAllowedActionsConfigArgs;\nimport com.pulumi.github.inputs.EnterpriseActionsPermissionsEnabledOrganizationsConfigArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 example-enterprise = GithubFunctions.getEnterprise(GetEnterpriseArgs.builder()\n .slug(\"my-enterprise\")\n .build());\n\n final var example-org = GithubFunctions.getOrganization(GetOrganizationArgs.builder()\n .name(\"my-org\")\n .build());\n\n var test = new EnterpriseActionsPermissions(\"test\", EnterpriseActionsPermissionsArgs.builder() \n .enterpriseId(example_enterprise.slug())\n .allowedActions(\"selected\")\n .enabledOrganizations(\"selected\")\n .allowedActionsConfig(EnterpriseActionsPermissionsAllowedActionsConfigArgs.builder()\n .githubOwnedAllowed(true)\n .patternsAlloweds( \n \"actions/cache@*\",\n \"actions/checkout@*\")\n .verifiedAllowed(true)\n .build())\n .enabledOrganizationsConfig(EnterpriseActionsPermissionsEnabledOrganizationsConfigArgs.builder()\n .organizationIds(example_org.id())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n test:\n type: github:EnterpriseActionsPermissions\n properties:\n enterpriseId: ${[\"example-enterprise\"].slug}\n allowedActions: selected\n enabledOrganizations: selected\n allowedActionsConfig:\n githubOwnedAllowed: true\n patternsAlloweds:\n - actions/cache@*\n - actions/checkout@*\n verifiedAllowed: true\n enabledOrganizationsConfig:\n organizationIds:\n - ${[\"example-org\"].id}\nvariables:\n example-enterprise:\n fn::invoke:\n Function: github:getEnterprise\n Arguments:\n slug: my-enterprise\n example-org:\n fn::invoke:\n Function: github:getOrganization\n Arguments:\n name: my-org\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nThis resource can be imported using the name of the GitHub enterprise:\n\n```sh\n$ pulumi import github:index/enterpriseActionsPermissions:EnterpriseActionsPermissions test github_enterprise_name\n```\n", + "description": "This resource allows you to create and manage GitHub Actions permissions within your GitHub enterprise.\nYou must have admin access to an enterprise to use this resource.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example-enterprise = github.getEnterprise({\n slug: \"my-enterprise\",\n});\nconst example-org = github.getOrganization({\n name: \"my-org\",\n});\nconst test = new github.EnterpriseActionsPermissions(\"test\", {\n enterpriseId: example_enterprise.then(example_enterprise =\u003e example_enterprise.slug),\n allowedActions: \"selected\",\n enabledOrganizations: \"selected\",\n allowedActionsConfig: {\n githubOwnedAllowed: true,\n patternsAlloweds: [\n \"actions/cache@*\",\n \"actions/checkout@*\",\n ],\n verifiedAllowed: true,\n },\n enabledOrganizationsConfig: {\n organizationIds: [example_org.then(example_org =\u003e example_org.id)],\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample_enterprise = github.get_enterprise(slug=\"my-enterprise\")\nexample_org = github.get_organization(name=\"my-org\")\ntest = github.EnterpriseActionsPermissions(\"test\",\n enterprise_id=example_enterprise.slug,\n allowed_actions=\"selected\",\n enabled_organizations=\"selected\",\n allowed_actions_config=github.EnterpriseActionsPermissionsAllowedActionsConfigArgs(\n github_owned_allowed=True,\n patterns_alloweds=[\n \"actions/cache@*\",\n \"actions/checkout@*\",\n ],\n verified_allowed=True,\n ),\n enabled_organizations_config=github.EnterpriseActionsPermissionsEnabledOrganizationsConfigArgs(\n organization_ids=[example_org.id],\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example_enterprise = Github.GetEnterprise.Invoke(new()\n {\n Slug = \"my-enterprise\",\n });\n\n var example_org = Github.GetOrganization.Invoke(new()\n {\n Name = \"my-org\",\n });\n\n var test = new Github.EnterpriseActionsPermissions(\"test\", new()\n {\n EnterpriseId = example_enterprise.Apply(example_enterprise =\u003e example_enterprise.Apply(getEnterpriseResult =\u003e getEnterpriseResult.Slug)),\n AllowedActions = \"selected\",\n EnabledOrganizations = \"selected\",\n AllowedActionsConfig = new Github.Inputs.EnterpriseActionsPermissionsAllowedActionsConfigArgs\n {\n GithubOwnedAllowed = true,\n PatternsAlloweds = new[]\n {\n \"actions/cache@*\",\n \"actions/checkout@*\",\n },\n VerifiedAllowed = true,\n },\n EnabledOrganizationsConfig = new Github.Inputs.EnterpriseActionsPermissionsEnabledOrganizationsConfigArgs\n {\n OrganizationIds = new[]\n {\n example_org.Apply(example_org =\u003e example_org.Apply(getOrganizationResult =\u003e getOrganizationResult.Id)),\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample_enterprise, err := github.GetEnterprise(ctx, \u0026github.GetEnterpriseArgs{\n\t\t\tSlug: \"my-enterprise\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texample_org, err := github.GetOrganization(ctx, \u0026github.GetOrganizationArgs{\n\t\t\tName: \"my-org\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewEnterpriseActionsPermissions(ctx, \"test\", \u0026github.EnterpriseActionsPermissionsArgs{\n\t\t\tEnterpriseId: pulumi.String(example_enterprise.Slug),\n\t\t\tAllowedActions: pulumi.String(\"selected\"),\n\t\t\tEnabledOrganizations: pulumi.String(\"selected\"),\n\t\t\tAllowedActionsConfig: \u0026github.EnterpriseActionsPermissionsAllowedActionsConfigArgs{\n\t\t\t\tGithubOwnedAllowed: pulumi.Bool(true),\n\t\t\t\tPatternsAlloweds: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"actions/cache@*\"),\n\t\t\t\t\tpulumi.String(\"actions/checkout@*\"),\n\t\t\t\t},\n\t\t\t\tVerifiedAllowed: pulumi.Bool(true),\n\t\t\t},\n\t\t\tEnabledOrganizationsConfig: \u0026github.EnterpriseActionsPermissionsEnabledOrganizationsConfigArgs{\n\t\t\t\tOrganizationIds: pulumi.IntArray{\n\t\t\t\t\tpulumi.String(example_org.Id),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.GithubFunctions;\nimport com.pulumi.github.inputs.GetEnterpriseArgs;\nimport com.pulumi.github.inputs.GetOrganizationArgs;\nimport com.pulumi.github.EnterpriseActionsPermissions;\nimport com.pulumi.github.EnterpriseActionsPermissionsArgs;\nimport com.pulumi.github.inputs.EnterpriseActionsPermissionsAllowedActionsConfigArgs;\nimport com.pulumi.github.inputs.EnterpriseActionsPermissionsEnabledOrganizationsConfigArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 example-enterprise = GithubFunctions.getEnterprise(GetEnterpriseArgs.builder()\n .slug(\"my-enterprise\")\n .build());\n\n final var example-org = GithubFunctions.getOrganization(GetOrganizationArgs.builder()\n .name(\"my-org\")\n .build());\n\n var test = new EnterpriseActionsPermissions(\"test\", EnterpriseActionsPermissionsArgs.builder() \n .enterpriseId(example_enterprise.slug())\n .allowedActions(\"selected\")\n .enabledOrganizations(\"selected\")\n .allowedActionsConfig(EnterpriseActionsPermissionsAllowedActionsConfigArgs.builder()\n .githubOwnedAllowed(true)\n .patternsAlloweds( \n \"actions/cache@*\",\n \"actions/checkout@*\")\n .verifiedAllowed(true)\n .build())\n .enabledOrganizationsConfig(EnterpriseActionsPermissionsEnabledOrganizationsConfigArgs.builder()\n .organizationIds(example_org.id())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n test:\n type: github:EnterpriseActionsPermissions\n properties:\n enterpriseId: ${[\"example-enterprise\"].slug}\n allowedActions: selected\n enabledOrganizations: selected\n allowedActionsConfig:\n githubOwnedAllowed: true\n patternsAlloweds:\n - actions/cache@*\n - actions/checkout@*\n verifiedAllowed: true\n enabledOrganizationsConfig:\n organizationIds:\n - ${[\"example-org\"].id}\nvariables:\n example-enterprise:\n fn::invoke:\n Function: github:getEnterprise\n Arguments:\n slug: my-enterprise\n example-org:\n fn::invoke:\n Function: github:getOrganization\n Arguments:\n name: my-org\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nThis resource can be imported using the name of the GitHub enterprise:\n\n```sh\n$ pulumi import github:index/enterpriseActionsPermissions:EnterpriseActionsPermissions test github_enterprise_name\n```\n", "properties": { "allowedActions": { "type": "string", @@ -7072,7 +7072,7 @@ "defaultBranch": { "type": "string", "description": "(Deprecated: Use `github.BranchDefault` resource instead) The name of the default branch of the repository. **NOTE:** This can only be set after a repository has already been created,\nand after a correct reference has been created for the target branch inside the repository. This means a user will have to omit this parameter from the\ninitial repository creation and create the target branch inside of the repository prior to setting this attribute.\n", - "deprecationMessage": "Use the github_branch_default resource instead" + "deprecationMessage": "Use the github.BranchDefault resource instead" }, "deleteBranchOnMerge": { "type": "boolean", @@ -7272,7 +7272,7 @@ "defaultBranch": { "type": "string", "description": "(Deprecated: Use `github.BranchDefault` resource instead) The name of the default branch of the repository. **NOTE:** This can only be set after a repository has already been created,\nand after a correct reference has been created for the target branch inside the repository. This means a user will have to omit this parameter from the\ninitial repository creation and create the target branch inside of the repository prior to setting this attribute.\n", - "deprecationMessage": "Use the github_branch_default resource instead" + "deprecationMessage": "Use the github.BranchDefault resource instead" }, "deleteBranchOnMerge": { "type": "boolean", @@ -7417,7 +7417,7 @@ "defaultBranch": { "type": "string", "description": "(Deprecated: Use `github.BranchDefault` resource instead) The name of the default branch of the repository. **NOTE:** This can only be set after a repository has already been created,\nand after a correct reference has been created for the target branch inside the repository. This means a user will have to omit this parameter from the\ninitial repository creation and create the target branch inside of the repository prior to setting this attribute.\n", - "deprecationMessage": "Use the github_branch_default resource instead" + "deprecationMessage": "Use the github.BranchDefault resource instead" }, "deleteBranchOnMerge": { "type": "boolean", @@ -8033,7 +8033,7 @@ } }, "github:index/repositoryEnvironment:RepositoryEnvironment": { - "description": "This resource allows you to create and manage environments for a GitHub repository.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst current = github.getUser({\n username: \"\",\n});\nconst exampleRepository = new github.Repository(\"exampleRepository\", {description: \"My awesome codebase\"});\nconst exampleRepositoryEnvironment = new github.RepositoryEnvironment(\"exampleRepositoryEnvironment\", {\n environment: \"example\",\n repository: exampleRepository.name,\n preventSelfReview: true,\n reviewers: [{\n users: [current.then(current =\u003e current.id)],\n }],\n deploymentBranchPolicy: {\n protectedBranches: true,\n customBranchPolicies: false,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\ncurrent = github.get_user(username=\"\")\nexample_repository = github.Repository(\"exampleRepository\", description=\"My awesome codebase\")\nexample_repository_environment = github.RepositoryEnvironment(\"exampleRepositoryEnvironment\",\n environment=\"example\",\n repository=example_repository.name,\n prevent_self_review=True,\n reviewers=[github.RepositoryEnvironmentReviewerArgs(\n users=[current.id],\n )],\n deployment_branch_policy=github.RepositoryEnvironmentDeploymentBranchPolicyArgs(\n protected_branches=True,\n custom_branch_policies=False,\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var current = Github.GetUser.Invoke(new()\n {\n Username = \"\",\n });\n\n var exampleRepository = new Github.Repository(\"exampleRepository\", new()\n {\n Description = \"My awesome codebase\",\n });\n\n var exampleRepositoryEnvironment = new Github.RepositoryEnvironment(\"exampleRepositoryEnvironment\", new()\n {\n Environment = \"example\",\n Repository = exampleRepository.Name,\n PreventSelfReview = true,\n Reviewers = new[]\n {\n new Github.Inputs.RepositoryEnvironmentReviewerArgs\n {\n Users = new[]\n {\n current.Apply(getUserResult =\u003e getUserResult.Id),\n },\n },\n },\n DeploymentBranchPolicy = new Github.Inputs.RepositoryEnvironmentDeploymentBranchPolicyArgs\n {\n ProtectedBranches = true,\n CustomBranchPolicies = false,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcurrent, err := github.GetUser(ctx, \u0026github.GetUserArgs{\n\t\t\tUsername: \"\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleRepository, err := github.NewRepository(ctx, \"exampleRepository\", \u0026github.RepositoryArgs{\n\t\t\tDescription: pulumi.String(\"My awesome codebase\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewRepositoryEnvironment(ctx, \"exampleRepositoryEnvironment\", \u0026github.RepositoryEnvironmentArgs{\n\t\t\tEnvironment: pulumi.String(\"example\"),\n\t\t\tRepository: exampleRepository.Name,\n\t\t\tPreventSelfReview: pulumi.Bool(true),\n\t\t\tReviewers: github.RepositoryEnvironmentReviewerArray{\n\t\t\t\t\u0026github.RepositoryEnvironmentReviewerArgs{\n\t\t\t\t\tUsers: pulumi.IntArray{\n\t\t\t\t\t\t*pulumi.String(current.Id),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tDeploymentBranchPolicy: \u0026github.RepositoryEnvironmentDeploymentBranchPolicyArgs{\n\t\t\t\tProtectedBranches: pulumi.Bool(true),\n\t\t\t\tCustomBranchPolicies: pulumi.Bool(false),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.GithubFunctions;\nimport com.pulumi.github.inputs.GetUserArgs;\nimport com.pulumi.github.Repository;\nimport com.pulumi.github.RepositoryArgs;\nimport com.pulumi.github.RepositoryEnvironment;\nimport com.pulumi.github.RepositoryEnvironmentArgs;\nimport com.pulumi.github.inputs.RepositoryEnvironmentReviewerArgs;\nimport com.pulumi.github.inputs.RepositoryEnvironmentDeploymentBranchPolicyArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 current = GithubFunctions.getUser(GetUserArgs.builder()\n .username(\"\")\n .build());\n\n var exampleRepository = new Repository(\"exampleRepository\", RepositoryArgs.builder() \n .description(\"My awesome codebase\")\n .build());\n\n var exampleRepositoryEnvironment = new RepositoryEnvironment(\"exampleRepositoryEnvironment\", RepositoryEnvironmentArgs.builder() \n .environment(\"example\")\n .repository(exampleRepository.name())\n .preventSelfReview(true)\n .reviewers(RepositoryEnvironmentReviewerArgs.builder()\n .users(current.applyValue(getUserResult -\u003e getUserResult.id()))\n .build())\n .deploymentBranchPolicy(RepositoryEnvironmentDeploymentBranchPolicyArgs.builder()\n .protectedBranches(true)\n .customBranchPolicies(false)\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleRepository:\n type: github:Repository\n properties:\n description: My awesome codebase\n exampleRepositoryEnvironment:\n type: github:RepositoryEnvironment\n properties:\n environment: example\n repository: ${exampleRepository.name}\n preventSelfReview: true\n reviewers:\n - users:\n - ${current.id}\n deploymentBranchPolicy:\n protectedBranches: true\n customBranchPolicies: false\nvariables:\n current:\n fn::invoke:\n Function: github:getUser\n Arguments:\n username:\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nGitHub Repository Environment can be imported using an ID made up of `name` of the repository combined with the `environment` name of the environment, separated by a `:` character, e.g.\n\n```sh\n$ pulumi import github:index/repositoryEnvironment:RepositoryEnvironment daily terraform:daily\n```\n", + "description": "This resource allows you to create and manage environments for a GitHub repository.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst current = github.getUser({\n username: \"\",\n});\nconst exampleRepository = new github.Repository(\"exampleRepository\", {description: \"My awesome codebase\"});\nconst exampleRepositoryEnvironment = new github.RepositoryEnvironment(\"exampleRepositoryEnvironment\", {\n environment: \"example\",\n repository: exampleRepository.name,\n preventSelfReview: true,\n reviewers: [{\n users: [current.then(current =\u003e current.id)],\n }],\n deploymentBranchPolicy: {\n protectedBranches: true,\n customBranchPolicies: false,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\ncurrent = github.get_user(username=\"\")\nexample_repository = github.Repository(\"exampleRepository\", description=\"My awesome codebase\")\nexample_repository_environment = github.RepositoryEnvironment(\"exampleRepositoryEnvironment\",\n environment=\"example\",\n repository=example_repository.name,\n prevent_self_review=True,\n reviewers=[github.RepositoryEnvironmentReviewerArgs(\n users=[current.id],\n )],\n deployment_branch_policy=github.RepositoryEnvironmentDeploymentBranchPolicyArgs(\n protected_branches=True,\n custom_branch_policies=False,\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var current = Github.GetUser.Invoke(new()\n {\n Username = \"\",\n });\n\n var exampleRepository = new Github.Repository(\"exampleRepository\", new()\n {\n Description = \"My awesome codebase\",\n });\n\n var exampleRepositoryEnvironment = new Github.RepositoryEnvironment(\"exampleRepositoryEnvironment\", new()\n {\n Environment = \"example\",\n Repository = exampleRepository.Name,\n PreventSelfReview = true,\n Reviewers = new[]\n {\n new Github.Inputs.RepositoryEnvironmentReviewerArgs\n {\n Users = new[]\n {\n current.Apply(getUserResult =\u003e getUserResult.Id),\n },\n },\n },\n DeploymentBranchPolicy = new Github.Inputs.RepositoryEnvironmentDeploymentBranchPolicyArgs\n {\n ProtectedBranches = true,\n CustomBranchPolicies = false,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcurrent, err := github.GetUser(ctx, \u0026github.GetUserArgs{\n\t\t\tUsername: \"\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleRepository, err := github.NewRepository(ctx, \"exampleRepository\", \u0026github.RepositoryArgs{\n\t\t\tDescription: pulumi.String(\"My awesome codebase\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewRepositoryEnvironment(ctx, \"exampleRepositoryEnvironment\", \u0026github.RepositoryEnvironmentArgs{\n\t\t\tEnvironment: pulumi.String(\"example\"),\n\t\t\tRepository: exampleRepository.Name,\n\t\t\tPreventSelfReview: pulumi.Bool(true),\n\t\t\tReviewers: github.RepositoryEnvironmentReviewerArray{\n\t\t\t\t\u0026github.RepositoryEnvironmentReviewerArgs{\n\t\t\t\t\tUsers: pulumi.IntArray{\n\t\t\t\t\t\tpulumi.String(current.Id),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tDeploymentBranchPolicy: \u0026github.RepositoryEnvironmentDeploymentBranchPolicyArgs{\n\t\t\t\tProtectedBranches: pulumi.Bool(true),\n\t\t\t\tCustomBranchPolicies: pulumi.Bool(false),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.GithubFunctions;\nimport com.pulumi.github.inputs.GetUserArgs;\nimport com.pulumi.github.Repository;\nimport com.pulumi.github.RepositoryArgs;\nimport com.pulumi.github.RepositoryEnvironment;\nimport com.pulumi.github.RepositoryEnvironmentArgs;\nimport com.pulumi.github.inputs.RepositoryEnvironmentReviewerArgs;\nimport com.pulumi.github.inputs.RepositoryEnvironmentDeploymentBranchPolicyArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 current = GithubFunctions.getUser(GetUserArgs.builder()\n .username(\"\")\n .build());\n\n var exampleRepository = new Repository(\"exampleRepository\", RepositoryArgs.builder() \n .description(\"My awesome codebase\")\n .build());\n\n var exampleRepositoryEnvironment = new RepositoryEnvironment(\"exampleRepositoryEnvironment\", RepositoryEnvironmentArgs.builder() \n .environment(\"example\")\n .repository(exampleRepository.name())\n .preventSelfReview(true)\n .reviewers(RepositoryEnvironmentReviewerArgs.builder()\n .users(current.applyValue(getUserResult -\u003e getUserResult.id()))\n .build())\n .deploymentBranchPolicy(RepositoryEnvironmentDeploymentBranchPolicyArgs.builder()\n .protectedBranches(true)\n .customBranchPolicies(false)\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleRepository:\n type: github:Repository\n properties:\n description: My awesome codebase\n exampleRepositoryEnvironment:\n type: github:RepositoryEnvironment\n properties:\n environment: example\n repository: ${exampleRepository.name}\n preventSelfReview: true\n reviewers:\n - users:\n - ${current.id}\n deploymentBranchPolicy:\n protectedBranches: true\n customBranchPolicies: false\nvariables:\n current:\n fn::invoke:\n Function: github:getUser\n Arguments:\n username:\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nGitHub Repository Environment can be imported using an ID made up of `name` of the repository combined with the `environment` name of the environment, separated by a `:` character, e.g.\n\n```sh\n$ pulumi import github:index/repositoryEnvironment:RepositoryEnvironment daily terraform:daily\n```\n", "properties": { "canAdminsBypass": { "type": "boolean", @@ -8151,7 +8151,7 @@ } }, "github:index/repositoryEnvironmentDeploymentPolicy:RepositoryEnvironmentDeploymentPolicy": { - "description": "This resource allows you to create and manage environment deployment branch policies for a GitHub repository.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst current = github.getUser({\n username: \"\",\n});\nconst testRepository = new github.Repository(\"testRepository\", {});\nconst testRepositoryEnvironment = new github.RepositoryEnvironment(\"testRepositoryEnvironment\", {\n repository: testRepository.name,\n environment: \"environment/test\",\n waitTimer: 10000,\n reviewers: [{\n users: [current.then(current =\u003e current.id)],\n }],\n deploymentBranchPolicy: {\n protectedBranches: false,\n customBranchPolicies: true,\n },\n});\nconst testRepositoryEnvironmentDeploymentPolicy = new github.RepositoryEnvironmentDeploymentPolicy(\"testRepositoryEnvironmentDeploymentPolicy\", {\n repository: testRepository.name,\n environment: testRepositoryEnvironment.environment,\n branchPattern: \"releases/*\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\ncurrent = github.get_user(username=\"\")\ntest_repository = github.Repository(\"testRepository\")\ntest_repository_environment = github.RepositoryEnvironment(\"testRepositoryEnvironment\",\n repository=test_repository.name,\n environment=\"environment/test\",\n wait_timer=10000,\n reviewers=[github.RepositoryEnvironmentReviewerArgs(\n users=[current.id],\n )],\n deployment_branch_policy=github.RepositoryEnvironmentDeploymentBranchPolicyArgs(\n protected_branches=False,\n custom_branch_policies=True,\n ))\ntest_repository_environment_deployment_policy = github.RepositoryEnvironmentDeploymentPolicy(\"testRepositoryEnvironmentDeploymentPolicy\",\n repository=test_repository.name,\n environment=test_repository_environment.environment,\n branch_pattern=\"releases/*\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var current = Github.GetUser.Invoke(new()\n {\n Username = \"\",\n });\n\n var testRepository = new Github.Repository(\"testRepository\");\n\n var testRepositoryEnvironment = new Github.RepositoryEnvironment(\"testRepositoryEnvironment\", new()\n {\n Repository = testRepository.Name,\n Environment = \"environment/test\",\n WaitTimer = 10000,\n Reviewers = new[]\n {\n new Github.Inputs.RepositoryEnvironmentReviewerArgs\n {\n Users = new[]\n {\n current.Apply(getUserResult =\u003e getUserResult.Id),\n },\n },\n },\n DeploymentBranchPolicy = new Github.Inputs.RepositoryEnvironmentDeploymentBranchPolicyArgs\n {\n ProtectedBranches = false,\n CustomBranchPolicies = true,\n },\n });\n\n var testRepositoryEnvironmentDeploymentPolicy = new Github.RepositoryEnvironmentDeploymentPolicy(\"testRepositoryEnvironmentDeploymentPolicy\", new()\n {\n Repository = testRepository.Name,\n Environment = testRepositoryEnvironment.Environment,\n BranchPattern = \"releases/*\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcurrent, err := github.GetUser(ctx, \u0026github.GetUserArgs{\n\t\t\tUsername: \"\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\ttestRepository, err := github.NewRepository(ctx, \"testRepository\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\ttestRepositoryEnvironment, err := github.NewRepositoryEnvironment(ctx, \"testRepositoryEnvironment\", \u0026github.RepositoryEnvironmentArgs{\n\t\t\tRepository: testRepository.Name,\n\t\t\tEnvironment: pulumi.String(\"environment/test\"),\n\t\t\tWaitTimer: pulumi.Int(10000),\n\t\t\tReviewers: github.RepositoryEnvironmentReviewerArray{\n\t\t\t\t\u0026github.RepositoryEnvironmentReviewerArgs{\n\t\t\t\t\tUsers: pulumi.IntArray{\n\t\t\t\t\t\t*pulumi.String(current.Id),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tDeploymentBranchPolicy: \u0026github.RepositoryEnvironmentDeploymentBranchPolicyArgs{\n\t\t\t\tProtectedBranches: pulumi.Bool(false),\n\t\t\t\tCustomBranchPolicies: pulumi.Bool(true),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewRepositoryEnvironmentDeploymentPolicy(ctx, \"testRepositoryEnvironmentDeploymentPolicy\", \u0026github.RepositoryEnvironmentDeploymentPolicyArgs{\n\t\t\tRepository: testRepository.Name,\n\t\t\tEnvironment: testRepositoryEnvironment.Environment,\n\t\t\tBranchPattern: pulumi.String(\"releases/*\"),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.GithubFunctions;\nimport com.pulumi.github.inputs.GetUserArgs;\nimport com.pulumi.github.Repository;\nimport com.pulumi.github.RepositoryEnvironment;\nimport com.pulumi.github.RepositoryEnvironmentArgs;\nimport com.pulumi.github.inputs.RepositoryEnvironmentReviewerArgs;\nimport com.pulumi.github.inputs.RepositoryEnvironmentDeploymentBranchPolicyArgs;\nimport com.pulumi.github.RepositoryEnvironmentDeploymentPolicy;\nimport com.pulumi.github.RepositoryEnvironmentDeploymentPolicyArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 current = GithubFunctions.getUser(GetUserArgs.builder()\n .username(\"\")\n .build());\n\n var testRepository = new Repository(\"testRepository\");\n\n var testRepositoryEnvironment = new RepositoryEnvironment(\"testRepositoryEnvironment\", RepositoryEnvironmentArgs.builder() \n .repository(testRepository.name())\n .environment(\"environment/test\")\n .waitTimer(10000)\n .reviewers(RepositoryEnvironmentReviewerArgs.builder()\n .users(current.applyValue(getUserResult -\u003e getUserResult.id()))\n .build())\n .deploymentBranchPolicy(RepositoryEnvironmentDeploymentBranchPolicyArgs.builder()\n .protectedBranches(false)\n .customBranchPolicies(true)\n .build())\n .build());\n\n var testRepositoryEnvironmentDeploymentPolicy = new RepositoryEnvironmentDeploymentPolicy(\"testRepositoryEnvironmentDeploymentPolicy\", RepositoryEnvironmentDeploymentPolicyArgs.builder() \n .repository(testRepository.name())\n .environment(testRepositoryEnvironment.environment())\n .branchPattern(\"releases/*\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n testRepository:\n type: github:Repository\n testRepositoryEnvironment:\n type: github:RepositoryEnvironment\n properties:\n repository: ${testRepository.name}\n environment: environment/test\n waitTimer: 10000\n reviewers:\n - users:\n - ${current.id}\n deploymentBranchPolicy:\n protectedBranches: false\n customBranchPolicies: true\n testRepositoryEnvironmentDeploymentPolicy:\n type: github:RepositoryEnvironmentDeploymentPolicy\n properties:\n repository: ${testRepository.name}\n environment: ${testRepositoryEnvironment.environment}\n branchPattern: releases/*\nvariables:\n current:\n fn::invoke:\n Function: github:getUser\n Arguments:\n username:\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nGitHub Repository Environment Deployment Policy can be imported using an ID made up of `name` of the repository combined with the `environment` name of the environment with the `Id` of the deployment policy, separated by a `:` character, e.g.\n\n```sh\n$ pulumi import github:index/repositoryEnvironmentDeploymentPolicy:RepositoryEnvironmentDeploymentPolicy daily terraform:daily:123456\n```\n", + "description": "This resource allows you to create and manage environment deployment branch policies for a GitHub repository.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst current = github.getUser({\n username: \"\",\n});\nconst testRepository = new github.Repository(\"testRepository\", {});\nconst testRepositoryEnvironment = new github.RepositoryEnvironment(\"testRepositoryEnvironment\", {\n repository: testRepository.name,\n environment: \"environment/test\",\n waitTimer: 10000,\n reviewers: [{\n users: [current.then(current =\u003e current.id)],\n }],\n deploymentBranchPolicy: {\n protectedBranches: false,\n customBranchPolicies: true,\n },\n});\nconst testRepositoryEnvironmentDeploymentPolicy = new github.RepositoryEnvironmentDeploymentPolicy(\"testRepositoryEnvironmentDeploymentPolicy\", {\n repository: testRepository.name,\n environment: testRepositoryEnvironment.environment,\n branchPattern: \"releases/*\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\ncurrent = github.get_user(username=\"\")\ntest_repository = github.Repository(\"testRepository\")\ntest_repository_environment = github.RepositoryEnvironment(\"testRepositoryEnvironment\",\n repository=test_repository.name,\n environment=\"environment/test\",\n wait_timer=10000,\n reviewers=[github.RepositoryEnvironmentReviewerArgs(\n users=[current.id],\n )],\n deployment_branch_policy=github.RepositoryEnvironmentDeploymentBranchPolicyArgs(\n protected_branches=False,\n custom_branch_policies=True,\n ))\ntest_repository_environment_deployment_policy = github.RepositoryEnvironmentDeploymentPolicy(\"testRepositoryEnvironmentDeploymentPolicy\",\n repository=test_repository.name,\n environment=test_repository_environment.environment,\n branch_pattern=\"releases/*\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var current = Github.GetUser.Invoke(new()\n {\n Username = \"\",\n });\n\n var testRepository = new Github.Repository(\"testRepository\");\n\n var testRepositoryEnvironment = new Github.RepositoryEnvironment(\"testRepositoryEnvironment\", new()\n {\n Repository = testRepository.Name,\n Environment = \"environment/test\",\n WaitTimer = 10000,\n Reviewers = new[]\n {\n new Github.Inputs.RepositoryEnvironmentReviewerArgs\n {\n Users = new[]\n {\n current.Apply(getUserResult =\u003e getUserResult.Id),\n },\n },\n },\n DeploymentBranchPolicy = new Github.Inputs.RepositoryEnvironmentDeploymentBranchPolicyArgs\n {\n ProtectedBranches = false,\n CustomBranchPolicies = true,\n },\n });\n\n var testRepositoryEnvironmentDeploymentPolicy = new Github.RepositoryEnvironmentDeploymentPolicy(\"testRepositoryEnvironmentDeploymentPolicy\", new()\n {\n Repository = testRepository.Name,\n Environment = testRepositoryEnvironment.Environment,\n BranchPattern = \"releases/*\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcurrent, err := github.GetUser(ctx, \u0026github.GetUserArgs{\n\t\t\tUsername: \"\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\ttestRepository, err := github.NewRepository(ctx, \"testRepository\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\ttestRepositoryEnvironment, err := github.NewRepositoryEnvironment(ctx, \"testRepositoryEnvironment\", \u0026github.RepositoryEnvironmentArgs{\n\t\t\tRepository: testRepository.Name,\n\t\t\tEnvironment: pulumi.String(\"environment/test\"),\n\t\t\tWaitTimer: pulumi.Int(10000),\n\t\t\tReviewers: github.RepositoryEnvironmentReviewerArray{\n\t\t\t\t\u0026github.RepositoryEnvironmentReviewerArgs{\n\t\t\t\t\tUsers: pulumi.IntArray{\n\t\t\t\t\t\tpulumi.String(current.Id),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tDeploymentBranchPolicy: \u0026github.RepositoryEnvironmentDeploymentBranchPolicyArgs{\n\t\t\t\tProtectedBranches: pulumi.Bool(false),\n\t\t\t\tCustomBranchPolicies: pulumi.Bool(true),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewRepositoryEnvironmentDeploymentPolicy(ctx, \"testRepositoryEnvironmentDeploymentPolicy\", \u0026github.RepositoryEnvironmentDeploymentPolicyArgs{\n\t\t\tRepository: testRepository.Name,\n\t\t\tEnvironment: testRepositoryEnvironment.Environment,\n\t\t\tBranchPattern: pulumi.String(\"releases/*\"),\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.GithubFunctions;\nimport com.pulumi.github.inputs.GetUserArgs;\nimport com.pulumi.github.Repository;\nimport com.pulumi.github.RepositoryEnvironment;\nimport com.pulumi.github.RepositoryEnvironmentArgs;\nimport com.pulumi.github.inputs.RepositoryEnvironmentReviewerArgs;\nimport com.pulumi.github.inputs.RepositoryEnvironmentDeploymentBranchPolicyArgs;\nimport com.pulumi.github.RepositoryEnvironmentDeploymentPolicy;\nimport com.pulumi.github.RepositoryEnvironmentDeploymentPolicyArgs;\nimport java.util.List;\nimport java.util.ArrayList;\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 current = GithubFunctions.getUser(GetUserArgs.builder()\n .username(\"\")\n .build());\n\n var testRepository = new Repository(\"testRepository\");\n\n var testRepositoryEnvironment = new RepositoryEnvironment(\"testRepositoryEnvironment\", RepositoryEnvironmentArgs.builder() \n .repository(testRepository.name())\n .environment(\"environment/test\")\n .waitTimer(10000)\n .reviewers(RepositoryEnvironmentReviewerArgs.builder()\n .users(current.applyValue(getUserResult -\u003e getUserResult.id()))\n .build())\n .deploymentBranchPolicy(RepositoryEnvironmentDeploymentBranchPolicyArgs.builder()\n .protectedBranches(false)\n .customBranchPolicies(true)\n .build())\n .build());\n\n var testRepositoryEnvironmentDeploymentPolicy = new RepositoryEnvironmentDeploymentPolicy(\"testRepositoryEnvironmentDeploymentPolicy\", RepositoryEnvironmentDeploymentPolicyArgs.builder() \n .repository(testRepository.name())\n .environment(testRepositoryEnvironment.environment())\n .branchPattern(\"releases/*\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n testRepository:\n type: github:Repository\n testRepositoryEnvironment:\n type: github:RepositoryEnvironment\n properties:\n repository: ${testRepository.name}\n environment: environment/test\n waitTimer: 10000\n reviewers:\n - users:\n - ${current.id}\n deploymentBranchPolicy:\n protectedBranches: false\n customBranchPolicies: true\n testRepositoryEnvironmentDeploymentPolicy:\n type: github:RepositoryEnvironmentDeploymentPolicy\n properties:\n repository: ${testRepository.name}\n environment: ${testRepositoryEnvironment.environment}\n branchPattern: releases/*\nvariables:\n current:\n fn::invoke:\n Function: github:getUser\n Arguments:\n username:\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nGitHub Repository Environment Deployment Policy can be imported using an ID made up of `name` of the repository combined with the `environment` name of the environment with the `Id` of the deployment policy, separated by a `:` character, e.g.\n\n```sh\n$ pulumi import github:index/repositoryEnvironmentDeploymentPolicy:RepositoryEnvironmentDeploymentPolicy daily terraform:daily:123456\n```\n", "properties": { "branchPattern": { "type": "string", diff --git a/provider/go.mod b/provider/go.mod index a322cb07..60812228 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -7,8 +7,8 @@ replace github.com/integrations/terraform-provider-github/v6 => ../upstream require ( github.com/integrations/terraform-provider-github/v6 v6.0.0 // => ../upstream github.com/pulumi/providertest v0.0.11 - github.com/pulumi/pulumi-terraform-bridge/v3 v3.77.0 - github.com/pulumi/pulumi/sdk/v3 v3.108.1 + github.com/pulumi/pulumi-terraform-bridge/v3 v3.78.0 + github.com/pulumi/pulumi/sdk/v3 v3.111.1 ) // tfinstall was removed from terraform-exec in v0.16.0. @@ -181,8 +181,8 @@ require ( github.com/pulumi/esc v0.6.2 // indirect github.com/pulumi/pulumi-java/pkg v0.9.9 // indirect github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8 // indirect - github.com/pulumi/pulumi-yaml v1.5.0 // indirect - github.com/pulumi/pulumi/pkg/v3 v3.108.1 // indirect + github.com/pulumi/pulumi-yaml v1.6.0 // indirect + github.com/pulumi/pulumi/pkg/v3 v3.111.1 // indirect github.com/pulumi/schema-tools v0.2.2 // indirect github.com/pulumi/terraform-diff-reader v0.0.2 // indirect github.com/rivo/uniseg v0.4.4 // indirect diff --git a/provider/go.sum b/provider/go.sum index e682a669..b28158a2 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -2838,16 +2838,16 @@ github.com/pulumi/providertest v0.0.11 h1:mg8MQ7Cq7+9XlHIkBD+aCqQO4mwAJEISngZgVd github.com/pulumi/providertest v0.0.11/go.mod h1:HsxjVsytcMIuNj19w1lT2W0QXY0oReXl1+h6eD2JXP8= github.com/pulumi/pulumi-java/pkg v0.9.9 h1:F3xJUtMFDVrTGCxb7Rh2Q8s6tj7gMfM5pcoUthz7vFY= github.com/pulumi/pulumi-java/pkg v0.9.9/go.mod h1:LVF1zeg3UkToHWxb67V+zEIxQc3EdMnlot5NWSt+FpA= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.77.0 h1:BZhD7yNZz7O5MWeM4WofY6XBLjtiA3qH2UJJTg8+Nts= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.77.0/go.mod h1:OCfjEGPU2fbBlda8UZhN/N3FljW6R08SK6lXPXzahwA= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.78.0 h1:zl1nXrx02X7u/w5kNjIVGVUzccEILcMWsIpg4QQanCI= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.78.0/go.mod h1:WpkN/lgtBrDYGrMyG9cmncy5pN95lnowbmjILHWcm0M= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8 h1:mav2tSitA9BPJPLLahKgepHyYsMzwaTm4cvp0dcTMYw= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8/go.mod h1:qUYk2c9i/yqMGNj9/bQyXpS39BxNDSXYjVN1njnq0zY= -github.com/pulumi/pulumi-yaml v1.5.0 h1:HfXu+WSFNpycref9CK935cViYJzXwSgHGWM/RepyrW0= -github.com/pulumi/pulumi-yaml v1.5.0/go.mod h1:AvKSmEQv2EkPbpvAQroR1eP1LkJGC8z5NDM34rVWOtg= -github.com/pulumi/pulumi/pkg/v3 v3.108.1 h1:K1UK40v5IpEPIaJ2un3WNOTBbLQaKR26HbLLh5EmMHY= -github.com/pulumi/pulumi/pkg/v3 v3.108.1/go.mod h1:48uCfxkPXUq/XTBqei9VuR0CRWObnSVlqcLkD6DhII8= -github.com/pulumi/pulumi/sdk/v3 v3.108.1 h1:5idjc3JmzToYVizRPbFyjJ5UU4AbExd04pcSP9AhPEc= -github.com/pulumi/pulumi/sdk/v3 v3.108.1/go.mod h1:5A6GHUwAJlRY1SSLZh84aDIbsBShcrfcmHzI50ecSBg= +github.com/pulumi/pulumi-yaml v1.6.0 h1:mb/QkebWXTa1fR+P3ZkCCHGXOYC6iTN8X8By9eNz8xM= +github.com/pulumi/pulumi-yaml v1.6.0/go.mod h1:RyEPo4MhL363sbAiFMVKRsQmXpQPDCY1S8pGv3E6Ij0= +github.com/pulumi/pulumi/pkg/v3 v3.111.1 h1:SrVgQE96T7YlZx/AZoFSlXYwur7ZmQUHyjbPI8sH96Q= +github.com/pulumi/pulumi/pkg/v3 v3.111.1/go.mod h1:ZWsq8Y0EMHZ5E2ju92jC+POz97TEXs3BbQ6r2o0U4SA= +github.com/pulumi/pulumi/sdk/v3 v3.111.1 h1:uOeG/b6YxBuL59xHtmFPspMa8BB6ovjHelL7sVCGJZw= +github.com/pulumi/pulumi/sdk/v3 v3.111.1/go.mod h1:5A6GHUwAJlRY1SSLZh84aDIbsBShcrfcmHzI50ecSBg= github.com/pulumi/schema-tools v0.2.2 h1:KiH/OP/mFF5XjXcOtrPOZ2Z5Sjtb0mLAaHgjJMcjMi4= github.com/pulumi/schema-tools v0.2.2/go.mod h1:62lgj52Tzq11eqWTIaKd+EVyYAu5dEcDJxMhTjvMO/k= github.com/pulumi/terraform-diff-reader v0.0.2 h1:kTE4nEXU3/SYXESvAIem+wyHMI3abqkI3OhJ0G04LLI= diff --git a/sdk/go.mod b/sdk/go.mod index d3082157..75c91222 100644 --- a/sdk/go.mod +++ b/sdk/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/blang/semver v3.5.1+incompatible - github.com/pulumi/pulumi/sdk/v3 v3.108.1 + github.com/pulumi/pulumi/sdk/v3 v3.111.1 ) require ( diff --git a/sdk/go.sum b/sdk/go.sum index e5386743..2e6cdb2c 100644 --- a/sdk/go.sum +++ b/sdk/go.sum @@ -150,8 +150,8 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435 github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= github.com/pulumi/esc v0.6.2 h1:+z+l8cuwIauLSwXQS0uoI3rqB+YG4SzsZYtHfNoXBvw= github.com/pulumi/esc v0.6.2/go.mod h1:jNnYNjzsOgVTjCp0LL24NsCk8ZJxq4IoLQdCT0X7l8k= -github.com/pulumi/pulumi/sdk/v3 v3.108.1 h1:5idjc3JmzToYVizRPbFyjJ5UU4AbExd04pcSP9AhPEc= -github.com/pulumi/pulumi/sdk/v3 v3.108.1/go.mod h1:5A6GHUwAJlRY1SSLZh84aDIbsBShcrfcmHzI50ecSBg= +github.com/pulumi/pulumi/sdk/v3 v3.111.1 h1:uOeG/b6YxBuL59xHtmFPspMa8BB6ovjHelL7sVCGJZw= +github.com/pulumi/pulumi/sdk/v3 v3.111.1/go.mod h1:5A6GHUwAJlRY1SSLZh84aDIbsBShcrfcmHzI50ecSBg= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= From ccc1f818e11a06278c3b3acc5e749e65d5438337 Mon Sep 17 00:00:00 2001 From: pulumi-bot Date: Thu, 21 Mar 2024 12:59:09 +0000 Subject: [PATCH 2/2] make build_sdks --- sdk/go/github/actionsEnvironmentSecret.go | 4 ++-- sdk/go/github/actionsEnvironmentVariable.go | 4 ++-- sdk/go/github/actionsOrganizationSecret.go | 4 ++-- .../actionsOrganizationSecretRepositories.go | 2 +- sdk/go/github/actionsOrganizationVariable.go | 2 +- sdk/go/github/branchProtection.go | 6 +++--- sdk/go/github/codespacesOrganizationSecret.go | 4 ++-- ...odespacesOrganizationSecretRepositories.go | 2 +- sdk/go/github/codespacesUserSecret.go | 4 ++-- sdk/go/github/dependabotOrganizationSecret.go | 4 ++-- ...ependabotOrganizationSecretRepositories.go | 2 +- sdk/go/github/enterpriseActionsPermissions.go | 4 ++-- sdk/go/github/getRelease.go | 4 ++-- sdk/go/github/pulumiTypes.go | 16 +++++++-------- sdk/go/github/repository.go | 12 +++++------ sdk/go/github/repositoryEnvironment.go | 2 +- .../repositoryEnvironmentDeploymentPolicy.go | 2 +- .../java/com/pulumi/github/Repository.java | 4 ++-- .../com/pulumi/github/RepositoryArgs.java | 16 +++++++-------- .../pulumi/github/inputs/RepositoryState.java | 16 +++++++-------- sdk/nodejs/getRelease.ts | 2 +- sdk/nodejs/repository.ts | 6 +++--- sdk/nodejs/types/input.ts | 4 ++-- sdk/nodejs/types/output.ts | 4 ++-- sdk/python/pulumi_github/repository.py | 20 +++++++++---------- 25 files changed, 75 insertions(+), 75 deletions(-) diff --git a/sdk/go/github/actionsEnvironmentSecret.go b/sdk/go/github/actionsEnvironmentSecret.go index 6dff1f58..7e3dadb3 100644 --- a/sdk/go/github/actionsEnvironmentSecret.go +++ b/sdk/go/github/actionsEnvironmentSecret.go @@ -70,14 +70,14 @@ import ( // return err // } // repoEnvironment, err := github.NewRepositoryEnvironment(ctx, "repoEnvironment", &github.RepositoryEnvironmentArgs{ -// Repository: *pulumi.String(repo.Name), +// Repository: pulumi.String(repo.Name), // Environment: pulumi.String("example_environment"), // }) // if err != nil { // return err // } // _, err = github.NewActionsEnvironmentSecret(ctx, "testSecret", &github.ActionsEnvironmentSecretArgs{ -// Repository: *pulumi.String(repo.Name), +// Repository: pulumi.String(repo.Name), // Environment: repoEnvironment.Environment, // SecretName: pulumi.String("test_secret_name"), // PlaintextValue: pulumi.String("%s"), diff --git a/sdk/go/github/actionsEnvironmentVariable.go b/sdk/go/github/actionsEnvironmentVariable.go index fcb02c1d..60de0093 100644 --- a/sdk/go/github/actionsEnvironmentVariable.go +++ b/sdk/go/github/actionsEnvironmentVariable.go @@ -65,14 +65,14 @@ import ( // return err // } // repoEnvironment, err := github.NewRepositoryEnvironment(ctx, "repoEnvironment", &github.RepositoryEnvironmentArgs{ -// Repository: *pulumi.String(repo.Name), +// Repository: pulumi.String(repo.Name), // Environment: pulumi.String("example_environment"), // }) // if err != nil { // return err // } // _, err = github.NewActionsEnvironmentVariable(ctx, "exampleVariable", &github.ActionsEnvironmentVariableArgs{ -// Repository: *pulumi.String(repo.Name), +// Repository: pulumi.String(repo.Name), // Environment: repoEnvironment.Environment, // VariableName: pulumi.String("example_variable_name"), // Value: pulumi.String("example_variable_value"), diff --git a/sdk/go/github/actionsOrganizationSecret.go b/sdk/go/github/actionsOrganizationSecret.go index af6066e4..e6bf3e82 100644 --- a/sdk/go/github/actionsOrganizationSecret.go +++ b/sdk/go/github/actionsOrganizationSecret.go @@ -74,7 +74,7 @@ import ( // Visibility: pulumi.String("selected"), // PlaintextValue: pulumi.Any(_var.Some_secret_string), // SelectedRepositoryIds: pulumi.IntArray{ -// *pulumi.Int(repo.RepoId), +// pulumi.Int(repo.RepoId), // }, // }) // if err != nil { @@ -85,7 +85,7 @@ import ( // Visibility: pulumi.String("selected"), // EncryptedValue: pulumi.Any(_var.Some_encrypted_secret_string), // SelectedRepositoryIds: pulumi.IntArray{ -// *pulumi.Int(repo.RepoId), +// pulumi.Int(repo.RepoId), // }, // }) // if err != nil { diff --git a/sdk/go/github/actionsOrganizationSecretRepositories.go b/sdk/go/github/actionsOrganizationSecretRepositories.go index ce7c698e..638bd41a 100644 --- a/sdk/go/github/actionsOrganizationSecretRepositories.go +++ b/sdk/go/github/actionsOrganizationSecretRepositories.go @@ -41,7 +41,7 @@ import ( // _, err = github.NewActionsOrganizationSecretRepositories(ctx, "orgSecretRepos", &github.ActionsOrganizationSecretRepositoriesArgs{ // SecretName: pulumi.String("existing_secret_name"), // SelectedRepositoryIds: pulumi.IntArray{ -// *pulumi.Int(repo.RepoId), +// pulumi.Int(repo.RepoId), // }, // }) // if err != nil { diff --git a/sdk/go/github/actionsOrganizationVariable.go b/sdk/go/github/actionsOrganizationVariable.go index 9589e1f8..04ac0989 100644 --- a/sdk/go/github/actionsOrganizationVariable.go +++ b/sdk/go/github/actionsOrganizationVariable.go @@ -69,7 +69,7 @@ import ( // Visibility: pulumi.String("selected"), // Value: pulumi.String("example_variable_value"), // SelectedRepositoryIds: pulumi.IntArray{ -// *pulumi.Int(repo.RepoId), +// pulumi.Int(repo.RepoId), // }, // }) // if err != nil { diff --git a/sdk/go/github/branchProtection.go b/sdk/go/github/branchProtection.go index a02143ec..de1bace5 100644 --- a/sdk/go/github/branchProtection.go +++ b/sdk/go/github/branchProtection.go @@ -62,7 +62,7 @@ import ( // DismissStaleReviews: pulumi.Bool(true), // RestrictDismissals: pulumi.Bool(true), // DismissalRestrictions: pulumi.StringArray{ -// *pulumi.String(exampleUser.NodeId), +// pulumi.String(exampleUser.NodeId), // exampleTeam.NodeId, // pulumi.String("/exampleuser"), // pulumi.String("exampleorganization/exampleteam"), @@ -72,14 +72,14 @@ import ( // RestrictPushes: github.BranchProtectionRestrictPushArray{ // &github.BranchProtectionRestrictPushArgs{ // PushAllowances: pulumi.StringArray{ -// *pulumi.String(exampleUser.NodeId), +// pulumi.String(exampleUser.NodeId), // pulumi.String("/exampleuser"), // pulumi.String("exampleorganization/exampleteam"), // }, // }, // }, // ForcePushBypassers: pulumi.StringArray{ -// *pulumi.String(exampleUser.NodeId), +// pulumi.String(exampleUser.NodeId), // pulumi.String("/exampleuser"), // pulumi.String("exampleorganization/exampleteam"), // }, diff --git a/sdk/go/github/codespacesOrganizationSecret.go b/sdk/go/github/codespacesOrganizationSecret.go index e56535b1..a7a2a747 100644 --- a/sdk/go/github/codespacesOrganizationSecret.go +++ b/sdk/go/github/codespacesOrganizationSecret.go @@ -74,7 +74,7 @@ import ( // Visibility: pulumi.String("selected"), // PlaintextValue: pulumi.Any(_var.Some_secret_string), // SelectedRepositoryIds: pulumi.IntArray{ -// *pulumi.Int(repo.RepoId), +// pulumi.Int(repo.RepoId), // }, // }) // if err != nil { @@ -85,7 +85,7 @@ import ( // Visibility: pulumi.String("selected"), // EncryptedValue: pulumi.Any(_var.Some_encrypted_secret_string), // SelectedRepositoryIds: pulumi.IntArray{ -// *pulumi.Int(repo.RepoId), +// pulumi.Int(repo.RepoId), // }, // }) // if err != nil { diff --git a/sdk/go/github/codespacesOrganizationSecretRepositories.go b/sdk/go/github/codespacesOrganizationSecretRepositories.go index 08778d29..47f72ac1 100644 --- a/sdk/go/github/codespacesOrganizationSecretRepositories.go +++ b/sdk/go/github/codespacesOrganizationSecretRepositories.go @@ -42,7 +42,7 @@ import ( // _, err = github.NewCodespacesOrganizationSecretRepositories(ctx, "orgSecretRepos", &github.CodespacesOrganizationSecretRepositoriesArgs{ // SecretName: pulumi.String("existing_secret_name"), // SelectedRepositoryIds: pulumi.IntArray{ -// *pulumi.Int(repo.RepoId), +// pulumi.Int(repo.RepoId), // }, // }) // if err != nil { diff --git a/sdk/go/github/codespacesUserSecret.go b/sdk/go/github/codespacesUserSecret.go index 2cdaaddc..04ea8cfd 100644 --- a/sdk/go/github/codespacesUserSecret.go +++ b/sdk/go/github/codespacesUserSecret.go @@ -37,7 +37,7 @@ import ( // SecretName: pulumi.String("example_secret_name"), // PlaintextValue: pulumi.Any(_var.Some_secret_string), // SelectedRepositoryIds: pulumi.IntArray{ -// *pulumi.Int(repo.RepoId), +// pulumi.Int(repo.RepoId), // }, // }) // if err != nil { @@ -47,7 +47,7 @@ import ( // SecretName: pulumi.String("example_secret_name"), // EncryptedValue: pulumi.Any(_var.Some_encrypted_secret_string), // SelectedRepositoryIds: pulumi.IntArray{ -// *pulumi.Int(repo.RepoId), +// pulumi.Int(repo.RepoId), // }, // }) // if err != nil { diff --git a/sdk/go/github/dependabotOrganizationSecret.go b/sdk/go/github/dependabotOrganizationSecret.go index 8b0f1cc6..f56e8c1a 100644 --- a/sdk/go/github/dependabotOrganizationSecret.go +++ b/sdk/go/github/dependabotOrganizationSecret.go @@ -74,7 +74,7 @@ import ( // Visibility: pulumi.String("selected"), // PlaintextValue: pulumi.Any(_var.Some_secret_string), // SelectedRepositoryIds: pulumi.IntArray{ -// *pulumi.Int(repo.RepoId), +// pulumi.Int(repo.RepoId), // }, // }) // if err != nil { @@ -85,7 +85,7 @@ import ( // Visibility: pulumi.String("selected"), // EncryptedValue: pulumi.Any(_var.Some_encrypted_secret_string), // SelectedRepositoryIds: pulumi.IntArray{ -// *pulumi.Int(repo.RepoId), +// pulumi.Int(repo.RepoId), // }, // }) // if err != nil { diff --git a/sdk/go/github/dependabotOrganizationSecretRepositories.go b/sdk/go/github/dependabotOrganizationSecretRepositories.go index f825582d..48ccd3f9 100644 --- a/sdk/go/github/dependabotOrganizationSecretRepositories.go +++ b/sdk/go/github/dependabotOrganizationSecretRepositories.go @@ -49,7 +49,7 @@ import ( // _, err = github.NewDependabotOrganizationSecretRepositories(ctx, "orgSecretRepos", &github.DependabotOrganizationSecretRepositoriesArgs{ // SecretName: exampleSecret.SecretName, // SelectedRepositoryIds: pulumi.IntArray{ -// *pulumi.Int(repo.RepoId), +// pulumi.Int(repo.RepoId), // }, // }) // if err != nil { diff --git a/sdk/go/github/enterpriseActionsPermissions.go b/sdk/go/github/enterpriseActionsPermissions.go index 728f1396..3795268f 100644 --- a/sdk/go/github/enterpriseActionsPermissions.go +++ b/sdk/go/github/enterpriseActionsPermissions.go @@ -43,7 +43,7 @@ import ( // return err // } // _, err = github.NewEnterpriseActionsPermissions(ctx, "test", &github.EnterpriseActionsPermissionsArgs{ -// EnterpriseId: *pulumi.String(example_enterprise.Slug), +// EnterpriseId: pulumi.String(example_enterprise.Slug), // AllowedActions: pulumi.String("selected"), // EnabledOrganizations: pulumi.String("selected"), // AllowedActionsConfig: &github.EnterpriseActionsPermissionsAllowedActionsConfigArgs{ @@ -56,7 +56,7 @@ import ( // }, // EnabledOrganizationsConfig: &github.EnterpriseActionsPermissionsEnabledOrganizationsConfigArgs{ // OrganizationIds: pulumi.IntArray{ -// *pulumi.String(example_org.Id), +// pulumi.String(example_org.Id), // }, // }, // }) diff --git a/sdk/go/github/getRelease.go b/sdk/go/github/getRelease.go index 2e9d88b7..e5fe67fe 100644 --- a/sdk/go/github/getRelease.go +++ b/sdk/go/github/getRelease.go @@ -74,7 +74,7 @@ type LookupReleaseArgs struct { type LookupReleaseResult struct { // **Deprecated**: Use `assetsUrl` resource instead // - // Deprecated: use assets_url instead + // Deprecated: use assetsUrl instead AssertsUrl string `pulumi:"assertsUrl"` // Collection of assets for the release. Each asset conforms to the following schema: Assets []GetReleaseAsset `pulumi:"assets"` @@ -163,7 +163,7 @@ func (o LookupReleaseResultOutput) ToLookupReleaseResultOutputWithContext(ctx co // **Deprecated**: Use `assetsUrl` resource instead // -// Deprecated: use assets_url instead +// Deprecated: use assetsUrl instead func (o LookupReleaseResultOutput) AssertsUrl() pulumi.StringOutput { return o.ApplyT(func(v LookupReleaseResult) string { return v.AssertsUrl }).(pulumi.StringOutput) } diff --git a/sdk/go/github/pulumiTypes.go b/sdk/go/github/pulumiTypes.go index 8f94bf20..d121e3f4 100644 --- a/sdk/go/github/pulumiTypes.go +++ b/sdk/go/github/pulumiTypes.go @@ -893,7 +893,7 @@ type BranchProtectionV3RequiredPullRequestReviews struct { DismissalTeams []string `pulumi:"dismissalTeams"` // The list of user logins with dismissal access DismissalUsers []string `pulumi:"dismissalUsers"` - // Deprecated: Use enforce_admins instead + // Deprecated: Use enforceAdmins instead IncludeAdmins *bool `pulumi:"includeAdmins"` // Require an approved review in pull requests including files with a designated code owner. Defaults to `false`. RequireCodeOwnerReviews *bool `pulumi:"requireCodeOwnerReviews"` @@ -924,7 +924,7 @@ type BranchProtectionV3RequiredPullRequestReviewsArgs struct { DismissalTeams pulumi.StringArrayInput `pulumi:"dismissalTeams"` // The list of user logins with dismissal access DismissalUsers pulumi.StringArrayInput `pulumi:"dismissalUsers"` - // Deprecated: Use enforce_admins instead + // Deprecated: Use enforceAdmins instead IncludeAdmins pulumi.BoolPtrInput `pulumi:"includeAdmins"` // Require an approved review in pull requests including files with a designated code owner. Defaults to `false`. RequireCodeOwnerReviews pulumi.BoolPtrInput `pulumi:"requireCodeOwnerReviews"` @@ -1037,7 +1037,7 @@ func (o BranchProtectionV3RequiredPullRequestReviewsOutput) DismissalUsers() pul return o.ApplyT(func(v BranchProtectionV3RequiredPullRequestReviews) []string { return v.DismissalUsers }).(pulumi.StringArrayOutput) } -// Deprecated: Use enforce_admins instead +// Deprecated: Use enforceAdmins instead func (o BranchProtectionV3RequiredPullRequestReviewsOutput) IncludeAdmins() pulumi.BoolPtrOutput { return o.ApplyT(func(v BranchProtectionV3RequiredPullRequestReviews) *bool { return v.IncludeAdmins }).(pulumi.BoolPtrOutput) } @@ -1127,7 +1127,7 @@ func (o BranchProtectionV3RequiredPullRequestReviewsPtrOutput) DismissalUsers() }).(pulumi.StringArrayOutput) } -// Deprecated: Use enforce_admins instead +// Deprecated: Use enforceAdmins instead func (o BranchProtectionV3RequiredPullRequestReviewsPtrOutput) IncludeAdmins() pulumi.BoolPtrOutput { return o.ApplyT(func(v *BranchProtectionV3RequiredPullRequestReviews) *bool { if v == nil { @@ -1350,7 +1350,7 @@ type BranchProtectionV3RequiredStatusChecks struct { // // Deprecated: GitHub is deprecating the use of `contexts`. Use a `checks` array instead. Contexts []string `pulumi:"contexts"` - // Deprecated: Use enforce_admins instead + // Deprecated: Use enforceAdmins instead IncludeAdmins *bool `pulumi:"includeAdmins"` // Require branches to be up to date before merging. Defaults to `false`. Strict *bool `pulumi:"strict"` @@ -1379,7 +1379,7 @@ type BranchProtectionV3RequiredStatusChecksArgs struct { // // Deprecated: GitHub is deprecating the use of `contexts`. Use a `checks` array instead. Contexts pulumi.StringArrayInput `pulumi:"contexts"` - // Deprecated: Use enforce_admins instead + // Deprecated: Use enforceAdmins instead IncludeAdmins pulumi.BoolPtrInput `pulumi:"includeAdmins"` // Require branches to be up to date before merging. Defaults to `false`. Strict pulumi.BoolPtrInput `pulumi:"strict"` @@ -1479,7 +1479,7 @@ func (o BranchProtectionV3RequiredStatusChecksOutput) Contexts() pulumi.StringAr return o.ApplyT(func(v BranchProtectionV3RequiredStatusChecks) []string { return v.Contexts }).(pulumi.StringArrayOutput) } -// Deprecated: Use enforce_admins instead +// Deprecated: Use enforceAdmins instead func (o BranchProtectionV3RequiredStatusChecksOutput) IncludeAdmins() pulumi.BoolPtrOutput { return o.ApplyT(func(v BranchProtectionV3RequiredStatusChecks) *bool { return v.IncludeAdmins }).(pulumi.BoolPtrOutput) } @@ -1540,7 +1540,7 @@ func (o BranchProtectionV3RequiredStatusChecksPtrOutput) Contexts() pulumi.Strin }).(pulumi.StringArrayOutput) } -// Deprecated: Use enforce_admins instead +// Deprecated: Use enforceAdmins instead func (o BranchProtectionV3RequiredStatusChecksPtrOutput) IncludeAdmins() pulumi.BoolPtrOutput { return o.ApplyT(func(v *BranchProtectionV3RequiredStatusChecks) *bool { if v == nil { diff --git a/sdk/go/github/repository.go b/sdk/go/github/repository.go index 87ba8f50..220f1865 100644 --- a/sdk/go/github/repository.go +++ b/sdk/go/github/repository.go @@ -117,7 +117,7 @@ type Repository struct { // and after a correct reference has been created for the target branch inside the repository. This means a user will have to omit this parameter from the // initial repository creation and create the target branch inside of the repository prior to setting this attribute. // - // Deprecated: Use the github_branch_default resource instead + // Deprecated: Use the BranchDefault resource instead DefaultBranch pulumi.StringOutput `pulumi:"defaultBranch"` // Automatically delete head branch after a pull request is merged. Defaults to `false`. DeleteBranchOnMerge pulumi.BoolPtrOutput `pulumi:"deleteBranchOnMerge"` @@ -245,7 +245,7 @@ type repositoryState struct { // and after a correct reference has been created for the target branch inside the repository. This means a user will have to omit this parameter from the // initial repository creation and create the target branch inside of the repository prior to setting this attribute. // - // Deprecated: Use the github_branch_default resource instead + // Deprecated: Use the BranchDefault resource instead DefaultBranch *string `pulumi:"defaultBranch"` // Automatically delete head branch after a pull request is merged. Defaults to `false`. DeleteBranchOnMerge *bool `pulumi:"deleteBranchOnMerge"` @@ -344,7 +344,7 @@ type RepositoryState struct { // and after a correct reference has been created for the target branch inside the repository. This means a user will have to omit this parameter from the // initial repository creation and create the target branch inside of the repository prior to setting this attribute. // - // Deprecated: Use the github_branch_default resource instead + // Deprecated: Use the BranchDefault resource instead DefaultBranch pulumi.StringPtrInput // Automatically delete head branch after a pull request is merged. Defaults to `false`. DeleteBranchOnMerge pulumi.BoolPtrInput @@ -447,7 +447,7 @@ type repositoryArgs struct { // and after a correct reference has been created for the target branch inside the repository. This means a user will have to omit this parameter from the // initial repository creation and create the target branch inside of the repository prior to setting this attribute. // - // Deprecated: Use the github_branch_default resource instead + // Deprecated: Use the BranchDefault resource instead DefaultBranch *string `pulumi:"defaultBranch"` // Automatically delete head branch after a pull request is merged. Defaults to `false`. DeleteBranchOnMerge *bool `pulumi:"deleteBranchOnMerge"` @@ -528,7 +528,7 @@ type RepositoryArgs struct { // and after a correct reference has been created for the target branch inside the repository. This means a user will have to omit this parameter from the // initial repository creation and create the target branch inside of the repository prior to setting this attribute. // - // Deprecated: Use the github_branch_default resource instead + // Deprecated: Use the BranchDefault resource instead DefaultBranch pulumi.StringPtrInput // Automatically delete head branch after a pull request is merged. Defaults to `false`. DeleteBranchOnMerge pulumi.BoolPtrInput @@ -718,7 +718,7 @@ func (o RepositoryOutput) AutoInit() pulumi.BoolPtrOutput { // and after a correct reference has been created for the target branch inside the repository. This means a user will have to omit this parameter from the // initial repository creation and create the target branch inside of the repository prior to setting this attribute. // -// Deprecated: Use the github_branch_default resource instead +// Deprecated: Use the BranchDefault resource instead func (o RepositoryOutput) DefaultBranch() pulumi.StringOutput { return o.ApplyT(func(v *Repository) pulumi.StringOutput { return v.DefaultBranch }).(pulumi.StringOutput) } diff --git a/sdk/go/github/repositoryEnvironment.go b/sdk/go/github/repositoryEnvironment.go index d90ed078..76d52ecf 100644 --- a/sdk/go/github/repositoryEnvironment.go +++ b/sdk/go/github/repositoryEnvironment.go @@ -48,7 +48,7 @@ import ( // Reviewers: github.RepositoryEnvironmentReviewerArray{ // &github.RepositoryEnvironmentReviewerArgs{ // Users: pulumi.IntArray{ -// *pulumi.String(current.Id), +// pulumi.String(current.Id), // }, // }, // }, diff --git a/sdk/go/github/repositoryEnvironmentDeploymentPolicy.go b/sdk/go/github/repositoryEnvironmentDeploymentPolicy.go index e42c93b8..a2fa6ed4 100644 --- a/sdk/go/github/repositoryEnvironmentDeploymentPolicy.go +++ b/sdk/go/github/repositoryEnvironmentDeploymentPolicy.go @@ -46,7 +46,7 @@ import ( // Reviewers: github.RepositoryEnvironmentReviewerArray{ // &github.RepositoryEnvironmentReviewerArgs{ // Users: pulumi.IntArray{ -// *pulumi.String(current.Id), +// pulumi.String(current.Id), // }, // }, // }, diff --git a/sdk/java/src/main/java/com/pulumi/github/Repository.java b/sdk/java/src/main/java/com/pulumi/github/Repository.java index 02c492ae..9b880917 100644 --- a/sdk/java/src/main/java/com/pulumi/github/Repository.java +++ b/sdk/java/src/main/java/com/pulumi/github/Repository.java @@ -239,10 +239,10 @@ public Output> autoInit() { * initial repository creation and create the target branch inside of the repository prior to setting this attribute. * * @deprecated - * Use the github_branch_default resource instead + * Use the github.BranchDefault resource instead * */ - @Deprecated /* Use the github_branch_default resource instead */ + @Deprecated /* Use the github.BranchDefault resource instead */ @Export(name="defaultBranch", refs={String.class}, tree="[0]") private Output defaultBranch; diff --git a/sdk/java/src/main/java/com/pulumi/github/RepositoryArgs.java b/sdk/java/src/main/java/com/pulumi/github/RepositoryArgs.java index 9a88e000..9356a073 100644 --- a/sdk/java/src/main/java/com/pulumi/github/RepositoryArgs.java +++ b/sdk/java/src/main/java/com/pulumi/github/RepositoryArgs.java @@ -146,10 +146,10 @@ public Optional> autoInit() { * initial repository creation and create the target branch inside of the repository prior to setting this attribute. * * @deprecated - * Use the github_branch_default resource instead + * Use the github.BranchDefault resource instead * */ - @Deprecated /* Use the github_branch_default resource instead */ + @Deprecated /* Use the github.BranchDefault resource instead */ @Import(name="defaultBranch") private @Nullable Output defaultBranch; @@ -159,10 +159,10 @@ public Optional> autoInit() { * initial repository creation and create the target branch inside of the repository prior to setting this attribute. * * @deprecated - * Use the github_branch_default resource instead + * Use the github.BranchDefault resource instead * */ - @Deprecated /* Use the github_branch_default resource instead */ + @Deprecated /* Use the github.BranchDefault resource instead */ public Optional> defaultBranch() { return Optional.ofNullable(this.defaultBranch); } @@ -789,10 +789,10 @@ public Builder autoInit(Boolean autoInit) { * @return builder * * @deprecated - * Use the github_branch_default resource instead + * Use the github.BranchDefault resource instead * */ - @Deprecated /* Use the github_branch_default resource instead */ + @Deprecated /* Use the github.BranchDefault resource instead */ public Builder defaultBranch(@Nullable Output defaultBranch) { $.defaultBranch = defaultBranch; return this; @@ -806,10 +806,10 @@ public Builder defaultBranch(@Nullable Output defaultBranch) { * @return builder * * @deprecated - * Use the github_branch_default resource instead + * Use the github.BranchDefault resource instead * */ - @Deprecated /* Use the github_branch_default resource instead */ + @Deprecated /* Use the github.BranchDefault resource instead */ public Builder defaultBranch(String defaultBranch) { return defaultBranch(Output.of(defaultBranch)); } diff --git a/sdk/java/src/main/java/com/pulumi/github/inputs/RepositoryState.java b/sdk/java/src/main/java/com/pulumi/github/inputs/RepositoryState.java index 9f6f29e6..0b35d321 100644 --- a/sdk/java/src/main/java/com/pulumi/github/inputs/RepositoryState.java +++ b/sdk/java/src/main/java/com/pulumi/github/inputs/RepositoryState.java @@ -147,10 +147,10 @@ public Optional> autoInit() { * initial repository creation and create the target branch inside of the repository prior to setting this attribute. * * @deprecated - * Use the github_branch_default resource instead + * Use the github.BranchDefault resource instead * */ - @Deprecated /* Use the github_branch_default resource instead */ + @Deprecated /* Use the github.BranchDefault resource instead */ @Import(name="defaultBranch") private @Nullable Output defaultBranch; @@ -160,10 +160,10 @@ public Optional> autoInit() { * initial repository creation and create the target branch inside of the repository prior to setting this attribute. * * @deprecated - * Use the github_branch_default resource instead + * Use the github.BranchDefault resource instead * */ - @Deprecated /* Use the github_branch_default resource instead */ + @Deprecated /* Use the github.BranchDefault resource instead */ public Optional> defaultBranch() { return Optional.ofNullable(this.defaultBranch); } @@ -942,10 +942,10 @@ public Builder autoInit(Boolean autoInit) { * @return builder * * @deprecated - * Use the github_branch_default resource instead + * Use the github.BranchDefault resource instead * */ - @Deprecated /* Use the github_branch_default resource instead */ + @Deprecated /* Use the github.BranchDefault resource instead */ public Builder defaultBranch(@Nullable Output defaultBranch) { $.defaultBranch = defaultBranch; return this; @@ -959,10 +959,10 @@ public Builder defaultBranch(@Nullable Output defaultBranch) { * @return builder * * @deprecated - * Use the github_branch_default resource instead + * Use the github.BranchDefault resource instead * */ - @Deprecated /* Use the github_branch_default resource instead */ + @Deprecated /* Use the github.BranchDefault resource instead */ public Builder defaultBranch(String defaultBranch) { return defaultBranch(Output.of(defaultBranch)); } diff --git a/sdk/nodejs/getRelease.ts b/sdk/nodejs/getRelease.ts index 8cc23213..bcd7281d 100644 --- a/sdk/nodejs/getRelease.ts +++ b/sdk/nodejs/getRelease.ts @@ -73,7 +73,7 @@ export interface GetReleaseResult { /** * **Deprecated**: Use `assetsUrl` resource instead * - * @deprecated use assets_url instead + * @deprecated use assetsUrl instead */ readonly assertsUrl: string; /** diff --git a/sdk/nodejs/repository.ts b/sdk/nodejs/repository.ts index 98dbefa1..52dcb5e1 100644 --- a/sdk/nodejs/repository.ts +++ b/sdk/nodejs/repository.ts @@ -126,7 +126,7 @@ export class Repository extends pulumi.CustomResource { * and after a correct reference has been created for the target branch inside the repository. This means a user will have to omit this parameter from the * initial repository creation and create the target branch inside of the repository prior to setting this attribute. * - * @deprecated Use the github_branch_default resource instead + * @deprecated Use the github.BranchDefault resource instead */ public readonly defaultBranch!: pulumi.Output; /** @@ -422,7 +422,7 @@ export interface RepositoryState { * and after a correct reference has been created for the target branch inside the repository. This means a user will have to omit this parameter from the * initial repository creation and create the target branch inside of the repository prior to setting this attribute. * - * @deprecated Use the github_branch_default resource instead + * @deprecated Use the github.BranchDefault resource instead */ defaultBranch?: pulumi.Input; /** @@ -610,7 +610,7 @@ export interface RepositoryArgs { * and after a correct reference has been created for the target branch inside the repository. This means a user will have to omit this parameter from the * initial repository creation and create the target branch inside of the repository prior to setting this attribute. * - * @deprecated Use the github_branch_default resource instead + * @deprecated Use the github.BranchDefault resource instead */ defaultBranch?: pulumi.Input; /** diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index 527a2da7..097ec9ab 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -124,7 +124,7 @@ export interface BranchProtectionV3RequiredPullRequestReviews { */ dismissalUsers?: pulumi.Input[]>; /** - * @deprecated Use enforce_admins instead + * @deprecated Use enforceAdmins instead */ includeAdmins?: pulumi.Input; /** @@ -169,7 +169,7 @@ export interface BranchProtectionV3RequiredStatusChecks { */ contexts?: pulumi.Input[]>; /** - * @deprecated Use enforce_admins instead + * @deprecated Use enforceAdmins instead */ includeAdmins?: pulumi.Input; /** diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index f8fc7698..0ddf2361 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -124,7 +124,7 @@ export interface BranchProtectionV3RequiredPullRequestReviews { */ dismissalUsers?: string[]; /** - * @deprecated Use enforce_admins instead + * @deprecated Use enforceAdmins instead */ includeAdmins?: boolean; /** @@ -169,7 +169,7 @@ export interface BranchProtectionV3RequiredStatusChecks { */ contexts?: string[]; /** - * @deprecated Use enforce_admins instead + * @deprecated Use enforceAdmins instead */ includeAdmins?: boolean; /** diff --git a/sdk/python/pulumi_github/repository.py b/sdk/python/pulumi_github/repository.py index 16f8cc86..06c3f613 100644 --- a/sdk/python/pulumi_github/repository.py +++ b/sdk/python/pulumi_github/repository.py @@ -109,8 +109,8 @@ def __init__(__self__, *, if auto_init is not None: pulumi.set(__self__, "auto_init", auto_init) if default_branch is not None: - warnings.warn("""Use the github_branch_default resource instead""", DeprecationWarning) - pulumi.log.warn("""default_branch is deprecated: Use the github_branch_default resource instead""") + warnings.warn("""Use the BranchDefault resource instead""", DeprecationWarning) + pulumi.log.warn("""default_branch is deprecated: Use the BranchDefault resource instead""") if default_branch is not None: pulumi.set(__self__, "default_branch", default_branch) if delete_branch_on_merge is not None: @@ -271,8 +271,8 @@ def default_branch(self) -> Optional[pulumi.Input[str]]: and after a correct reference has been created for the target branch inside the repository. This means a user will have to omit this parameter from the initial repository creation and create the target branch inside of the repository prior to setting this attribute. """ - warnings.warn("""Use the github_branch_default resource instead""", DeprecationWarning) - pulumi.log.warn("""default_branch is deprecated: Use the github_branch_default resource instead""") + warnings.warn("""Use the BranchDefault resource instead""", DeprecationWarning) + pulumi.log.warn("""default_branch is deprecated: Use the BranchDefault resource instead""") return pulumi.get(self, "default_branch") @@ -702,8 +702,8 @@ def __init__(__self__, *, if auto_init is not None: pulumi.set(__self__, "auto_init", auto_init) if default_branch is not None: - warnings.warn("""Use the github_branch_default resource instead""", DeprecationWarning) - pulumi.log.warn("""default_branch is deprecated: Use the github_branch_default resource instead""") + warnings.warn("""Use the BranchDefault resource instead""", DeprecationWarning) + pulumi.log.warn("""default_branch is deprecated: Use the BranchDefault resource instead""") if default_branch is not None: pulumi.set(__self__, "default_branch", default_branch) if delete_branch_on_merge is not None: @@ -884,8 +884,8 @@ def default_branch(self) -> Optional[pulumi.Input[str]]: and after a correct reference has been created for the target branch inside the repository. This means a user will have to omit this parameter from the initial repository creation and create the target branch inside of the repository prior to setting this attribute. """ - warnings.warn("""Use the github_branch_default resource instead""", DeprecationWarning) - pulumi.log.warn("""default_branch is deprecated: Use the github_branch_default resource instead""") + warnings.warn("""Use the BranchDefault resource instead""", DeprecationWarning) + pulumi.log.warn("""default_branch is deprecated: Use the BranchDefault resource instead""") return pulumi.get(self, "default_branch") @@ -1845,8 +1845,8 @@ def default_branch(self) -> pulumi.Output[str]: and after a correct reference has been created for the target branch inside the repository. This means a user will have to omit this parameter from the initial repository creation and create the target branch inside of the repository prior to setting this attribute. """ - warnings.warn("""Use the github_branch_default resource instead""", DeprecationWarning) - pulumi.log.warn("""default_branch is deprecated: Use the github_branch_default resource instead""") + warnings.warn("""Use the BranchDefault resource instead""", DeprecationWarning) + pulumi.log.warn("""default_branch is deprecated: Use the BranchDefault resource instead""") return pulumi.get(self, "default_branch")