Google Cloud Native v0.30.0, Apr 14 23
Google Cloud Native v0.30.0, Apr 14 23
google-native.cloudbuild/v1.GithubEnterpriseConfig
Explore with Pulumi AI
Create an association between a GCP project and a GitHub Enterprise server.
Create GithubEnterpriseConfig Resource
new GithubEnterpriseConfig(name: string, args: GithubEnterpriseConfigArgs, opts?: CustomResourceOptions);
@overload
def GithubEnterpriseConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
app_id: Optional[str] = None,
display_name: Optional[str] = None,
ghe_config_id: Optional[str] = None,
host_url: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
peered_network: Optional[str] = None,
project: Optional[str] = None,
project_id: Optional[str] = None,
secrets: Optional[GitHubEnterpriseSecretsArgs] = None,
ssl_ca: Optional[str] = None,
webhook_key: Optional[str] = None)
@overload
def GithubEnterpriseConfig(resource_name: str,
args: GithubEnterpriseConfigArgs,
opts: Optional[ResourceOptions] = None)
func NewGithubEnterpriseConfig(ctx *Context, name string, args GithubEnterpriseConfigArgs, opts ...ResourceOption) (*GithubEnterpriseConfig, error)
public GithubEnterpriseConfig(string name, GithubEnterpriseConfigArgs args, CustomResourceOptions? opts = null)
public GithubEnterpriseConfig(String name, GithubEnterpriseConfigArgs args)
public GithubEnterpriseConfig(String name, GithubEnterpriseConfigArgs args, CustomResourceOptions options)
type: google-native:cloudbuild/v1:GithubEnterpriseConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GithubEnterpriseConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args GithubEnterpriseConfigArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args GithubEnterpriseConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GithubEnterpriseConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GithubEnterpriseConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
GithubEnterpriseConfig Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The GithubEnterpriseConfig resource accepts the following input properties:
- App
Id string The GitHub app id of the Cloud Build app on the GitHub Enterprise server.
- Display
Name string Name to display for this config.
- Ghe
Config stringId Optional. The ID to use for the GithubEnterpriseConfig, which will become the final component of the GithubEnterpriseConfig's resource name. ghe_config_id must meet the following requirements: + They must contain only alphanumeric characters and dashes. + They can be 1-64 characters long. + They must begin and end with an alphanumeric character
- Host
Url string The URL of the github enterprise host the configuration is for.
- Location string
- Name string
Optional. The full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}"
- Peered
Network string Optional. The network to be used when reaching out to the GitHub Enterprise server. The VPC network must be enabled for private service connection. This should be set if the GitHub Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the GitHub Enterprise server will be made over the public internet. Must be in the format
projects/{project}/global/networks/{network}
, where {project} is a project number or id and {network} is the name of a VPC network in the project.- Project string
- Project
Id string ID of the project.
- Secrets
Pulumi.
Google Native. Cloud Build. V1. Inputs. Git Hub Enterprise Secrets Args Names of secrets in Secret Manager.
- Ssl
Ca string Optional. SSL certificate to use for requests to GitHub Enterprise.
- Webhook
Key string The key that should be attached to webhook calls to the ReceiveWebhook endpoint.
- App
Id string The GitHub app id of the Cloud Build app on the GitHub Enterprise server.
- Display
Name string Name to display for this config.
- Ghe
Config stringId Optional. The ID to use for the GithubEnterpriseConfig, which will become the final component of the GithubEnterpriseConfig's resource name. ghe_config_id must meet the following requirements: + They must contain only alphanumeric characters and dashes. + They can be 1-64 characters long. + They must begin and end with an alphanumeric character
- Host
Url string The URL of the github enterprise host the configuration is for.
- Location string
- Name string
Optional. The full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}"
- Peered
Network string Optional. The network to be used when reaching out to the GitHub Enterprise server. The VPC network must be enabled for private service connection. This should be set if the GitHub Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the GitHub Enterprise server will be made over the public internet. Must be in the format
projects/{project}/global/networks/{network}
, where {project} is a project number or id and {network} is the name of a VPC network in the project.- Project string
- Project
Id string ID of the project.
- Secrets
Git
Hub Enterprise Secrets Args Names of secrets in Secret Manager.
- Ssl
Ca string Optional. SSL certificate to use for requests to GitHub Enterprise.
- Webhook
Key string The key that should be attached to webhook calls to the ReceiveWebhook endpoint.
- app
Id String The GitHub app id of the Cloud Build app on the GitHub Enterprise server.
- display
Name String Name to display for this config.
- ghe
Config StringId Optional. The ID to use for the GithubEnterpriseConfig, which will become the final component of the GithubEnterpriseConfig's resource name. ghe_config_id must meet the following requirements: + They must contain only alphanumeric characters and dashes. + They can be 1-64 characters long. + They must begin and end with an alphanumeric character
- host
Url String The URL of the github enterprise host the configuration is for.
- location String
- name String
Optional. The full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}"
- peered
Network String Optional. The network to be used when reaching out to the GitHub Enterprise server. The VPC network must be enabled for private service connection. This should be set if the GitHub Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the GitHub Enterprise server will be made over the public internet. Must be in the format
projects/{project}/global/networks/{network}
, where {project} is a project number or id and {network} is the name of a VPC network in the project.- project String
- project
Id String ID of the project.
- secrets
Git
Hub Enterprise Secrets Args Names of secrets in Secret Manager.
- ssl
Ca String Optional. SSL certificate to use for requests to GitHub Enterprise.
- webhook
Key String The key that should be attached to webhook calls to the ReceiveWebhook endpoint.
- app
Id string The GitHub app id of the Cloud Build app on the GitHub Enterprise server.
- display
Name string Name to display for this config.
- ghe
Config stringId Optional. The ID to use for the GithubEnterpriseConfig, which will become the final component of the GithubEnterpriseConfig's resource name. ghe_config_id must meet the following requirements: + They must contain only alphanumeric characters and dashes. + They can be 1-64 characters long. + They must begin and end with an alphanumeric character
- host
Url string The URL of the github enterprise host the configuration is for.
- location string
- name string
Optional. The full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}"
- peered
Network string Optional. The network to be used when reaching out to the GitHub Enterprise server. The VPC network must be enabled for private service connection. This should be set if the GitHub Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the GitHub Enterprise server will be made over the public internet. Must be in the format
projects/{project}/global/networks/{network}
, where {project} is a project number or id and {network} is the name of a VPC network in the project.- project string
- project
Id string ID of the project.
- secrets
Git
Hub Enterprise Secrets Args Names of secrets in Secret Manager.
- ssl
Ca string Optional. SSL certificate to use for requests to GitHub Enterprise.
- webhook
Key string The key that should be attached to webhook calls to the ReceiveWebhook endpoint.
- app_
id str The GitHub app id of the Cloud Build app on the GitHub Enterprise server.
- display_
name str Name to display for this config.
- ghe_
config_ strid Optional. The ID to use for the GithubEnterpriseConfig, which will become the final component of the GithubEnterpriseConfig's resource name. ghe_config_id must meet the following requirements: + They must contain only alphanumeric characters and dashes. + They can be 1-64 characters long. + They must begin and end with an alphanumeric character
- host_
url str The URL of the github enterprise host the configuration is for.
- location str
- name str
Optional. The full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}"
- peered_
network str Optional. The network to be used when reaching out to the GitHub Enterprise server. The VPC network must be enabled for private service connection. This should be set if the GitHub Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the GitHub Enterprise server will be made over the public internet. Must be in the format
projects/{project}/global/networks/{network}
, where {project} is a project number or id and {network} is the name of a VPC network in the project.- project str
- project_
id str ID of the project.
- secrets
Git
Hub Enterprise Secrets Args Names of secrets in Secret Manager.
- ssl_
ca str Optional. SSL certificate to use for requests to GitHub Enterprise.
- webhook_
key str The key that should be attached to webhook calls to the ReceiveWebhook endpoint.
- app
Id String The GitHub app id of the Cloud Build app on the GitHub Enterprise server.
- display
Name String Name to display for this config.
- ghe
Config StringId Optional. The ID to use for the GithubEnterpriseConfig, which will become the final component of the GithubEnterpriseConfig's resource name. ghe_config_id must meet the following requirements: + They must contain only alphanumeric characters and dashes. + They can be 1-64 characters long. + They must begin and end with an alphanumeric character
- host
Url String The URL of the github enterprise host the configuration is for.
- location String
- name String
Optional. The full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}"
- peered
Network String Optional. The network to be used when reaching out to the GitHub Enterprise server. The VPC network must be enabled for private service connection. This should be set if the GitHub Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the GitHub Enterprise server will be made over the public internet. Must be in the format
projects/{project}/global/networks/{network}
, where {project} is a project number or id and {network} is the name of a VPC network in the project.- project String
- project
Id String ID of the project.
- secrets Property Map
Names of secrets in Secret Manager.
- ssl
Ca String Optional. SSL certificate to use for requests to GitHub Enterprise.
- webhook
Key String The key that should be attached to webhook calls to the ReceiveWebhook endpoint.
Outputs
All input properties are implicitly available as output properties. Additionally, the GithubEnterpriseConfig resource produces the following output properties:
- Create
Time string Time when the installation was associated with the project.
- Id string
The provider-assigned unique ID for this managed resource.
- Create
Time string Time when the installation was associated with the project.
- Id string
The provider-assigned unique ID for this managed resource.
- create
Time String Time when the installation was associated with the project.
- id String
The provider-assigned unique ID for this managed resource.
- create
Time string Time when the installation was associated with the project.
- id string
The provider-assigned unique ID for this managed resource.
- create_
time str Time when the installation was associated with the project.
- id str
The provider-assigned unique ID for this managed resource.
- create
Time String Time when the installation was associated with the project.
- id String
The provider-assigned unique ID for this managed resource.
Supporting Types
GitHubEnterpriseSecrets
- Oauth
Client stringId Name The resource name for the OAuth client ID secret in Secret Manager.
- Oauth
Client stringId Version Name The resource name for the OAuth client ID secret version in Secret Manager.
- Oauth
Secret stringName The resource name for the OAuth secret in Secret Manager.
- Oauth
Secret stringVersion Name The resource name for the OAuth secret secret version in Secret Manager.
- Private
Key stringName The resource name for the private key secret.
- Private
Key stringVersion Name The resource name for the private key secret version.
- Webhook
Secret stringName The resource name for the webhook secret in Secret Manager.
- Webhook
Secret stringVersion Name The resource name for the webhook secret secret version in Secret Manager.
- Oauth
Client stringId Name The resource name for the OAuth client ID secret in Secret Manager.
- Oauth
Client stringId Version Name The resource name for the OAuth client ID secret version in Secret Manager.
- Oauth
Secret stringName The resource name for the OAuth secret in Secret Manager.
- Oauth
Secret stringVersion Name The resource name for the OAuth secret secret version in Secret Manager.
- Private
Key stringName The resource name for the private key secret.
- Private
Key stringVersion Name The resource name for the private key secret version.
- Webhook
Secret stringName The resource name for the webhook secret in Secret Manager.
- Webhook
Secret stringVersion Name The resource name for the webhook secret secret version in Secret Manager.
- oauth
Client StringId Name The resource name for the OAuth client ID secret in Secret Manager.
- oauth
Client StringId Version Name The resource name for the OAuth client ID secret version in Secret Manager.
- oauth
Secret StringName The resource name for the OAuth secret in Secret Manager.
- oauth
Secret StringVersion Name The resource name for the OAuth secret secret version in Secret Manager.
- private
Key StringName The resource name for the private key secret.
- private
Key StringVersion Name The resource name for the private key secret version.
- webhook
Secret StringName The resource name for the webhook secret in Secret Manager.
- webhook
Secret StringVersion Name The resource name for the webhook secret secret version in Secret Manager.
- oauth
Client stringId Name The resource name for the OAuth client ID secret in Secret Manager.
- oauth
Client stringId Version Name The resource name for the OAuth client ID secret version in Secret Manager.
- oauth
Secret stringName The resource name for the OAuth secret in Secret Manager.
- oauth
Secret stringVersion Name The resource name for the OAuth secret secret version in Secret Manager.
- private
Key stringName The resource name for the private key secret.
- private
Key stringVersion Name The resource name for the private key secret version.
- webhook
Secret stringName The resource name for the webhook secret in Secret Manager.
- webhook
Secret stringVersion Name The resource name for the webhook secret secret version in Secret Manager.
- oauth_
client_ strid_ name The resource name for the OAuth client ID secret in Secret Manager.
- oauth_
client_ strid_ version_ name The resource name for the OAuth client ID secret version in Secret Manager.
- oauth_
secret_ strname The resource name for the OAuth secret in Secret Manager.
- oauth_
secret_ strversion_ name The resource name for the OAuth secret secret version in Secret Manager.
- private_
key_ strname The resource name for the private key secret.
- private_
key_ strversion_ name The resource name for the private key secret version.
- webhook_
secret_ strname The resource name for the webhook secret in Secret Manager.
- webhook_
secret_ strversion_ name The resource name for the webhook secret secret version in Secret Manager.
- oauth
Client StringId Name The resource name for the OAuth client ID secret in Secret Manager.
- oauth
Client StringId Version Name The resource name for the OAuth client ID secret version in Secret Manager.
- oauth
Secret StringName The resource name for the OAuth secret in Secret Manager.
- oauth
Secret StringVersion Name The resource name for the OAuth secret secret version in Secret Manager.
- private
Key StringName The resource name for the private key secret.
- private
Key StringVersion Name The resource name for the private key secret version.
- webhook
Secret StringName The resource name for the webhook secret in Secret Manager.
- webhook
Secret StringVersion Name The resource name for the webhook secret secret version in Secret Manager.
GitHubEnterpriseSecretsResponse
- Oauth
Client stringId Name The resource name for the OAuth client ID secret in Secret Manager.
- Oauth
Client stringId Version Name The resource name for the OAuth client ID secret version in Secret Manager.
- Oauth
Secret stringName The resource name for the OAuth secret in Secret Manager.
- Oauth
Secret stringVersion Name The resource name for the OAuth secret secret version in Secret Manager.
- Private
Key stringName The resource name for the private key secret.
- Private
Key stringVersion Name The resource name for the private key secret version.
- Webhook
Secret stringName The resource name for the webhook secret in Secret Manager.
- Webhook
Secret stringVersion Name The resource name for the webhook secret secret version in Secret Manager.
- Oauth
Client stringId Name The resource name for the OAuth client ID secret in Secret Manager.
- Oauth
Client stringId Version Name The resource name for the OAuth client ID secret version in Secret Manager.
- Oauth
Secret stringName The resource name for the OAuth secret in Secret Manager.
- Oauth
Secret stringVersion Name The resource name for the OAuth secret secret version in Secret Manager.
- Private
Key stringName The resource name for the private key secret.
- Private
Key stringVersion Name The resource name for the private key secret version.
- Webhook
Secret stringName The resource name for the webhook secret in Secret Manager.
- Webhook
Secret stringVersion Name The resource name for the webhook secret secret version in Secret Manager.
- oauth
Client StringId Name The resource name for the OAuth client ID secret in Secret Manager.
- oauth
Client StringId Version Name The resource name for the OAuth client ID secret version in Secret Manager.
- oauth
Secret StringName The resource name for the OAuth secret in Secret Manager.
- oauth
Secret StringVersion Name The resource name for the OAuth secret secret version in Secret Manager.
- private
Key StringName The resource name for the private key secret.
- private
Key StringVersion Name The resource name for the private key secret version.
- webhook
Secret StringName The resource name for the webhook secret in Secret Manager.
- webhook
Secret StringVersion Name The resource name for the webhook secret secret version in Secret Manager.
- oauth
Client stringId Name The resource name for the OAuth client ID secret in Secret Manager.
- oauth
Client stringId Version Name The resource name for the OAuth client ID secret version in Secret Manager.
- oauth
Secret stringName The resource name for the OAuth secret in Secret Manager.
- oauth
Secret stringVersion Name The resource name for the OAuth secret secret version in Secret Manager.
- private
Key stringName The resource name for the private key secret.
- private
Key stringVersion Name The resource name for the private key secret version.
- webhook
Secret stringName The resource name for the webhook secret in Secret Manager.
- webhook
Secret stringVersion Name The resource name for the webhook secret secret version in Secret Manager.
- oauth_
client_ strid_ name The resource name for the OAuth client ID secret in Secret Manager.
- oauth_
client_ strid_ version_ name The resource name for the OAuth client ID secret version in Secret Manager.
- oauth_
secret_ strname The resource name for the OAuth secret in Secret Manager.
- oauth_
secret_ strversion_ name The resource name for the OAuth secret secret version in Secret Manager.
- private_
key_ strname The resource name for the private key secret.
- private_
key_ strversion_ name The resource name for the private key secret version.
- webhook_
secret_ strname The resource name for the webhook secret in Secret Manager.
- webhook_
secret_ strversion_ name The resource name for the webhook secret secret version in Secret Manager.
- oauth
Client StringId Name The resource name for the OAuth client ID secret in Secret Manager.
- oauth
Client StringId Version Name The resource name for the OAuth client ID secret version in Secret Manager.
- oauth
Secret StringName The resource name for the OAuth secret in Secret Manager.
- oauth
Secret StringVersion Name The resource name for the OAuth secret secret version in Secret Manager.
- private
Key StringName The resource name for the private key secret.
- private
Key StringVersion Name The resource name for the private key secret version.
- webhook
Secret StringName The resource name for the webhook secret in Secret Manager.
- webhook
Secret StringVersion Name The resource name for the webhook secret secret version in Secret Manager.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0