gcp.cloudbuildv2.Connection
Explore with Pulumi AI
A connection to a SCM like GitHub, GitHub Enterprise, Bitbucket Data Center/Cloud or GitLab.
To get more information about Connection, see:
- API documentation
- How-to Guides
Example Usage
Cloudbuildv2 Connection
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const my_connection = new gcp.cloudbuildv2.Connection("my-connection", {
location: "us-central1",
name: "tf-test-connection",
githubConfig: {
appInstallationId: 0,
authorizerCredential: {
oauthTokenSecretVersion: "projects/gcb-terraform-creds/secrets/github-pat/versions/1",
},
},
});
import pulumi
import pulumi_gcp as gcp
my_connection = gcp.cloudbuildv2.Connection("my-connection",
location="us-central1",
name="tf-test-connection",
github_config={
"app_installation_id": 0,
"authorizer_credential": {
"oauth_token_secret_version": "projects/gcb-terraform-creds/secrets/github-pat/versions/1",
},
})
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/cloudbuildv2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudbuildv2.NewConnection(ctx, "my-connection", &cloudbuildv2.ConnectionArgs{
Location: pulumi.String("us-central1"),
Name: pulumi.String("tf-test-connection"),
GithubConfig: &cloudbuildv2.ConnectionGithubConfigArgs{
AppInstallationId: pulumi.Int(0),
AuthorizerCredential: &cloudbuildv2.ConnectionGithubConfigAuthorizerCredentialArgs{
OauthTokenSecretVersion: pulumi.String("projects/gcb-terraform-creds/secrets/github-pat/versions/1"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var my_connection = new Gcp.CloudBuildV2.Connection("my-connection", new()
{
Location = "us-central1",
Name = "tf-test-connection",
GithubConfig = new Gcp.CloudBuildV2.Inputs.ConnectionGithubConfigArgs
{
AppInstallationId = 0,
AuthorizerCredential = new Gcp.CloudBuildV2.Inputs.ConnectionGithubConfigAuthorizerCredentialArgs
{
OauthTokenSecretVersion = "projects/gcb-terraform-creds/secrets/github-pat/versions/1",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.cloudbuildv2.Connection;
import com.pulumi.gcp.cloudbuildv2.ConnectionArgs;
import com.pulumi.gcp.cloudbuildv2.inputs.ConnectionGithubConfigArgs;
import com.pulumi.gcp.cloudbuildv2.inputs.ConnectionGithubConfigAuthorizerCredentialArgs;
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 my_connection = new Connection("my-connection", ConnectionArgs.builder()
.location("us-central1")
.name("tf-test-connection")
.githubConfig(ConnectionGithubConfigArgs.builder()
.appInstallationId(0)
.authorizerCredential(ConnectionGithubConfigAuthorizerCredentialArgs.builder()
.oauthTokenSecretVersion("projects/gcb-terraform-creds/secrets/github-pat/versions/1")
.build())
.build())
.build());
}
}
resources:
my-connection:
type: gcp:cloudbuildv2:Connection
properties:
location: us-central1
name: tf-test-connection
githubConfig:
appInstallationId: 0
authorizerCredential:
oauthTokenSecretVersion: projects/gcb-terraform-creds/secrets/github-pat/versions/1
Cloudbuildv2 Connection Ghe
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
import * as std from "@pulumi/std";
const private_key_secret = new gcp.secretmanager.Secret("private-key-secret", {
secretId: "ghe-pk-secret",
replication: {
auto: {},
},
});
const private_key_secret_version = new gcp.secretmanager.SecretVersion("private-key-secret-version", {
secret: private_key_secret.id,
secretData: std.file({
input: "private-key.pem",
}).then(invoke => invoke.result),
});
const webhook_secret_secret = new gcp.secretmanager.Secret("webhook-secret-secret", {
secretId: "github-token-secret",
replication: {
auto: {},
},
});
const webhook_secret_secret_version = new gcp.secretmanager.SecretVersion("webhook-secret-secret-version", {
secret: webhook_secret_secret.id,
secretData: "<webhook-secret-data>",
});
const p4sa-secretAccessor = gcp.organizations.getIAMPolicy({
bindings: [{
role: "roles/secretmanager.secretAccessor",
members: ["serviceAccount:service-123456789@gcp-sa-cloudbuild.iam.gserviceaccount.com"],
}],
});
const policy_pk = new gcp.secretmanager.SecretIamPolicy("policy-pk", {
secretId: private_key_secret.secretId,
policyData: p4sa_secretAccessor.then(p4sa_secretAccessor => p4sa_secretAccessor.policyData),
});
const policy_whs = new gcp.secretmanager.SecretIamPolicy("policy-whs", {
secretId: webhook_secret_secret.secretId,
policyData: p4sa_secretAccessor.then(p4sa_secretAccessor => p4sa_secretAccessor.policyData),
});
const my_connection = new gcp.cloudbuildv2.Connection("my-connection", {
location: "us-central1",
name: "my-terraform-ghe-connection",
githubEnterpriseConfig: {
hostUri: "https://ghe.com",
privateKeySecretVersion: private_key_secret_version.id,
webhookSecretSecretVersion: webhook_secret_secret_version.id,
appId: 200,
appSlug: "gcb-app",
appInstallationId: 300,
},
}, {
dependsOn: [
policy_pk,
policy_whs,
],
});
import pulumi
import pulumi_gcp as gcp
import pulumi_std as std
private_key_secret = gcp.secretmanager.Secret("private-key-secret",
secret_id="ghe-pk-secret",
replication={
"auto": {},
})
private_key_secret_version = gcp.secretmanager.SecretVersion("private-key-secret-version",
secret=private_key_secret.id,
secret_data=std.file(input="private-key.pem").result)
webhook_secret_secret = gcp.secretmanager.Secret("webhook-secret-secret",
secret_id="github-token-secret",
replication={
"auto": {},
})
webhook_secret_secret_version = gcp.secretmanager.SecretVersion("webhook-secret-secret-version",
secret=webhook_secret_secret.id,
secret_data="<webhook-secret-data>")
p4sa_secret_accessor = gcp.organizations.get_iam_policy(bindings=[{
"role": "roles/secretmanager.secretAccessor",
"members": ["serviceAccount:service-123456789@gcp-sa-cloudbuild.iam.gserviceaccount.com"],
}])
policy_pk = gcp.secretmanager.SecretIamPolicy("policy-pk",
secret_id=private_key_secret.secret_id,
policy_data=p4sa_secret_accessor.policy_data)
policy_whs = gcp.secretmanager.SecretIamPolicy("policy-whs",
secret_id=webhook_secret_secret.secret_id,
policy_data=p4sa_secret_accessor.policy_data)
my_connection = gcp.cloudbuildv2.Connection("my-connection",
location="us-central1",
name="my-terraform-ghe-connection",
github_enterprise_config={
"host_uri": "https://ghe.com",
"private_key_secret_version": private_key_secret_version.id,
"webhook_secret_secret_version": webhook_secret_secret_version.id,
"app_id": 200,
"app_slug": "gcb-app",
"app_installation_id": 300,
},
opts = pulumi.ResourceOptions(depends_on=[
policy_pk,
policy_whs,
]))
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/cloudbuildv2"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/organizations"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/secretmanager"
"github.com/pulumi/pulumi-std/sdk/go/std"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := secretmanager.NewSecret(ctx, "private-key-secret", &secretmanager.SecretArgs{
SecretId: pulumi.String("ghe-pk-secret"),
Replication: &secretmanager.SecretReplicationArgs{
Auto: &secretmanager.SecretReplicationAutoArgs{},
},
})
if err != nil {
return err
}
invokeFile, err := std.File(ctx, &std.FileArgs{
Input: "private-key.pem",
}, nil)
if err != nil {
return err
}
_, err = secretmanager.NewSecretVersion(ctx, "private-key-secret-version", &secretmanager.SecretVersionArgs{
Secret: private_key_secret.ID(),
SecretData: pulumi.String(invokeFile.Result),
})
if err != nil {
return err
}
_, err = secretmanager.NewSecret(ctx, "webhook-secret-secret", &secretmanager.SecretArgs{
SecretId: pulumi.String("github-token-secret"),
Replication: &secretmanager.SecretReplicationArgs{
Auto: &secretmanager.SecretReplicationAutoArgs{},
},
})
if err != nil {
return err
}
_, err = secretmanager.NewSecretVersion(ctx, "webhook-secret-secret-version", &secretmanager.SecretVersionArgs{
Secret: webhook_secret_secret.ID(),
SecretData: pulumi.String("<webhook-secret-data>"),
})
if err != nil {
return err
}
p4sa_secretAccessor, err := organizations.LookupIAMPolicy(ctx, &organizations.LookupIAMPolicyArgs{
Bindings: []organizations.GetIAMPolicyBinding{
{
Role: "roles/secretmanager.secretAccessor",
Members: []string{
"serviceAccount:service-123456789@gcp-sa-cloudbuild.iam.gserviceaccount.com",
},
},
},
}, nil)
if err != nil {
return err
}
_, err = secretmanager.NewSecretIamPolicy(ctx, "policy-pk", &secretmanager.SecretIamPolicyArgs{
SecretId: private_key_secret.SecretId,
PolicyData: pulumi.String(p4sa_secretAccessor.PolicyData),
})
if err != nil {
return err
}
_, err = secretmanager.NewSecretIamPolicy(ctx, "policy-whs", &secretmanager.SecretIamPolicyArgs{
SecretId: webhook_secret_secret.SecretId,
PolicyData: pulumi.String(p4sa_secretAccessor.PolicyData),
})
if err != nil {
return err
}
_, err = cloudbuildv2.NewConnection(ctx, "my-connection", &cloudbuildv2.ConnectionArgs{
Location: pulumi.String("us-central1"),
Name: pulumi.String("my-terraform-ghe-connection"),
GithubEnterpriseConfig: &cloudbuildv2.ConnectionGithubEnterpriseConfigArgs{
HostUri: pulumi.String("https://ghe.com"),
PrivateKeySecretVersion: private_key_secret_version.ID(),
WebhookSecretSecretVersion: webhook_secret_secret_version.ID(),
AppId: pulumi.Int(200),
AppSlug: pulumi.String("gcb-app"),
AppInstallationId: pulumi.Int(300),
},
}, pulumi.DependsOn([]pulumi.Resource{
policy_pk,
policy_whs,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
using Std = Pulumi.Std;
return await Deployment.RunAsync(() =>
{
var private_key_secret = new Gcp.SecretManager.Secret("private-key-secret", new()
{
SecretId = "ghe-pk-secret",
Replication = new Gcp.SecretManager.Inputs.SecretReplicationArgs
{
Auto = null,
},
});
var private_key_secret_version = new Gcp.SecretManager.SecretVersion("private-key-secret-version", new()
{
Secret = private_key_secret.Id,
SecretData = Std.File.Invoke(new()
{
Input = "private-key.pem",
}).Apply(invoke => invoke.Result),
});
var webhook_secret_secret = new Gcp.SecretManager.Secret("webhook-secret-secret", new()
{
SecretId = "github-token-secret",
Replication = new Gcp.SecretManager.Inputs.SecretReplicationArgs
{
Auto = null,
},
});
var webhook_secret_secret_version = new Gcp.SecretManager.SecretVersion("webhook-secret-secret-version", new()
{
Secret = webhook_secret_secret.Id,
SecretData = "<webhook-secret-data>",
});
var p4sa_secretAccessor = Gcp.Organizations.GetIAMPolicy.Invoke(new()
{
Bindings = new[]
{
new Gcp.Organizations.Inputs.GetIAMPolicyBindingInputArgs
{
Role = "roles/secretmanager.secretAccessor",
Members = new[]
{
"serviceAccount:service-123456789@gcp-sa-cloudbuild.iam.gserviceaccount.com",
},
},
},
});
var policy_pk = new Gcp.SecretManager.SecretIamPolicy("policy-pk", new()
{
SecretId = private_key_secret.SecretId,
PolicyData = p4sa_secretAccessor.Apply(p4sa_secretAccessor => p4sa_secretAccessor.Apply(getIAMPolicyResult => getIAMPolicyResult.PolicyData)),
});
var policy_whs = new Gcp.SecretManager.SecretIamPolicy("policy-whs", new()
{
SecretId = webhook_secret_secret.SecretId,
PolicyData = p4sa_secretAccessor.Apply(p4sa_secretAccessor => p4sa_secretAccessor.Apply(getIAMPolicyResult => getIAMPolicyResult.PolicyData)),
});
var my_connection = new Gcp.CloudBuildV2.Connection("my-connection", new()
{
Location = "us-central1",
Name = "my-terraform-ghe-connection",
GithubEnterpriseConfig = new Gcp.CloudBuildV2.Inputs.ConnectionGithubEnterpriseConfigArgs
{
HostUri = "https://ghe.com",
PrivateKeySecretVersion = private_key_secret_version.Id,
WebhookSecretSecretVersion = webhook_secret_secret_version.Id,
AppId = 200,
AppSlug = "gcb-app",
AppInstallationId = 300,
},
}, new CustomResourceOptions
{
DependsOn =
{
policy_pk,
policy_whs,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.secretmanager.Secret;
import com.pulumi.gcp.secretmanager.SecretArgs;
import com.pulumi.gcp.secretmanager.inputs.SecretReplicationArgs;
import com.pulumi.gcp.secretmanager.inputs.SecretReplicationAutoArgs;
import com.pulumi.gcp.secretmanager.SecretVersion;
import com.pulumi.gcp.secretmanager.SecretVersionArgs;
import com.pulumi.gcp.organizations.OrganizationsFunctions;
import com.pulumi.gcp.organizations.inputs.GetIAMPolicyArgs;
import com.pulumi.gcp.secretmanager.SecretIamPolicy;
import com.pulumi.gcp.secretmanager.SecretIamPolicyArgs;
import com.pulumi.gcp.cloudbuildv2.Connection;
import com.pulumi.gcp.cloudbuildv2.ConnectionArgs;
import com.pulumi.gcp.cloudbuildv2.inputs.ConnectionGithubEnterpriseConfigArgs;
import com.pulumi.resources.CustomResourceOptions;
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 private_key_secret = new Secret("private-key-secret", SecretArgs.builder()
.secretId("ghe-pk-secret")
.replication(SecretReplicationArgs.builder()
.auto()
.build())
.build());
var private_key_secret_version = new SecretVersion("private-key-secret-version", SecretVersionArgs.builder()
.secret(private_key_secret.id())
.secretData(StdFunctions.file(FileArgs.builder()
.input("private-key.pem")
.build()).result())
.build());
var webhook_secret_secret = new Secret("webhook-secret-secret", SecretArgs.builder()
.secretId("github-token-secret")
.replication(SecretReplicationArgs.builder()
.auto()
.build())
.build());
var webhook_secret_secret_version = new SecretVersion("webhook-secret-secret-version", SecretVersionArgs.builder()
.secret(webhook_secret_secret.id())
.secretData("<webhook-secret-data>")
.build());
final var p4sa-secretAccessor = OrganizationsFunctions.getIAMPolicy(GetIAMPolicyArgs.builder()
.bindings(GetIAMPolicyBindingArgs.builder()
.role("roles/secretmanager.secretAccessor")
.members("serviceAccount:service-123456789@gcp-sa-cloudbuild.iam.gserviceaccount.com")
.build())
.build());
var policy_pk = new SecretIamPolicy("policy-pk", SecretIamPolicyArgs.builder()
.secretId(private_key_secret.secretId())
.policyData(p4sa_secretAccessor.policyData())
.build());
var policy_whs = new SecretIamPolicy("policy-whs", SecretIamPolicyArgs.builder()
.secretId(webhook_secret_secret.secretId())
.policyData(p4sa_secretAccessor.policyData())
.build());
var my_connection = new Connection("my-connection", ConnectionArgs.builder()
.location("us-central1")
.name("my-terraform-ghe-connection")
.githubEnterpriseConfig(ConnectionGithubEnterpriseConfigArgs.builder()
.hostUri("https://ghe.com")
.privateKeySecretVersion(private_key_secret_version.id())
.webhookSecretSecretVersion(webhook_secret_secret_version.id())
.appId(200)
.appSlug("gcb-app")
.appInstallationId(300)
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(
policy_pk,
policy_whs)
.build());
}
}
resources:
private-key-secret:
type: gcp:secretmanager:Secret
properties:
secretId: ghe-pk-secret
replication:
auto: {}
private-key-secret-version:
type: gcp:secretmanager:SecretVersion
properties:
secret: ${["private-key-secret"].id}
secretData:
fn::invoke:
Function: std:file
Arguments:
input: private-key.pem
Return: result
webhook-secret-secret:
type: gcp:secretmanager:Secret
properties:
secretId: github-token-secret
replication:
auto: {}
webhook-secret-secret-version:
type: gcp:secretmanager:SecretVersion
properties:
secret: ${["webhook-secret-secret"].id}
secretData: <webhook-secret-data>
policy-pk:
type: gcp:secretmanager:SecretIamPolicy
properties:
secretId: ${["private-key-secret"].secretId}
policyData: ${["p4sa-secretAccessor"].policyData}
policy-whs:
type: gcp:secretmanager:SecretIamPolicy
properties:
secretId: ${["webhook-secret-secret"].secretId}
policyData: ${["p4sa-secretAccessor"].policyData}
my-connection:
type: gcp:cloudbuildv2:Connection
properties:
location: us-central1
name: my-terraform-ghe-connection
githubEnterpriseConfig:
hostUri: https://ghe.com
privateKeySecretVersion: ${["private-key-secret-version"].id}
webhookSecretSecretVersion: ${["webhook-secret-secret-version"].id}
appId: 200
appSlug: gcb-app
appInstallationId: 300
options:
dependson:
- ${["policy-pk"]}
- ${["policy-whs"]}
variables:
p4sa-secretAccessor:
fn::invoke:
Function: gcp:organizations:getIAMPolicy
Arguments:
bindings:
- role: roles/secretmanager.secretAccessor
members:
- serviceAccount:service-123456789@gcp-sa-cloudbuild.iam.gserviceaccount.com
Cloudbuildv2 Connection Github
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
import * as std from "@pulumi/std";
const github_token_secret = new gcp.secretmanager.Secret("github-token-secret", {
secretId: "github-token-secret",
replication: {
auto: {},
},
});
const github_token_secret_version = new gcp.secretmanager.SecretVersion("github-token-secret-version", {
secret: github_token_secret.id,
secretData: std.file({
input: "my-github-token.txt",
}).then(invoke => invoke.result),
});
const p4sa-secretAccessor = gcp.organizations.getIAMPolicy({
bindings: [{
role: "roles/secretmanager.secretAccessor",
members: ["serviceAccount:service-123456789@gcp-sa-cloudbuild.iam.gserviceaccount.com"],
}],
});
const policy = new gcp.secretmanager.SecretIamPolicy("policy", {
secretId: github_token_secret.secretId,
policyData: p4sa_secretAccessor.then(p4sa_secretAccessor => p4sa_secretAccessor.policyData),
});
const my_connection = new gcp.cloudbuildv2.Connection("my-connection", {
location: "us-central1",
name: "my-connection",
githubConfig: {
appInstallationId: 123123,
authorizerCredential: {
oauthTokenSecretVersion: github_token_secret_version.id,
},
},
});
import pulumi
import pulumi_gcp as gcp
import pulumi_std as std
github_token_secret = gcp.secretmanager.Secret("github-token-secret",
secret_id="github-token-secret",
replication={
"auto": {},
})
github_token_secret_version = gcp.secretmanager.SecretVersion("github-token-secret-version",
secret=github_token_secret.id,
secret_data=std.file(input="my-github-token.txt").result)
p4sa_secret_accessor = gcp.organizations.get_iam_policy(bindings=[{
"role": "roles/secretmanager.secretAccessor",
"members": ["serviceAccount:service-123456789@gcp-sa-cloudbuild.iam.gserviceaccount.com"],
}])
policy = gcp.secretmanager.SecretIamPolicy("policy",
secret_id=github_token_secret.secret_id,
policy_data=p4sa_secret_accessor.policy_data)
my_connection = gcp.cloudbuildv2.Connection("my-connection",
location="us-central1",
name="my-connection",
github_config={
"app_installation_id": 123123,
"authorizer_credential": {
"oauth_token_secret_version": github_token_secret_version.id,
},
})
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/cloudbuildv2"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/organizations"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/secretmanager"
"github.com/pulumi/pulumi-std/sdk/go/std"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := secretmanager.NewSecret(ctx, "github-token-secret", &secretmanager.SecretArgs{
SecretId: pulumi.String("github-token-secret"),
Replication: &secretmanager.SecretReplicationArgs{
Auto: &secretmanager.SecretReplicationAutoArgs{},
},
})
if err != nil {
return err
}
invokeFile, err := std.File(ctx, &std.FileArgs{
Input: "my-github-token.txt",
}, nil)
if err != nil {
return err
}
_, err = secretmanager.NewSecretVersion(ctx, "github-token-secret-version", &secretmanager.SecretVersionArgs{
Secret: github_token_secret.ID(),
SecretData: pulumi.String(invokeFile.Result),
})
if err != nil {
return err
}
p4sa_secretAccessor, err := organizations.LookupIAMPolicy(ctx, &organizations.LookupIAMPolicyArgs{
Bindings: []organizations.GetIAMPolicyBinding{
{
Role: "roles/secretmanager.secretAccessor",
Members: []string{
"serviceAccount:service-123456789@gcp-sa-cloudbuild.iam.gserviceaccount.com",
},
},
},
}, nil)
if err != nil {
return err
}
_, err = secretmanager.NewSecretIamPolicy(ctx, "policy", &secretmanager.SecretIamPolicyArgs{
SecretId: github_token_secret.SecretId,
PolicyData: pulumi.String(p4sa_secretAccessor.PolicyData),
})
if err != nil {
return err
}
_, err = cloudbuildv2.NewConnection(ctx, "my-connection", &cloudbuildv2.ConnectionArgs{
Location: pulumi.String("us-central1"),
Name: pulumi.String("my-connection"),
GithubConfig: &cloudbuildv2.ConnectionGithubConfigArgs{
AppInstallationId: pulumi.Int(123123),
AuthorizerCredential: &cloudbuildv2.ConnectionGithubConfigAuthorizerCredentialArgs{
OauthTokenSecretVersion: github_token_secret_version.ID(),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
using Std = Pulumi.Std;
return await Deployment.RunAsync(() =>
{
var github_token_secret = new Gcp.SecretManager.Secret("github-token-secret", new()
{
SecretId = "github-token-secret",
Replication = new Gcp.SecretManager.Inputs.SecretReplicationArgs
{
Auto = null,
},
});
var github_token_secret_version = new Gcp.SecretManager.SecretVersion("github-token-secret-version", new()
{
Secret = github_token_secret.Id,
SecretData = Std.File.Invoke(new()
{
Input = "my-github-token.txt",
}).Apply(invoke => invoke.Result),
});
var p4sa_secretAccessor = Gcp.Organizations.GetIAMPolicy.Invoke(new()
{
Bindings = new[]
{
new Gcp.Organizations.Inputs.GetIAMPolicyBindingInputArgs
{
Role = "roles/secretmanager.secretAccessor",
Members = new[]
{
"serviceAccount:service-123456789@gcp-sa-cloudbuild.iam.gserviceaccount.com",
},
},
},
});
var policy = new Gcp.SecretManager.SecretIamPolicy("policy", new()
{
SecretId = github_token_secret.SecretId,
PolicyData = p4sa_secretAccessor.Apply(p4sa_secretAccessor => p4sa_secretAccessor.Apply(getIAMPolicyResult => getIAMPolicyResult.PolicyData)),
});
var my_connection = new Gcp.CloudBuildV2.Connection("my-connection", new()
{
Location = "us-central1",
Name = "my-connection",
GithubConfig = new Gcp.CloudBuildV2.Inputs.ConnectionGithubConfigArgs
{
AppInstallationId = 123123,
AuthorizerCredential = new Gcp.CloudBuildV2.Inputs.ConnectionGithubConfigAuthorizerCredentialArgs
{
OauthTokenSecretVersion = github_token_secret_version.Id,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.secretmanager.Secret;
import com.pulumi.gcp.secretmanager.SecretArgs;
import com.pulumi.gcp.secretmanager.inputs.SecretReplicationArgs;
import com.pulumi.gcp.secretmanager.inputs.SecretReplicationAutoArgs;
import com.pulumi.gcp.secretmanager.SecretVersion;
import com.pulumi.gcp.secretmanager.SecretVersionArgs;
import com.pulumi.gcp.organizations.OrganizationsFunctions;
import com.pulumi.gcp.organizations.inputs.GetIAMPolicyArgs;
import com.pulumi.gcp.secretmanager.SecretIamPolicy;
import com.pulumi.gcp.secretmanager.SecretIamPolicyArgs;
import com.pulumi.gcp.cloudbuildv2.Connection;
import com.pulumi.gcp.cloudbuildv2.ConnectionArgs;
import com.pulumi.gcp.cloudbuildv2.inputs.ConnectionGithubConfigArgs;
import com.pulumi.gcp.cloudbuildv2.inputs.ConnectionGithubConfigAuthorizerCredentialArgs;
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 github_token_secret = new Secret("github-token-secret", SecretArgs.builder()
.secretId("github-token-secret")
.replication(SecretReplicationArgs.builder()
.auto()
.build())
.build());
var github_token_secret_version = new SecretVersion("github-token-secret-version", SecretVersionArgs.builder()
.secret(github_token_secret.id())
.secretData(StdFunctions.file(FileArgs.builder()
.input("my-github-token.txt")
.build()).result())
.build());
final var p4sa-secretAccessor = OrganizationsFunctions.getIAMPolicy(GetIAMPolicyArgs.builder()
.bindings(GetIAMPolicyBindingArgs.builder()
.role("roles/secretmanager.secretAccessor")
.members("serviceAccount:service-123456789@gcp-sa-cloudbuild.iam.gserviceaccount.com")
.build())
.build());
var policy = new SecretIamPolicy("policy", SecretIamPolicyArgs.builder()
.secretId(github_token_secret.secretId())
.policyData(p4sa_secretAccessor.policyData())
.build());
var my_connection = new Connection("my-connection", ConnectionArgs.builder()
.location("us-central1")
.name("my-connection")
.githubConfig(ConnectionGithubConfigArgs.builder()
.appInstallationId(123123)
.authorizerCredential(ConnectionGithubConfigAuthorizerCredentialArgs.builder()
.oauthTokenSecretVersion(github_token_secret_version.id())
.build())
.build())
.build());
}
}
resources:
github-token-secret:
type: gcp:secretmanager:Secret
properties:
secretId: github-token-secret
replication:
auto: {}
github-token-secret-version:
type: gcp:secretmanager:SecretVersion
properties:
secret: ${["github-token-secret"].id}
secretData:
fn::invoke:
Function: std:file
Arguments:
input: my-github-token.txt
Return: result
policy:
type: gcp:secretmanager:SecretIamPolicy
properties:
secretId: ${["github-token-secret"].secretId}
policyData: ${["p4sa-secretAccessor"].policyData}
my-connection:
type: gcp:cloudbuildv2:Connection
properties:
location: us-central1
name: my-connection
githubConfig:
appInstallationId: 123123
authorizerCredential:
oauthTokenSecretVersion: ${["github-token-secret-version"].id}
variables:
p4sa-secretAccessor:
fn::invoke:
Function: gcp:organizations:getIAMPolicy
Arguments:
bindings:
- role: roles/secretmanager.secretAccessor
members:
- serviceAccount:service-123456789@gcp-sa-cloudbuild.iam.gserviceaccount.com
Create Connection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Connection(name: string, args: ConnectionArgs, opts?: CustomResourceOptions);
@overload
def Connection(resource_name: str,
args: ConnectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Connection(resource_name: str,
opts: Optional[ResourceOptions] = None,
location: Optional[str] = None,
annotations: Optional[Mapping[str, str]] = None,
bitbucket_cloud_config: Optional[ConnectionBitbucketCloudConfigArgs] = None,
bitbucket_data_center_config: Optional[ConnectionBitbucketDataCenterConfigArgs] = None,
disabled: Optional[bool] = None,
github_config: Optional[ConnectionGithubConfigArgs] = None,
github_enterprise_config: Optional[ConnectionGithubEnterpriseConfigArgs] = None,
gitlab_config: Optional[ConnectionGitlabConfigArgs] = None,
name: Optional[str] = None,
project: Optional[str] = None)
func NewConnection(ctx *Context, name string, args ConnectionArgs, opts ...ResourceOption) (*Connection, error)
public Connection(string name, ConnectionArgs args, CustomResourceOptions? opts = null)
public Connection(String name, ConnectionArgs args)
public Connection(String name, ConnectionArgs args, CustomResourceOptions options)
type: gcp:cloudbuildv2:Connection
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ConnectionArgs
- 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 ConnectionArgs
- 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 ConnectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConnectionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var gcpConnectionResource = new Gcp.CloudBuildV2.Connection("gcpConnectionResource", new()
{
Location = "string",
Annotations =
{
{ "string", "string" },
},
BitbucketCloudConfig = new Gcp.CloudBuildV2.Inputs.ConnectionBitbucketCloudConfigArgs
{
AuthorizerCredential = new Gcp.CloudBuildV2.Inputs.ConnectionBitbucketCloudConfigAuthorizerCredentialArgs
{
UserTokenSecretVersion = "string",
Username = "string",
},
ReadAuthorizerCredential = new Gcp.CloudBuildV2.Inputs.ConnectionBitbucketCloudConfigReadAuthorizerCredentialArgs
{
UserTokenSecretVersion = "string",
Username = "string",
},
WebhookSecretSecretVersion = "string",
Workspace = "string",
},
BitbucketDataCenterConfig = new Gcp.CloudBuildV2.Inputs.ConnectionBitbucketDataCenterConfigArgs
{
AuthorizerCredential = new Gcp.CloudBuildV2.Inputs.ConnectionBitbucketDataCenterConfigAuthorizerCredentialArgs
{
UserTokenSecretVersion = "string",
Username = "string",
},
HostUri = "string",
ReadAuthorizerCredential = new Gcp.CloudBuildV2.Inputs.ConnectionBitbucketDataCenterConfigReadAuthorizerCredentialArgs
{
UserTokenSecretVersion = "string",
Username = "string",
},
WebhookSecretSecretVersion = "string",
ServerVersion = "string",
ServiceDirectoryConfig = new Gcp.CloudBuildV2.Inputs.ConnectionBitbucketDataCenterConfigServiceDirectoryConfigArgs
{
Service = "string",
},
SslCa = "string",
},
Disabled = false,
GithubConfig = new Gcp.CloudBuildV2.Inputs.ConnectionGithubConfigArgs
{
AppInstallationId = 0,
AuthorizerCredential = new Gcp.CloudBuildV2.Inputs.ConnectionGithubConfigAuthorizerCredentialArgs
{
OauthTokenSecretVersion = "string",
Username = "string",
},
},
GithubEnterpriseConfig = new Gcp.CloudBuildV2.Inputs.ConnectionGithubEnterpriseConfigArgs
{
HostUri = "string",
AppId = 0,
AppInstallationId = 0,
AppSlug = "string",
PrivateKeySecretVersion = "string",
ServiceDirectoryConfig = new Gcp.CloudBuildV2.Inputs.ConnectionGithubEnterpriseConfigServiceDirectoryConfigArgs
{
Service = "string",
},
SslCa = "string",
WebhookSecretSecretVersion = "string",
},
GitlabConfig = new Gcp.CloudBuildV2.Inputs.ConnectionGitlabConfigArgs
{
AuthorizerCredential = new Gcp.CloudBuildV2.Inputs.ConnectionGitlabConfigAuthorizerCredentialArgs
{
UserTokenSecretVersion = "string",
Username = "string",
},
ReadAuthorizerCredential = new Gcp.CloudBuildV2.Inputs.ConnectionGitlabConfigReadAuthorizerCredentialArgs
{
UserTokenSecretVersion = "string",
Username = "string",
},
WebhookSecretSecretVersion = "string",
HostUri = "string",
ServerVersion = "string",
ServiceDirectoryConfig = new Gcp.CloudBuildV2.Inputs.ConnectionGitlabConfigServiceDirectoryConfigArgs
{
Service = "string",
},
SslCa = "string",
},
Name = "string",
Project = "string",
});
example, err := cloudbuildv2.NewConnection(ctx, "gcpConnectionResource", &cloudbuildv2.ConnectionArgs{
Location: pulumi.String("string"),
Annotations: pulumi.StringMap{
"string": pulumi.String("string"),
},
BitbucketCloudConfig: &cloudbuildv2.ConnectionBitbucketCloudConfigArgs{
AuthorizerCredential: &cloudbuildv2.ConnectionBitbucketCloudConfigAuthorizerCredentialArgs{
UserTokenSecretVersion: pulumi.String("string"),
Username: pulumi.String("string"),
},
ReadAuthorizerCredential: &cloudbuildv2.ConnectionBitbucketCloudConfigReadAuthorizerCredentialArgs{
UserTokenSecretVersion: pulumi.String("string"),
Username: pulumi.String("string"),
},
WebhookSecretSecretVersion: pulumi.String("string"),
Workspace: pulumi.String("string"),
},
BitbucketDataCenterConfig: &cloudbuildv2.ConnectionBitbucketDataCenterConfigArgs{
AuthorizerCredential: &cloudbuildv2.ConnectionBitbucketDataCenterConfigAuthorizerCredentialArgs{
UserTokenSecretVersion: pulumi.String("string"),
Username: pulumi.String("string"),
},
HostUri: pulumi.String("string"),
ReadAuthorizerCredential: &cloudbuildv2.ConnectionBitbucketDataCenterConfigReadAuthorizerCredentialArgs{
UserTokenSecretVersion: pulumi.String("string"),
Username: pulumi.String("string"),
},
WebhookSecretSecretVersion: pulumi.String("string"),
ServerVersion: pulumi.String("string"),
ServiceDirectoryConfig: &cloudbuildv2.ConnectionBitbucketDataCenterConfigServiceDirectoryConfigArgs{
Service: pulumi.String("string"),
},
SslCa: pulumi.String("string"),
},
Disabled: pulumi.Bool(false),
GithubConfig: &cloudbuildv2.ConnectionGithubConfigArgs{
AppInstallationId: pulumi.Int(0),
AuthorizerCredential: &cloudbuildv2.ConnectionGithubConfigAuthorizerCredentialArgs{
OauthTokenSecretVersion: pulumi.String("string"),
Username: pulumi.String("string"),
},
},
GithubEnterpriseConfig: &cloudbuildv2.ConnectionGithubEnterpriseConfigArgs{
HostUri: pulumi.String("string"),
AppId: pulumi.Int(0),
AppInstallationId: pulumi.Int(0),
AppSlug: pulumi.String("string"),
PrivateKeySecretVersion: pulumi.String("string"),
ServiceDirectoryConfig: &cloudbuildv2.ConnectionGithubEnterpriseConfigServiceDirectoryConfigArgs{
Service: pulumi.String("string"),
},
SslCa: pulumi.String("string"),
WebhookSecretSecretVersion: pulumi.String("string"),
},
GitlabConfig: &cloudbuildv2.ConnectionGitlabConfigArgs{
AuthorizerCredential: &cloudbuildv2.ConnectionGitlabConfigAuthorizerCredentialArgs{
UserTokenSecretVersion: pulumi.String("string"),
Username: pulumi.String("string"),
},
ReadAuthorizerCredential: &cloudbuildv2.ConnectionGitlabConfigReadAuthorizerCredentialArgs{
UserTokenSecretVersion: pulumi.String("string"),
Username: pulumi.String("string"),
},
WebhookSecretSecretVersion: pulumi.String("string"),
HostUri: pulumi.String("string"),
ServerVersion: pulumi.String("string"),
ServiceDirectoryConfig: &cloudbuildv2.ConnectionGitlabConfigServiceDirectoryConfigArgs{
Service: pulumi.String("string"),
},
SslCa: pulumi.String("string"),
},
Name: pulumi.String("string"),
Project: pulumi.String("string"),
})
var gcpConnectionResource = new Connection("gcpConnectionResource", ConnectionArgs.builder()
.location("string")
.annotations(Map.of("string", "string"))
.bitbucketCloudConfig(ConnectionBitbucketCloudConfigArgs.builder()
.authorizerCredential(ConnectionBitbucketCloudConfigAuthorizerCredentialArgs.builder()
.userTokenSecretVersion("string")
.username("string")
.build())
.readAuthorizerCredential(ConnectionBitbucketCloudConfigReadAuthorizerCredentialArgs.builder()
.userTokenSecretVersion("string")
.username("string")
.build())
.webhookSecretSecretVersion("string")
.workspace("string")
.build())
.bitbucketDataCenterConfig(ConnectionBitbucketDataCenterConfigArgs.builder()
.authorizerCredential(ConnectionBitbucketDataCenterConfigAuthorizerCredentialArgs.builder()
.userTokenSecretVersion("string")
.username("string")
.build())
.hostUri("string")
.readAuthorizerCredential(ConnectionBitbucketDataCenterConfigReadAuthorizerCredentialArgs.builder()
.userTokenSecretVersion("string")
.username("string")
.build())
.webhookSecretSecretVersion("string")
.serverVersion("string")
.serviceDirectoryConfig(ConnectionBitbucketDataCenterConfigServiceDirectoryConfigArgs.builder()
.service("string")
.build())
.sslCa("string")
.build())
.disabled(false)
.githubConfig(ConnectionGithubConfigArgs.builder()
.appInstallationId(0)
.authorizerCredential(ConnectionGithubConfigAuthorizerCredentialArgs.builder()
.oauthTokenSecretVersion("string")
.username("string")
.build())
.build())
.githubEnterpriseConfig(ConnectionGithubEnterpriseConfigArgs.builder()
.hostUri("string")
.appId(0)
.appInstallationId(0)
.appSlug("string")
.privateKeySecretVersion("string")
.serviceDirectoryConfig(ConnectionGithubEnterpriseConfigServiceDirectoryConfigArgs.builder()
.service("string")
.build())
.sslCa("string")
.webhookSecretSecretVersion("string")
.build())
.gitlabConfig(ConnectionGitlabConfigArgs.builder()
.authorizerCredential(ConnectionGitlabConfigAuthorizerCredentialArgs.builder()
.userTokenSecretVersion("string")
.username("string")
.build())
.readAuthorizerCredential(ConnectionGitlabConfigReadAuthorizerCredentialArgs.builder()
.userTokenSecretVersion("string")
.username("string")
.build())
.webhookSecretSecretVersion("string")
.hostUri("string")
.serverVersion("string")
.serviceDirectoryConfig(ConnectionGitlabConfigServiceDirectoryConfigArgs.builder()
.service("string")
.build())
.sslCa("string")
.build())
.name("string")
.project("string")
.build());
gcp_connection_resource = gcp.cloudbuildv2.Connection("gcpConnectionResource",
location="string",
annotations={
"string": "string",
},
bitbucket_cloud_config={
"authorizer_credential": {
"user_token_secret_version": "string",
"username": "string",
},
"read_authorizer_credential": {
"user_token_secret_version": "string",
"username": "string",
},
"webhook_secret_secret_version": "string",
"workspace": "string",
},
bitbucket_data_center_config={
"authorizer_credential": {
"user_token_secret_version": "string",
"username": "string",
},
"host_uri": "string",
"read_authorizer_credential": {
"user_token_secret_version": "string",
"username": "string",
},
"webhook_secret_secret_version": "string",
"server_version": "string",
"service_directory_config": {
"service": "string",
},
"ssl_ca": "string",
},
disabled=False,
github_config={
"app_installation_id": 0,
"authorizer_credential": {
"oauth_token_secret_version": "string",
"username": "string",
},
},
github_enterprise_config={
"host_uri": "string",
"app_id": 0,
"app_installation_id": 0,
"app_slug": "string",
"private_key_secret_version": "string",
"service_directory_config": {
"service": "string",
},
"ssl_ca": "string",
"webhook_secret_secret_version": "string",
},
gitlab_config={
"authorizer_credential": {
"user_token_secret_version": "string",
"username": "string",
},
"read_authorizer_credential": {
"user_token_secret_version": "string",
"username": "string",
},
"webhook_secret_secret_version": "string",
"host_uri": "string",
"server_version": "string",
"service_directory_config": {
"service": "string",
},
"ssl_ca": "string",
},
name="string",
project="string")
const gcpConnectionResource = new gcp.cloudbuildv2.Connection("gcpConnectionResource", {
location: "string",
annotations: {
string: "string",
},
bitbucketCloudConfig: {
authorizerCredential: {
userTokenSecretVersion: "string",
username: "string",
},
readAuthorizerCredential: {
userTokenSecretVersion: "string",
username: "string",
},
webhookSecretSecretVersion: "string",
workspace: "string",
},
bitbucketDataCenterConfig: {
authorizerCredential: {
userTokenSecretVersion: "string",
username: "string",
},
hostUri: "string",
readAuthorizerCredential: {
userTokenSecretVersion: "string",
username: "string",
},
webhookSecretSecretVersion: "string",
serverVersion: "string",
serviceDirectoryConfig: {
service: "string",
},
sslCa: "string",
},
disabled: false,
githubConfig: {
appInstallationId: 0,
authorizerCredential: {
oauthTokenSecretVersion: "string",
username: "string",
},
},
githubEnterpriseConfig: {
hostUri: "string",
appId: 0,
appInstallationId: 0,
appSlug: "string",
privateKeySecretVersion: "string",
serviceDirectoryConfig: {
service: "string",
},
sslCa: "string",
webhookSecretSecretVersion: "string",
},
gitlabConfig: {
authorizerCredential: {
userTokenSecretVersion: "string",
username: "string",
},
readAuthorizerCredential: {
userTokenSecretVersion: "string",
username: "string",
},
webhookSecretSecretVersion: "string",
hostUri: "string",
serverVersion: "string",
serviceDirectoryConfig: {
service: "string",
},
sslCa: "string",
},
name: "string",
project: "string",
});
type: gcp:cloudbuildv2:Connection
properties:
annotations:
string: string
bitbucketCloudConfig:
authorizerCredential:
userTokenSecretVersion: string
username: string
readAuthorizerCredential:
userTokenSecretVersion: string
username: string
webhookSecretSecretVersion: string
workspace: string
bitbucketDataCenterConfig:
authorizerCredential:
userTokenSecretVersion: string
username: string
hostUri: string
readAuthorizerCredential:
userTokenSecretVersion: string
username: string
serverVersion: string
serviceDirectoryConfig:
service: string
sslCa: string
webhookSecretSecretVersion: string
disabled: false
githubConfig:
appInstallationId: 0
authorizerCredential:
oauthTokenSecretVersion: string
username: string
githubEnterpriseConfig:
appId: 0
appInstallationId: 0
appSlug: string
hostUri: string
privateKeySecretVersion: string
serviceDirectoryConfig:
service: string
sslCa: string
webhookSecretSecretVersion: string
gitlabConfig:
authorizerCredential:
userTokenSecretVersion: string
username: string
hostUri: string
readAuthorizerCredential:
userTokenSecretVersion: string
username: string
serverVersion: string
serviceDirectoryConfig:
service: string
sslCa: string
webhookSecretSecretVersion: string
location: string
name: string
project: string
Connection Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Connection resource accepts the following input properties:
- Location string
- The location for the resource
- Annotations Dictionary<string, string>
- Allows clients to store small amounts of arbitrary data.
Note: This field is non-authoritative, and will only manage the annotations present in your configuration.
Please refer to the field
effective_annotations
for all of the annotations present on the resource. - Bitbucket
Cloud ConnectionConfig Bitbucket Cloud Config - Configuration for connections to Bitbucket Cloud. Structure is documented below.
- Bitbucket
Data ConnectionCenter Config Bitbucket Data Center Config - Configuration for connections to Bitbucket Data Center. Structure is documented below.
- Disabled bool
- If disabled is set to true, functionality is disabled for this connection. Repository based API methods and webhooks processing for repositories in this connection will be disabled.
- Github
Config ConnectionGithub Config - Configuration for connections to github.com. Structure is documented below.
- Github
Enterprise ConnectionConfig Github Enterprise Config - Configuration for connections to an instance of GitHub Enterprise. Structure is documented below.
- Gitlab
Config ConnectionGitlab Config - Configuration for connections to gitlab.com or an instance of GitLab Enterprise. Structure is documented below.
- Name string
- Immutable. The resource name of the connection.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Location string
- The location for the resource
- Annotations map[string]string
- Allows clients to store small amounts of arbitrary data.
Note: This field is non-authoritative, and will only manage the annotations present in your configuration.
Please refer to the field
effective_annotations
for all of the annotations present on the resource. - Bitbucket
Cloud ConnectionConfig Bitbucket Cloud Config Args - Configuration for connections to Bitbucket Cloud. Structure is documented below.
- Bitbucket
Data ConnectionCenter Config Bitbucket Data Center Config Args - Configuration for connections to Bitbucket Data Center. Structure is documented below.
- Disabled bool
- If disabled is set to true, functionality is disabled for this connection. Repository based API methods and webhooks processing for repositories in this connection will be disabled.
- Github
Config ConnectionGithub Config Args - Configuration for connections to github.com. Structure is documented below.
- Github
Enterprise ConnectionConfig Github Enterprise Config Args - Configuration for connections to an instance of GitHub Enterprise. Structure is documented below.
- Gitlab
Config ConnectionGitlab Config Args - Configuration for connections to gitlab.com or an instance of GitLab Enterprise. Structure is documented below.
- Name string
- Immutable. The resource name of the connection.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location String
- The location for the resource
- annotations Map<String,String>
- Allows clients to store small amounts of arbitrary data.
Note: This field is non-authoritative, and will only manage the annotations present in your configuration.
Please refer to the field
effective_annotations
for all of the annotations present on the resource. - bitbucket
Cloud ConnectionConfig Bitbucket Cloud Config - Configuration for connections to Bitbucket Cloud. Structure is documented below.
- bitbucket
Data ConnectionCenter Config Bitbucket Data Center Config - Configuration for connections to Bitbucket Data Center. Structure is documented below.
- disabled Boolean
- If disabled is set to true, functionality is disabled for this connection. Repository based API methods and webhooks processing for repositories in this connection will be disabled.
- github
Config ConnectionGithub Config - Configuration for connections to github.com. Structure is documented below.
- github
Enterprise ConnectionConfig Github Enterprise Config - Configuration for connections to an instance of GitHub Enterprise. Structure is documented below.
- gitlab
Config ConnectionGitlab Config - Configuration for connections to gitlab.com or an instance of GitLab Enterprise. Structure is documented below.
- name String
- Immutable. The resource name of the connection.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location string
- The location for the resource
- annotations {[key: string]: string}
- Allows clients to store small amounts of arbitrary data.
Note: This field is non-authoritative, and will only manage the annotations present in your configuration.
Please refer to the field
effective_annotations
for all of the annotations present on the resource. - bitbucket
Cloud ConnectionConfig Bitbucket Cloud Config - Configuration for connections to Bitbucket Cloud. Structure is documented below.
- bitbucket
Data ConnectionCenter Config Bitbucket Data Center Config - Configuration for connections to Bitbucket Data Center. Structure is documented below.
- disabled boolean
- If disabled is set to true, functionality is disabled for this connection. Repository based API methods and webhooks processing for repositories in this connection will be disabled.
- github
Config ConnectionGithub Config - Configuration for connections to github.com. Structure is documented below.
- github
Enterprise ConnectionConfig Github Enterprise Config - Configuration for connections to an instance of GitHub Enterprise. Structure is documented below.
- gitlab
Config ConnectionGitlab Config - Configuration for connections to gitlab.com or an instance of GitLab Enterprise. Structure is documented below.
- name string
- Immutable. The resource name of the connection.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location str
- The location for the resource
- annotations Mapping[str, str]
- Allows clients to store small amounts of arbitrary data.
Note: This field is non-authoritative, and will only manage the annotations present in your configuration.
Please refer to the field
effective_annotations
for all of the annotations present on the resource. - bitbucket_
cloud_ Connectionconfig Bitbucket Cloud Config Args - Configuration for connections to Bitbucket Cloud. Structure is documented below.
- bitbucket_
data_ Connectioncenter_ config Bitbucket Data Center Config Args - Configuration for connections to Bitbucket Data Center. Structure is documented below.
- disabled bool
- If disabled is set to true, functionality is disabled for this connection. Repository based API methods and webhooks processing for repositories in this connection will be disabled.
- github_
config ConnectionGithub Config Args - Configuration for connections to github.com. Structure is documented below.
- github_
enterprise_ Connectionconfig Github Enterprise Config Args - Configuration for connections to an instance of GitHub Enterprise. Structure is documented below.
- gitlab_
config ConnectionGitlab Config Args - Configuration for connections to gitlab.com or an instance of GitLab Enterprise. Structure is documented below.
- name str
- Immutable. The resource name of the connection.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location String
- The location for the resource
- annotations Map<String>
- Allows clients to store small amounts of arbitrary data.
Note: This field is non-authoritative, and will only manage the annotations present in your configuration.
Please refer to the field
effective_annotations
for all of the annotations present on the resource. - bitbucket
Cloud Property MapConfig - Configuration for connections to Bitbucket Cloud. Structure is documented below.
- bitbucket
Data Property MapCenter Config - Configuration for connections to Bitbucket Data Center. Structure is documented below.
- disabled Boolean
- If disabled is set to true, functionality is disabled for this connection. Repository based API methods and webhooks processing for repositories in this connection will be disabled.
- github
Config Property Map - Configuration for connections to github.com. Structure is documented below.
- github
Enterprise Property MapConfig - Configuration for connections to an instance of GitHub Enterprise. Structure is documented below.
- gitlab
Config Property Map - Configuration for connections to gitlab.com or an instance of GitLab Enterprise. Structure is documented below.
- name String
- Immutable. The resource name of the connection.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Outputs
All input properties are implicitly available as output properties. Additionally, the Connection resource produces the following output properties:
- Create
Time string - Output only. Server assigned timestamp for when the connection was created.
- Effective
Annotations Dictionary<string, string> - Etag string
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- Id string
- The provider-assigned unique ID for this managed resource.
- Installation
States List<ConnectionInstallation State> - Output only. Installation state of the Connection. Structure is documented below.
- Reconciling bool
- Output only. Set to true when the connection is being set up or updated in the background.
- Update
Time string - Output only. Server assigned timestamp for when the connection was updated.
- Create
Time string - Output only. Server assigned timestamp for when the connection was created.
- Effective
Annotations map[string]string - Etag string
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- Id string
- The provider-assigned unique ID for this managed resource.
- Installation
States []ConnectionInstallation State - Output only. Installation state of the Connection. Structure is documented below.
- Reconciling bool
- Output only. Set to true when the connection is being set up or updated in the background.
- Update
Time string - Output only. Server assigned timestamp for when the connection was updated.
- create
Time String - Output only. Server assigned timestamp for when the connection was created.
- effective
Annotations Map<String,String> - etag String
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- id String
- The provider-assigned unique ID for this managed resource.
- installation
States List<ConnectionInstallation State> - Output only. Installation state of the Connection. Structure is documented below.
- reconciling Boolean
- Output only. Set to true when the connection is being set up or updated in the background.
- update
Time String - Output only. Server assigned timestamp for when the connection was updated.
- create
Time string - Output only. Server assigned timestamp for when the connection was created.
- effective
Annotations {[key: string]: string} - etag string
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- id string
- The provider-assigned unique ID for this managed resource.
- installation
States ConnectionInstallation State[] - Output only. Installation state of the Connection. Structure is documented below.
- reconciling boolean
- Output only. Set to true when the connection is being set up or updated in the background.
- update
Time string - Output only. Server assigned timestamp for when the connection was updated.
- create_
time str - Output only. Server assigned timestamp for when the connection was created.
- effective_
annotations Mapping[str, str] - etag str
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- id str
- The provider-assigned unique ID for this managed resource.
- installation_
states Sequence[ConnectionInstallation State] - Output only. Installation state of the Connection. Structure is documented below.
- reconciling bool
- Output only. Set to true when the connection is being set up or updated in the background.
- update_
time str - Output only. Server assigned timestamp for when the connection was updated.
- create
Time String - Output only. Server assigned timestamp for when the connection was created.
- effective
Annotations Map<String> - etag String
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- id String
- The provider-assigned unique ID for this managed resource.
- installation
States List<Property Map> - Output only. Installation state of the Connection. Structure is documented below.
- reconciling Boolean
- Output only. Set to true when the connection is being set up or updated in the background.
- update
Time String - Output only. Server assigned timestamp for when the connection was updated.
Look up Existing Connection Resource
Get an existing Connection resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ConnectionState, opts?: CustomResourceOptions): Connection
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
annotations: Optional[Mapping[str, str]] = None,
bitbucket_cloud_config: Optional[ConnectionBitbucketCloudConfigArgs] = None,
bitbucket_data_center_config: Optional[ConnectionBitbucketDataCenterConfigArgs] = None,
create_time: Optional[str] = None,
disabled: Optional[bool] = None,
effective_annotations: Optional[Mapping[str, str]] = None,
etag: Optional[str] = None,
github_config: Optional[ConnectionGithubConfigArgs] = None,
github_enterprise_config: Optional[ConnectionGithubEnterpriseConfigArgs] = None,
gitlab_config: Optional[ConnectionGitlabConfigArgs] = None,
installation_states: Optional[Sequence[ConnectionInstallationStateArgs]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
reconciling: Optional[bool] = None,
update_time: Optional[str] = None) -> Connection
func GetConnection(ctx *Context, name string, id IDInput, state *ConnectionState, opts ...ResourceOption) (*Connection, error)
public static Connection Get(string name, Input<string> id, ConnectionState? state, CustomResourceOptions? opts = null)
public static Connection get(String name, Output<String> id, ConnectionState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Annotations Dictionary<string, string>
- Allows clients to store small amounts of arbitrary data.
Note: This field is non-authoritative, and will only manage the annotations present in your configuration.
Please refer to the field
effective_annotations
for all of the annotations present on the resource. - Bitbucket
Cloud ConnectionConfig Bitbucket Cloud Config - Configuration for connections to Bitbucket Cloud. Structure is documented below.
- Bitbucket
Data ConnectionCenter Config Bitbucket Data Center Config - Configuration for connections to Bitbucket Data Center. Structure is documented below.
- Create
Time string - Output only. Server assigned timestamp for when the connection was created.
- Disabled bool
- If disabled is set to true, functionality is disabled for this connection. Repository based API methods and webhooks processing for repositories in this connection will be disabled.
- Effective
Annotations Dictionary<string, string> - Etag string
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- Github
Config ConnectionGithub Config - Configuration for connections to github.com. Structure is documented below.
- Github
Enterprise ConnectionConfig Github Enterprise Config - Configuration for connections to an instance of GitHub Enterprise. Structure is documented below.
- Gitlab
Config ConnectionGitlab Config - Configuration for connections to gitlab.com or an instance of GitLab Enterprise. Structure is documented below.
- Installation
States List<ConnectionInstallation State> - Output only. Installation state of the Connection. Structure is documented below.
- Location string
- The location for the resource
- Name string
- Immutable. The resource name of the connection.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Reconciling bool
- Output only. Set to true when the connection is being set up or updated in the background.
- Update
Time string - Output only. Server assigned timestamp for when the connection was updated.
- Annotations map[string]string
- Allows clients to store small amounts of arbitrary data.
Note: This field is non-authoritative, and will only manage the annotations present in your configuration.
Please refer to the field
effective_annotations
for all of the annotations present on the resource. - Bitbucket
Cloud ConnectionConfig Bitbucket Cloud Config Args - Configuration for connections to Bitbucket Cloud. Structure is documented below.
- Bitbucket
Data ConnectionCenter Config Bitbucket Data Center Config Args - Configuration for connections to Bitbucket Data Center. Structure is documented below.
- Create
Time string - Output only. Server assigned timestamp for when the connection was created.
- Disabled bool
- If disabled is set to true, functionality is disabled for this connection. Repository based API methods and webhooks processing for repositories in this connection will be disabled.
- Effective
Annotations map[string]string - Etag string
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- Github
Config ConnectionGithub Config Args - Configuration for connections to github.com. Structure is documented below.
- Github
Enterprise ConnectionConfig Github Enterprise Config Args - Configuration for connections to an instance of GitHub Enterprise. Structure is documented below.
- Gitlab
Config ConnectionGitlab Config Args - Configuration for connections to gitlab.com or an instance of GitLab Enterprise. Structure is documented below.
- Installation
States []ConnectionInstallation State Args - Output only. Installation state of the Connection. Structure is documented below.
- Location string
- The location for the resource
- Name string
- Immutable. The resource name of the connection.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Reconciling bool
- Output only. Set to true when the connection is being set up or updated in the background.
- Update
Time string - Output only. Server assigned timestamp for when the connection was updated.
- annotations Map<String,String>
- Allows clients to store small amounts of arbitrary data.
Note: This field is non-authoritative, and will only manage the annotations present in your configuration.
Please refer to the field
effective_annotations
for all of the annotations present on the resource. - bitbucket
Cloud ConnectionConfig Bitbucket Cloud Config - Configuration for connections to Bitbucket Cloud. Structure is documented below.
- bitbucket
Data ConnectionCenter Config Bitbucket Data Center Config - Configuration for connections to Bitbucket Data Center. Structure is documented below.
- create
Time String - Output only. Server assigned timestamp for when the connection was created.
- disabled Boolean
- If disabled is set to true, functionality is disabled for this connection. Repository based API methods and webhooks processing for repositories in this connection will be disabled.
- effective
Annotations Map<String,String> - etag String
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- github
Config ConnectionGithub Config - Configuration for connections to github.com. Structure is documented below.
- github
Enterprise ConnectionConfig Github Enterprise Config - Configuration for connections to an instance of GitHub Enterprise. Structure is documented below.
- gitlab
Config ConnectionGitlab Config - Configuration for connections to gitlab.com or an instance of GitLab Enterprise. Structure is documented below.
- installation
States List<ConnectionInstallation State> - Output only. Installation state of the Connection. Structure is documented below.
- location String
- The location for the resource
- name String
- Immutable. The resource name of the connection.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- reconciling Boolean
- Output only. Set to true when the connection is being set up or updated in the background.
- update
Time String - Output only. Server assigned timestamp for when the connection was updated.
- annotations {[key: string]: string}
- Allows clients to store small amounts of arbitrary data.
Note: This field is non-authoritative, and will only manage the annotations present in your configuration.
Please refer to the field
effective_annotations
for all of the annotations present on the resource. - bitbucket
Cloud ConnectionConfig Bitbucket Cloud Config - Configuration for connections to Bitbucket Cloud. Structure is documented below.
- bitbucket
Data ConnectionCenter Config Bitbucket Data Center Config - Configuration for connections to Bitbucket Data Center. Structure is documented below.
- create
Time string - Output only. Server assigned timestamp for when the connection was created.
- disabled boolean
- If disabled is set to true, functionality is disabled for this connection. Repository based API methods and webhooks processing for repositories in this connection will be disabled.
- effective
Annotations {[key: string]: string} - etag string
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- github
Config ConnectionGithub Config - Configuration for connections to github.com. Structure is documented below.
- github
Enterprise ConnectionConfig Github Enterprise Config - Configuration for connections to an instance of GitHub Enterprise. Structure is documented below.
- gitlab
Config ConnectionGitlab Config - Configuration for connections to gitlab.com or an instance of GitLab Enterprise. Structure is documented below.
- installation
States ConnectionInstallation State[] - Output only. Installation state of the Connection. Structure is documented below.
- location string
- The location for the resource
- name string
- Immutable. The resource name of the connection.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- reconciling boolean
- Output only. Set to true when the connection is being set up or updated in the background.
- update
Time string - Output only. Server assigned timestamp for when the connection was updated.
- annotations Mapping[str, str]
- Allows clients to store small amounts of arbitrary data.
Note: This field is non-authoritative, and will only manage the annotations present in your configuration.
Please refer to the field
effective_annotations
for all of the annotations present on the resource. - bitbucket_
cloud_ Connectionconfig Bitbucket Cloud Config Args - Configuration for connections to Bitbucket Cloud. Structure is documented below.
- bitbucket_
data_ Connectioncenter_ config Bitbucket Data Center Config Args - Configuration for connections to Bitbucket Data Center. Structure is documented below.
- create_
time str - Output only. Server assigned timestamp for when the connection was created.
- disabled bool
- If disabled is set to true, functionality is disabled for this connection. Repository based API methods and webhooks processing for repositories in this connection will be disabled.
- effective_
annotations Mapping[str, str] - etag str
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- github_
config ConnectionGithub Config Args - Configuration for connections to github.com. Structure is documented below.
- github_
enterprise_ Connectionconfig Github Enterprise Config Args - Configuration for connections to an instance of GitHub Enterprise. Structure is documented below.
- gitlab_
config ConnectionGitlab Config Args - Configuration for connections to gitlab.com or an instance of GitLab Enterprise. Structure is documented below.
- installation_
states Sequence[ConnectionInstallation State Args] - Output only. Installation state of the Connection. Structure is documented below.
- location str
- The location for the resource
- name str
- Immutable. The resource name of the connection.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- reconciling bool
- Output only. Set to true when the connection is being set up or updated in the background.
- update_
time str - Output only. Server assigned timestamp for when the connection was updated.
- annotations Map<String>
- Allows clients to store small amounts of arbitrary data.
Note: This field is non-authoritative, and will only manage the annotations present in your configuration.
Please refer to the field
effective_annotations
for all of the annotations present on the resource. - bitbucket
Cloud Property MapConfig - Configuration for connections to Bitbucket Cloud. Structure is documented below.
- bitbucket
Data Property MapCenter Config - Configuration for connections to Bitbucket Data Center. Structure is documented below.
- create
Time String - Output only. Server assigned timestamp for when the connection was created.
- disabled Boolean
- If disabled is set to true, functionality is disabled for this connection. Repository based API methods and webhooks processing for repositories in this connection will be disabled.
- effective
Annotations Map<String> - etag String
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- github
Config Property Map - Configuration for connections to github.com. Structure is documented below.
- github
Enterprise Property MapConfig - Configuration for connections to an instance of GitHub Enterprise. Structure is documented below.
- gitlab
Config Property Map - Configuration for connections to gitlab.com or an instance of GitLab Enterprise. Structure is documented below.
- installation
States List<Property Map> - Output only. Installation state of the Connection. Structure is documented below.
- location String
- The location for the resource
- name String
- Immutable. The resource name of the connection.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- reconciling Boolean
- Output only. Set to true when the connection is being set up or updated in the background.
- update
Time String - Output only. Server assigned timestamp for when the connection was updated.
Supporting Types
ConnectionBitbucketCloudConfig, ConnectionBitbucketCloudConfigArgs
- Connection
Bitbucket Cloud Config Authorizer Credential - Required. An access token with the
webhook
,repository
,repository:admin
andpullrequest
scope access. It can be either a workspace, project or repository access token. It's recommended to use a system account to generate these credentials. Structure is documented below. - Connection
Bitbucket Cloud Config Read Authorizer Credential - Required. An access token with the
repository
access. It can be either a workspace, project or repository access token. It's recommended to use a system account to generate the credentials. Structure is documented below. - Webhook
Secret stringSecret Version - Required. Immutable. SecretManager resource containing the webhook secret used to verify webhook events, formatted as
projects/*/secrets/*/versions/*
. - Workspace string
- The Bitbucket Cloud Workspace ID to be connected to Google Cloud Platform.
- Connection
Bitbucket Cloud Config Authorizer Credential - Required. An access token with the
webhook
,repository
,repository:admin
andpullrequest
scope access. It can be either a workspace, project or repository access token. It's recommended to use a system account to generate these credentials. Structure is documented below. - Connection
Bitbucket Cloud Config Read Authorizer Credential - Required. An access token with the
repository
access. It can be either a workspace, project or repository access token. It's recommended to use a system account to generate the credentials. Structure is documented below. - Webhook
Secret stringSecret Version - Required. Immutable. SecretManager resource containing the webhook secret used to verify webhook events, formatted as
projects/*/secrets/*/versions/*
. - Workspace string
- The Bitbucket Cloud Workspace ID to be connected to Google Cloud Platform.
- Connection
Bitbucket Cloud Config Authorizer Credential - Required. An access token with the
webhook
,repository
,repository:admin
andpullrequest
scope access. It can be either a workspace, project or repository access token. It's recommended to use a system account to generate these credentials. Structure is documented below. - Connection
Bitbucket Cloud Config Read Authorizer Credential - Required. An access token with the
repository
access. It can be either a workspace, project or repository access token. It's recommended to use a system account to generate the credentials. Structure is documented below. - webhook
Secret StringSecret Version - Required. Immutable. SecretManager resource containing the webhook secret used to verify webhook events, formatted as
projects/*/secrets/*/versions/*
. - workspace String
- The Bitbucket Cloud Workspace ID to be connected to Google Cloud Platform.
- Connection
Bitbucket Cloud Config Authorizer Credential - Required. An access token with the
webhook
,repository
,repository:admin
andpullrequest
scope access. It can be either a workspace, project or repository access token. It's recommended to use a system account to generate these credentials. Structure is documented below. - Connection
Bitbucket Cloud Config Read Authorizer Credential - Required. An access token with the
repository
access. It can be either a workspace, project or repository access token. It's recommended to use a system account to generate the credentials. Structure is documented below. - webhook
Secret stringSecret Version - Required. Immutable. SecretManager resource containing the webhook secret used to verify webhook events, formatted as
projects/*/secrets/*/versions/*
. - workspace string
- The Bitbucket Cloud Workspace ID to be connected to Google Cloud Platform.
- Connection
Bitbucket Cloud Config Authorizer Credential - Required. An access token with the
webhook
,repository
,repository:admin
andpullrequest
scope access. It can be either a workspace, project or repository access token. It's recommended to use a system account to generate these credentials. Structure is documented below. - Connection
Bitbucket Cloud Config Read Authorizer Credential - Required. An access token with the
repository
access. It can be either a workspace, project or repository access token. It's recommended to use a system account to generate the credentials. Structure is documented below. - webhook_
secret_ strsecret_ version - Required. Immutable. SecretManager resource containing the webhook secret used to verify webhook events, formatted as
projects/*/secrets/*/versions/*
. - workspace str
- The Bitbucket Cloud Workspace ID to be connected to Google Cloud Platform.
- Property Map
- Required. An access token with the
webhook
,repository
,repository:admin
andpullrequest
scope access. It can be either a workspace, project or repository access token. It's recommended to use a system account to generate these credentials. Structure is documented below. - Property Map
- Required. An access token with the
repository
access. It can be either a workspace, project or repository access token. It's recommended to use a system account to generate the credentials. Structure is documented below. - webhook
Secret StringSecret Version - Required. Immutable. SecretManager resource containing the webhook secret used to verify webhook events, formatted as
projects/*/secrets/*/versions/*
. - workspace String
- The Bitbucket Cloud Workspace ID to be connected to Google Cloud Platform.
ConnectionBitbucketCloudConfigAuthorizerCredential, ConnectionBitbucketCloudConfigAuthorizerCredentialArgs
- User
Token stringSecret Version - Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - Username string
- (Output) Output only. The username associated to this token.
- User
Token stringSecret Version - Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - Username string
- (Output) Output only. The username associated to this token.
- user
Token StringSecret Version - Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - username String
- (Output) Output only. The username associated to this token.
- user
Token stringSecret Version - Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - username string
- (Output) Output only. The username associated to this token.
- user_
token_ strsecret_ version - Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - username str
- (Output) Output only. The username associated to this token.
- user
Token StringSecret Version - Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - username String
- (Output) Output only. The username associated to this token.
ConnectionBitbucketCloudConfigReadAuthorizerCredential, ConnectionBitbucketCloudConfigReadAuthorizerCredentialArgs
- User
Token stringSecret Version - Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - Username string
- (Output) Output only. The username associated to this token.
- User
Token stringSecret Version - Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - Username string
- (Output) Output only. The username associated to this token.
- user
Token StringSecret Version - Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - username String
- (Output) Output only. The username associated to this token.
- user
Token stringSecret Version - Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - username string
- (Output) Output only. The username associated to this token.
- user_
token_ strsecret_ version - Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - username str
- (Output) Output only. The username associated to this token.
- user
Token StringSecret Version - Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - username String
- (Output) Output only. The username associated to this token.
ConnectionBitbucketDataCenterConfig, ConnectionBitbucketDataCenterConfigArgs
- Connection
Bitbucket Data Center Config Authorizer Credential - Required. A http access token with the
REPO_ADMIN
scope access. Structure is documented below. - Host
Uri string - The URI of the Bitbucket Data Center host this connection is for.
- Connection
Bitbucket Data Center Config Read Authorizer Credential - Required. A http access token with the
REPO_READ
access. Structure is documented below. - Webhook
Secret stringSecret Version - Required. Immutable. SecretManager resource containing the webhook secret used to verify webhook events, formatted as
projects/*/secrets/*/versions/*
. - Server
Version string - (Output)
Output only. Version of the Bitbucket Data Center running on the
host_uri
. - Service
Directory ConnectionConfig Bitbucket Data Center Config Service Directory Config - Configuration for using Service Directory to privately connect to a Bitbucket Data Center. This should only be set if the Bitbucket Data Center is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the Bitbucket Data Center will be made over the public internet. Structure is documented below.
- Ssl
Ca string - SSL certificate to use for requests to the Bitbucket Data Center.
- Connection
Bitbucket Data Center Config Authorizer Credential - Required. A http access token with the
REPO_ADMIN
scope access. Structure is documented below. - Host
Uri string - The URI of the Bitbucket Data Center host this connection is for.
- Connection
Bitbucket Data Center Config Read Authorizer Credential - Required. A http access token with the
REPO_READ
access. Structure is documented below. - Webhook
Secret stringSecret Version - Required. Immutable. SecretManager resource containing the webhook secret used to verify webhook events, formatted as
projects/*/secrets/*/versions/*
. - Server
Version string - (Output)
Output only. Version of the Bitbucket Data Center running on the
host_uri
. - Service
Directory ConnectionConfig Bitbucket Data Center Config Service Directory Config - Configuration for using Service Directory to privately connect to a Bitbucket Data Center. This should only be set if the Bitbucket Data Center is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the Bitbucket Data Center will be made over the public internet. Structure is documented below.
- Ssl
Ca string - SSL certificate to use for requests to the Bitbucket Data Center.
- Connection
Bitbucket Data Center Config Authorizer Credential - Required. A http access token with the
REPO_ADMIN
scope access. Structure is documented below. - host
Uri String - The URI of the Bitbucket Data Center host this connection is for.
- Connection
Bitbucket Data Center Config Read Authorizer Credential - Required. A http access token with the
REPO_READ
access. Structure is documented below. - webhook
Secret StringSecret Version - Required. Immutable. SecretManager resource containing the webhook secret used to verify webhook events, formatted as
projects/*/secrets/*/versions/*
. - server
Version String - (Output)
Output only. Version of the Bitbucket Data Center running on the
host_uri
. - service
Directory ConnectionConfig Bitbucket Data Center Config Service Directory Config - Configuration for using Service Directory to privately connect to a Bitbucket Data Center. This should only be set if the Bitbucket Data Center is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the Bitbucket Data Center will be made over the public internet. Structure is documented below.
- ssl
Ca String - SSL certificate to use for requests to the Bitbucket Data Center.
- Connection
Bitbucket Data Center Config Authorizer Credential - Required. A http access token with the
REPO_ADMIN
scope access. Structure is documented below. - host
Uri string - The URI of the Bitbucket Data Center host this connection is for.
- Connection
Bitbucket Data Center Config Read Authorizer Credential - Required. A http access token with the
REPO_READ
access. Structure is documented below. - webhook
Secret stringSecret Version - Required. Immutable. SecretManager resource containing the webhook secret used to verify webhook events, formatted as
projects/*/secrets/*/versions/*
. - server
Version string - (Output)
Output only. Version of the Bitbucket Data Center running on the
host_uri
. - service
Directory ConnectionConfig Bitbucket Data Center Config Service Directory Config - Configuration for using Service Directory to privately connect to a Bitbucket Data Center. This should only be set if the Bitbucket Data Center is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the Bitbucket Data Center will be made over the public internet. Structure is documented below.
- ssl
Ca string - SSL certificate to use for requests to the Bitbucket Data Center.
- Connection
Bitbucket Data Center Config Authorizer Credential - Required. A http access token with the
REPO_ADMIN
scope access. Structure is documented below. - host_
uri str - The URI of the Bitbucket Data Center host this connection is for.
- Connection
Bitbucket Data Center Config Read Authorizer Credential - Required. A http access token with the
REPO_READ
access. Structure is documented below. - webhook_
secret_ strsecret_ version - Required. Immutable. SecretManager resource containing the webhook secret used to verify webhook events, formatted as
projects/*/secrets/*/versions/*
. - server_
version str - (Output)
Output only. Version of the Bitbucket Data Center running on the
host_uri
. - service_
directory_ Connectionconfig Bitbucket Data Center Config Service Directory Config - Configuration for using Service Directory to privately connect to a Bitbucket Data Center. This should only be set if the Bitbucket Data Center is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the Bitbucket Data Center will be made over the public internet. Structure is documented below.
- ssl_
ca str - SSL certificate to use for requests to the Bitbucket Data Center.
- Property Map
- Required. A http access token with the
REPO_ADMIN
scope access. Structure is documented below. - host
Uri String - The URI of the Bitbucket Data Center host this connection is for.
- Property Map
- Required. A http access token with the
REPO_READ
access. Structure is documented below. - webhook
Secret StringSecret Version - Required. Immutable. SecretManager resource containing the webhook secret used to verify webhook events, formatted as
projects/*/secrets/*/versions/*
. - server
Version String - (Output)
Output only. Version of the Bitbucket Data Center running on the
host_uri
. - service
Directory Property MapConfig - Configuration for using Service Directory to privately connect to a Bitbucket Data Center. This should only be set if the Bitbucket Data Center is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the Bitbucket Data Center will be made over the public internet. Structure is documented below.
- ssl
Ca String - SSL certificate to use for requests to the Bitbucket Data Center.
ConnectionBitbucketDataCenterConfigAuthorizerCredential, ConnectionBitbucketDataCenterConfigAuthorizerCredentialArgs
- User
Token stringSecret Version - Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - Username string
- (Output) Output only. The username associated to this token.
- User
Token stringSecret Version - Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - Username string
- (Output) Output only. The username associated to this token.
- user
Token StringSecret Version - Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - username String
- (Output) Output only. The username associated to this token.
- user
Token stringSecret Version - Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - username string
- (Output) Output only. The username associated to this token.
- user_
token_ strsecret_ version - Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - username str
- (Output) Output only. The username associated to this token.
- user
Token StringSecret Version - Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - username String
- (Output) Output only. The username associated to this token.
ConnectionBitbucketDataCenterConfigReadAuthorizerCredential, ConnectionBitbucketDataCenterConfigReadAuthorizerCredentialArgs
- User
Token stringSecret Version - Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - Username string
- (Output) Output only. The username associated to this token.
- User
Token stringSecret Version - Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - Username string
- (Output) Output only. The username associated to this token.
- user
Token StringSecret Version - Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - username String
- (Output) Output only. The username associated to this token.
- user
Token stringSecret Version - Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - username string
- (Output) Output only. The username associated to this token.
- user_
token_ strsecret_ version - Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - username str
- (Output) Output only. The username associated to this token.
- user
Token StringSecret Version - Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - username String
- (Output) Output only. The username associated to this token.
ConnectionBitbucketDataCenterConfigServiceDirectoryConfig, ConnectionBitbucketDataCenterConfigServiceDirectoryConfigArgs
- Service string
- Required. The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
- Service string
- Required. The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
- service String
- Required. The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
- service string
- Required. The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
- service str
- Required. The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
- service String
- Required. The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
ConnectionGithubConfig, ConnectionGithubConfigArgs
- App
Installation intId - GitHub App installation id.
- Connection
Github Config Authorizer Credential - OAuth credential of the account that authorized the Cloud Build GitHub App. It is recommended to use a robot account instead of a human user account. The OAuth token must be tied to the Cloud Build GitHub App. Structure is documented below.
- App
Installation intId - GitHub App installation id.
- Connection
Github Config Authorizer Credential - OAuth credential of the account that authorized the Cloud Build GitHub App. It is recommended to use a robot account instead of a human user account. The OAuth token must be tied to the Cloud Build GitHub App. Structure is documented below.
- app
Installation IntegerId - GitHub App installation id.
- Connection
Github Config Authorizer Credential - OAuth credential of the account that authorized the Cloud Build GitHub App. It is recommended to use a robot account instead of a human user account. The OAuth token must be tied to the Cloud Build GitHub App. Structure is documented below.
- app
Installation numberId - GitHub App installation id.
- Connection
Github Config Authorizer Credential - OAuth credential of the account that authorized the Cloud Build GitHub App. It is recommended to use a robot account instead of a human user account. The OAuth token must be tied to the Cloud Build GitHub App. Structure is documented below.
- app_
installation_ intid - GitHub App installation id.
- Connection
Github Config Authorizer Credential - OAuth credential of the account that authorized the Cloud Build GitHub App. It is recommended to use a robot account instead of a human user account. The OAuth token must be tied to the Cloud Build GitHub App. Structure is documented below.
- app
Installation NumberId - GitHub App installation id.
- Property Map
- OAuth credential of the account that authorized the Cloud Build GitHub App. It is recommended to use a robot account instead of a human user account. The OAuth token must be tied to the Cloud Build GitHub App. Structure is documented below.
ConnectionGithubConfigAuthorizerCredential, ConnectionGithubConfigAuthorizerCredentialArgs
- Oauth
Token stringSecret Version - A SecretManager resource containing the OAuth token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - Username string
- (Output) Output only. The username associated to this token.
- Oauth
Token stringSecret Version - A SecretManager resource containing the OAuth token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - Username string
- (Output) Output only. The username associated to this token.
- oauth
Token StringSecret Version - A SecretManager resource containing the OAuth token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - username String
- (Output) Output only. The username associated to this token.
- oauth
Token stringSecret Version - A SecretManager resource containing the OAuth token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - username string
- (Output) Output only. The username associated to this token.
- oauth_
token_ strsecret_ version - A SecretManager resource containing the OAuth token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - username str
- (Output) Output only. The username associated to this token.
- oauth
Token StringSecret Version - A SecretManager resource containing the OAuth token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - username String
- (Output) Output only. The username associated to this token.
ConnectionGithubEnterpriseConfig, ConnectionGithubEnterpriseConfigArgs
- Host
Uri string - Required. The URI of the GitHub Enterprise host this connection is for.
- App
Id int - Id of the GitHub App created from the manifest.
- App
Installation intId - ID of the installation of the GitHub App.
- App
Slug string - The URL-friendly name of the GitHub App.
- Private
Key stringSecret Version - SecretManager resource containing the private key of the GitHub App, formatted as
projects/*/secrets/*/versions/*
. - Service
Directory ConnectionConfig Github Enterprise Config Service Directory Config - Configuration for using Service Directory to privately connect to a GitHub Enterprise server. This should only be set if the GitHub Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the GitHub Enterprise server will be made over the public internet. Structure is documented below.
- Ssl
Ca string - SSL certificate to use for requests to GitHub Enterprise.
- Webhook
Secret stringSecret Version - SecretManager resource containing the webhook secret of the GitHub App, formatted as
projects/*/secrets/*/versions/*
.
- Host
Uri string - Required. The URI of the GitHub Enterprise host this connection is for.
- App
Id int - Id of the GitHub App created from the manifest.
- App
Installation intId - ID of the installation of the GitHub App.
- App
Slug string - The URL-friendly name of the GitHub App.
- Private
Key stringSecret Version - SecretManager resource containing the private key of the GitHub App, formatted as
projects/*/secrets/*/versions/*
. - Service
Directory ConnectionConfig Github Enterprise Config Service Directory Config - Configuration for using Service Directory to privately connect to a GitHub Enterprise server. This should only be set if the GitHub Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the GitHub Enterprise server will be made over the public internet. Structure is documented below.
- Ssl
Ca string - SSL certificate to use for requests to GitHub Enterprise.
- Webhook
Secret stringSecret Version - SecretManager resource containing the webhook secret of the GitHub App, formatted as
projects/*/secrets/*/versions/*
.
- host
Uri String - Required. The URI of the GitHub Enterprise host this connection is for.
- app
Id Integer - Id of the GitHub App created from the manifest.
- app
Installation IntegerId - ID of the installation of the GitHub App.
- app
Slug String - The URL-friendly name of the GitHub App.
- private
Key StringSecret Version - SecretManager resource containing the private key of the GitHub App, formatted as
projects/*/secrets/*/versions/*
. - service
Directory ConnectionConfig Github Enterprise Config Service Directory Config - Configuration for using Service Directory to privately connect to a GitHub Enterprise server. This should only be set if the GitHub Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the GitHub Enterprise server will be made over the public internet. Structure is documented below.
- ssl
Ca String - SSL certificate to use for requests to GitHub Enterprise.
- webhook
Secret StringSecret Version - SecretManager resource containing the webhook secret of the GitHub App, formatted as
projects/*/secrets/*/versions/*
.
- host
Uri string - Required. The URI of the GitHub Enterprise host this connection is for.
- app
Id number - Id of the GitHub App created from the manifest.
- app
Installation numberId - ID of the installation of the GitHub App.
- app
Slug string - The URL-friendly name of the GitHub App.
- private
Key stringSecret Version - SecretManager resource containing the private key of the GitHub App, formatted as
projects/*/secrets/*/versions/*
. - service
Directory ConnectionConfig Github Enterprise Config Service Directory Config - Configuration for using Service Directory to privately connect to a GitHub Enterprise server. This should only be set if the GitHub Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the GitHub Enterprise server will be made over the public internet. Structure is documented below.
- ssl
Ca string - SSL certificate to use for requests to GitHub Enterprise.
- webhook
Secret stringSecret Version - SecretManager resource containing the webhook secret of the GitHub App, formatted as
projects/*/secrets/*/versions/*
.
- host_
uri str - Required. The URI of the GitHub Enterprise host this connection is for.
- app_
id int - Id of the GitHub App created from the manifest.
- app_
installation_ intid - ID of the installation of the GitHub App.
- app_
slug str - The URL-friendly name of the GitHub App.
- private_
key_ strsecret_ version - SecretManager resource containing the private key of the GitHub App, formatted as
projects/*/secrets/*/versions/*
. - service_
directory_ Connectionconfig Github Enterprise Config Service Directory Config - Configuration for using Service Directory to privately connect to a GitHub Enterprise server. This should only be set if the GitHub Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the GitHub Enterprise server will be made over the public internet. Structure is documented below.
- ssl_
ca str - SSL certificate to use for requests to GitHub Enterprise.
- webhook_
secret_ strsecret_ version - SecretManager resource containing the webhook secret of the GitHub App, formatted as
projects/*/secrets/*/versions/*
.
- host
Uri String - Required. The URI of the GitHub Enterprise host this connection is for.
- app
Id Number - Id of the GitHub App created from the manifest.
- app
Installation NumberId - ID of the installation of the GitHub App.
- app
Slug String - The URL-friendly name of the GitHub App.
- private
Key StringSecret Version - SecretManager resource containing the private key of the GitHub App, formatted as
projects/*/secrets/*/versions/*
. - service
Directory Property MapConfig - Configuration for using Service Directory to privately connect to a GitHub Enterprise server. This should only be set if the GitHub Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the GitHub Enterprise server will be made over the public internet. Structure is documented below.
- ssl
Ca String - SSL certificate to use for requests to GitHub Enterprise.
- webhook
Secret StringSecret Version - SecretManager resource containing the webhook secret of the GitHub App, formatted as
projects/*/secrets/*/versions/*
.
ConnectionGithubEnterpriseConfigServiceDirectoryConfig, ConnectionGithubEnterpriseConfigServiceDirectoryConfigArgs
- Service string
- Required. The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
- Service string
- Required. The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
- service String
- Required. The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
- service string
- Required. The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
- service str
- Required. The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
- service String
- Required. The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
ConnectionGitlabConfig, ConnectionGitlabConfigArgs
- Connection
Gitlab Config Authorizer Credential - Required. A GitLab personal access token with the
api
scope access. Structure is documented below. - Connection
Gitlab Config Read Authorizer Credential - Required. A GitLab personal access token with the minimum
read_api
scope access. Structure is documented below. - Webhook
Secret stringSecret Version - Required. Immutable. SecretManager resource containing the webhook secret of a GitLab Enterprise project, formatted as
projects/*/secrets/*/versions/*
. - Host
Uri string - The URI of the GitLab Enterprise host this connection is for. If not specified, the default value is https://gitlab.com.
- Server
Version string - (Output)
Output only. Version of the GitLab Enterprise server running on the
host_uri
. - Service
Directory ConnectionConfig Gitlab Config Service Directory Config - Configuration for using Service Directory to privately connect to a GitLab Enterprise server. This should only be set if the GitLab Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the GitLab Enterprise server will be made over the public internet. Structure is documented below.
- Ssl
Ca string - SSL certificate to use for requests to GitLab Enterprise.
- Connection
Gitlab Config Authorizer Credential - Required. A GitLab personal access token with the
api
scope access. Structure is documented below. - Connection
Gitlab Config Read Authorizer Credential - Required. A GitLab personal access token with the minimum
read_api
scope access. Structure is documented below. - Webhook
Secret stringSecret Version - Required. Immutable. SecretManager resource containing the webhook secret of a GitLab Enterprise project, formatted as
projects/*/secrets/*/versions/*
. - Host
Uri string - The URI of the GitLab Enterprise host this connection is for. If not specified, the default value is https://gitlab.com.
- Server
Version string - (Output)
Output only. Version of the GitLab Enterprise server running on the
host_uri
. - Service
Directory ConnectionConfig Gitlab Config Service Directory Config - Configuration for using Service Directory to privately connect to a GitLab Enterprise server. This should only be set if the GitLab Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the GitLab Enterprise server will be made over the public internet. Structure is documented below.
- Ssl
Ca string - SSL certificate to use for requests to GitLab Enterprise.
- Connection
Gitlab Config Authorizer Credential - Required. A GitLab personal access token with the
api
scope access. Structure is documented below. - Connection
Gitlab Config Read Authorizer Credential - Required. A GitLab personal access token with the minimum
read_api
scope access. Structure is documented below. - webhook
Secret StringSecret Version - Required. Immutable. SecretManager resource containing the webhook secret of a GitLab Enterprise project, formatted as
projects/*/secrets/*/versions/*
. - host
Uri String - The URI of the GitLab Enterprise host this connection is for. If not specified, the default value is https://gitlab.com.
- server
Version String - (Output)
Output only. Version of the GitLab Enterprise server running on the
host_uri
. - service
Directory ConnectionConfig Gitlab Config Service Directory Config - Configuration for using Service Directory to privately connect to a GitLab Enterprise server. This should only be set if the GitLab Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the GitLab Enterprise server will be made over the public internet. Structure is documented below.
- ssl
Ca String - SSL certificate to use for requests to GitLab Enterprise.
- Connection
Gitlab Config Authorizer Credential - Required. A GitLab personal access token with the
api
scope access. Structure is documented below. - Connection
Gitlab Config Read Authorizer Credential - Required. A GitLab personal access token with the minimum
read_api
scope access. Structure is documented below. - webhook
Secret stringSecret Version - Required. Immutable. SecretManager resource containing the webhook secret of a GitLab Enterprise project, formatted as
projects/*/secrets/*/versions/*
. - host
Uri string - The URI of the GitLab Enterprise host this connection is for. If not specified, the default value is https://gitlab.com.
- server
Version string - (Output)
Output only. Version of the GitLab Enterprise server running on the
host_uri
. - service
Directory ConnectionConfig Gitlab Config Service Directory Config - Configuration for using Service Directory to privately connect to a GitLab Enterprise server. This should only be set if the GitLab Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the GitLab Enterprise server will be made over the public internet. Structure is documented below.
- ssl
Ca string - SSL certificate to use for requests to GitLab Enterprise.
- Connection
Gitlab Config Authorizer Credential - Required. A GitLab personal access token with the
api
scope access. Structure is documented below. - Connection
Gitlab Config Read Authorizer Credential - Required. A GitLab personal access token with the minimum
read_api
scope access. Structure is documented below. - webhook_
secret_ strsecret_ version - Required. Immutable. SecretManager resource containing the webhook secret of a GitLab Enterprise project, formatted as
projects/*/secrets/*/versions/*
. - host_
uri str - The URI of the GitLab Enterprise host this connection is for. If not specified, the default value is https://gitlab.com.
- server_
version str - (Output)
Output only. Version of the GitLab Enterprise server running on the
host_uri
. - service_
directory_ Connectionconfig Gitlab Config Service Directory Config - Configuration for using Service Directory to privately connect to a GitLab Enterprise server. This should only be set if the GitLab Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the GitLab Enterprise server will be made over the public internet. Structure is documented below.
- ssl_
ca str - SSL certificate to use for requests to GitLab Enterprise.
- Property Map
- Required. A GitLab personal access token with the
api
scope access. Structure is documented below. - Property Map
- Required. A GitLab personal access token with the minimum
read_api
scope access. Structure is documented below. - webhook
Secret StringSecret Version - Required. Immutable. SecretManager resource containing the webhook secret of a GitLab Enterprise project, formatted as
projects/*/secrets/*/versions/*
. - host
Uri String - The URI of the GitLab Enterprise host this connection is for. If not specified, the default value is https://gitlab.com.
- server
Version String - (Output)
Output only. Version of the GitLab Enterprise server running on the
host_uri
. - service
Directory Property MapConfig - Configuration for using Service Directory to privately connect to a GitLab Enterprise server. This should only be set if the GitLab Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the GitLab Enterprise server will be made over the public internet. Structure is documented below.
- ssl
Ca String - SSL certificate to use for requests to GitLab Enterprise.
ConnectionGitlabConfigAuthorizerCredential, ConnectionGitlabConfigAuthorizerCredentialArgs
- User
Token stringSecret Version - Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - Username string
- (Output) Output only. The username associated to this token.
- User
Token stringSecret Version - Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - Username string
- (Output) Output only. The username associated to this token.
- user
Token StringSecret Version - Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - username String
- (Output) Output only. The username associated to this token.
- user
Token stringSecret Version - Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - username string
- (Output) Output only. The username associated to this token.
- user_
token_ strsecret_ version - Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - username str
- (Output) Output only. The username associated to this token.
- user
Token StringSecret Version - Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - username String
- (Output) Output only. The username associated to this token.
ConnectionGitlabConfigReadAuthorizerCredential, ConnectionGitlabConfigReadAuthorizerCredentialArgs
- User
Token stringSecret Version - Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - Username string
- (Output) Output only. The username associated to this token.
- User
Token stringSecret Version - Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - Username string
- (Output) Output only. The username associated to this token.
- user
Token StringSecret Version - Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - username String
- (Output) Output only. The username associated to this token.
- user
Token stringSecret Version - Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - username string
- (Output) Output only. The username associated to this token.
- user_
token_ strsecret_ version - Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - username str
- (Output) Output only. The username associated to this token.
- user
Token StringSecret Version - Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
. - username String
- (Output) Output only. The username associated to this token.
ConnectionGitlabConfigServiceDirectoryConfig, ConnectionGitlabConfigServiceDirectoryConfigArgs
- Service string
- Required. The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
- Service string
- Required. The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
- service String
- Required. The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
- service string
- Required. The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
- service str
- Required. The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
- service String
- Required. The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
ConnectionInstallationState, ConnectionInstallationStateArgs
- Action
Uri string - (Output) Output only. Link to follow for next action. Empty string if the installation is already complete.
- Message string
- (Output) Output only. Message of what the user should do next to continue the installation. Empty string if the installation is already complete.
- Stage string
- (Output) Output only. Current step of the installation process.
- Action
Uri string - (Output) Output only. Link to follow for next action. Empty string if the installation is already complete.
- Message string
- (Output) Output only. Message of what the user should do next to continue the installation. Empty string if the installation is already complete.
- Stage string
- (Output) Output only. Current step of the installation process.
- action
Uri String - (Output) Output only. Link to follow for next action. Empty string if the installation is already complete.
- message String
- (Output) Output only. Message of what the user should do next to continue the installation. Empty string if the installation is already complete.
- stage String
- (Output) Output only. Current step of the installation process.
- action
Uri string - (Output) Output only. Link to follow for next action. Empty string if the installation is already complete.
- message string
- (Output) Output only. Message of what the user should do next to continue the installation. Empty string if the installation is already complete.
- stage string
- (Output) Output only. Current step of the installation process.
- action_
uri str - (Output) Output only. Link to follow for next action. Empty string if the installation is already complete.
- message str
- (Output) Output only. Message of what the user should do next to continue the installation. Empty string if the installation is already complete.
- stage str
- (Output) Output only. Current step of the installation process.
- action
Uri String - (Output) Output only. Link to follow for next action. Empty string if the installation is already complete.
- message String
- (Output) Output only. Message of what the user should do next to continue the installation. Empty string if the installation is already complete.
- stage String
- (Output) Output only. Current step of the installation process.
Import
Connection can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/connections/{{name}}
{{project}}/{{location}}/{{name}}
{{location}}/{{name}}
{{name}}
When using the pulumi import
command, Connection can be imported using one of the formats above. For example:
$ pulumi import gcp:cloudbuildv2/connection:Connection default projects/{{project}}/locations/{{location}}/connections/{{name}}
$ pulumi import gcp:cloudbuildv2/connection:Connection default {{project}}/{{location}}/{{name}}
$ pulumi import gcp:cloudbuildv2/connection:Connection default {{location}}/{{name}}
$ pulumi import gcp:cloudbuildv2/connection:Connection default {{name}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.