1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. developerconnect
  5. AccountConnector
Viewing docs for Google Cloud v9.20.0
published on Wednesday, Apr 15, 2026 by Pulumi
gcp logo
Viewing docs for Google Cloud v9.20.0
published on Wednesday, Apr 15, 2026 by Pulumi

    Description

    Example Usage

    Developer Connect Account Connector Github

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const my_account_connector = new gcp.developerconnect.AccountConnector("my-account-connector", {
        location: "us-central1",
        accountConnectorId: "my-ac",
        providerOauthConfig: {
            systemProviderId: "GITHUB",
            scopes: ["repo"],
        },
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    my_account_connector = gcp.developerconnect.AccountConnector("my-account-connector",
        location="us-central1",
        account_connector_id="my-ac",
        provider_oauth_config={
            "system_provider_id": "GITHUB",
            "scopes": ["repo"],
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/developerconnect"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := developerconnect.NewAccountConnector(ctx, "my-account-connector", &developerconnect.AccountConnectorArgs{
    			Location:           pulumi.String("us-central1"),
    			AccountConnectorId: pulumi.String("my-ac"),
    			ProviderOauthConfig: &developerconnect.AccountConnectorProviderOauthConfigArgs{
    				SystemProviderId: pulumi.String("GITHUB"),
    				Scopes: pulumi.StringArray{
    					pulumi.String("repo"),
    				},
    			},
    		})
    		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_account_connector = new Gcp.DeveloperConnect.AccountConnector("my-account-connector", new()
        {
            Location = "us-central1",
            AccountConnectorId = "my-ac",
            ProviderOauthConfig = new Gcp.DeveloperConnect.Inputs.AccountConnectorProviderOauthConfigArgs
            {
                SystemProviderId = "GITHUB",
                Scopes = new[]
                {
                    "repo",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.developerconnect.AccountConnector;
    import com.pulumi.gcp.developerconnect.AccountConnectorArgs;
    import com.pulumi.gcp.developerconnect.inputs.AccountConnectorProviderOauthConfigArgs;
    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_account_connector = new AccountConnector("my-account-connector", AccountConnectorArgs.builder()
                .location("us-central1")
                .accountConnectorId("my-ac")
                .providerOauthConfig(AccountConnectorProviderOauthConfigArgs.builder()
                    .systemProviderId("GITHUB")
                    .scopes("repo")
                    .build())
                .build());
    
        }
    }
    
    resources:
      my-account-connector:
        type: gcp:developerconnect:AccountConnector
        properties:
          location: us-central1
          accountConnectorId: my-ac
          providerOauthConfig:
            systemProviderId: GITHUB
            scopes:
              - repo
    

    Developer Connect Account Connector Gitlab

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const my_account_connector = new gcp.developerconnect.AccountConnector("my-account-connector", {
        location: "us-central1",
        accountConnectorId: "my-ac",
        providerOauthConfig: {
            systemProviderId: "GITLAB",
            scopes: ["api"],
        },
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    my_account_connector = gcp.developerconnect.AccountConnector("my-account-connector",
        location="us-central1",
        account_connector_id="my-ac",
        provider_oauth_config={
            "system_provider_id": "GITLAB",
            "scopes": ["api"],
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/developerconnect"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := developerconnect.NewAccountConnector(ctx, "my-account-connector", &developerconnect.AccountConnectorArgs{
    			Location:           pulumi.String("us-central1"),
    			AccountConnectorId: pulumi.String("my-ac"),
    			ProviderOauthConfig: &developerconnect.AccountConnectorProviderOauthConfigArgs{
    				SystemProviderId: pulumi.String("GITLAB"),
    				Scopes: pulumi.StringArray{
    					pulumi.String("api"),
    				},
    			},
    		})
    		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_account_connector = new Gcp.DeveloperConnect.AccountConnector("my-account-connector", new()
        {
            Location = "us-central1",
            AccountConnectorId = "my-ac",
            ProviderOauthConfig = new Gcp.DeveloperConnect.Inputs.AccountConnectorProviderOauthConfigArgs
            {
                SystemProviderId = "GITLAB",
                Scopes = new[]
                {
                    "api",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.developerconnect.AccountConnector;
    import com.pulumi.gcp.developerconnect.AccountConnectorArgs;
    import com.pulumi.gcp.developerconnect.inputs.AccountConnectorProviderOauthConfigArgs;
    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_account_connector = new AccountConnector("my-account-connector", AccountConnectorArgs.builder()
                .location("us-central1")
                .accountConnectorId("my-ac")
                .providerOauthConfig(AccountConnectorProviderOauthConfigArgs.builder()
                    .systemProviderId("GITLAB")
                    .scopes("api")
                    .build())
                .build());
    
        }
    }
    
    resources:
      my-account-connector:
        type: gcp:developerconnect:AccountConnector
        properties:
          location: us-central1
          accountConnectorId: my-ac
          providerOauthConfig:
            systemProviderId: GITLAB
            scopes:
              - api
    

    Developer Connect Account Connector Ghe

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const gheAcClientId = new gcp.secretmanager.Secret("ghe_ac_client_id", {
        secretId: "ghe-ac-id",
        replication: {
            auto: {},
        },
    });
    const gheAcClientIdVersion = new gcp.secretmanager.SecretVersion("ghe_ac_client_id_version", {
        secret: gheAcClientId.name,
        secretData: "dummy-client-id",
    });
    const gheAcClientSecret = new gcp.secretmanager.Secret("ghe_ac_client_secret", {
        secretId: "ghe-ac-sec",
        replication: {
            auto: {},
        },
    });
    const gheAcClientSecretVersion = new gcp.secretmanager.SecretVersion("ghe_ac_client_secret_version", {
        secret: gheAcClientSecret.name,
        secretData: "dummy-client-secret",
    });
    const my_account_connector = new gcp.developerconnect.AccountConnector("my-account-connector", {
        location: "us-central1",
        accountConnectorId: "my-ac",
        customOauthConfig: {
            authUri: "https://ghe.proctor-staging-test.com/login/oauth/authorize",
            clientId: gheAcClientIdVersion.secretData,
            clientSecret: gheAcClientSecretVersion.secretData,
            tokenUri: "https://ghe.proctor-staging-test.com/login/oauth/access_token",
            hostUri: "https://ghe.proctor-staging-test.com",
            scmProvider: "GITHUB_ENTERPRISE",
            scopes: ["repo"],
        },
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    ghe_ac_client_id = gcp.secretmanager.Secret("ghe_ac_client_id",
        secret_id="ghe-ac-id",
        replication={
            "auto": {},
        })
    ghe_ac_client_id_version = gcp.secretmanager.SecretVersion("ghe_ac_client_id_version",
        secret=ghe_ac_client_id.name,
        secret_data="dummy-client-id")
    ghe_ac_client_secret = gcp.secretmanager.Secret("ghe_ac_client_secret",
        secret_id="ghe-ac-sec",
        replication={
            "auto": {},
        })
    ghe_ac_client_secret_version = gcp.secretmanager.SecretVersion("ghe_ac_client_secret_version",
        secret=ghe_ac_client_secret.name,
        secret_data="dummy-client-secret")
    my_account_connector = gcp.developerconnect.AccountConnector("my-account-connector",
        location="us-central1",
        account_connector_id="my-ac",
        custom_oauth_config={
            "auth_uri": "https://ghe.proctor-staging-test.com/login/oauth/authorize",
            "client_id": ghe_ac_client_id_version.secret_data,
            "client_secret": ghe_ac_client_secret_version.secret_data,
            "token_uri": "https://ghe.proctor-staging-test.com/login/oauth/access_token",
            "host_uri": "https://ghe.proctor-staging-test.com",
            "scm_provider": "GITHUB_ENTERPRISE",
            "scopes": ["repo"],
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/developerconnect"
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/secretmanager"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		gheAcClientId, err := secretmanager.NewSecret(ctx, "ghe_ac_client_id", &secretmanager.SecretArgs{
    			SecretId: pulumi.String("ghe-ac-id"),
    			Replication: &secretmanager.SecretReplicationArgs{
    				Auto: &secretmanager.SecretReplicationAutoArgs{},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		gheAcClientIdVersion, err := secretmanager.NewSecretVersion(ctx, "ghe_ac_client_id_version", &secretmanager.SecretVersionArgs{
    			Secret:     gheAcClientId.Name,
    			SecretData: pulumi.String("dummy-client-id"),
    		})
    		if err != nil {
    			return err
    		}
    		gheAcClientSecret, err := secretmanager.NewSecret(ctx, "ghe_ac_client_secret", &secretmanager.SecretArgs{
    			SecretId: pulumi.String("ghe-ac-sec"),
    			Replication: &secretmanager.SecretReplicationArgs{
    				Auto: &secretmanager.SecretReplicationAutoArgs{},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		gheAcClientSecretVersion, err := secretmanager.NewSecretVersion(ctx, "ghe_ac_client_secret_version", &secretmanager.SecretVersionArgs{
    			Secret:     gheAcClientSecret.Name,
    			SecretData: pulumi.String("dummy-client-secret"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = developerconnect.NewAccountConnector(ctx, "my-account-connector", &developerconnect.AccountConnectorArgs{
    			Location:           pulumi.String("us-central1"),
    			AccountConnectorId: pulumi.String("my-ac"),
    			CustomOauthConfig: &developerconnect.AccountConnectorCustomOauthConfigArgs{
    				AuthUri:      pulumi.String("https://ghe.proctor-staging-test.com/login/oauth/authorize"),
    				ClientId:     gheAcClientIdVersion.SecretData,
    				ClientSecret: gheAcClientSecretVersion.SecretData,
    				TokenUri:     pulumi.String("https://ghe.proctor-staging-test.com/login/oauth/access_token"),
    				HostUri:      pulumi.String("https://ghe.proctor-staging-test.com"),
    				ScmProvider:  pulumi.String("GITHUB_ENTERPRISE"),
    				Scopes: pulumi.StringArray{
    					pulumi.String("repo"),
    				},
    			},
    		})
    		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 gheAcClientId = new Gcp.SecretManager.Secret("ghe_ac_client_id", new()
        {
            SecretId = "ghe-ac-id",
            Replication = new Gcp.SecretManager.Inputs.SecretReplicationArgs
            {
                Auto = null,
            },
        });
    
        var gheAcClientIdVersion = new Gcp.SecretManager.SecretVersion("ghe_ac_client_id_version", new()
        {
            Secret = gheAcClientId.Name,
            SecretData = "dummy-client-id",
        });
    
        var gheAcClientSecret = new Gcp.SecretManager.Secret("ghe_ac_client_secret", new()
        {
            SecretId = "ghe-ac-sec",
            Replication = new Gcp.SecretManager.Inputs.SecretReplicationArgs
            {
                Auto = null,
            },
        });
    
        var gheAcClientSecretVersion = new Gcp.SecretManager.SecretVersion("ghe_ac_client_secret_version", new()
        {
            Secret = gheAcClientSecret.Name,
            SecretData = "dummy-client-secret",
        });
    
        var my_account_connector = new Gcp.DeveloperConnect.AccountConnector("my-account-connector", new()
        {
            Location = "us-central1",
            AccountConnectorId = "my-ac",
            CustomOauthConfig = new Gcp.DeveloperConnect.Inputs.AccountConnectorCustomOauthConfigArgs
            {
                AuthUri = "https://ghe.proctor-staging-test.com/login/oauth/authorize",
                ClientId = gheAcClientIdVersion.SecretData,
                ClientSecret = gheAcClientSecretVersion.SecretData,
                TokenUri = "https://ghe.proctor-staging-test.com/login/oauth/access_token",
                HostUri = "https://ghe.proctor-staging-test.com",
                ScmProvider = "GITHUB_ENTERPRISE",
                Scopes = new[]
                {
                    "repo",
                },
            },
        });
    
    });
    
    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.developerconnect.AccountConnector;
    import com.pulumi.gcp.developerconnect.AccountConnectorArgs;
    import com.pulumi.gcp.developerconnect.inputs.AccountConnectorCustomOauthConfigArgs;
    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 gheAcClientId = new Secret("gheAcClientId", SecretArgs.builder()
                .secretId("ghe-ac-id")
                .replication(SecretReplicationArgs.builder()
                    .auto(SecretReplicationAutoArgs.builder()
                        .build())
                    .build())
                .build());
    
            var gheAcClientIdVersion = new SecretVersion("gheAcClientIdVersion", SecretVersionArgs.builder()
                .secret(gheAcClientId.name())
                .secretData("dummy-client-id")
                .build());
    
            var gheAcClientSecret = new Secret("gheAcClientSecret", SecretArgs.builder()
                .secretId("ghe-ac-sec")
                .replication(SecretReplicationArgs.builder()
                    .auto(SecretReplicationAutoArgs.builder()
                        .build())
                    .build())
                .build());
    
            var gheAcClientSecretVersion = new SecretVersion("gheAcClientSecretVersion", SecretVersionArgs.builder()
                .secret(gheAcClientSecret.name())
                .secretData("dummy-client-secret")
                .build());
    
            var my_account_connector = new AccountConnector("my-account-connector", AccountConnectorArgs.builder()
                .location("us-central1")
                .accountConnectorId("my-ac")
                .customOauthConfig(AccountConnectorCustomOauthConfigArgs.builder()
                    .authUri("https://ghe.proctor-staging-test.com/login/oauth/authorize")
                    .clientId(gheAcClientIdVersion.secretData())
                    .clientSecret(gheAcClientSecretVersion.secretData())
                    .tokenUri("https://ghe.proctor-staging-test.com/login/oauth/access_token")
                    .hostUri("https://ghe.proctor-staging-test.com")
                    .scmProvider("GITHUB_ENTERPRISE")
                    .scopes("repo")
                    .build())
                .build());
    
        }
    }
    
    resources:
      gheAcClientId:
        type: gcp:secretmanager:Secret
        name: ghe_ac_client_id
        properties:
          secretId: ghe-ac-id
          replication:
            auto: {}
      gheAcClientIdVersion:
        type: gcp:secretmanager:SecretVersion
        name: ghe_ac_client_id_version
        properties:
          secret: ${gheAcClientId.name}
          secretData: dummy-client-id
      gheAcClientSecret:
        type: gcp:secretmanager:Secret
        name: ghe_ac_client_secret
        properties:
          secretId: ghe-ac-sec
          replication:
            auto: {}
      gheAcClientSecretVersion:
        type: gcp:secretmanager:SecretVersion
        name: ghe_ac_client_secret_version
        properties:
          secret: ${gheAcClientSecret.name}
          secretData: dummy-client-secret
      my-account-connector:
        type: gcp:developerconnect:AccountConnector
        properties:
          location: us-central1
          accountConnectorId: my-ac
          customOauthConfig:
            authUri: https://ghe.proctor-staging-test.com/login/oauth/authorize
            clientId: ${gheAcClientIdVersion.secretData}
            clientSecret: ${gheAcClientSecretVersion.secretData}
            tokenUri: https://ghe.proctor-staging-test.com/login/oauth/access_token
            hostUri: https://ghe.proctor-staging-test.com
            scmProvider: GITHUB_ENTERPRISE
            scopes:
              - repo
    

    Developer Connect Account Connector Gle

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const gleAcClientId = new gcp.secretmanager.Secret("gle_ac_client_id", {
        secretId: "gle-ac-id",
        replication: {
            auto: {},
        },
    });
    const gleAcClientIdVersion = new gcp.secretmanager.SecretVersion("gle_ac_client_id_version", {
        secret: gleAcClientId.name,
        secretData: "dummy-client-id",
    });
    const gleAcClientSecret = new gcp.secretmanager.Secret("gle_ac_client_secret", {
        secretId: "gle-ac-sec",
        replication: {
            auto: {},
        },
    });
    const gleAcClientSecretVersion = new gcp.secretmanager.SecretVersion("gle_ac_client_secret_version", {
        secret: gleAcClientSecret.name,
        secretData: "dummy-client-secret",
    });
    const my_account_connector = new gcp.developerconnect.AccountConnector("my-account-connector", {
        location: "us-central1",
        accountConnectorId: "my-ac",
        customOauthConfig: {
            authUri: "https://gle-us-central1.gcb-test.com/oauth/authorize",
            clientId: gleAcClientIdVersion.secretData,
            clientSecret: gleAcClientSecretVersion.secretData,
            tokenUri: "https://gle-us-central1.gcb-test.com/oauth/token",
            hostUri: "https://gle-us-central1.gcb-test.com",
            scmProvider: "GITLAB_ENTERPRISE",
            scopes: ["api"],
        },
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    gle_ac_client_id = gcp.secretmanager.Secret("gle_ac_client_id",
        secret_id="gle-ac-id",
        replication={
            "auto": {},
        })
    gle_ac_client_id_version = gcp.secretmanager.SecretVersion("gle_ac_client_id_version",
        secret=gle_ac_client_id.name,
        secret_data="dummy-client-id")
    gle_ac_client_secret = gcp.secretmanager.Secret("gle_ac_client_secret",
        secret_id="gle-ac-sec",
        replication={
            "auto": {},
        })
    gle_ac_client_secret_version = gcp.secretmanager.SecretVersion("gle_ac_client_secret_version",
        secret=gle_ac_client_secret.name,
        secret_data="dummy-client-secret")
    my_account_connector = gcp.developerconnect.AccountConnector("my-account-connector",
        location="us-central1",
        account_connector_id="my-ac",
        custom_oauth_config={
            "auth_uri": "https://gle-us-central1.gcb-test.com/oauth/authorize",
            "client_id": gle_ac_client_id_version.secret_data,
            "client_secret": gle_ac_client_secret_version.secret_data,
            "token_uri": "https://gle-us-central1.gcb-test.com/oauth/token",
            "host_uri": "https://gle-us-central1.gcb-test.com",
            "scm_provider": "GITLAB_ENTERPRISE",
            "scopes": ["api"],
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/developerconnect"
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/secretmanager"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		gleAcClientId, err := secretmanager.NewSecret(ctx, "gle_ac_client_id", &secretmanager.SecretArgs{
    			SecretId: pulumi.String("gle-ac-id"),
    			Replication: &secretmanager.SecretReplicationArgs{
    				Auto: &secretmanager.SecretReplicationAutoArgs{},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		gleAcClientIdVersion, err := secretmanager.NewSecretVersion(ctx, "gle_ac_client_id_version", &secretmanager.SecretVersionArgs{
    			Secret:     gleAcClientId.Name,
    			SecretData: pulumi.String("dummy-client-id"),
    		})
    		if err != nil {
    			return err
    		}
    		gleAcClientSecret, err := secretmanager.NewSecret(ctx, "gle_ac_client_secret", &secretmanager.SecretArgs{
    			SecretId: pulumi.String("gle-ac-sec"),
    			Replication: &secretmanager.SecretReplicationArgs{
    				Auto: &secretmanager.SecretReplicationAutoArgs{},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		gleAcClientSecretVersion, err := secretmanager.NewSecretVersion(ctx, "gle_ac_client_secret_version", &secretmanager.SecretVersionArgs{
    			Secret:     gleAcClientSecret.Name,
    			SecretData: pulumi.String("dummy-client-secret"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = developerconnect.NewAccountConnector(ctx, "my-account-connector", &developerconnect.AccountConnectorArgs{
    			Location:           pulumi.String("us-central1"),
    			AccountConnectorId: pulumi.String("my-ac"),
    			CustomOauthConfig: &developerconnect.AccountConnectorCustomOauthConfigArgs{
    				AuthUri:      pulumi.String("https://gle-us-central1.gcb-test.com/oauth/authorize"),
    				ClientId:     gleAcClientIdVersion.SecretData,
    				ClientSecret: gleAcClientSecretVersion.SecretData,
    				TokenUri:     pulumi.String("https://gle-us-central1.gcb-test.com/oauth/token"),
    				HostUri:      pulumi.String("https://gle-us-central1.gcb-test.com"),
    				ScmProvider:  pulumi.String("GITLAB_ENTERPRISE"),
    				Scopes: pulumi.StringArray{
    					pulumi.String("api"),
    				},
    			},
    		})
    		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 gleAcClientId = new Gcp.SecretManager.Secret("gle_ac_client_id", new()
        {
            SecretId = "gle-ac-id",
            Replication = new Gcp.SecretManager.Inputs.SecretReplicationArgs
            {
                Auto = null,
            },
        });
    
        var gleAcClientIdVersion = new Gcp.SecretManager.SecretVersion("gle_ac_client_id_version", new()
        {
            Secret = gleAcClientId.Name,
            SecretData = "dummy-client-id",
        });
    
        var gleAcClientSecret = new Gcp.SecretManager.Secret("gle_ac_client_secret", new()
        {
            SecretId = "gle-ac-sec",
            Replication = new Gcp.SecretManager.Inputs.SecretReplicationArgs
            {
                Auto = null,
            },
        });
    
        var gleAcClientSecretVersion = new Gcp.SecretManager.SecretVersion("gle_ac_client_secret_version", new()
        {
            Secret = gleAcClientSecret.Name,
            SecretData = "dummy-client-secret",
        });
    
        var my_account_connector = new Gcp.DeveloperConnect.AccountConnector("my-account-connector", new()
        {
            Location = "us-central1",
            AccountConnectorId = "my-ac",
            CustomOauthConfig = new Gcp.DeveloperConnect.Inputs.AccountConnectorCustomOauthConfigArgs
            {
                AuthUri = "https://gle-us-central1.gcb-test.com/oauth/authorize",
                ClientId = gleAcClientIdVersion.SecretData,
                ClientSecret = gleAcClientSecretVersion.SecretData,
                TokenUri = "https://gle-us-central1.gcb-test.com/oauth/token",
                HostUri = "https://gle-us-central1.gcb-test.com",
                ScmProvider = "GITLAB_ENTERPRISE",
                Scopes = new[]
                {
                    "api",
                },
            },
        });
    
    });
    
    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.developerconnect.AccountConnector;
    import com.pulumi.gcp.developerconnect.AccountConnectorArgs;
    import com.pulumi.gcp.developerconnect.inputs.AccountConnectorCustomOauthConfigArgs;
    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 gleAcClientId = new Secret("gleAcClientId", SecretArgs.builder()
                .secretId("gle-ac-id")
                .replication(SecretReplicationArgs.builder()
                    .auto(SecretReplicationAutoArgs.builder()
                        .build())
                    .build())
                .build());
    
            var gleAcClientIdVersion = new SecretVersion("gleAcClientIdVersion", SecretVersionArgs.builder()
                .secret(gleAcClientId.name())
                .secretData("dummy-client-id")
                .build());
    
            var gleAcClientSecret = new Secret("gleAcClientSecret", SecretArgs.builder()
                .secretId("gle-ac-sec")
                .replication(SecretReplicationArgs.builder()
                    .auto(SecretReplicationAutoArgs.builder()
                        .build())
                    .build())
                .build());
    
            var gleAcClientSecretVersion = new SecretVersion("gleAcClientSecretVersion", SecretVersionArgs.builder()
                .secret(gleAcClientSecret.name())
                .secretData("dummy-client-secret")
                .build());
    
            var my_account_connector = new AccountConnector("my-account-connector", AccountConnectorArgs.builder()
                .location("us-central1")
                .accountConnectorId("my-ac")
                .customOauthConfig(AccountConnectorCustomOauthConfigArgs.builder()
                    .authUri("https://gle-us-central1.gcb-test.com/oauth/authorize")
                    .clientId(gleAcClientIdVersion.secretData())
                    .clientSecret(gleAcClientSecretVersion.secretData())
                    .tokenUri("https://gle-us-central1.gcb-test.com/oauth/token")
                    .hostUri("https://gle-us-central1.gcb-test.com")
                    .scmProvider("GITLAB_ENTERPRISE")
                    .scopes("api")
                    .build())
                .build());
    
        }
    }
    
    resources:
      gleAcClientId:
        type: gcp:secretmanager:Secret
        name: gle_ac_client_id
        properties:
          secretId: gle-ac-id
          replication:
            auto: {}
      gleAcClientIdVersion:
        type: gcp:secretmanager:SecretVersion
        name: gle_ac_client_id_version
        properties:
          secret: ${gleAcClientId.name}
          secretData: dummy-client-id
      gleAcClientSecret:
        type: gcp:secretmanager:Secret
        name: gle_ac_client_secret
        properties:
          secretId: gle-ac-sec
          replication:
            auto: {}
      gleAcClientSecretVersion:
        type: gcp:secretmanager:SecretVersion
        name: gle_ac_client_secret_version
        properties:
          secret: ${gleAcClientSecret.name}
          secretData: dummy-client-secret
      my-account-connector:
        type: gcp:developerconnect:AccountConnector
        properties:
          location: us-central1
          accountConnectorId: my-ac
          customOauthConfig:
            authUri: https://gle-us-central1.gcb-test.com/oauth/authorize
            clientId: ${gleAcClientIdVersion.secretData}
            clientSecret: ${gleAcClientSecretVersion.secretData}
            tokenUri: https://gle-us-central1.gcb-test.com/oauth/token
            hostUri: https://gle-us-central1.gcb-test.com
            scmProvider: GITLAB_ENTERPRISE
            scopes:
              - api
    

    Developer Connect Account Connector Bbdc

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const bbdcAcPrivClientId = new gcp.secretmanager.Secret("bbdc_ac_priv_client_id", {
        secretId: "bbdc-ac-id",
        replication: {
            auto: {},
        },
    });
    const bbdcAcPrivClientIdVersion = new gcp.secretmanager.SecretVersion("bbdc_ac_priv_client_id_version", {
        secret: bbdcAcPrivClientId.name,
        secretData: "dummy-client-id",
    });
    const bbdcAcPrivClientSecret = new gcp.secretmanager.Secret("bbdc_ac_priv_client_secret", {
        secretId: "bbdc-ac-sec",
        replication: {
            auto: {},
        },
    });
    const bbdcAcPrivClientSecretVersion = new gcp.secretmanager.SecretVersion("bbdc_ac_priv_client_secret_version", {
        secret: bbdcAcPrivClientSecret.name,
        secretData: "dummy-client-secret",
    });
    const my_account_connector = new gcp.developerconnect.AccountConnector("my-account-connector", {
        location: "us-central1",
        accountConnectorId: "my-ac",
        customOauthConfig: {
            authUri: "https://bitbucket-us-central.gcb-test.com/rest/oauth2/latest/authorize",
            clientId: bbdcAcPrivClientIdVersion.secretData,
            clientSecret: bbdcAcPrivClientSecretVersion.secretData,
            tokenUri: "https://bitbucket-us-central.gcb-test.com/rest/oauth2/latest/token",
            hostUri: "https://bitbucket-us-central.gcb-test.com",
            scmProvider: "BITBUCKET_DATA_CENTER",
            scopes: ["REPO_ADMIN"],
        },
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    bbdc_ac_priv_client_id = gcp.secretmanager.Secret("bbdc_ac_priv_client_id",
        secret_id="bbdc-ac-id",
        replication={
            "auto": {},
        })
    bbdc_ac_priv_client_id_version = gcp.secretmanager.SecretVersion("bbdc_ac_priv_client_id_version",
        secret=bbdc_ac_priv_client_id.name,
        secret_data="dummy-client-id")
    bbdc_ac_priv_client_secret = gcp.secretmanager.Secret("bbdc_ac_priv_client_secret",
        secret_id="bbdc-ac-sec",
        replication={
            "auto": {},
        })
    bbdc_ac_priv_client_secret_version = gcp.secretmanager.SecretVersion("bbdc_ac_priv_client_secret_version",
        secret=bbdc_ac_priv_client_secret.name,
        secret_data="dummy-client-secret")
    my_account_connector = gcp.developerconnect.AccountConnector("my-account-connector",
        location="us-central1",
        account_connector_id="my-ac",
        custom_oauth_config={
            "auth_uri": "https://bitbucket-us-central.gcb-test.com/rest/oauth2/latest/authorize",
            "client_id": bbdc_ac_priv_client_id_version.secret_data,
            "client_secret": bbdc_ac_priv_client_secret_version.secret_data,
            "token_uri": "https://bitbucket-us-central.gcb-test.com/rest/oauth2/latest/token",
            "host_uri": "https://bitbucket-us-central.gcb-test.com",
            "scm_provider": "BITBUCKET_DATA_CENTER",
            "scopes": ["REPO_ADMIN"],
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/developerconnect"
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/secretmanager"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		bbdcAcPrivClientId, err := secretmanager.NewSecret(ctx, "bbdc_ac_priv_client_id", &secretmanager.SecretArgs{
    			SecretId: pulumi.String("bbdc-ac-id"),
    			Replication: &secretmanager.SecretReplicationArgs{
    				Auto: &secretmanager.SecretReplicationAutoArgs{},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		bbdcAcPrivClientIdVersion, err := secretmanager.NewSecretVersion(ctx, "bbdc_ac_priv_client_id_version", &secretmanager.SecretVersionArgs{
    			Secret:     bbdcAcPrivClientId.Name,
    			SecretData: pulumi.String("dummy-client-id"),
    		})
    		if err != nil {
    			return err
    		}
    		bbdcAcPrivClientSecret, err := secretmanager.NewSecret(ctx, "bbdc_ac_priv_client_secret", &secretmanager.SecretArgs{
    			SecretId: pulumi.String("bbdc-ac-sec"),
    			Replication: &secretmanager.SecretReplicationArgs{
    				Auto: &secretmanager.SecretReplicationAutoArgs{},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		bbdcAcPrivClientSecretVersion, err := secretmanager.NewSecretVersion(ctx, "bbdc_ac_priv_client_secret_version", &secretmanager.SecretVersionArgs{
    			Secret:     bbdcAcPrivClientSecret.Name,
    			SecretData: pulumi.String("dummy-client-secret"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = developerconnect.NewAccountConnector(ctx, "my-account-connector", &developerconnect.AccountConnectorArgs{
    			Location:           pulumi.String("us-central1"),
    			AccountConnectorId: pulumi.String("my-ac"),
    			CustomOauthConfig: &developerconnect.AccountConnectorCustomOauthConfigArgs{
    				AuthUri:      pulumi.String("https://bitbucket-us-central.gcb-test.com/rest/oauth2/latest/authorize"),
    				ClientId:     bbdcAcPrivClientIdVersion.SecretData,
    				ClientSecret: bbdcAcPrivClientSecretVersion.SecretData,
    				TokenUri:     pulumi.String("https://bitbucket-us-central.gcb-test.com/rest/oauth2/latest/token"),
    				HostUri:      pulumi.String("https://bitbucket-us-central.gcb-test.com"),
    				ScmProvider:  pulumi.String("BITBUCKET_DATA_CENTER"),
    				Scopes: pulumi.StringArray{
    					pulumi.String("REPO_ADMIN"),
    				},
    			},
    		})
    		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 bbdcAcPrivClientId = new Gcp.SecretManager.Secret("bbdc_ac_priv_client_id", new()
        {
            SecretId = "bbdc-ac-id",
            Replication = new Gcp.SecretManager.Inputs.SecretReplicationArgs
            {
                Auto = null,
            },
        });
    
        var bbdcAcPrivClientIdVersion = new Gcp.SecretManager.SecretVersion("bbdc_ac_priv_client_id_version", new()
        {
            Secret = bbdcAcPrivClientId.Name,
            SecretData = "dummy-client-id",
        });
    
        var bbdcAcPrivClientSecret = new Gcp.SecretManager.Secret("bbdc_ac_priv_client_secret", new()
        {
            SecretId = "bbdc-ac-sec",
            Replication = new Gcp.SecretManager.Inputs.SecretReplicationArgs
            {
                Auto = null,
            },
        });
    
        var bbdcAcPrivClientSecretVersion = new Gcp.SecretManager.SecretVersion("bbdc_ac_priv_client_secret_version", new()
        {
            Secret = bbdcAcPrivClientSecret.Name,
            SecretData = "dummy-client-secret",
        });
    
        var my_account_connector = new Gcp.DeveloperConnect.AccountConnector("my-account-connector", new()
        {
            Location = "us-central1",
            AccountConnectorId = "my-ac",
            CustomOauthConfig = new Gcp.DeveloperConnect.Inputs.AccountConnectorCustomOauthConfigArgs
            {
                AuthUri = "https://bitbucket-us-central.gcb-test.com/rest/oauth2/latest/authorize",
                ClientId = bbdcAcPrivClientIdVersion.SecretData,
                ClientSecret = bbdcAcPrivClientSecretVersion.SecretData,
                TokenUri = "https://bitbucket-us-central.gcb-test.com/rest/oauth2/latest/token",
                HostUri = "https://bitbucket-us-central.gcb-test.com",
                ScmProvider = "BITBUCKET_DATA_CENTER",
                Scopes = new[]
                {
                    "REPO_ADMIN",
                },
            },
        });
    
    });
    
    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.developerconnect.AccountConnector;
    import com.pulumi.gcp.developerconnect.AccountConnectorArgs;
    import com.pulumi.gcp.developerconnect.inputs.AccountConnectorCustomOauthConfigArgs;
    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 bbdcAcPrivClientId = new Secret("bbdcAcPrivClientId", SecretArgs.builder()
                .secretId("bbdc-ac-id")
                .replication(SecretReplicationArgs.builder()
                    .auto(SecretReplicationAutoArgs.builder()
                        .build())
                    .build())
                .build());
    
            var bbdcAcPrivClientIdVersion = new SecretVersion("bbdcAcPrivClientIdVersion", SecretVersionArgs.builder()
                .secret(bbdcAcPrivClientId.name())
                .secretData("dummy-client-id")
                .build());
    
            var bbdcAcPrivClientSecret = new Secret("bbdcAcPrivClientSecret", SecretArgs.builder()
                .secretId("bbdc-ac-sec")
                .replication(SecretReplicationArgs.builder()
                    .auto(SecretReplicationAutoArgs.builder()
                        .build())
                    .build())
                .build());
    
            var bbdcAcPrivClientSecretVersion = new SecretVersion("bbdcAcPrivClientSecretVersion", SecretVersionArgs.builder()
                .secret(bbdcAcPrivClientSecret.name())
                .secretData("dummy-client-secret")
                .build());
    
            var my_account_connector = new AccountConnector("my-account-connector", AccountConnectorArgs.builder()
                .location("us-central1")
                .accountConnectorId("my-ac")
                .customOauthConfig(AccountConnectorCustomOauthConfigArgs.builder()
                    .authUri("https://bitbucket-us-central.gcb-test.com/rest/oauth2/latest/authorize")
                    .clientId(bbdcAcPrivClientIdVersion.secretData())
                    .clientSecret(bbdcAcPrivClientSecretVersion.secretData())
                    .tokenUri("https://bitbucket-us-central.gcb-test.com/rest/oauth2/latest/token")
                    .hostUri("https://bitbucket-us-central.gcb-test.com")
                    .scmProvider("BITBUCKET_DATA_CENTER")
                    .scopes("REPO_ADMIN")
                    .build())
                .build());
    
        }
    }
    
    resources:
      bbdcAcPrivClientId:
        type: gcp:secretmanager:Secret
        name: bbdc_ac_priv_client_id
        properties:
          secretId: bbdc-ac-id
          replication:
            auto: {}
      bbdcAcPrivClientIdVersion:
        type: gcp:secretmanager:SecretVersion
        name: bbdc_ac_priv_client_id_version
        properties:
          secret: ${bbdcAcPrivClientId.name}
          secretData: dummy-client-id
      bbdcAcPrivClientSecret:
        type: gcp:secretmanager:Secret
        name: bbdc_ac_priv_client_secret
        properties:
          secretId: bbdc-ac-sec
          replication:
            auto: {}
      bbdcAcPrivClientSecretVersion:
        type: gcp:secretmanager:SecretVersion
        name: bbdc_ac_priv_client_secret_version
        properties:
          secret: ${bbdcAcPrivClientSecret.name}
          secretData: dummy-client-secret
      my-account-connector:
        type: gcp:developerconnect:AccountConnector
        properties:
          location: us-central1
          accountConnectorId: my-ac
          customOauthConfig:
            authUri: https://bitbucket-us-central.gcb-test.com/rest/oauth2/latest/authorize
            clientId: ${bbdcAcPrivClientIdVersion.secretData}
            clientSecret: ${bbdcAcPrivClientSecretVersion.secretData}
            tokenUri: https://bitbucket-us-central.gcb-test.com/rest/oauth2/latest/token
            hostUri: https://bitbucket-us-central.gcb-test.com
            scmProvider: BITBUCKET_DATA_CENTER
            scopes:
              - REPO_ADMIN
    

    Create AccountConnector Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AccountConnector(name: string, args: AccountConnectorArgs, opts?: CustomResourceOptions);
    @overload
    def AccountConnector(resource_name: str,
                         args: AccountConnectorArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def AccountConnector(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         account_connector_id: Optional[str] = None,
                         location: Optional[str] = None,
                         annotations: Optional[Mapping[str, str]] = None,
                         custom_oauth_config: Optional[AccountConnectorCustomOauthConfigArgs] = None,
                         etag: Optional[str] = None,
                         labels: Optional[Mapping[str, str]] = None,
                         project: Optional[str] = None,
                         provider_oauth_config: Optional[AccountConnectorProviderOauthConfigArgs] = None,
                         proxy_config: Optional[AccountConnectorProxyConfigArgs] = None)
    func NewAccountConnector(ctx *Context, name string, args AccountConnectorArgs, opts ...ResourceOption) (*AccountConnector, error)
    public AccountConnector(string name, AccountConnectorArgs args, CustomResourceOptions? opts = null)
    public AccountConnector(String name, AccountConnectorArgs args)
    public AccountConnector(String name, AccountConnectorArgs args, CustomResourceOptions options)
    
    type: gcp:developerconnect:AccountConnector
    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 AccountConnectorArgs
    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 AccountConnectorArgs
    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 AccountConnectorArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AccountConnectorArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AccountConnectorArgs
    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 accountConnectorResource = new Gcp.DeveloperConnect.AccountConnector("accountConnectorResource", new()
    {
        AccountConnectorId = "string",
        Location = "string",
        Annotations = 
        {
            { "string", "string" },
        },
        CustomOauthConfig = new Gcp.DeveloperConnect.Inputs.AccountConnectorCustomOauthConfigArgs
        {
            AuthUri = "string",
            ClientId = "string",
            ClientSecret = "string",
            HostUri = "string",
            ScmProvider = "string",
            Scopes = new[]
            {
                "string",
            },
            TokenUri = "string",
            PkceDisabled = false,
            ServerVersion = "string",
            ServiceDirectoryConfig = new Gcp.DeveloperConnect.Inputs.AccountConnectorCustomOauthConfigServiceDirectoryConfigArgs
            {
                Service = "string",
            },
            SslCaCertificate = "string",
        },
        Etag = "string",
        Labels = 
        {
            { "string", "string" },
        },
        Project = "string",
        ProviderOauthConfig = new Gcp.DeveloperConnect.Inputs.AccountConnectorProviderOauthConfigArgs
        {
            Scopes = new[]
            {
                "string",
            },
            SystemProviderId = "string",
        },
        ProxyConfig = new Gcp.DeveloperConnect.Inputs.AccountConnectorProxyConfigArgs
        {
            Enabled = false,
        },
    });
    
    example, err := developerconnect.NewAccountConnector(ctx, "accountConnectorResource", &developerconnect.AccountConnectorArgs{
    	AccountConnectorId: pulumi.String("string"),
    	Location:           pulumi.String("string"),
    	Annotations: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	CustomOauthConfig: &developerconnect.AccountConnectorCustomOauthConfigArgs{
    		AuthUri:      pulumi.String("string"),
    		ClientId:     pulumi.String("string"),
    		ClientSecret: pulumi.String("string"),
    		HostUri:      pulumi.String("string"),
    		ScmProvider:  pulumi.String("string"),
    		Scopes: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		TokenUri:      pulumi.String("string"),
    		PkceDisabled:  pulumi.Bool(false),
    		ServerVersion: pulumi.String("string"),
    		ServiceDirectoryConfig: &developerconnect.AccountConnectorCustomOauthConfigServiceDirectoryConfigArgs{
    			Service: pulumi.String("string"),
    		},
    		SslCaCertificate: pulumi.String("string"),
    	},
    	Etag: pulumi.String("string"),
    	Labels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Project: pulumi.String("string"),
    	ProviderOauthConfig: &developerconnect.AccountConnectorProviderOauthConfigArgs{
    		Scopes: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		SystemProviderId: pulumi.String("string"),
    	},
    	ProxyConfig: &developerconnect.AccountConnectorProxyConfigArgs{
    		Enabled: pulumi.Bool(false),
    	},
    })
    
    var accountConnectorResource = new AccountConnector("accountConnectorResource", AccountConnectorArgs.builder()
        .accountConnectorId("string")
        .location("string")
        .annotations(Map.of("string", "string"))
        .customOauthConfig(AccountConnectorCustomOauthConfigArgs.builder()
            .authUri("string")
            .clientId("string")
            .clientSecret("string")
            .hostUri("string")
            .scmProvider("string")
            .scopes("string")
            .tokenUri("string")
            .pkceDisabled(false)
            .serverVersion("string")
            .serviceDirectoryConfig(AccountConnectorCustomOauthConfigServiceDirectoryConfigArgs.builder()
                .service("string")
                .build())
            .sslCaCertificate("string")
            .build())
        .etag("string")
        .labels(Map.of("string", "string"))
        .project("string")
        .providerOauthConfig(AccountConnectorProviderOauthConfigArgs.builder()
            .scopes("string")
            .systemProviderId("string")
            .build())
        .proxyConfig(AccountConnectorProxyConfigArgs.builder()
            .enabled(false)
            .build())
        .build());
    
    account_connector_resource = gcp.developerconnect.AccountConnector("accountConnectorResource",
        account_connector_id="string",
        location="string",
        annotations={
            "string": "string",
        },
        custom_oauth_config={
            "auth_uri": "string",
            "client_id": "string",
            "client_secret": "string",
            "host_uri": "string",
            "scm_provider": "string",
            "scopes": ["string"],
            "token_uri": "string",
            "pkce_disabled": False,
            "server_version": "string",
            "service_directory_config": {
                "service": "string",
            },
            "ssl_ca_certificate": "string",
        },
        etag="string",
        labels={
            "string": "string",
        },
        project="string",
        provider_oauth_config={
            "scopes": ["string"],
            "system_provider_id": "string",
        },
        proxy_config={
            "enabled": False,
        })
    
    const accountConnectorResource = new gcp.developerconnect.AccountConnector("accountConnectorResource", {
        accountConnectorId: "string",
        location: "string",
        annotations: {
            string: "string",
        },
        customOauthConfig: {
            authUri: "string",
            clientId: "string",
            clientSecret: "string",
            hostUri: "string",
            scmProvider: "string",
            scopes: ["string"],
            tokenUri: "string",
            pkceDisabled: false,
            serverVersion: "string",
            serviceDirectoryConfig: {
                service: "string",
            },
            sslCaCertificate: "string",
        },
        etag: "string",
        labels: {
            string: "string",
        },
        project: "string",
        providerOauthConfig: {
            scopes: ["string"],
            systemProviderId: "string",
        },
        proxyConfig: {
            enabled: false,
        },
    });
    
    type: gcp:developerconnect:AccountConnector
    properties:
        accountConnectorId: string
        annotations:
            string: string
        customOauthConfig:
            authUri: string
            clientId: string
            clientSecret: string
            hostUri: string
            pkceDisabled: false
            scmProvider: string
            scopes:
                - string
            serverVersion: string
            serviceDirectoryConfig:
                service: string
            sslCaCertificate: string
            tokenUri: string
        etag: string
        labels:
            string: string
        location: string
        project: string
        providerOauthConfig:
            scopes:
                - string
            systemProviderId: string
        proxyConfig:
            enabled: false
    

    AccountConnector 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 AccountConnector resource accepts the following input properties:

    AccountConnectorId string
    The ID to use for the AccountConnector, which will become the final component of the AccountConnector's resource name. Its format should adhere to https://google.aip.dev/122#resource-id-segments Names must be unique per-project per-location.
    Location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    Annotations Dictionary<string, string>
    Allows users 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 effectiveAnnotations for all of the annotations present on the resource.
    CustomOauthConfig AccountConnectorCustomOauthConfig
    Message for a customized OAuth config. Structure is documented below.
    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.
    Labels Dictionary<string, string>
    Labels as key value pairs Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effectiveLabels for all of the labels present on the resource.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    ProviderOauthConfig AccountConnectorProviderOauthConfig
    ProviderOAuthConfig is the OAuth config for a provider. Structure is documented below.
    ProxyConfig AccountConnectorProxyConfig
    The proxy configuration. Structure is documented below.
    AccountConnectorId string
    The ID to use for the AccountConnector, which will become the final component of the AccountConnector's resource name. Its format should adhere to https://google.aip.dev/122#resource-id-segments Names must be unique per-project per-location.
    Location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    Annotations map[string]string
    Allows users 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 effectiveAnnotations for all of the annotations present on the resource.
    CustomOauthConfig AccountConnectorCustomOauthConfigArgs
    Message for a customized OAuth config. Structure is documented below.
    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.
    Labels map[string]string
    Labels as key value pairs Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effectiveLabels for all of the labels present on the resource.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    ProviderOauthConfig AccountConnectorProviderOauthConfigArgs
    ProviderOAuthConfig is the OAuth config for a provider. Structure is documented below.
    ProxyConfig AccountConnectorProxyConfigArgs
    The proxy configuration. Structure is documented below.
    accountConnectorId String
    The ID to use for the AccountConnector, which will become the final component of the AccountConnector's resource name. Its format should adhere to https://google.aip.dev/122#resource-id-segments Names must be unique per-project per-location.
    location String
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    annotations Map<String,String>
    Allows users 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 effectiveAnnotations for all of the annotations present on the resource.
    customOauthConfig AccountConnectorCustomOauthConfig
    Message for a customized OAuth config. Structure is documented below.
    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.
    labels Map<String,String>
    Labels as key value pairs Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effectiveLabels for all of the labels present on the resource.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    providerOauthConfig AccountConnectorProviderOauthConfig
    ProviderOAuthConfig is the OAuth config for a provider. Structure is documented below.
    proxyConfig AccountConnectorProxyConfig
    The proxy configuration. Structure is documented below.
    accountConnectorId string
    The ID to use for the AccountConnector, which will become the final component of the AccountConnector's resource name. Its format should adhere to https://google.aip.dev/122#resource-id-segments Names must be unique per-project per-location.
    location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    annotations {[key: string]: string}
    Allows users 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 effectiveAnnotations for all of the annotations present on the resource.
    customOauthConfig AccountConnectorCustomOauthConfig
    Message for a customized OAuth config. Structure is documented below.
    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.
    labels {[key: string]: string}
    Labels as key value pairs Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effectiveLabels for all of the labels present on the resource.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    providerOauthConfig AccountConnectorProviderOauthConfig
    ProviderOAuthConfig is the OAuth config for a provider. Structure is documented below.
    proxyConfig AccountConnectorProxyConfig
    The proxy configuration. Structure is documented below.
    account_connector_id str
    The ID to use for the AccountConnector, which will become the final component of the AccountConnector's resource name. Its format should adhere to https://google.aip.dev/122#resource-id-segments Names must be unique per-project per-location.
    location str
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    annotations Mapping[str, str]
    Allows users 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 effectiveAnnotations for all of the annotations present on the resource.
    custom_oauth_config AccountConnectorCustomOauthConfigArgs
    Message for a customized OAuth config. Structure is documented below.
    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.
    labels Mapping[str, str]
    Labels as key value pairs Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effectiveLabels for all of the labels present on the resource.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    provider_oauth_config AccountConnectorProviderOauthConfigArgs
    ProviderOAuthConfig is the OAuth config for a provider. Structure is documented below.
    proxy_config AccountConnectorProxyConfigArgs
    The proxy configuration. Structure is documented below.
    accountConnectorId String
    The ID to use for the AccountConnector, which will become the final component of the AccountConnector's resource name. Its format should adhere to https://google.aip.dev/122#resource-id-segments Names must be unique per-project per-location.
    location String
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    annotations Map<String>
    Allows users 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 effectiveAnnotations for all of the annotations present on the resource.
    customOauthConfig Property Map
    Message for a customized OAuth config. Structure is documented below.
    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.
    labels Map<String>
    Labels as key value pairs Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effectiveLabels for all of the labels present on the resource.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    providerOauthConfig Property Map
    ProviderOAuthConfig is the OAuth config for a provider. Structure is documented below.
    proxyConfig Property Map
    The proxy configuration. Structure is documented below.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AccountConnector resource produces the following output properties:

    CreateTime string
    The timestamp when the accountConnector was created.
    EffectiveAnnotations Dictionary<string, string>
    All of annotations (key/value pairs) present on the resource in GCP, including the annotations configured through Terraform, other clients and services.
    EffectiveLabels Dictionary<string, string>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Identifier. The resource name of the accountConnector, in the format projects/{project}/locations/{location}/accountConnectors/{account_connector_id}.
    OauthStartUri string
    Start OAuth flow by clicking on this URL.
    PulumiLabels Dictionary<string, string>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    UpdateTime string
    The timestamp when the accountConnector was updated.
    CreateTime string
    The timestamp when the accountConnector was created.
    EffectiveAnnotations map[string]string
    All of annotations (key/value pairs) present on the resource in GCP, including the annotations configured through Terraform, other clients and services.
    EffectiveLabels map[string]string
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Identifier. The resource name of the accountConnector, in the format projects/{project}/locations/{location}/accountConnectors/{account_connector_id}.
    OauthStartUri string
    Start OAuth flow by clicking on this URL.
    PulumiLabels map[string]string
    The combination of labels configured directly on the resource and default labels configured on the provider.
    UpdateTime string
    The timestamp when the accountConnector was updated.
    createTime String
    The timestamp when the accountConnector was created.
    effectiveAnnotations Map<String,String>
    All of annotations (key/value pairs) present on the resource in GCP, including the annotations configured through Terraform, other clients and services.
    effectiveLabels Map<String,String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Identifier. The resource name of the accountConnector, in the format projects/{project}/locations/{location}/accountConnectors/{account_connector_id}.
    oauthStartUri String
    Start OAuth flow by clicking on this URL.
    pulumiLabels Map<String,String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    updateTime String
    The timestamp when the accountConnector was updated.
    createTime string
    The timestamp when the accountConnector was created.
    effectiveAnnotations {[key: string]: string}
    All of annotations (key/value pairs) present on the resource in GCP, including the annotations configured through Terraform, other clients and services.
    effectiveLabels {[key: string]: string}
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Identifier. The resource name of the accountConnector, in the format projects/{project}/locations/{location}/accountConnectors/{account_connector_id}.
    oauthStartUri string
    Start OAuth flow by clicking on this URL.
    pulumiLabels {[key: string]: string}
    The combination of labels configured directly on the resource and default labels configured on the provider.
    updateTime string
    The timestamp when the accountConnector was updated.
    create_time str
    The timestamp when the accountConnector was created.
    effective_annotations Mapping[str, str]
    All of annotations (key/value pairs) present on the resource in GCP, including the annotations configured through Terraform, other clients and services.
    effective_labels Mapping[str, str]
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Identifier. The resource name of the accountConnector, in the format projects/{project}/locations/{location}/accountConnectors/{account_connector_id}.
    oauth_start_uri str
    Start OAuth flow by clicking on this URL.
    pulumi_labels Mapping[str, str]
    The combination of labels configured directly on the resource and default labels configured on the provider.
    update_time str
    The timestamp when the accountConnector was updated.
    createTime String
    The timestamp when the accountConnector was created.
    effectiveAnnotations Map<String>
    All of annotations (key/value pairs) present on the resource in GCP, including the annotations configured through Terraform, other clients and services.
    effectiveLabels Map<String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Identifier. The resource name of the accountConnector, in the format projects/{project}/locations/{location}/accountConnectors/{account_connector_id}.
    oauthStartUri String
    Start OAuth flow by clicking on this URL.
    pulumiLabels Map<String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    updateTime String
    The timestamp when the accountConnector was updated.

    Look up Existing AccountConnector Resource

    Get an existing AccountConnector 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?: AccountConnectorState, opts?: CustomResourceOptions): AccountConnector
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_connector_id: Optional[str] = None,
            annotations: Optional[Mapping[str, str]] = None,
            create_time: Optional[str] = None,
            custom_oauth_config: Optional[AccountConnectorCustomOauthConfigArgs] = None,
            effective_annotations: Optional[Mapping[str, str]] = None,
            effective_labels: Optional[Mapping[str, str]] = None,
            etag: Optional[str] = None,
            labels: Optional[Mapping[str, str]] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            oauth_start_uri: Optional[str] = None,
            project: Optional[str] = None,
            provider_oauth_config: Optional[AccountConnectorProviderOauthConfigArgs] = None,
            proxy_config: Optional[AccountConnectorProxyConfigArgs] = None,
            pulumi_labels: Optional[Mapping[str, str]] = None,
            update_time: Optional[str] = None) -> AccountConnector
    func GetAccountConnector(ctx *Context, name string, id IDInput, state *AccountConnectorState, opts ...ResourceOption) (*AccountConnector, error)
    public static AccountConnector Get(string name, Input<string> id, AccountConnectorState? state, CustomResourceOptions? opts = null)
    public static AccountConnector get(String name, Output<String> id, AccountConnectorState state, CustomResourceOptions options)
    resources:  _:    type: gcp:developerconnect:AccountConnector    get:      id: ${id}
    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.
    The following state arguments are supported:
    AccountConnectorId string
    The ID to use for the AccountConnector, which will become the final component of the AccountConnector's resource name. Its format should adhere to https://google.aip.dev/122#resource-id-segments Names must be unique per-project per-location.
    Annotations Dictionary<string, string>
    Allows users 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 effectiveAnnotations for all of the annotations present on the resource.
    CreateTime string
    The timestamp when the accountConnector was created.
    CustomOauthConfig AccountConnectorCustomOauthConfig
    Message for a customized OAuth config. Structure is documented below.
    EffectiveAnnotations Dictionary<string, string>
    All of annotations (key/value pairs) present on the resource in GCP, including the annotations configured through Terraform, other clients and services.
    EffectiveLabels Dictionary<string, string>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    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.
    Labels Dictionary<string, string>
    Labels as key value pairs Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effectiveLabels for all of the labels present on the resource.
    Location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    Name string
    Identifier. The resource name of the accountConnector, in the format projects/{project}/locations/{location}/accountConnectors/{account_connector_id}.
    OauthStartUri string
    Start OAuth flow by clicking on this URL.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    ProviderOauthConfig AccountConnectorProviderOauthConfig
    ProviderOAuthConfig is the OAuth config for a provider. Structure is documented below.
    ProxyConfig AccountConnectorProxyConfig
    The proxy configuration. Structure is documented below.
    PulumiLabels Dictionary<string, string>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    UpdateTime string
    The timestamp when the accountConnector was updated.
    AccountConnectorId string
    The ID to use for the AccountConnector, which will become the final component of the AccountConnector's resource name. Its format should adhere to https://google.aip.dev/122#resource-id-segments Names must be unique per-project per-location.
    Annotations map[string]string
    Allows users 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 effectiveAnnotations for all of the annotations present on the resource.
    CreateTime string
    The timestamp when the accountConnector was created.
    CustomOauthConfig AccountConnectorCustomOauthConfigArgs
    Message for a customized OAuth config. Structure is documented below.
    EffectiveAnnotations map[string]string
    All of annotations (key/value pairs) present on the resource in GCP, including the annotations configured through Terraform, other clients and services.
    EffectiveLabels map[string]string
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    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.
    Labels map[string]string
    Labels as key value pairs Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effectiveLabels for all of the labels present on the resource.
    Location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    Name string
    Identifier. The resource name of the accountConnector, in the format projects/{project}/locations/{location}/accountConnectors/{account_connector_id}.
    OauthStartUri string
    Start OAuth flow by clicking on this URL.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    ProviderOauthConfig AccountConnectorProviderOauthConfigArgs
    ProviderOAuthConfig is the OAuth config for a provider. Structure is documented below.
    ProxyConfig AccountConnectorProxyConfigArgs
    The proxy configuration. Structure is documented below.
    PulumiLabels map[string]string
    The combination of labels configured directly on the resource and default labels configured on the provider.
    UpdateTime string
    The timestamp when the accountConnector was updated.
    accountConnectorId String
    The ID to use for the AccountConnector, which will become the final component of the AccountConnector's resource name. Its format should adhere to https://google.aip.dev/122#resource-id-segments Names must be unique per-project per-location.
    annotations Map<String,String>
    Allows users 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 effectiveAnnotations for all of the annotations present on the resource.
    createTime String
    The timestamp when the accountConnector was created.
    customOauthConfig AccountConnectorCustomOauthConfig
    Message for a customized OAuth config. Structure is documented below.
    effectiveAnnotations Map<String,String>
    All of annotations (key/value pairs) present on the resource in GCP, including the annotations configured through Terraform, other clients and services.
    effectiveLabels Map<String,String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    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.
    labels Map<String,String>
    Labels as key value pairs Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effectiveLabels for all of the labels present on the resource.
    location String
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    name String
    Identifier. The resource name of the accountConnector, in the format projects/{project}/locations/{location}/accountConnectors/{account_connector_id}.
    oauthStartUri String
    Start OAuth flow by clicking on this URL.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    providerOauthConfig AccountConnectorProviderOauthConfig
    ProviderOAuthConfig is the OAuth config for a provider. Structure is documented below.
    proxyConfig AccountConnectorProxyConfig
    The proxy configuration. Structure is documented below.
    pulumiLabels Map<String,String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    updateTime String
    The timestamp when the accountConnector was updated.
    accountConnectorId string
    The ID to use for the AccountConnector, which will become the final component of the AccountConnector's resource name. Its format should adhere to https://google.aip.dev/122#resource-id-segments Names must be unique per-project per-location.
    annotations {[key: string]: string}
    Allows users 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 effectiveAnnotations for all of the annotations present on the resource.
    createTime string
    The timestamp when the accountConnector was created.
    customOauthConfig AccountConnectorCustomOauthConfig
    Message for a customized OAuth config. Structure is documented below.
    effectiveAnnotations {[key: string]: string}
    All of annotations (key/value pairs) present on the resource in GCP, including the annotations configured through Terraform, other clients and services.
    effectiveLabels {[key: string]: string}
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    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.
    labels {[key: string]: string}
    Labels as key value pairs Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effectiveLabels for all of the labels present on the resource.
    location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    name string
    Identifier. The resource name of the accountConnector, in the format projects/{project}/locations/{location}/accountConnectors/{account_connector_id}.
    oauthStartUri string
    Start OAuth flow by clicking on this URL.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    providerOauthConfig AccountConnectorProviderOauthConfig
    ProviderOAuthConfig is the OAuth config for a provider. Structure is documented below.
    proxyConfig AccountConnectorProxyConfig
    The proxy configuration. Structure is documented below.
    pulumiLabels {[key: string]: string}
    The combination of labels configured directly on the resource and default labels configured on the provider.
    updateTime string
    The timestamp when the accountConnector was updated.
    account_connector_id str
    The ID to use for the AccountConnector, which will become the final component of the AccountConnector's resource name. Its format should adhere to https://google.aip.dev/122#resource-id-segments Names must be unique per-project per-location.
    annotations Mapping[str, str]
    Allows users 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 effectiveAnnotations for all of the annotations present on the resource.
    create_time str
    The timestamp when the accountConnector was created.
    custom_oauth_config AccountConnectorCustomOauthConfigArgs
    Message for a customized OAuth config. Structure is documented below.
    effective_annotations Mapping[str, str]
    All of annotations (key/value pairs) present on the resource in GCP, including the annotations configured through Terraform, other clients and services.
    effective_labels Mapping[str, str]
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    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.
    labels Mapping[str, str]
    Labels as key value pairs Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effectiveLabels for all of the labels present on the resource.
    location str
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    name str
    Identifier. The resource name of the accountConnector, in the format projects/{project}/locations/{location}/accountConnectors/{account_connector_id}.
    oauth_start_uri str
    Start OAuth flow by clicking on this URL.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    provider_oauth_config AccountConnectorProviderOauthConfigArgs
    ProviderOAuthConfig is the OAuth config for a provider. Structure is documented below.
    proxy_config AccountConnectorProxyConfigArgs
    The proxy configuration. Structure is documented below.
    pulumi_labels Mapping[str, str]
    The combination of labels configured directly on the resource and default labels configured on the provider.
    update_time str
    The timestamp when the accountConnector was updated.
    accountConnectorId String
    The ID to use for the AccountConnector, which will become the final component of the AccountConnector's resource name. Its format should adhere to https://google.aip.dev/122#resource-id-segments Names must be unique per-project per-location.
    annotations Map<String>
    Allows users 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 effectiveAnnotations for all of the annotations present on the resource.
    createTime String
    The timestamp when the accountConnector was created.
    customOauthConfig Property Map
    Message for a customized OAuth config. Structure is documented below.
    effectiveAnnotations Map<String>
    All of annotations (key/value pairs) present on the resource in GCP, including the annotations configured through Terraform, other clients and services.
    effectiveLabels Map<String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    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.
    labels Map<String>
    Labels as key value pairs Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effectiveLabels for all of the labels present on the resource.
    location String
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    name String
    Identifier. The resource name of the accountConnector, in the format projects/{project}/locations/{location}/accountConnectors/{account_connector_id}.
    oauthStartUri String
    Start OAuth flow by clicking on this URL.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    providerOauthConfig Property Map
    ProviderOAuthConfig is the OAuth config for a provider. Structure is documented below.
    proxyConfig Property Map
    The proxy configuration. Structure is documented below.
    pulumiLabels Map<String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    updateTime String
    The timestamp when the accountConnector was updated.

    Supporting Types

    AccountConnectorCustomOauthConfig, AccountConnectorCustomOauthConfigArgs

    AuthUri string
    The OAuth2 authrization server URL.
    ClientId string
    The client ID of the OAuth application.
    ClientSecret string
    Input only. The client secret of the OAuth application. It will be provided as plain text, but encrypted and stored in developer connect. As INPUT_ONLY field, it will not be included in the output.
    HostUri string
    The host URI of the OAuth application.
    ScmProvider string
    The type of the SCM provider. Possible values: SCM_PROVIDER_UNKNOWN GITHUB_ENTERPRISE GITLAB_ENTERPRISE BITBUCKET_DATA_CENTER
    Scopes List<string>
    The scopes to be requested during OAuth.
    TokenUri string
    The OAuth2 token request URL.
    PkceDisabled bool
    Disable PKCE for this OAuth config. PKCE is enabled by default.
    ServerVersion string
    (Output) SCM server version installed at the host URI.
    ServiceDirectoryConfig AccountConnectorCustomOauthConfigServiceDirectoryConfig
    ServiceDirectoryConfig represents Service Directory configuration for a connection. Structure is documented below.
    SslCaCertificate string
    SSL certificate to use for requests to a private service.
    AuthUri string
    The OAuth2 authrization server URL.
    ClientId string
    The client ID of the OAuth application.
    ClientSecret string
    Input only. The client secret of the OAuth application. It will be provided as plain text, but encrypted and stored in developer connect. As INPUT_ONLY field, it will not be included in the output.
    HostUri string
    The host URI of the OAuth application.
    ScmProvider string
    The type of the SCM provider. Possible values: SCM_PROVIDER_UNKNOWN GITHUB_ENTERPRISE GITLAB_ENTERPRISE BITBUCKET_DATA_CENTER
    Scopes []string
    The scopes to be requested during OAuth.
    TokenUri string
    The OAuth2 token request URL.
    PkceDisabled bool
    Disable PKCE for this OAuth config. PKCE is enabled by default.
    ServerVersion string
    (Output) SCM server version installed at the host URI.
    ServiceDirectoryConfig AccountConnectorCustomOauthConfigServiceDirectoryConfig
    ServiceDirectoryConfig represents Service Directory configuration for a connection. Structure is documented below.
    SslCaCertificate string
    SSL certificate to use for requests to a private service.
    authUri String
    The OAuth2 authrization server URL.
    clientId String
    The client ID of the OAuth application.
    clientSecret String
    Input only. The client secret of the OAuth application. It will be provided as plain text, but encrypted and stored in developer connect. As INPUT_ONLY field, it will not be included in the output.
    hostUri String
    The host URI of the OAuth application.
    scmProvider String
    The type of the SCM provider. Possible values: SCM_PROVIDER_UNKNOWN GITHUB_ENTERPRISE GITLAB_ENTERPRISE BITBUCKET_DATA_CENTER
    scopes List<String>
    The scopes to be requested during OAuth.
    tokenUri String
    The OAuth2 token request URL.
    pkceDisabled Boolean
    Disable PKCE for this OAuth config. PKCE is enabled by default.
    serverVersion String
    (Output) SCM server version installed at the host URI.
    serviceDirectoryConfig AccountConnectorCustomOauthConfigServiceDirectoryConfig
    ServiceDirectoryConfig represents Service Directory configuration for a connection. Structure is documented below.
    sslCaCertificate String
    SSL certificate to use for requests to a private service.
    authUri string
    The OAuth2 authrization server URL.
    clientId string
    The client ID of the OAuth application.
    clientSecret string
    Input only. The client secret of the OAuth application. It will be provided as plain text, but encrypted and stored in developer connect. As INPUT_ONLY field, it will not be included in the output.
    hostUri string
    The host URI of the OAuth application.
    scmProvider string
    The type of the SCM provider. Possible values: SCM_PROVIDER_UNKNOWN GITHUB_ENTERPRISE GITLAB_ENTERPRISE BITBUCKET_DATA_CENTER
    scopes string[]
    The scopes to be requested during OAuth.
    tokenUri string
    The OAuth2 token request URL.
    pkceDisabled boolean
    Disable PKCE for this OAuth config. PKCE is enabled by default.
    serverVersion string
    (Output) SCM server version installed at the host URI.
    serviceDirectoryConfig AccountConnectorCustomOauthConfigServiceDirectoryConfig
    ServiceDirectoryConfig represents Service Directory configuration for a connection. Structure is documented below.
    sslCaCertificate string
    SSL certificate to use for requests to a private service.
    auth_uri str
    The OAuth2 authrization server URL.
    client_id str
    The client ID of the OAuth application.
    client_secret str
    Input only. The client secret of the OAuth application. It will be provided as plain text, but encrypted and stored in developer connect. As INPUT_ONLY field, it will not be included in the output.
    host_uri str
    The host URI of the OAuth application.
    scm_provider str
    The type of the SCM provider. Possible values: SCM_PROVIDER_UNKNOWN GITHUB_ENTERPRISE GITLAB_ENTERPRISE BITBUCKET_DATA_CENTER
    scopes Sequence[str]
    The scopes to be requested during OAuth.
    token_uri str
    The OAuth2 token request URL.
    pkce_disabled bool
    Disable PKCE for this OAuth config. PKCE is enabled by default.
    server_version str
    (Output) SCM server version installed at the host URI.
    service_directory_config AccountConnectorCustomOauthConfigServiceDirectoryConfig
    ServiceDirectoryConfig represents Service Directory configuration for a connection. Structure is documented below.
    ssl_ca_certificate str
    SSL certificate to use for requests to a private service.
    authUri String
    The OAuth2 authrization server URL.
    clientId String
    The client ID of the OAuth application.
    clientSecret String
    Input only. The client secret of the OAuth application. It will be provided as plain text, but encrypted and stored in developer connect. As INPUT_ONLY field, it will not be included in the output.
    hostUri String
    The host URI of the OAuth application.
    scmProvider String
    The type of the SCM provider. Possible values: SCM_PROVIDER_UNKNOWN GITHUB_ENTERPRISE GITLAB_ENTERPRISE BITBUCKET_DATA_CENTER
    scopes List<String>
    The scopes to be requested during OAuth.
    tokenUri String
    The OAuth2 token request URL.
    pkceDisabled Boolean
    Disable PKCE for this OAuth config. PKCE is enabled by default.
    serverVersion String
    (Output) SCM server version installed at the host URI.
    serviceDirectoryConfig Property Map
    ServiceDirectoryConfig represents Service Directory configuration for a connection. Structure is documented below.
    sslCaCertificate String
    SSL certificate to use for requests to a private service.

    AccountConnectorCustomOauthConfigServiceDirectoryConfig, AccountConnectorCustomOauthConfigServiceDirectoryConfigArgs

    Service string
    The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
    Service string
    The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
    service String
    The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
    service string
    The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
    service str
    The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
    service String
    The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.

    AccountConnectorProviderOauthConfig, AccountConnectorProviderOauthConfigArgs

    Scopes List<string>
    User selected scopes to apply to the Oauth config In the event of changing scopes, user records under AccountConnector will be deleted and users will re-auth again.
    SystemProviderId string
    Possible values: GITHUB GITLAB GOOGLE SENTRY ROVO NEW_RELIC DATASTAX DYNATRACE
    Scopes []string
    User selected scopes to apply to the Oauth config In the event of changing scopes, user records under AccountConnector will be deleted and users will re-auth again.
    SystemProviderId string
    Possible values: GITHUB GITLAB GOOGLE SENTRY ROVO NEW_RELIC DATASTAX DYNATRACE
    scopes List<String>
    User selected scopes to apply to the Oauth config In the event of changing scopes, user records under AccountConnector will be deleted and users will re-auth again.
    systemProviderId String
    Possible values: GITHUB GITLAB GOOGLE SENTRY ROVO NEW_RELIC DATASTAX DYNATRACE
    scopes string[]
    User selected scopes to apply to the Oauth config In the event of changing scopes, user records under AccountConnector will be deleted and users will re-auth again.
    systemProviderId string
    Possible values: GITHUB GITLAB GOOGLE SENTRY ROVO NEW_RELIC DATASTAX DYNATRACE
    scopes Sequence[str]
    User selected scopes to apply to the Oauth config In the event of changing scopes, user records under AccountConnector will be deleted and users will re-auth again.
    system_provider_id str
    Possible values: GITHUB GITLAB GOOGLE SENTRY ROVO NEW_RELIC DATASTAX DYNATRACE
    scopes List<String>
    User selected scopes to apply to the Oauth config In the event of changing scopes, user records under AccountConnector will be deleted and users will re-auth again.
    systemProviderId String
    Possible values: GITHUB GITLAB GOOGLE SENTRY ROVO NEW_RELIC DATASTAX DYNATRACE

    AccountConnectorProxyConfig, AccountConnectorProxyConfigArgs

    Enabled bool
    Setting this to true allows the git and http proxies to perform actions on behalf of the user configured under the account connector.
    Enabled bool
    Setting this to true allows the git and http proxies to perform actions on behalf of the user configured under the account connector.
    enabled Boolean
    Setting this to true allows the git and http proxies to perform actions on behalf of the user configured under the account connector.
    enabled boolean
    Setting this to true allows the git and http proxies to perform actions on behalf of the user configured under the account connector.
    enabled bool
    Setting this to true allows the git and http proxies to perform actions on behalf of the user configured under the account connector.
    enabled Boolean
    Setting this to true allows the git and http proxies to perform actions on behalf of the user configured under the account connector.

    Import

    AccountConnector can be imported using any of these accepted formats:

    • projects/{{project}}/locations/{{location}}/accountConnectors/{{account_connector_id}}
    • {{project}}/{{location}}/{{account_connector_id}}
    • {{location}}/{{account_connector_id}}

    When using the pulumi import command, AccountConnector can be imported using one of the formats above. For example:

    $ pulumi import gcp:developerconnect/accountConnector:AccountConnector default projects/{{project}}/locations/{{location}}/accountConnectors/{{account_connector_id}}
    $ pulumi import gcp:developerconnect/accountConnector:AccountConnector default {{project}}/{{location}}/{{account_connector_id}}
    $ pulumi import gcp:developerconnect/accountConnector:AccountConnector default {{location}}/{{account_connector_id}}
    

    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.
    gcp logo
    Viewing docs for Google Cloud v9.20.0
    published on Wednesday, Apr 15, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.