diff --git a/provider/cmd/pulumi-resource-github/bridge-metadata.json b/provider/cmd/pulumi-resource-github/bridge-metadata.json
index b1023d48..786ffce6 100644
--- a/provider/cmd/pulumi-resource-github/bridge-metadata.json
+++ b/provider/cmd/pulumi-resource-github/bridge-metadata.json
@@ -221,6 +221,25 @@
}
}
},
+ "github_codespaces_organization_secret": {
+ "current": "github:index/codespacesOrganizationSecret:CodespacesOrganizationSecret",
+ "fields": {
+ "selected_repository_ids": {
+ "maxItemsOne": false
+ }
+ }
+ },
+ "github_codespaces_secret": {
+ "current": "github:index/codespacesSecret:CodespacesSecret"
+ },
+ "github_codespaces_user_secret": {
+ "current": "github:index/codespacesUserSecret:CodespacesUserSecret",
+ "fields": {
+ "selected_repository_ids": {
+ "maxItemsOne": false
+ }
+ }
+ },
"github_dependabot_organization_secret": {
"current": "github:index/dependabotOrganizationSecret:DependabotOrganizationSecret",
"fields": {
@@ -271,6 +290,14 @@
"github_organization_block": {
"current": "github:index/organizationBlock:OrganizationBlock"
},
+ "github_organization_custom_role": {
+ "current": "github:index/organizationCustomRole:OrganizationCustomRole",
+ "fields": {
+ "permissions": {
+ "maxItemsOne": false
+ }
+ }
+ },
"github_organization_project": {
"current": "github:index/organizationProject:OrganizationProject"
},
@@ -457,13 +484,28 @@
},
"datasources": {
"github_actions_environment_secrets": {
- "current": "github:index/getActionsEnvironmentSecrets:getActionsEnvironmentSecrets"
+ "current": "github:index/getActionsEnvironmentSecrets:getActionsEnvironmentSecrets",
+ "fields": {
+ "secrets": {
+ "maxItemsOne": false
+ }
+ }
},
"github_actions_environment_variables": {
- "current": "github:index/getActionsEnvironmentVariables:getActionsEnvironmentVariables"
+ "current": "github:index/getActionsEnvironmentVariables:getActionsEnvironmentVariables",
+ "fields": {
+ "variables": {
+ "maxItemsOne": false
+ }
+ }
},
"github_actions_organization_oidc_subject_claim_customization_template": {
- "current": "github:index/getActionsOrganizationOidcSubjectClaimCustomizationTemplate:getActionsOrganizationOidcSubjectClaimCustomizationTemplate"
+ "current": "github:index/getActionsOrganizationOidcSubjectClaimCustomizationTemplate:getActionsOrganizationOidcSubjectClaimCustomizationTemplate",
+ "fields": {
+ "include_claim_keys": {
+ "maxItemsOne": false
+ }
+ }
},
"github_actions_organization_public_key": {
"current": "github:index/getActionsOrganizationPublicKey:getActionsOrganizationPublicKey"
@@ -472,10 +514,20 @@
"current": "github:index/getActionsOrganizationRegistrationToken:getActionsOrganizationRegistrationToken"
},
"github_actions_organization_secrets": {
- "current": "github:index/getActionsOrganizationSecrets:getActionsOrganizationSecrets"
+ "current": "github:index/getActionsOrganizationSecrets:getActionsOrganizationSecrets",
+ "fields": {
+ "secrets": {
+ "maxItemsOne": false
+ }
+ }
},
"github_actions_organization_variables": {
- "current": "github:index/getActionsOrganizationVariables:getActionsOrganizationVariables"
+ "current": "github:index/getActionsOrganizationVariables:getActionsOrganizationVariables",
+ "fields": {
+ "variables": {
+ "maxItemsOne": false
+ }
+ }
},
"github_actions_public_key": {
"current": "github:index/getActionsPublicKey:getActionsPublicKey"
@@ -484,13 +536,28 @@
"current": "github:index/getActionsRegistrationToken:getActionsRegistrationToken"
},
"github_actions_repository_oidc_subject_claim_customization_template": {
- "current": "github:index/getActionsRepositoryOidcSubjectClaimCustomizationTemplate:getActionsRepositoryOidcSubjectClaimCustomizationTemplate"
+ "current": "github:index/getActionsRepositoryOidcSubjectClaimCustomizationTemplate:getActionsRepositoryOidcSubjectClaimCustomizationTemplate",
+ "fields": {
+ "include_claim_keys": {
+ "maxItemsOne": false
+ }
+ }
},
"github_actions_secrets": {
- "current": "github:index/getActionsSecrets:getActionsSecrets"
+ "current": "github:index/getActionsSecrets:getActionsSecrets",
+ "fields": {
+ "secrets": {
+ "maxItemsOne": false
+ }
+ }
},
"github_actions_variables": {
- "current": "github:index/getActionsVariables:getActionsVariables"
+ "current": "github:index/getActionsVariables:getActionsVariables",
+ "fields": {
+ "variables": {
+ "maxItemsOne": false
+ }
+ }
},
"github_app": {
"current": "github:index/getGithubApp:getGithubApp"
@@ -502,79 +569,324 @@
"current": "github:index/getBranch:getBranch"
},
"github_branch_protection_rules": {
- "current": "github:index/getBranchProtectionRules:getBranchProtectionRules"
+ "current": "github:index/getBranchProtectionRules:getBranchProtectionRules",
+ "fields": {
+ "rules": {
+ "maxItemsOne": false
+ }
+ }
+ },
+ "github_codespaces_organization_public_key": {
+ "current": "github:index/getCodespacesOrganizationPublicKey:getCodespacesOrganizationPublicKey"
+ },
+ "github_codespaces_organization_secrets": {
+ "current": "github:index/getCodespacesOrganizationSecrets:getCodespacesOrganizationSecrets",
+ "fields": {
+ "secrets": {
+ "maxItemsOne": false
+ }
+ }
+ },
+ "github_codespaces_public_key": {
+ "current": "github:index/getCodespacesPublicKey:getCodespacesPublicKey"
+ },
+ "github_codespaces_secrets": {
+ "current": "github:index/getCodespacesSecrets:getCodespacesSecrets",
+ "fields": {
+ "secrets": {
+ "maxItemsOne": false
+ }
+ }
+ },
+ "github_codespaces_user_public_key": {
+ "current": "github:index/getCodespacesUserPublicKey:getCodespacesUserPublicKey"
+ },
+ "github_codespaces_user_secrets": {
+ "current": "github:index/getCodespacesUserSecrets:getCodespacesUserSecrets",
+ "fields": {
+ "secrets": {
+ "maxItemsOne": false
+ }
+ }
},
"github_collaborators": {
- "current": "github:index/getCollaborators:getCollaborators"
+ "current": "github:index/getCollaborators:getCollaborators",
+ "fields": {
+ "collaborator": {
+ "maxItemsOne": false
+ }
+ }
},
"github_dependabot_organization_public_key": {
"current": "github:index/getDependabotOrganizationPublicKey:getDependabotOrganizationPublicKey"
},
"github_dependabot_organization_secrets": {
- "current": "github:index/getDependabotOrganizationSecrets:getDependabotOrganizationSecrets"
+ "current": "github:index/getDependabotOrganizationSecrets:getDependabotOrganizationSecrets",
+ "fields": {
+ "secrets": {
+ "maxItemsOne": false
+ }
+ }
},
"github_dependabot_public_key": {
"current": "github:index/getDependabotPublicKey:getDependabotPublicKey"
},
"github_dependabot_secrets": {
- "current": "github:index/getDependabotSecrets:getDependabotSecrets"
+ "current": "github:index/getDependabotSecrets:getDependabotSecrets",
+ "fields": {
+ "secrets": {
+ "maxItemsOne": false
+ }
+ }
},
"github_enterprise": {
"current": "github:index/getEnterprise:getEnterprise"
},
"github_external_groups": {
- "current": "github:index/getExternalGroups:getExternalGroups"
+ "current": "github:index/getExternalGroups:getExternalGroups",
+ "fields": {
+ "external_groups": {
+ "maxItemsOne": false
+ }
+ }
},
"github_ip_ranges": {
- "current": "github:index/getIpRanges:getIpRanges"
+ "current": "github:index/getIpRanges:getIpRanges",
+ "fields": {
+ "actions": {
+ "maxItemsOne": false
+ },
+ "actions_ipv4": {
+ "maxItemsOne": false
+ },
+ "actions_ipv6": {
+ "maxItemsOne": false
+ },
+ "api": {
+ "maxItemsOne": false
+ },
+ "api_ipv4": {
+ "maxItemsOne": false
+ },
+ "api_ipv6": {
+ "maxItemsOne": false
+ },
+ "dependabot": {
+ "maxItemsOne": false
+ },
+ "dependabot_ipv4": {
+ "maxItemsOne": false
+ },
+ "dependabot_ipv6": {
+ "maxItemsOne": false
+ },
+ "git": {
+ "maxItemsOne": false
+ },
+ "git_ipv4": {
+ "maxItemsOne": false
+ },
+ "git_ipv6": {
+ "maxItemsOne": false
+ },
+ "hooks": {
+ "maxItemsOne": false
+ },
+ "hooks_ipv4": {
+ "maxItemsOne": false
+ },
+ "hooks_ipv6": {
+ "maxItemsOne": false
+ },
+ "importer": {
+ "maxItemsOne": false
+ },
+ "importer_ipv4": {
+ "maxItemsOne": false
+ },
+ "importer_ipv6": {
+ "maxItemsOne": false
+ },
+ "pages": {
+ "maxItemsOne": false
+ },
+ "pages_ipv4": {
+ "maxItemsOne": false
+ },
+ "pages_ipv6": {
+ "maxItemsOne": false
+ },
+ "web": {
+ "maxItemsOne": false
+ },
+ "web_ipv4": {
+ "maxItemsOne": false
+ },
+ "web_ipv6": {
+ "maxItemsOne": false
+ }
+ }
},
"github_issue_labels": {
- "current": "github:index/getIssueLabels:getIssueLabels"
+ "current": "github:index/getIssueLabels:getIssueLabels",
+ "fields": {
+ "labels": {
+ "maxItemsOne": false
+ }
+ }
},
"github_membership": {
"current": "github:index/getMembership:getMembership"
},
"github_organization": {
- "current": "github:index/getOrganization:getOrganization"
+ "current": "github:index/getOrganization:getOrganization",
+ "fields": {
+ "members": {
+ "maxItemsOne": false
+ },
+ "repositories": {
+ "maxItemsOne": false
+ },
+ "users": {
+ "maxItemsOne": false
+ }
+ }
+ },
+ "github_organization_custom_role": {
+ "current": "github:index/getOrganizationCustomRole:getOrganizationCustomRole",
+ "fields": {
+ "permissions": {
+ "maxItemsOne": false
+ }
+ }
},
"github_organization_ip_allow_list": {
- "current": "github:index/getOrganizationIpAllowList:getOrganizationIpAllowList"
+ "current": "github:index/getOrganizationIpAllowList:getOrganizationIpAllowList",
+ "fields": {
+ "ip_allow_list": {
+ "maxItemsOne": false
+ }
+ }
},
"github_organization_team_sync_groups": {
- "current": "github:index/getOrganizationTeamSyncGroups:getOrganizationTeamSyncGroups"
+ "current": "github:index/getOrganizationTeamSyncGroups:getOrganizationTeamSyncGroups",
+ "fields": {
+ "groups": {
+ "maxItemsOne": false
+ }
+ }
},
"github_organization_teams": {
- "current": "github:index/getOrganizationTeams:getOrganizationTeams"
+ "current": "github:index/getOrganizationTeams:getOrganizationTeams",
+ "fields": {
+ "teams": {
+ "maxItemsOne": false,
+ "elem": {
+ "fields": {
+ "members": {
+ "maxItemsOne": false
+ },
+ "repositories": {
+ "maxItemsOne": false
+ }
+ }
+ }
+ }
+ }
},
"github_organization_webhooks": {
- "current": "github:index/getOrganizationWebhooks:getOrganizationWebhooks"
+ "current": "github:index/getOrganizationWebhooks:getOrganizationWebhooks",
+ "fields": {
+ "webhooks": {
+ "maxItemsOne": false
+ }
+ }
},
"github_ref": {
"current": "github:index/getRef:getRef"
},
"github_release": {
- "current": "github:index/getRelease:getRelease"
+ "current": "github:index/getRelease:getRelease",
+ "fields": {
+ "assets": {
+ "maxItemsOne": false
+ }
+ }
},
"github_repositories": {
- "current": "github:index/getRepositories:getRepositories"
+ "current": "github:index/getRepositories:getRepositories",
+ "fields": {
+ "full_names": {
+ "maxItemsOne": false
+ },
+ "names": {
+ "maxItemsOne": false
+ },
+ "repo_ids": {
+ "maxItemsOne": false
+ }
+ }
},
"github_repository": {
- "current": "github:index/getRepository:getRepository"
+ "current": "github:index/getRepository:getRepository",
+ "fields": {
+ "pages": {
+ "maxItemsOne": false,
+ "elem": {
+ "fields": {
+ "source": {
+ "maxItemsOne": false
+ }
+ }
+ }
+ },
+ "template": {
+ "maxItemsOne": true
+ },
+ "topics": {
+ "maxItemsOne": false
+ }
+ }
},
"github_repository_autolink_references": {
- "current": "github:index/getRepositoryAutolinkReferences:getRepositoryAutolinkReferences"
+ "current": "github:index/getRepositoryAutolinkReferences:getRepositoryAutolinkReferences",
+ "fields": {
+ "autolink_references": {
+ "maxItemsOne": false
+ }
+ }
},
"github_repository_branches": {
- "current": "github:index/getRepositoryBranches:getRepositoryBranches"
+ "current": "github:index/getRepositoryBranches:getRepositoryBranches",
+ "fields": {
+ "branches": {
+ "maxItemsOne": false
+ }
+ }
},
"github_repository_deploy_keys": {
- "current": "github:index/getRepositoryDeployKeys:getRepositoryDeployKeys"
+ "current": "github:index/getRepositoryDeployKeys:getRepositoryDeployKeys",
+ "fields": {
+ "keys": {
+ "maxItemsOne": false
+ }
+ }
},
"github_repository_deployment_branch_policies": {
- "current": "github:index/getRepositoryDeploymentBranchPolicies:getRepositoryDeploymentBranchPolicies"
+ "current": "github:index/getRepositoryDeploymentBranchPolicies:getRepositoryDeploymentBranchPolicies",
+ "fields": {
+ "deployment_branch_policies": {
+ "maxItemsOne": false
+ }
+ }
},
"github_repository_environments": {
- "current": "github:index/getRepositoryEnvironments:getRepositoryEnvironments"
+ "current": "github:index/getRepositoryEnvironments:getRepositoryEnvironments",
+ "fields": {
+ "environments": {
+ "maxItemsOne": false
+ }
+ }
},
"github_repository_file": {
"current": "github:index/getRepositoryFile:getRepositoryFile"
@@ -583,34 +895,107 @@
"current": "github:index/getRepositoryMilestone:getRepositoryMilestone"
},
"github_repository_pull_request": {
- "current": "github:index/getRepositoryPullRequest:getRepositoryPullRequest"
+ "current": "github:index/getRepositoryPullRequest:getRepositoryPullRequest",
+ "fields": {
+ "labels": {
+ "maxItemsOne": false
+ }
+ }
},
"github_repository_pull_requests": {
- "current": "github:index/getRepositoryPullRequests:getRepositoryPullRequests"
+ "current": "github:index/getRepositoryPullRequests:getRepositoryPullRequests",
+ "fields": {
+ "results": {
+ "maxItemsOne": false,
+ "elem": {
+ "fields": {
+ "labels": {
+ "maxItemsOne": false
+ }
+ }
+ }
+ }
+ }
},
"github_repository_teams": {
- "current": "github:index/getRepositoryTeams:getRepositoryTeams"
+ "current": "github:index/getRepositoryTeams:getRepositoryTeams",
+ "fields": {
+ "teams": {
+ "maxItemsOne": false
+ }
+ }
},
"github_repository_webhooks": {
- "current": "github:index/getRepositoryWebhooks:getRepositoryWebhooks"
+ "current": "github:index/getRepositoryWebhooks:getRepositoryWebhooks",
+ "fields": {
+ "webhooks": {
+ "maxItemsOne": false
+ }
+ }
},
"github_rest_api": {
"current": "github:index/getRestApi:getRestApi"
},
"github_ssh_keys": {
- "current": "github:index/getSshKeys:getSshKeys"
+ "current": "github:index/getSshKeys:getSshKeys",
+ "fields": {
+ "keys": {
+ "maxItemsOne": false
+ }
+ }
},
"github_team": {
- "current": "github:index/getTeam:getTeam"
+ "current": "github:index/getTeam:getTeam",
+ "fields": {
+ "members": {
+ "maxItemsOne": false
+ },
+ "repositories": {
+ "maxItemsOne": false
+ },
+ "repositories_detailed": {
+ "maxItemsOne": false
+ }
+ }
},
"github_tree": {
- "current": "github:index/getTree:getTree"
+ "current": "github:index/getTree:getTree",
+ "fields": {
+ "entries": {
+ "maxItemsOne": false
+ }
+ }
},
"github_user": {
- "current": "github:index/getUser:getUser"
+ "current": "github:index/getUser:getUser",
+ "fields": {
+ "gpg_keys": {
+ "maxItemsOne": false
+ },
+ "ssh_keys": {
+ "maxItemsOne": false
+ }
+ }
},
"github_users": {
- "current": "github:index/getUsers:getUsers"
+ "current": "github:index/getUsers:getUsers",
+ "fields": {
+ "emails": {
+ "maxItemsOne": false
+ },
+ "logins": {
+ "maxItemsOne": false
+ },
+ "node_ids": {
+ "maxItemsOne": false
+ },
+ "unknown_logins": {
+ "maxItemsOne": false
+ },
+ "usernames": {
+ "maxItemsOne": false
+ }
+ }
}
}
},
@@ -635,6 +1020,9 @@
"github:index/branchDefault:BranchDefault": "github_branch_default",
"github:index/branchProtection:BranchProtection": "github_branch_protection",
"github:index/branchProtectionV3:BranchProtectionV3": "github_branch_protection_v3",
+ "github:index/codespacesOrganizationSecret:CodespacesOrganizationSecret": "github_codespaces_organization_secret",
+ "github:index/codespacesSecret:CodespacesSecret": "github_codespaces_secret",
+ "github:index/codespacesUserSecret:CodespacesUserSecret": "github_codespaces_user_secret",
"github:index/dependabotOrganizationSecret:DependabotOrganizationSecret": "github_dependabot_organization_secret",
"github:index/dependabotOrganizationSecretRepositories:DependabotOrganizationSecretRepositories": "github_dependabot_organization_secret_repositories",
"github:index/dependabotSecret:DependabotSecret": "github_dependabot_secret",
@@ -644,6 +1032,7 @@
"github:index/issueLabel:IssueLabel": "github_issue_label",
"github:index/membership:Membership": "github_membership",
"github:index/organizationBlock:OrganizationBlock": "github_organization_block",
+ "github:index/organizationCustomRole:OrganizationCustomRole": "github_organization_custom_role",
"github:index/organizationProject:OrganizationProject": "github_organization_project",
"github:index/organizationSecurityManager:OrganizationSecurityManager": "github_organization_security_manager",
"github:index/organizationSettings:OrganizationSettings": "github_organization_settings",
@@ -690,6 +1079,12 @@
"github:index/getAppToken:getAppToken": "github_app_token",
"github:index/getBranch:getBranch": "github_branch",
"github:index/getBranchProtectionRules:getBranchProtectionRules": "github_branch_protection_rules",
+ "github:index/getCodespacesOrganizationPublicKey:getCodespacesOrganizationPublicKey": "github_codespaces_organization_public_key",
+ "github:index/getCodespacesOrganizationSecrets:getCodespacesOrganizationSecrets": "github_codespaces_organization_secrets",
+ "github:index/getCodespacesPublicKey:getCodespacesPublicKey": "github_codespaces_public_key",
+ "github:index/getCodespacesSecrets:getCodespacesSecrets": "github_codespaces_secrets",
+ "github:index/getCodespacesUserPublicKey:getCodespacesUserPublicKey": "github_codespaces_user_public_key",
+ "github:index/getCodespacesUserSecrets:getCodespacesUserSecrets": "github_codespaces_user_secrets",
"github:index/getCollaborators:getCollaborators": "github_collaborators",
"github:index/getDependabotOrganizationPublicKey:getDependabotOrganizationPublicKey": "github_dependabot_organization_public_key",
"github:index/getDependabotOrganizationSecrets:getDependabotOrganizationSecrets": "github_dependabot_organization_secrets",
@@ -702,6 +1097,7 @@
"github:index/getIssueLabels:getIssueLabels": "github_issue_labels",
"github:index/getMembership:getMembership": "github_membership",
"github:index/getOrganization:getOrganization": "github_organization",
+ "github:index/getOrganizationCustomRole:getOrganizationCustomRole": "github_organization_custom_role",
"github:index/getOrganizationIpAllowList:getOrganizationIpAllowList": "github_organization_ip_allow_list",
"github:index/getOrganizationTeamSyncGroups:getOrganizationTeamSyncGroups": "github_organization_team_sync_groups",
"github:index/getOrganizationTeams:getOrganizationTeams": "github_organization_teams",
@@ -911,6 +1307,29 @@
"requiredPullRequestReviews": "required_pull_request_reviews",
"requiredStatusChecks": "required_status_checks"
},
+ "github:index/codespacesOrganizationSecret:CodespacesOrganizationSecret": {
+ "createdAt": "created_at",
+ "encryptedValue": "encrypted_value",
+ "plaintextValue": "plaintext_value",
+ "secretName": "secret_name",
+ "selectedRepositoryIds": "selected_repository_ids",
+ "updatedAt": "updated_at"
+ },
+ "github:index/codespacesSecret:CodespacesSecret": {
+ "createdAt": "created_at",
+ "encryptedValue": "encrypted_value",
+ "plaintextValue": "plaintext_value",
+ "secretName": "secret_name",
+ "updatedAt": "updated_at"
+ },
+ "github:index/codespacesUserSecret:CodespacesUserSecret": {
+ "createdAt": "created_at",
+ "encryptedValue": "encrypted_value",
+ "plaintextValue": "plaintext_value",
+ "secretName": "secret_name",
+ "selectedRepositoryIds": "selected_repository_ids",
+ "updatedAt": "updated_at"
+ },
"github:index/dependabotOrganizationSecret:DependabotOrganizationSecret": {
"createdAt": "created_at",
"encryptedValue": "encrypted_value",
@@ -999,6 +1418,30 @@
"installationId": "installation_id",
"pemFile": "pem_file"
},
+ "github:index/getCodespacesOrganizationPublicKey:getCodespacesOrganizationPublicKey": {
+ "keyId": "key_id"
+ },
+ "github:index/getCodespacesOrganizationSecretsSecret:getCodespacesOrganizationSecretsSecret": {
+ "createdAt": "created_at",
+ "updatedAt": "updated_at"
+ },
+ "github:index/getCodespacesPublicKey:getCodespacesPublicKey": {
+ "keyId": "key_id"
+ },
+ "github:index/getCodespacesSecrets:getCodespacesSecrets": {
+ "fullName": "full_name"
+ },
+ "github:index/getCodespacesSecretsSecret:getCodespacesSecretsSecret": {
+ "createdAt": "created_at",
+ "updatedAt": "updated_at"
+ },
+ "github:index/getCodespacesUserPublicKey:getCodespacesUserPublicKey": {
+ "keyId": "key_id"
+ },
+ "github:index/getCodespacesUserSecretsSecret:getCodespacesUserSecretsSecret": {
+ "createdAt": "created_at",
+ "updatedAt": "updated_at"
+ },
"github:index/getCollaborators:getCollaborators": {
"collaborators": "collaborator"
},
@@ -1072,6 +1515,9 @@
"github:index/getOrganization:getOrganization": {
"nodeId": "node_id"
},
+ "github:index/getOrganizationCustomRole:getOrganizationCustomRole": {
+ "baseRole": "base_role"
+ },
"github:index/getOrganizationIpAllowList:getOrganizationIpAllowList": {
"ipAllowLists": "ip_allow_list"
},
@@ -1251,6 +1697,9 @@
"issueId": "issue_id",
"milestoneNumber": "milestone_number"
},
+ "github:index/organizationCustomRole:OrganizationCustomRole": {
+ "baseRole": "base_role"
+ },
"github:index/organizationSecurityManager:OrganizationSecurityManager": {
"teamSlug": "team_slug"
},
diff --git a/provider/cmd/pulumi-resource-github/schema.json b/provider/cmd/pulumi-resource-github/schema.json
index d87d2b67..1ab3f5c8 100644
--- a/provider/cmd/pulumi-resource-github/schema.json
+++ b/provider/cmd/pulumi-resource-github/schema.json
@@ -887,6 +887,97 @@
}
}
},
+ "github:index/getCodespacesOrganizationSecretsSecret:getCodespacesOrganizationSecretsSecret": {
+ "properties": {
+ "createdAt": {
+ "type": "string",
+ "description": "Timestamp of the secret creation\n"
+ },
+ "name": {
+ "type": "string",
+ "description": "Secret name\n"
+ },
+ "updatedAt": {
+ "type": "string",
+ "description": "Timestamp of the secret last update\n"
+ },
+ "visibility": {
+ "type": "string",
+ "description": "Secret visibility\n"
+ }
+ },
+ "type": "object",
+ "required": [
+ "createdAt",
+ "name",
+ "updatedAt",
+ "visibility"
+ ],
+ "language": {
+ "nodejs": {
+ "requiredInputs": []
+ }
+ }
+ },
+ "github:index/getCodespacesSecretsSecret:getCodespacesSecretsSecret": {
+ "properties": {
+ "createdAt": {
+ "type": "string",
+ "description": "Timestamp of the secret creation\n"
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the repository.\n"
+ },
+ "updatedAt": {
+ "type": "string",
+ "description": "Timestamp of the secret last update\n"
+ }
+ },
+ "type": "object",
+ "required": [
+ "createdAt",
+ "name",
+ "updatedAt"
+ ],
+ "language": {
+ "nodejs": {
+ "requiredInputs": []
+ }
+ }
+ },
+ "github:index/getCodespacesUserSecretsSecret:getCodespacesUserSecretsSecret": {
+ "properties": {
+ "createdAt": {
+ "type": "string",
+ "description": "Timestamp of the secret creation\n"
+ },
+ "name": {
+ "type": "string",
+ "description": "Secret name\n"
+ },
+ "updatedAt": {
+ "type": "string",
+ "description": "Timestamp of the secret last update\n"
+ },
+ "visibility": {
+ "type": "string",
+ "description": "Secret visibility\n"
+ }
+ },
+ "type": "object",
+ "required": [
+ "createdAt",
+ "name",
+ "updatedAt",
+ "visibility"
+ ],
+ "language": {
+ "nodejs": {
+ "requiredInputs": []
+ }
+ }
+ },
"github:index/getCollaboratorsCollaborator:getCollaboratorsCollaborator": {
"properties": {
"eventsUrl": {
@@ -3596,6 +3687,333 @@
"type": "object"
}
},
+ "github:index/codespacesOrganizationSecret:CodespacesOrganizationSecret": {
+ "description": "{{% examples %}}\n## Example Usage\n{{% example %}}\n\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/v5/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\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/v5/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{{% /example %}}\n{{% /examples %}}\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\n NOTEthe implementation is limited in that it won't fetch the value of the `plaintext_value` or `encrypted_value` fields when importing. You may need to ignore changes for these as a workaround. ",
+ "properties": {
+ "createdAt": {
+ "type": "string",
+ "description": "Date of codespaces_secret creation.\n"
+ },
+ "encryptedValue": {
+ "type": "string",
+ "description": "Encrypted value of the secret using the GitHub public key in Base64 format.\n",
+ "secret": true
+ },
+ "plaintextValue": {
+ "type": "string",
+ "description": "Plaintext value of the secret to be encrypted\n",
+ "secret": true
+ },
+ "secretName": {
+ "type": "string",
+ "description": "Name of the secret\n"
+ },
+ "selectedRepositoryIds": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ },
+ "description": "An array of repository ids that can access the organization secret.\n"
+ },
+ "updatedAt": {
+ "type": "string",
+ "description": "Date of codespaces_secret update.\n"
+ },
+ "visibility": {
+ "type": "string",
+ "description": "Configures the access that repositories have to the organization secret.\nMust be one of `all`, `private`, `selected`. `selected_repository_ids` is required if set to `selected`.\n"
+ }
+ },
+ "required": [
+ "createdAt",
+ "secretName",
+ "updatedAt",
+ "visibility"
+ ],
+ "inputProperties": {
+ "encryptedValue": {
+ "type": "string",
+ "description": "Encrypted value of the secret using the GitHub public key in Base64 format.\n",
+ "secret": true,
+ "willReplaceOnChanges": true
+ },
+ "plaintextValue": {
+ "type": "string",
+ "description": "Plaintext value of the secret to be encrypted\n",
+ "secret": true,
+ "willReplaceOnChanges": true
+ },
+ "secretName": {
+ "type": "string",
+ "description": "Name of the secret\n",
+ "willReplaceOnChanges": true
+ },
+ "selectedRepositoryIds": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ },
+ "description": "An array of repository ids that can access the organization secret.\n"
+ },
+ "visibility": {
+ "type": "string",
+ "description": "Configures the access that repositories have to the organization secret.\nMust be one of `all`, `private`, `selected`. `selected_repository_ids` is required if set to `selected`.\n",
+ "willReplaceOnChanges": true
+ }
+ },
+ "requiredInputs": [
+ "secretName",
+ "visibility"
+ ],
+ "stateInputs": {
+ "description": "Input properties used for looking up and filtering CodespacesOrganizationSecret resources.\n",
+ "properties": {
+ "createdAt": {
+ "type": "string",
+ "description": "Date of codespaces_secret creation.\n"
+ },
+ "encryptedValue": {
+ "type": "string",
+ "description": "Encrypted value of the secret using the GitHub public key in Base64 format.\n",
+ "secret": true,
+ "willReplaceOnChanges": true
+ },
+ "plaintextValue": {
+ "type": "string",
+ "description": "Plaintext value of the secret to be encrypted\n",
+ "secret": true,
+ "willReplaceOnChanges": true
+ },
+ "secretName": {
+ "type": "string",
+ "description": "Name of the secret\n",
+ "willReplaceOnChanges": true
+ },
+ "selectedRepositoryIds": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ },
+ "description": "An array of repository ids that can access the organization secret.\n"
+ },
+ "updatedAt": {
+ "type": "string",
+ "description": "Date of codespaces_secret update.\n"
+ },
+ "visibility": {
+ "type": "string",
+ "description": "Configures the access that repositories have to the organization secret.\nMust be one of `all`, `private`, `selected`. `selected_repository_ids` is required if set to `selected`.\n",
+ "willReplaceOnChanges": true
+ }
+ },
+ "type": "object"
+ }
+ },
+ "github:index/codespacesSecret:CodespacesSecret": {
+ "description": "{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst examplePublicKey = github.getCodespacesPublicKey({\n repository: \"example_repository\",\n});\nconst exampleSecretCodespacesSecret = new github.CodespacesSecret(\"exampleSecretCodespacesSecret\", {\n repository: \"example_repository\",\n secretName: \"example_secret_name\",\n plaintextValue: _var.some_secret_string,\n});\nconst exampleSecretIndex_codespacesSecretCodespacesSecret = new github.CodespacesSecret(\"exampleSecretIndex/codespacesSecretCodespacesSecret\", {\n repository: \"example_repository\",\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_public_key = github.get_codespaces_public_key(repository=\"example_repository\")\nexample_secret_codespaces_secret = github.CodespacesSecret(\"exampleSecretCodespacesSecret\",\n repository=\"example_repository\",\n secret_name=\"example_secret_name\",\n plaintext_value=var[\"some_secret_string\"])\nexample_secret_index_codespaces_secret_codespaces_secret = github.CodespacesSecret(\"exampleSecretIndex/codespacesSecretCodespacesSecret\",\n repository=\"example_repository\",\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 examplePublicKey = Github.GetCodespacesPublicKey.Invoke(new()\n {\n Repository = \"example_repository\",\n });\n\n var exampleSecretCodespacesSecret = new Github.CodespacesSecret(\"exampleSecretCodespacesSecret\", new()\n {\n Repository = \"example_repository\",\n SecretName = \"example_secret_name\",\n PlaintextValue = @var.Some_secret_string,\n });\n\n var exampleSecretIndex_codespacesSecretCodespacesSecret = new Github.CodespacesSecret(\"exampleSecretIndex/codespacesSecretCodespacesSecret\", new()\n {\n Repository = \"example_repository\",\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/v5/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.GetCodespacesPublicKey(ctx, \u0026github.GetCodespacesPublicKeyArgs{\n\t\t\tRepository: \"example_repository\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewCodespacesSecret(ctx, \"exampleSecretCodespacesSecret\", \u0026github.CodespacesSecretArgs{\n\t\t\tRepository: pulumi.String(\"example_repository\"),\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.NewCodespacesSecret(ctx, \"exampleSecretIndex/codespacesSecretCodespacesSecret\", \u0026github.CodespacesSecretArgs{\n\t\t\tRepository: pulumi.String(\"example_repository\"),\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.GithubFunctions;\nimport com.pulumi.github.inputs.GetCodespacesPublicKeyArgs;\nimport com.pulumi.github.CodespacesSecret;\nimport com.pulumi.github.CodespacesSecretArgs;\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 examplePublicKey = GithubFunctions.getCodespacesPublicKey(GetCodespacesPublicKeyArgs.builder()\n .repository(\"example_repository\")\n .build());\n\n var exampleSecretCodespacesSecret = new CodespacesSecret(\"exampleSecretCodespacesSecret\", CodespacesSecretArgs.builder() \n .repository(\"example_repository\")\n .secretName(\"example_secret_name\")\n .plaintextValue(var_.some_secret_string())\n .build());\n\n var exampleSecretIndex_codespacesSecretCodespacesSecret = new CodespacesSecret(\"exampleSecretIndex/codespacesSecretCodespacesSecret\", CodespacesSecretArgs.builder() \n .repository(\"example_repository\")\n .secretName(\"example_secret_name\")\n .encryptedValue(var_.some_encrypted_secret_string())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleSecretCodespacesSecret:\n type: github:CodespacesSecret\n properties:\n repository: example_repository\n secretName: example_secret_name\n plaintextValue: ${var.some_secret_string}\n exampleSecretIndex/codespacesSecretCodespacesSecret:\n type: github:CodespacesSecret\n properties:\n repository: example_repository\n secretName: example_secret_name\n encryptedValue: ${var.some_encrypted_secret_string}\nvariables:\n examplePublicKey:\n fn::invoke:\n Function: github:getCodespacesPublicKey\n Arguments:\n repository: example_repository\n```\n{{% /example %}}\n{{% /examples %}}",
+ "properties": {
+ "createdAt": {
+ "type": "string",
+ "description": "Date of actions_secret creation.\n"
+ },
+ "encryptedValue": {
+ "type": "string",
+ "description": "Encrypted value of the secret using the GitHub public key in Base64 format.\n",
+ "secret": true
+ },
+ "plaintextValue": {
+ "type": "string",
+ "description": "Plaintext value of the secret to be encrypted\n",
+ "secret": true
+ },
+ "repository": {
+ "type": "string",
+ "description": "Name of the repository\n"
+ },
+ "secretName": {
+ "type": "string",
+ "description": "Name of the secret\n"
+ },
+ "updatedAt": {
+ "type": "string",
+ "description": "Date of actions_secret update.\n"
+ }
+ },
+ "required": [
+ "createdAt",
+ "repository",
+ "secretName",
+ "updatedAt"
+ ],
+ "inputProperties": {
+ "encryptedValue": {
+ "type": "string",
+ "description": "Encrypted value of the secret using the GitHub public key in Base64 format.\n",
+ "secret": true,
+ "willReplaceOnChanges": true
+ },
+ "plaintextValue": {
+ "type": "string",
+ "description": "Plaintext value of the secret to be encrypted\n",
+ "secret": true,
+ "willReplaceOnChanges": true
+ },
+ "repository": {
+ "type": "string",
+ "description": "Name of the repository\n"
+ },
+ "secretName": {
+ "type": "string",
+ "description": "Name of the secret\n",
+ "willReplaceOnChanges": true
+ }
+ },
+ "requiredInputs": [
+ "repository",
+ "secretName"
+ ],
+ "stateInputs": {
+ "description": "Input properties used for looking up and filtering CodespacesSecret resources.\n",
+ "properties": {
+ "createdAt": {
+ "type": "string",
+ "description": "Date of actions_secret creation.\n"
+ },
+ "encryptedValue": {
+ "type": "string",
+ "description": "Encrypted value of the secret using the GitHub public key in Base64 format.\n",
+ "secret": true,
+ "willReplaceOnChanges": true
+ },
+ "plaintextValue": {
+ "type": "string",
+ "description": "Plaintext value of the secret to be encrypted\n",
+ "secret": true,
+ "willReplaceOnChanges": true
+ },
+ "repository": {
+ "type": "string",
+ "description": "Name of the repository\n"
+ },
+ "secretName": {
+ "type": "string",
+ "description": "Name of the secret\n",
+ "willReplaceOnChanges": true
+ },
+ "updatedAt": {
+ "type": "string",
+ "description": "Date of actions_secret update.\n"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "github:index/codespacesUserSecret:CodespacesUserSecret": {
+ "description": "{{% examples %}}\n## Example Usage\n{{% example %}}\n\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/v5/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{{% /example %}}\n{{% /examples %}}\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\n NOTEthe implementation is limited in that it won't fetch the value of the `plaintext_value` or `encrypted_value` fields when importing. You may need to ignore changes for these as a workaround. ",
+ "properties": {
+ "createdAt": {
+ "type": "string",
+ "description": "Date of codespaces_secret creation.\n"
+ },
+ "encryptedValue": {
+ "type": "string",
+ "description": "Encrypted value of the secret using the GitHub public key in Base64 format.\n",
+ "secret": true
+ },
+ "plaintextValue": {
+ "type": "string",
+ "description": "Plaintext value of the secret to be encrypted\n",
+ "secret": true
+ },
+ "secretName": {
+ "type": "string",
+ "description": "Name of the secret\n"
+ },
+ "selectedRepositoryIds": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ },
+ "description": "An array of repository ids that can access the user secret.\n"
+ },
+ "updatedAt": {
+ "type": "string",
+ "description": "Date of codespaces_secret update.\n"
+ }
+ },
+ "required": [
+ "createdAt",
+ "secretName",
+ "updatedAt"
+ ],
+ "inputProperties": {
+ "encryptedValue": {
+ "type": "string",
+ "description": "Encrypted value of the secret using the GitHub public key in Base64 format.\n",
+ "secret": true,
+ "willReplaceOnChanges": true
+ },
+ "plaintextValue": {
+ "type": "string",
+ "description": "Plaintext value of the secret to be encrypted\n",
+ "secret": true,
+ "willReplaceOnChanges": true
+ },
+ "secretName": {
+ "type": "string",
+ "description": "Name of the secret\n",
+ "willReplaceOnChanges": true
+ },
+ "selectedRepositoryIds": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ },
+ "description": "An array of repository ids that can access the user secret.\n"
+ }
+ },
+ "requiredInputs": [
+ "secretName"
+ ],
+ "stateInputs": {
+ "description": "Input properties used for looking up and filtering CodespacesUserSecret resources.\n",
+ "properties": {
+ "createdAt": {
+ "type": "string",
+ "description": "Date of codespaces_secret creation.\n"
+ },
+ "encryptedValue": {
+ "type": "string",
+ "description": "Encrypted value of the secret using the GitHub public key in Base64 format.\n",
+ "secret": true,
+ "willReplaceOnChanges": true
+ },
+ "plaintextValue": {
+ "type": "string",
+ "description": "Plaintext value of the secret to be encrypted\n",
+ "secret": true,
+ "willReplaceOnChanges": true
+ },
+ "secretName": {
+ "type": "string",
+ "description": "Name of the secret\n",
+ "willReplaceOnChanges": true
+ },
+ "selectedRepositoryIds": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ },
+ "description": "An array of repository ids that can access the user secret.\n"
+ },
+ "updatedAt": {
+ "type": "string",
+ "description": "Date of codespaces_secret update.\n"
+ }
+ },
+ "type": "object"
+ }
+ },
"github:index/dependabotOrganizationSecret:DependabotOrganizationSecret": {
"properties": {
"createdAt": {
@@ -4297,41 +4715,120 @@
"type": "object"
}
},
- "github:index/organizationBlock:OrganizationBlock": {
- "description": "This resource allows you to create and manage blocks for GitHub organizations.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = new github.OrganizationBlock(\"example\", {username: \"paultyng\"});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.OrganizationBlock(\"example\", username=\"paultyng\")\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 = new Github.OrganizationBlock(\"example\", new()\n {\n Username = \"paultyng\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v5/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.NewOrganizationBlock(ctx, \"example\", \u0026github.OrganizationBlockArgs{\n\t\t\tUsername: pulumi.String(\"paultyng\"),\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.OrganizationBlock;\nimport com.pulumi.github.OrganizationBlockArgs;\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 example = new OrganizationBlock(\"example\", OrganizationBlockArgs.builder() \n .username(\"paultyng\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: github:OrganizationBlock\n properties:\n username: paultyng\n```\n{{% /example %}}\n{{% /examples %}}",
+ "github:index/organizationBlock:OrganizationBlock": {
+ "description": "This resource allows you to create and manage blocks for GitHub organizations.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = new github.OrganizationBlock(\"example\", {username: \"paultyng\"});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.OrganizationBlock(\"example\", username=\"paultyng\")\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 = new Github.OrganizationBlock(\"example\", new()\n {\n Username = \"paultyng\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v5/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.NewOrganizationBlock(ctx, \"example\", \u0026github.OrganizationBlockArgs{\n\t\t\tUsername: pulumi.String(\"paultyng\"),\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.OrganizationBlock;\nimport com.pulumi.github.OrganizationBlockArgs;\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 example = new OrganizationBlock(\"example\", OrganizationBlockArgs.builder() \n .username(\"paultyng\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: github:OrganizationBlock\n properties:\n username: paultyng\n```\n{{% /example %}}\n{{% /examples %}}",
+ "properties": {
+ "etag": {
+ "type": "string"
+ },
+ "username": {
+ "type": "string",
+ "description": "The name of the user to block.\n"
+ }
+ },
+ "required": [
+ "etag",
+ "username"
+ ],
+ "inputProperties": {
+ "username": {
+ "type": "string",
+ "description": "The name of the user to block.\n",
+ "willReplaceOnChanges": true
+ }
+ },
+ "requiredInputs": [
+ "username"
+ ],
+ "stateInputs": {
+ "description": "Input properties used for looking up and filtering OrganizationBlock resources.\n",
+ "properties": {
+ "etag": {
+ "type": "string"
+ },
+ "username": {
+ "type": "string",
+ "description": "The name of the user to block.\n",
+ "willReplaceOnChanges": true
+ }
+ },
+ "type": "object"
+ }
+ },
+ "github:index/organizationCustomRole:OrganizationCustomRole": {
+ "description": "This resource allows you to create and manage custom roles in a GitHub Organization for use in repositories. \n\n\u003e Note: Custom roles are currently only available in GitHub Enterprise Cloud.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = new github.OrganizationCustomRole(\"example\", {\n baseRole: \"read\",\n description: \"Example custom role that uses the read role as its base\",\n permissions: [\n \"add_assignee\",\n \"add_label\",\n \"bypass_branch_protection\",\n \"close_issue\",\n \"close_pull_request\",\n \"mark_as_duplicate\",\n \"create_tag\",\n \"delete_issue\",\n \"delete_tag\",\n \"manage_deploy_keys\",\n \"push_protected_branch\",\n \"read_code_scanning\",\n \"reopen_issue\",\n \"reopen_pull_request\",\n \"request_pr_review\",\n \"resolve_dependabot_alerts\",\n \"resolve_secret_scanning_alerts\",\n \"view_secret_scanning_alerts\",\n \"write_code_scanning\",\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.OrganizationCustomRole(\"example\",\n base_role=\"read\",\n description=\"Example custom role that uses the read role as its base\",\n permissions=[\n \"add_assignee\",\n \"add_label\",\n \"bypass_branch_protection\",\n \"close_issue\",\n \"close_pull_request\",\n \"mark_as_duplicate\",\n \"create_tag\",\n \"delete_issue\",\n \"delete_tag\",\n \"manage_deploy_keys\",\n \"push_protected_branch\",\n \"read_code_scanning\",\n \"reopen_issue\",\n \"reopen_pull_request\",\n \"request_pr_review\",\n \"resolve_dependabot_alerts\",\n \"resolve_secret_scanning_alerts\",\n \"view_secret_scanning_alerts\",\n \"write_code_scanning\",\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 = new Github.OrganizationCustomRole(\"example\", new()\n {\n BaseRole = \"read\",\n Description = \"Example custom role that uses the read role as its base\",\n Permissions = new[]\n {\n \"add_assignee\",\n \"add_label\",\n \"bypass_branch_protection\",\n \"close_issue\",\n \"close_pull_request\",\n \"mark_as_duplicate\",\n \"create_tag\",\n \"delete_issue\",\n \"delete_tag\",\n \"manage_deploy_keys\",\n \"push_protected_branch\",\n \"read_code_scanning\",\n \"reopen_issue\",\n \"reopen_pull_request\",\n \"request_pr_review\",\n \"resolve_dependabot_alerts\",\n \"resolve_secret_scanning_alerts\",\n \"view_secret_scanning_alerts\",\n \"write_code_scanning\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v5/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.NewOrganizationCustomRole(ctx, \"example\", \u0026github.OrganizationCustomRoleArgs{\n\t\t\tBaseRole: pulumi.String(\"read\"),\n\t\t\tDescription: pulumi.String(\"Example custom role that uses the read role as its base\"),\n\t\t\tPermissions: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"add_assignee\"),\n\t\t\t\tpulumi.String(\"add_label\"),\n\t\t\t\tpulumi.String(\"bypass_branch_protection\"),\n\t\t\t\tpulumi.String(\"close_issue\"),\n\t\t\t\tpulumi.String(\"close_pull_request\"),\n\t\t\t\tpulumi.String(\"mark_as_duplicate\"),\n\t\t\t\tpulumi.String(\"create_tag\"),\n\t\t\t\tpulumi.String(\"delete_issue\"),\n\t\t\t\tpulumi.String(\"delete_tag\"),\n\t\t\t\tpulumi.String(\"manage_deploy_keys\"),\n\t\t\t\tpulumi.String(\"push_protected_branch\"),\n\t\t\t\tpulumi.String(\"read_code_scanning\"),\n\t\t\t\tpulumi.String(\"reopen_issue\"),\n\t\t\t\tpulumi.String(\"reopen_pull_request\"),\n\t\t\t\tpulumi.String(\"request_pr_review\"),\n\t\t\t\tpulumi.String(\"resolve_dependabot_alerts\"),\n\t\t\t\tpulumi.String(\"resolve_secret_scanning_alerts\"),\n\t\t\t\tpulumi.String(\"view_secret_scanning_alerts\"),\n\t\t\t\tpulumi.String(\"write_code_scanning\"),\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.OrganizationCustomRole;\nimport com.pulumi.github.OrganizationCustomRoleArgs;\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 example = new OrganizationCustomRole(\"example\", OrganizationCustomRoleArgs.builder() \n .baseRole(\"read\")\n .description(\"Example custom role that uses the read role as its base\")\n .permissions( \n \"add_assignee\",\n \"add_label\",\n \"bypass_branch_protection\",\n \"close_issue\",\n \"close_pull_request\",\n \"mark_as_duplicate\",\n \"create_tag\",\n \"delete_issue\",\n \"delete_tag\",\n \"manage_deploy_keys\",\n \"push_protected_branch\",\n \"read_code_scanning\",\n \"reopen_issue\",\n \"reopen_pull_request\",\n \"request_pr_review\",\n \"resolve_dependabot_alerts\",\n \"resolve_secret_scanning_alerts\",\n \"view_secret_scanning_alerts\",\n \"write_code_scanning\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: github:OrganizationCustomRole\n properties:\n baseRole: read\n description: Example custom role that uses the read role as its base\n permissions:\n - add_assignee\n - add_label\n - bypass_branch_protection\n - close_issue\n - close_pull_request\n - mark_as_duplicate\n - create_tag\n - delete_issue\n - delete_tag\n - manage_deploy_keys\n - push_protected_branch\n - read_code_scanning\n - reopen_issue\n - reopen_pull_request\n - request_pr_review\n - resolve_dependabot_alerts\n - resolve_secret_scanning_alerts\n - view_secret_scanning_alerts\n - write_code_scanning\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nCustom roles can be imported using the `id` of the role. The `id` of the custom role can be found using the [list custom roles in an organization](https://docs.github.com/en/enterprise-cloud@latest/rest/orgs/custom-roles#list-custom-repository-roles-in-an-organization) API.\n\n```sh\n $ pulumi import github:index/organizationCustomRole:OrganizationCustomRole example 1234\n```\n\n ",
"properties": {
- "etag": {
- "type": "string"
+ "baseRole": {
+ "type": "string",
+ "description": "The system role from which the role inherits permissions. Can be one of: `read`, `triage`, `write`, or `maintain`.\n"
},
- "username": {
+ "description": {
"type": "string",
- "description": "The name of the user to block.\n"
+ "description": "The description for the custom role.\n"
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the custom role.\n"
+ },
+ "permissions": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "A list of additional permissions included in this role. Must have a minimum of 1 additional permission. The list of available permissions can be found using the [list repository fine-grained permissions for an organization](https://docs.github.com/en/enterprise-cloud@latest/rest/orgs/custom-roles?apiVersion=2022-11-28#list-repository-fine-grained-permissions-for-an-organization) API.\n"
}
},
"required": [
- "etag",
- "username"
+ "baseRole",
+ "name",
+ "permissions"
],
"inputProperties": {
- "username": {
+ "baseRole": {
"type": "string",
- "description": "The name of the user to block.\n",
- "willReplaceOnChanges": true
+ "description": "The system role from which the role inherits permissions. Can be one of: `read`, `triage`, `write`, or `maintain`.\n"
+ },
+ "description": {
+ "type": "string",
+ "description": "The description for the custom role.\n"
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the custom role.\n"
+ },
+ "permissions": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "A list of additional permissions included in this role. Must have a minimum of 1 additional permission. The list of available permissions can be found using the [list repository fine-grained permissions for an organization](https://docs.github.com/en/enterprise-cloud@latest/rest/orgs/custom-roles?apiVersion=2022-11-28#list-repository-fine-grained-permissions-for-an-organization) API.\n"
}
},
"requiredInputs": [
- "username"
+ "baseRole",
+ "permissions"
],
"stateInputs": {
- "description": "Input properties used for looking up and filtering OrganizationBlock resources.\n",
+ "description": "Input properties used for looking up and filtering OrganizationCustomRole resources.\n",
"properties": {
- "etag": {
- "type": "string"
+ "baseRole": {
+ "type": "string",
+ "description": "The system role from which the role inherits permissions. Can be one of: `read`, `triage`, `write`, or `maintain`.\n"
},
- "username": {
+ "description": {
"type": "string",
- "description": "The name of the user to block.\n",
- "willReplaceOnChanges": true
+ "description": "The description for the custom role.\n"
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the custom role.\n"
+ },
+ "permissions": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "A list of additional permissions included in this role. Must have a minimum of 1 additional permission. The list of available permissions can be found using the [list repository fine-grained permissions for an organization](https://docs.github.com/en/enterprise-cloud@latest/rest/orgs/custom-roles?apiVersion=2022-11-28#list-repository-fine-grained-permissions-for-an-organization) API.\n"
}
},
"type": "object"
@@ -8086,6 +8583,196 @@
]
}
},
+ "github:index/getCodespacesOrganizationPublicKey:getCodespacesOrganizationPublicKey": {
+ "description": "Use this data source to retrieve information about a GitHub Codespaces Organization public key. This data source is required to be used with other GitHub secrets interactions.\nNote that the provider `token` must have admin rights to an organization to retrieve it's Codespaces public key.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = github.getCodespacesOrganizationPublicKey({});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.get_codespaces_organization_public_key()\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 = Github.GetCodespacesOrganizationPublicKey.Invoke();\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v5/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.GetCodespacesOrganizationPublicKey(ctx, nil, nil)\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 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 = GithubFunctions.getCodespacesOrganizationPublicKey();\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: github:getCodespacesOrganizationPublicKey\n Arguments: {}\n```\n{{% /example %}}\n{{% /examples %}}",
+ "outputs": {
+ "description": "A collection of values returned by getCodespacesOrganizationPublicKey.\n",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "The provider-assigned unique ID for this managed resource.\n"
+ },
+ "key": {
+ "type": "string",
+ "description": "Actual key retrieved.\n"
+ },
+ "keyId": {
+ "type": "string",
+ "description": "ID of the key that has been retrieved.\n"
+ }
+ },
+ "type": "object",
+ "required": [
+ "key",
+ "keyId",
+ "id"
+ ]
+ }
+ },
+ "github:index/getCodespacesOrganizationSecrets:getCodespacesOrganizationSecrets": {
+ "description": "Use this data source to retrieve the list of codespaces secrets of the organization.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = github.getCodespacesOrganizationSecrets({});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.get_codespaces_organization_secrets()\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 = Github.GetCodespacesOrganizationSecrets.Invoke();\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v5/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.GetCodespacesOrganizationSecrets(ctx, nil, nil)\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 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 = GithubFunctions.getCodespacesOrganizationSecrets();\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: github:getCodespacesOrganizationSecrets\n Arguments: {}\n```\n{{% /example %}}\n{{% /examples %}}",
+ "outputs": {
+ "description": "A collection of values returned by getCodespacesOrganizationSecrets.\n",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "The provider-assigned unique ID for this managed resource.\n"
+ },
+ "secrets": {
+ "type": "array",
+ "items": {
+ "$ref": "#/types/github:index/getCodespacesOrganizationSecretsSecret:getCodespacesOrganizationSecretsSecret"
+ },
+ "description": "list of secrets for the repository\n"
+ }
+ },
+ "type": "object",
+ "required": [
+ "secrets",
+ "id"
+ ]
+ }
+ },
+ "github:index/getCodespacesPublicKey:getCodespacesPublicKey": {
+ "description": "Use this data source to retrieve information about a GitHub Codespaces public key. This data source is required to be used with other GitHub secrets interactions.\nNote that the provider `token` must have admin rights to a repository to retrieve it's Codespaces public key.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = github.getCodespacesPublicKey({\n repository: \"example_repo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.get_codespaces_public_key(repository=\"example_repo\")\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 = Github.GetCodespacesPublicKey.Invoke(new()\n {\n Repository = \"example_repo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v5/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.GetCodespacesPublicKey(ctx, \u0026github.GetCodespacesPublicKeyArgs{\n\t\t\tRepository: \"example_repo\",\n\t\t}, nil)\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.GetCodespacesPublicKeyArgs;\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 = GithubFunctions.getCodespacesPublicKey(GetCodespacesPublicKeyArgs.builder()\n .repository(\"example_repo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: github:getCodespacesPublicKey\n Arguments:\n repository: example_repo\n```\n{{% /example %}}\n{{% /examples %}}",
+ "inputs": {
+ "description": "A collection of arguments for invoking getCodespacesPublicKey.\n",
+ "properties": {
+ "repository": {
+ "type": "string",
+ "description": "Name of the repository to get public key from.\n"
+ }
+ },
+ "type": "object",
+ "required": [
+ "repository"
+ ]
+ },
+ "outputs": {
+ "description": "A collection of values returned by getCodespacesPublicKey.\n",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "The provider-assigned unique ID for this managed resource.\n"
+ },
+ "key": {
+ "type": "string",
+ "description": "Actual key retrieved.\n"
+ },
+ "keyId": {
+ "type": "string",
+ "description": "ID of the key that has been retrieved.\n"
+ },
+ "repository": {
+ "type": "string"
+ }
+ },
+ "type": "object",
+ "required": [
+ "key",
+ "keyId",
+ "repository",
+ "id"
+ ]
+ }
+ },
+ "github:index/getCodespacesSecrets:getCodespacesSecrets": {
+ "description": "Use this data source to retrieve the list of codespaces secrets for a GitHub repository.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = github.getCodespacesSecrets({\n name: \"example_repository\",\n});\nconst example2 = github.getCodespacesSecrets({\n fullName: \"org/example_repository\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.get_codespaces_secrets(name=\"example_repository\")\nexample2 = github.get_codespaces_secrets(full_name=\"org/example_repository\")\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 = Github.GetCodespacesSecrets.Invoke(new()\n {\n Name = \"example_repository\",\n });\n\n var example2 = Github.GetCodespacesSecrets.Invoke(new()\n {\n FullName = \"org/example_repository\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v5/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.GetCodespacesSecrets(ctx, \u0026github.GetCodespacesSecretsArgs{\n\t\t\tName: pulumi.StringRef(\"example_repository\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.GetCodespacesSecrets(ctx, \u0026github.GetCodespacesSecretsArgs{\n\t\t\tFullName: pulumi.StringRef(\"org/example_repository\"),\n\t\t}, nil)\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.GetCodespacesSecretsArgs;\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 = GithubFunctions.getCodespacesSecrets(GetCodespacesSecretsArgs.builder()\n .name(\"example_repository\")\n .build());\n\n final var example2 = GithubFunctions.getCodespacesSecrets(GetCodespacesSecretsArgs.builder()\n .fullName(\"org/example_repository\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: github:getCodespacesSecrets\n Arguments:\n name: example_repository\n example2:\n fn::invoke:\n Function: github:getCodespacesSecrets\n Arguments:\n fullName: org/example_repository\n```\n{{% /example %}}\n{{% /examples %}}",
+ "inputs": {
+ "description": "A collection of arguments for invoking getCodespacesSecrets.\n",
+ "properties": {
+ "fullName": {
+ "type": "string",
+ "description": "Full name of the repository (in `org/name` format).\n"
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the repository.\n"
+ }
+ },
+ "type": "object"
+ },
+ "outputs": {
+ "description": "A collection of values returned by getCodespacesSecrets.\n",
+ "properties": {
+ "fullName": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string",
+ "description": "The provider-assigned unique ID for this managed resource.\n"
+ },
+ "name": {
+ "type": "string",
+ "description": "Secret name\n"
+ },
+ "secrets": {
+ "type": "array",
+ "items": {
+ "$ref": "#/types/github:index/getCodespacesSecretsSecret:getCodespacesSecretsSecret"
+ },
+ "description": "list of codespaces secrets for the repository\n"
+ }
+ },
+ "type": "object",
+ "required": [
+ "fullName",
+ "name",
+ "secrets",
+ "id"
+ ]
+ }
+ },
+ "github:index/getCodespacesUserPublicKey:getCodespacesUserPublicKey": {
+ "description": "Use this data source to retrieve information about a GitHub Codespaces User public key. This data source is required to be used with other GitHub secrets interactions.\nNote that the provider `token` must have admin rights to an user to retrieve it's Codespaces public key.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = github.getCodespacesUserPublicKey({});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.get_codespaces_user_public_key()\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 = Github.GetCodespacesUserPublicKey.Invoke();\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v5/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.GetCodespacesUserPublicKey(ctx, nil, nil)\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 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 = GithubFunctions.getCodespacesUserPublicKey();\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: github:getCodespacesUserPublicKey\n Arguments: {}\n```\n{{% /example %}}\n{{% /examples %}}",
+ "outputs": {
+ "description": "A collection of values returned by getCodespacesUserPublicKey.\n",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "The provider-assigned unique ID for this managed resource.\n"
+ },
+ "key": {
+ "type": "string",
+ "description": "Actual key retrieved.\n"
+ },
+ "keyId": {
+ "type": "string",
+ "description": "ID of the key that has been retrieved.\n"
+ }
+ },
+ "type": "object",
+ "required": [
+ "key",
+ "keyId",
+ "id"
+ ]
+ }
+ },
+ "github:index/getCodespacesUserSecrets:getCodespacesUserSecrets": {
+ "description": "Use this data source to retrieve the list of codespaces secrets of the user.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = github.getCodespacesUserSecrets({});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.get_codespaces_user_secrets()\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 = Github.GetCodespacesUserSecrets.Invoke();\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v5/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.GetCodespacesUserSecrets(ctx, nil, nil)\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 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 = GithubFunctions.getCodespacesUserSecrets();\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: github:getCodespacesUserSecrets\n Arguments: {}\n```\n{{% /example %}}\n{{% /examples %}}",
+ "outputs": {
+ "description": "A collection of values returned by getCodespacesUserSecrets.\n",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "The provider-assigned unique ID for this managed resource.\n"
+ },
+ "secrets": {
+ "type": "array",
+ "items": {
+ "$ref": "#/types/github:index/getCodespacesUserSecretsSecret:getCodespacesUserSecretsSecret"
+ },
+ "description": "list of secrets for the repository\n"
+ }
+ },
+ "type": "object",
+ "required": [
+ "secrets",
+ "id"
+ ]
+ }
+ },
"github:index/getCollaborators:getCollaborators": {
"description": "Use this data source to retrieve the collaborators for a given repository.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst test = github.getCollaborators({\n owner: \"example_owner\",\n repository: \"example_repository\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\ntest = github.get_collaborators(owner=\"example_owner\",\n repository=\"example_repository\")\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 test = Github.GetCollaborators.Invoke(new()\n {\n Owner = \"example_owner\",\n Repository = \"example_repository\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v5/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.GetCollaborators(ctx, \u0026github.GetCollaboratorsArgs{\n\t\t\tOwner: \"example_owner\",\n\t\t\tRepository: \"example_repository\",\n\t\t}, nil)\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.GetCollaboratorsArgs;\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 test = GithubFunctions.getCollaborators(GetCollaboratorsArgs.builder()\n .owner(\"example_owner\")\n .repository(\"example_repository\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n test:\n fn::invoke:\n Function: github:getCollaborators\n Arguments:\n owner: example_owner\n repository: example_repository\n```\n{{% /example %}}\n{{% /examples %}}",
"inputs": {
@@ -8797,6 +9484,57 @@
]
}
},
+ "github:index/getOrganizationCustomRole:getOrganizationCustomRole": {
+ "description": "Use this data source to retrieve information about a custom role in a GitHub Organization.\n\n\u003e Note: Custom roles are currently only available in GitHub Enterprise Cloud.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = github.getOrganizationCustomRole({\n name: \"example\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.get_organization_custom_role(name=\"example\")\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 = Github.GetOrganizationCustomRole.Invoke(new()\n {\n Name = \"example\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v5/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.LookupOrganizationCustomRole(ctx, \u0026github.LookupOrganizationCustomRoleArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\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.GetOrganizationCustomRoleArgs;\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 = GithubFunctions.getOrganizationCustomRole(GetOrganizationCustomRoleArgs.builder()\n .name(\"example\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: github:getOrganizationCustomRole\n Arguments:\n name: example\n```\n{{% /example %}}\n{{% /examples %}}",
+ "inputs": {
+ "description": "A collection of arguments for invoking getOrganizationCustomRole.\n",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "The name of the custom role.\n"
+ }
+ },
+ "type": "object",
+ "required": [
+ "name"
+ ]
+ },
+ "outputs": {
+ "description": "A collection of values returned by getOrganizationCustomRole.\n",
+ "properties": {
+ "baseRole": {
+ "type": "string",
+ "description": "The system role from which the role inherits permissions.\n"
+ },
+ "description": {
+ "type": "string",
+ "description": "The description for the custom role.\n"
+ },
+ "id": {
+ "type": "string",
+ "description": "The provider-assigned unique ID for this managed resource.\n"
+ },
+ "name": {
+ "type": "string"
+ },
+ "permissions": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "A list of additional permissions included in this role.\n"
+ }
+ },
+ "type": "object",
+ "required": [
+ "baseRole",
+ "description",
+ "name",
+ "permissions",
+ "id"
+ ]
+ }
+ },
"github:index/getOrganizationIpAllowList:getOrganizationIpAllowList": {
"description": "Use this data source to retrieve information about the IP allow list of an organization.\nThe allow list for IP addresses will block access to private resources via the web, API,\nand Git from any IP addresses that are not on the allow list.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst all = github.getOrganizationIpAllowList({});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nall = github.get_organization_ip_allow_list()\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 all = Github.GetOrganizationIpAllowList.Invoke();\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v5/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.GetOrganizationIpAllowList(ctx, nil, nil)\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 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 all = GithubFunctions.getOrganizationIpAllowList();\n\n }\n}\n```\n```yaml\nvariables:\n all:\n fn::invoke:\n Function: github:getOrganizationIpAllowList\n Arguments: {}\n```\n{{% /example %}}\n{{% /examples %}}",
"outputs": {
diff --git a/provider/go.mod b/provider/go.mod
index 9ddf1b64..ca341cfc 100644
--- a/provider/go.mod
+++ b/provider/go.mod
@@ -4,9 +4,9 @@ go 1.19
require (
github.com/hashicorp/terraform-plugin-sdk v1.17.2
- github.com/integrations/terraform-provider-github/v5 v5.28.1
- github.com/pulumi/pulumi-terraform-bridge/v3 v3.50.1
- github.com/pulumi/pulumi/sdk/v3 v3.71.0
+ github.com/integrations/terraform-provider-github/v5 v5.29.0
+ github.com/pulumi/pulumi-terraform-bridge/v3 v3.51.0
+ github.com/pulumi/pulumi/sdk/v3 v3.72.2
)
require (
@@ -159,9 +159,9 @@ require (
github.com/pulumi/pulumi-java/pkg v0.9.4 // indirect
github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.4 // indirect
github.com/pulumi/pulumi-yaml v1.1.1 // indirect
- github.com/pulumi/pulumi/pkg/v3 v3.71.0 // indirect
+ github.com/pulumi/pulumi/pkg/v3 v3.72.2 // indirect
github.com/pulumi/schema-tools v0.2.2 // indirect
- github.com/pulumi/terraform-diff-reader v0.0.0-20201211191010-ad4715e9285e // indirect
+ github.com/pulumi/terraform-diff-reader v0.0.1 // indirect
github.com/rivo/uniseg v0.4.4 // indirect
github.com/rogpeppe/go-internal v1.10.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
diff --git a/provider/go.sum b/provider/go.sum
index d59b2423..49a00666 100644
--- a/provider/go.sum
+++ b/provider/go.sum
@@ -1511,8 +1511,8 @@ github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANyt
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
github.com/influxdata/influxdb1-client v0.0.0-20200827194710-b269163b24ab/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo=
-github.com/integrations/terraform-provider-github/v5 v5.28.1 h1:Kvb1fxzEVstKki8PZBadC6Ag0nmUDkiSO/x7YkvlPUs=
-github.com/integrations/terraform-provider-github/v5 v5.28.1/go.mod h1:dpm/QaM6qI7GMgBuOrnxxSBPytAb++f4o78eAINPc8A=
+github.com/integrations/terraform-provider-github/v5 v5.29.0 h1:4SkZPoGxi7ARdUSsCcmu0QfRs1+HjhDqaOUbpJfDFzw=
+github.com/integrations/terraform-provider-github/v5 v5.29.0/go.mod h1:dpm/QaM6qI7GMgBuOrnxxSBPytAb++f4o78eAINPc8A=
github.com/intel/goresctrl v0.2.0/go.mod h1:+CZdzouYFn5EsxgqAQTEzMfwKwuc0fVdMrT9FCCAVRQ=
github.com/ionos-cloud/sdk-go/v6 v6.1.3/go.mod h1:Ox3W0iiEz0GHnfY9e5LmAxwklsxguuNFEUSu0gVRTME=
github.com/j-keck/arping v0.0.0-20160618110441-2cf9dc699c56/go.mod h1:ymszkNOg6tORTn+6F6j+Jc8TOr5osrynvN6ivFWZ2GA=
@@ -1974,20 +1974,20 @@ github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40T
github.com/pulumi/pulumi-java/pkg v0.9.4 h1:gIQZmlUI1o9ye8CL2XFqtmAX6Lwr9uj/+HzjboiSmK4=
github.com/pulumi/pulumi-java/pkg v0.9.4/go.mod h1:c6rSw/+q4O0IImgJ9axxoC6QesbPYWBaG5gimbHouUQ=
github.com/pulumi/pulumi-terraform-bridge/testing v0.0.1 h1:SCg1gjfY9N4yn8U8peIUYATifjoDABkyR7H9lmefsfc=
-github.com/pulumi/pulumi-terraform-bridge/v3 v3.50.1 h1:3lfYzYjs/8ZtJuOm3xHhnGV9T5FQ+MObIOIcNEOQxEk=
-github.com/pulumi/pulumi-terraform-bridge/v3 v3.50.1/go.mod h1:ek2NJSTqeI5+V6wL2Cv8qy3f7S0Uc04UT/m6U582fSs=
+github.com/pulumi/pulumi-terraform-bridge/v3 v3.51.0 h1:8ofaNPTN0Zhx1qdwKNpzR6fV/lvskmXhx+JtXiOBBT4=
+github.com/pulumi/pulumi-terraform-bridge/v3 v3.51.0/go.mod h1:egk8TtYfFb1VqnBk8iXcn9G5gl8XN4ZrhSBx/iGsRPc=
github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.4 h1:rIzMmtcVpPX8ynaz6/nW5AHNY63DiNfCohqmxWvMpM4=
github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.4/go.mod h1:Kt8RIZWa/N8rW3+0g6NrqCBmF3o+HuIhFaZpssEkG6w=
github.com/pulumi/pulumi-yaml v1.1.1 h1:8pyBNIU8+ym0wYpjhsCqN+cutygfK1XbhY2YEeNfyXY=
github.com/pulumi/pulumi-yaml v1.1.1/go.mod h1:GhpdS6rFpwqvUtKdA+fQy8P28iNvncng39IXh5q68vE=
-github.com/pulumi/pulumi/pkg/v3 v3.71.0 h1:SdmFCDKQGz6HxbHi+7CDTRQ9pQfWOJWmLL5Kh4ayQEk=
-github.com/pulumi/pulumi/pkg/v3 v3.71.0/go.mod h1:U4IvxPAIezAbJwwyGl2faq09XC0BP3RxQbwZmBYy6fM=
-github.com/pulumi/pulumi/sdk/v3 v3.71.0 h1:D/02vc3Xn/eKxwCDWuYmkxAO1Jm7waOeiuxercQQWLY=
-github.com/pulumi/pulumi/sdk/v3 v3.71.0/go.mod h1:BUUBfQZsH0FPuznRfFHkR+b96VlXELnn+DgidFj4XSQ=
+github.com/pulumi/pulumi/pkg/v3 v3.72.2 h1:H9DU5/D73a4UIWEeCrb7N3P1ZrZ/M7r2VYmOlpFbjFg=
+github.com/pulumi/pulumi/pkg/v3 v3.72.2/go.mod h1:roPEZwkXjJ7SgTizApJjJoxFlmvS9Uc6PPhXnA4WuGU=
+github.com/pulumi/pulumi/sdk/v3 v3.72.2 h1:hw/iiPW2JfeCAR38kRZl/XdyFEvSPPrB5HaU/DmsIDs=
+github.com/pulumi/pulumi/sdk/v3 v3.72.2/go.mod h1:BUUBfQZsH0FPuznRfFHkR+b96VlXELnn+DgidFj4XSQ=
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.0-20201211191010-ad4715e9285e h1:Dik4Qe/+xguB8JagPyXNlbOnRiXGmq/PSPQTGunYnTk=
-github.com/pulumi/terraform-diff-reader v0.0.0-20201211191010-ad4715e9285e/go.mod h1:sZ9FUzGO+yM41hsQHs/yIcj/Y993qMdBxBU5mpDmAfQ=
+github.com/pulumi/terraform-diff-reader v0.0.1 h1:d42TUgaQewDVt9bG3GksVZMoUlEEqF171ak66OZVMjE=
+github.com/pulumi/terraform-diff-reader v0.0.1/go.mod h1:sZ9FUzGO+yM41hsQHs/yIcj/Y993qMdBxBU5mpDmAfQ=
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.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
@@ -3310,7 +3310,7 @@ lukechampine.com/frand v1.4.2 h1:RzFIpOvkMXuPMBb9maa4ND4wjBn71E1Jpf8BzJHMaVw=
lukechampine.com/frand v1.4.2/go.mod h1:4S/TM2ZgrKejMcKMbeLjISpJMO+/eZ1zu3vYX9dtj3s=
mvdan.cc/gofumpt v0.4.0 h1:JVf4NN1mIpHogBj7ABpgOyZc65/UUOkKQFkoURsz4MM=
nhooyr.io/websocket v1.8.6/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0=
-pgregory.net/rapid v0.5.5 h1:jkgx1TjbQPD/feRoK+S/mXw9e1uj6WilpHrXJowi6oA=
+pgregory.net/rapid v0.6.1 h1:4eyrDxyht86tT4Ztm+kvlyNBLIk071gR+ZQdhphc9dQ=
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4=
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
diff --git a/sdk/dotnet/CodespacesOrganizationSecret.cs b/sdk/dotnet/CodespacesOrganizationSecret.cs
new file mode 100644
index 00000000..97d3fcd4
--- /dev/null
+++ b/sdk/dotnet/CodespacesOrganizationSecret.cs
@@ -0,0 +1,324 @@
+// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.Github
+{
+ ///
+ /// ## Example Usage
+ ///
+ /// ```csharp
+ /// using System.Collections.Generic;
+ /// using System.Linq;
+ /// using Pulumi;
+ /// using Github = Pulumi.Github;
+ ///
+ /// return await Deployment.RunAsync(() =>
+ /// {
+ /// var exampleSecretCodespacesOrganizationSecret = new Github.CodespacesOrganizationSecret("exampleSecretCodespacesOrganizationSecret", new()
+ /// {
+ /// SecretName = "example_secret_name",
+ /// Visibility = "private",
+ /// PlaintextValue = @var.Some_secret_string,
+ /// });
+ ///
+ /// var exampleSecretIndex_codespacesOrganizationSecretCodespacesOrganizationSecret = new Github.CodespacesOrganizationSecret("exampleSecretIndex/codespacesOrganizationSecretCodespacesOrganizationSecret", new()
+ /// {
+ /// SecretName = "example_secret_name",
+ /// Visibility = "private",
+ /// EncryptedValue = @var.Some_encrypted_secret_string,
+ /// });
+ ///
+ /// });
+ /// ```
+ ///
+ /// ```csharp
+ /// using System.Collections.Generic;
+ /// using System.Linq;
+ /// using Pulumi;
+ /// using Github = Pulumi.Github;
+ ///
+ /// return await Deployment.RunAsync(() =>
+ /// {
+ /// var repo = Github.GetRepository.Invoke(new()
+ /// {
+ /// FullName = "my-org/repo",
+ /// });
+ ///
+ /// var exampleSecretCodespacesOrganizationSecret = new Github.CodespacesOrganizationSecret("exampleSecretCodespacesOrganizationSecret", new()
+ /// {
+ /// SecretName = "example_secret_name",
+ /// Visibility = "selected",
+ /// PlaintextValue = @var.Some_secret_string,
+ /// SelectedRepositoryIds = new[]
+ /// {
+ /// repo.Apply(getRepositoryResult => getRepositoryResult.RepoId),
+ /// },
+ /// });
+ ///
+ /// var exampleSecretIndex_codespacesOrganizationSecretCodespacesOrganizationSecret = new Github.CodespacesOrganizationSecret("exampleSecretIndex/codespacesOrganizationSecretCodespacesOrganizationSecret", new()
+ /// {
+ /// SecretName = "example_secret_name",
+ /// Visibility = "selected",
+ /// EncryptedValue = @var.Some_encrypted_secret_string,
+ /// SelectedRepositoryIds = new[]
+ /// {
+ /// repo.Apply(getRepositoryResult => getRepositoryResult.RepoId),
+ /// },
+ /// });
+ ///
+ /// });
+ /// ```
+ ///
+ /// ## Import
+ ///
+ /// This resource can be imported using an ID made up of the secret name
+ ///
+ /// ```sh
+ /// $ pulumi import github:index/codespacesOrganizationSecret:CodespacesOrganizationSecret test_secret test_secret_name
+ /// ```
+ ///
+ /// NOTEthe implementation is limited in that it won't fetch the value of the `plaintext_value` or `encrypted_value` fields when importing. You may need to ignore changes for these as a workaround.
+ ///
+ [GithubResourceType("github:index/codespacesOrganizationSecret:CodespacesOrganizationSecret")]
+ public partial class CodespacesOrganizationSecret : global::Pulumi.CustomResource
+ {
+ ///
+ /// Date of codespaces_secret creation.
+ ///
+ [Output("createdAt")]
+ public Output CreatedAt { get; private set; } = null!;
+
+ ///
+ /// Encrypted value of the secret using the GitHub public key in Base64 format.
+ ///
+ [Output("encryptedValue")]
+ public Output EncryptedValue { get; private set; } = null!;
+
+ ///
+ /// Plaintext value of the secret to be encrypted
+ ///
+ [Output("plaintextValue")]
+ public Output PlaintextValue { get; private set; } = null!;
+
+ ///
+ /// Name of the secret
+ ///
+ [Output("secretName")]
+ public Output SecretName { get; private set; } = null!;
+
+ ///
+ /// An array of repository ids that can access the organization secret.
+ ///
+ [Output("selectedRepositoryIds")]
+ public Output> SelectedRepositoryIds { get; private set; } = null!;
+
+ ///
+ /// Date of codespaces_secret update.
+ ///
+ [Output("updatedAt")]
+ public Output UpdatedAt { get; private set; } = null!;
+
+ ///
+ /// Configures the access that repositories have to the organization secret.
+ /// Must be one of `all`, `private`, `selected`. `selected_repository_ids` is required if set to `selected`.
+ ///
+ [Output("visibility")]
+ public Output Visibility { get; private set; } = null!;
+
+
+ ///
+ /// Create a CodespacesOrganizationSecret resource with the given unique name, arguments, and options.
+ ///
+ ///
+ /// The unique name of the resource
+ /// The arguments used to populate this resource's properties
+ /// A bag of options that control this resource's behavior
+ public CodespacesOrganizationSecret(string name, CodespacesOrganizationSecretArgs args, CustomResourceOptions? options = null)
+ : base("github:index/codespacesOrganizationSecret:CodespacesOrganizationSecret", name, args ?? new CodespacesOrganizationSecretArgs(), MakeResourceOptions(options, ""))
+ {
+ }
+
+ private CodespacesOrganizationSecret(string name, Input id, CodespacesOrganizationSecretState? state = null, CustomResourceOptions? options = null)
+ : base("github:index/codespacesOrganizationSecret:CodespacesOrganizationSecret", name, state, MakeResourceOptions(options, id))
+ {
+ }
+
+ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id)
+ {
+ var defaultOptions = new CustomResourceOptions
+ {
+ Version = Utilities.Version,
+ AdditionalSecretOutputs =
+ {
+ "encryptedValue",
+ "plaintextValue",
+ },
+ };
+ var merged = CustomResourceOptions.Merge(defaultOptions, options);
+ // Override the ID if one was specified for consistency with other language SDKs.
+ merged.Id = id ?? merged.Id;
+ return merged;
+ }
+ ///
+ /// Get an existing CodespacesOrganizationSecret resource's state with the given name, ID, and optional extra
+ /// properties used to qualify the lookup.
+ ///
+ ///
+ /// The unique name of the resulting resource.
+ /// The unique provider ID of the resource to lookup.
+ /// Any extra arguments used during the lookup.
+ /// A bag of options that control this resource's behavior
+ public static CodespacesOrganizationSecret Get(string name, Input id, CodespacesOrganizationSecretState? state = null, CustomResourceOptions? options = null)
+ {
+ return new CodespacesOrganizationSecret(name, id, state, options);
+ }
+ }
+
+ public sealed class CodespacesOrganizationSecretArgs : global::Pulumi.ResourceArgs
+ {
+ [Input("encryptedValue")]
+ private Input? _encryptedValue;
+
+ ///
+ /// Encrypted value of the secret using the GitHub public key in Base64 format.
+ ///
+ public Input? EncryptedValue
+ {
+ get => _encryptedValue;
+ set
+ {
+ var emptySecret = Output.CreateSecret(0);
+ _encryptedValue = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1);
+ }
+ }
+
+ [Input("plaintextValue")]
+ private Input? _plaintextValue;
+
+ ///
+ /// Plaintext value of the secret to be encrypted
+ ///
+ public Input? PlaintextValue
+ {
+ get => _plaintextValue;
+ set
+ {
+ var emptySecret = Output.CreateSecret(0);
+ _plaintextValue = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1);
+ }
+ }
+
+ ///
+ /// Name of the secret
+ ///
+ [Input("secretName", required: true)]
+ public Input SecretName { get; set; } = null!;
+
+ [Input("selectedRepositoryIds")]
+ private InputList? _selectedRepositoryIds;
+
+ ///
+ /// An array of repository ids that can access the organization secret.
+ ///
+ public InputList SelectedRepositoryIds
+ {
+ get => _selectedRepositoryIds ?? (_selectedRepositoryIds = new InputList());
+ set => _selectedRepositoryIds = value;
+ }
+
+ ///
+ /// Configures the access that repositories have to the organization secret.
+ /// Must be one of `all`, `private`, `selected`. `selected_repository_ids` is required if set to `selected`.
+ ///
+ [Input("visibility", required: true)]
+ public Input Visibility { get; set; } = null!;
+
+ public CodespacesOrganizationSecretArgs()
+ {
+ }
+ public static new CodespacesOrganizationSecretArgs Empty => new CodespacesOrganizationSecretArgs();
+ }
+
+ public sealed class CodespacesOrganizationSecretState : global::Pulumi.ResourceArgs
+ {
+ ///
+ /// Date of codespaces_secret creation.
+ ///
+ [Input("createdAt")]
+ public Input? CreatedAt { get; set; }
+
+ [Input("encryptedValue")]
+ private Input? _encryptedValue;
+
+ ///
+ /// Encrypted value of the secret using the GitHub public key in Base64 format.
+ ///
+ public Input? EncryptedValue
+ {
+ get => _encryptedValue;
+ set
+ {
+ var emptySecret = Output.CreateSecret(0);
+ _encryptedValue = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1);
+ }
+ }
+
+ [Input("plaintextValue")]
+ private Input? _plaintextValue;
+
+ ///
+ /// Plaintext value of the secret to be encrypted
+ ///
+ public Input? PlaintextValue
+ {
+ get => _plaintextValue;
+ set
+ {
+ var emptySecret = Output.CreateSecret(0);
+ _plaintextValue = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1);
+ }
+ }
+
+ ///
+ /// Name of the secret
+ ///
+ [Input("secretName")]
+ public Input? SecretName { get; set; }
+
+ [Input("selectedRepositoryIds")]
+ private InputList? _selectedRepositoryIds;
+
+ ///
+ /// An array of repository ids that can access the organization secret.
+ ///
+ public InputList SelectedRepositoryIds
+ {
+ get => _selectedRepositoryIds ?? (_selectedRepositoryIds = new InputList());
+ set => _selectedRepositoryIds = value;
+ }
+
+ ///
+ /// Date of codespaces_secret update.
+ ///
+ [Input("updatedAt")]
+ public Input? UpdatedAt { get; set; }
+
+ ///
+ /// Configures the access that repositories have to the organization secret.
+ /// Must be one of `all`, `private`, `selected`. `selected_repository_ids` is required if set to `selected`.
+ ///
+ [Input("visibility")]
+ public Input? Visibility { get; set; }
+
+ public CodespacesOrganizationSecretState()
+ {
+ }
+ public static new CodespacesOrganizationSecretState Empty => new CodespacesOrganizationSecretState();
+ }
+}
diff --git a/sdk/dotnet/CodespacesSecret.cs b/sdk/dotnet/CodespacesSecret.cs
new file mode 100644
index 00000000..7be162fd
--- /dev/null
+++ b/sdk/dotnet/CodespacesSecret.cs
@@ -0,0 +1,248 @@
+// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.Github
+{
+ ///
+ /// ## Example Usage
+ ///
+ /// ```csharp
+ /// using System.Collections.Generic;
+ /// using System.Linq;
+ /// using Pulumi;
+ /// using Github = Pulumi.Github;
+ ///
+ /// return await Deployment.RunAsync(() =>
+ /// {
+ /// var examplePublicKey = Github.GetCodespacesPublicKey.Invoke(new()
+ /// {
+ /// Repository = "example_repository",
+ /// });
+ ///
+ /// var exampleSecretCodespacesSecret = new Github.CodespacesSecret("exampleSecretCodespacesSecret", new()
+ /// {
+ /// Repository = "example_repository",
+ /// SecretName = "example_secret_name",
+ /// PlaintextValue = @var.Some_secret_string,
+ /// });
+ ///
+ /// var exampleSecretIndex_codespacesSecretCodespacesSecret = new Github.CodespacesSecret("exampleSecretIndex/codespacesSecretCodespacesSecret", new()
+ /// {
+ /// Repository = "example_repository",
+ /// SecretName = "example_secret_name",
+ /// EncryptedValue = @var.Some_encrypted_secret_string,
+ /// });
+ ///
+ /// });
+ /// ```
+ ///
+ [GithubResourceType("github:index/codespacesSecret:CodespacesSecret")]
+ public partial class CodespacesSecret : global::Pulumi.CustomResource
+ {
+ ///
+ /// Date of actions_secret creation.
+ ///
+ [Output("createdAt")]
+ public Output CreatedAt { get; private set; } = null!;
+
+ ///
+ /// Encrypted value of the secret using the GitHub public key in Base64 format.
+ ///
+ [Output("encryptedValue")]
+ public Output EncryptedValue { get; private set; } = null!;
+
+ ///
+ /// Plaintext value of the secret to be encrypted
+ ///
+ [Output("plaintextValue")]
+ public Output PlaintextValue { get; private set; } = null!;
+
+ ///
+ /// Name of the repository
+ ///
+ [Output("repository")]
+ public Output Repository { get; private set; } = null!;
+
+ ///
+ /// Name of the secret
+ ///
+ [Output("secretName")]
+ public Output SecretName { get; private set; } = null!;
+
+ ///
+ /// Date of actions_secret update.
+ ///
+ [Output("updatedAt")]
+ public Output UpdatedAt { get; private set; } = null!;
+
+
+ ///
+ /// Create a CodespacesSecret resource with the given unique name, arguments, and options.
+ ///
+ ///
+ /// The unique name of the resource
+ /// The arguments used to populate this resource's properties
+ /// A bag of options that control this resource's behavior
+ public CodespacesSecret(string name, CodespacesSecretArgs args, CustomResourceOptions? options = null)
+ : base("github:index/codespacesSecret:CodespacesSecret", name, args ?? new CodespacesSecretArgs(), MakeResourceOptions(options, ""))
+ {
+ }
+
+ private CodespacesSecret(string name, Input id, CodespacesSecretState? state = null, CustomResourceOptions? options = null)
+ : base("github:index/codespacesSecret:CodespacesSecret", name, state, MakeResourceOptions(options, id))
+ {
+ }
+
+ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id)
+ {
+ var defaultOptions = new CustomResourceOptions
+ {
+ Version = Utilities.Version,
+ AdditionalSecretOutputs =
+ {
+ "encryptedValue",
+ "plaintextValue",
+ },
+ };
+ var merged = CustomResourceOptions.Merge(defaultOptions, options);
+ // Override the ID if one was specified for consistency with other language SDKs.
+ merged.Id = id ?? merged.Id;
+ return merged;
+ }
+ ///
+ /// Get an existing CodespacesSecret resource's state with the given name, ID, and optional extra
+ /// properties used to qualify the lookup.
+ ///
+ ///
+ /// The unique name of the resulting resource.
+ /// The unique provider ID of the resource to lookup.
+ /// Any extra arguments used during the lookup.
+ /// A bag of options that control this resource's behavior
+ public static CodespacesSecret Get(string name, Input id, CodespacesSecretState? state = null, CustomResourceOptions? options = null)
+ {
+ return new CodespacesSecret(name, id, state, options);
+ }
+ }
+
+ public sealed class CodespacesSecretArgs : global::Pulumi.ResourceArgs
+ {
+ [Input("encryptedValue")]
+ private Input? _encryptedValue;
+
+ ///
+ /// Encrypted value of the secret using the GitHub public key in Base64 format.
+ ///
+ public Input? EncryptedValue
+ {
+ get => _encryptedValue;
+ set
+ {
+ var emptySecret = Output.CreateSecret(0);
+ _encryptedValue = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1);
+ }
+ }
+
+ [Input("plaintextValue")]
+ private Input? _plaintextValue;
+
+ ///
+ /// Plaintext value of the secret to be encrypted
+ ///
+ public Input? PlaintextValue
+ {
+ get => _plaintextValue;
+ set
+ {
+ var emptySecret = Output.CreateSecret(0);
+ _plaintextValue = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1);
+ }
+ }
+
+ ///
+ /// Name of the repository
+ ///
+ [Input("repository", required: true)]
+ public Input Repository { get; set; } = null!;
+
+ ///
+ /// Name of the secret
+ ///
+ [Input("secretName", required: true)]
+ public Input SecretName { get; set; } = null!;
+
+ public CodespacesSecretArgs()
+ {
+ }
+ public static new CodespacesSecretArgs Empty => new CodespacesSecretArgs();
+ }
+
+ public sealed class CodespacesSecretState : global::Pulumi.ResourceArgs
+ {
+ ///
+ /// Date of actions_secret creation.
+ ///
+ [Input("createdAt")]
+ public Input? CreatedAt { get; set; }
+
+ [Input("encryptedValue")]
+ private Input? _encryptedValue;
+
+ ///
+ /// Encrypted value of the secret using the GitHub public key in Base64 format.
+ ///
+ public Input? EncryptedValue
+ {
+ get => _encryptedValue;
+ set
+ {
+ var emptySecret = Output.CreateSecret(0);
+ _encryptedValue = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1);
+ }
+ }
+
+ [Input("plaintextValue")]
+ private Input? _plaintextValue;
+
+ ///
+ /// Plaintext value of the secret to be encrypted
+ ///
+ public Input? PlaintextValue
+ {
+ get => _plaintextValue;
+ set
+ {
+ var emptySecret = Output.CreateSecret(0);
+ _plaintextValue = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1);
+ }
+ }
+
+ ///
+ /// Name of the repository
+ ///
+ [Input("repository")]
+ public Input? Repository { get; set; }
+
+ ///
+ /// Name of the secret
+ ///
+ [Input("secretName")]
+ public Input? SecretName { get; set; }
+
+ ///
+ /// Date of actions_secret update.
+ ///
+ [Input("updatedAt")]
+ public Input? UpdatedAt { get; set; }
+
+ public CodespacesSecretState()
+ {
+ }
+ public static new CodespacesSecretState Empty => new CodespacesSecretState();
+ }
+}
diff --git a/sdk/dotnet/CodespacesUserSecret.cs b/sdk/dotnet/CodespacesUserSecret.cs
new file mode 100644
index 00000000..b0d07d4b
--- /dev/null
+++ b/sdk/dotnet/CodespacesUserSecret.cs
@@ -0,0 +1,276 @@
+// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.Github
+{
+ ///
+ /// ## Example Usage
+ ///
+ /// ```csharp
+ /// using System.Collections.Generic;
+ /// using System.Linq;
+ /// using Pulumi;
+ /// using Github = Pulumi.Github;
+ ///
+ /// return await Deployment.RunAsync(() =>
+ /// {
+ /// var repo = Github.GetRepository.Invoke(new()
+ /// {
+ /// FullName = "my-org/repo",
+ /// });
+ ///
+ /// var exampleSecretCodespacesUserSecret = new Github.CodespacesUserSecret("exampleSecretCodespacesUserSecret", new()
+ /// {
+ /// SecretName = "example_secret_name",
+ /// PlaintextValue = @var.Some_secret_string,
+ /// SelectedRepositoryIds = new[]
+ /// {
+ /// repo.Apply(getRepositoryResult => getRepositoryResult.RepoId),
+ /// },
+ /// });
+ ///
+ /// var exampleSecretIndex_codespacesUserSecretCodespacesUserSecret = new Github.CodespacesUserSecret("exampleSecretIndex/codespacesUserSecretCodespacesUserSecret", new()
+ /// {
+ /// SecretName = "example_secret_name",
+ /// EncryptedValue = @var.Some_encrypted_secret_string,
+ /// SelectedRepositoryIds = new[]
+ /// {
+ /// repo.Apply(getRepositoryResult => getRepositoryResult.RepoId),
+ /// },
+ /// });
+ ///
+ /// });
+ /// ```
+ ///
+ /// ## Import
+ ///
+ /// This resource can be imported using an ID made up of the secret name
+ ///
+ /// ```sh
+ /// $ pulumi import github:index/codespacesUserSecret:CodespacesUserSecret test_secret test_secret_name
+ /// ```
+ ///
+ /// NOTEthe implementation is limited in that it won't fetch the value of the `plaintext_value` or `encrypted_value` fields when importing. You may need to ignore changes for these as a workaround.
+ ///
+ [GithubResourceType("github:index/codespacesUserSecret:CodespacesUserSecret")]
+ public partial class CodespacesUserSecret : global::Pulumi.CustomResource
+ {
+ ///
+ /// Date of codespaces_secret creation.
+ ///
+ [Output("createdAt")]
+ public Output CreatedAt { get; private set; } = null!;
+
+ ///
+ /// Encrypted value of the secret using the GitHub public key in Base64 format.
+ ///
+ [Output("encryptedValue")]
+ public Output EncryptedValue { get; private set; } = null!;
+
+ ///
+ /// Plaintext value of the secret to be encrypted
+ ///
+ [Output("plaintextValue")]
+ public Output PlaintextValue { get; private set; } = null!;
+
+ ///
+ /// Name of the secret
+ ///
+ [Output("secretName")]
+ public Output SecretName { get; private set; } = null!;
+
+ ///
+ /// An array of repository ids that can access the user secret.
+ ///
+ [Output("selectedRepositoryIds")]
+ public Output> SelectedRepositoryIds { get; private set; } = null!;
+
+ ///
+ /// Date of codespaces_secret update.
+ ///
+ [Output("updatedAt")]
+ public Output UpdatedAt { get; private set; } = null!;
+
+
+ ///
+ /// Create a CodespacesUserSecret resource with the given unique name, arguments, and options.
+ ///
+ ///
+ /// The unique name of the resource
+ /// The arguments used to populate this resource's properties
+ /// A bag of options that control this resource's behavior
+ public CodespacesUserSecret(string name, CodespacesUserSecretArgs args, CustomResourceOptions? options = null)
+ : base("github:index/codespacesUserSecret:CodespacesUserSecret", name, args ?? new CodespacesUserSecretArgs(), MakeResourceOptions(options, ""))
+ {
+ }
+
+ private CodespacesUserSecret(string name, Input id, CodespacesUserSecretState? state = null, CustomResourceOptions? options = null)
+ : base("github:index/codespacesUserSecret:CodespacesUserSecret", name, state, MakeResourceOptions(options, id))
+ {
+ }
+
+ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id)
+ {
+ var defaultOptions = new CustomResourceOptions
+ {
+ Version = Utilities.Version,
+ AdditionalSecretOutputs =
+ {
+ "encryptedValue",
+ "plaintextValue",
+ },
+ };
+ var merged = CustomResourceOptions.Merge(defaultOptions, options);
+ // Override the ID if one was specified for consistency with other language SDKs.
+ merged.Id = id ?? merged.Id;
+ return merged;
+ }
+ ///
+ /// Get an existing CodespacesUserSecret resource's state with the given name, ID, and optional extra
+ /// properties used to qualify the lookup.
+ ///
+ ///
+ /// The unique name of the resulting resource.
+ /// The unique provider ID of the resource to lookup.
+ /// Any extra arguments used during the lookup.
+ /// A bag of options that control this resource's behavior
+ public static CodespacesUserSecret Get(string name, Input id, CodespacesUserSecretState? state = null, CustomResourceOptions? options = null)
+ {
+ return new CodespacesUserSecret(name, id, state, options);
+ }
+ }
+
+ public sealed class CodespacesUserSecretArgs : global::Pulumi.ResourceArgs
+ {
+ [Input("encryptedValue")]
+ private Input? _encryptedValue;
+
+ ///
+ /// Encrypted value of the secret using the GitHub public key in Base64 format.
+ ///
+ public Input? EncryptedValue
+ {
+ get => _encryptedValue;
+ set
+ {
+ var emptySecret = Output.CreateSecret(0);
+ _encryptedValue = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1);
+ }
+ }
+
+ [Input("plaintextValue")]
+ private Input? _plaintextValue;
+
+ ///
+ /// Plaintext value of the secret to be encrypted
+ ///
+ public Input? PlaintextValue
+ {
+ get => _plaintextValue;
+ set
+ {
+ var emptySecret = Output.CreateSecret(0);
+ _plaintextValue = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1);
+ }
+ }
+
+ ///
+ /// Name of the secret
+ ///
+ [Input("secretName", required: true)]
+ public Input SecretName { get; set; } = null!;
+
+ [Input("selectedRepositoryIds")]
+ private InputList? _selectedRepositoryIds;
+
+ ///
+ /// An array of repository ids that can access the user secret.
+ ///
+ public InputList SelectedRepositoryIds
+ {
+ get => _selectedRepositoryIds ?? (_selectedRepositoryIds = new InputList());
+ set => _selectedRepositoryIds = value;
+ }
+
+ public CodespacesUserSecretArgs()
+ {
+ }
+ public static new CodespacesUserSecretArgs Empty => new CodespacesUserSecretArgs();
+ }
+
+ public sealed class CodespacesUserSecretState : global::Pulumi.ResourceArgs
+ {
+ ///
+ /// Date of codespaces_secret creation.
+ ///
+ [Input("createdAt")]
+ public Input? CreatedAt { get; set; }
+
+ [Input("encryptedValue")]
+ private Input? _encryptedValue;
+
+ ///
+ /// Encrypted value of the secret using the GitHub public key in Base64 format.
+ ///
+ public Input? EncryptedValue
+ {
+ get => _encryptedValue;
+ set
+ {
+ var emptySecret = Output.CreateSecret(0);
+ _encryptedValue = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1);
+ }
+ }
+
+ [Input("plaintextValue")]
+ private Input? _plaintextValue;
+
+ ///
+ /// Plaintext value of the secret to be encrypted
+ ///
+ public Input? PlaintextValue
+ {
+ get => _plaintextValue;
+ set
+ {
+ var emptySecret = Output.CreateSecret(0);
+ _plaintextValue = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1);
+ }
+ }
+
+ ///
+ /// Name of the secret
+ ///
+ [Input("secretName")]
+ public Input? SecretName { get; set; }
+
+ [Input("selectedRepositoryIds")]
+ private InputList? _selectedRepositoryIds;
+
+ ///
+ /// An array of repository ids that can access the user secret.
+ ///
+ public InputList SelectedRepositoryIds
+ {
+ get => _selectedRepositoryIds ?? (_selectedRepositoryIds = new InputList());
+ set => _selectedRepositoryIds = value;
+ }
+
+ ///
+ /// Date of codespaces_secret update.
+ ///
+ [Input("updatedAt")]
+ public Input? UpdatedAt { get; set; }
+
+ public CodespacesUserSecretState()
+ {
+ }
+ public static new CodespacesUserSecretState Empty => new CodespacesUserSecretState();
+ }
+}
diff --git a/sdk/dotnet/GetCodespacesOrganizationPublicKey.cs b/sdk/dotnet/GetCodespacesOrganizationPublicKey.cs
new file mode 100644
index 00000000..a619fda6
--- /dev/null
+++ b/sdk/dotnet/GetCodespacesOrganizationPublicKey.cs
@@ -0,0 +1,71 @@
+// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.Github
+{
+ public static class GetCodespacesOrganizationPublicKey
+ {
+ ///
+ /// Use this data source to retrieve information about a GitHub Codespaces Organization public key. This data source is required to be used with other GitHub secrets interactions.
+ /// Note that the provider `token` must have admin rights to an organization to retrieve it's Codespaces public key.
+ ///
+ /// {{% examples %}}
+ /// ## Example Usage
+ /// {{% example %}}
+ ///
+ /// ```csharp
+ /// using System.Collections.Generic;
+ /// using System.Linq;
+ /// using Pulumi;
+ /// using Github = Pulumi.Github;
+ ///
+ /// return await Deployment.RunAsync(() =>
+ /// {
+ /// var example = Github.GetCodespacesOrganizationPublicKey.Invoke();
+ ///
+ /// });
+ /// ```
+ /// {{% /example %}}
+ /// {{% /examples %}}
+ ///
+ public static Task InvokeAsync(InvokeOptions? options = null)
+ => global::Pulumi.Deployment.Instance.InvokeAsync("github:index/getCodespacesOrganizationPublicKey:getCodespacesOrganizationPublicKey", InvokeArgs.Empty, options.WithDefaults());
+ }
+
+
+ [OutputType]
+ public sealed class GetCodespacesOrganizationPublicKeyResult
+ {
+ ///
+ /// The provider-assigned unique ID for this managed resource.
+ ///
+ public readonly string Id;
+ ///
+ /// Actual key retrieved.
+ ///
+ public readonly string Key;
+ ///
+ /// ID of the key that has been retrieved.
+ ///
+ public readonly string KeyId;
+
+ [OutputConstructor]
+ private GetCodespacesOrganizationPublicKeyResult(
+ string id,
+
+ string key,
+
+ string keyId)
+ {
+ Id = id;
+ Key = key;
+ KeyId = keyId;
+ }
+ }
+}
diff --git a/sdk/dotnet/GetCodespacesOrganizationSecrets.cs b/sdk/dotnet/GetCodespacesOrganizationSecrets.cs
new file mode 100644
index 00000000..e9165626
--- /dev/null
+++ b/sdk/dotnet/GetCodespacesOrganizationSecrets.cs
@@ -0,0 +1,63 @@
+// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.Github
+{
+ public static class GetCodespacesOrganizationSecrets
+ {
+ ///
+ /// Use this data source to retrieve the list of codespaces secrets of the organization.
+ ///
+ /// {{% examples %}}
+ /// ## Example Usage
+ /// {{% example %}}
+ ///
+ /// ```csharp
+ /// using System.Collections.Generic;
+ /// using System.Linq;
+ /// using Pulumi;
+ /// using Github = Pulumi.Github;
+ ///
+ /// return await Deployment.RunAsync(() =>
+ /// {
+ /// var example = Github.GetCodespacesOrganizationSecrets.Invoke();
+ ///
+ /// });
+ /// ```
+ /// {{% /example %}}
+ /// {{% /examples %}}
+ ///
+ public static Task InvokeAsync(InvokeOptions? options = null)
+ => global::Pulumi.Deployment.Instance.InvokeAsync("github:index/getCodespacesOrganizationSecrets:getCodespacesOrganizationSecrets", InvokeArgs.Empty, options.WithDefaults());
+ }
+
+
+ [OutputType]
+ public sealed class GetCodespacesOrganizationSecretsResult
+ {
+ ///
+ /// The provider-assigned unique ID for this managed resource.
+ ///
+ public readonly string Id;
+ ///
+ /// list of secrets for the repository
+ ///
+ public readonly ImmutableArray Secrets;
+
+ [OutputConstructor]
+ private GetCodespacesOrganizationSecretsResult(
+ string id,
+
+ ImmutableArray secrets)
+ {
+ Id = id;
+ Secrets = secrets;
+ }
+ }
+}
diff --git a/sdk/dotnet/GetCodespacesPublicKey.cs b/sdk/dotnet/GetCodespacesPublicKey.cs
new file mode 100644
index 00000000..6c814abd
--- /dev/null
+++ b/sdk/dotnet/GetCodespacesPublicKey.cs
@@ -0,0 +1,136 @@
+// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.Github
+{
+ public static class GetCodespacesPublicKey
+ {
+ ///
+ /// Use this data source to retrieve information about a GitHub Codespaces public key. This data source is required to be used with other GitHub secrets interactions.
+ /// Note that the provider `token` must have admin rights to a repository to retrieve it's Codespaces public key.
+ ///
+ /// {{% examples %}}
+ /// ## Example Usage
+ /// {{% example %}}
+ ///
+ /// ```csharp
+ /// using System.Collections.Generic;
+ /// using System.Linq;
+ /// using Pulumi;
+ /// using Github = Pulumi.Github;
+ ///
+ /// return await Deployment.RunAsync(() =>
+ /// {
+ /// var example = Github.GetCodespacesPublicKey.Invoke(new()
+ /// {
+ /// Repository = "example_repo",
+ /// });
+ ///
+ /// });
+ /// ```
+ /// {{% /example %}}
+ /// {{% /examples %}}
+ ///
+ public static Task InvokeAsync(GetCodespacesPublicKeyArgs args, InvokeOptions? options = null)
+ => global::Pulumi.Deployment.Instance.InvokeAsync("github:index/getCodespacesPublicKey:getCodespacesPublicKey", args ?? new GetCodespacesPublicKeyArgs(), options.WithDefaults());
+
+ ///
+ /// Use this data source to retrieve information about a GitHub Codespaces public key. This data source is required to be used with other GitHub secrets interactions.
+ /// Note that the provider `token` must have admin rights to a repository to retrieve it's Codespaces public key.
+ ///
+ /// {{% examples %}}
+ /// ## Example Usage
+ /// {{% example %}}
+ ///
+ /// ```csharp
+ /// using System.Collections.Generic;
+ /// using System.Linq;
+ /// using Pulumi;
+ /// using Github = Pulumi.Github;
+ ///
+ /// return await Deployment.RunAsync(() =>
+ /// {
+ /// var example = Github.GetCodespacesPublicKey.Invoke(new()
+ /// {
+ /// Repository = "example_repo",
+ /// });
+ ///
+ /// });
+ /// ```
+ /// {{% /example %}}
+ /// {{% /examples %}}
+ ///
+ public static Output Invoke(GetCodespacesPublicKeyInvokeArgs args, InvokeOptions? options = null)
+ => global::Pulumi.Deployment.Instance.Invoke("github:index/getCodespacesPublicKey:getCodespacesPublicKey", args ?? new GetCodespacesPublicKeyInvokeArgs(), options.WithDefaults());
+ }
+
+
+ public sealed class GetCodespacesPublicKeyArgs : global::Pulumi.InvokeArgs
+ {
+ ///
+ /// Name of the repository to get public key from.
+ ///
+ [Input("repository", required: true)]
+ public string Repository { get; set; } = null!;
+
+ public GetCodespacesPublicKeyArgs()
+ {
+ }
+ public static new GetCodespacesPublicKeyArgs Empty => new GetCodespacesPublicKeyArgs();
+ }
+
+ public sealed class GetCodespacesPublicKeyInvokeArgs : global::Pulumi.InvokeArgs
+ {
+ ///
+ /// Name of the repository to get public key from.
+ ///
+ [Input("repository", required: true)]
+ public Input Repository { get; set; } = null!;
+
+ public GetCodespacesPublicKeyInvokeArgs()
+ {
+ }
+ public static new GetCodespacesPublicKeyInvokeArgs Empty => new GetCodespacesPublicKeyInvokeArgs();
+ }
+
+
+ [OutputType]
+ public sealed class GetCodespacesPublicKeyResult
+ {
+ ///
+ /// The provider-assigned unique ID for this managed resource.
+ ///
+ public readonly string Id;
+ ///
+ /// Actual key retrieved.
+ ///
+ public readonly string Key;
+ ///
+ /// ID of the key that has been retrieved.
+ ///
+ public readonly string KeyId;
+ public readonly string Repository;
+
+ [OutputConstructor]
+ private GetCodespacesPublicKeyResult(
+ string id,
+
+ string key,
+
+ string keyId,
+
+ string repository)
+ {
+ Id = id;
+ Key = key;
+ KeyId = keyId;
+ Repository = repository;
+ }
+ }
+}
diff --git a/sdk/dotnet/GetCodespacesSecrets.cs b/sdk/dotnet/GetCodespacesSecrets.cs
new file mode 100644
index 00000000..9bd0900a
--- /dev/null
+++ b/sdk/dotnet/GetCodespacesSecrets.cs
@@ -0,0 +1,156 @@
+// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.Github
+{
+ public static class GetCodespacesSecrets
+ {
+ ///
+ /// Use this data source to retrieve the list of codespaces secrets for a GitHub repository.
+ ///
+ /// {{% examples %}}
+ /// ## Example Usage
+ /// {{% example %}}
+ ///
+ /// ```csharp
+ /// using System.Collections.Generic;
+ /// using System.Linq;
+ /// using Pulumi;
+ /// using Github = Pulumi.Github;
+ ///
+ /// return await Deployment.RunAsync(() =>
+ /// {
+ /// var example = Github.GetCodespacesSecrets.Invoke(new()
+ /// {
+ /// Name = "example_repository",
+ /// });
+ ///
+ /// var example2 = Github.GetCodespacesSecrets.Invoke(new()
+ /// {
+ /// FullName = "org/example_repository",
+ /// });
+ ///
+ /// });
+ /// ```
+ /// {{% /example %}}
+ /// {{% /examples %}}
+ ///
+ public static Task InvokeAsync(GetCodespacesSecretsArgs? args = null, InvokeOptions? options = null)
+ => global::Pulumi.Deployment.Instance.InvokeAsync("github:index/getCodespacesSecrets:getCodespacesSecrets", args ?? new GetCodespacesSecretsArgs(), options.WithDefaults());
+
+ ///
+ /// Use this data source to retrieve the list of codespaces secrets for a GitHub repository.
+ ///
+ /// {{% examples %}}
+ /// ## Example Usage
+ /// {{% example %}}
+ ///
+ /// ```csharp
+ /// using System.Collections.Generic;
+ /// using System.Linq;
+ /// using Pulumi;
+ /// using Github = Pulumi.Github;
+ ///
+ /// return await Deployment.RunAsync(() =>
+ /// {
+ /// var example = Github.GetCodespacesSecrets.Invoke(new()
+ /// {
+ /// Name = "example_repository",
+ /// });
+ ///
+ /// var example2 = Github.GetCodespacesSecrets.Invoke(new()
+ /// {
+ /// FullName = "org/example_repository",
+ /// });
+ ///
+ /// });
+ /// ```
+ /// {{% /example %}}
+ /// {{% /examples %}}
+ ///
+ public static Output Invoke(GetCodespacesSecretsInvokeArgs? args = null, InvokeOptions? options = null)
+ => global::Pulumi.Deployment.Instance.Invoke("github:index/getCodespacesSecrets:getCodespacesSecrets", args ?? new GetCodespacesSecretsInvokeArgs(), options.WithDefaults());
+ }
+
+
+ public sealed class GetCodespacesSecretsArgs : global::Pulumi.InvokeArgs
+ {
+ ///
+ /// Full name of the repository (in `org/name` format).
+ ///
+ [Input("fullName")]
+ public string? FullName { get; set; }
+
+ ///
+ /// The name of the repository.
+ ///
+ [Input("name")]
+ public string? Name { get; set; }
+
+ public GetCodespacesSecretsArgs()
+ {
+ }
+ public static new GetCodespacesSecretsArgs Empty => new GetCodespacesSecretsArgs();
+ }
+
+ public sealed class GetCodespacesSecretsInvokeArgs : global::Pulumi.InvokeArgs
+ {
+ ///
+ /// Full name of the repository (in `org/name` format).
+ ///
+ [Input("fullName")]
+ public Input? FullName { get; set; }
+
+ ///
+ /// The name of the repository.
+ ///
+ [Input("name")]
+ public Input? Name { get; set; }
+
+ public GetCodespacesSecretsInvokeArgs()
+ {
+ }
+ public static new GetCodespacesSecretsInvokeArgs Empty => new GetCodespacesSecretsInvokeArgs();
+ }
+
+
+ [OutputType]
+ public sealed class GetCodespacesSecretsResult
+ {
+ public readonly string FullName;
+ ///
+ /// The provider-assigned unique ID for this managed resource.
+ ///
+ public readonly string Id;
+ ///
+ /// Secret name
+ ///
+ public readonly string Name;
+ ///
+ /// list of codespaces secrets for the repository
+ ///
+ public readonly ImmutableArray Secrets;
+
+ [OutputConstructor]
+ private GetCodespacesSecretsResult(
+ string fullName,
+
+ string id,
+
+ string name,
+
+ ImmutableArray secrets)
+ {
+ FullName = fullName;
+ Id = id;
+ Name = name;
+ Secrets = secrets;
+ }
+ }
+}
diff --git a/sdk/dotnet/GetCodespacesUserPublicKey.cs b/sdk/dotnet/GetCodespacesUserPublicKey.cs
new file mode 100644
index 00000000..8731a94f
--- /dev/null
+++ b/sdk/dotnet/GetCodespacesUserPublicKey.cs
@@ -0,0 +1,71 @@
+// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.Github
+{
+ public static class GetCodespacesUserPublicKey
+ {
+ ///
+ /// Use this data source to retrieve information about a GitHub Codespaces User public key. This data source is required to be used with other GitHub secrets interactions.
+ /// Note that the provider `token` must have admin rights to an user to retrieve it's Codespaces public key.
+ ///
+ /// {{% examples %}}
+ /// ## Example Usage
+ /// {{% example %}}
+ ///
+ /// ```csharp
+ /// using System.Collections.Generic;
+ /// using System.Linq;
+ /// using Pulumi;
+ /// using Github = Pulumi.Github;
+ ///
+ /// return await Deployment.RunAsync(() =>
+ /// {
+ /// var example = Github.GetCodespacesUserPublicKey.Invoke();
+ ///
+ /// });
+ /// ```
+ /// {{% /example %}}
+ /// {{% /examples %}}
+ ///
+ public static Task InvokeAsync(InvokeOptions? options = null)
+ => global::Pulumi.Deployment.Instance.InvokeAsync("github:index/getCodespacesUserPublicKey:getCodespacesUserPublicKey", InvokeArgs.Empty, options.WithDefaults());
+ }
+
+
+ [OutputType]
+ public sealed class GetCodespacesUserPublicKeyResult
+ {
+ ///
+ /// The provider-assigned unique ID for this managed resource.
+ ///
+ public readonly string Id;
+ ///
+ /// Actual key retrieved.
+ ///
+ public readonly string Key;
+ ///
+ /// ID of the key that has been retrieved.
+ ///
+ public readonly string KeyId;
+
+ [OutputConstructor]
+ private GetCodespacesUserPublicKeyResult(
+ string id,
+
+ string key,
+
+ string keyId)
+ {
+ Id = id;
+ Key = key;
+ KeyId = keyId;
+ }
+ }
+}
diff --git a/sdk/dotnet/GetCodespacesUserSecrets.cs b/sdk/dotnet/GetCodespacesUserSecrets.cs
new file mode 100644
index 00000000..58c022ae
--- /dev/null
+++ b/sdk/dotnet/GetCodespacesUserSecrets.cs
@@ -0,0 +1,63 @@
+// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.Github
+{
+ public static class GetCodespacesUserSecrets
+ {
+ ///
+ /// Use this data source to retrieve the list of codespaces secrets of the user.
+ ///
+ /// {{% examples %}}
+ /// ## Example Usage
+ /// {{% example %}}
+ ///
+ /// ```csharp
+ /// using System.Collections.Generic;
+ /// using System.Linq;
+ /// using Pulumi;
+ /// using Github = Pulumi.Github;
+ ///
+ /// return await Deployment.RunAsync(() =>
+ /// {
+ /// var example = Github.GetCodespacesUserSecrets.Invoke();
+ ///
+ /// });
+ /// ```
+ /// {{% /example %}}
+ /// {{% /examples %}}
+ ///
+ public static Task InvokeAsync(InvokeOptions? options = null)
+ => global::Pulumi.Deployment.Instance.InvokeAsync("github:index/getCodespacesUserSecrets:getCodespacesUserSecrets", InvokeArgs.Empty, options.WithDefaults());
+ }
+
+
+ [OutputType]
+ public sealed class GetCodespacesUserSecretsResult
+ {
+ ///
+ /// The provider-assigned unique ID for this managed resource.
+ ///
+ public readonly string Id;
+ ///
+ /// list of secrets for the repository
+ ///
+ public readonly ImmutableArray Secrets;
+
+ [OutputConstructor]
+ private GetCodespacesUserSecretsResult(
+ string id,
+
+ ImmutableArray secrets)
+ {
+ Id = id;
+ Secrets = secrets;
+ }
+ }
+}
diff --git a/sdk/dotnet/GetOrganizationCustomRole.cs b/sdk/dotnet/GetOrganizationCustomRole.cs
new file mode 100644
index 00000000..71161e71
--- /dev/null
+++ b/sdk/dotnet/GetOrganizationCustomRole.cs
@@ -0,0 +1,145 @@
+// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.Github
+{
+ public static class GetOrganizationCustomRole
+ {
+ ///
+ /// Use this data source to retrieve information about a custom role in a GitHub Organization.
+ ///
+ /// > Note: Custom roles are currently only available in GitHub Enterprise Cloud.
+ ///
+ /// {{% examples %}}
+ /// ## Example Usage
+ /// {{% example %}}
+ ///
+ /// ```csharp
+ /// using System.Collections.Generic;
+ /// using System.Linq;
+ /// using Pulumi;
+ /// using Github = Pulumi.Github;
+ ///
+ /// return await Deployment.RunAsync(() =>
+ /// {
+ /// var example = Github.GetOrganizationCustomRole.Invoke(new()
+ /// {
+ /// Name = "example",
+ /// });
+ ///
+ /// });
+ /// ```
+ /// {{% /example %}}
+ /// {{% /examples %}}
+ ///
+ public static Task InvokeAsync(GetOrganizationCustomRoleArgs args, InvokeOptions? options = null)
+ => global::Pulumi.Deployment.Instance.InvokeAsync("github:index/getOrganizationCustomRole:getOrganizationCustomRole", args ?? new GetOrganizationCustomRoleArgs(), options.WithDefaults());
+
+ ///
+ /// Use this data source to retrieve information about a custom role in a GitHub Organization.
+ ///
+ /// > Note: Custom roles are currently only available in GitHub Enterprise Cloud.
+ ///
+ /// {{% examples %}}
+ /// ## Example Usage
+ /// {{% example %}}
+ ///
+ /// ```csharp
+ /// using System.Collections.Generic;
+ /// using System.Linq;
+ /// using Pulumi;
+ /// using Github = Pulumi.Github;
+ ///
+ /// return await Deployment.RunAsync(() =>
+ /// {
+ /// var example = Github.GetOrganizationCustomRole.Invoke(new()
+ /// {
+ /// Name = "example",
+ /// });
+ ///
+ /// });
+ /// ```
+ /// {{% /example %}}
+ /// {{% /examples %}}
+ ///
+ public static Output Invoke(GetOrganizationCustomRoleInvokeArgs args, InvokeOptions? options = null)
+ => global::Pulumi.Deployment.Instance.Invoke("github:index/getOrganizationCustomRole:getOrganizationCustomRole", args ?? new GetOrganizationCustomRoleInvokeArgs(), options.WithDefaults());
+ }
+
+
+ public sealed class GetOrganizationCustomRoleArgs : global::Pulumi.InvokeArgs
+ {
+ ///
+ /// The name of the custom role.
+ ///
+ [Input("name", required: true)]
+ public string Name { get; set; } = null!;
+
+ public GetOrganizationCustomRoleArgs()
+ {
+ }
+ public static new GetOrganizationCustomRoleArgs Empty => new GetOrganizationCustomRoleArgs();
+ }
+
+ public sealed class GetOrganizationCustomRoleInvokeArgs : global::Pulumi.InvokeArgs
+ {
+ ///
+ /// The name of the custom role.
+ ///
+ [Input("name", required: true)]
+ public Input Name { get; set; } = null!;
+
+ public GetOrganizationCustomRoleInvokeArgs()
+ {
+ }
+ public static new GetOrganizationCustomRoleInvokeArgs Empty => new GetOrganizationCustomRoleInvokeArgs();
+ }
+
+
+ [OutputType]
+ public sealed class GetOrganizationCustomRoleResult
+ {
+ ///
+ /// The system role from which the role inherits permissions.
+ ///
+ public readonly string BaseRole;
+ ///
+ /// The description for the custom role.
+ ///
+ public readonly string Description;
+ ///
+ /// The provider-assigned unique ID for this managed resource.
+ ///
+ public readonly string Id;
+ public readonly string Name;
+ ///
+ /// A list of additional permissions included in this role.
+ ///
+ public readonly ImmutableArray Permissions;
+
+ [OutputConstructor]
+ private GetOrganizationCustomRoleResult(
+ string baseRole,
+
+ string description,
+
+ string id,
+
+ string name,
+
+ ImmutableArray permissions)
+ {
+ BaseRole = baseRole;
+ Description = description;
+ Id = id;
+ Name = name;
+ Permissions = permissions;
+ }
+ }
+}
diff --git a/sdk/dotnet/OrganizationCustomRole.cs b/sdk/dotnet/OrganizationCustomRole.cs
new file mode 100644
index 00000000..547e094b
--- /dev/null
+++ b/sdk/dotnet/OrganizationCustomRole.cs
@@ -0,0 +1,212 @@
+// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.Github
+{
+ ///
+ /// This resource allows you to create and manage custom roles in a GitHub Organization for use in repositories.
+ ///
+ /// > Note: Custom roles are currently only available in GitHub Enterprise Cloud.
+ ///
+ /// ## Example Usage
+ ///
+ /// ```csharp
+ /// using System.Collections.Generic;
+ /// using System.Linq;
+ /// using Pulumi;
+ /// using Github = Pulumi.Github;
+ ///
+ /// return await Deployment.RunAsync(() =>
+ /// {
+ /// var example = new Github.OrganizationCustomRole("example", new()
+ /// {
+ /// BaseRole = "read",
+ /// Description = "Example custom role that uses the read role as its base",
+ /// Permissions = new[]
+ /// {
+ /// "add_assignee",
+ /// "add_label",
+ /// "bypass_branch_protection",
+ /// "close_issue",
+ /// "close_pull_request",
+ /// "mark_as_duplicate",
+ /// "create_tag",
+ /// "delete_issue",
+ /// "delete_tag",
+ /// "manage_deploy_keys",
+ /// "push_protected_branch",
+ /// "read_code_scanning",
+ /// "reopen_issue",
+ /// "reopen_pull_request",
+ /// "request_pr_review",
+ /// "resolve_dependabot_alerts",
+ /// "resolve_secret_scanning_alerts",
+ /// "view_secret_scanning_alerts",
+ /// "write_code_scanning",
+ /// },
+ /// });
+ ///
+ /// });
+ /// ```
+ ///
+ /// ## Import
+ ///
+ /// Custom roles can be imported using the `id` of the role. The `id` of the custom role can be found using the [list custom roles in an organization](https://docs.github.com/en/enterprise-cloud@latest/rest/orgs/custom-roles#list-custom-repository-roles-in-an-organization) API.
+ ///
+ /// ```sh
+ /// $ pulumi import github:index/organizationCustomRole:OrganizationCustomRole example 1234
+ /// ```
+ ///
+ [GithubResourceType("github:index/organizationCustomRole:OrganizationCustomRole")]
+ public partial class OrganizationCustomRole : global::Pulumi.CustomResource
+ {
+ ///
+ /// The system role from which the role inherits permissions. Can be one of: `read`, `triage`, `write`, or `maintain`.
+ ///
+ [Output("baseRole")]
+ public Output BaseRole { get; private set; } = null!;
+
+ ///
+ /// The description for the custom role.
+ ///
+ [Output("description")]
+ public Output Description { get; private set; } = null!;
+
+ ///
+ /// The name of the custom role.
+ ///
+ [Output("name")]
+ public Output Name { get; private set; } = null!;
+
+ ///
+ /// A list of additional permissions included in this role. Must have a minimum of 1 additional permission. The list of available permissions can be found using the [list repository fine-grained permissions for an organization](https://docs.github.com/en/enterprise-cloud@latest/rest/orgs/custom-roles?apiVersion=2022-11-28#list-repository-fine-grained-permissions-for-an-organization) API.
+ ///
+ [Output("permissions")]
+ public Output> Permissions { get; private set; } = null!;
+
+
+ ///
+ /// Create a OrganizationCustomRole resource with the given unique name, arguments, and options.
+ ///
+ ///
+ /// The unique name of the resource
+ /// The arguments used to populate this resource's properties
+ /// A bag of options that control this resource's behavior
+ public OrganizationCustomRole(string name, OrganizationCustomRoleArgs args, CustomResourceOptions? options = null)
+ : base("github:index/organizationCustomRole:OrganizationCustomRole", name, args ?? new OrganizationCustomRoleArgs(), MakeResourceOptions(options, ""))
+ {
+ }
+
+ private OrganizationCustomRole(string name, Input id, OrganizationCustomRoleState? state = null, CustomResourceOptions? options = null)
+ : base("github:index/organizationCustomRole:OrganizationCustomRole", name, state, MakeResourceOptions(options, id))
+ {
+ }
+
+ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id)
+ {
+ var defaultOptions = new CustomResourceOptions
+ {
+ Version = Utilities.Version,
+ };
+ var merged = CustomResourceOptions.Merge(defaultOptions, options);
+ // Override the ID if one was specified for consistency with other language SDKs.
+ merged.Id = id ?? merged.Id;
+ return merged;
+ }
+ ///
+ /// Get an existing OrganizationCustomRole resource's state with the given name, ID, and optional extra
+ /// properties used to qualify the lookup.
+ ///
+ ///
+ /// The unique name of the resulting resource.
+ /// The unique provider ID of the resource to lookup.
+ /// Any extra arguments used during the lookup.
+ /// A bag of options that control this resource's behavior
+ public static OrganizationCustomRole Get(string name, Input id, OrganizationCustomRoleState? state = null, CustomResourceOptions? options = null)
+ {
+ return new OrganizationCustomRole(name, id, state, options);
+ }
+ }
+
+ public sealed class OrganizationCustomRoleArgs : global::Pulumi.ResourceArgs
+ {
+ ///
+ /// The system role from which the role inherits permissions. Can be one of: `read`, `triage`, `write`, or `maintain`.
+ ///
+ [Input("baseRole", required: true)]
+ public Input BaseRole { get; set; } = null!;
+
+ ///
+ /// The description for the custom role.
+ ///
+ [Input("description")]
+ public Input? Description { get; set; }
+
+ ///
+ /// The name of the custom role.
+ ///
+ [Input("name")]
+ public Input? Name { get; set; }
+
+ [Input("permissions", required: true)]
+ private InputList? _permissions;
+
+ ///
+ /// A list of additional permissions included in this role. Must have a minimum of 1 additional permission. The list of available permissions can be found using the [list repository fine-grained permissions for an organization](https://docs.github.com/en/enterprise-cloud@latest/rest/orgs/custom-roles?apiVersion=2022-11-28#list-repository-fine-grained-permissions-for-an-organization) API.
+ ///
+ public InputList Permissions
+ {
+ get => _permissions ?? (_permissions = new InputList());
+ set => _permissions = value;
+ }
+
+ public OrganizationCustomRoleArgs()
+ {
+ }
+ public static new OrganizationCustomRoleArgs Empty => new OrganizationCustomRoleArgs();
+ }
+
+ public sealed class OrganizationCustomRoleState : global::Pulumi.ResourceArgs
+ {
+ ///
+ /// The system role from which the role inherits permissions. Can be one of: `read`, `triage`, `write`, or `maintain`.
+ ///
+ [Input("baseRole")]
+ public Input? BaseRole { get; set; }
+
+ ///
+ /// The description for the custom role.
+ ///
+ [Input("description")]
+ public Input? Description { get; set; }
+
+ ///
+ /// The name of the custom role.
+ ///
+ [Input("name")]
+ public Input? Name { get; set; }
+
+ [Input("permissions")]
+ private InputList? _permissions;
+
+ ///
+ /// A list of additional permissions included in this role. Must have a minimum of 1 additional permission. The list of available permissions can be found using the [list repository fine-grained permissions for an organization](https://docs.github.com/en/enterprise-cloud@latest/rest/orgs/custom-roles?apiVersion=2022-11-28#list-repository-fine-grained-permissions-for-an-organization) API.
+ ///
+ public InputList Permissions
+ {
+ get => _permissions ?? (_permissions = new InputList());
+ set => _permissions = value;
+ }
+
+ public OrganizationCustomRoleState()
+ {
+ }
+ public static new OrganizationCustomRoleState Empty => new OrganizationCustomRoleState();
+ }
+}
diff --git a/sdk/dotnet/Outputs/GetCodespacesOrganizationSecretsSecretResult.cs b/sdk/dotnet/Outputs/GetCodespacesOrganizationSecretsSecretResult.cs
new file mode 100644
index 00000000..f9446b0c
--- /dev/null
+++ b/sdk/dotnet/Outputs/GetCodespacesOrganizationSecretsSecretResult.cs
@@ -0,0 +1,49 @@
+// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.Github.Outputs
+{
+
+ [OutputType]
+ public sealed class GetCodespacesOrganizationSecretsSecretResult
+ {
+ ///
+ /// Timestamp of the secret creation
+ ///
+ public readonly string CreatedAt;
+ ///
+ /// Secret name
+ ///
+ public readonly string Name;
+ ///
+ /// Timestamp of the secret last update
+ ///
+ public readonly string UpdatedAt;
+ ///
+ /// Secret visibility
+ ///
+ public readonly string Visibility;
+
+ [OutputConstructor]
+ private GetCodespacesOrganizationSecretsSecretResult(
+ string createdAt,
+
+ string name,
+
+ string updatedAt,
+
+ string visibility)
+ {
+ CreatedAt = createdAt;
+ Name = name;
+ UpdatedAt = updatedAt;
+ Visibility = visibility;
+ }
+ }
+}
diff --git a/sdk/dotnet/Outputs/GetCodespacesSecretsSecretResult.cs b/sdk/dotnet/Outputs/GetCodespacesSecretsSecretResult.cs
new file mode 100644
index 00000000..e3d66807
--- /dev/null
+++ b/sdk/dotnet/Outputs/GetCodespacesSecretsSecretResult.cs
@@ -0,0 +1,42 @@
+// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.Github.Outputs
+{
+
+ [OutputType]
+ public sealed class GetCodespacesSecretsSecretResult
+ {
+ ///
+ /// Timestamp of the secret creation
+ ///
+ public readonly string CreatedAt;
+ ///
+ /// The name of the repository.
+ ///
+ public readonly string Name;
+ ///
+ /// Timestamp of the secret last update
+ ///
+ public readonly string UpdatedAt;
+
+ [OutputConstructor]
+ private GetCodespacesSecretsSecretResult(
+ string createdAt,
+
+ string name,
+
+ string updatedAt)
+ {
+ CreatedAt = createdAt;
+ Name = name;
+ UpdatedAt = updatedAt;
+ }
+ }
+}
diff --git a/sdk/dotnet/Outputs/GetCodespacesUserSecretsSecretResult.cs b/sdk/dotnet/Outputs/GetCodespacesUserSecretsSecretResult.cs
new file mode 100644
index 00000000..8104165d
--- /dev/null
+++ b/sdk/dotnet/Outputs/GetCodespacesUserSecretsSecretResult.cs
@@ -0,0 +1,49 @@
+// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.Github.Outputs
+{
+
+ [OutputType]
+ public sealed class GetCodespacesUserSecretsSecretResult
+ {
+ ///
+ /// Timestamp of the secret creation
+ ///
+ public readonly string CreatedAt;
+ ///
+ /// Secret name
+ ///
+ public readonly string Name;
+ ///
+ /// Timestamp of the secret last update
+ ///
+ public readonly string UpdatedAt;
+ ///
+ /// Secret visibility
+ ///
+ public readonly string Visibility;
+
+ [OutputConstructor]
+ private GetCodespacesUserSecretsSecretResult(
+ string createdAt,
+
+ string name,
+
+ string updatedAt,
+
+ string visibility)
+ {
+ CreatedAt = createdAt;
+ Name = name;
+ UpdatedAt = updatedAt;
+ Visibility = visibility;
+ }
+ }
+}
diff --git a/sdk/go/github/codespacesOrganizationSecret.go b/sdk/go/github/codespacesOrganizationSecret.go
new file mode 100644
index 00000000..1e0b2f95
--- /dev/null
+++ b/sdk/go/github/codespacesOrganizationSecret.go
@@ -0,0 +1,411 @@
+// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
+// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
+
+package github
+
+import (
+ "context"
+ "reflect"
+
+ "errors"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+)
+
+// ## Example Usage
+//
+// ```go
+// package main
+//
+// import (
+//
+// "github.com/pulumi/pulumi-github/sdk/v5/go/github"
+// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+//
+// )
+//
+// func main() {
+// pulumi.Run(func(ctx *pulumi.Context) error {
+// _, err := github.NewCodespacesOrganizationSecret(ctx, "exampleSecretCodespacesOrganizationSecret", &github.CodespacesOrganizationSecretArgs{
+// SecretName: pulumi.String("example_secret_name"),
+// Visibility: pulumi.String("private"),
+// PlaintextValue: pulumi.Any(_var.Some_secret_string),
+// })
+// if err != nil {
+// return err
+// }
+// _, err = github.NewCodespacesOrganizationSecret(ctx, "exampleSecretIndex/codespacesOrganizationSecretCodespacesOrganizationSecret", &github.CodespacesOrganizationSecretArgs{
+// SecretName: pulumi.String("example_secret_name"),
+// Visibility: pulumi.String("private"),
+// EncryptedValue: pulumi.Any(_var.Some_encrypted_secret_string),
+// })
+// if err != nil {
+// return err
+// }
+// return nil
+// })
+// }
+//
+// ```
+//
+// ```go
+// package main
+//
+// import (
+//
+// "github.com/pulumi/pulumi-github/sdk/v5/go/github"
+// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+//
+// )
+//
+// func main() {
+// pulumi.Run(func(ctx *pulumi.Context) error {
+// repo, err := github.LookupRepository(ctx, &github.LookupRepositoryArgs{
+// FullName: pulumi.StringRef("my-org/repo"),
+// }, nil)
+// if err != nil {
+// return err
+// }
+// _, err = github.NewCodespacesOrganizationSecret(ctx, "exampleSecretCodespacesOrganizationSecret", &github.CodespacesOrganizationSecretArgs{
+// SecretName: pulumi.String("example_secret_name"),
+// Visibility: pulumi.String("selected"),
+// PlaintextValue: pulumi.Any(_var.Some_secret_string),
+// SelectedRepositoryIds: pulumi.IntArray{
+// *pulumi.Int(repo.RepoId),
+// },
+// })
+// if err != nil {
+// return err
+// }
+// _, err = github.NewCodespacesOrganizationSecret(ctx, "exampleSecretIndex/codespacesOrganizationSecretCodespacesOrganizationSecret", &github.CodespacesOrganizationSecretArgs{
+// SecretName: pulumi.String("example_secret_name"),
+// Visibility: pulumi.String("selected"),
+// EncryptedValue: pulumi.Any(_var.Some_encrypted_secret_string),
+// SelectedRepositoryIds: pulumi.IntArray{
+// *pulumi.Int(repo.RepoId),
+// },
+// })
+// if err != nil {
+// return err
+// }
+// return nil
+// })
+// }
+//
+// ```
+//
+// ## Import
+//
+// # This resource can be imported using an ID made up of the secret name
+//
+// ```sh
+//
+// $ pulumi import github:index/codespacesOrganizationSecret:CodespacesOrganizationSecret test_secret test_secret_name
+//
+// ```
+//
+// NOTEthe implementation is limited in that it won't fetch the value of the `plaintext_value` or `encrypted_value` fields when importing. You may need to ignore changes for these as a workaround.
+type CodespacesOrganizationSecret struct {
+ pulumi.CustomResourceState
+
+ // Date of codespacesSecret creation.
+ CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
+ // Encrypted value of the secret using the GitHub public key in Base64 format.
+ EncryptedValue pulumi.StringPtrOutput `pulumi:"encryptedValue"`
+ // Plaintext value of the secret to be encrypted
+ PlaintextValue pulumi.StringPtrOutput `pulumi:"plaintextValue"`
+ // Name of the secret
+ SecretName pulumi.StringOutput `pulumi:"secretName"`
+ // An array of repository ids that can access the organization secret.
+ SelectedRepositoryIds pulumi.IntArrayOutput `pulumi:"selectedRepositoryIds"`
+ // Date of codespacesSecret update.
+ UpdatedAt pulumi.StringOutput `pulumi:"updatedAt"`
+ // Configures the access that repositories have to the organization secret.
+ // Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
+ Visibility pulumi.StringOutput `pulumi:"visibility"`
+}
+
+// NewCodespacesOrganizationSecret registers a new resource with the given unique name, arguments, and options.
+func NewCodespacesOrganizationSecret(ctx *pulumi.Context,
+ name string, args *CodespacesOrganizationSecretArgs, opts ...pulumi.ResourceOption) (*CodespacesOrganizationSecret, error) {
+ if args == nil {
+ return nil, errors.New("missing one or more required arguments")
+ }
+
+ if args.SecretName == nil {
+ return nil, errors.New("invalid value for required argument 'SecretName'")
+ }
+ if args.Visibility == nil {
+ return nil, errors.New("invalid value for required argument 'Visibility'")
+ }
+ if args.EncryptedValue != nil {
+ args.EncryptedValue = pulumi.ToSecret(args.EncryptedValue).(pulumi.StringPtrInput)
+ }
+ if args.PlaintextValue != nil {
+ args.PlaintextValue = pulumi.ToSecret(args.PlaintextValue).(pulumi.StringPtrInput)
+ }
+ secrets := pulumi.AdditionalSecretOutputs([]string{
+ "encryptedValue",
+ "plaintextValue",
+ })
+ opts = append(opts, secrets)
+ var resource CodespacesOrganizationSecret
+ err := ctx.RegisterResource("github:index/codespacesOrganizationSecret:CodespacesOrganizationSecret", name, args, &resource, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return &resource, nil
+}
+
+// GetCodespacesOrganizationSecret gets an existing CodespacesOrganizationSecret resource's state with the given name, ID, and optional
+// state properties that are used to uniquely qualify the lookup (nil if not required).
+func GetCodespacesOrganizationSecret(ctx *pulumi.Context,
+ name string, id pulumi.IDInput, state *CodespacesOrganizationSecretState, opts ...pulumi.ResourceOption) (*CodespacesOrganizationSecret, error) {
+ var resource CodespacesOrganizationSecret
+ err := ctx.ReadResource("github:index/codespacesOrganizationSecret:CodespacesOrganizationSecret", name, id, state, &resource, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return &resource, nil
+}
+
+// Input properties used for looking up and filtering CodespacesOrganizationSecret resources.
+type codespacesOrganizationSecretState struct {
+ // Date of codespacesSecret creation.
+ CreatedAt *string `pulumi:"createdAt"`
+ // Encrypted value of the secret using the GitHub public key in Base64 format.
+ EncryptedValue *string `pulumi:"encryptedValue"`
+ // Plaintext value of the secret to be encrypted
+ PlaintextValue *string `pulumi:"plaintextValue"`
+ // Name of the secret
+ SecretName *string `pulumi:"secretName"`
+ // An array of repository ids that can access the organization secret.
+ SelectedRepositoryIds []int `pulumi:"selectedRepositoryIds"`
+ // Date of codespacesSecret update.
+ UpdatedAt *string `pulumi:"updatedAt"`
+ // Configures the access that repositories have to the organization secret.
+ // Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
+ Visibility *string `pulumi:"visibility"`
+}
+
+type CodespacesOrganizationSecretState struct {
+ // Date of codespacesSecret creation.
+ CreatedAt pulumi.StringPtrInput
+ // Encrypted value of the secret using the GitHub public key in Base64 format.
+ EncryptedValue pulumi.StringPtrInput
+ // Plaintext value of the secret to be encrypted
+ PlaintextValue pulumi.StringPtrInput
+ // Name of the secret
+ SecretName pulumi.StringPtrInput
+ // An array of repository ids that can access the organization secret.
+ SelectedRepositoryIds pulumi.IntArrayInput
+ // Date of codespacesSecret update.
+ UpdatedAt pulumi.StringPtrInput
+ // Configures the access that repositories have to the organization secret.
+ // Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
+ Visibility pulumi.StringPtrInput
+}
+
+func (CodespacesOrganizationSecretState) ElementType() reflect.Type {
+ return reflect.TypeOf((*codespacesOrganizationSecretState)(nil)).Elem()
+}
+
+type codespacesOrganizationSecretArgs struct {
+ // Encrypted value of the secret using the GitHub public key in Base64 format.
+ EncryptedValue *string `pulumi:"encryptedValue"`
+ // Plaintext value of the secret to be encrypted
+ PlaintextValue *string `pulumi:"plaintextValue"`
+ // Name of the secret
+ SecretName string `pulumi:"secretName"`
+ // An array of repository ids that can access the organization secret.
+ SelectedRepositoryIds []int `pulumi:"selectedRepositoryIds"`
+ // Configures the access that repositories have to the organization secret.
+ // Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
+ Visibility string `pulumi:"visibility"`
+}
+
+// The set of arguments for constructing a CodespacesOrganizationSecret resource.
+type CodespacesOrganizationSecretArgs struct {
+ // Encrypted value of the secret using the GitHub public key in Base64 format.
+ EncryptedValue pulumi.StringPtrInput
+ // Plaintext value of the secret to be encrypted
+ PlaintextValue pulumi.StringPtrInput
+ // Name of the secret
+ SecretName pulumi.StringInput
+ // An array of repository ids that can access the organization secret.
+ SelectedRepositoryIds pulumi.IntArrayInput
+ // Configures the access that repositories have to the organization secret.
+ // Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
+ Visibility pulumi.StringInput
+}
+
+func (CodespacesOrganizationSecretArgs) ElementType() reflect.Type {
+ return reflect.TypeOf((*codespacesOrganizationSecretArgs)(nil)).Elem()
+}
+
+type CodespacesOrganizationSecretInput interface {
+ pulumi.Input
+
+ ToCodespacesOrganizationSecretOutput() CodespacesOrganizationSecretOutput
+ ToCodespacesOrganizationSecretOutputWithContext(ctx context.Context) CodespacesOrganizationSecretOutput
+}
+
+func (*CodespacesOrganizationSecret) ElementType() reflect.Type {
+ return reflect.TypeOf((**CodespacesOrganizationSecret)(nil)).Elem()
+}
+
+func (i *CodespacesOrganizationSecret) ToCodespacesOrganizationSecretOutput() CodespacesOrganizationSecretOutput {
+ return i.ToCodespacesOrganizationSecretOutputWithContext(context.Background())
+}
+
+func (i *CodespacesOrganizationSecret) ToCodespacesOrganizationSecretOutputWithContext(ctx context.Context) CodespacesOrganizationSecretOutput {
+ return pulumi.ToOutputWithContext(ctx, i).(CodespacesOrganizationSecretOutput)
+}
+
+// CodespacesOrganizationSecretArrayInput is an input type that accepts CodespacesOrganizationSecretArray and CodespacesOrganizationSecretArrayOutput values.
+// You can construct a concrete instance of `CodespacesOrganizationSecretArrayInput` via:
+//
+// CodespacesOrganizationSecretArray{ CodespacesOrganizationSecretArgs{...} }
+type CodespacesOrganizationSecretArrayInput interface {
+ pulumi.Input
+
+ ToCodespacesOrganizationSecretArrayOutput() CodespacesOrganizationSecretArrayOutput
+ ToCodespacesOrganizationSecretArrayOutputWithContext(context.Context) CodespacesOrganizationSecretArrayOutput
+}
+
+type CodespacesOrganizationSecretArray []CodespacesOrganizationSecretInput
+
+func (CodespacesOrganizationSecretArray) ElementType() reflect.Type {
+ return reflect.TypeOf((*[]*CodespacesOrganizationSecret)(nil)).Elem()
+}
+
+func (i CodespacesOrganizationSecretArray) ToCodespacesOrganizationSecretArrayOutput() CodespacesOrganizationSecretArrayOutput {
+ return i.ToCodespacesOrganizationSecretArrayOutputWithContext(context.Background())
+}
+
+func (i CodespacesOrganizationSecretArray) ToCodespacesOrganizationSecretArrayOutputWithContext(ctx context.Context) CodespacesOrganizationSecretArrayOutput {
+ return pulumi.ToOutputWithContext(ctx, i).(CodespacesOrganizationSecretArrayOutput)
+}
+
+// CodespacesOrganizationSecretMapInput is an input type that accepts CodespacesOrganizationSecretMap and CodespacesOrganizationSecretMapOutput values.
+// You can construct a concrete instance of `CodespacesOrganizationSecretMapInput` via:
+//
+// CodespacesOrganizationSecretMap{ "key": CodespacesOrganizationSecretArgs{...} }
+type CodespacesOrganizationSecretMapInput interface {
+ pulumi.Input
+
+ ToCodespacesOrganizationSecretMapOutput() CodespacesOrganizationSecretMapOutput
+ ToCodespacesOrganizationSecretMapOutputWithContext(context.Context) CodespacesOrganizationSecretMapOutput
+}
+
+type CodespacesOrganizationSecretMap map[string]CodespacesOrganizationSecretInput
+
+func (CodespacesOrganizationSecretMap) ElementType() reflect.Type {
+ return reflect.TypeOf((*map[string]*CodespacesOrganizationSecret)(nil)).Elem()
+}
+
+func (i CodespacesOrganizationSecretMap) ToCodespacesOrganizationSecretMapOutput() CodespacesOrganizationSecretMapOutput {
+ return i.ToCodespacesOrganizationSecretMapOutputWithContext(context.Background())
+}
+
+func (i CodespacesOrganizationSecretMap) ToCodespacesOrganizationSecretMapOutputWithContext(ctx context.Context) CodespacesOrganizationSecretMapOutput {
+ return pulumi.ToOutputWithContext(ctx, i).(CodespacesOrganizationSecretMapOutput)
+}
+
+type CodespacesOrganizationSecretOutput struct{ *pulumi.OutputState }
+
+func (CodespacesOrganizationSecretOutput) ElementType() reflect.Type {
+ return reflect.TypeOf((**CodespacesOrganizationSecret)(nil)).Elem()
+}
+
+func (o CodespacesOrganizationSecretOutput) ToCodespacesOrganizationSecretOutput() CodespacesOrganizationSecretOutput {
+ return o
+}
+
+func (o CodespacesOrganizationSecretOutput) ToCodespacesOrganizationSecretOutputWithContext(ctx context.Context) CodespacesOrganizationSecretOutput {
+ return o
+}
+
+// Date of codespacesSecret creation.
+func (o CodespacesOrganizationSecretOutput) CreatedAt() pulumi.StringOutput {
+ return o.ApplyT(func(v *CodespacesOrganizationSecret) pulumi.StringOutput { return v.CreatedAt }).(pulumi.StringOutput)
+}
+
+// Encrypted value of the secret using the GitHub public key in Base64 format.
+func (o CodespacesOrganizationSecretOutput) EncryptedValue() pulumi.StringPtrOutput {
+ return o.ApplyT(func(v *CodespacesOrganizationSecret) pulumi.StringPtrOutput { return v.EncryptedValue }).(pulumi.StringPtrOutput)
+}
+
+// Plaintext value of the secret to be encrypted
+func (o CodespacesOrganizationSecretOutput) PlaintextValue() pulumi.StringPtrOutput {
+ return o.ApplyT(func(v *CodespacesOrganizationSecret) pulumi.StringPtrOutput { return v.PlaintextValue }).(pulumi.StringPtrOutput)
+}
+
+// Name of the secret
+func (o CodespacesOrganizationSecretOutput) SecretName() pulumi.StringOutput {
+ return o.ApplyT(func(v *CodespacesOrganizationSecret) pulumi.StringOutput { return v.SecretName }).(pulumi.StringOutput)
+}
+
+// An array of repository ids that can access the organization secret.
+func (o CodespacesOrganizationSecretOutput) SelectedRepositoryIds() pulumi.IntArrayOutput {
+ return o.ApplyT(func(v *CodespacesOrganizationSecret) pulumi.IntArrayOutput { return v.SelectedRepositoryIds }).(pulumi.IntArrayOutput)
+}
+
+// Date of codespacesSecret update.
+func (o CodespacesOrganizationSecretOutput) UpdatedAt() pulumi.StringOutput {
+ return o.ApplyT(func(v *CodespacesOrganizationSecret) pulumi.StringOutput { return v.UpdatedAt }).(pulumi.StringOutput)
+}
+
+// Configures the access that repositories have to the organization secret.
+// Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
+func (o CodespacesOrganizationSecretOutput) Visibility() pulumi.StringOutput {
+ return o.ApplyT(func(v *CodespacesOrganizationSecret) pulumi.StringOutput { return v.Visibility }).(pulumi.StringOutput)
+}
+
+type CodespacesOrganizationSecretArrayOutput struct{ *pulumi.OutputState }
+
+func (CodespacesOrganizationSecretArrayOutput) ElementType() reflect.Type {
+ return reflect.TypeOf((*[]*CodespacesOrganizationSecret)(nil)).Elem()
+}
+
+func (o CodespacesOrganizationSecretArrayOutput) ToCodespacesOrganizationSecretArrayOutput() CodespacesOrganizationSecretArrayOutput {
+ return o
+}
+
+func (o CodespacesOrganizationSecretArrayOutput) ToCodespacesOrganizationSecretArrayOutputWithContext(ctx context.Context) CodespacesOrganizationSecretArrayOutput {
+ return o
+}
+
+func (o CodespacesOrganizationSecretArrayOutput) Index(i pulumi.IntInput) CodespacesOrganizationSecretOutput {
+ return pulumi.All(o, i).ApplyT(func(vs []interface{}) *CodespacesOrganizationSecret {
+ return vs[0].([]*CodespacesOrganizationSecret)[vs[1].(int)]
+ }).(CodespacesOrganizationSecretOutput)
+}
+
+type CodespacesOrganizationSecretMapOutput struct{ *pulumi.OutputState }
+
+func (CodespacesOrganizationSecretMapOutput) ElementType() reflect.Type {
+ return reflect.TypeOf((*map[string]*CodespacesOrganizationSecret)(nil)).Elem()
+}
+
+func (o CodespacesOrganizationSecretMapOutput) ToCodespacesOrganizationSecretMapOutput() CodespacesOrganizationSecretMapOutput {
+ return o
+}
+
+func (o CodespacesOrganizationSecretMapOutput) ToCodespacesOrganizationSecretMapOutputWithContext(ctx context.Context) CodespacesOrganizationSecretMapOutput {
+ return o
+}
+
+func (o CodespacesOrganizationSecretMapOutput) MapIndex(k pulumi.StringInput) CodespacesOrganizationSecretOutput {
+ return pulumi.All(o, k).ApplyT(func(vs []interface{}) *CodespacesOrganizationSecret {
+ return vs[0].(map[string]*CodespacesOrganizationSecret)[vs[1].(string)]
+ }).(CodespacesOrganizationSecretOutput)
+}
+
+func init() {
+ pulumi.RegisterInputType(reflect.TypeOf((*CodespacesOrganizationSecretInput)(nil)).Elem(), &CodespacesOrganizationSecret{})
+ pulumi.RegisterInputType(reflect.TypeOf((*CodespacesOrganizationSecretArrayInput)(nil)).Elem(), CodespacesOrganizationSecretArray{})
+ pulumi.RegisterInputType(reflect.TypeOf((*CodespacesOrganizationSecretMapInput)(nil)).Elem(), CodespacesOrganizationSecretMap{})
+ pulumi.RegisterOutputType(CodespacesOrganizationSecretOutput{})
+ pulumi.RegisterOutputType(CodespacesOrganizationSecretArrayOutput{})
+ pulumi.RegisterOutputType(CodespacesOrganizationSecretMapOutput{})
+}
diff --git a/sdk/go/github/codespacesSecret.go b/sdk/go/github/codespacesSecret.go
new file mode 100644
index 00000000..bfcdaa3a
--- /dev/null
+++ b/sdk/go/github/codespacesSecret.go
@@ -0,0 +1,338 @@
+// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
+// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
+
+package github
+
+import (
+ "context"
+ "reflect"
+
+ "errors"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+)
+
+// ## Example Usage
+//
+// ```go
+// package main
+//
+// import (
+//
+// "github.com/pulumi/pulumi-github/sdk/v5/go/github"
+// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+//
+// )
+//
+// func main() {
+// pulumi.Run(func(ctx *pulumi.Context) error {
+// _, err := github.GetCodespacesPublicKey(ctx, &github.GetCodespacesPublicKeyArgs{
+// Repository: "example_repository",
+// }, nil)
+// if err != nil {
+// return err
+// }
+// _, err = github.NewCodespacesSecret(ctx, "exampleSecretCodespacesSecret", &github.CodespacesSecretArgs{
+// Repository: pulumi.String("example_repository"),
+// SecretName: pulumi.String("example_secret_name"),
+// PlaintextValue: pulumi.Any(_var.Some_secret_string),
+// })
+// if err != nil {
+// return err
+// }
+// _, err = github.NewCodespacesSecret(ctx, "exampleSecretIndex/codespacesSecretCodespacesSecret", &github.CodespacesSecretArgs{
+// Repository: pulumi.String("example_repository"),
+// SecretName: pulumi.String("example_secret_name"),
+// EncryptedValue: pulumi.Any(_var.Some_encrypted_secret_string),
+// })
+// if err != nil {
+// return err
+// }
+// return nil
+// })
+// }
+//
+// ```
+type CodespacesSecret struct {
+ pulumi.CustomResourceState
+
+ // Date of actionsSecret creation.
+ CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
+ // Encrypted value of the secret using the GitHub public key in Base64 format.
+ EncryptedValue pulumi.StringPtrOutput `pulumi:"encryptedValue"`
+ // Plaintext value of the secret to be encrypted
+ PlaintextValue pulumi.StringPtrOutput `pulumi:"plaintextValue"`
+ // Name of the repository
+ Repository pulumi.StringOutput `pulumi:"repository"`
+ // Name of the secret
+ SecretName pulumi.StringOutput `pulumi:"secretName"`
+ // Date of actionsSecret update.
+ UpdatedAt pulumi.StringOutput `pulumi:"updatedAt"`
+}
+
+// NewCodespacesSecret registers a new resource with the given unique name, arguments, and options.
+func NewCodespacesSecret(ctx *pulumi.Context,
+ name string, args *CodespacesSecretArgs, opts ...pulumi.ResourceOption) (*CodespacesSecret, error) {
+ if args == nil {
+ return nil, errors.New("missing one or more required arguments")
+ }
+
+ if args.Repository == nil {
+ return nil, errors.New("invalid value for required argument 'Repository'")
+ }
+ if args.SecretName == nil {
+ return nil, errors.New("invalid value for required argument 'SecretName'")
+ }
+ if args.EncryptedValue != nil {
+ args.EncryptedValue = pulumi.ToSecret(args.EncryptedValue).(pulumi.StringPtrInput)
+ }
+ if args.PlaintextValue != nil {
+ args.PlaintextValue = pulumi.ToSecret(args.PlaintextValue).(pulumi.StringPtrInput)
+ }
+ secrets := pulumi.AdditionalSecretOutputs([]string{
+ "encryptedValue",
+ "plaintextValue",
+ })
+ opts = append(opts, secrets)
+ var resource CodespacesSecret
+ err := ctx.RegisterResource("github:index/codespacesSecret:CodespacesSecret", name, args, &resource, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return &resource, nil
+}
+
+// GetCodespacesSecret gets an existing CodespacesSecret resource's state with the given name, ID, and optional
+// state properties that are used to uniquely qualify the lookup (nil if not required).
+func GetCodespacesSecret(ctx *pulumi.Context,
+ name string, id pulumi.IDInput, state *CodespacesSecretState, opts ...pulumi.ResourceOption) (*CodespacesSecret, error) {
+ var resource CodespacesSecret
+ err := ctx.ReadResource("github:index/codespacesSecret:CodespacesSecret", name, id, state, &resource, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return &resource, nil
+}
+
+// Input properties used for looking up and filtering CodespacesSecret resources.
+type codespacesSecretState struct {
+ // Date of actionsSecret creation.
+ CreatedAt *string `pulumi:"createdAt"`
+ // Encrypted value of the secret using the GitHub public key in Base64 format.
+ EncryptedValue *string `pulumi:"encryptedValue"`
+ // Plaintext value of the secret to be encrypted
+ PlaintextValue *string `pulumi:"plaintextValue"`
+ // Name of the repository
+ Repository *string `pulumi:"repository"`
+ // Name of the secret
+ SecretName *string `pulumi:"secretName"`
+ // Date of actionsSecret update.
+ UpdatedAt *string `pulumi:"updatedAt"`
+}
+
+type CodespacesSecretState struct {
+ // Date of actionsSecret creation.
+ CreatedAt pulumi.StringPtrInput
+ // Encrypted value of the secret using the GitHub public key in Base64 format.
+ EncryptedValue pulumi.StringPtrInput
+ // Plaintext value of the secret to be encrypted
+ PlaintextValue pulumi.StringPtrInput
+ // Name of the repository
+ Repository pulumi.StringPtrInput
+ // Name of the secret
+ SecretName pulumi.StringPtrInput
+ // Date of actionsSecret update.
+ UpdatedAt pulumi.StringPtrInput
+}
+
+func (CodespacesSecretState) ElementType() reflect.Type {
+ return reflect.TypeOf((*codespacesSecretState)(nil)).Elem()
+}
+
+type codespacesSecretArgs struct {
+ // Encrypted value of the secret using the GitHub public key in Base64 format.
+ EncryptedValue *string `pulumi:"encryptedValue"`
+ // Plaintext value of the secret to be encrypted
+ PlaintextValue *string `pulumi:"plaintextValue"`
+ // Name of the repository
+ Repository string `pulumi:"repository"`
+ // Name of the secret
+ SecretName string `pulumi:"secretName"`
+}
+
+// The set of arguments for constructing a CodespacesSecret resource.
+type CodespacesSecretArgs struct {
+ // Encrypted value of the secret using the GitHub public key in Base64 format.
+ EncryptedValue pulumi.StringPtrInput
+ // Plaintext value of the secret to be encrypted
+ PlaintextValue pulumi.StringPtrInput
+ // Name of the repository
+ Repository pulumi.StringInput
+ // Name of the secret
+ SecretName pulumi.StringInput
+}
+
+func (CodespacesSecretArgs) ElementType() reflect.Type {
+ return reflect.TypeOf((*codespacesSecretArgs)(nil)).Elem()
+}
+
+type CodespacesSecretInput interface {
+ pulumi.Input
+
+ ToCodespacesSecretOutput() CodespacesSecretOutput
+ ToCodespacesSecretOutputWithContext(ctx context.Context) CodespacesSecretOutput
+}
+
+func (*CodespacesSecret) ElementType() reflect.Type {
+ return reflect.TypeOf((**CodespacesSecret)(nil)).Elem()
+}
+
+func (i *CodespacesSecret) ToCodespacesSecretOutput() CodespacesSecretOutput {
+ return i.ToCodespacesSecretOutputWithContext(context.Background())
+}
+
+func (i *CodespacesSecret) ToCodespacesSecretOutputWithContext(ctx context.Context) CodespacesSecretOutput {
+ return pulumi.ToOutputWithContext(ctx, i).(CodespacesSecretOutput)
+}
+
+// CodespacesSecretArrayInput is an input type that accepts CodespacesSecretArray and CodespacesSecretArrayOutput values.
+// You can construct a concrete instance of `CodespacesSecretArrayInput` via:
+//
+// CodespacesSecretArray{ CodespacesSecretArgs{...} }
+type CodespacesSecretArrayInput interface {
+ pulumi.Input
+
+ ToCodespacesSecretArrayOutput() CodespacesSecretArrayOutput
+ ToCodespacesSecretArrayOutputWithContext(context.Context) CodespacesSecretArrayOutput
+}
+
+type CodespacesSecretArray []CodespacesSecretInput
+
+func (CodespacesSecretArray) ElementType() reflect.Type {
+ return reflect.TypeOf((*[]*CodespacesSecret)(nil)).Elem()
+}
+
+func (i CodespacesSecretArray) ToCodespacesSecretArrayOutput() CodespacesSecretArrayOutput {
+ return i.ToCodespacesSecretArrayOutputWithContext(context.Background())
+}
+
+func (i CodespacesSecretArray) ToCodespacesSecretArrayOutputWithContext(ctx context.Context) CodespacesSecretArrayOutput {
+ return pulumi.ToOutputWithContext(ctx, i).(CodespacesSecretArrayOutput)
+}
+
+// CodespacesSecretMapInput is an input type that accepts CodespacesSecretMap and CodespacesSecretMapOutput values.
+// You can construct a concrete instance of `CodespacesSecretMapInput` via:
+//
+// CodespacesSecretMap{ "key": CodespacesSecretArgs{...} }
+type CodespacesSecretMapInput interface {
+ pulumi.Input
+
+ ToCodespacesSecretMapOutput() CodespacesSecretMapOutput
+ ToCodespacesSecretMapOutputWithContext(context.Context) CodespacesSecretMapOutput
+}
+
+type CodespacesSecretMap map[string]CodespacesSecretInput
+
+func (CodespacesSecretMap) ElementType() reflect.Type {
+ return reflect.TypeOf((*map[string]*CodespacesSecret)(nil)).Elem()
+}
+
+func (i CodespacesSecretMap) ToCodespacesSecretMapOutput() CodespacesSecretMapOutput {
+ return i.ToCodespacesSecretMapOutputWithContext(context.Background())
+}
+
+func (i CodespacesSecretMap) ToCodespacesSecretMapOutputWithContext(ctx context.Context) CodespacesSecretMapOutput {
+ return pulumi.ToOutputWithContext(ctx, i).(CodespacesSecretMapOutput)
+}
+
+type CodespacesSecretOutput struct{ *pulumi.OutputState }
+
+func (CodespacesSecretOutput) ElementType() reflect.Type {
+ return reflect.TypeOf((**CodespacesSecret)(nil)).Elem()
+}
+
+func (o CodespacesSecretOutput) ToCodespacesSecretOutput() CodespacesSecretOutput {
+ return o
+}
+
+func (o CodespacesSecretOutput) ToCodespacesSecretOutputWithContext(ctx context.Context) CodespacesSecretOutput {
+ return o
+}
+
+// Date of actionsSecret creation.
+func (o CodespacesSecretOutput) CreatedAt() pulumi.StringOutput {
+ return o.ApplyT(func(v *CodespacesSecret) pulumi.StringOutput { return v.CreatedAt }).(pulumi.StringOutput)
+}
+
+// Encrypted value of the secret using the GitHub public key in Base64 format.
+func (o CodespacesSecretOutput) EncryptedValue() pulumi.StringPtrOutput {
+ return o.ApplyT(func(v *CodespacesSecret) pulumi.StringPtrOutput { return v.EncryptedValue }).(pulumi.StringPtrOutput)
+}
+
+// Plaintext value of the secret to be encrypted
+func (o CodespacesSecretOutput) PlaintextValue() pulumi.StringPtrOutput {
+ return o.ApplyT(func(v *CodespacesSecret) pulumi.StringPtrOutput { return v.PlaintextValue }).(pulumi.StringPtrOutput)
+}
+
+// Name of the repository
+func (o CodespacesSecretOutput) Repository() pulumi.StringOutput {
+ return o.ApplyT(func(v *CodespacesSecret) pulumi.StringOutput { return v.Repository }).(pulumi.StringOutput)
+}
+
+// Name of the secret
+func (o CodespacesSecretOutput) SecretName() pulumi.StringOutput {
+ return o.ApplyT(func(v *CodespacesSecret) pulumi.StringOutput { return v.SecretName }).(pulumi.StringOutput)
+}
+
+// Date of actionsSecret update.
+func (o CodespacesSecretOutput) UpdatedAt() pulumi.StringOutput {
+ return o.ApplyT(func(v *CodespacesSecret) pulumi.StringOutput { return v.UpdatedAt }).(pulumi.StringOutput)
+}
+
+type CodespacesSecretArrayOutput struct{ *pulumi.OutputState }
+
+func (CodespacesSecretArrayOutput) ElementType() reflect.Type {
+ return reflect.TypeOf((*[]*CodespacesSecret)(nil)).Elem()
+}
+
+func (o CodespacesSecretArrayOutput) ToCodespacesSecretArrayOutput() CodespacesSecretArrayOutput {
+ return o
+}
+
+func (o CodespacesSecretArrayOutput) ToCodespacesSecretArrayOutputWithContext(ctx context.Context) CodespacesSecretArrayOutput {
+ return o
+}
+
+func (o CodespacesSecretArrayOutput) Index(i pulumi.IntInput) CodespacesSecretOutput {
+ return pulumi.All(o, i).ApplyT(func(vs []interface{}) *CodespacesSecret {
+ return vs[0].([]*CodespacesSecret)[vs[1].(int)]
+ }).(CodespacesSecretOutput)
+}
+
+type CodespacesSecretMapOutput struct{ *pulumi.OutputState }
+
+func (CodespacesSecretMapOutput) ElementType() reflect.Type {
+ return reflect.TypeOf((*map[string]*CodespacesSecret)(nil)).Elem()
+}
+
+func (o CodespacesSecretMapOutput) ToCodespacesSecretMapOutput() CodespacesSecretMapOutput {
+ return o
+}
+
+func (o CodespacesSecretMapOutput) ToCodespacesSecretMapOutputWithContext(ctx context.Context) CodespacesSecretMapOutput {
+ return o
+}
+
+func (o CodespacesSecretMapOutput) MapIndex(k pulumi.StringInput) CodespacesSecretOutput {
+ return pulumi.All(o, k).ApplyT(func(vs []interface{}) *CodespacesSecret {
+ return vs[0].(map[string]*CodespacesSecret)[vs[1].(string)]
+ }).(CodespacesSecretOutput)
+}
+
+func init() {
+ pulumi.RegisterInputType(reflect.TypeOf((*CodespacesSecretInput)(nil)).Elem(), &CodespacesSecret{})
+ pulumi.RegisterInputType(reflect.TypeOf((*CodespacesSecretArrayInput)(nil)).Elem(), CodespacesSecretArray{})
+ pulumi.RegisterInputType(reflect.TypeOf((*CodespacesSecretMapInput)(nil)).Elem(), CodespacesSecretMap{})
+ pulumi.RegisterOutputType(CodespacesSecretOutput{})
+ pulumi.RegisterOutputType(CodespacesSecretArrayOutput{})
+ pulumi.RegisterOutputType(CodespacesSecretMapOutput{})
+}
diff --git a/sdk/go/github/codespacesUserSecret.go b/sdk/go/github/codespacesUserSecret.go
new file mode 100644
index 00000000..ed8baac4
--- /dev/null
+++ b/sdk/go/github/codespacesUserSecret.go
@@ -0,0 +1,351 @@
+// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
+// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
+
+package github
+
+import (
+ "context"
+ "reflect"
+
+ "errors"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+)
+
+// ## Example Usage
+//
+// ```go
+// package main
+//
+// import (
+//
+// "github.com/pulumi/pulumi-github/sdk/v5/go/github"
+// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+//
+// )
+//
+// func main() {
+// pulumi.Run(func(ctx *pulumi.Context) error {
+// repo, err := github.LookupRepository(ctx, &github.LookupRepositoryArgs{
+// FullName: pulumi.StringRef("my-org/repo"),
+// }, nil)
+// if err != nil {
+// return err
+// }
+// _, err = github.NewCodespacesUserSecret(ctx, "exampleSecretCodespacesUserSecret", &github.CodespacesUserSecretArgs{
+// SecretName: pulumi.String("example_secret_name"),
+// PlaintextValue: pulumi.Any(_var.Some_secret_string),
+// SelectedRepositoryIds: pulumi.IntArray{
+// *pulumi.Int(repo.RepoId),
+// },
+// })
+// if err != nil {
+// return err
+// }
+// _, err = github.NewCodespacesUserSecret(ctx, "exampleSecretIndex/codespacesUserSecretCodespacesUserSecret", &github.CodespacesUserSecretArgs{
+// SecretName: pulumi.String("example_secret_name"),
+// EncryptedValue: pulumi.Any(_var.Some_encrypted_secret_string),
+// SelectedRepositoryIds: pulumi.IntArray{
+// *pulumi.Int(repo.RepoId),
+// },
+// })
+// if err != nil {
+// return err
+// }
+// return nil
+// })
+// }
+//
+// ```
+//
+// ## Import
+//
+// # This resource can be imported using an ID made up of the secret name
+//
+// ```sh
+//
+// $ pulumi import github:index/codespacesUserSecret:CodespacesUserSecret test_secret test_secret_name
+//
+// ```
+//
+// NOTEthe implementation is limited in that it won't fetch the value of the `plaintext_value` or `encrypted_value` fields when importing. You may need to ignore changes for these as a workaround.
+type CodespacesUserSecret struct {
+ pulumi.CustomResourceState
+
+ // Date of codespacesSecret creation.
+ CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
+ // Encrypted value of the secret using the GitHub public key in Base64 format.
+ EncryptedValue pulumi.StringPtrOutput `pulumi:"encryptedValue"`
+ // Plaintext value of the secret to be encrypted
+ PlaintextValue pulumi.StringPtrOutput `pulumi:"plaintextValue"`
+ // Name of the secret
+ SecretName pulumi.StringOutput `pulumi:"secretName"`
+ // An array of repository ids that can access the user secret.
+ SelectedRepositoryIds pulumi.IntArrayOutput `pulumi:"selectedRepositoryIds"`
+ // Date of codespacesSecret update.
+ UpdatedAt pulumi.StringOutput `pulumi:"updatedAt"`
+}
+
+// NewCodespacesUserSecret registers a new resource with the given unique name, arguments, and options.
+func NewCodespacesUserSecret(ctx *pulumi.Context,
+ name string, args *CodespacesUserSecretArgs, opts ...pulumi.ResourceOption) (*CodespacesUserSecret, error) {
+ if args == nil {
+ return nil, errors.New("missing one or more required arguments")
+ }
+
+ if args.SecretName == nil {
+ return nil, errors.New("invalid value for required argument 'SecretName'")
+ }
+ if args.EncryptedValue != nil {
+ args.EncryptedValue = pulumi.ToSecret(args.EncryptedValue).(pulumi.StringPtrInput)
+ }
+ if args.PlaintextValue != nil {
+ args.PlaintextValue = pulumi.ToSecret(args.PlaintextValue).(pulumi.StringPtrInput)
+ }
+ secrets := pulumi.AdditionalSecretOutputs([]string{
+ "encryptedValue",
+ "plaintextValue",
+ })
+ opts = append(opts, secrets)
+ var resource CodespacesUserSecret
+ err := ctx.RegisterResource("github:index/codespacesUserSecret:CodespacesUserSecret", name, args, &resource, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return &resource, nil
+}
+
+// GetCodespacesUserSecret gets an existing CodespacesUserSecret resource's state with the given name, ID, and optional
+// state properties that are used to uniquely qualify the lookup (nil if not required).
+func GetCodespacesUserSecret(ctx *pulumi.Context,
+ name string, id pulumi.IDInput, state *CodespacesUserSecretState, opts ...pulumi.ResourceOption) (*CodespacesUserSecret, error) {
+ var resource CodespacesUserSecret
+ err := ctx.ReadResource("github:index/codespacesUserSecret:CodespacesUserSecret", name, id, state, &resource, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return &resource, nil
+}
+
+// Input properties used for looking up and filtering CodespacesUserSecret resources.
+type codespacesUserSecretState struct {
+ // Date of codespacesSecret creation.
+ CreatedAt *string `pulumi:"createdAt"`
+ // Encrypted value of the secret using the GitHub public key in Base64 format.
+ EncryptedValue *string `pulumi:"encryptedValue"`
+ // Plaintext value of the secret to be encrypted
+ PlaintextValue *string `pulumi:"plaintextValue"`
+ // Name of the secret
+ SecretName *string `pulumi:"secretName"`
+ // An array of repository ids that can access the user secret.
+ SelectedRepositoryIds []int `pulumi:"selectedRepositoryIds"`
+ // Date of codespacesSecret update.
+ UpdatedAt *string `pulumi:"updatedAt"`
+}
+
+type CodespacesUserSecretState struct {
+ // Date of codespacesSecret creation.
+ CreatedAt pulumi.StringPtrInput
+ // Encrypted value of the secret using the GitHub public key in Base64 format.
+ EncryptedValue pulumi.StringPtrInput
+ // Plaintext value of the secret to be encrypted
+ PlaintextValue pulumi.StringPtrInput
+ // Name of the secret
+ SecretName pulumi.StringPtrInput
+ // An array of repository ids that can access the user secret.
+ SelectedRepositoryIds pulumi.IntArrayInput
+ // Date of codespacesSecret update.
+ UpdatedAt pulumi.StringPtrInput
+}
+
+func (CodespacesUserSecretState) ElementType() reflect.Type {
+ return reflect.TypeOf((*codespacesUserSecretState)(nil)).Elem()
+}
+
+type codespacesUserSecretArgs struct {
+ // Encrypted value of the secret using the GitHub public key in Base64 format.
+ EncryptedValue *string `pulumi:"encryptedValue"`
+ // Plaintext value of the secret to be encrypted
+ PlaintextValue *string `pulumi:"plaintextValue"`
+ // Name of the secret
+ SecretName string `pulumi:"secretName"`
+ // An array of repository ids that can access the user secret.
+ SelectedRepositoryIds []int `pulumi:"selectedRepositoryIds"`
+}
+
+// The set of arguments for constructing a CodespacesUserSecret resource.
+type CodespacesUserSecretArgs struct {
+ // Encrypted value of the secret using the GitHub public key in Base64 format.
+ EncryptedValue pulumi.StringPtrInput
+ // Plaintext value of the secret to be encrypted
+ PlaintextValue pulumi.StringPtrInput
+ // Name of the secret
+ SecretName pulumi.StringInput
+ // An array of repository ids that can access the user secret.
+ SelectedRepositoryIds pulumi.IntArrayInput
+}
+
+func (CodespacesUserSecretArgs) ElementType() reflect.Type {
+ return reflect.TypeOf((*codespacesUserSecretArgs)(nil)).Elem()
+}
+
+type CodespacesUserSecretInput interface {
+ pulumi.Input
+
+ ToCodespacesUserSecretOutput() CodespacesUserSecretOutput
+ ToCodespacesUserSecretOutputWithContext(ctx context.Context) CodespacesUserSecretOutput
+}
+
+func (*CodespacesUserSecret) ElementType() reflect.Type {
+ return reflect.TypeOf((**CodespacesUserSecret)(nil)).Elem()
+}
+
+func (i *CodespacesUserSecret) ToCodespacesUserSecretOutput() CodespacesUserSecretOutput {
+ return i.ToCodespacesUserSecretOutputWithContext(context.Background())
+}
+
+func (i *CodespacesUserSecret) ToCodespacesUserSecretOutputWithContext(ctx context.Context) CodespacesUserSecretOutput {
+ return pulumi.ToOutputWithContext(ctx, i).(CodespacesUserSecretOutput)
+}
+
+// CodespacesUserSecretArrayInput is an input type that accepts CodespacesUserSecretArray and CodespacesUserSecretArrayOutput values.
+// You can construct a concrete instance of `CodespacesUserSecretArrayInput` via:
+//
+// CodespacesUserSecretArray{ CodespacesUserSecretArgs{...} }
+type CodespacesUserSecretArrayInput interface {
+ pulumi.Input
+
+ ToCodespacesUserSecretArrayOutput() CodespacesUserSecretArrayOutput
+ ToCodespacesUserSecretArrayOutputWithContext(context.Context) CodespacesUserSecretArrayOutput
+}
+
+type CodespacesUserSecretArray []CodespacesUserSecretInput
+
+func (CodespacesUserSecretArray) ElementType() reflect.Type {
+ return reflect.TypeOf((*[]*CodespacesUserSecret)(nil)).Elem()
+}
+
+func (i CodespacesUserSecretArray) ToCodespacesUserSecretArrayOutput() CodespacesUserSecretArrayOutput {
+ return i.ToCodespacesUserSecretArrayOutputWithContext(context.Background())
+}
+
+func (i CodespacesUserSecretArray) ToCodespacesUserSecretArrayOutputWithContext(ctx context.Context) CodespacesUserSecretArrayOutput {
+ return pulumi.ToOutputWithContext(ctx, i).(CodespacesUserSecretArrayOutput)
+}
+
+// CodespacesUserSecretMapInput is an input type that accepts CodespacesUserSecretMap and CodespacesUserSecretMapOutput values.
+// You can construct a concrete instance of `CodespacesUserSecretMapInput` via:
+//
+// CodespacesUserSecretMap{ "key": CodespacesUserSecretArgs{...} }
+type CodespacesUserSecretMapInput interface {
+ pulumi.Input
+
+ ToCodespacesUserSecretMapOutput() CodespacesUserSecretMapOutput
+ ToCodespacesUserSecretMapOutputWithContext(context.Context) CodespacesUserSecretMapOutput
+}
+
+type CodespacesUserSecretMap map[string]CodespacesUserSecretInput
+
+func (CodespacesUserSecretMap) ElementType() reflect.Type {
+ return reflect.TypeOf((*map[string]*CodespacesUserSecret)(nil)).Elem()
+}
+
+func (i CodespacesUserSecretMap) ToCodespacesUserSecretMapOutput() CodespacesUserSecretMapOutput {
+ return i.ToCodespacesUserSecretMapOutputWithContext(context.Background())
+}
+
+func (i CodespacesUserSecretMap) ToCodespacesUserSecretMapOutputWithContext(ctx context.Context) CodespacesUserSecretMapOutput {
+ return pulumi.ToOutputWithContext(ctx, i).(CodespacesUserSecretMapOutput)
+}
+
+type CodespacesUserSecretOutput struct{ *pulumi.OutputState }
+
+func (CodespacesUserSecretOutput) ElementType() reflect.Type {
+ return reflect.TypeOf((**CodespacesUserSecret)(nil)).Elem()
+}
+
+func (o CodespacesUserSecretOutput) ToCodespacesUserSecretOutput() CodespacesUserSecretOutput {
+ return o
+}
+
+func (o CodespacesUserSecretOutput) ToCodespacesUserSecretOutputWithContext(ctx context.Context) CodespacesUserSecretOutput {
+ return o
+}
+
+// Date of codespacesSecret creation.
+func (o CodespacesUserSecretOutput) CreatedAt() pulumi.StringOutput {
+ return o.ApplyT(func(v *CodespacesUserSecret) pulumi.StringOutput { return v.CreatedAt }).(pulumi.StringOutput)
+}
+
+// Encrypted value of the secret using the GitHub public key in Base64 format.
+func (o CodespacesUserSecretOutput) EncryptedValue() pulumi.StringPtrOutput {
+ return o.ApplyT(func(v *CodespacesUserSecret) pulumi.StringPtrOutput { return v.EncryptedValue }).(pulumi.StringPtrOutput)
+}
+
+// Plaintext value of the secret to be encrypted
+func (o CodespacesUserSecretOutput) PlaintextValue() pulumi.StringPtrOutput {
+ return o.ApplyT(func(v *CodespacesUserSecret) pulumi.StringPtrOutput { return v.PlaintextValue }).(pulumi.StringPtrOutput)
+}
+
+// Name of the secret
+func (o CodespacesUserSecretOutput) SecretName() pulumi.StringOutput {
+ return o.ApplyT(func(v *CodespacesUserSecret) pulumi.StringOutput { return v.SecretName }).(pulumi.StringOutput)
+}
+
+// An array of repository ids that can access the user secret.
+func (o CodespacesUserSecretOutput) SelectedRepositoryIds() pulumi.IntArrayOutput {
+ return o.ApplyT(func(v *CodespacesUserSecret) pulumi.IntArrayOutput { return v.SelectedRepositoryIds }).(pulumi.IntArrayOutput)
+}
+
+// Date of codespacesSecret update.
+func (o CodespacesUserSecretOutput) UpdatedAt() pulumi.StringOutput {
+ return o.ApplyT(func(v *CodespacesUserSecret) pulumi.StringOutput { return v.UpdatedAt }).(pulumi.StringOutput)
+}
+
+type CodespacesUserSecretArrayOutput struct{ *pulumi.OutputState }
+
+func (CodespacesUserSecretArrayOutput) ElementType() reflect.Type {
+ return reflect.TypeOf((*[]*CodespacesUserSecret)(nil)).Elem()
+}
+
+func (o CodespacesUserSecretArrayOutput) ToCodespacesUserSecretArrayOutput() CodespacesUserSecretArrayOutput {
+ return o
+}
+
+func (o CodespacesUserSecretArrayOutput) ToCodespacesUserSecretArrayOutputWithContext(ctx context.Context) CodespacesUserSecretArrayOutput {
+ return o
+}
+
+func (o CodespacesUserSecretArrayOutput) Index(i pulumi.IntInput) CodespacesUserSecretOutput {
+ return pulumi.All(o, i).ApplyT(func(vs []interface{}) *CodespacesUserSecret {
+ return vs[0].([]*CodespacesUserSecret)[vs[1].(int)]
+ }).(CodespacesUserSecretOutput)
+}
+
+type CodespacesUserSecretMapOutput struct{ *pulumi.OutputState }
+
+func (CodespacesUserSecretMapOutput) ElementType() reflect.Type {
+ return reflect.TypeOf((*map[string]*CodespacesUserSecret)(nil)).Elem()
+}
+
+func (o CodespacesUserSecretMapOutput) ToCodespacesUserSecretMapOutput() CodespacesUserSecretMapOutput {
+ return o
+}
+
+func (o CodespacesUserSecretMapOutput) ToCodespacesUserSecretMapOutputWithContext(ctx context.Context) CodespacesUserSecretMapOutput {
+ return o
+}
+
+func (o CodespacesUserSecretMapOutput) MapIndex(k pulumi.StringInput) CodespacesUserSecretOutput {
+ return pulumi.All(o, k).ApplyT(func(vs []interface{}) *CodespacesUserSecret {
+ return vs[0].(map[string]*CodespacesUserSecret)[vs[1].(string)]
+ }).(CodespacesUserSecretOutput)
+}
+
+func init() {
+ pulumi.RegisterInputType(reflect.TypeOf((*CodespacesUserSecretInput)(nil)).Elem(), &CodespacesUserSecret{})
+ pulumi.RegisterInputType(reflect.TypeOf((*CodespacesUserSecretArrayInput)(nil)).Elem(), CodespacesUserSecretArray{})
+ pulumi.RegisterInputType(reflect.TypeOf((*CodespacesUserSecretMapInput)(nil)).Elem(), CodespacesUserSecretMap{})
+ pulumi.RegisterOutputType(CodespacesUserSecretOutput{})
+ pulumi.RegisterOutputType(CodespacesUserSecretArrayOutput{})
+ pulumi.RegisterOutputType(CodespacesUserSecretMapOutput{})
+}
diff --git a/sdk/go/github/getCodespacesOrganizationPublicKey.go b/sdk/go/github/getCodespacesOrganizationPublicKey.go
new file mode 100644
index 00000000..b61b104b
--- /dev/null
+++ b/sdk/go/github/getCodespacesOrganizationPublicKey.go
@@ -0,0 +1,53 @@
+// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
+// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
+
+package github
+
+import (
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+)
+
+// Use this data source to retrieve information about a GitHub Codespaces Organization public key. This data source is required to be used with other GitHub secrets interactions.
+// Note that the provider `token` must have admin rights to an organization to retrieve it's Codespaces public key.
+//
+// ## Example Usage
+//
+// ```go
+// package main
+//
+// import (
+//
+// "github.com/pulumi/pulumi-github/sdk/v5/go/github"
+// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+//
+// )
+//
+// func main() {
+// pulumi.Run(func(ctx *pulumi.Context) error {
+// _, err := github.GetCodespacesOrganizationPublicKey(ctx, nil, nil)
+// if err != nil {
+// return err
+// }
+// return nil
+// })
+// }
+//
+// ```
+func GetCodespacesOrganizationPublicKey(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetCodespacesOrganizationPublicKeyResult, error) {
+ var rv GetCodespacesOrganizationPublicKeyResult
+ err := ctx.Invoke("github:index/getCodespacesOrganizationPublicKey:getCodespacesOrganizationPublicKey", nil, &rv, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return &rv, nil
+}
+
+// A collection of values returned by getCodespacesOrganizationPublicKey.
+type GetCodespacesOrganizationPublicKeyResult struct {
+ // The provider-assigned unique ID for this managed resource.
+ Id string `pulumi:"id"`
+ // Actual key retrieved.
+ Key string `pulumi:"key"`
+ // ID of the key that has been retrieved.
+ KeyId string `pulumi:"keyId"`
+}
diff --git a/sdk/go/github/getCodespacesOrganizationSecrets.go b/sdk/go/github/getCodespacesOrganizationSecrets.go
new file mode 100644
index 00000000..85ae76bd
--- /dev/null
+++ b/sdk/go/github/getCodespacesOrganizationSecrets.go
@@ -0,0 +1,50 @@
+// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
+// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
+
+package github
+
+import (
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+)
+
+// Use this data source to retrieve the list of codespaces secrets of the organization.
+//
+// ## Example Usage
+//
+// ```go
+// package main
+//
+// import (
+//
+// "github.com/pulumi/pulumi-github/sdk/v5/go/github"
+// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+//
+// )
+//
+// func main() {
+// pulumi.Run(func(ctx *pulumi.Context) error {
+// _, err := github.GetCodespacesOrganizationSecrets(ctx, nil, nil)
+// if err != nil {
+// return err
+// }
+// return nil
+// })
+// }
+//
+// ```
+func GetCodespacesOrganizationSecrets(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetCodespacesOrganizationSecretsResult, error) {
+ var rv GetCodespacesOrganizationSecretsResult
+ err := ctx.Invoke("github:index/getCodespacesOrganizationSecrets:getCodespacesOrganizationSecrets", nil, &rv, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return &rv, nil
+}
+
+// A collection of values returned by getCodespacesOrganizationSecrets.
+type GetCodespacesOrganizationSecretsResult struct {
+ // The provider-assigned unique ID for this managed resource.
+ Id string `pulumi:"id"`
+ // list of secrets for the repository
+ Secrets []GetCodespacesOrganizationSecretsSecret `pulumi:"secrets"`
+}
diff --git a/sdk/go/github/getCodespacesPublicKey.go b/sdk/go/github/getCodespacesPublicKey.go
new file mode 100644
index 00000000..325da2e3
--- /dev/null
+++ b/sdk/go/github/getCodespacesPublicKey.go
@@ -0,0 +1,126 @@
+// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
+// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
+
+package github
+
+import (
+ "context"
+ "reflect"
+
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+)
+
+// Use this data source to retrieve information about a GitHub Codespaces public key. This data source is required to be used with other GitHub secrets interactions.
+// Note that the provider `token` must have admin rights to a repository to retrieve it's Codespaces public key.
+//
+// ## Example Usage
+//
+// ```go
+// package main
+//
+// import (
+//
+// "github.com/pulumi/pulumi-github/sdk/v5/go/github"
+// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+//
+// )
+//
+// func main() {
+// pulumi.Run(func(ctx *pulumi.Context) error {
+// _, err := github.GetCodespacesPublicKey(ctx, &github.GetCodespacesPublicKeyArgs{
+// Repository: "example_repo",
+// }, nil)
+// if err != nil {
+// return err
+// }
+// return nil
+// })
+// }
+//
+// ```
+func GetCodespacesPublicKey(ctx *pulumi.Context, args *GetCodespacesPublicKeyArgs, opts ...pulumi.InvokeOption) (*GetCodespacesPublicKeyResult, error) {
+ var rv GetCodespacesPublicKeyResult
+ err := ctx.Invoke("github:index/getCodespacesPublicKey:getCodespacesPublicKey", args, &rv, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return &rv, nil
+}
+
+// A collection of arguments for invoking getCodespacesPublicKey.
+type GetCodespacesPublicKeyArgs struct {
+ // Name of the repository to get public key from.
+ Repository string `pulumi:"repository"`
+}
+
+// A collection of values returned by getCodespacesPublicKey.
+type GetCodespacesPublicKeyResult struct {
+ // The provider-assigned unique ID for this managed resource.
+ Id string `pulumi:"id"`
+ // Actual key retrieved.
+ Key string `pulumi:"key"`
+ // ID of the key that has been retrieved.
+ KeyId string `pulumi:"keyId"`
+ Repository string `pulumi:"repository"`
+}
+
+func GetCodespacesPublicKeyOutput(ctx *pulumi.Context, args GetCodespacesPublicKeyOutputArgs, opts ...pulumi.InvokeOption) GetCodespacesPublicKeyResultOutput {
+ return pulumi.ToOutputWithContext(context.Background(), args).
+ ApplyT(func(v interface{}) (GetCodespacesPublicKeyResult, error) {
+ args := v.(GetCodespacesPublicKeyArgs)
+ r, err := GetCodespacesPublicKey(ctx, &args, opts...)
+ var s GetCodespacesPublicKeyResult
+ if r != nil {
+ s = *r
+ }
+ return s, err
+ }).(GetCodespacesPublicKeyResultOutput)
+}
+
+// A collection of arguments for invoking getCodespacesPublicKey.
+type GetCodespacesPublicKeyOutputArgs struct {
+ // Name of the repository to get public key from.
+ Repository pulumi.StringInput `pulumi:"repository"`
+}
+
+func (GetCodespacesPublicKeyOutputArgs) ElementType() reflect.Type {
+ return reflect.TypeOf((*GetCodespacesPublicKeyArgs)(nil)).Elem()
+}
+
+// A collection of values returned by getCodespacesPublicKey.
+type GetCodespacesPublicKeyResultOutput struct{ *pulumi.OutputState }
+
+func (GetCodespacesPublicKeyResultOutput) ElementType() reflect.Type {
+ return reflect.TypeOf((*GetCodespacesPublicKeyResult)(nil)).Elem()
+}
+
+func (o GetCodespacesPublicKeyResultOutput) ToGetCodespacesPublicKeyResultOutput() GetCodespacesPublicKeyResultOutput {
+ return o
+}
+
+func (o GetCodespacesPublicKeyResultOutput) ToGetCodespacesPublicKeyResultOutputWithContext(ctx context.Context) GetCodespacesPublicKeyResultOutput {
+ return o
+}
+
+// The provider-assigned unique ID for this managed resource.
+func (o GetCodespacesPublicKeyResultOutput) Id() pulumi.StringOutput {
+ return o.ApplyT(func(v GetCodespacesPublicKeyResult) string { return v.Id }).(pulumi.StringOutput)
+}
+
+// Actual key retrieved.
+func (o GetCodespacesPublicKeyResultOutput) Key() pulumi.StringOutput {
+ return o.ApplyT(func(v GetCodespacesPublicKeyResult) string { return v.Key }).(pulumi.StringOutput)
+}
+
+// ID of the key that has been retrieved.
+func (o GetCodespacesPublicKeyResultOutput) KeyId() pulumi.StringOutput {
+ return o.ApplyT(func(v GetCodespacesPublicKeyResult) string { return v.KeyId }).(pulumi.StringOutput)
+}
+
+func (o GetCodespacesPublicKeyResultOutput) Repository() pulumi.StringOutput {
+ return o.ApplyT(func(v GetCodespacesPublicKeyResult) string { return v.Repository }).(pulumi.StringOutput)
+}
+
+func init() {
+ pulumi.RegisterOutputType(GetCodespacesPublicKeyResultOutput{})
+}
diff --git a/sdk/go/github/getCodespacesSecrets.go b/sdk/go/github/getCodespacesSecrets.go
new file mode 100644
index 00000000..f43d9c16
--- /dev/null
+++ b/sdk/go/github/getCodespacesSecrets.go
@@ -0,0 +1,135 @@
+// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
+// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
+
+package github
+
+import (
+ "context"
+ "reflect"
+
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+)
+
+// Use this data source to retrieve the list of codespaces secrets for a GitHub repository.
+//
+// ## Example Usage
+//
+// ```go
+// package main
+//
+// import (
+//
+// "github.com/pulumi/pulumi-github/sdk/v5/go/github"
+// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+//
+// )
+//
+// func main() {
+// pulumi.Run(func(ctx *pulumi.Context) error {
+// _, err := github.GetCodespacesSecrets(ctx, &github.GetCodespacesSecretsArgs{
+// Name: pulumi.StringRef("example_repository"),
+// }, nil)
+// if err != nil {
+// return err
+// }
+// _, err = github.GetCodespacesSecrets(ctx, &github.GetCodespacesSecretsArgs{
+// FullName: pulumi.StringRef("org/example_repository"),
+// }, nil)
+// if err != nil {
+// return err
+// }
+// return nil
+// })
+// }
+//
+// ```
+func GetCodespacesSecrets(ctx *pulumi.Context, args *GetCodespacesSecretsArgs, opts ...pulumi.InvokeOption) (*GetCodespacesSecretsResult, error) {
+ var rv GetCodespacesSecretsResult
+ err := ctx.Invoke("github:index/getCodespacesSecrets:getCodespacesSecrets", args, &rv, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return &rv, nil
+}
+
+// A collection of arguments for invoking getCodespacesSecrets.
+type GetCodespacesSecretsArgs struct {
+ // Full name of the repository (in `org/name` format).
+ FullName *string `pulumi:"fullName"`
+ // The name of the repository.
+ Name *string `pulumi:"name"`
+}
+
+// A collection of values returned by getCodespacesSecrets.
+type GetCodespacesSecretsResult struct {
+ FullName string `pulumi:"fullName"`
+ // The provider-assigned unique ID for this managed resource.
+ Id string `pulumi:"id"`
+ // Secret name
+ Name string `pulumi:"name"`
+ // list of codespaces secrets for the repository
+ Secrets []GetCodespacesSecretsSecret `pulumi:"secrets"`
+}
+
+func GetCodespacesSecretsOutput(ctx *pulumi.Context, args GetCodespacesSecretsOutputArgs, opts ...pulumi.InvokeOption) GetCodespacesSecretsResultOutput {
+ return pulumi.ToOutputWithContext(context.Background(), args).
+ ApplyT(func(v interface{}) (GetCodespacesSecretsResult, error) {
+ args := v.(GetCodespacesSecretsArgs)
+ r, err := GetCodespacesSecrets(ctx, &args, opts...)
+ var s GetCodespacesSecretsResult
+ if r != nil {
+ s = *r
+ }
+ return s, err
+ }).(GetCodespacesSecretsResultOutput)
+}
+
+// A collection of arguments for invoking getCodespacesSecrets.
+type GetCodespacesSecretsOutputArgs struct {
+ // Full name of the repository (in `org/name` format).
+ FullName pulumi.StringPtrInput `pulumi:"fullName"`
+ // The name of the repository.
+ Name pulumi.StringPtrInput `pulumi:"name"`
+}
+
+func (GetCodespacesSecretsOutputArgs) ElementType() reflect.Type {
+ return reflect.TypeOf((*GetCodespacesSecretsArgs)(nil)).Elem()
+}
+
+// A collection of values returned by getCodespacesSecrets.
+type GetCodespacesSecretsResultOutput struct{ *pulumi.OutputState }
+
+func (GetCodespacesSecretsResultOutput) ElementType() reflect.Type {
+ return reflect.TypeOf((*GetCodespacesSecretsResult)(nil)).Elem()
+}
+
+func (o GetCodespacesSecretsResultOutput) ToGetCodespacesSecretsResultOutput() GetCodespacesSecretsResultOutput {
+ return o
+}
+
+func (o GetCodespacesSecretsResultOutput) ToGetCodespacesSecretsResultOutputWithContext(ctx context.Context) GetCodespacesSecretsResultOutput {
+ return o
+}
+
+func (o GetCodespacesSecretsResultOutput) FullName() pulumi.StringOutput {
+ return o.ApplyT(func(v GetCodespacesSecretsResult) string { return v.FullName }).(pulumi.StringOutput)
+}
+
+// The provider-assigned unique ID for this managed resource.
+func (o GetCodespacesSecretsResultOutput) Id() pulumi.StringOutput {
+ return o.ApplyT(func(v GetCodespacesSecretsResult) string { return v.Id }).(pulumi.StringOutput)
+}
+
+// Secret name
+func (o GetCodespacesSecretsResultOutput) Name() pulumi.StringOutput {
+ return o.ApplyT(func(v GetCodespacesSecretsResult) string { return v.Name }).(pulumi.StringOutput)
+}
+
+// list of codespaces secrets for the repository
+func (o GetCodespacesSecretsResultOutput) Secrets() GetCodespacesSecretsSecretArrayOutput {
+ return o.ApplyT(func(v GetCodespacesSecretsResult) []GetCodespacesSecretsSecret { return v.Secrets }).(GetCodespacesSecretsSecretArrayOutput)
+}
+
+func init() {
+ pulumi.RegisterOutputType(GetCodespacesSecretsResultOutput{})
+}
diff --git a/sdk/go/github/getCodespacesUserPublicKey.go b/sdk/go/github/getCodespacesUserPublicKey.go
new file mode 100644
index 00000000..63c84dd3
--- /dev/null
+++ b/sdk/go/github/getCodespacesUserPublicKey.go
@@ -0,0 +1,53 @@
+// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
+// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
+
+package github
+
+import (
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+)
+
+// Use this data source to retrieve information about a GitHub Codespaces User public key. This data source is required to be used with other GitHub secrets interactions.
+// Note that the provider `token` must have admin rights to an user to retrieve it's Codespaces public key.
+//
+// ## Example Usage
+//
+// ```go
+// package main
+//
+// import (
+//
+// "github.com/pulumi/pulumi-github/sdk/v5/go/github"
+// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+//
+// )
+//
+// func main() {
+// pulumi.Run(func(ctx *pulumi.Context) error {
+// _, err := github.GetCodespacesUserPublicKey(ctx, nil, nil)
+// if err != nil {
+// return err
+// }
+// return nil
+// })
+// }
+//
+// ```
+func GetCodespacesUserPublicKey(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetCodespacesUserPublicKeyResult, error) {
+ var rv GetCodespacesUserPublicKeyResult
+ err := ctx.Invoke("github:index/getCodespacesUserPublicKey:getCodespacesUserPublicKey", nil, &rv, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return &rv, nil
+}
+
+// A collection of values returned by getCodespacesUserPublicKey.
+type GetCodespacesUserPublicKeyResult struct {
+ // The provider-assigned unique ID for this managed resource.
+ Id string `pulumi:"id"`
+ // Actual key retrieved.
+ Key string `pulumi:"key"`
+ // ID of the key that has been retrieved.
+ KeyId string `pulumi:"keyId"`
+}
diff --git a/sdk/go/github/getCodespacesUserSecrets.go b/sdk/go/github/getCodespacesUserSecrets.go
new file mode 100644
index 00000000..d7703898
--- /dev/null
+++ b/sdk/go/github/getCodespacesUserSecrets.go
@@ -0,0 +1,50 @@
+// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
+// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
+
+package github
+
+import (
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+)
+
+// Use this data source to retrieve the list of codespaces secrets of the user.
+//
+// ## Example Usage
+//
+// ```go
+// package main
+//
+// import (
+//
+// "github.com/pulumi/pulumi-github/sdk/v5/go/github"
+// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+//
+// )
+//
+// func main() {
+// pulumi.Run(func(ctx *pulumi.Context) error {
+// _, err := github.GetCodespacesUserSecrets(ctx, nil, nil)
+// if err != nil {
+// return err
+// }
+// return nil
+// })
+// }
+//
+// ```
+func GetCodespacesUserSecrets(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetCodespacesUserSecretsResult, error) {
+ var rv GetCodespacesUserSecretsResult
+ err := ctx.Invoke("github:index/getCodespacesUserSecrets:getCodespacesUserSecrets", nil, &rv, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return &rv, nil
+}
+
+// A collection of values returned by getCodespacesUserSecrets.
+type GetCodespacesUserSecretsResult struct {
+ // The provider-assigned unique ID for this managed resource.
+ Id string `pulumi:"id"`
+ // list of secrets for the repository
+ Secrets []GetCodespacesUserSecretsSecret `pulumi:"secrets"`
+}
diff --git a/sdk/go/github/getOrganizationCustomRole.go b/sdk/go/github/getOrganizationCustomRole.go
new file mode 100644
index 00000000..b5c82589
--- /dev/null
+++ b/sdk/go/github/getOrganizationCustomRole.go
@@ -0,0 +1,134 @@
+// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
+// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
+
+package github
+
+import (
+ "context"
+ "reflect"
+
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+)
+
+// Use this data source to retrieve information about a custom role in a GitHub Organization.
+//
+// > Note: Custom roles are currently only available in GitHub Enterprise Cloud.
+//
+// ## Example Usage
+//
+// ```go
+// package main
+//
+// import (
+//
+// "github.com/pulumi/pulumi-github/sdk/v5/go/github"
+// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+//
+// )
+//
+// func main() {
+// pulumi.Run(func(ctx *pulumi.Context) error {
+// _, err := github.LookupOrganizationCustomRole(ctx, &github.LookupOrganizationCustomRoleArgs{
+// Name: "example",
+// }, nil)
+// if err != nil {
+// return err
+// }
+// return nil
+// })
+// }
+//
+// ```
+func LookupOrganizationCustomRole(ctx *pulumi.Context, args *LookupOrganizationCustomRoleArgs, opts ...pulumi.InvokeOption) (*LookupOrganizationCustomRoleResult, error) {
+ var rv LookupOrganizationCustomRoleResult
+ err := ctx.Invoke("github:index/getOrganizationCustomRole:getOrganizationCustomRole", args, &rv, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return &rv, nil
+}
+
+// A collection of arguments for invoking getOrganizationCustomRole.
+type LookupOrganizationCustomRoleArgs struct {
+ // The name of the custom role.
+ Name string `pulumi:"name"`
+}
+
+// A collection of values returned by getOrganizationCustomRole.
+type LookupOrganizationCustomRoleResult struct {
+ // The system role from which the role inherits permissions.
+ BaseRole string `pulumi:"baseRole"`
+ // The description for the custom role.
+ Description string `pulumi:"description"`
+ // The provider-assigned unique ID for this managed resource.
+ Id string `pulumi:"id"`
+ Name string `pulumi:"name"`
+ // A list of additional permissions included in this role.
+ Permissions []string `pulumi:"permissions"`
+}
+
+func LookupOrganizationCustomRoleOutput(ctx *pulumi.Context, args LookupOrganizationCustomRoleOutputArgs, opts ...pulumi.InvokeOption) LookupOrganizationCustomRoleResultOutput {
+ return pulumi.ToOutputWithContext(context.Background(), args).
+ ApplyT(func(v interface{}) (LookupOrganizationCustomRoleResult, error) {
+ args := v.(LookupOrganizationCustomRoleArgs)
+ r, err := LookupOrganizationCustomRole(ctx, &args, opts...)
+ var s LookupOrganizationCustomRoleResult
+ if r != nil {
+ s = *r
+ }
+ return s, err
+ }).(LookupOrganizationCustomRoleResultOutput)
+}
+
+// A collection of arguments for invoking getOrganizationCustomRole.
+type LookupOrganizationCustomRoleOutputArgs struct {
+ // The name of the custom role.
+ Name pulumi.StringInput `pulumi:"name"`
+}
+
+func (LookupOrganizationCustomRoleOutputArgs) ElementType() reflect.Type {
+ return reflect.TypeOf((*LookupOrganizationCustomRoleArgs)(nil)).Elem()
+}
+
+// A collection of values returned by getOrganizationCustomRole.
+type LookupOrganizationCustomRoleResultOutput struct{ *pulumi.OutputState }
+
+func (LookupOrganizationCustomRoleResultOutput) ElementType() reflect.Type {
+ return reflect.TypeOf((*LookupOrganizationCustomRoleResult)(nil)).Elem()
+}
+
+func (o LookupOrganizationCustomRoleResultOutput) ToLookupOrganizationCustomRoleResultOutput() LookupOrganizationCustomRoleResultOutput {
+ return o
+}
+
+func (o LookupOrganizationCustomRoleResultOutput) ToLookupOrganizationCustomRoleResultOutputWithContext(ctx context.Context) LookupOrganizationCustomRoleResultOutput {
+ return o
+}
+
+// The system role from which the role inherits permissions.
+func (o LookupOrganizationCustomRoleResultOutput) BaseRole() pulumi.StringOutput {
+ return o.ApplyT(func(v LookupOrganizationCustomRoleResult) string { return v.BaseRole }).(pulumi.StringOutput)
+}
+
+// The description for the custom role.
+func (o LookupOrganizationCustomRoleResultOutput) Description() pulumi.StringOutput {
+ return o.ApplyT(func(v LookupOrganizationCustomRoleResult) string { return v.Description }).(pulumi.StringOutput)
+}
+
+// The provider-assigned unique ID for this managed resource.
+func (o LookupOrganizationCustomRoleResultOutput) Id() pulumi.StringOutput {
+ return o.ApplyT(func(v LookupOrganizationCustomRoleResult) string { return v.Id }).(pulumi.StringOutput)
+}
+
+func (o LookupOrganizationCustomRoleResultOutput) Name() pulumi.StringOutput {
+ return o.ApplyT(func(v LookupOrganizationCustomRoleResult) string { return v.Name }).(pulumi.StringOutput)
+}
+
+// A list of additional permissions included in this role.
+func (o LookupOrganizationCustomRoleResultOutput) Permissions() pulumi.StringArrayOutput {
+ return o.ApplyT(func(v LookupOrganizationCustomRoleResult) []string { return v.Permissions }).(pulumi.StringArrayOutput)
+}
+
+func init() {
+ pulumi.RegisterOutputType(LookupOrganizationCustomRoleResultOutput{})
+}
diff --git a/sdk/go/github/init.go b/sdk/go/github/init.go
index 4c73494a..01ae1c5e 100644
--- a/sdk/go/github/init.go
+++ b/sdk/go/github/init.go
@@ -58,6 +58,12 @@ func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi
r = &BranchProtection{}
case "github:index/branchProtectionV3:BranchProtectionV3":
r = &BranchProtectionV3{}
+ case "github:index/codespacesOrganizationSecret:CodespacesOrganizationSecret":
+ r = &CodespacesOrganizationSecret{}
+ case "github:index/codespacesSecret:CodespacesSecret":
+ r = &CodespacesSecret{}
+ case "github:index/codespacesUserSecret:CodespacesUserSecret":
+ r = &CodespacesUserSecret{}
case "github:index/dependabotOrganizationSecret:DependabotOrganizationSecret":
r = &DependabotOrganizationSecret{}
case "github:index/dependabotOrganizationSecretRepositories:DependabotOrganizationSecretRepositories":
@@ -76,6 +82,8 @@ func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi
r = &Membership{}
case "github:index/organizationBlock:OrganizationBlock":
r = &OrganizationBlock{}
+ case "github:index/organizationCustomRole:OrganizationCustomRole":
+ r = &OrganizationCustomRole{}
case "github:index/organizationProject:OrganizationProject":
r = &OrganizationProject{}
case "github:index/organizationSecurityManager:OrganizationSecurityManager":
@@ -257,6 +265,21 @@ func init() {
"index/branchProtectionV3",
&module{version},
)
+ pulumi.RegisterResourceModule(
+ "github",
+ "index/codespacesOrganizationSecret",
+ &module{version},
+ )
+ pulumi.RegisterResourceModule(
+ "github",
+ "index/codespacesSecret",
+ &module{version},
+ )
+ pulumi.RegisterResourceModule(
+ "github",
+ "index/codespacesUserSecret",
+ &module{version},
+ )
pulumi.RegisterResourceModule(
"github",
"index/dependabotOrganizationSecret",
@@ -302,6 +325,11 @@ func init() {
"index/organizationBlock",
&module{version},
)
+ pulumi.RegisterResourceModule(
+ "github",
+ "index/organizationCustomRole",
+ &module{version},
+ )
pulumi.RegisterResourceModule(
"github",
"index/organizationProject",
diff --git a/sdk/go/github/organizationCustomRole.go b/sdk/go/github/organizationCustomRole.go
new file mode 100644
index 00000000..e68743de
--- /dev/null
+++ b/sdk/go/github/organizationCustomRole.go
@@ -0,0 +1,325 @@
+// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
+// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
+
+package github
+
+import (
+ "context"
+ "reflect"
+
+ "errors"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+)
+
+// This resource allows you to create and manage custom roles in a GitHub Organization for use in repositories.
+//
+// > Note: Custom roles are currently only available in GitHub Enterprise Cloud.
+//
+// ## Example Usage
+//
+// ```go
+// package main
+//
+// import (
+//
+// "github.com/pulumi/pulumi-github/sdk/v5/go/github"
+// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+//
+// )
+//
+// func main() {
+// pulumi.Run(func(ctx *pulumi.Context) error {
+// _, err := github.NewOrganizationCustomRole(ctx, "example", &github.OrganizationCustomRoleArgs{
+// BaseRole: pulumi.String("read"),
+// Description: pulumi.String("Example custom role that uses the read role as its base"),
+// Permissions: pulumi.StringArray{
+// pulumi.String("add_assignee"),
+// pulumi.String("add_label"),
+// pulumi.String("bypass_branch_protection"),
+// pulumi.String("close_issue"),
+// pulumi.String("close_pull_request"),
+// pulumi.String("mark_as_duplicate"),
+// pulumi.String("create_tag"),
+// pulumi.String("delete_issue"),
+// pulumi.String("delete_tag"),
+// pulumi.String("manage_deploy_keys"),
+// pulumi.String("push_protected_branch"),
+// pulumi.String("read_code_scanning"),
+// pulumi.String("reopen_issue"),
+// pulumi.String("reopen_pull_request"),
+// pulumi.String("request_pr_review"),
+// pulumi.String("resolve_dependabot_alerts"),
+// pulumi.String("resolve_secret_scanning_alerts"),
+// pulumi.String("view_secret_scanning_alerts"),
+// pulumi.String("write_code_scanning"),
+// },
+// })
+// if err != nil {
+// return err
+// }
+// return nil
+// })
+// }
+//
+// ```
+//
+// ## Import
+//
+// Custom roles can be imported using the `id` of the role. The `id` of the custom role can be found using the [list custom roles in an organization](https://docs.github.com/en/enterprise-cloud@latest/rest/orgs/custom-roles#list-custom-repository-roles-in-an-organization) API.
+//
+// ```sh
+//
+// $ pulumi import github:index/organizationCustomRole:OrganizationCustomRole example 1234
+//
+// ```
+type OrganizationCustomRole struct {
+ pulumi.CustomResourceState
+
+ // The system role from which the role inherits permissions. Can be one of: `read`, `triage`, `write`, or `maintain`.
+ BaseRole pulumi.StringOutput `pulumi:"baseRole"`
+ // The description for the custom role.
+ Description pulumi.StringPtrOutput `pulumi:"description"`
+ // The name of the custom role.
+ Name pulumi.StringOutput `pulumi:"name"`
+ // A list of additional permissions included in this role. Must have a minimum of 1 additional permission. The list of available permissions can be found using the [list repository fine-grained permissions for an organization](https://docs.github.com/en/enterprise-cloud@latest/rest/orgs/custom-roles?apiVersion=2022-11-28#list-repository-fine-grained-permissions-for-an-organization) API.
+ Permissions pulumi.StringArrayOutput `pulumi:"permissions"`
+}
+
+// NewOrganizationCustomRole registers a new resource with the given unique name, arguments, and options.
+func NewOrganizationCustomRole(ctx *pulumi.Context,
+ name string, args *OrganizationCustomRoleArgs, opts ...pulumi.ResourceOption) (*OrganizationCustomRole, error) {
+ if args == nil {
+ return nil, errors.New("missing one or more required arguments")
+ }
+
+ if args.BaseRole == nil {
+ return nil, errors.New("invalid value for required argument 'BaseRole'")
+ }
+ if args.Permissions == nil {
+ return nil, errors.New("invalid value for required argument 'Permissions'")
+ }
+ var resource OrganizationCustomRole
+ err := ctx.RegisterResource("github:index/organizationCustomRole:OrganizationCustomRole", name, args, &resource, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return &resource, nil
+}
+
+// GetOrganizationCustomRole gets an existing OrganizationCustomRole resource's state with the given name, ID, and optional
+// state properties that are used to uniquely qualify the lookup (nil if not required).
+func GetOrganizationCustomRole(ctx *pulumi.Context,
+ name string, id pulumi.IDInput, state *OrganizationCustomRoleState, opts ...pulumi.ResourceOption) (*OrganizationCustomRole, error) {
+ var resource OrganizationCustomRole
+ err := ctx.ReadResource("github:index/organizationCustomRole:OrganizationCustomRole", name, id, state, &resource, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return &resource, nil
+}
+
+// Input properties used for looking up and filtering OrganizationCustomRole resources.
+type organizationCustomRoleState struct {
+ // The system role from which the role inherits permissions. Can be one of: `read`, `triage`, `write`, or `maintain`.
+ BaseRole *string `pulumi:"baseRole"`
+ // The description for the custom role.
+ Description *string `pulumi:"description"`
+ // The name of the custom role.
+ Name *string `pulumi:"name"`
+ // A list of additional permissions included in this role. Must have a minimum of 1 additional permission. The list of available permissions can be found using the [list repository fine-grained permissions for an organization](https://docs.github.com/en/enterprise-cloud@latest/rest/orgs/custom-roles?apiVersion=2022-11-28#list-repository-fine-grained-permissions-for-an-organization) API.
+ Permissions []string `pulumi:"permissions"`
+}
+
+type OrganizationCustomRoleState struct {
+ // The system role from which the role inherits permissions. Can be one of: `read`, `triage`, `write`, or `maintain`.
+ BaseRole pulumi.StringPtrInput
+ // The description for the custom role.
+ Description pulumi.StringPtrInput
+ // The name of the custom role.
+ Name pulumi.StringPtrInput
+ // A list of additional permissions included in this role. Must have a minimum of 1 additional permission. The list of available permissions can be found using the [list repository fine-grained permissions for an organization](https://docs.github.com/en/enterprise-cloud@latest/rest/orgs/custom-roles?apiVersion=2022-11-28#list-repository-fine-grained-permissions-for-an-organization) API.
+ Permissions pulumi.StringArrayInput
+}
+
+func (OrganizationCustomRoleState) ElementType() reflect.Type {
+ return reflect.TypeOf((*organizationCustomRoleState)(nil)).Elem()
+}
+
+type organizationCustomRoleArgs struct {
+ // The system role from which the role inherits permissions. Can be one of: `read`, `triage`, `write`, or `maintain`.
+ BaseRole string `pulumi:"baseRole"`
+ // The description for the custom role.
+ Description *string `pulumi:"description"`
+ // The name of the custom role.
+ Name *string `pulumi:"name"`
+ // A list of additional permissions included in this role. Must have a minimum of 1 additional permission. The list of available permissions can be found using the [list repository fine-grained permissions for an organization](https://docs.github.com/en/enterprise-cloud@latest/rest/orgs/custom-roles?apiVersion=2022-11-28#list-repository-fine-grained-permissions-for-an-organization) API.
+ Permissions []string `pulumi:"permissions"`
+}
+
+// The set of arguments for constructing a OrganizationCustomRole resource.
+type OrganizationCustomRoleArgs struct {
+ // The system role from which the role inherits permissions. Can be one of: `read`, `triage`, `write`, or `maintain`.
+ BaseRole pulumi.StringInput
+ // The description for the custom role.
+ Description pulumi.StringPtrInput
+ // The name of the custom role.
+ Name pulumi.StringPtrInput
+ // A list of additional permissions included in this role. Must have a minimum of 1 additional permission. The list of available permissions can be found using the [list repository fine-grained permissions for an organization](https://docs.github.com/en/enterprise-cloud@latest/rest/orgs/custom-roles?apiVersion=2022-11-28#list-repository-fine-grained-permissions-for-an-organization) API.
+ Permissions pulumi.StringArrayInput
+}
+
+func (OrganizationCustomRoleArgs) ElementType() reflect.Type {
+ return reflect.TypeOf((*organizationCustomRoleArgs)(nil)).Elem()
+}
+
+type OrganizationCustomRoleInput interface {
+ pulumi.Input
+
+ ToOrganizationCustomRoleOutput() OrganizationCustomRoleOutput
+ ToOrganizationCustomRoleOutputWithContext(ctx context.Context) OrganizationCustomRoleOutput
+}
+
+func (*OrganizationCustomRole) ElementType() reflect.Type {
+ return reflect.TypeOf((**OrganizationCustomRole)(nil)).Elem()
+}
+
+func (i *OrganizationCustomRole) ToOrganizationCustomRoleOutput() OrganizationCustomRoleOutput {
+ return i.ToOrganizationCustomRoleOutputWithContext(context.Background())
+}
+
+func (i *OrganizationCustomRole) ToOrganizationCustomRoleOutputWithContext(ctx context.Context) OrganizationCustomRoleOutput {
+ return pulumi.ToOutputWithContext(ctx, i).(OrganizationCustomRoleOutput)
+}
+
+// OrganizationCustomRoleArrayInput is an input type that accepts OrganizationCustomRoleArray and OrganizationCustomRoleArrayOutput values.
+// You can construct a concrete instance of `OrganizationCustomRoleArrayInput` via:
+//
+// OrganizationCustomRoleArray{ OrganizationCustomRoleArgs{...} }
+type OrganizationCustomRoleArrayInput interface {
+ pulumi.Input
+
+ ToOrganizationCustomRoleArrayOutput() OrganizationCustomRoleArrayOutput
+ ToOrganizationCustomRoleArrayOutputWithContext(context.Context) OrganizationCustomRoleArrayOutput
+}
+
+type OrganizationCustomRoleArray []OrganizationCustomRoleInput
+
+func (OrganizationCustomRoleArray) ElementType() reflect.Type {
+ return reflect.TypeOf((*[]*OrganizationCustomRole)(nil)).Elem()
+}
+
+func (i OrganizationCustomRoleArray) ToOrganizationCustomRoleArrayOutput() OrganizationCustomRoleArrayOutput {
+ return i.ToOrganizationCustomRoleArrayOutputWithContext(context.Background())
+}
+
+func (i OrganizationCustomRoleArray) ToOrganizationCustomRoleArrayOutputWithContext(ctx context.Context) OrganizationCustomRoleArrayOutput {
+ return pulumi.ToOutputWithContext(ctx, i).(OrganizationCustomRoleArrayOutput)
+}
+
+// OrganizationCustomRoleMapInput is an input type that accepts OrganizationCustomRoleMap and OrganizationCustomRoleMapOutput values.
+// You can construct a concrete instance of `OrganizationCustomRoleMapInput` via:
+//
+// OrganizationCustomRoleMap{ "key": OrganizationCustomRoleArgs{...} }
+type OrganizationCustomRoleMapInput interface {
+ pulumi.Input
+
+ ToOrganizationCustomRoleMapOutput() OrganizationCustomRoleMapOutput
+ ToOrganizationCustomRoleMapOutputWithContext(context.Context) OrganizationCustomRoleMapOutput
+}
+
+type OrganizationCustomRoleMap map[string]OrganizationCustomRoleInput
+
+func (OrganizationCustomRoleMap) ElementType() reflect.Type {
+ return reflect.TypeOf((*map[string]*OrganizationCustomRole)(nil)).Elem()
+}
+
+func (i OrganizationCustomRoleMap) ToOrganizationCustomRoleMapOutput() OrganizationCustomRoleMapOutput {
+ return i.ToOrganizationCustomRoleMapOutputWithContext(context.Background())
+}
+
+func (i OrganizationCustomRoleMap) ToOrganizationCustomRoleMapOutputWithContext(ctx context.Context) OrganizationCustomRoleMapOutput {
+ return pulumi.ToOutputWithContext(ctx, i).(OrganizationCustomRoleMapOutput)
+}
+
+type OrganizationCustomRoleOutput struct{ *pulumi.OutputState }
+
+func (OrganizationCustomRoleOutput) ElementType() reflect.Type {
+ return reflect.TypeOf((**OrganizationCustomRole)(nil)).Elem()
+}
+
+func (o OrganizationCustomRoleOutput) ToOrganizationCustomRoleOutput() OrganizationCustomRoleOutput {
+ return o
+}
+
+func (o OrganizationCustomRoleOutput) ToOrganizationCustomRoleOutputWithContext(ctx context.Context) OrganizationCustomRoleOutput {
+ return o
+}
+
+// The system role from which the role inherits permissions. Can be one of: `read`, `triage`, `write`, or `maintain`.
+func (o OrganizationCustomRoleOutput) BaseRole() pulumi.StringOutput {
+ return o.ApplyT(func(v *OrganizationCustomRole) pulumi.StringOutput { return v.BaseRole }).(pulumi.StringOutput)
+}
+
+// The description for the custom role.
+func (o OrganizationCustomRoleOutput) Description() pulumi.StringPtrOutput {
+ return o.ApplyT(func(v *OrganizationCustomRole) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput)
+}
+
+// The name of the custom role.
+func (o OrganizationCustomRoleOutput) Name() pulumi.StringOutput {
+ return o.ApplyT(func(v *OrganizationCustomRole) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
+}
+
+// A list of additional permissions included in this role. Must have a minimum of 1 additional permission. The list of available permissions can be found using the [list repository fine-grained permissions for an organization](https://docs.github.com/en/enterprise-cloud@latest/rest/orgs/custom-roles?apiVersion=2022-11-28#list-repository-fine-grained-permissions-for-an-organization) API.
+func (o OrganizationCustomRoleOutput) Permissions() pulumi.StringArrayOutput {
+ return o.ApplyT(func(v *OrganizationCustomRole) pulumi.StringArrayOutput { return v.Permissions }).(pulumi.StringArrayOutput)
+}
+
+type OrganizationCustomRoleArrayOutput struct{ *pulumi.OutputState }
+
+func (OrganizationCustomRoleArrayOutput) ElementType() reflect.Type {
+ return reflect.TypeOf((*[]*OrganizationCustomRole)(nil)).Elem()
+}
+
+func (o OrganizationCustomRoleArrayOutput) ToOrganizationCustomRoleArrayOutput() OrganizationCustomRoleArrayOutput {
+ return o
+}
+
+func (o OrganizationCustomRoleArrayOutput) ToOrganizationCustomRoleArrayOutputWithContext(ctx context.Context) OrganizationCustomRoleArrayOutput {
+ return o
+}
+
+func (o OrganizationCustomRoleArrayOutput) Index(i pulumi.IntInput) OrganizationCustomRoleOutput {
+ return pulumi.All(o, i).ApplyT(func(vs []interface{}) *OrganizationCustomRole {
+ return vs[0].([]*OrganizationCustomRole)[vs[1].(int)]
+ }).(OrganizationCustomRoleOutput)
+}
+
+type OrganizationCustomRoleMapOutput struct{ *pulumi.OutputState }
+
+func (OrganizationCustomRoleMapOutput) ElementType() reflect.Type {
+ return reflect.TypeOf((*map[string]*OrganizationCustomRole)(nil)).Elem()
+}
+
+func (o OrganizationCustomRoleMapOutput) ToOrganizationCustomRoleMapOutput() OrganizationCustomRoleMapOutput {
+ return o
+}
+
+func (o OrganizationCustomRoleMapOutput) ToOrganizationCustomRoleMapOutputWithContext(ctx context.Context) OrganizationCustomRoleMapOutput {
+ return o
+}
+
+func (o OrganizationCustomRoleMapOutput) MapIndex(k pulumi.StringInput) OrganizationCustomRoleOutput {
+ return pulumi.All(o, k).ApplyT(func(vs []interface{}) *OrganizationCustomRole {
+ return vs[0].(map[string]*OrganizationCustomRole)[vs[1].(string)]
+ }).(OrganizationCustomRoleOutput)
+}
+
+func init() {
+ pulumi.RegisterInputType(reflect.TypeOf((*OrganizationCustomRoleInput)(nil)).Elem(), &OrganizationCustomRole{})
+ pulumi.RegisterInputType(reflect.TypeOf((*OrganizationCustomRoleArrayInput)(nil)).Elem(), OrganizationCustomRoleArray{})
+ pulumi.RegisterInputType(reflect.TypeOf((*OrganizationCustomRoleMapInput)(nil)).Elem(), OrganizationCustomRoleMap{})
+ pulumi.RegisterOutputType(OrganizationCustomRoleOutput{})
+ pulumi.RegisterOutputType(OrganizationCustomRoleArrayOutput{})
+ pulumi.RegisterOutputType(OrganizationCustomRoleMapOutput{})
+}
diff --git a/sdk/go/github/pulumiTypes.go b/sdk/go/github/pulumiTypes.go
index 93e2fff7..5009cd7e 100644
--- a/sdk/go/github/pulumiTypes.go
+++ b/sdk/go/github/pulumiTypes.go
@@ -5004,6 +5004,369 @@ func (o GetBranchProtectionRulesRuleArrayOutput) Index(i pulumi.IntInput) GetBra
}).(GetBranchProtectionRulesRuleOutput)
}
+type GetCodespacesOrganizationSecretsSecret struct {
+ // Timestamp of the secret creation
+ CreatedAt string `pulumi:"createdAt"`
+ // Secret name
+ Name string `pulumi:"name"`
+ // Timestamp of the secret last update
+ UpdatedAt string `pulumi:"updatedAt"`
+ // Secret visibility
+ Visibility string `pulumi:"visibility"`
+}
+
+// GetCodespacesOrganizationSecretsSecretInput is an input type that accepts GetCodespacesOrganizationSecretsSecretArgs and GetCodespacesOrganizationSecretsSecretOutput values.
+// You can construct a concrete instance of `GetCodespacesOrganizationSecretsSecretInput` via:
+//
+// GetCodespacesOrganizationSecretsSecretArgs{...}
+type GetCodespacesOrganizationSecretsSecretInput interface {
+ pulumi.Input
+
+ ToGetCodespacesOrganizationSecretsSecretOutput() GetCodespacesOrganizationSecretsSecretOutput
+ ToGetCodespacesOrganizationSecretsSecretOutputWithContext(context.Context) GetCodespacesOrganizationSecretsSecretOutput
+}
+
+type GetCodespacesOrganizationSecretsSecretArgs struct {
+ // Timestamp of the secret creation
+ CreatedAt pulumi.StringInput `pulumi:"createdAt"`
+ // Secret name
+ Name pulumi.StringInput `pulumi:"name"`
+ // Timestamp of the secret last update
+ UpdatedAt pulumi.StringInput `pulumi:"updatedAt"`
+ // Secret visibility
+ Visibility pulumi.StringInput `pulumi:"visibility"`
+}
+
+func (GetCodespacesOrganizationSecretsSecretArgs) ElementType() reflect.Type {
+ return reflect.TypeOf((*GetCodespacesOrganizationSecretsSecret)(nil)).Elem()
+}
+
+func (i GetCodespacesOrganizationSecretsSecretArgs) ToGetCodespacesOrganizationSecretsSecretOutput() GetCodespacesOrganizationSecretsSecretOutput {
+ return i.ToGetCodespacesOrganizationSecretsSecretOutputWithContext(context.Background())
+}
+
+func (i GetCodespacesOrganizationSecretsSecretArgs) ToGetCodespacesOrganizationSecretsSecretOutputWithContext(ctx context.Context) GetCodespacesOrganizationSecretsSecretOutput {
+ return pulumi.ToOutputWithContext(ctx, i).(GetCodespacesOrganizationSecretsSecretOutput)
+}
+
+// GetCodespacesOrganizationSecretsSecretArrayInput is an input type that accepts GetCodespacesOrganizationSecretsSecretArray and GetCodespacesOrganizationSecretsSecretArrayOutput values.
+// You can construct a concrete instance of `GetCodespacesOrganizationSecretsSecretArrayInput` via:
+//
+// GetCodespacesOrganizationSecretsSecretArray{ GetCodespacesOrganizationSecretsSecretArgs{...} }
+type GetCodespacesOrganizationSecretsSecretArrayInput interface {
+ pulumi.Input
+
+ ToGetCodespacesOrganizationSecretsSecretArrayOutput() GetCodespacesOrganizationSecretsSecretArrayOutput
+ ToGetCodespacesOrganizationSecretsSecretArrayOutputWithContext(context.Context) GetCodespacesOrganizationSecretsSecretArrayOutput
+}
+
+type GetCodespacesOrganizationSecretsSecretArray []GetCodespacesOrganizationSecretsSecretInput
+
+func (GetCodespacesOrganizationSecretsSecretArray) ElementType() reflect.Type {
+ return reflect.TypeOf((*[]GetCodespacesOrganizationSecretsSecret)(nil)).Elem()
+}
+
+func (i GetCodespacesOrganizationSecretsSecretArray) ToGetCodespacesOrganizationSecretsSecretArrayOutput() GetCodespacesOrganizationSecretsSecretArrayOutput {
+ return i.ToGetCodespacesOrganizationSecretsSecretArrayOutputWithContext(context.Background())
+}
+
+func (i GetCodespacesOrganizationSecretsSecretArray) ToGetCodespacesOrganizationSecretsSecretArrayOutputWithContext(ctx context.Context) GetCodespacesOrganizationSecretsSecretArrayOutput {
+ return pulumi.ToOutputWithContext(ctx, i).(GetCodespacesOrganizationSecretsSecretArrayOutput)
+}
+
+type GetCodespacesOrganizationSecretsSecretOutput struct{ *pulumi.OutputState }
+
+func (GetCodespacesOrganizationSecretsSecretOutput) ElementType() reflect.Type {
+ return reflect.TypeOf((*GetCodespacesOrganizationSecretsSecret)(nil)).Elem()
+}
+
+func (o GetCodespacesOrganizationSecretsSecretOutput) ToGetCodespacesOrganizationSecretsSecretOutput() GetCodespacesOrganizationSecretsSecretOutput {
+ return o
+}
+
+func (o GetCodespacesOrganizationSecretsSecretOutput) ToGetCodespacesOrganizationSecretsSecretOutputWithContext(ctx context.Context) GetCodespacesOrganizationSecretsSecretOutput {
+ return o
+}
+
+// Timestamp of the secret creation
+func (o GetCodespacesOrganizationSecretsSecretOutput) CreatedAt() pulumi.StringOutput {
+ return o.ApplyT(func(v GetCodespacesOrganizationSecretsSecret) string { return v.CreatedAt }).(pulumi.StringOutput)
+}
+
+// Secret name
+func (o GetCodespacesOrganizationSecretsSecretOutput) Name() pulumi.StringOutput {
+ return o.ApplyT(func(v GetCodespacesOrganizationSecretsSecret) string { return v.Name }).(pulumi.StringOutput)
+}
+
+// Timestamp of the secret last update
+func (o GetCodespacesOrganizationSecretsSecretOutput) UpdatedAt() pulumi.StringOutput {
+ return o.ApplyT(func(v GetCodespacesOrganizationSecretsSecret) string { return v.UpdatedAt }).(pulumi.StringOutput)
+}
+
+// Secret visibility
+func (o GetCodespacesOrganizationSecretsSecretOutput) Visibility() pulumi.StringOutput {
+ return o.ApplyT(func(v GetCodespacesOrganizationSecretsSecret) string { return v.Visibility }).(pulumi.StringOutput)
+}
+
+type GetCodespacesOrganizationSecretsSecretArrayOutput struct{ *pulumi.OutputState }
+
+func (GetCodespacesOrganizationSecretsSecretArrayOutput) ElementType() reflect.Type {
+ return reflect.TypeOf((*[]GetCodespacesOrganizationSecretsSecret)(nil)).Elem()
+}
+
+func (o GetCodespacesOrganizationSecretsSecretArrayOutput) ToGetCodespacesOrganizationSecretsSecretArrayOutput() GetCodespacesOrganizationSecretsSecretArrayOutput {
+ return o
+}
+
+func (o GetCodespacesOrganizationSecretsSecretArrayOutput) ToGetCodespacesOrganizationSecretsSecretArrayOutputWithContext(ctx context.Context) GetCodespacesOrganizationSecretsSecretArrayOutput {
+ return o
+}
+
+func (o GetCodespacesOrganizationSecretsSecretArrayOutput) Index(i pulumi.IntInput) GetCodespacesOrganizationSecretsSecretOutput {
+ return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetCodespacesOrganizationSecretsSecret {
+ return vs[0].([]GetCodespacesOrganizationSecretsSecret)[vs[1].(int)]
+ }).(GetCodespacesOrganizationSecretsSecretOutput)
+}
+
+type GetCodespacesSecretsSecret struct {
+ // Timestamp of the secret creation
+ CreatedAt string `pulumi:"createdAt"`
+ // The name of the repository.
+ Name string `pulumi:"name"`
+ // Timestamp of the secret last update
+ UpdatedAt string `pulumi:"updatedAt"`
+}
+
+// GetCodespacesSecretsSecretInput is an input type that accepts GetCodespacesSecretsSecretArgs and GetCodespacesSecretsSecretOutput values.
+// You can construct a concrete instance of `GetCodespacesSecretsSecretInput` via:
+//
+// GetCodespacesSecretsSecretArgs{...}
+type GetCodespacesSecretsSecretInput interface {
+ pulumi.Input
+
+ ToGetCodespacesSecretsSecretOutput() GetCodespacesSecretsSecretOutput
+ ToGetCodespacesSecretsSecretOutputWithContext(context.Context) GetCodespacesSecretsSecretOutput
+}
+
+type GetCodespacesSecretsSecretArgs struct {
+ // Timestamp of the secret creation
+ CreatedAt pulumi.StringInput `pulumi:"createdAt"`
+ // The name of the repository.
+ Name pulumi.StringInput `pulumi:"name"`
+ // Timestamp of the secret last update
+ UpdatedAt pulumi.StringInput `pulumi:"updatedAt"`
+}
+
+func (GetCodespacesSecretsSecretArgs) ElementType() reflect.Type {
+ return reflect.TypeOf((*GetCodespacesSecretsSecret)(nil)).Elem()
+}
+
+func (i GetCodespacesSecretsSecretArgs) ToGetCodespacesSecretsSecretOutput() GetCodespacesSecretsSecretOutput {
+ return i.ToGetCodespacesSecretsSecretOutputWithContext(context.Background())
+}
+
+func (i GetCodespacesSecretsSecretArgs) ToGetCodespacesSecretsSecretOutputWithContext(ctx context.Context) GetCodespacesSecretsSecretOutput {
+ return pulumi.ToOutputWithContext(ctx, i).(GetCodespacesSecretsSecretOutput)
+}
+
+// GetCodespacesSecretsSecretArrayInput is an input type that accepts GetCodespacesSecretsSecretArray and GetCodespacesSecretsSecretArrayOutput values.
+// You can construct a concrete instance of `GetCodespacesSecretsSecretArrayInput` via:
+//
+// GetCodespacesSecretsSecretArray{ GetCodespacesSecretsSecretArgs{...} }
+type GetCodespacesSecretsSecretArrayInput interface {
+ pulumi.Input
+
+ ToGetCodespacesSecretsSecretArrayOutput() GetCodespacesSecretsSecretArrayOutput
+ ToGetCodespacesSecretsSecretArrayOutputWithContext(context.Context) GetCodespacesSecretsSecretArrayOutput
+}
+
+type GetCodespacesSecretsSecretArray []GetCodespacesSecretsSecretInput
+
+func (GetCodespacesSecretsSecretArray) ElementType() reflect.Type {
+ return reflect.TypeOf((*[]GetCodespacesSecretsSecret)(nil)).Elem()
+}
+
+func (i GetCodespacesSecretsSecretArray) ToGetCodespacesSecretsSecretArrayOutput() GetCodespacesSecretsSecretArrayOutput {
+ return i.ToGetCodespacesSecretsSecretArrayOutputWithContext(context.Background())
+}
+
+func (i GetCodespacesSecretsSecretArray) ToGetCodespacesSecretsSecretArrayOutputWithContext(ctx context.Context) GetCodespacesSecretsSecretArrayOutput {
+ return pulumi.ToOutputWithContext(ctx, i).(GetCodespacesSecretsSecretArrayOutput)
+}
+
+type GetCodespacesSecretsSecretOutput struct{ *pulumi.OutputState }
+
+func (GetCodespacesSecretsSecretOutput) ElementType() reflect.Type {
+ return reflect.TypeOf((*GetCodespacesSecretsSecret)(nil)).Elem()
+}
+
+func (o GetCodespacesSecretsSecretOutput) ToGetCodespacesSecretsSecretOutput() GetCodespacesSecretsSecretOutput {
+ return o
+}
+
+func (o GetCodespacesSecretsSecretOutput) ToGetCodespacesSecretsSecretOutputWithContext(ctx context.Context) GetCodespacesSecretsSecretOutput {
+ return o
+}
+
+// Timestamp of the secret creation
+func (o GetCodespacesSecretsSecretOutput) CreatedAt() pulumi.StringOutput {
+ return o.ApplyT(func(v GetCodespacesSecretsSecret) string { return v.CreatedAt }).(pulumi.StringOutput)
+}
+
+// The name of the repository.
+func (o GetCodespacesSecretsSecretOutput) Name() pulumi.StringOutput {
+ return o.ApplyT(func(v GetCodespacesSecretsSecret) string { return v.Name }).(pulumi.StringOutput)
+}
+
+// Timestamp of the secret last update
+func (o GetCodespacesSecretsSecretOutput) UpdatedAt() pulumi.StringOutput {
+ return o.ApplyT(func(v GetCodespacesSecretsSecret) string { return v.UpdatedAt }).(pulumi.StringOutput)
+}
+
+type GetCodespacesSecretsSecretArrayOutput struct{ *pulumi.OutputState }
+
+func (GetCodespacesSecretsSecretArrayOutput) ElementType() reflect.Type {
+ return reflect.TypeOf((*[]GetCodespacesSecretsSecret)(nil)).Elem()
+}
+
+func (o GetCodespacesSecretsSecretArrayOutput) ToGetCodespacesSecretsSecretArrayOutput() GetCodespacesSecretsSecretArrayOutput {
+ return o
+}
+
+func (o GetCodespacesSecretsSecretArrayOutput) ToGetCodespacesSecretsSecretArrayOutputWithContext(ctx context.Context) GetCodespacesSecretsSecretArrayOutput {
+ return o
+}
+
+func (o GetCodespacesSecretsSecretArrayOutput) Index(i pulumi.IntInput) GetCodespacesSecretsSecretOutput {
+ return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetCodespacesSecretsSecret {
+ return vs[0].([]GetCodespacesSecretsSecret)[vs[1].(int)]
+ }).(GetCodespacesSecretsSecretOutput)
+}
+
+type GetCodespacesUserSecretsSecret struct {
+ // Timestamp of the secret creation
+ CreatedAt string `pulumi:"createdAt"`
+ // Secret name
+ Name string `pulumi:"name"`
+ // Timestamp of the secret last update
+ UpdatedAt string `pulumi:"updatedAt"`
+ // Secret visibility
+ Visibility string `pulumi:"visibility"`
+}
+
+// GetCodespacesUserSecretsSecretInput is an input type that accepts GetCodespacesUserSecretsSecretArgs and GetCodespacesUserSecretsSecretOutput values.
+// You can construct a concrete instance of `GetCodespacesUserSecretsSecretInput` via:
+//
+// GetCodespacesUserSecretsSecretArgs{...}
+type GetCodespacesUserSecretsSecretInput interface {
+ pulumi.Input
+
+ ToGetCodespacesUserSecretsSecretOutput() GetCodespacesUserSecretsSecretOutput
+ ToGetCodespacesUserSecretsSecretOutputWithContext(context.Context) GetCodespacesUserSecretsSecretOutput
+}
+
+type GetCodespacesUserSecretsSecretArgs struct {
+ // Timestamp of the secret creation
+ CreatedAt pulumi.StringInput `pulumi:"createdAt"`
+ // Secret name
+ Name pulumi.StringInput `pulumi:"name"`
+ // Timestamp of the secret last update
+ UpdatedAt pulumi.StringInput `pulumi:"updatedAt"`
+ // Secret visibility
+ Visibility pulumi.StringInput `pulumi:"visibility"`
+}
+
+func (GetCodespacesUserSecretsSecretArgs) ElementType() reflect.Type {
+ return reflect.TypeOf((*GetCodespacesUserSecretsSecret)(nil)).Elem()
+}
+
+func (i GetCodespacesUserSecretsSecretArgs) ToGetCodespacesUserSecretsSecretOutput() GetCodespacesUserSecretsSecretOutput {
+ return i.ToGetCodespacesUserSecretsSecretOutputWithContext(context.Background())
+}
+
+func (i GetCodespacesUserSecretsSecretArgs) ToGetCodespacesUserSecretsSecretOutputWithContext(ctx context.Context) GetCodespacesUserSecretsSecretOutput {
+ return pulumi.ToOutputWithContext(ctx, i).(GetCodespacesUserSecretsSecretOutput)
+}
+
+// GetCodespacesUserSecretsSecretArrayInput is an input type that accepts GetCodespacesUserSecretsSecretArray and GetCodespacesUserSecretsSecretArrayOutput values.
+// You can construct a concrete instance of `GetCodespacesUserSecretsSecretArrayInput` via:
+//
+// GetCodespacesUserSecretsSecretArray{ GetCodespacesUserSecretsSecretArgs{...} }
+type GetCodespacesUserSecretsSecretArrayInput interface {
+ pulumi.Input
+
+ ToGetCodespacesUserSecretsSecretArrayOutput() GetCodespacesUserSecretsSecretArrayOutput
+ ToGetCodespacesUserSecretsSecretArrayOutputWithContext(context.Context) GetCodespacesUserSecretsSecretArrayOutput
+}
+
+type GetCodespacesUserSecretsSecretArray []GetCodespacesUserSecretsSecretInput
+
+func (GetCodespacesUserSecretsSecretArray) ElementType() reflect.Type {
+ return reflect.TypeOf((*[]GetCodespacesUserSecretsSecret)(nil)).Elem()
+}
+
+func (i GetCodespacesUserSecretsSecretArray) ToGetCodespacesUserSecretsSecretArrayOutput() GetCodespacesUserSecretsSecretArrayOutput {
+ return i.ToGetCodespacesUserSecretsSecretArrayOutputWithContext(context.Background())
+}
+
+func (i GetCodespacesUserSecretsSecretArray) ToGetCodespacesUserSecretsSecretArrayOutputWithContext(ctx context.Context) GetCodespacesUserSecretsSecretArrayOutput {
+ return pulumi.ToOutputWithContext(ctx, i).(GetCodespacesUserSecretsSecretArrayOutput)
+}
+
+type GetCodespacesUserSecretsSecretOutput struct{ *pulumi.OutputState }
+
+func (GetCodespacesUserSecretsSecretOutput) ElementType() reflect.Type {
+ return reflect.TypeOf((*GetCodespacesUserSecretsSecret)(nil)).Elem()
+}
+
+func (o GetCodespacesUserSecretsSecretOutput) ToGetCodespacesUserSecretsSecretOutput() GetCodespacesUserSecretsSecretOutput {
+ return o
+}
+
+func (o GetCodespacesUserSecretsSecretOutput) ToGetCodespacesUserSecretsSecretOutputWithContext(ctx context.Context) GetCodespacesUserSecretsSecretOutput {
+ return o
+}
+
+// Timestamp of the secret creation
+func (o GetCodespacesUserSecretsSecretOutput) CreatedAt() pulumi.StringOutput {
+ return o.ApplyT(func(v GetCodespacesUserSecretsSecret) string { return v.CreatedAt }).(pulumi.StringOutput)
+}
+
+// Secret name
+func (o GetCodespacesUserSecretsSecretOutput) Name() pulumi.StringOutput {
+ return o.ApplyT(func(v GetCodespacesUserSecretsSecret) string { return v.Name }).(pulumi.StringOutput)
+}
+
+// Timestamp of the secret last update
+func (o GetCodespacesUserSecretsSecretOutput) UpdatedAt() pulumi.StringOutput {
+ return o.ApplyT(func(v GetCodespacesUserSecretsSecret) string { return v.UpdatedAt }).(pulumi.StringOutput)
+}
+
+// Secret visibility
+func (o GetCodespacesUserSecretsSecretOutput) Visibility() pulumi.StringOutput {
+ return o.ApplyT(func(v GetCodespacesUserSecretsSecret) string { return v.Visibility }).(pulumi.StringOutput)
+}
+
+type GetCodespacesUserSecretsSecretArrayOutput struct{ *pulumi.OutputState }
+
+func (GetCodespacesUserSecretsSecretArrayOutput) ElementType() reflect.Type {
+ return reflect.TypeOf((*[]GetCodespacesUserSecretsSecret)(nil)).Elem()
+}
+
+func (o GetCodespacesUserSecretsSecretArrayOutput) ToGetCodespacesUserSecretsSecretArrayOutput() GetCodespacesUserSecretsSecretArrayOutput {
+ return o
+}
+
+func (o GetCodespacesUserSecretsSecretArrayOutput) ToGetCodespacesUserSecretsSecretArrayOutputWithContext(ctx context.Context) GetCodespacesUserSecretsSecretArrayOutput {
+ return o
+}
+
+func (o GetCodespacesUserSecretsSecretArrayOutput) Index(i pulumi.IntInput) GetCodespacesUserSecretsSecretOutput {
+ return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetCodespacesUserSecretsSecret {
+ return vs[0].([]GetCodespacesUserSecretsSecret)[vs[1].(int)]
+ }).(GetCodespacesUserSecretsSecretOutput)
+}
+
type GetCollaboratorsCollaborator struct {
// The GitHub API URL for the collaborator's events.
EventsUrl string `pulumi:"eventsUrl"`
@@ -8061,6 +8424,12 @@ func init() {
pulumi.RegisterInputType(reflect.TypeOf((*GetActionsVariablesVariableArrayInput)(nil)).Elem(), GetActionsVariablesVariableArray{})
pulumi.RegisterInputType(reflect.TypeOf((*GetBranchProtectionRulesRuleInput)(nil)).Elem(), GetBranchProtectionRulesRuleArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*GetBranchProtectionRulesRuleArrayInput)(nil)).Elem(), GetBranchProtectionRulesRuleArray{})
+ pulumi.RegisterInputType(reflect.TypeOf((*GetCodespacesOrganizationSecretsSecretInput)(nil)).Elem(), GetCodespacesOrganizationSecretsSecretArgs{})
+ pulumi.RegisterInputType(reflect.TypeOf((*GetCodespacesOrganizationSecretsSecretArrayInput)(nil)).Elem(), GetCodespacesOrganizationSecretsSecretArray{})
+ pulumi.RegisterInputType(reflect.TypeOf((*GetCodespacesSecretsSecretInput)(nil)).Elem(), GetCodespacesSecretsSecretArgs{})
+ pulumi.RegisterInputType(reflect.TypeOf((*GetCodespacesSecretsSecretArrayInput)(nil)).Elem(), GetCodespacesSecretsSecretArray{})
+ pulumi.RegisterInputType(reflect.TypeOf((*GetCodespacesUserSecretsSecretInput)(nil)).Elem(), GetCodespacesUserSecretsSecretArgs{})
+ pulumi.RegisterInputType(reflect.TypeOf((*GetCodespacesUserSecretsSecretArrayInput)(nil)).Elem(), GetCodespacesUserSecretsSecretArray{})
pulumi.RegisterInputType(reflect.TypeOf((*GetCollaboratorsCollaboratorInput)(nil)).Elem(), GetCollaboratorsCollaboratorArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*GetCollaboratorsCollaboratorArrayInput)(nil)).Elem(), GetCollaboratorsCollaboratorArray{})
pulumi.RegisterInputType(reflect.TypeOf((*GetDependabotOrganizationSecretsSecretInput)(nil)).Elem(), GetDependabotOrganizationSecretsSecretArgs{})
@@ -8172,6 +8541,12 @@ func init() {
pulumi.RegisterOutputType(GetActionsVariablesVariableArrayOutput{})
pulumi.RegisterOutputType(GetBranchProtectionRulesRuleOutput{})
pulumi.RegisterOutputType(GetBranchProtectionRulesRuleArrayOutput{})
+ pulumi.RegisterOutputType(GetCodespacesOrganizationSecretsSecretOutput{})
+ pulumi.RegisterOutputType(GetCodespacesOrganizationSecretsSecretArrayOutput{})
+ pulumi.RegisterOutputType(GetCodespacesSecretsSecretOutput{})
+ pulumi.RegisterOutputType(GetCodespacesSecretsSecretArrayOutput{})
+ pulumi.RegisterOutputType(GetCodespacesUserSecretsSecretOutput{})
+ pulumi.RegisterOutputType(GetCodespacesUserSecretsSecretArrayOutput{})
pulumi.RegisterOutputType(GetCollaboratorsCollaboratorOutput{})
pulumi.RegisterOutputType(GetCollaboratorsCollaboratorArrayOutput{})
pulumi.RegisterOutputType(GetDependabotOrganizationSecretsSecretOutput{})
diff --git a/sdk/java/src/main/java/com/pulumi/github/CodespacesOrganizationSecret.java b/sdk/java/src/main/java/com/pulumi/github/CodespacesOrganizationSecret.java
new file mode 100644
index 00000000..e9b97920
--- /dev/null
+++ b/sdk/java/src/main/java/com/pulumi/github/CodespacesOrganizationSecret.java
@@ -0,0 +1,268 @@
+// *** WARNING: this file was generated by pulumi-java-gen. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+package com.pulumi.github;
+
+import com.pulumi.core.Output;
+import com.pulumi.core.annotations.Export;
+import com.pulumi.core.annotations.ResourceType;
+import com.pulumi.core.internal.Codegen;
+import com.pulumi.github.CodespacesOrganizationSecretArgs;
+import com.pulumi.github.Utilities;
+import com.pulumi.github.inputs.CodespacesOrganizationSecretState;
+import java.lang.Integer;
+import java.lang.String;
+import java.util.List;
+import java.util.Optional;
+import javax.annotation.Nullable;
+
+/**
+ * ## Example Usage
+ * ```java
+ * package generated_program;
+ *
+ * import com.pulumi.Context;
+ * import com.pulumi.Pulumi;
+ * import com.pulumi.core.Output;
+ * import com.pulumi.github.CodespacesOrganizationSecret;
+ * import com.pulumi.github.CodespacesOrganizationSecretArgs;
+ * import java.util.List;
+ * import java.util.ArrayList;
+ * import java.util.Map;
+ * import java.io.File;
+ * import java.nio.file.Files;
+ * import java.nio.file.Paths;
+ *
+ * public class App {
+ * public static void main(String[] args) {
+ * Pulumi.run(App::stack);
+ * }
+ *
+ * public static void stack(Context ctx) {
+ * var exampleSecretCodespacesOrganizationSecret = new CodespacesOrganizationSecret("exampleSecretCodespacesOrganizationSecret", CodespacesOrganizationSecretArgs.builder()
+ * .secretName("example_secret_name")
+ * .visibility("private")
+ * .plaintextValue(var_.some_secret_string())
+ * .build());
+ *
+ * var exampleSecretIndex_codespacesOrganizationSecretCodespacesOrganizationSecret = new CodespacesOrganizationSecret("exampleSecretIndex/codespacesOrganizationSecretCodespacesOrganizationSecret", CodespacesOrganizationSecretArgs.builder()
+ * .secretName("example_secret_name")
+ * .visibility("private")
+ * .encryptedValue(var_.some_encrypted_secret_string())
+ * .build());
+ *
+ * }
+ * }
+ * ```
+ * ```java
+ * package generated_program;
+ *
+ * import com.pulumi.Context;
+ * import com.pulumi.Pulumi;
+ * import com.pulumi.core.Output;
+ * import com.pulumi.github.GithubFunctions;
+ * import com.pulumi.github.inputs.GetRepositoryArgs;
+ * import com.pulumi.github.CodespacesOrganizationSecret;
+ * import com.pulumi.github.CodespacesOrganizationSecretArgs;
+ * import java.util.List;
+ * import java.util.ArrayList;
+ * import java.util.Map;
+ * import java.io.File;
+ * import java.nio.file.Files;
+ * import java.nio.file.Paths;
+ *
+ * public class App {
+ * public static void main(String[] args) {
+ * Pulumi.run(App::stack);
+ * }
+ *
+ * public static void stack(Context ctx) {
+ * final var repo = GithubFunctions.getRepository(GetRepositoryArgs.builder()
+ * .fullName("my-org/repo")
+ * .build());
+ *
+ * var exampleSecretCodespacesOrganizationSecret = new CodespacesOrganizationSecret("exampleSecretCodespacesOrganizationSecret", CodespacesOrganizationSecretArgs.builder()
+ * .secretName("example_secret_name")
+ * .visibility("selected")
+ * .plaintextValue(var_.some_secret_string())
+ * .selectedRepositoryIds(repo.applyValue(getRepositoryResult -> getRepositoryResult.repoId()))
+ * .build());
+ *
+ * var exampleSecretIndex_codespacesOrganizationSecretCodespacesOrganizationSecret = new CodespacesOrganizationSecret("exampleSecretIndex/codespacesOrganizationSecretCodespacesOrganizationSecret", CodespacesOrganizationSecretArgs.builder()
+ * .secretName("example_secret_name")
+ * .visibility("selected")
+ * .encryptedValue(var_.some_encrypted_secret_string())
+ * .selectedRepositoryIds(repo.applyValue(getRepositoryResult -> getRepositoryResult.repoId()))
+ * .build());
+ *
+ * }
+ * }
+ * ```
+ *
+ * ## Import
+ *
+ * This resource can be imported using an ID made up of the secret name
+ *
+ * ```sh
+ * $ pulumi import github:index/codespacesOrganizationSecret:CodespacesOrganizationSecret test_secret test_secret_name
+ * ```
+ *
+ * NOTEthe implementation is limited in that it won't fetch the value of the `plaintext_value` or `encrypted_value` fields when importing. You may need to ignore changes for these as a workaround.
+ *
+ */
+@ResourceType(type="github:index/codespacesOrganizationSecret:CodespacesOrganizationSecret")
+public class CodespacesOrganizationSecret extends com.pulumi.resources.CustomResource {
+ /**
+ * Date of codespaces_secret creation.
+ *
+ */
+ @Export(name="createdAt", type=String.class, parameters={})
+ private Output createdAt;
+
+ /**
+ * @return Date of codespaces_secret creation.
+ *
+ */
+ public Output createdAt() {
+ return this.createdAt;
+ }
+ /**
+ * Encrypted value of the secret using the GitHub public key in Base64 format.
+ *
+ */
+ @Export(name="encryptedValue", type=String.class, parameters={})
+ private Output* @Nullable */ String> encryptedValue;
+
+ /**
+ * @return Encrypted value of the secret using the GitHub public key in Base64 format.
+ *
+ */
+ public Output> encryptedValue() {
+ return Codegen.optional(this.encryptedValue);
+ }
+ /**
+ * Plaintext value of the secret to be encrypted
+ *
+ */
+ @Export(name="plaintextValue", type=String.class, parameters={})
+ private Output* @Nullable */ String> plaintextValue;
+
+ /**
+ * @return Plaintext value of the secret to be encrypted
+ *
+ */
+ public Output> plaintextValue() {
+ return Codegen.optional(this.plaintextValue);
+ }
+ /**
+ * Name of the secret
+ *
+ */
+ @Export(name="secretName", type=String.class, parameters={})
+ private Output secretName;
+
+ /**
+ * @return Name of the secret
+ *
+ */
+ public Output secretName() {
+ return this.secretName;
+ }
+ /**
+ * An array of repository ids that can access the organization secret.
+ *
+ */
+ @Export(name="selectedRepositoryIds", type=List.class, parameters={Integer.class})
+ private Output* @Nullable */ List> selectedRepositoryIds;
+
+ /**
+ * @return An array of repository ids that can access the organization secret.
+ *
+ */
+ public Output>> selectedRepositoryIds() {
+ return Codegen.optional(this.selectedRepositoryIds);
+ }
+ /**
+ * Date of codespaces_secret update.
+ *
+ */
+ @Export(name="updatedAt", type=String.class, parameters={})
+ private Output updatedAt;
+
+ /**
+ * @return Date of codespaces_secret update.
+ *
+ */
+ public Output updatedAt() {
+ return this.updatedAt;
+ }
+ /**
+ * Configures the access that repositories have to the organization secret.
+ * Must be one of `all`, `private`, `selected`. `selected_repository_ids` is required if set to `selected`.
+ *
+ */
+ @Export(name="visibility", type=String.class, parameters={})
+ private Output visibility;
+
+ /**
+ * @return Configures the access that repositories have to the organization secret.
+ * Must be one of `all`, `private`, `selected`. `selected_repository_ids` is required if set to `selected`.
+ *
+ */
+ public Output visibility() {
+ return this.visibility;
+ }
+
+ /**
+ *
+ * @param name The _unique_ name of the resulting resource.
+ */
+ public CodespacesOrganizationSecret(String name) {
+ this(name, CodespacesOrganizationSecretArgs.Empty);
+ }
+ /**
+ *
+ * @param name The _unique_ name of the resulting resource.
+ * @param args The arguments to use to populate this resource's properties.
+ */
+ public CodespacesOrganizationSecret(String name, CodespacesOrganizationSecretArgs args) {
+ this(name, args, null);
+ }
+ /**
+ *
+ * @param name The _unique_ name of the resulting resource.
+ * @param args The arguments to use to populate this resource's properties.
+ * @param options A bag of options that control this resource's behavior.
+ */
+ public CodespacesOrganizationSecret(String name, CodespacesOrganizationSecretArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
+ super("github:index/codespacesOrganizationSecret:CodespacesOrganizationSecret", name, args == null ? CodespacesOrganizationSecretArgs.Empty : args, makeResourceOptions(options, Codegen.empty()));
+ }
+
+ private CodespacesOrganizationSecret(String name, Output id, @Nullable CodespacesOrganizationSecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
+ super("github:index/codespacesOrganizationSecret:CodespacesOrganizationSecret", name, state, makeResourceOptions(options, id));
+ }
+
+ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
+ var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
+ .version(Utilities.getVersion())
+ .additionalSecretOutputs(List.of(
+ "encryptedValue",
+ "plaintextValue"
+ ))
+ .build();
+ return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
+ }
+
+ /**
+ * Get an existing Host resource's state with the given name, ID, and optional extra
+ * properties used to qualify the lookup.
+ *
+ * @param name The _unique_ name of the resulting resource.
+ * @param id The _unique_ provider ID of the resource to lookup.
+ * @param state
+ * @param options Optional settings to control the behavior of the CustomResource.
+ */
+ public static CodespacesOrganizationSecret get(String name, Output id, @Nullable CodespacesOrganizationSecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
+ return new CodespacesOrganizationSecret(name, id, state, options);
+ }
+}
diff --git a/sdk/java/src/main/java/com/pulumi/github/CodespacesOrganizationSecretArgs.java b/sdk/java/src/main/java/com/pulumi/github/CodespacesOrganizationSecretArgs.java
new file mode 100644
index 00000000..80b4e97b
--- /dev/null
+++ b/sdk/java/src/main/java/com/pulumi/github/CodespacesOrganizationSecretArgs.java
@@ -0,0 +1,249 @@
+// *** WARNING: this file was generated by pulumi-java-gen. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+package com.pulumi.github;
+
+import com.pulumi.core.Output;
+import com.pulumi.core.annotations.Import;
+import java.lang.Integer;
+import java.lang.String;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import javax.annotation.Nullable;
+
+
+public final class CodespacesOrganizationSecretArgs extends com.pulumi.resources.ResourceArgs {
+
+ public static final CodespacesOrganizationSecretArgs Empty = new CodespacesOrganizationSecretArgs();
+
+ /**
+ * Encrypted value of the secret using the GitHub public key in Base64 format.
+ *
+ */
+ @Import(name="encryptedValue")
+ private @Nullable Output encryptedValue;
+
+ /**
+ * @return Encrypted value of the secret using the GitHub public key in Base64 format.
+ *
+ */
+ public Optional