cloudbuildv2

package
v6.67.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	pulumi.CustomResourceState

	// Allows clients to store small amounts of arbitrary data.
	Annotations pulumi.StringMapOutput `pulumi:"annotations"`
	// Output only. Server assigned timestamp for when the connection was created.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// If disabled is set to true, functionality is disabled for this connection. Repository based API methods and webhooks processing for repositories in this connection will be disabled.
	Disabled pulumi.BoolPtrOutput `pulumi:"disabled"`
	// 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.
	Etag pulumi.StringOutput `pulumi:"etag"`
	// Configuration for connections to github.com.
	GithubConfig ConnectionGithubConfigPtrOutput `pulumi:"githubConfig"`
	// Configuration for connections to an instance of GitHub Enterprise.
	GithubEnterpriseConfig ConnectionGithubEnterpriseConfigPtrOutput `pulumi:"githubEnterpriseConfig"`
	// Configuration for connections to gitlab.com or an instance of GitLab Enterprise.
	GitlabConfig ConnectionGitlabConfigPtrOutput `pulumi:"gitlabConfig"`
	// Output only. Installation state of the Connection.
	InstallationStates ConnectionInstallationStateArrayOutput `pulumi:"installationStates"`
	// The location for the resource
	Location pulumi.StringOutput `pulumi:"location"`
	// Immutable. The resource name of the connection, in the format `projects/{project}/locations/{location}/connections/{connection_id}`.
	Name pulumi.StringOutput `pulumi:"name"`
	// The project for the resource
	Project pulumi.StringOutput `pulumi:"project"`
	// Output only. Set to true when the connection is being set up or updated in the background.
	Reconciling pulumi.BoolOutput `pulumi:"reconciling"`
	// Output only. Server assigned timestamp for when the connection was updated.
	UpdateTime pulumi.StringOutput `pulumi:"updateTime"`
}

The Cloudbuildv2 Connection resource

## Example Usage ### Ghe ```go package main

import (

"os"

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudbuildv2"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/organizations"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/secretmanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func readFileOrPanic(path string) pulumi.StringPtrInput {
	data, err := os.ReadFile(path)
	if err != nil {
		panic(err.Error())
	}
	return pulumi.String(string(data))
}

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := secretmanager.NewSecret(ctx, "private-key-secret", &secretmanager.SecretArgs{
			SecretId: pulumi.String("ghe-pk-secret"),
			Replication: &secretmanager.SecretReplicationArgs{
				Auto: nil,
			},
		})
		if err != nil {
			return err
		}
		_, err = secretmanager.NewSecretVersion(ctx, "private-key-secret-version", &secretmanager.SecretVersionArgs{
			Secret:     private_key_secret.ID(),
			SecretData: readFileOrPanic("private-key.pem"),
		})
		if err != nil {
			return err
		}
		_, err = secretmanager.NewSecret(ctx, "webhook-secret-secret", &secretmanager.SecretArgs{
			SecretId: pulumi.String("github-token-secret"),
			Replication: &secretmanager.SecretReplicationArgs{
				Auto: nil,
			},
		})
		if err != nil {
			return err
		}
		_, err = secretmanager.NewSecretVersion(ctx, "webhook-secret-secret-version", &secretmanager.SecretVersionArgs{
			Secret:     webhook_secret_secret.ID(),
			SecretData: pulumi.String("<webhook-secret-data>"),
		})
		if err != nil {
			return err
		}
		p4sa_secretAccessor, err := organizations.LookupIAMPolicy(ctx, &organizations.LookupIAMPolicyArgs{
			Bindings: []organizations.GetIAMPolicyBinding{
				{
					Role: "roles/secretmanager.secretAccessor",
					Members: []string{
						"serviceAccount:service-123456789@gcp-sa-cloudbuild.iam.gserviceaccount.com",
					},
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		_, err = secretmanager.NewSecretIamPolicy(ctx, "policy-pk", &secretmanager.SecretIamPolicyArgs{
			SecretId:   private_key_secret.SecretId,
			PolicyData: *pulumi.String(p4sa_secretAccessor.PolicyData),
		})
		if err != nil {
			return err
		}
		_, err = secretmanager.NewSecretIamPolicy(ctx, "policy-whs", &secretmanager.SecretIamPolicyArgs{
			SecretId:   webhook_secret_secret.SecretId,
			PolicyData: *pulumi.String(p4sa_secretAccessor.PolicyData),
		})
		if err != nil {
			return err
		}
		_, err = cloudbuildv2.NewConnection(ctx, "my-connection", &cloudbuildv2.ConnectionArgs{
			Location: pulumi.String("us-central1"),
			GithubEnterpriseConfig: &cloudbuildv2.ConnectionGithubEnterpriseConfigArgs{
				HostUri:                    pulumi.String("https://ghe.com"),
				PrivateKeySecretVersion:    private_key_secret_version.ID(),
				WebhookSecretSecretVersion: webhook_secret_secret_version.ID(),
				AppId:                      pulumi.Int(200),
				AppSlug:                    pulumi.String("gcb-app"),
				AppInstallationId:          pulumi.Int(300),
			},
		}, pulumi.DependsOn([]pulumi.Resource{
			policy_pk,
			policy_whs,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### GitHub Connection Creates a Connection to github.com ```go package main

import (

"os"

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudbuildv2"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/organizations"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/secretmanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func readFileOrPanic(path string) pulumi.StringPtrInput {
	data, err := os.ReadFile(path)
	if err != nil {
		panic(err.Error())
	}
	return pulumi.String(string(data))
}

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := secretmanager.NewSecret(ctx, "github-token-secret", &secretmanager.SecretArgs{
			SecretId: pulumi.String("github-token-secret"),
			Replication: &secretmanager.SecretReplicationArgs{
				Auto: nil,
			},
		})
		if err != nil {
			return err
		}
		_, err = secretmanager.NewSecretVersion(ctx, "github-token-secret-version", &secretmanager.SecretVersionArgs{
			Secret:     github_token_secret.ID(),
			SecretData: readFileOrPanic("my-github-token.txt"),
		})
		if err != nil {
			return err
		}
		p4sa_secretAccessor, err := organizations.LookupIAMPolicy(ctx, &organizations.LookupIAMPolicyArgs{
			Bindings: []organizations.GetIAMPolicyBinding{
				{
					Role: "roles/secretmanager.secretAccessor",
					Members: []string{
						"serviceAccount:service-123456789@gcp-sa-cloudbuild.iam.gserviceaccount.com",
					},
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		_, err = secretmanager.NewSecretIamPolicy(ctx, "policy", &secretmanager.SecretIamPolicyArgs{
			SecretId:   github_token_secret.SecretId,
			PolicyData: *pulumi.String(p4sa_secretAccessor.PolicyData),
		})
		if err != nil {
			return err
		}
		_, err = cloudbuildv2.NewConnection(ctx, "my-connection", &cloudbuildv2.ConnectionArgs{
			Location: pulumi.String("us-west1"),
			GithubConfig: &cloudbuildv2.ConnectionGithubConfigArgs{
				AppInstallationId: pulumi.Int(123123),
				AuthorizerCredential: &cloudbuildv2.ConnectionGithubConfigAuthorizerCredentialArgs{
					OauthTokenSecretVersion: github_token_secret_version.ID(),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Connection can be imported using any of these accepted formats

```sh

$ pulumi import gcp:cloudbuildv2/connection:Connection default projects/{{project}}/locations/{{location}}/connections/{{name}}

```

```sh

$ pulumi import gcp:cloudbuildv2/connection:Connection default {{project}}/{{location}}/{{name}}

```

```sh

$ pulumi import gcp:cloudbuildv2/connection:Connection default {{location}}/{{name}}

```

func GetConnection

func GetConnection(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ConnectionState, opts ...pulumi.ResourceOption) (*Connection, error)

GetConnection gets an existing Connection resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewConnection

func NewConnection(ctx *pulumi.Context,
	name string, args *ConnectionArgs, opts ...pulumi.ResourceOption) (*Connection, error)

NewConnection registers a new resource with the given unique name, arguments, and options.

func (*Connection) ElementType

func (*Connection) ElementType() reflect.Type

func (*Connection) ToConnectionOutput

func (i *Connection) ToConnectionOutput() ConnectionOutput

func (*Connection) ToConnectionOutputWithContext

func (i *Connection) ToConnectionOutputWithContext(ctx context.Context) ConnectionOutput

func (*Connection) ToOutput added in v6.65.1

func (i *Connection) ToOutput(ctx context.Context) pulumix.Output[*Connection]

type ConnectionArgs

type ConnectionArgs struct {
	// Allows clients to store small amounts of arbitrary data.
	Annotations pulumi.StringMapInput
	// If disabled is set to true, functionality is disabled for this connection. Repository based API methods and webhooks processing for repositories in this connection will be disabled.
	Disabled pulumi.BoolPtrInput
	// Configuration for connections to github.com.
	GithubConfig ConnectionGithubConfigPtrInput
	// Configuration for connections to an instance of GitHub Enterprise.
	GithubEnterpriseConfig ConnectionGithubEnterpriseConfigPtrInput
	// Configuration for connections to gitlab.com or an instance of GitLab Enterprise.
	GitlabConfig ConnectionGitlabConfigPtrInput
	// The location for the resource
	Location pulumi.StringInput
	// Immutable. The resource name of the connection, in the format `projects/{project}/locations/{location}/connections/{connection_id}`.
	Name pulumi.StringPtrInput
	// The project for the resource
	Project pulumi.StringPtrInput
}

The set of arguments for constructing a Connection resource.

func (ConnectionArgs) ElementType

func (ConnectionArgs) ElementType() reflect.Type

type ConnectionArray

type ConnectionArray []ConnectionInput

func (ConnectionArray) ElementType

func (ConnectionArray) ElementType() reflect.Type

func (ConnectionArray) ToConnectionArrayOutput

func (i ConnectionArray) ToConnectionArrayOutput() ConnectionArrayOutput

func (ConnectionArray) ToConnectionArrayOutputWithContext

func (i ConnectionArray) ToConnectionArrayOutputWithContext(ctx context.Context) ConnectionArrayOutput

func (ConnectionArray) ToOutput added in v6.65.1

type ConnectionArrayInput

type ConnectionArrayInput interface {
	pulumi.Input

	ToConnectionArrayOutput() ConnectionArrayOutput
	ToConnectionArrayOutputWithContext(context.Context) ConnectionArrayOutput
}

ConnectionArrayInput is an input type that accepts ConnectionArray and ConnectionArrayOutput values. You can construct a concrete instance of `ConnectionArrayInput` via:

ConnectionArray{ ConnectionArgs{...} }

type ConnectionArrayOutput

type ConnectionArrayOutput struct{ *pulumi.OutputState }

func (ConnectionArrayOutput) ElementType

func (ConnectionArrayOutput) ElementType() reflect.Type

func (ConnectionArrayOutput) Index

func (ConnectionArrayOutput) ToConnectionArrayOutput

func (o ConnectionArrayOutput) ToConnectionArrayOutput() ConnectionArrayOutput

func (ConnectionArrayOutput) ToConnectionArrayOutputWithContext

func (o ConnectionArrayOutput) ToConnectionArrayOutputWithContext(ctx context.Context) ConnectionArrayOutput

func (ConnectionArrayOutput) ToOutput added in v6.65.1

type ConnectionGithubConfig

type ConnectionGithubConfig struct {
	// GitHub App installation id.
	AppInstallationId *int `pulumi:"appInstallationId"`
	// OAuth credential of the account that authorized the Cloud Build GitHub App. It is recommended to use a robot account instead of a human user account. The OAuth token must be tied to the Cloud Build GitHub App.
	AuthorizerCredential *ConnectionGithubConfigAuthorizerCredential `pulumi:"authorizerCredential"`
}

type ConnectionGithubConfigArgs

type ConnectionGithubConfigArgs struct {
	// GitHub App installation id.
	AppInstallationId pulumi.IntPtrInput `pulumi:"appInstallationId"`
	// OAuth credential of the account that authorized the Cloud Build GitHub App. It is recommended to use a robot account instead of a human user account. The OAuth token must be tied to the Cloud Build GitHub App.
	AuthorizerCredential ConnectionGithubConfigAuthorizerCredentialPtrInput `pulumi:"authorizerCredential"`
}

func (ConnectionGithubConfigArgs) ElementType

func (ConnectionGithubConfigArgs) ElementType() reflect.Type

func (ConnectionGithubConfigArgs) ToConnectionGithubConfigOutput

func (i ConnectionGithubConfigArgs) ToConnectionGithubConfigOutput() ConnectionGithubConfigOutput

func (ConnectionGithubConfigArgs) ToConnectionGithubConfigOutputWithContext

func (i ConnectionGithubConfigArgs) ToConnectionGithubConfigOutputWithContext(ctx context.Context) ConnectionGithubConfigOutput

func (ConnectionGithubConfigArgs) ToConnectionGithubConfigPtrOutput

func (i ConnectionGithubConfigArgs) ToConnectionGithubConfigPtrOutput() ConnectionGithubConfigPtrOutput

func (ConnectionGithubConfigArgs) ToConnectionGithubConfigPtrOutputWithContext

func (i ConnectionGithubConfigArgs) ToConnectionGithubConfigPtrOutputWithContext(ctx context.Context) ConnectionGithubConfigPtrOutput

func (ConnectionGithubConfigArgs) ToOutput added in v6.65.1

type ConnectionGithubConfigAuthorizerCredential

type ConnectionGithubConfigAuthorizerCredential struct {
	// A SecretManager resource containing the OAuth token that authorizes the Cloud Build connection. Format: `projects/*/secrets/*/versions/*`.
	OauthTokenSecretVersion *string `pulumi:"oauthTokenSecretVersion"`
	// Output only. The username associated to this token.
	Username *string `pulumi:"username"`
}

type ConnectionGithubConfigAuthorizerCredentialArgs

type ConnectionGithubConfigAuthorizerCredentialArgs struct {
	// A SecretManager resource containing the OAuth token that authorizes the Cloud Build connection. Format: `projects/*/secrets/*/versions/*`.
	OauthTokenSecretVersion pulumi.StringPtrInput `pulumi:"oauthTokenSecretVersion"`
	// Output only. The username associated to this token.
	Username pulumi.StringPtrInput `pulumi:"username"`
}

func (ConnectionGithubConfigAuthorizerCredentialArgs) ElementType

func (ConnectionGithubConfigAuthorizerCredentialArgs) ToConnectionGithubConfigAuthorizerCredentialOutput

func (i ConnectionGithubConfigAuthorizerCredentialArgs) ToConnectionGithubConfigAuthorizerCredentialOutput() ConnectionGithubConfigAuthorizerCredentialOutput

func (ConnectionGithubConfigAuthorizerCredentialArgs) ToConnectionGithubConfigAuthorizerCredentialOutputWithContext

func (i ConnectionGithubConfigAuthorizerCredentialArgs) ToConnectionGithubConfigAuthorizerCredentialOutputWithContext(ctx context.Context) ConnectionGithubConfigAuthorizerCredentialOutput

func (ConnectionGithubConfigAuthorizerCredentialArgs) ToConnectionGithubConfigAuthorizerCredentialPtrOutput

func (i ConnectionGithubConfigAuthorizerCredentialArgs) ToConnectionGithubConfigAuthorizerCredentialPtrOutput() ConnectionGithubConfigAuthorizerCredentialPtrOutput

func (ConnectionGithubConfigAuthorizerCredentialArgs) ToConnectionGithubConfigAuthorizerCredentialPtrOutputWithContext

func (i ConnectionGithubConfigAuthorizerCredentialArgs) ToConnectionGithubConfigAuthorizerCredentialPtrOutputWithContext(ctx context.Context) ConnectionGithubConfigAuthorizerCredentialPtrOutput

func (ConnectionGithubConfigAuthorizerCredentialArgs) ToOutput added in v6.65.1

type ConnectionGithubConfigAuthorizerCredentialInput

type ConnectionGithubConfigAuthorizerCredentialInput interface {
	pulumi.Input

	ToConnectionGithubConfigAuthorizerCredentialOutput() ConnectionGithubConfigAuthorizerCredentialOutput
	ToConnectionGithubConfigAuthorizerCredentialOutputWithContext(context.Context) ConnectionGithubConfigAuthorizerCredentialOutput
}

ConnectionGithubConfigAuthorizerCredentialInput is an input type that accepts ConnectionGithubConfigAuthorizerCredentialArgs and ConnectionGithubConfigAuthorizerCredentialOutput values. You can construct a concrete instance of `ConnectionGithubConfigAuthorizerCredentialInput` via:

ConnectionGithubConfigAuthorizerCredentialArgs{...}

type ConnectionGithubConfigAuthorizerCredentialOutput

type ConnectionGithubConfigAuthorizerCredentialOutput struct{ *pulumi.OutputState }

func (ConnectionGithubConfigAuthorizerCredentialOutput) ElementType

func (ConnectionGithubConfigAuthorizerCredentialOutput) OauthTokenSecretVersion

A SecretManager resource containing the OAuth token that authorizes the Cloud Build connection. Format: `projects/*/secrets/*/versions/*`.

func (ConnectionGithubConfigAuthorizerCredentialOutput) ToConnectionGithubConfigAuthorizerCredentialOutput

func (o ConnectionGithubConfigAuthorizerCredentialOutput) ToConnectionGithubConfigAuthorizerCredentialOutput() ConnectionGithubConfigAuthorizerCredentialOutput

func (ConnectionGithubConfigAuthorizerCredentialOutput) ToConnectionGithubConfigAuthorizerCredentialOutputWithContext

func (o ConnectionGithubConfigAuthorizerCredentialOutput) ToConnectionGithubConfigAuthorizerCredentialOutputWithContext(ctx context.Context) ConnectionGithubConfigAuthorizerCredentialOutput

func (ConnectionGithubConfigAuthorizerCredentialOutput) ToConnectionGithubConfigAuthorizerCredentialPtrOutput

func (o ConnectionGithubConfigAuthorizerCredentialOutput) ToConnectionGithubConfigAuthorizerCredentialPtrOutput() ConnectionGithubConfigAuthorizerCredentialPtrOutput

func (ConnectionGithubConfigAuthorizerCredentialOutput) ToConnectionGithubConfigAuthorizerCredentialPtrOutputWithContext

func (o ConnectionGithubConfigAuthorizerCredentialOutput) ToConnectionGithubConfigAuthorizerCredentialPtrOutputWithContext(ctx context.Context) ConnectionGithubConfigAuthorizerCredentialPtrOutput

func (ConnectionGithubConfigAuthorizerCredentialOutput) ToOutput added in v6.65.1

func (ConnectionGithubConfigAuthorizerCredentialOutput) Username

Output only. The username associated to this token.

type ConnectionGithubConfigAuthorizerCredentialPtrInput

type ConnectionGithubConfigAuthorizerCredentialPtrInput interface {
	pulumi.Input

	ToConnectionGithubConfigAuthorizerCredentialPtrOutput() ConnectionGithubConfigAuthorizerCredentialPtrOutput
	ToConnectionGithubConfigAuthorizerCredentialPtrOutputWithContext(context.Context) ConnectionGithubConfigAuthorizerCredentialPtrOutput
}

ConnectionGithubConfigAuthorizerCredentialPtrInput is an input type that accepts ConnectionGithubConfigAuthorizerCredentialArgs, ConnectionGithubConfigAuthorizerCredentialPtr and ConnectionGithubConfigAuthorizerCredentialPtrOutput values. You can construct a concrete instance of `ConnectionGithubConfigAuthorizerCredentialPtrInput` via:

        ConnectionGithubConfigAuthorizerCredentialArgs{...}

or:

        nil

type ConnectionGithubConfigAuthorizerCredentialPtrOutput

type ConnectionGithubConfigAuthorizerCredentialPtrOutput struct{ *pulumi.OutputState }

func (ConnectionGithubConfigAuthorizerCredentialPtrOutput) Elem

func (ConnectionGithubConfigAuthorizerCredentialPtrOutput) ElementType

func (ConnectionGithubConfigAuthorizerCredentialPtrOutput) OauthTokenSecretVersion

A SecretManager resource containing the OAuth token that authorizes the Cloud Build connection. Format: `projects/*/secrets/*/versions/*`.

func (ConnectionGithubConfigAuthorizerCredentialPtrOutput) ToConnectionGithubConfigAuthorizerCredentialPtrOutput

func (o ConnectionGithubConfigAuthorizerCredentialPtrOutput) ToConnectionGithubConfigAuthorizerCredentialPtrOutput() ConnectionGithubConfigAuthorizerCredentialPtrOutput

func (ConnectionGithubConfigAuthorizerCredentialPtrOutput) ToConnectionGithubConfigAuthorizerCredentialPtrOutputWithContext

func (o ConnectionGithubConfigAuthorizerCredentialPtrOutput) ToConnectionGithubConfigAuthorizerCredentialPtrOutputWithContext(ctx context.Context) ConnectionGithubConfigAuthorizerCredentialPtrOutput

func (ConnectionGithubConfigAuthorizerCredentialPtrOutput) ToOutput added in v6.65.1

func (ConnectionGithubConfigAuthorizerCredentialPtrOutput) Username

Output only. The username associated to this token.

type ConnectionGithubConfigInput

type ConnectionGithubConfigInput interface {
	pulumi.Input

	ToConnectionGithubConfigOutput() ConnectionGithubConfigOutput
	ToConnectionGithubConfigOutputWithContext(context.Context) ConnectionGithubConfigOutput
}

ConnectionGithubConfigInput is an input type that accepts ConnectionGithubConfigArgs and ConnectionGithubConfigOutput values. You can construct a concrete instance of `ConnectionGithubConfigInput` via:

ConnectionGithubConfigArgs{...}

type ConnectionGithubConfigOutput

type ConnectionGithubConfigOutput struct{ *pulumi.OutputState }

func (ConnectionGithubConfigOutput) AppInstallationId

func (o ConnectionGithubConfigOutput) AppInstallationId() pulumi.IntPtrOutput

GitHub App installation id.

func (ConnectionGithubConfigOutput) AuthorizerCredential

OAuth credential of the account that authorized the Cloud Build GitHub App. It is recommended to use a robot account instead of a human user account. The OAuth token must be tied to the Cloud Build GitHub App.

func (ConnectionGithubConfigOutput) ElementType

func (ConnectionGithubConfigOutput) ToConnectionGithubConfigOutput

func (o ConnectionGithubConfigOutput) ToConnectionGithubConfigOutput() ConnectionGithubConfigOutput

func (ConnectionGithubConfigOutput) ToConnectionGithubConfigOutputWithContext

func (o ConnectionGithubConfigOutput) ToConnectionGithubConfigOutputWithContext(ctx context.Context) ConnectionGithubConfigOutput

func (ConnectionGithubConfigOutput) ToConnectionGithubConfigPtrOutput

func (o ConnectionGithubConfigOutput) ToConnectionGithubConfigPtrOutput() ConnectionGithubConfigPtrOutput

func (ConnectionGithubConfigOutput) ToConnectionGithubConfigPtrOutputWithContext

func (o ConnectionGithubConfigOutput) ToConnectionGithubConfigPtrOutputWithContext(ctx context.Context) ConnectionGithubConfigPtrOutput

func (ConnectionGithubConfigOutput) ToOutput added in v6.65.1

type ConnectionGithubConfigPtrInput

type ConnectionGithubConfigPtrInput interface {
	pulumi.Input

	ToConnectionGithubConfigPtrOutput() ConnectionGithubConfigPtrOutput
	ToConnectionGithubConfigPtrOutputWithContext(context.Context) ConnectionGithubConfigPtrOutput
}

ConnectionGithubConfigPtrInput is an input type that accepts ConnectionGithubConfigArgs, ConnectionGithubConfigPtr and ConnectionGithubConfigPtrOutput values. You can construct a concrete instance of `ConnectionGithubConfigPtrInput` via:

        ConnectionGithubConfigArgs{...}

or:

        nil

type ConnectionGithubConfigPtrOutput

type ConnectionGithubConfigPtrOutput struct{ *pulumi.OutputState }

func (ConnectionGithubConfigPtrOutput) AppInstallationId

func (o ConnectionGithubConfigPtrOutput) AppInstallationId() pulumi.IntPtrOutput

GitHub App installation id.

func (ConnectionGithubConfigPtrOutput) AuthorizerCredential

OAuth credential of the account that authorized the Cloud Build GitHub App. It is recommended to use a robot account instead of a human user account. The OAuth token must be tied to the Cloud Build GitHub App.

func (ConnectionGithubConfigPtrOutput) Elem

func (ConnectionGithubConfigPtrOutput) ElementType

func (ConnectionGithubConfigPtrOutput) ToConnectionGithubConfigPtrOutput

func (o ConnectionGithubConfigPtrOutput) ToConnectionGithubConfigPtrOutput() ConnectionGithubConfigPtrOutput

func (ConnectionGithubConfigPtrOutput) ToConnectionGithubConfigPtrOutputWithContext

func (o ConnectionGithubConfigPtrOutput) ToConnectionGithubConfigPtrOutputWithContext(ctx context.Context) ConnectionGithubConfigPtrOutput

func (ConnectionGithubConfigPtrOutput) ToOutput added in v6.65.1

type ConnectionGithubEnterpriseConfig

type ConnectionGithubEnterpriseConfig struct {
	// Id of the GitHub App created from the manifest.
	AppId *int `pulumi:"appId"`
	// ID of the installation of the GitHub App.
	AppInstallationId *int `pulumi:"appInstallationId"`
	// The URL-friendly name of the GitHub App.
	AppSlug *string `pulumi:"appSlug"`
	// Required. The URI of the GitHub Enterprise host this connection is for.
	HostUri string `pulumi:"hostUri"`
	// SecretManager resource containing the private key of the GitHub App, formatted as `projects/*/secrets/*/versions/*`.
	PrivateKeySecretVersion *string `pulumi:"privateKeySecretVersion"`
	// Configuration for using Service Directory to privately connect to a GitHub Enterprise server. This should only be set if the GitHub Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the GitHub Enterprise server will be made over the public internet.
	ServiceDirectoryConfig *ConnectionGithubEnterpriseConfigServiceDirectoryConfig `pulumi:"serviceDirectoryConfig"`
	// SSL certificate to use for requests to GitHub Enterprise.
	SslCa *string `pulumi:"sslCa"`
	// SecretManager resource containing the webhook secret of the GitHub App, formatted as `projects/*/secrets/*/versions/*`.
	WebhookSecretSecretVersion *string `pulumi:"webhookSecretSecretVersion"`
}

type ConnectionGithubEnterpriseConfigArgs

type ConnectionGithubEnterpriseConfigArgs struct {
	// Id of the GitHub App created from the manifest.
	AppId pulumi.IntPtrInput `pulumi:"appId"`
	// ID of the installation of the GitHub App.
	AppInstallationId pulumi.IntPtrInput `pulumi:"appInstallationId"`
	// The URL-friendly name of the GitHub App.
	AppSlug pulumi.StringPtrInput `pulumi:"appSlug"`
	// Required. The URI of the GitHub Enterprise host this connection is for.
	HostUri pulumi.StringInput `pulumi:"hostUri"`
	// SecretManager resource containing the private key of the GitHub App, formatted as `projects/*/secrets/*/versions/*`.
	PrivateKeySecretVersion pulumi.StringPtrInput `pulumi:"privateKeySecretVersion"`
	// Configuration for using Service Directory to privately connect to a GitHub Enterprise server. This should only be set if the GitHub Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the GitHub Enterprise server will be made over the public internet.
	ServiceDirectoryConfig ConnectionGithubEnterpriseConfigServiceDirectoryConfigPtrInput `pulumi:"serviceDirectoryConfig"`
	// SSL certificate to use for requests to GitHub Enterprise.
	SslCa pulumi.StringPtrInput `pulumi:"sslCa"`
	// SecretManager resource containing the webhook secret of the GitHub App, formatted as `projects/*/secrets/*/versions/*`.
	WebhookSecretSecretVersion pulumi.StringPtrInput `pulumi:"webhookSecretSecretVersion"`
}

func (ConnectionGithubEnterpriseConfigArgs) ElementType

func (ConnectionGithubEnterpriseConfigArgs) ToConnectionGithubEnterpriseConfigOutput

func (i ConnectionGithubEnterpriseConfigArgs) ToConnectionGithubEnterpriseConfigOutput() ConnectionGithubEnterpriseConfigOutput

func (ConnectionGithubEnterpriseConfigArgs) ToConnectionGithubEnterpriseConfigOutputWithContext

func (i ConnectionGithubEnterpriseConfigArgs) ToConnectionGithubEnterpriseConfigOutputWithContext(ctx context.Context) ConnectionGithubEnterpriseConfigOutput

func (ConnectionGithubEnterpriseConfigArgs) ToConnectionGithubEnterpriseConfigPtrOutput

func (i ConnectionGithubEnterpriseConfigArgs) ToConnectionGithubEnterpriseConfigPtrOutput() ConnectionGithubEnterpriseConfigPtrOutput

func (ConnectionGithubEnterpriseConfigArgs) ToConnectionGithubEnterpriseConfigPtrOutputWithContext

func (i ConnectionGithubEnterpriseConfigArgs) ToConnectionGithubEnterpriseConfigPtrOutputWithContext(ctx context.Context) ConnectionGithubEnterpriseConfigPtrOutput

func (ConnectionGithubEnterpriseConfigArgs) ToOutput added in v6.65.1

type ConnectionGithubEnterpriseConfigInput

type ConnectionGithubEnterpriseConfigInput interface {
	pulumi.Input

	ToConnectionGithubEnterpriseConfigOutput() ConnectionGithubEnterpriseConfigOutput
	ToConnectionGithubEnterpriseConfigOutputWithContext(context.Context) ConnectionGithubEnterpriseConfigOutput
}

ConnectionGithubEnterpriseConfigInput is an input type that accepts ConnectionGithubEnterpriseConfigArgs and ConnectionGithubEnterpriseConfigOutput values. You can construct a concrete instance of `ConnectionGithubEnterpriseConfigInput` via:

ConnectionGithubEnterpriseConfigArgs{...}

type ConnectionGithubEnterpriseConfigOutput

type ConnectionGithubEnterpriseConfigOutput struct{ *pulumi.OutputState }

func (ConnectionGithubEnterpriseConfigOutput) AppId

Id of the GitHub App created from the manifest.

func (ConnectionGithubEnterpriseConfigOutput) AppInstallationId

ID of the installation of the GitHub App.

func (ConnectionGithubEnterpriseConfigOutput) AppSlug

The URL-friendly name of the GitHub App.

func (ConnectionGithubEnterpriseConfigOutput) ElementType

func (ConnectionGithubEnterpriseConfigOutput) HostUri

Required. The URI of the GitHub Enterprise host this connection is for.

func (ConnectionGithubEnterpriseConfigOutput) PrivateKeySecretVersion

SecretManager resource containing the private key of the GitHub App, formatted as `projects/*/secrets/*/versions/*`.

func (ConnectionGithubEnterpriseConfigOutput) ServiceDirectoryConfig

Configuration for using Service Directory to privately connect to a GitHub Enterprise server. This should only be set if the GitHub Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the GitHub Enterprise server will be made over the public internet.

func (ConnectionGithubEnterpriseConfigOutput) SslCa

SSL certificate to use for requests to GitHub Enterprise.

func (ConnectionGithubEnterpriseConfigOutput) ToConnectionGithubEnterpriseConfigOutput

func (o ConnectionGithubEnterpriseConfigOutput) ToConnectionGithubEnterpriseConfigOutput() ConnectionGithubEnterpriseConfigOutput

func (ConnectionGithubEnterpriseConfigOutput) ToConnectionGithubEnterpriseConfigOutputWithContext

func (o ConnectionGithubEnterpriseConfigOutput) ToConnectionGithubEnterpriseConfigOutputWithContext(ctx context.Context) ConnectionGithubEnterpriseConfigOutput

func (ConnectionGithubEnterpriseConfigOutput) ToConnectionGithubEnterpriseConfigPtrOutput

func (o ConnectionGithubEnterpriseConfigOutput) ToConnectionGithubEnterpriseConfigPtrOutput() ConnectionGithubEnterpriseConfigPtrOutput

func (ConnectionGithubEnterpriseConfigOutput) ToConnectionGithubEnterpriseConfigPtrOutputWithContext

func (o ConnectionGithubEnterpriseConfigOutput) ToConnectionGithubEnterpriseConfigPtrOutputWithContext(ctx context.Context) ConnectionGithubEnterpriseConfigPtrOutput

func (ConnectionGithubEnterpriseConfigOutput) ToOutput added in v6.65.1

func (ConnectionGithubEnterpriseConfigOutput) WebhookSecretSecretVersion

func (o ConnectionGithubEnterpriseConfigOutput) WebhookSecretSecretVersion() pulumi.StringPtrOutput

SecretManager resource containing the webhook secret of the GitHub App, formatted as `projects/*/secrets/*/versions/*`.

type ConnectionGithubEnterpriseConfigPtrInput

type ConnectionGithubEnterpriseConfigPtrInput interface {
	pulumi.Input

	ToConnectionGithubEnterpriseConfigPtrOutput() ConnectionGithubEnterpriseConfigPtrOutput
	ToConnectionGithubEnterpriseConfigPtrOutputWithContext(context.Context) ConnectionGithubEnterpriseConfigPtrOutput
}

ConnectionGithubEnterpriseConfigPtrInput is an input type that accepts ConnectionGithubEnterpriseConfigArgs, ConnectionGithubEnterpriseConfigPtr and ConnectionGithubEnterpriseConfigPtrOutput values. You can construct a concrete instance of `ConnectionGithubEnterpriseConfigPtrInput` via:

        ConnectionGithubEnterpriseConfigArgs{...}

or:

        nil

type ConnectionGithubEnterpriseConfigPtrOutput

type ConnectionGithubEnterpriseConfigPtrOutput struct{ *pulumi.OutputState }

func (ConnectionGithubEnterpriseConfigPtrOutput) AppId

Id of the GitHub App created from the manifest.

func (ConnectionGithubEnterpriseConfigPtrOutput) AppInstallationId

ID of the installation of the GitHub App.

func (ConnectionGithubEnterpriseConfigPtrOutput) AppSlug

The URL-friendly name of the GitHub App.

func (ConnectionGithubEnterpriseConfigPtrOutput) Elem

func (ConnectionGithubEnterpriseConfigPtrOutput) ElementType

func (ConnectionGithubEnterpriseConfigPtrOutput) HostUri

Required. The URI of the GitHub Enterprise host this connection is for.

func (ConnectionGithubEnterpriseConfigPtrOutput) PrivateKeySecretVersion

SecretManager resource containing the private key of the GitHub App, formatted as `projects/*/secrets/*/versions/*`.

func (ConnectionGithubEnterpriseConfigPtrOutput) ServiceDirectoryConfig

Configuration for using Service Directory to privately connect to a GitHub Enterprise server. This should only be set if the GitHub Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the GitHub Enterprise server will be made over the public internet.

func (ConnectionGithubEnterpriseConfigPtrOutput) SslCa

SSL certificate to use for requests to GitHub Enterprise.

func (ConnectionGithubEnterpriseConfigPtrOutput) ToConnectionGithubEnterpriseConfigPtrOutput

func (o ConnectionGithubEnterpriseConfigPtrOutput) ToConnectionGithubEnterpriseConfigPtrOutput() ConnectionGithubEnterpriseConfigPtrOutput

func (ConnectionGithubEnterpriseConfigPtrOutput) ToConnectionGithubEnterpriseConfigPtrOutputWithContext

func (o ConnectionGithubEnterpriseConfigPtrOutput) ToConnectionGithubEnterpriseConfigPtrOutputWithContext(ctx context.Context) ConnectionGithubEnterpriseConfigPtrOutput

func (ConnectionGithubEnterpriseConfigPtrOutput) ToOutput added in v6.65.1

func (ConnectionGithubEnterpriseConfigPtrOutput) WebhookSecretSecretVersion

func (o ConnectionGithubEnterpriseConfigPtrOutput) WebhookSecretSecretVersion() pulumi.StringPtrOutput

SecretManager resource containing the webhook secret of the GitHub App, formatted as `projects/*/secrets/*/versions/*`.

type ConnectionGithubEnterpriseConfigServiceDirectoryConfig

type ConnectionGithubEnterpriseConfigServiceDirectoryConfig struct {
	// Required. The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
	Service string `pulumi:"service"`
}

type ConnectionGithubEnterpriseConfigServiceDirectoryConfigArgs

type ConnectionGithubEnterpriseConfigServiceDirectoryConfigArgs struct {
	// Required. The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
	Service pulumi.StringInput `pulumi:"service"`
}

func (ConnectionGithubEnterpriseConfigServiceDirectoryConfigArgs) ElementType

func (ConnectionGithubEnterpriseConfigServiceDirectoryConfigArgs) ToConnectionGithubEnterpriseConfigServiceDirectoryConfigOutput

func (ConnectionGithubEnterpriseConfigServiceDirectoryConfigArgs) ToConnectionGithubEnterpriseConfigServiceDirectoryConfigOutputWithContext

func (i ConnectionGithubEnterpriseConfigServiceDirectoryConfigArgs) ToConnectionGithubEnterpriseConfigServiceDirectoryConfigOutputWithContext(ctx context.Context) ConnectionGithubEnterpriseConfigServiceDirectoryConfigOutput

func (ConnectionGithubEnterpriseConfigServiceDirectoryConfigArgs) ToConnectionGithubEnterpriseConfigServiceDirectoryConfigPtrOutput

func (ConnectionGithubEnterpriseConfigServiceDirectoryConfigArgs) ToConnectionGithubEnterpriseConfigServiceDirectoryConfigPtrOutputWithContext

func (i ConnectionGithubEnterpriseConfigServiceDirectoryConfigArgs) ToConnectionGithubEnterpriseConfigServiceDirectoryConfigPtrOutputWithContext(ctx context.Context) ConnectionGithubEnterpriseConfigServiceDirectoryConfigPtrOutput

func (ConnectionGithubEnterpriseConfigServiceDirectoryConfigArgs) ToOutput added in v6.65.1

type ConnectionGithubEnterpriseConfigServiceDirectoryConfigInput

type ConnectionGithubEnterpriseConfigServiceDirectoryConfigInput interface {
	pulumi.Input

	ToConnectionGithubEnterpriseConfigServiceDirectoryConfigOutput() ConnectionGithubEnterpriseConfigServiceDirectoryConfigOutput
	ToConnectionGithubEnterpriseConfigServiceDirectoryConfigOutputWithContext(context.Context) ConnectionGithubEnterpriseConfigServiceDirectoryConfigOutput
}

ConnectionGithubEnterpriseConfigServiceDirectoryConfigInput is an input type that accepts ConnectionGithubEnterpriseConfigServiceDirectoryConfigArgs and ConnectionGithubEnterpriseConfigServiceDirectoryConfigOutput values. You can construct a concrete instance of `ConnectionGithubEnterpriseConfigServiceDirectoryConfigInput` via:

ConnectionGithubEnterpriseConfigServiceDirectoryConfigArgs{...}

type ConnectionGithubEnterpriseConfigServiceDirectoryConfigOutput

type ConnectionGithubEnterpriseConfigServiceDirectoryConfigOutput struct{ *pulumi.OutputState }

func (ConnectionGithubEnterpriseConfigServiceDirectoryConfigOutput) ElementType

func (ConnectionGithubEnterpriseConfigServiceDirectoryConfigOutput) Service

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

func (ConnectionGithubEnterpriseConfigServiceDirectoryConfigOutput) ToConnectionGithubEnterpriseConfigServiceDirectoryConfigOutput

func (ConnectionGithubEnterpriseConfigServiceDirectoryConfigOutput) ToConnectionGithubEnterpriseConfigServiceDirectoryConfigOutputWithContext

func (o ConnectionGithubEnterpriseConfigServiceDirectoryConfigOutput) ToConnectionGithubEnterpriseConfigServiceDirectoryConfigOutputWithContext(ctx context.Context) ConnectionGithubEnterpriseConfigServiceDirectoryConfigOutput

func (ConnectionGithubEnterpriseConfigServiceDirectoryConfigOutput) ToConnectionGithubEnterpriseConfigServiceDirectoryConfigPtrOutput

func (ConnectionGithubEnterpriseConfigServiceDirectoryConfigOutput) ToConnectionGithubEnterpriseConfigServiceDirectoryConfigPtrOutputWithContext

func (o ConnectionGithubEnterpriseConfigServiceDirectoryConfigOutput) ToConnectionGithubEnterpriseConfigServiceDirectoryConfigPtrOutputWithContext(ctx context.Context) ConnectionGithubEnterpriseConfigServiceDirectoryConfigPtrOutput

func (ConnectionGithubEnterpriseConfigServiceDirectoryConfigOutput) ToOutput added in v6.65.1

type ConnectionGithubEnterpriseConfigServiceDirectoryConfigPtrInput

type ConnectionGithubEnterpriseConfigServiceDirectoryConfigPtrInput interface {
	pulumi.Input

	ToConnectionGithubEnterpriseConfigServiceDirectoryConfigPtrOutput() ConnectionGithubEnterpriseConfigServiceDirectoryConfigPtrOutput
	ToConnectionGithubEnterpriseConfigServiceDirectoryConfigPtrOutputWithContext(context.Context) ConnectionGithubEnterpriseConfigServiceDirectoryConfigPtrOutput
}

ConnectionGithubEnterpriseConfigServiceDirectoryConfigPtrInput is an input type that accepts ConnectionGithubEnterpriseConfigServiceDirectoryConfigArgs, ConnectionGithubEnterpriseConfigServiceDirectoryConfigPtr and ConnectionGithubEnterpriseConfigServiceDirectoryConfigPtrOutput values. You can construct a concrete instance of `ConnectionGithubEnterpriseConfigServiceDirectoryConfigPtrInput` via:

        ConnectionGithubEnterpriseConfigServiceDirectoryConfigArgs{...}

or:

        nil

type ConnectionGithubEnterpriseConfigServiceDirectoryConfigPtrOutput

type ConnectionGithubEnterpriseConfigServiceDirectoryConfigPtrOutput struct{ *pulumi.OutputState }

func (ConnectionGithubEnterpriseConfigServiceDirectoryConfigPtrOutput) Elem

func (ConnectionGithubEnterpriseConfigServiceDirectoryConfigPtrOutput) ElementType

func (ConnectionGithubEnterpriseConfigServiceDirectoryConfigPtrOutput) Service

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

func (ConnectionGithubEnterpriseConfigServiceDirectoryConfigPtrOutput) ToConnectionGithubEnterpriseConfigServiceDirectoryConfigPtrOutput

func (ConnectionGithubEnterpriseConfigServiceDirectoryConfigPtrOutput) ToConnectionGithubEnterpriseConfigServiceDirectoryConfigPtrOutputWithContext

func (o ConnectionGithubEnterpriseConfigServiceDirectoryConfigPtrOutput) ToConnectionGithubEnterpriseConfigServiceDirectoryConfigPtrOutputWithContext(ctx context.Context) ConnectionGithubEnterpriseConfigServiceDirectoryConfigPtrOutput

func (ConnectionGithubEnterpriseConfigServiceDirectoryConfigPtrOutput) ToOutput added in v6.65.1

type ConnectionGitlabConfig added in v6.60.0

type ConnectionGitlabConfig struct {
	// Required. A GitLab personal access token with the `api` scope access.
	AuthorizerCredential ConnectionGitlabConfigAuthorizerCredential `pulumi:"authorizerCredential"`
	// The URI of the GitLab Enterprise host this connection is for. If not specified, the default value is https://gitlab.com.
	HostUri *string `pulumi:"hostUri"`
	// Required. A GitLab personal access token with the minimum `readApi` scope access.
	ReadAuthorizerCredential ConnectionGitlabConfigReadAuthorizerCredential `pulumi:"readAuthorizerCredential"`
	// Output only. Version of the GitLab Enterprise server running on the `hostUri`.
	ServerVersion *string `pulumi:"serverVersion"`
	// Configuration for using Service Directory to privately connect to a GitLab Enterprise server. This should only be set if the GitLab Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the GitLab Enterprise server will be made over the public internet.
	ServiceDirectoryConfig *ConnectionGitlabConfigServiceDirectoryConfig `pulumi:"serviceDirectoryConfig"`
	// SSL certificate to use for requests to GitLab Enterprise.
	SslCa *string `pulumi:"sslCa"`
	// Required. Immutable. SecretManager resource containing the webhook secret of a GitLab Enterprise project, formatted as `projects/*/secrets/*/versions/*`.
	WebhookSecretSecretVersion string `pulumi:"webhookSecretSecretVersion"`
}

type ConnectionGitlabConfigArgs added in v6.60.0

type ConnectionGitlabConfigArgs struct {
	// Required. A GitLab personal access token with the `api` scope access.
	AuthorizerCredential ConnectionGitlabConfigAuthorizerCredentialInput `pulumi:"authorizerCredential"`
	// The URI of the GitLab Enterprise host this connection is for. If not specified, the default value is https://gitlab.com.
	HostUri pulumi.StringPtrInput `pulumi:"hostUri"`
	// Required. A GitLab personal access token with the minimum `readApi` scope access.
	ReadAuthorizerCredential ConnectionGitlabConfigReadAuthorizerCredentialInput `pulumi:"readAuthorizerCredential"`
	// Output only. Version of the GitLab Enterprise server running on the `hostUri`.
	ServerVersion pulumi.StringPtrInput `pulumi:"serverVersion"`
	// Configuration for using Service Directory to privately connect to a GitLab Enterprise server. This should only be set if the GitLab Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the GitLab Enterprise server will be made over the public internet.
	ServiceDirectoryConfig ConnectionGitlabConfigServiceDirectoryConfigPtrInput `pulumi:"serviceDirectoryConfig"`
	// SSL certificate to use for requests to GitLab Enterprise.
	SslCa pulumi.StringPtrInput `pulumi:"sslCa"`
	// Required. Immutable. SecretManager resource containing the webhook secret of a GitLab Enterprise project, formatted as `projects/*/secrets/*/versions/*`.
	WebhookSecretSecretVersion pulumi.StringInput `pulumi:"webhookSecretSecretVersion"`
}

func (ConnectionGitlabConfigArgs) ElementType added in v6.60.0

func (ConnectionGitlabConfigArgs) ElementType() reflect.Type

func (ConnectionGitlabConfigArgs) ToConnectionGitlabConfigOutput added in v6.60.0

func (i ConnectionGitlabConfigArgs) ToConnectionGitlabConfigOutput() ConnectionGitlabConfigOutput

func (ConnectionGitlabConfigArgs) ToConnectionGitlabConfigOutputWithContext added in v6.60.0

func (i ConnectionGitlabConfigArgs) ToConnectionGitlabConfigOutputWithContext(ctx context.Context) ConnectionGitlabConfigOutput

func (ConnectionGitlabConfigArgs) ToConnectionGitlabConfigPtrOutput added in v6.60.0

func (i ConnectionGitlabConfigArgs) ToConnectionGitlabConfigPtrOutput() ConnectionGitlabConfigPtrOutput

func (ConnectionGitlabConfigArgs) ToConnectionGitlabConfigPtrOutputWithContext added in v6.60.0

func (i ConnectionGitlabConfigArgs) ToConnectionGitlabConfigPtrOutputWithContext(ctx context.Context) ConnectionGitlabConfigPtrOutput

func (ConnectionGitlabConfigArgs) ToOutput added in v6.65.1

type ConnectionGitlabConfigAuthorizerCredential added in v6.60.0

type ConnectionGitlabConfigAuthorizerCredential struct {
	// Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format: `projects/*/secrets/*/versions/*`.
	UserTokenSecretVersion string `pulumi:"userTokenSecretVersion"`
	// Output only. The username associated to this token.
	Username *string `pulumi:"username"`
}

type ConnectionGitlabConfigAuthorizerCredentialArgs added in v6.60.0

type ConnectionGitlabConfigAuthorizerCredentialArgs struct {
	// Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format: `projects/*/secrets/*/versions/*`.
	UserTokenSecretVersion pulumi.StringInput `pulumi:"userTokenSecretVersion"`
	// Output only. The username associated to this token.
	Username pulumi.StringPtrInput `pulumi:"username"`
}

func (ConnectionGitlabConfigAuthorizerCredentialArgs) ElementType added in v6.60.0

func (ConnectionGitlabConfigAuthorizerCredentialArgs) ToConnectionGitlabConfigAuthorizerCredentialOutput added in v6.60.0

func (i ConnectionGitlabConfigAuthorizerCredentialArgs) ToConnectionGitlabConfigAuthorizerCredentialOutput() ConnectionGitlabConfigAuthorizerCredentialOutput

func (ConnectionGitlabConfigAuthorizerCredentialArgs) ToConnectionGitlabConfigAuthorizerCredentialOutputWithContext added in v6.60.0

func (i ConnectionGitlabConfigAuthorizerCredentialArgs) ToConnectionGitlabConfigAuthorizerCredentialOutputWithContext(ctx context.Context) ConnectionGitlabConfigAuthorizerCredentialOutput

func (ConnectionGitlabConfigAuthorizerCredentialArgs) ToConnectionGitlabConfigAuthorizerCredentialPtrOutput added in v6.60.0

func (i ConnectionGitlabConfigAuthorizerCredentialArgs) ToConnectionGitlabConfigAuthorizerCredentialPtrOutput() ConnectionGitlabConfigAuthorizerCredentialPtrOutput

func (ConnectionGitlabConfigAuthorizerCredentialArgs) ToConnectionGitlabConfigAuthorizerCredentialPtrOutputWithContext added in v6.60.0

func (i ConnectionGitlabConfigAuthorizerCredentialArgs) ToConnectionGitlabConfigAuthorizerCredentialPtrOutputWithContext(ctx context.Context) ConnectionGitlabConfigAuthorizerCredentialPtrOutput

func (ConnectionGitlabConfigAuthorizerCredentialArgs) ToOutput added in v6.65.1

type ConnectionGitlabConfigAuthorizerCredentialInput added in v6.60.0

type ConnectionGitlabConfigAuthorizerCredentialInput interface {
	pulumi.Input

	ToConnectionGitlabConfigAuthorizerCredentialOutput() ConnectionGitlabConfigAuthorizerCredentialOutput
	ToConnectionGitlabConfigAuthorizerCredentialOutputWithContext(context.Context) ConnectionGitlabConfigAuthorizerCredentialOutput
}

ConnectionGitlabConfigAuthorizerCredentialInput is an input type that accepts ConnectionGitlabConfigAuthorizerCredentialArgs and ConnectionGitlabConfigAuthorizerCredentialOutput values. You can construct a concrete instance of `ConnectionGitlabConfigAuthorizerCredentialInput` via:

ConnectionGitlabConfigAuthorizerCredentialArgs{...}

type ConnectionGitlabConfigAuthorizerCredentialOutput added in v6.60.0

type ConnectionGitlabConfigAuthorizerCredentialOutput struct{ *pulumi.OutputState }

func (ConnectionGitlabConfigAuthorizerCredentialOutput) ElementType added in v6.60.0

func (ConnectionGitlabConfigAuthorizerCredentialOutput) ToConnectionGitlabConfigAuthorizerCredentialOutput added in v6.60.0

func (o ConnectionGitlabConfigAuthorizerCredentialOutput) ToConnectionGitlabConfigAuthorizerCredentialOutput() ConnectionGitlabConfigAuthorizerCredentialOutput

func (ConnectionGitlabConfigAuthorizerCredentialOutput) ToConnectionGitlabConfigAuthorizerCredentialOutputWithContext added in v6.60.0

func (o ConnectionGitlabConfigAuthorizerCredentialOutput) ToConnectionGitlabConfigAuthorizerCredentialOutputWithContext(ctx context.Context) ConnectionGitlabConfigAuthorizerCredentialOutput

func (ConnectionGitlabConfigAuthorizerCredentialOutput) ToConnectionGitlabConfigAuthorizerCredentialPtrOutput added in v6.60.0

func (o ConnectionGitlabConfigAuthorizerCredentialOutput) ToConnectionGitlabConfigAuthorizerCredentialPtrOutput() ConnectionGitlabConfigAuthorizerCredentialPtrOutput

func (ConnectionGitlabConfigAuthorizerCredentialOutput) ToConnectionGitlabConfigAuthorizerCredentialPtrOutputWithContext added in v6.60.0

func (o ConnectionGitlabConfigAuthorizerCredentialOutput) ToConnectionGitlabConfigAuthorizerCredentialPtrOutputWithContext(ctx context.Context) ConnectionGitlabConfigAuthorizerCredentialPtrOutput

func (ConnectionGitlabConfigAuthorizerCredentialOutput) ToOutput added in v6.65.1

func (ConnectionGitlabConfigAuthorizerCredentialOutput) UserTokenSecretVersion added in v6.60.0

Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format: `projects/*/secrets/*/versions/*`.

func (ConnectionGitlabConfigAuthorizerCredentialOutput) Username added in v6.60.0

Output only. The username associated to this token.

type ConnectionGitlabConfigAuthorizerCredentialPtrInput added in v6.60.0

type ConnectionGitlabConfigAuthorizerCredentialPtrInput interface {
	pulumi.Input

	ToConnectionGitlabConfigAuthorizerCredentialPtrOutput() ConnectionGitlabConfigAuthorizerCredentialPtrOutput
	ToConnectionGitlabConfigAuthorizerCredentialPtrOutputWithContext(context.Context) ConnectionGitlabConfigAuthorizerCredentialPtrOutput
}

ConnectionGitlabConfigAuthorizerCredentialPtrInput is an input type that accepts ConnectionGitlabConfigAuthorizerCredentialArgs, ConnectionGitlabConfigAuthorizerCredentialPtr and ConnectionGitlabConfigAuthorizerCredentialPtrOutput values. You can construct a concrete instance of `ConnectionGitlabConfigAuthorizerCredentialPtrInput` via:

        ConnectionGitlabConfigAuthorizerCredentialArgs{...}

or:

        nil

type ConnectionGitlabConfigAuthorizerCredentialPtrOutput added in v6.60.0

type ConnectionGitlabConfigAuthorizerCredentialPtrOutput struct{ *pulumi.OutputState }

func (ConnectionGitlabConfigAuthorizerCredentialPtrOutput) Elem added in v6.60.0

func (ConnectionGitlabConfigAuthorizerCredentialPtrOutput) ElementType added in v6.60.0

func (ConnectionGitlabConfigAuthorizerCredentialPtrOutput) ToConnectionGitlabConfigAuthorizerCredentialPtrOutput added in v6.60.0

func (o ConnectionGitlabConfigAuthorizerCredentialPtrOutput) ToConnectionGitlabConfigAuthorizerCredentialPtrOutput() ConnectionGitlabConfigAuthorizerCredentialPtrOutput

func (ConnectionGitlabConfigAuthorizerCredentialPtrOutput) ToConnectionGitlabConfigAuthorizerCredentialPtrOutputWithContext added in v6.60.0

func (o ConnectionGitlabConfigAuthorizerCredentialPtrOutput) ToConnectionGitlabConfigAuthorizerCredentialPtrOutputWithContext(ctx context.Context) ConnectionGitlabConfigAuthorizerCredentialPtrOutput

func (ConnectionGitlabConfigAuthorizerCredentialPtrOutput) ToOutput added in v6.65.1

func (ConnectionGitlabConfigAuthorizerCredentialPtrOutput) UserTokenSecretVersion added in v6.60.0

Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format: `projects/*/secrets/*/versions/*`.

func (ConnectionGitlabConfigAuthorizerCredentialPtrOutput) Username added in v6.60.0

Output only. The username associated to this token.

type ConnectionGitlabConfigInput added in v6.60.0

type ConnectionGitlabConfigInput interface {
	pulumi.Input

	ToConnectionGitlabConfigOutput() ConnectionGitlabConfigOutput
	ToConnectionGitlabConfigOutputWithContext(context.Context) ConnectionGitlabConfigOutput
}

ConnectionGitlabConfigInput is an input type that accepts ConnectionGitlabConfigArgs and ConnectionGitlabConfigOutput values. You can construct a concrete instance of `ConnectionGitlabConfigInput` via:

ConnectionGitlabConfigArgs{...}

type ConnectionGitlabConfigOutput added in v6.60.0

type ConnectionGitlabConfigOutput struct{ *pulumi.OutputState }

func (ConnectionGitlabConfigOutput) AuthorizerCredential added in v6.60.0

Required. A GitLab personal access token with the `api` scope access.

func (ConnectionGitlabConfigOutput) ElementType added in v6.60.0

func (ConnectionGitlabConfigOutput) HostUri added in v6.60.0

The URI of the GitLab Enterprise host this connection is for. If not specified, the default value is https://gitlab.com.

func (ConnectionGitlabConfigOutput) ReadAuthorizerCredential added in v6.60.0

Required. A GitLab personal access token with the minimum `readApi` scope access.

func (ConnectionGitlabConfigOutput) ServerVersion added in v6.60.0

Output only. Version of the GitLab Enterprise server running on the `hostUri`.

func (ConnectionGitlabConfigOutput) ServiceDirectoryConfig added in v6.60.0

Configuration for using Service Directory to privately connect to a GitLab Enterprise server. This should only be set if the GitLab Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the GitLab Enterprise server will be made over the public internet.

func (ConnectionGitlabConfigOutput) SslCa added in v6.60.0

SSL certificate to use for requests to GitLab Enterprise.

func (ConnectionGitlabConfigOutput) ToConnectionGitlabConfigOutput added in v6.60.0

func (o ConnectionGitlabConfigOutput) ToConnectionGitlabConfigOutput() ConnectionGitlabConfigOutput

func (ConnectionGitlabConfigOutput) ToConnectionGitlabConfigOutputWithContext added in v6.60.0

func (o ConnectionGitlabConfigOutput) ToConnectionGitlabConfigOutputWithContext(ctx context.Context) ConnectionGitlabConfigOutput

func (ConnectionGitlabConfigOutput) ToConnectionGitlabConfigPtrOutput added in v6.60.0

func (o ConnectionGitlabConfigOutput) ToConnectionGitlabConfigPtrOutput() ConnectionGitlabConfigPtrOutput

func (ConnectionGitlabConfigOutput) ToConnectionGitlabConfigPtrOutputWithContext added in v6.60.0

func (o ConnectionGitlabConfigOutput) ToConnectionGitlabConfigPtrOutputWithContext(ctx context.Context) ConnectionGitlabConfigPtrOutput

func (ConnectionGitlabConfigOutput) ToOutput added in v6.65.1

func (ConnectionGitlabConfigOutput) WebhookSecretSecretVersion added in v6.60.0

func (o ConnectionGitlabConfigOutput) WebhookSecretSecretVersion() pulumi.StringOutput

Required. Immutable. SecretManager resource containing the webhook secret of a GitLab Enterprise project, formatted as `projects/*/secrets/*/versions/*`.

type ConnectionGitlabConfigPtrInput added in v6.60.0

type ConnectionGitlabConfigPtrInput interface {
	pulumi.Input

	ToConnectionGitlabConfigPtrOutput() ConnectionGitlabConfigPtrOutput
	ToConnectionGitlabConfigPtrOutputWithContext(context.Context) ConnectionGitlabConfigPtrOutput
}

ConnectionGitlabConfigPtrInput is an input type that accepts ConnectionGitlabConfigArgs, ConnectionGitlabConfigPtr and ConnectionGitlabConfigPtrOutput values. You can construct a concrete instance of `ConnectionGitlabConfigPtrInput` via:

        ConnectionGitlabConfigArgs{...}

or:

        nil

func ConnectionGitlabConfigPtr added in v6.60.0

func ConnectionGitlabConfigPtr(v *ConnectionGitlabConfigArgs) ConnectionGitlabConfigPtrInput

type ConnectionGitlabConfigPtrOutput added in v6.60.0

type ConnectionGitlabConfigPtrOutput struct{ *pulumi.OutputState }

func (ConnectionGitlabConfigPtrOutput) AuthorizerCredential added in v6.60.0

Required. A GitLab personal access token with the `api` scope access.

func (ConnectionGitlabConfigPtrOutput) Elem added in v6.60.0

func (ConnectionGitlabConfigPtrOutput) ElementType added in v6.60.0

func (ConnectionGitlabConfigPtrOutput) HostUri added in v6.60.0

The URI of the GitLab Enterprise host this connection is for. If not specified, the default value is https://gitlab.com.

func (ConnectionGitlabConfigPtrOutput) ReadAuthorizerCredential added in v6.60.0

Required. A GitLab personal access token with the minimum `readApi` scope access.

func (ConnectionGitlabConfigPtrOutput) ServerVersion added in v6.60.0

Output only. Version of the GitLab Enterprise server running on the `hostUri`.

func (ConnectionGitlabConfigPtrOutput) ServiceDirectoryConfig added in v6.60.0

Configuration for using Service Directory to privately connect to a GitLab Enterprise server. This should only be set if the GitLab Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the GitLab Enterprise server will be made over the public internet.

func (ConnectionGitlabConfigPtrOutput) SslCa added in v6.60.0

SSL certificate to use for requests to GitLab Enterprise.

func (ConnectionGitlabConfigPtrOutput) ToConnectionGitlabConfigPtrOutput added in v6.60.0

func (o ConnectionGitlabConfigPtrOutput) ToConnectionGitlabConfigPtrOutput() ConnectionGitlabConfigPtrOutput

func (ConnectionGitlabConfigPtrOutput) ToConnectionGitlabConfigPtrOutputWithContext added in v6.60.0

func (o ConnectionGitlabConfigPtrOutput) ToConnectionGitlabConfigPtrOutputWithContext(ctx context.Context) ConnectionGitlabConfigPtrOutput

func (ConnectionGitlabConfigPtrOutput) ToOutput added in v6.65.1

func (ConnectionGitlabConfigPtrOutput) WebhookSecretSecretVersion added in v6.60.0

func (o ConnectionGitlabConfigPtrOutput) WebhookSecretSecretVersion() pulumi.StringPtrOutput

Required. Immutable. SecretManager resource containing the webhook secret of a GitLab Enterprise project, formatted as `projects/*/secrets/*/versions/*`.

type ConnectionGitlabConfigReadAuthorizerCredential added in v6.60.0

type ConnectionGitlabConfigReadAuthorizerCredential struct {
	// Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format: `projects/*/secrets/*/versions/*`.
	UserTokenSecretVersion string `pulumi:"userTokenSecretVersion"`
	// Output only. The username associated to this token.
	//
	// ***
	Username *string `pulumi:"username"`
}

type ConnectionGitlabConfigReadAuthorizerCredentialArgs added in v6.60.0

type ConnectionGitlabConfigReadAuthorizerCredentialArgs struct {
	// Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format: `projects/*/secrets/*/versions/*`.
	UserTokenSecretVersion pulumi.StringInput `pulumi:"userTokenSecretVersion"`
	// Output only. The username associated to this token.
	//
	// ***
	Username pulumi.StringPtrInput `pulumi:"username"`
}

func (ConnectionGitlabConfigReadAuthorizerCredentialArgs) ElementType added in v6.60.0

func (ConnectionGitlabConfigReadAuthorizerCredentialArgs) ToConnectionGitlabConfigReadAuthorizerCredentialOutput added in v6.60.0

func (i ConnectionGitlabConfigReadAuthorizerCredentialArgs) ToConnectionGitlabConfigReadAuthorizerCredentialOutput() ConnectionGitlabConfigReadAuthorizerCredentialOutput

func (ConnectionGitlabConfigReadAuthorizerCredentialArgs) ToConnectionGitlabConfigReadAuthorizerCredentialOutputWithContext added in v6.60.0

func (i ConnectionGitlabConfigReadAuthorizerCredentialArgs) ToConnectionGitlabConfigReadAuthorizerCredentialOutputWithContext(ctx context.Context) ConnectionGitlabConfigReadAuthorizerCredentialOutput

func (ConnectionGitlabConfigReadAuthorizerCredentialArgs) ToConnectionGitlabConfigReadAuthorizerCredentialPtrOutput added in v6.60.0

func (i ConnectionGitlabConfigReadAuthorizerCredentialArgs) ToConnectionGitlabConfigReadAuthorizerCredentialPtrOutput() ConnectionGitlabConfigReadAuthorizerCredentialPtrOutput

func (ConnectionGitlabConfigReadAuthorizerCredentialArgs) ToConnectionGitlabConfigReadAuthorizerCredentialPtrOutputWithContext added in v6.60.0

func (i ConnectionGitlabConfigReadAuthorizerCredentialArgs) ToConnectionGitlabConfigReadAuthorizerCredentialPtrOutputWithContext(ctx context.Context) ConnectionGitlabConfigReadAuthorizerCredentialPtrOutput

func (ConnectionGitlabConfigReadAuthorizerCredentialArgs) ToOutput added in v6.65.1

type ConnectionGitlabConfigReadAuthorizerCredentialInput added in v6.60.0

type ConnectionGitlabConfigReadAuthorizerCredentialInput interface {
	pulumi.Input

	ToConnectionGitlabConfigReadAuthorizerCredentialOutput() ConnectionGitlabConfigReadAuthorizerCredentialOutput
	ToConnectionGitlabConfigReadAuthorizerCredentialOutputWithContext(context.Context) ConnectionGitlabConfigReadAuthorizerCredentialOutput
}

ConnectionGitlabConfigReadAuthorizerCredentialInput is an input type that accepts ConnectionGitlabConfigReadAuthorizerCredentialArgs and ConnectionGitlabConfigReadAuthorizerCredentialOutput values. You can construct a concrete instance of `ConnectionGitlabConfigReadAuthorizerCredentialInput` via:

ConnectionGitlabConfigReadAuthorizerCredentialArgs{...}

type ConnectionGitlabConfigReadAuthorizerCredentialOutput added in v6.60.0

type ConnectionGitlabConfigReadAuthorizerCredentialOutput struct{ *pulumi.OutputState }

func (ConnectionGitlabConfigReadAuthorizerCredentialOutput) ElementType added in v6.60.0

func (ConnectionGitlabConfigReadAuthorizerCredentialOutput) ToConnectionGitlabConfigReadAuthorizerCredentialOutput added in v6.60.0

func (ConnectionGitlabConfigReadAuthorizerCredentialOutput) ToConnectionGitlabConfigReadAuthorizerCredentialOutputWithContext added in v6.60.0

func (o ConnectionGitlabConfigReadAuthorizerCredentialOutput) ToConnectionGitlabConfigReadAuthorizerCredentialOutputWithContext(ctx context.Context) ConnectionGitlabConfigReadAuthorizerCredentialOutput

func (ConnectionGitlabConfigReadAuthorizerCredentialOutput) ToConnectionGitlabConfigReadAuthorizerCredentialPtrOutput added in v6.60.0

func (o ConnectionGitlabConfigReadAuthorizerCredentialOutput) ToConnectionGitlabConfigReadAuthorizerCredentialPtrOutput() ConnectionGitlabConfigReadAuthorizerCredentialPtrOutput

func (ConnectionGitlabConfigReadAuthorizerCredentialOutput) ToConnectionGitlabConfigReadAuthorizerCredentialPtrOutputWithContext added in v6.60.0

func (o ConnectionGitlabConfigReadAuthorizerCredentialOutput) ToConnectionGitlabConfigReadAuthorizerCredentialPtrOutputWithContext(ctx context.Context) ConnectionGitlabConfigReadAuthorizerCredentialPtrOutput

func (ConnectionGitlabConfigReadAuthorizerCredentialOutput) ToOutput added in v6.65.1

func (ConnectionGitlabConfigReadAuthorizerCredentialOutput) UserTokenSecretVersion added in v6.60.0

Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format: `projects/*/secrets/*/versions/*`.

func (ConnectionGitlabConfigReadAuthorizerCredentialOutput) Username added in v6.60.0

Output only. The username associated to this token.

***

type ConnectionGitlabConfigReadAuthorizerCredentialPtrInput added in v6.60.0

type ConnectionGitlabConfigReadAuthorizerCredentialPtrInput interface {
	pulumi.Input

	ToConnectionGitlabConfigReadAuthorizerCredentialPtrOutput() ConnectionGitlabConfigReadAuthorizerCredentialPtrOutput
	ToConnectionGitlabConfigReadAuthorizerCredentialPtrOutputWithContext(context.Context) ConnectionGitlabConfigReadAuthorizerCredentialPtrOutput
}

ConnectionGitlabConfigReadAuthorizerCredentialPtrInput is an input type that accepts ConnectionGitlabConfigReadAuthorizerCredentialArgs, ConnectionGitlabConfigReadAuthorizerCredentialPtr and ConnectionGitlabConfigReadAuthorizerCredentialPtrOutput values. You can construct a concrete instance of `ConnectionGitlabConfigReadAuthorizerCredentialPtrInput` via:

        ConnectionGitlabConfigReadAuthorizerCredentialArgs{...}

or:

        nil

type ConnectionGitlabConfigReadAuthorizerCredentialPtrOutput added in v6.60.0

type ConnectionGitlabConfigReadAuthorizerCredentialPtrOutput struct{ *pulumi.OutputState }

func (ConnectionGitlabConfigReadAuthorizerCredentialPtrOutput) Elem added in v6.60.0

func (ConnectionGitlabConfigReadAuthorizerCredentialPtrOutput) ElementType added in v6.60.0

func (ConnectionGitlabConfigReadAuthorizerCredentialPtrOutput) ToConnectionGitlabConfigReadAuthorizerCredentialPtrOutput added in v6.60.0

func (ConnectionGitlabConfigReadAuthorizerCredentialPtrOutput) ToConnectionGitlabConfigReadAuthorizerCredentialPtrOutputWithContext added in v6.60.0

func (o ConnectionGitlabConfigReadAuthorizerCredentialPtrOutput) ToConnectionGitlabConfigReadAuthorizerCredentialPtrOutputWithContext(ctx context.Context) ConnectionGitlabConfigReadAuthorizerCredentialPtrOutput

func (ConnectionGitlabConfigReadAuthorizerCredentialPtrOutput) ToOutput added in v6.65.1

func (ConnectionGitlabConfigReadAuthorizerCredentialPtrOutput) UserTokenSecretVersion added in v6.60.0

Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format: `projects/*/secrets/*/versions/*`.

func (ConnectionGitlabConfigReadAuthorizerCredentialPtrOutput) Username added in v6.60.0

Output only. The username associated to this token.

***

type ConnectionGitlabConfigServiceDirectoryConfig added in v6.60.0

type ConnectionGitlabConfigServiceDirectoryConfig struct {
	// Required. The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
	Service string `pulumi:"service"`
}

type ConnectionGitlabConfigServiceDirectoryConfigArgs added in v6.60.0

type ConnectionGitlabConfigServiceDirectoryConfigArgs struct {
	// Required. The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
	Service pulumi.StringInput `pulumi:"service"`
}

func (ConnectionGitlabConfigServiceDirectoryConfigArgs) ElementType added in v6.60.0

func (ConnectionGitlabConfigServiceDirectoryConfigArgs) ToConnectionGitlabConfigServiceDirectoryConfigOutput added in v6.60.0

func (i ConnectionGitlabConfigServiceDirectoryConfigArgs) ToConnectionGitlabConfigServiceDirectoryConfigOutput() ConnectionGitlabConfigServiceDirectoryConfigOutput

func (ConnectionGitlabConfigServiceDirectoryConfigArgs) ToConnectionGitlabConfigServiceDirectoryConfigOutputWithContext added in v6.60.0

func (i ConnectionGitlabConfigServiceDirectoryConfigArgs) ToConnectionGitlabConfigServiceDirectoryConfigOutputWithContext(ctx context.Context) ConnectionGitlabConfigServiceDirectoryConfigOutput

func (ConnectionGitlabConfigServiceDirectoryConfigArgs) ToConnectionGitlabConfigServiceDirectoryConfigPtrOutput added in v6.60.0

func (i ConnectionGitlabConfigServiceDirectoryConfigArgs) ToConnectionGitlabConfigServiceDirectoryConfigPtrOutput() ConnectionGitlabConfigServiceDirectoryConfigPtrOutput

func (ConnectionGitlabConfigServiceDirectoryConfigArgs) ToConnectionGitlabConfigServiceDirectoryConfigPtrOutputWithContext added in v6.60.0

func (i ConnectionGitlabConfigServiceDirectoryConfigArgs) ToConnectionGitlabConfigServiceDirectoryConfigPtrOutputWithContext(ctx context.Context) ConnectionGitlabConfigServiceDirectoryConfigPtrOutput

func (ConnectionGitlabConfigServiceDirectoryConfigArgs) ToOutput added in v6.65.1

type ConnectionGitlabConfigServiceDirectoryConfigInput added in v6.60.0

type ConnectionGitlabConfigServiceDirectoryConfigInput interface {
	pulumi.Input

	ToConnectionGitlabConfigServiceDirectoryConfigOutput() ConnectionGitlabConfigServiceDirectoryConfigOutput
	ToConnectionGitlabConfigServiceDirectoryConfigOutputWithContext(context.Context) ConnectionGitlabConfigServiceDirectoryConfigOutput
}

ConnectionGitlabConfigServiceDirectoryConfigInput is an input type that accepts ConnectionGitlabConfigServiceDirectoryConfigArgs and ConnectionGitlabConfigServiceDirectoryConfigOutput values. You can construct a concrete instance of `ConnectionGitlabConfigServiceDirectoryConfigInput` via:

ConnectionGitlabConfigServiceDirectoryConfigArgs{...}

type ConnectionGitlabConfigServiceDirectoryConfigOutput added in v6.60.0

type ConnectionGitlabConfigServiceDirectoryConfigOutput struct{ *pulumi.OutputState }

func (ConnectionGitlabConfigServiceDirectoryConfigOutput) ElementType added in v6.60.0

func (ConnectionGitlabConfigServiceDirectoryConfigOutput) Service added in v6.60.0

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

func (ConnectionGitlabConfigServiceDirectoryConfigOutput) ToConnectionGitlabConfigServiceDirectoryConfigOutput added in v6.60.0

func (o ConnectionGitlabConfigServiceDirectoryConfigOutput) ToConnectionGitlabConfigServiceDirectoryConfigOutput() ConnectionGitlabConfigServiceDirectoryConfigOutput

func (ConnectionGitlabConfigServiceDirectoryConfigOutput) ToConnectionGitlabConfigServiceDirectoryConfigOutputWithContext added in v6.60.0

func (o ConnectionGitlabConfigServiceDirectoryConfigOutput) ToConnectionGitlabConfigServiceDirectoryConfigOutputWithContext(ctx context.Context) ConnectionGitlabConfigServiceDirectoryConfigOutput

func (ConnectionGitlabConfigServiceDirectoryConfigOutput) ToConnectionGitlabConfigServiceDirectoryConfigPtrOutput added in v6.60.0

func (o ConnectionGitlabConfigServiceDirectoryConfigOutput) ToConnectionGitlabConfigServiceDirectoryConfigPtrOutput() ConnectionGitlabConfigServiceDirectoryConfigPtrOutput

func (ConnectionGitlabConfigServiceDirectoryConfigOutput) ToConnectionGitlabConfigServiceDirectoryConfigPtrOutputWithContext added in v6.60.0

func (o ConnectionGitlabConfigServiceDirectoryConfigOutput) ToConnectionGitlabConfigServiceDirectoryConfigPtrOutputWithContext(ctx context.Context) ConnectionGitlabConfigServiceDirectoryConfigPtrOutput

func (ConnectionGitlabConfigServiceDirectoryConfigOutput) ToOutput added in v6.65.1

type ConnectionGitlabConfigServiceDirectoryConfigPtrInput added in v6.60.0

type ConnectionGitlabConfigServiceDirectoryConfigPtrInput interface {
	pulumi.Input

	ToConnectionGitlabConfigServiceDirectoryConfigPtrOutput() ConnectionGitlabConfigServiceDirectoryConfigPtrOutput
	ToConnectionGitlabConfigServiceDirectoryConfigPtrOutputWithContext(context.Context) ConnectionGitlabConfigServiceDirectoryConfigPtrOutput
}

ConnectionGitlabConfigServiceDirectoryConfigPtrInput is an input type that accepts ConnectionGitlabConfigServiceDirectoryConfigArgs, ConnectionGitlabConfigServiceDirectoryConfigPtr and ConnectionGitlabConfigServiceDirectoryConfigPtrOutput values. You can construct a concrete instance of `ConnectionGitlabConfigServiceDirectoryConfigPtrInput` via:

        ConnectionGitlabConfigServiceDirectoryConfigArgs{...}

or:

        nil

type ConnectionGitlabConfigServiceDirectoryConfigPtrOutput added in v6.60.0

type ConnectionGitlabConfigServiceDirectoryConfigPtrOutput struct{ *pulumi.OutputState }

func (ConnectionGitlabConfigServiceDirectoryConfigPtrOutput) Elem added in v6.60.0

func (ConnectionGitlabConfigServiceDirectoryConfigPtrOutput) ElementType added in v6.60.0

func (ConnectionGitlabConfigServiceDirectoryConfigPtrOutput) Service added in v6.60.0

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

func (ConnectionGitlabConfigServiceDirectoryConfigPtrOutput) ToConnectionGitlabConfigServiceDirectoryConfigPtrOutput added in v6.60.0

func (ConnectionGitlabConfigServiceDirectoryConfigPtrOutput) ToConnectionGitlabConfigServiceDirectoryConfigPtrOutputWithContext added in v6.60.0

func (o ConnectionGitlabConfigServiceDirectoryConfigPtrOutput) ToConnectionGitlabConfigServiceDirectoryConfigPtrOutputWithContext(ctx context.Context) ConnectionGitlabConfigServiceDirectoryConfigPtrOutput

func (ConnectionGitlabConfigServiceDirectoryConfigPtrOutput) ToOutput added in v6.65.1

type ConnectionIAMBinding added in v6.50.0

type ConnectionIAMBinding struct {
	pulumi.CustomResourceState

	Condition ConnectionIAMBindingConditionPtrOutput `pulumi:"condition"`
	// (Computed) The etag of the IAM policy.
	Etag     pulumi.StringOutput      `pulumi:"etag"`
	Location pulumi.StringOutput      `pulumi:"location"`
	Members  pulumi.StringArrayOutput `pulumi:"members"`
	// Used to find the parent resource to bind the IAM policy to
	Name pulumi.StringOutput `pulumi:"name"`
	// The ID of the project in which the resource belongs.
	// If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
	//
	// * `member/members` - (Required) Identities that will be granted the privilege in `role`.
	//   Each entry can have one of the following values:
	// * **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
	// * **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
	// * **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
	// * **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
	// * **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
	// * **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
	// * **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
	// * **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
	// * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
	Project pulumi.StringOutput `pulumi:"project"`
	// The role that should be applied. Only one
	// `cloudbuildv2.ConnectionIAMBinding` can be used per role. Note that custom roles must be of the format
	// `[projects|organizations]/{parent-name}/roles/{role-name}`.
	Role pulumi.StringOutput `pulumi:"role"`
}

Three different resources help you manage your IAM policy for Cloud Build v2 Connection. Each of these resources serves a different use case:

* `cloudbuildv2.ConnectionIAMPolicy`: Authoritative. Sets the IAM policy for the connection and replaces any existing policy already attached. * `cloudbuildv2.ConnectionIAMBinding`: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the connection are preserved. * `cloudbuildv2.ConnectionIAMMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the connection are preserved.

A data source can be used to retrieve policy data in advent you do not need creation

* `cloudbuildv2.ConnectionIAMPolicy`: Retrieves the IAM policy for the connection

> **Note:** `cloudbuildv2.ConnectionIAMPolicy` **cannot** be used in conjunction with `cloudbuildv2.ConnectionIAMBinding` and `cloudbuildv2.ConnectionIAMMember` or they will fight over what your policy should be.

> **Note:** `cloudbuildv2.ConnectionIAMBinding` resources **can be** used in conjunction with `cloudbuildv2.ConnectionIAMMember` resources **only if** they do not grant privilege to the same role.

## google\_cloudbuildv2\_connection\_iam\_policy

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudbuildv2"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/organizations"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		admin, err := organizations.LookupIAMPolicy(ctx, &organizations.LookupIAMPolicyArgs{
			Bindings: []organizations.GetIAMPolicyBinding{
				{
					Role: "roles/cloudbuild.connectionViewer",
					Members: []string{
						"user:jane@example.com",
					},
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		_, err = cloudbuildv2.NewConnectionIAMPolicy(ctx, "policy", &cloudbuildv2.ConnectionIAMPolicyArgs{
			Project:    pulumi.Any(google_cloudbuildv2_connection.MyConnection.Project),
			Location:   pulumi.Any(google_cloudbuildv2_connection.MyConnection.Location),
			PolicyData: *pulumi.String(admin.PolicyData),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## google\_cloudbuildv2\_connection\_iam\_binding

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudbuildv2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudbuildv2.NewConnectionIAMBinding(ctx, "binding", &cloudbuildv2.ConnectionIAMBindingArgs{
			Project:  pulumi.Any(google_cloudbuildv2_connection.MyConnection.Project),
			Location: pulumi.Any(google_cloudbuildv2_connection.MyConnection.Location),
			Role:     pulumi.String("roles/cloudbuild.connectionViewer"),
			Members: pulumi.StringArray{
				pulumi.String("user:jane@example.com"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## google\_cloudbuildv2\_connection\_iam\_member

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudbuildv2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudbuildv2.NewConnectionIAMMember(ctx, "member", &cloudbuildv2.ConnectionIAMMemberArgs{
			Project:  pulumi.Any(google_cloudbuildv2_connection.MyConnection.Project),
			Location: pulumi.Any(google_cloudbuildv2_connection.MyConnection.Location),
			Role:     pulumi.String("roles/cloudbuild.connectionViewer"),
			Member:   pulumi.String("user:jane@example.com"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

For all import syntaxes, the "resource in question" can take any of the following forms* projects/{{project}}/locations/{{location}}/connections/{{name}} * {{project}}/{{location}}/{{name}} * {{location}}/{{name}} * {{name}} Any variables not passed in the import command will be taken from the provider configuration. Cloud Build v2 connection IAM resources can be imported using the resource identifiers, role, and member. IAM member imports use space-delimited identifiersthe resource in question, the role, and the member identity, e.g.

```sh

$ pulumi import gcp:cloudbuildv2/connectionIAMBinding:ConnectionIAMBinding editor "projects/{{project}}/locations/{{location}}/connections/{{connection}} roles/cloudbuild.connectionViewer user:jane@example.com"

```

IAM binding imports use space-delimited identifiersthe resource in question and the role, e.g.

```sh

$ pulumi import gcp:cloudbuildv2/connectionIAMBinding:ConnectionIAMBinding editor "projects/{{project}}/locations/{{location}}/connections/{{connection}} roles/cloudbuild.connectionViewer"

```

IAM policy imports use the identifier of the resource in question, e.g.

```sh

$ pulumi import gcp:cloudbuildv2/connectionIAMBinding:ConnectionIAMBinding editor projects/{{project}}/locations/{{location}}/connections/{{connection}}

```

-> **Custom Roles**If you're importing a IAM resource with a custom role, make sure to use the

full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.

func GetConnectionIAMBinding added in v6.50.0

func GetConnectionIAMBinding(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ConnectionIAMBindingState, opts ...pulumi.ResourceOption) (*ConnectionIAMBinding, error)

GetConnectionIAMBinding gets an existing ConnectionIAMBinding resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewConnectionIAMBinding added in v6.50.0

func NewConnectionIAMBinding(ctx *pulumi.Context,
	name string, args *ConnectionIAMBindingArgs, opts ...pulumi.ResourceOption) (*ConnectionIAMBinding, error)

NewConnectionIAMBinding registers a new resource with the given unique name, arguments, and options.

func (*ConnectionIAMBinding) ElementType added in v6.50.0

func (*ConnectionIAMBinding) ElementType() reflect.Type

func (*ConnectionIAMBinding) ToConnectionIAMBindingOutput added in v6.50.0

func (i *ConnectionIAMBinding) ToConnectionIAMBindingOutput() ConnectionIAMBindingOutput

func (*ConnectionIAMBinding) ToConnectionIAMBindingOutputWithContext added in v6.50.0

func (i *ConnectionIAMBinding) ToConnectionIAMBindingOutputWithContext(ctx context.Context) ConnectionIAMBindingOutput

func (*ConnectionIAMBinding) ToOutput added in v6.65.1

type ConnectionIAMBindingArgs added in v6.50.0

type ConnectionIAMBindingArgs struct {
	Condition ConnectionIAMBindingConditionPtrInput
	Location  pulumi.StringPtrInput
	Members   pulumi.StringArrayInput
	// Used to find the parent resource to bind the IAM policy to
	Name pulumi.StringPtrInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
	//
	// * `member/members` - (Required) Identities that will be granted the privilege in `role`.
	//   Each entry can have one of the following values:
	// * **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
	// * **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
	// * **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
	// * **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
	// * **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
	// * **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
	// * **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
	// * **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
	// * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
	Project pulumi.StringPtrInput
	// The role that should be applied. Only one
	// `cloudbuildv2.ConnectionIAMBinding` can be used per role. Note that custom roles must be of the format
	// `[projects|organizations]/{parent-name}/roles/{role-name}`.
	Role pulumi.StringInput
}

The set of arguments for constructing a ConnectionIAMBinding resource.

func (ConnectionIAMBindingArgs) ElementType added in v6.50.0

func (ConnectionIAMBindingArgs) ElementType() reflect.Type

type ConnectionIAMBindingArray added in v6.50.0

type ConnectionIAMBindingArray []ConnectionIAMBindingInput

func (ConnectionIAMBindingArray) ElementType added in v6.50.0

func (ConnectionIAMBindingArray) ElementType() reflect.Type

func (ConnectionIAMBindingArray) ToConnectionIAMBindingArrayOutput added in v6.50.0

func (i ConnectionIAMBindingArray) ToConnectionIAMBindingArrayOutput() ConnectionIAMBindingArrayOutput

func (ConnectionIAMBindingArray) ToConnectionIAMBindingArrayOutputWithContext added in v6.50.0

func (i ConnectionIAMBindingArray) ToConnectionIAMBindingArrayOutputWithContext(ctx context.Context) ConnectionIAMBindingArrayOutput

func (ConnectionIAMBindingArray) ToOutput added in v6.65.1

type ConnectionIAMBindingArrayInput added in v6.50.0

type ConnectionIAMBindingArrayInput interface {
	pulumi.Input

	ToConnectionIAMBindingArrayOutput() ConnectionIAMBindingArrayOutput
	ToConnectionIAMBindingArrayOutputWithContext(context.Context) ConnectionIAMBindingArrayOutput
}

ConnectionIAMBindingArrayInput is an input type that accepts ConnectionIAMBindingArray and ConnectionIAMBindingArrayOutput values. You can construct a concrete instance of `ConnectionIAMBindingArrayInput` via:

ConnectionIAMBindingArray{ ConnectionIAMBindingArgs{...} }

type ConnectionIAMBindingArrayOutput added in v6.50.0

type ConnectionIAMBindingArrayOutput struct{ *pulumi.OutputState }

func (ConnectionIAMBindingArrayOutput) ElementType added in v6.50.0

func (ConnectionIAMBindingArrayOutput) Index added in v6.50.0

func (ConnectionIAMBindingArrayOutput) ToConnectionIAMBindingArrayOutput added in v6.50.0

func (o ConnectionIAMBindingArrayOutput) ToConnectionIAMBindingArrayOutput() ConnectionIAMBindingArrayOutput

func (ConnectionIAMBindingArrayOutput) ToConnectionIAMBindingArrayOutputWithContext added in v6.50.0

func (o ConnectionIAMBindingArrayOutput) ToConnectionIAMBindingArrayOutputWithContext(ctx context.Context) ConnectionIAMBindingArrayOutput

func (ConnectionIAMBindingArrayOutput) ToOutput added in v6.65.1

type ConnectionIAMBindingCondition added in v6.50.0

type ConnectionIAMBindingCondition struct {
	Description *string `pulumi:"description"`
	Expression  string  `pulumi:"expression"`
	Title       string  `pulumi:"title"`
}

type ConnectionIAMBindingConditionArgs added in v6.50.0

type ConnectionIAMBindingConditionArgs struct {
	Description pulumi.StringPtrInput `pulumi:"description"`
	Expression  pulumi.StringInput    `pulumi:"expression"`
	Title       pulumi.StringInput    `pulumi:"title"`
}

func (ConnectionIAMBindingConditionArgs) ElementType added in v6.50.0

func (ConnectionIAMBindingConditionArgs) ToConnectionIAMBindingConditionOutput added in v6.50.0

func (i ConnectionIAMBindingConditionArgs) ToConnectionIAMBindingConditionOutput() ConnectionIAMBindingConditionOutput

func (ConnectionIAMBindingConditionArgs) ToConnectionIAMBindingConditionOutputWithContext added in v6.50.0

func (i ConnectionIAMBindingConditionArgs) ToConnectionIAMBindingConditionOutputWithContext(ctx context.Context) ConnectionIAMBindingConditionOutput

func (ConnectionIAMBindingConditionArgs) ToConnectionIAMBindingConditionPtrOutput added in v6.50.0

func (i ConnectionIAMBindingConditionArgs) ToConnectionIAMBindingConditionPtrOutput() ConnectionIAMBindingConditionPtrOutput

func (ConnectionIAMBindingConditionArgs) ToConnectionIAMBindingConditionPtrOutputWithContext added in v6.50.0

func (i ConnectionIAMBindingConditionArgs) ToConnectionIAMBindingConditionPtrOutputWithContext(ctx context.Context) ConnectionIAMBindingConditionPtrOutput

func (ConnectionIAMBindingConditionArgs) ToOutput added in v6.65.1

type ConnectionIAMBindingConditionInput added in v6.50.0

type ConnectionIAMBindingConditionInput interface {
	pulumi.Input

	ToConnectionIAMBindingConditionOutput() ConnectionIAMBindingConditionOutput
	ToConnectionIAMBindingConditionOutputWithContext(context.Context) ConnectionIAMBindingConditionOutput
}

ConnectionIAMBindingConditionInput is an input type that accepts ConnectionIAMBindingConditionArgs and ConnectionIAMBindingConditionOutput values. You can construct a concrete instance of `ConnectionIAMBindingConditionInput` via:

ConnectionIAMBindingConditionArgs{...}

type ConnectionIAMBindingConditionOutput added in v6.50.0

type ConnectionIAMBindingConditionOutput struct{ *pulumi.OutputState }

func (ConnectionIAMBindingConditionOutput) Description added in v6.50.0

func (ConnectionIAMBindingConditionOutput) ElementType added in v6.50.0

func (ConnectionIAMBindingConditionOutput) Expression added in v6.50.0

func (ConnectionIAMBindingConditionOutput) Title added in v6.50.0

func (ConnectionIAMBindingConditionOutput) ToConnectionIAMBindingConditionOutput added in v6.50.0

func (o ConnectionIAMBindingConditionOutput) ToConnectionIAMBindingConditionOutput() ConnectionIAMBindingConditionOutput

func (ConnectionIAMBindingConditionOutput) ToConnectionIAMBindingConditionOutputWithContext added in v6.50.0

func (o ConnectionIAMBindingConditionOutput) ToConnectionIAMBindingConditionOutputWithContext(ctx context.Context) ConnectionIAMBindingConditionOutput

func (ConnectionIAMBindingConditionOutput) ToConnectionIAMBindingConditionPtrOutput added in v6.50.0

func (o ConnectionIAMBindingConditionOutput) ToConnectionIAMBindingConditionPtrOutput() ConnectionIAMBindingConditionPtrOutput

func (ConnectionIAMBindingConditionOutput) ToConnectionIAMBindingConditionPtrOutputWithContext added in v6.50.0

func (o ConnectionIAMBindingConditionOutput) ToConnectionIAMBindingConditionPtrOutputWithContext(ctx context.Context) ConnectionIAMBindingConditionPtrOutput

func (ConnectionIAMBindingConditionOutput) ToOutput added in v6.65.1

type ConnectionIAMBindingConditionPtrInput added in v6.50.0

type ConnectionIAMBindingConditionPtrInput interface {
	pulumi.Input

	ToConnectionIAMBindingConditionPtrOutput() ConnectionIAMBindingConditionPtrOutput
	ToConnectionIAMBindingConditionPtrOutputWithContext(context.Context) ConnectionIAMBindingConditionPtrOutput
}

ConnectionIAMBindingConditionPtrInput is an input type that accepts ConnectionIAMBindingConditionArgs, ConnectionIAMBindingConditionPtr and ConnectionIAMBindingConditionPtrOutput values. You can construct a concrete instance of `ConnectionIAMBindingConditionPtrInput` via:

        ConnectionIAMBindingConditionArgs{...}

or:

        nil

type ConnectionIAMBindingConditionPtrOutput added in v6.50.0

type ConnectionIAMBindingConditionPtrOutput struct{ *pulumi.OutputState }

func (ConnectionIAMBindingConditionPtrOutput) Description added in v6.50.0

func (ConnectionIAMBindingConditionPtrOutput) Elem added in v6.50.0

func (ConnectionIAMBindingConditionPtrOutput) ElementType added in v6.50.0

func (ConnectionIAMBindingConditionPtrOutput) Expression added in v6.50.0

func (ConnectionIAMBindingConditionPtrOutput) Title added in v6.50.0

func (ConnectionIAMBindingConditionPtrOutput) ToConnectionIAMBindingConditionPtrOutput added in v6.50.0

func (o ConnectionIAMBindingConditionPtrOutput) ToConnectionIAMBindingConditionPtrOutput() ConnectionIAMBindingConditionPtrOutput

func (ConnectionIAMBindingConditionPtrOutput) ToConnectionIAMBindingConditionPtrOutputWithContext added in v6.50.0

func (o ConnectionIAMBindingConditionPtrOutput) ToConnectionIAMBindingConditionPtrOutputWithContext(ctx context.Context) ConnectionIAMBindingConditionPtrOutput

func (ConnectionIAMBindingConditionPtrOutput) ToOutput added in v6.65.1

type ConnectionIAMBindingInput added in v6.50.0

type ConnectionIAMBindingInput interface {
	pulumi.Input

	ToConnectionIAMBindingOutput() ConnectionIAMBindingOutput
	ToConnectionIAMBindingOutputWithContext(ctx context.Context) ConnectionIAMBindingOutput
}

type ConnectionIAMBindingMap added in v6.50.0

type ConnectionIAMBindingMap map[string]ConnectionIAMBindingInput

func (ConnectionIAMBindingMap) ElementType added in v6.50.0

func (ConnectionIAMBindingMap) ElementType() reflect.Type

func (ConnectionIAMBindingMap) ToConnectionIAMBindingMapOutput added in v6.50.0

func (i ConnectionIAMBindingMap) ToConnectionIAMBindingMapOutput() ConnectionIAMBindingMapOutput

func (ConnectionIAMBindingMap) ToConnectionIAMBindingMapOutputWithContext added in v6.50.0

func (i ConnectionIAMBindingMap) ToConnectionIAMBindingMapOutputWithContext(ctx context.Context) ConnectionIAMBindingMapOutput

func (ConnectionIAMBindingMap) ToOutput added in v6.65.1

type ConnectionIAMBindingMapInput added in v6.50.0

type ConnectionIAMBindingMapInput interface {
	pulumi.Input

	ToConnectionIAMBindingMapOutput() ConnectionIAMBindingMapOutput
	ToConnectionIAMBindingMapOutputWithContext(context.Context) ConnectionIAMBindingMapOutput
}

ConnectionIAMBindingMapInput is an input type that accepts ConnectionIAMBindingMap and ConnectionIAMBindingMapOutput values. You can construct a concrete instance of `ConnectionIAMBindingMapInput` via:

ConnectionIAMBindingMap{ "key": ConnectionIAMBindingArgs{...} }

type ConnectionIAMBindingMapOutput added in v6.50.0

type ConnectionIAMBindingMapOutput struct{ *pulumi.OutputState }

func (ConnectionIAMBindingMapOutput) ElementType added in v6.50.0

func (ConnectionIAMBindingMapOutput) MapIndex added in v6.50.0

func (ConnectionIAMBindingMapOutput) ToConnectionIAMBindingMapOutput added in v6.50.0

func (o ConnectionIAMBindingMapOutput) ToConnectionIAMBindingMapOutput() ConnectionIAMBindingMapOutput

func (ConnectionIAMBindingMapOutput) ToConnectionIAMBindingMapOutputWithContext added in v6.50.0

func (o ConnectionIAMBindingMapOutput) ToConnectionIAMBindingMapOutputWithContext(ctx context.Context) ConnectionIAMBindingMapOutput

func (ConnectionIAMBindingMapOutput) ToOutput added in v6.65.1

type ConnectionIAMBindingOutput added in v6.50.0

type ConnectionIAMBindingOutput struct{ *pulumi.OutputState }

func (ConnectionIAMBindingOutput) Condition added in v6.50.0

func (ConnectionIAMBindingOutput) ElementType added in v6.50.0

func (ConnectionIAMBindingOutput) ElementType() reflect.Type

func (ConnectionIAMBindingOutput) Etag added in v6.50.0

(Computed) The etag of the IAM policy.

func (ConnectionIAMBindingOutput) Location added in v6.50.0

func (ConnectionIAMBindingOutput) Members added in v6.50.0

func (ConnectionIAMBindingOutput) Name added in v6.50.0

Used to find the parent resource to bind the IAM policy to

func (ConnectionIAMBindingOutput) Project added in v6.50.0

The ID of the project in which the resource belongs. If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.

  • `member/members` - (Required) Identities that will be granted the privilege in `role`. Each entry can have one of the following values:
  • **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
  • **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
  • **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
  • **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
  • **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
  • **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
  • **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
  • **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
  • **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"

func (ConnectionIAMBindingOutput) Role added in v6.50.0

The role that should be applied. Only one `cloudbuildv2.ConnectionIAMBinding` can be used per role. Note that custom roles must be of the format `[projects|organizations]/{parent-name}/roles/{role-name}`.

func (ConnectionIAMBindingOutput) ToConnectionIAMBindingOutput added in v6.50.0

func (o ConnectionIAMBindingOutput) ToConnectionIAMBindingOutput() ConnectionIAMBindingOutput

func (ConnectionIAMBindingOutput) ToConnectionIAMBindingOutputWithContext added in v6.50.0

func (o ConnectionIAMBindingOutput) ToConnectionIAMBindingOutputWithContext(ctx context.Context) ConnectionIAMBindingOutput

func (ConnectionIAMBindingOutput) ToOutput added in v6.65.1

type ConnectionIAMBindingState added in v6.50.0

type ConnectionIAMBindingState struct {
	Condition ConnectionIAMBindingConditionPtrInput
	// (Computed) The etag of the IAM policy.
	Etag     pulumi.StringPtrInput
	Location pulumi.StringPtrInput
	Members  pulumi.StringArrayInput
	// Used to find the parent resource to bind the IAM policy to
	Name pulumi.StringPtrInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
	//
	// * `member/members` - (Required) Identities that will be granted the privilege in `role`.
	//   Each entry can have one of the following values:
	// * **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
	// * **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
	// * **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
	// * **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
	// * **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
	// * **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
	// * **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
	// * **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
	// * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
	Project pulumi.StringPtrInput
	// The role that should be applied. Only one
	// `cloudbuildv2.ConnectionIAMBinding` can be used per role. Note that custom roles must be of the format
	// `[projects|organizations]/{parent-name}/roles/{role-name}`.
	Role pulumi.StringPtrInput
}

func (ConnectionIAMBindingState) ElementType added in v6.50.0

func (ConnectionIAMBindingState) ElementType() reflect.Type

type ConnectionIAMMember added in v6.50.0

type ConnectionIAMMember struct {
	pulumi.CustomResourceState

	Condition ConnectionIAMMemberConditionPtrOutput `pulumi:"condition"`
	// (Computed) The etag of the IAM policy.
	Etag     pulumi.StringOutput `pulumi:"etag"`
	Location pulumi.StringOutput `pulumi:"location"`
	Member   pulumi.StringOutput `pulumi:"member"`
	// Used to find the parent resource to bind the IAM policy to
	Name pulumi.StringOutput `pulumi:"name"`
	// The ID of the project in which the resource belongs.
	// If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
	//
	// * `member/members` - (Required) Identities that will be granted the privilege in `role`.
	//   Each entry can have one of the following values:
	// * **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
	// * **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
	// * **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
	// * **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
	// * **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
	// * **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
	// * **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
	// * **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
	// * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
	Project pulumi.StringOutput `pulumi:"project"`
	// The role that should be applied. Only one
	// `cloudbuildv2.ConnectionIAMBinding` can be used per role. Note that custom roles must be of the format
	// `[projects|organizations]/{parent-name}/roles/{role-name}`.
	Role pulumi.StringOutput `pulumi:"role"`
}

Three different resources help you manage your IAM policy for Cloud Build v2 Connection. Each of these resources serves a different use case:

* `cloudbuildv2.ConnectionIAMPolicy`: Authoritative. Sets the IAM policy for the connection and replaces any existing policy already attached. * `cloudbuildv2.ConnectionIAMBinding`: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the connection are preserved. * `cloudbuildv2.ConnectionIAMMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the connection are preserved.

A data source can be used to retrieve policy data in advent you do not need creation

* `cloudbuildv2.ConnectionIAMPolicy`: Retrieves the IAM policy for the connection

> **Note:** `cloudbuildv2.ConnectionIAMPolicy` **cannot** be used in conjunction with `cloudbuildv2.ConnectionIAMBinding` and `cloudbuildv2.ConnectionIAMMember` or they will fight over what your policy should be.

> **Note:** `cloudbuildv2.ConnectionIAMBinding` resources **can be** used in conjunction with `cloudbuildv2.ConnectionIAMMember` resources **only if** they do not grant privilege to the same role.

## google\_cloudbuildv2\_connection\_iam\_policy

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudbuildv2"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/organizations"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		admin, err := organizations.LookupIAMPolicy(ctx, &organizations.LookupIAMPolicyArgs{
			Bindings: []organizations.GetIAMPolicyBinding{
				{
					Role: "roles/cloudbuild.connectionViewer",
					Members: []string{
						"user:jane@example.com",
					},
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		_, err = cloudbuildv2.NewConnectionIAMPolicy(ctx, "policy", &cloudbuildv2.ConnectionIAMPolicyArgs{
			Project:    pulumi.Any(google_cloudbuildv2_connection.MyConnection.Project),
			Location:   pulumi.Any(google_cloudbuildv2_connection.MyConnection.Location),
			PolicyData: *pulumi.String(admin.PolicyData),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## google\_cloudbuildv2\_connection\_iam\_binding

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudbuildv2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudbuildv2.NewConnectionIAMBinding(ctx, "binding", &cloudbuildv2.ConnectionIAMBindingArgs{
			Project:  pulumi.Any(google_cloudbuildv2_connection.MyConnection.Project),
			Location: pulumi.Any(google_cloudbuildv2_connection.MyConnection.Location),
			Role:     pulumi.String("roles/cloudbuild.connectionViewer"),
			Members: pulumi.StringArray{
				pulumi.String("user:jane@example.com"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## google\_cloudbuildv2\_connection\_iam\_member

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudbuildv2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudbuildv2.NewConnectionIAMMember(ctx, "member", &cloudbuildv2.ConnectionIAMMemberArgs{
			Project:  pulumi.Any(google_cloudbuildv2_connection.MyConnection.Project),
			Location: pulumi.Any(google_cloudbuildv2_connection.MyConnection.Location),
			Role:     pulumi.String("roles/cloudbuild.connectionViewer"),
			Member:   pulumi.String("user:jane@example.com"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

For all import syntaxes, the "resource in question" can take any of the following forms* projects/{{project}}/locations/{{location}}/connections/{{name}} * {{project}}/{{location}}/{{name}} * {{location}}/{{name}} * {{name}} Any variables not passed in the import command will be taken from the provider configuration. Cloud Build v2 connection IAM resources can be imported using the resource identifiers, role, and member. IAM member imports use space-delimited identifiersthe resource in question, the role, and the member identity, e.g.

```sh

$ pulumi import gcp:cloudbuildv2/connectionIAMMember:ConnectionIAMMember editor "projects/{{project}}/locations/{{location}}/connections/{{connection}} roles/cloudbuild.connectionViewer user:jane@example.com"

```

IAM binding imports use space-delimited identifiersthe resource in question and the role, e.g.

```sh

$ pulumi import gcp:cloudbuildv2/connectionIAMMember:ConnectionIAMMember editor "projects/{{project}}/locations/{{location}}/connections/{{connection}} roles/cloudbuild.connectionViewer"

```

IAM policy imports use the identifier of the resource in question, e.g.

```sh

$ pulumi import gcp:cloudbuildv2/connectionIAMMember:ConnectionIAMMember editor projects/{{project}}/locations/{{location}}/connections/{{connection}}

```

-> **Custom Roles**If you're importing a IAM resource with a custom role, make sure to use the

full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.

func GetConnectionIAMMember added in v6.50.0

func GetConnectionIAMMember(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ConnectionIAMMemberState, opts ...pulumi.ResourceOption) (*ConnectionIAMMember, error)

GetConnectionIAMMember gets an existing ConnectionIAMMember resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewConnectionIAMMember added in v6.50.0

func NewConnectionIAMMember(ctx *pulumi.Context,
	name string, args *ConnectionIAMMemberArgs, opts ...pulumi.ResourceOption) (*ConnectionIAMMember, error)

NewConnectionIAMMember registers a new resource with the given unique name, arguments, and options.

func (*ConnectionIAMMember) ElementType added in v6.50.0

func (*ConnectionIAMMember) ElementType() reflect.Type

func (*ConnectionIAMMember) ToConnectionIAMMemberOutput added in v6.50.0

func (i *ConnectionIAMMember) ToConnectionIAMMemberOutput() ConnectionIAMMemberOutput

func (*ConnectionIAMMember) ToConnectionIAMMemberOutputWithContext added in v6.50.0

func (i *ConnectionIAMMember) ToConnectionIAMMemberOutputWithContext(ctx context.Context) ConnectionIAMMemberOutput

func (*ConnectionIAMMember) ToOutput added in v6.65.1

type ConnectionIAMMemberArgs added in v6.50.0

type ConnectionIAMMemberArgs struct {
	Condition ConnectionIAMMemberConditionPtrInput
	Location  pulumi.StringPtrInput
	Member    pulumi.StringInput
	// Used to find the parent resource to bind the IAM policy to
	Name pulumi.StringPtrInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
	//
	// * `member/members` - (Required) Identities that will be granted the privilege in `role`.
	//   Each entry can have one of the following values:
	// * **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
	// * **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
	// * **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
	// * **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
	// * **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
	// * **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
	// * **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
	// * **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
	// * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
	Project pulumi.StringPtrInput
	// The role that should be applied. Only one
	// `cloudbuildv2.ConnectionIAMBinding` can be used per role. Note that custom roles must be of the format
	// `[projects|organizations]/{parent-name}/roles/{role-name}`.
	Role pulumi.StringInput
}

The set of arguments for constructing a ConnectionIAMMember resource.

func (ConnectionIAMMemberArgs) ElementType added in v6.50.0

func (ConnectionIAMMemberArgs) ElementType() reflect.Type

type ConnectionIAMMemberArray added in v6.50.0

type ConnectionIAMMemberArray []ConnectionIAMMemberInput

func (ConnectionIAMMemberArray) ElementType added in v6.50.0

func (ConnectionIAMMemberArray) ElementType() reflect.Type

func (ConnectionIAMMemberArray) ToConnectionIAMMemberArrayOutput added in v6.50.0

func (i ConnectionIAMMemberArray) ToConnectionIAMMemberArrayOutput() ConnectionIAMMemberArrayOutput

func (ConnectionIAMMemberArray) ToConnectionIAMMemberArrayOutputWithContext added in v6.50.0

func (i ConnectionIAMMemberArray) ToConnectionIAMMemberArrayOutputWithContext(ctx context.Context) ConnectionIAMMemberArrayOutput

func (ConnectionIAMMemberArray) ToOutput added in v6.65.1

type ConnectionIAMMemberArrayInput added in v6.50.0

type ConnectionIAMMemberArrayInput interface {
	pulumi.Input

	ToConnectionIAMMemberArrayOutput() ConnectionIAMMemberArrayOutput
	ToConnectionIAMMemberArrayOutputWithContext(context.Context) ConnectionIAMMemberArrayOutput
}

ConnectionIAMMemberArrayInput is an input type that accepts ConnectionIAMMemberArray and ConnectionIAMMemberArrayOutput values. You can construct a concrete instance of `ConnectionIAMMemberArrayInput` via:

ConnectionIAMMemberArray{ ConnectionIAMMemberArgs{...} }

type ConnectionIAMMemberArrayOutput added in v6.50.0

type ConnectionIAMMemberArrayOutput struct{ *pulumi.OutputState }

func (ConnectionIAMMemberArrayOutput) ElementType added in v6.50.0

func (ConnectionIAMMemberArrayOutput) Index added in v6.50.0

func (ConnectionIAMMemberArrayOutput) ToConnectionIAMMemberArrayOutput added in v6.50.0

func (o ConnectionIAMMemberArrayOutput) ToConnectionIAMMemberArrayOutput() ConnectionIAMMemberArrayOutput

func (ConnectionIAMMemberArrayOutput) ToConnectionIAMMemberArrayOutputWithContext added in v6.50.0

func (o ConnectionIAMMemberArrayOutput) ToConnectionIAMMemberArrayOutputWithContext(ctx context.Context) ConnectionIAMMemberArrayOutput

func (ConnectionIAMMemberArrayOutput) ToOutput added in v6.65.1

type ConnectionIAMMemberCondition added in v6.50.0

type ConnectionIAMMemberCondition struct {
	Description *string `pulumi:"description"`
	Expression  string  `pulumi:"expression"`
	Title       string  `pulumi:"title"`
}

type ConnectionIAMMemberConditionArgs added in v6.50.0

type ConnectionIAMMemberConditionArgs struct {
	Description pulumi.StringPtrInput `pulumi:"description"`
	Expression  pulumi.StringInput    `pulumi:"expression"`
	Title       pulumi.StringInput    `pulumi:"title"`
}

func (ConnectionIAMMemberConditionArgs) ElementType added in v6.50.0

func (ConnectionIAMMemberConditionArgs) ToConnectionIAMMemberConditionOutput added in v6.50.0

func (i ConnectionIAMMemberConditionArgs) ToConnectionIAMMemberConditionOutput() ConnectionIAMMemberConditionOutput

func (ConnectionIAMMemberConditionArgs) ToConnectionIAMMemberConditionOutputWithContext added in v6.50.0

func (i ConnectionIAMMemberConditionArgs) ToConnectionIAMMemberConditionOutputWithContext(ctx context.Context) ConnectionIAMMemberConditionOutput

func (ConnectionIAMMemberConditionArgs) ToConnectionIAMMemberConditionPtrOutput added in v6.50.0

func (i ConnectionIAMMemberConditionArgs) ToConnectionIAMMemberConditionPtrOutput() ConnectionIAMMemberConditionPtrOutput

func (ConnectionIAMMemberConditionArgs) ToConnectionIAMMemberConditionPtrOutputWithContext added in v6.50.0

func (i ConnectionIAMMemberConditionArgs) ToConnectionIAMMemberConditionPtrOutputWithContext(ctx context.Context) ConnectionIAMMemberConditionPtrOutput

func (ConnectionIAMMemberConditionArgs) ToOutput added in v6.65.1

type ConnectionIAMMemberConditionInput added in v6.50.0

type ConnectionIAMMemberConditionInput interface {
	pulumi.Input

	ToConnectionIAMMemberConditionOutput() ConnectionIAMMemberConditionOutput
	ToConnectionIAMMemberConditionOutputWithContext(context.Context) ConnectionIAMMemberConditionOutput
}

ConnectionIAMMemberConditionInput is an input type that accepts ConnectionIAMMemberConditionArgs and ConnectionIAMMemberConditionOutput values. You can construct a concrete instance of `ConnectionIAMMemberConditionInput` via:

ConnectionIAMMemberConditionArgs{...}

type ConnectionIAMMemberConditionOutput added in v6.50.0

type ConnectionIAMMemberConditionOutput struct{ *pulumi.OutputState }

func (ConnectionIAMMemberConditionOutput) Description added in v6.50.0

func (ConnectionIAMMemberConditionOutput) ElementType added in v6.50.0

func (ConnectionIAMMemberConditionOutput) Expression added in v6.50.0

func (ConnectionIAMMemberConditionOutput) Title added in v6.50.0

func (ConnectionIAMMemberConditionOutput) ToConnectionIAMMemberConditionOutput added in v6.50.0

func (o ConnectionIAMMemberConditionOutput) ToConnectionIAMMemberConditionOutput() ConnectionIAMMemberConditionOutput

func (ConnectionIAMMemberConditionOutput) ToConnectionIAMMemberConditionOutputWithContext added in v6.50.0

func (o ConnectionIAMMemberConditionOutput) ToConnectionIAMMemberConditionOutputWithContext(ctx context.Context) ConnectionIAMMemberConditionOutput

func (ConnectionIAMMemberConditionOutput) ToConnectionIAMMemberConditionPtrOutput added in v6.50.0

func (o ConnectionIAMMemberConditionOutput) ToConnectionIAMMemberConditionPtrOutput() ConnectionIAMMemberConditionPtrOutput

func (ConnectionIAMMemberConditionOutput) ToConnectionIAMMemberConditionPtrOutputWithContext added in v6.50.0

func (o ConnectionIAMMemberConditionOutput) ToConnectionIAMMemberConditionPtrOutputWithContext(ctx context.Context) ConnectionIAMMemberConditionPtrOutput

func (ConnectionIAMMemberConditionOutput) ToOutput added in v6.65.1

type ConnectionIAMMemberConditionPtrInput added in v6.50.0

type ConnectionIAMMemberConditionPtrInput interface {
	pulumi.Input

	ToConnectionIAMMemberConditionPtrOutput() ConnectionIAMMemberConditionPtrOutput
	ToConnectionIAMMemberConditionPtrOutputWithContext(context.Context) ConnectionIAMMemberConditionPtrOutput
}

ConnectionIAMMemberConditionPtrInput is an input type that accepts ConnectionIAMMemberConditionArgs, ConnectionIAMMemberConditionPtr and ConnectionIAMMemberConditionPtrOutput values. You can construct a concrete instance of `ConnectionIAMMemberConditionPtrInput` via:

        ConnectionIAMMemberConditionArgs{...}

or:

        nil

func ConnectionIAMMemberConditionPtr added in v6.50.0

type ConnectionIAMMemberConditionPtrOutput added in v6.50.0

type ConnectionIAMMemberConditionPtrOutput struct{ *pulumi.OutputState }

func (ConnectionIAMMemberConditionPtrOutput) Description added in v6.50.0

func (ConnectionIAMMemberConditionPtrOutput) Elem added in v6.50.0

func (ConnectionIAMMemberConditionPtrOutput) ElementType added in v6.50.0

func (ConnectionIAMMemberConditionPtrOutput) Expression added in v6.50.0

func (ConnectionIAMMemberConditionPtrOutput) Title added in v6.50.0

func (ConnectionIAMMemberConditionPtrOutput) ToConnectionIAMMemberConditionPtrOutput added in v6.50.0

func (o ConnectionIAMMemberConditionPtrOutput) ToConnectionIAMMemberConditionPtrOutput() ConnectionIAMMemberConditionPtrOutput

func (ConnectionIAMMemberConditionPtrOutput) ToConnectionIAMMemberConditionPtrOutputWithContext added in v6.50.0

func (o ConnectionIAMMemberConditionPtrOutput) ToConnectionIAMMemberConditionPtrOutputWithContext(ctx context.Context) ConnectionIAMMemberConditionPtrOutput

func (ConnectionIAMMemberConditionPtrOutput) ToOutput added in v6.65.1

type ConnectionIAMMemberInput added in v6.50.0

type ConnectionIAMMemberInput interface {
	pulumi.Input

	ToConnectionIAMMemberOutput() ConnectionIAMMemberOutput
	ToConnectionIAMMemberOutputWithContext(ctx context.Context) ConnectionIAMMemberOutput
}

type ConnectionIAMMemberMap added in v6.50.0

type ConnectionIAMMemberMap map[string]ConnectionIAMMemberInput

func (ConnectionIAMMemberMap) ElementType added in v6.50.0

func (ConnectionIAMMemberMap) ElementType() reflect.Type

func (ConnectionIAMMemberMap) ToConnectionIAMMemberMapOutput added in v6.50.0

func (i ConnectionIAMMemberMap) ToConnectionIAMMemberMapOutput() ConnectionIAMMemberMapOutput

func (ConnectionIAMMemberMap) ToConnectionIAMMemberMapOutputWithContext added in v6.50.0

func (i ConnectionIAMMemberMap) ToConnectionIAMMemberMapOutputWithContext(ctx context.Context) ConnectionIAMMemberMapOutput

func (ConnectionIAMMemberMap) ToOutput added in v6.65.1

type ConnectionIAMMemberMapInput added in v6.50.0

type ConnectionIAMMemberMapInput interface {
	pulumi.Input

	ToConnectionIAMMemberMapOutput() ConnectionIAMMemberMapOutput
	ToConnectionIAMMemberMapOutputWithContext(context.Context) ConnectionIAMMemberMapOutput
}

ConnectionIAMMemberMapInput is an input type that accepts ConnectionIAMMemberMap and ConnectionIAMMemberMapOutput values. You can construct a concrete instance of `ConnectionIAMMemberMapInput` via:

ConnectionIAMMemberMap{ "key": ConnectionIAMMemberArgs{...} }

type ConnectionIAMMemberMapOutput added in v6.50.0

type ConnectionIAMMemberMapOutput struct{ *pulumi.OutputState }

func (ConnectionIAMMemberMapOutput) ElementType added in v6.50.0

func (ConnectionIAMMemberMapOutput) MapIndex added in v6.50.0

func (ConnectionIAMMemberMapOutput) ToConnectionIAMMemberMapOutput added in v6.50.0

func (o ConnectionIAMMemberMapOutput) ToConnectionIAMMemberMapOutput() ConnectionIAMMemberMapOutput

func (ConnectionIAMMemberMapOutput) ToConnectionIAMMemberMapOutputWithContext added in v6.50.0

func (o ConnectionIAMMemberMapOutput) ToConnectionIAMMemberMapOutputWithContext(ctx context.Context) ConnectionIAMMemberMapOutput

func (ConnectionIAMMemberMapOutput) ToOutput added in v6.65.1

type ConnectionIAMMemberOutput added in v6.50.0

type ConnectionIAMMemberOutput struct{ *pulumi.OutputState }

func (ConnectionIAMMemberOutput) Condition added in v6.50.0

func (ConnectionIAMMemberOutput) ElementType added in v6.50.0

func (ConnectionIAMMemberOutput) ElementType() reflect.Type

func (ConnectionIAMMemberOutput) Etag added in v6.50.0

(Computed) The etag of the IAM policy.

func (ConnectionIAMMemberOutput) Location added in v6.50.0

func (ConnectionIAMMemberOutput) Member added in v6.50.0

func (ConnectionIAMMemberOutput) Name added in v6.50.0

Used to find the parent resource to bind the IAM policy to

func (ConnectionIAMMemberOutput) Project added in v6.50.0

The ID of the project in which the resource belongs. If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.

  • `member/members` - (Required) Identities that will be granted the privilege in `role`. Each entry can have one of the following values:
  • **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
  • **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
  • **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
  • **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
  • **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
  • **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
  • **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
  • **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
  • **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"

func (ConnectionIAMMemberOutput) Role added in v6.50.0

The role that should be applied. Only one `cloudbuildv2.ConnectionIAMBinding` can be used per role. Note that custom roles must be of the format `[projects|organizations]/{parent-name}/roles/{role-name}`.

func (ConnectionIAMMemberOutput) ToConnectionIAMMemberOutput added in v6.50.0

func (o ConnectionIAMMemberOutput) ToConnectionIAMMemberOutput() ConnectionIAMMemberOutput

func (ConnectionIAMMemberOutput) ToConnectionIAMMemberOutputWithContext added in v6.50.0

func (o ConnectionIAMMemberOutput) ToConnectionIAMMemberOutputWithContext(ctx context.Context) ConnectionIAMMemberOutput

func (ConnectionIAMMemberOutput) ToOutput added in v6.65.1

type ConnectionIAMMemberState added in v6.50.0

type ConnectionIAMMemberState struct {
	Condition ConnectionIAMMemberConditionPtrInput
	// (Computed) The etag of the IAM policy.
	Etag     pulumi.StringPtrInput
	Location pulumi.StringPtrInput
	Member   pulumi.StringPtrInput
	// Used to find the parent resource to bind the IAM policy to
	Name pulumi.StringPtrInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
	//
	// * `member/members` - (Required) Identities that will be granted the privilege in `role`.
	//   Each entry can have one of the following values:
	// * **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
	// * **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
	// * **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
	// * **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
	// * **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
	// * **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
	// * **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
	// * **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
	// * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
	Project pulumi.StringPtrInput
	// The role that should be applied. Only one
	// `cloudbuildv2.ConnectionIAMBinding` can be used per role. Note that custom roles must be of the format
	// `[projects|organizations]/{parent-name}/roles/{role-name}`.
	Role pulumi.StringPtrInput
}

func (ConnectionIAMMemberState) ElementType added in v6.50.0

func (ConnectionIAMMemberState) ElementType() reflect.Type

type ConnectionIAMPolicy added in v6.50.0

type ConnectionIAMPolicy struct {
	pulumi.CustomResourceState

	// (Computed) The etag of the IAM policy.
	Etag     pulumi.StringOutput `pulumi:"etag"`
	Location pulumi.StringOutput `pulumi:"location"`
	// Used to find the parent resource to bind the IAM policy to
	Name pulumi.StringOutput `pulumi:"name"`
	// The policy data generated by
	// a `organizations.getIAMPolicy` data source.
	PolicyData pulumi.StringOutput `pulumi:"policyData"`
	// The ID of the project in which the resource belongs.
	// If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
	//
	// * `member/members` - (Required) Identities that will be granted the privilege in `role`.
	//   Each entry can have one of the following values:
	// * **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
	// * **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
	// * **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
	// * **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
	// * **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
	// * **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
	// * **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
	// * **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
	// * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
	Project pulumi.StringOutput `pulumi:"project"`
}

Three different resources help you manage your IAM policy for Cloud Build v2 Connection. Each of these resources serves a different use case:

* `cloudbuildv2.ConnectionIAMPolicy`: Authoritative. Sets the IAM policy for the connection and replaces any existing policy already attached. * `cloudbuildv2.ConnectionIAMBinding`: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the connection are preserved. * `cloudbuildv2.ConnectionIAMMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the connection are preserved.

A data source can be used to retrieve policy data in advent you do not need creation

* `cloudbuildv2.ConnectionIAMPolicy`: Retrieves the IAM policy for the connection

> **Note:** `cloudbuildv2.ConnectionIAMPolicy` **cannot** be used in conjunction with `cloudbuildv2.ConnectionIAMBinding` and `cloudbuildv2.ConnectionIAMMember` or they will fight over what your policy should be.

> **Note:** `cloudbuildv2.ConnectionIAMBinding` resources **can be** used in conjunction with `cloudbuildv2.ConnectionIAMMember` resources **only if** they do not grant privilege to the same role.

## google\_cloudbuildv2\_connection\_iam\_policy

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudbuildv2"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/organizations"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		admin, err := organizations.LookupIAMPolicy(ctx, &organizations.LookupIAMPolicyArgs{
			Bindings: []organizations.GetIAMPolicyBinding{
				{
					Role: "roles/cloudbuild.connectionViewer",
					Members: []string{
						"user:jane@example.com",
					},
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		_, err = cloudbuildv2.NewConnectionIAMPolicy(ctx, "policy", &cloudbuildv2.ConnectionIAMPolicyArgs{
			Project:    pulumi.Any(google_cloudbuildv2_connection.MyConnection.Project),
			Location:   pulumi.Any(google_cloudbuildv2_connection.MyConnection.Location),
			PolicyData: *pulumi.String(admin.PolicyData),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## google\_cloudbuildv2\_connection\_iam\_binding

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudbuildv2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudbuildv2.NewConnectionIAMBinding(ctx, "binding", &cloudbuildv2.ConnectionIAMBindingArgs{
			Project:  pulumi.Any(google_cloudbuildv2_connection.MyConnection.Project),
			Location: pulumi.Any(google_cloudbuildv2_connection.MyConnection.Location),
			Role:     pulumi.String("roles/cloudbuild.connectionViewer"),
			Members: pulumi.StringArray{
				pulumi.String("user:jane@example.com"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## google\_cloudbuildv2\_connection\_iam\_member

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudbuildv2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudbuildv2.NewConnectionIAMMember(ctx, "member", &cloudbuildv2.ConnectionIAMMemberArgs{
			Project:  pulumi.Any(google_cloudbuildv2_connection.MyConnection.Project),
			Location: pulumi.Any(google_cloudbuildv2_connection.MyConnection.Location),
			Role:     pulumi.String("roles/cloudbuild.connectionViewer"),
			Member:   pulumi.String("user:jane@example.com"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

For all import syntaxes, the "resource in question" can take any of the following forms* projects/{{project}}/locations/{{location}}/connections/{{name}} * {{project}}/{{location}}/{{name}} * {{location}}/{{name}} * {{name}} Any variables not passed in the import command will be taken from the provider configuration. Cloud Build v2 connection IAM resources can be imported using the resource identifiers, role, and member. IAM member imports use space-delimited identifiersthe resource in question, the role, and the member identity, e.g.

```sh

$ pulumi import gcp:cloudbuildv2/connectionIAMPolicy:ConnectionIAMPolicy editor "projects/{{project}}/locations/{{location}}/connections/{{connection}} roles/cloudbuild.connectionViewer user:jane@example.com"

```

IAM binding imports use space-delimited identifiersthe resource in question and the role, e.g.

```sh

$ pulumi import gcp:cloudbuildv2/connectionIAMPolicy:ConnectionIAMPolicy editor "projects/{{project}}/locations/{{location}}/connections/{{connection}} roles/cloudbuild.connectionViewer"

```

IAM policy imports use the identifier of the resource in question, e.g.

```sh

$ pulumi import gcp:cloudbuildv2/connectionIAMPolicy:ConnectionIAMPolicy editor projects/{{project}}/locations/{{location}}/connections/{{connection}}

```

-> **Custom Roles**If you're importing a IAM resource with a custom role, make sure to use the

full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.

func GetConnectionIAMPolicy added in v6.50.0

func GetConnectionIAMPolicy(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ConnectionIAMPolicyState, opts ...pulumi.ResourceOption) (*ConnectionIAMPolicy, error)

GetConnectionIAMPolicy gets an existing ConnectionIAMPolicy resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewConnectionIAMPolicy added in v6.50.0

func NewConnectionIAMPolicy(ctx *pulumi.Context,
	name string, args *ConnectionIAMPolicyArgs, opts ...pulumi.ResourceOption) (*ConnectionIAMPolicy, error)

NewConnectionIAMPolicy registers a new resource with the given unique name, arguments, and options.

func (*ConnectionIAMPolicy) ElementType added in v6.50.0

func (*ConnectionIAMPolicy) ElementType() reflect.Type

func (*ConnectionIAMPolicy) ToConnectionIAMPolicyOutput added in v6.50.0

func (i *ConnectionIAMPolicy) ToConnectionIAMPolicyOutput() ConnectionIAMPolicyOutput

func (*ConnectionIAMPolicy) ToConnectionIAMPolicyOutputWithContext added in v6.50.0

func (i *ConnectionIAMPolicy) ToConnectionIAMPolicyOutputWithContext(ctx context.Context) ConnectionIAMPolicyOutput

func (*ConnectionIAMPolicy) ToOutput added in v6.65.1

type ConnectionIAMPolicyArgs added in v6.50.0

type ConnectionIAMPolicyArgs struct {
	Location pulumi.StringPtrInput
	// Used to find the parent resource to bind the IAM policy to
	Name pulumi.StringPtrInput
	// The policy data generated by
	// a `organizations.getIAMPolicy` data source.
	PolicyData pulumi.StringInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
	//
	// * `member/members` - (Required) Identities that will be granted the privilege in `role`.
	//   Each entry can have one of the following values:
	// * **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
	// * **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
	// * **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
	// * **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
	// * **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
	// * **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
	// * **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
	// * **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
	// * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
	Project pulumi.StringPtrInput
}

The set of arguments for constructing a ConnectionIAMPolicy resource.

func (ConnectionIAMPolicyArgs) ElementType added in v6.50.0

func (ConnectionIAMPolicyArgs) ElementType() reflect.Type

type ConnectionIAMPolicyArray added in v6.50.0

type ConnectionIAMPolicyArray []ConnectionIAMPolicyInput

func (ConnectionIAMPolicyArray) ElementType added in v6.50.0

func (ConnectionIAMPolicyArray) ElementType() reflect.Type

func (ConnectionIAMPolicyArray) ToConnectionIAMPolicyArrayOutput added in v6.50.0

func (i ConnectionIAMPolicyArray) ToConnectionIAMPolicyArrayOutput() ConnectionIAMPolicyArrayOutput

func (ConnectionIAMPolicyArray) ToConnectionIAMPolicyArrayOutputWithContext added in v6.50.0

func (i ConnectionIAMPolicyArray) ToConnectionIAMPolicyArrayOutputWithContext(ctx context.Context) ConnectionIAMPolicyArrayOutput

func (ConnectionIAMPolicyArray) ToOutput added in v6.65.1

type ConnectionIAMPolicyArrayInput added in v6.50.0

type ConnectionIAMPolicyArrayInput interface {
	pulumi.Input

	ToConnectionIAMPolicyArrayOutput() ConnectionIAMPolicyArrayOutput
	ToConnectionIAMPolicyArrayOutputWithContext(context.Context) ConnectionIAMPolicyArrayOutput
}

ConnectionIAMPolicyArrayInput is an input type that accepts ConnectionIAMPolicyArray and ConnectionIAMPolicyArrayOutput values. You can construct a concrete instance of `ConnectionIAMPolicyArrayInput` via:

ConnectionIAMPolicyArray{ ConnectionIAMPolicyArgs{...} }

type ConnectionIAMPolicyArrayOutput added in v6.50.0

type ConnectionIAMPolicyArrayOutput struct{ *pulumi.OutputState }

func (ConnectionIAMPolicyArrayOutput) ElementType added in v6.50.0

func (ConnectionIAMPolicyArrayOutput) Index added in v6.50.0

func (ConnectionIAMPolicyArrayOutput) ToConnectionIAMPolicyArrayOutput added in v6.50.0

func (o ConnectionIAMPolicyArrayOutput) ToConnectionIAMPolicyArrayOutput() ConnectionIAMPolicyArrayOutput

func (ConnectionIAMPolicyArrayOutput) ToConnectionIAMPolicyArrayOutputWithContext added in v6.50.0

func (o ConnectionIAMPolicyArrayOutput) ToConnectionIAMPolicyArrayOutputWithContext(ctx context.Context) ConnectionIAMPolicyArrayOutput

func (ConnectionIAMPolicyArrayOutput) ToOutput added in v6.65.1

type ConnectionIAMPolicyInput added in v6.50.0

type ConnectionIAMPolicyInput interface {
	pulumi.Input

	ToConnectionIAMPolicyOutput() ConnectionIAMPolicyOutput
	ToConnectionIAMPolicyOutputWithContext(ctx context.Context) ConnectionIAMPolicyOutput
}

type ConnectionIAMPolicyMap added in v6.50.0

type ConnectionIAMPolicyMap map[string]ConnectionIAMPolicyInput

func (ConnectionIAMPolicyMap) ElementType added in v6.50.0

func (ConnectionIAMPolicyMap) ElementType() reflect.Type

func (ConnectionIAMPolicyMap) ToConnectionIAMPolicyMapOutput added in v6.50.0

func (i ConnectionIAMPolicyMap) ToConnectionIAMPolicyMapOutput() ConnectionIAMPolicyMapOutput

func (ConnectionIAMPolicyMap) ToConnectionIAMPolicyMapOutputWithContext added in v6.50.0

func (i ConnectionIAMPolicyMap) ToConnectionIAMPolicyMapOutputWithContext(ctx context.Context) ConnectionIAMPolicyMapOutput

func (ConnectionIAMPolicyMap) ToOutput added in v6.65.1

type ConnectionIAMPolicyMapInput added in v6.50.0

type ConnectionIAMPolicyMapInput interface {
	pulumi.Input

	ToConnectionIAMPolicyMapOutput() ConnectionIAMPolicyMapOutput
	ToConnectionIAMPolicyMapOutputWithContext(context.Context) ConnectionIAMPolicyMapOutput
}

ConnectionIAMPolicyMapInput is an input type that accepts ConnectionIAMPolicyMap and ConnectionIAMPolicyMapOutput values. You can construct a concrete instance of `ConnectionIAMPolicyMapInput` via:

ConnectionIAMPolicyMap{ "key": ConnectionIAMPolicyArgs{...} }

type ConnectionIAMPolicyMapOutput added in v6.50.0

type ConnectionIAMPolicyMapOutput struct{ *pulumi.OutputState }

func (ConnectionIAMPolicyMapOutput) ElementType added in v6.50.0

func (ConnectionIAMPolicyMapOutput) MapIndex added in v6.50.0

func (ConnectionIAMPolicyMapOutput) ToConnectionIAMPolicyMapOutput added in v6.50.0

func (o ConnectionIAMPolicyMapOutput) ToConnectionIAMPolicyMapOutput() ConnectionIAMPolicyMapOutput

func (ConnectionIAMPolicyMapOutput) ToConnectionIAMPolicyMapOutputWithContext added in v6.50.0

func (o ConnectionIAMPolicyMapOutput) ToConnectionIAMPolicyMapOutputWithContext(ctx context.Context) ConnectionIAMPolicyMapOutput

func (ConnectionIAMPolicyMapOutput) ToOutput added in v6.65.1

type ConnectionIAMPolicyOutput added in v6.50.0

type ConnectionIAMPolicyOutput struct{ *pulumi.OutputState }

func (ConnectionIAMPolicyOutput) ElementType added in v6.50.0

func (ConnectionIAMPolicyOutput) ElementType() reflect.Type

func (ConnectionIAMPolicyOutput) Etag added in v6.50.0

(Computed) The etag of the IAM policy.

func (ConnectionIAMPolicyOutput) Location added in v6.50.0

func (ConnectionIAMPolicyOutput) Name added in v6.50.0

Used to find the parent resource to bind the IAM policy to

func (ConnectionIAMPolicyOutput) PolicyData added in v6.50.0

The policy data generated by a `organizations.getIAMPolicy` data source.

func (ConnectionIAMPolicyOutput) Project added in v6.50.0

The ID of the project in which the resource belongs. If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.

  • `member/members` - (Required) Identities that will be granted the privilege in `role`. Each entry can have one of the following values:
  • **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
  • **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
  • **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
  • **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
  • **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
  • **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
  • **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
  • **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
  • **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"

func (ConnectionIAMPolicyOutput) ToConnectionIAMPolicyOutput added in v6.50.0

func (o ConnectionIAMPolicyOutput) ToConnectionIAMPolicyOutput() ConnectionIAMPolicyOutput

func (ConnectionIAMPolicyOutput) ToConnectionIAMPolicyOutputWithContext added in v6.50.0

func (o ConnectionIAMPolicyOutput) ToConnectionIAMPolicyOutputWithContext(ctx context.Context) ConnectionIAMPolicyOutput

func (ConnectionIAMPolicyOutput) ToOutput added in v6.65.1

type ConnectionIAMPolicyState added in v6.50.0

type ConnectionIAMPolicyState struct {
	// (Computed) The etag of the IAM policy.
	Etag     pulumi.StringPtrInput
	Location pulumi.StringPtrInput
	// Used to find the parent resource to bind the IAM policy to
	Name pulumi.StringPtrInput
	// The policy data generated by
	// a `organizations.getIAMPolicy` data source.
	PolicyData pulumi.StringPtrInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
	//
	// * `member/members` - (Required) Identities that will be granted the privilege in `role`.
	//   Each entry can have one of the following values:
	// * **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
	// * **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
	// * **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
	// * **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
	// * **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
	// * **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
	// * **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
	// * **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
	// * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
	Project pulumi.StringPtrInput
}

func (ConnectionIAMPolicyState) ElementType added in v6.50.0

func (ConnectionIAMPolicyState) ElementType() reflect.Type

type ConnectionInput

type ConnectionInput interface {
	pulumi.Input

	ToConnectionOutput() ConnectionOutput
	ToConnectionOutputWithContext(ctx context.Context) ConnectionOutput
}

type ConnectionInstallationState

type ConnectionInstallationState struct {
	ActionUri *string `pulumi:"actionUri"`
	Message   *string `pulumi:"message"`
	Stage     *string `pulumi:"stage"`
}

type ConnectionInstallationStateArgs

type ConnectionInstallationStateArgs struct {
	ActionUri pulumi.StringPtrInput `pulumi:"actionUri"`
	Message   pulumi.StringPtrInput `pulumi:"message"`
	Stage     pulumi.StringPtrInput `pulumi:"stage"`
}

func (ConnectionInstallationStateArgs) ElementType

func (ConnectionInstallationStateArgs) ToConnectionInstallationStateOutput

func (i ConnectionInstallationStateArgs) ToConnectionInstallationStateOutput() ConnectionInstallationStateOutput

func (ConnectionInstallationStateArgs) ToConnectionInstallationStateOutputWithContext

func (i ConnectionInstallationStateArgs) ToConnectionInstallationStateOutputWithContext(ctx context.Context) ConnectionInstallationStateOutput

func (ConnectionInstallationStateArgs) ToOutput added in v6.65.1

type ConnectionInstallationStateArray

type ConnectionInstallationStateArray []ConnectionInstallationStateInput

func (ConnectionInstallationStateArray) ElementType

func (ConnectionInstallationStateArray) ToConnectionInstallationStateArrayOutput

func (i ConnectionInstallationStateArray) ToConnectionInstallationStateArrayOutput() ConnectionInstallationStateArrayOutput

func (ConnectionInstallationStateArray) ToConnectionInstallationStateArrayOutputWithContext

func (i ConnectionInstallationStateArray) ToConnectionInstallationStateArrayOutputWithContext(ctx context.Context) ConnectionInstallationStateArrayOutput

func (ConnectionInstallationStateArray) ToOutput added in v6.65.1

type ConnectionInstallationStateArrayInput

type ConnectionInstallationStateArrayInput interface {
	pulumi.Input

	ToConnectionInstallationStateArrayOutput() ConnectionInstallationStateArrayOutput
	ToConnectionInstallationStateArrayOutputWithContext(context.Context) ConnectionInstallationStateArrayOutput
}

ConnectionInstallationStateArrayInput is an input type that accepts ConnectionInstallationStateArray and ConnectionInstallationStateArrayOutput values. You can construct a concrete instance of `ConnectionInstallationStateArrayInput` via:

ConnectionInstallationStateArray{ ConnectionInstallationStateArgs{...} }

type ConnectionInstallationStateArrayOutput

type ConnectionInstallationStateArrayOutput struct{ *pulumi.OutputState }

func (ConnectionInstallationStateArrayOutput) ElementType

func (ConnectionInstallationStateArrayOutput) Index

func (ConnectionInstallationStateArrayOutput) ToConnectionInstallationStateArrayOutput

func (o ConnectionInstallationStateArrayOutput) ToConnectionInstallationStateArrayOutput() ConnectionInstallationStateArrayOutput

func (ConnectionInstallationStateArrayOutput) ToConnectionInstallationStateArrayOutputWithContext

func (o ConnectionInstallationStateArrayOutput) ToConnectionInstallationStateArrayOutputWithContext(ctx context.Context) ConnectionInstallationStateArrayOutput

func (ConnectionInstallationStateArrayOutput) ToOutput added in v6.65.1

type ConnectionInstallationStateInput

type ConnectionInstallationStateInput interface {
	pulumi.Input

	ToConnectionInstallationStateOutput() ConnectionInstallationStateOutput
	ToConnectionInstallationStateOutputWithContext(context.Context) ConnectionInstallationStateOutput
}

ConnectionInstallationStateInput is an input type that accepts ConnectionInstallationStateArgs and ConnectionInstallationStateOutput values. You can construct a concrete instance of `ConnectionInstallationStateInput` via:

ConnectionInstallationStateArgs{...}

type ConnectionInstallationStateOutput

type ConnectionInstallationStateOutput struct{ *pulumi.OutputState }

func (ConnectionInstallationStateOutput) ActionUri

func (ConnectionInstallationStateOutput) ElementType

func (ConnectionInstallationStateOutput) Message

func (ConnectionInstallationStateOutput) Stage

func (ConnectionInstallationStateOutput) ToConnectionInstallationStateOutput

func (o ConnectionInstallationStateOutput) ToConnectionInstallationStateOutput() ConnectionInstallationStateOutput

func (ConnectionInstallationStateOutput) ToConnectionInstallationStateOutputWithContext

func (o ConnectionInstallationStateOutput) ToConnectionInstallationStateOutputWithContext(ctx context.Context) ConnectionInstallationStateOutput

func (ConnectionInstallationStateOutput) ToOutput added in v6.65.1

type ConnectionMap

type ConnectionMap map[string]ConnectionInput

func (ConnectionMap) ElementType

func (ConnectionMap) ElementType() reflect.Type

func (ConnectionMap) ToConnectionMapOutput

func (i ConnectionMap) ToConnectionMapOutput() ConnectionMapOutput

func (ConnectionMap) ToConnectionMapOutputWithContext

func (i ConnectionMap) ToConnectionMapOutputWithContext(ctx context.Context) ConnectionMapOutput

func (ConnectionMap) ToOutput added in v6.65.1

type ConnectionMapInput

type ConnectionMapInput interface {
	pulumi.Input

	ToConnectionMapOutput() ConnectionMapOutput
	ToConnectionMapOutputWithContext(context.Context) ConnectionMapOutput
}

ConnectionMapInput is an input type that accepts ConnectionMap and ConnectionMapOutput values. You can construct a concrete instance of `ConnectionMapInput` via:

ConnectionMap{ "key": ConnectionArgs{...} }

type ConnectionMapOutput

type ConnectionMapOutput struct{ *pulumi.OutputState }

func (ConnectionMapOutput) ElementType

func (ConnectionMapOutput) ElementType() reflect.Type

func (ConnectionMapOutput) MapIndex

func (ConnectionMapOutput) ToConnectionMapOutput

func (o ConnectionMapOutput) ToConnectionMapOutput() ConnectionMapOutput

func (ConnectionMapOutput) ToConnectionMapOutputWithContext

func (o ConnectionMapOutput) ToConnectionMapOutputWithContext(ctx context.Context) ConnectionMapOutput

func (ConnectionMapOutput) ToOutput added in v6.65.1

type ConnectionOutput

type ConnectionOutput struct{ *pulumi.OutputState }

func (ConnectionOutput) Annotations

func (o ConnectionOutput) Annotations() pulumi.StringMapOutput

Allows clients to store small amounts of arbitrary data.

func (ConnectionOutput) CreateTime

func (o ConnectionOutput) CreateTime() pulumi.StringOutput

Output only. Server assigned timestamp for when the connection was created.

func (ConnectionOutput) Disabled

func (o ConnectionOutput) Disabled() pulumi.BoolPtrOutput

If disabled is set to true, functionality is disabled for this connection. Repository based API methods and webhooks processing for repositories in this connection will be disabled.

func (ConnectionOutput) ElementType

func (ConnectionOutput) ElementType() reflect.Type

func (ConnectionOutput) Etag

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.

func (ConnectionOutput) GithubConfig

Configuration for connections to github.com.

func (ConnectionOutput) GithubEnterpriseConfig

Configuration for connections to an instance of GitHub Enterprise.

func (ConnectionOutput) GitlabConfig added in v6.60.0

Configuration for connections to gitlab.com or an instance of GitLab Enterprise.

func (ConnectionOutput) InstallationStates

Output only. Installation state of the Connection.

func (ConnectionOutput) Location

func (o ConnectionOutput) Location() pulumi.StringOutput

The location for the resource

func (ConnectionOutput) Name

Immutable. The resource name of the connection, in the format `projects/{project}/locations/{location}/connections/{connection_id}`.

func (ConnectionOutput) Project

func (o ConnectionOutput) Project() pulumi.StringOutput

The project for the resource

func (ConnectionOutput) Reconciling

func (o ConnectionOutput) Reconciling() pulumi.BoolOutput

Output only. Set to true when the connection is being set up or updated in the background.

func (ConnectionOutput) ToConnectionOutput

func (o ConnectionOutput) ToConnectionOutput() ConnectionOutput

func (ConnectionOutput) ToConnectionOutputWithContext

func (o ConnectionOutput) ToConnectionOutputWithContext(ctx context.Context) ConnectionOutput

func (ConnectionOutput) ToOutput added in v6.65.1

func (ConnectionOutput) UpdateTime

func (o ConnectionOutput) UpdateTime() pulumi.StringOutput

Output only. Server assigned timestamp for when the connection was updated.

type ConnectionState

type ConnectionState struct {
	// Allows clients to store small amounts of arbitrary data.
	Annotations pulumi.StringMapInput
	// Output only. Server assigned timestamp for when the connection was created.
	CreateTime pulumi.StringPtrInput
	// If disabled is set to true, functionality is disabled for this connection. Repository based API methods and webhooks processing for repositories in this connection will be disabled.
	Disabled pulumi.BoolPtrInput
	// 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.
	Etag pulumi.StringPtrInput
	// Configuration for connections to github.com.
	GithubConfig ConnectionGithubConfigPtrInput
	// Configuration for connections to an instance of GitHub Enterprise.
	GithubEnterpriseConfig ConnectionGithubEnterpriseConfigPtrInput
	// Configuration for connections to gitlab.com or an instance of GitLab Enterprise.
	GitlabConfig ConnectionGitlabConfigPtrInput
	// Output only. Installation state of the Connection.
	InstallationStates ConnectionInstallationStateArrayInput
	// The location for the resource
	Location pulumi.StringPtrInput
	// Immutable. The resource name of the connection, in the format `projects/{project}/locations/{location}/connections/{connection_id}`.
	Name pulumi.StringPtrInput
	// The project for the resource
	Project pulumi.StringPtrInput
	// Output only. Set to true when the connection is being set up or updated in the background.
	Reconciling pulumi.BoolPtrInput
	// Output only. Server assigned timestamp for when the connection was updated.
	UpdateTime pulumi.StringPtrInput
}

func (ConnectionState) ElementType

func (ConnectionState) ElementType() reflect.Type

type GetConnectionIamPolicyArgs added in v6.59.0

type GetConnectionIamPolicyArgs struct {
	Location *string `pulumi:"location"`
	// Used to find the parent resource to bind the IAM policy to
	Name string `pulumi:"name"`
	// The ID of the project in which the resource belongs.
	// If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
	Project *string `pulumi:"project"`
}

A collection of arguments for invoking getConnectionIamPolicy.

type GetConnectionIamPolicyOutputArgs added in v6.59.0

type GetConnectionIamPolicyOutputArgs struct {
	Location pulumi.StringPtrInput `pulumi:"location"`
	// Used to find the parent resource to bind the IAM policy to
	Name pulumi.StringInput `pulumi:"name"`
	// The ID of the project in which the resource belongs.
	// If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
	Project pulumi.StringPtrInput `pulumi:"project"`
}

A collection of arguments for invoking getConnectionIamPolicy.

func (GetConnectionIamPolicyOutputArgs) ElementType added in v6.59.0

type GetConnectionIamPolicyResult added in v6.59.0

type GetConnectionIamPolicyResult struct {
	// (Computed) The etag of the IAM policy.
	Etag string `pulumi:"etag"`
	// The provider-assigned unique ID for this managed resource.
	Id       string `pulumi:"id"`
	Location string `pulumi:"location"`
	Name     string `pulumi:"name"`
	// (Required only by `cloudbuildv2.ConnectionIAMPolicy`) The policy data generated by
	// a `organizations.getIAMPolicy` data source.
	PolicyData string `pulumi:"policyData"`
	Project    string `pulumi:"project"`
}

A collection of values returned by getConnectionIamPolicy.

func GetConnectionIamPolicy added in v6.59.0

func GetConnectionIamPolicy(ctx *pulumi.Context, args *GetConnectionIamPolicyArgs, opts ...pulumi.InvokeOption) (*GetConnectionIamPolicyResult, error)

Retrieves the current IAM policy data for connection

## example

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudbuildv2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudbuildv2.GetConnectionIamPolicy(ctx, &cloudbuildv2.GetConnectionIamPolicyArgs{
			Project:  pulumi.StringRef(google_cloudbuildv2_connection.MyConnection.Project),
			Location: pulumi.StringRef(google_cloudbuildv2_connection.MyConnection.Location),
			Name:     google_cloudbuildv2_connection.MyConnection.Name,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetConnectionIamPolicyResultOutput added in v6.59.0

type GetConnectionIamPolicyResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getConnectionIamPolicy.

func GetConnectionIamPolicyOutput added in v6.59.0

func (GetConnectionIamPolicyResultOutput) ElementType added in v6.59.0

func (GetConnectionIamPolicyResultOutput) Etag added in v6.59.0

(Computed) The etag of the IAM policy.

func (GetConnectionIamPolicyResultOutput) Id added in v6.59.0

The provider-assigned unique ID for this managed resource.

func (GetConnectionIamPolicyResultOutput) Location added in v6.59.0

func (GetConnectionIamPolicyResultOutput) Name added in v6.59.0

func (GetConnectionIamPolicyResultOutput) PolicyData added in v6.59.0

(Required only by `cloudbuildv2.ConnectionIAMPolicy`) The policy data generated by a `organizations.getIAMPolicy` data source.

func (GetConnectionIamPolicyResultOutput) Project added in v6.59.0

func (GetConnectionIamPolicyResultOutput) ToGetConnectionIamPolicyResultOutput added in v6.59.0

func (o GetConnectionIamPolicyResultOutput) ToGetConnectionIamPolicyResultOutput() GetConnectionIamPolicyResultOutput

func (GetConnectionIamPolicyResultOutput) ToGetConnectionIamPolicyResultOutputWithContext added in v6.59.0

func (o GetConnectionIamPolicyResultOutput) ToGetConnectionIamPolicyResultOutputWithContext(ctx context.Context) GetConnectionIamPolicyResultOutput

func (GetConnectionIamPolicyResultOutput) ToOutput added in v6.65.1

type Repository

type Repository struct {
	pulumi.CustomResourceState

	// Allows clients to store small amounts of arbitrary data.
	Annotations pulumi.StringMapOutput `pulumi:"annotations"`
	// Output only. Server assigned timestamp for when the connection was created.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// 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.
	Etag pulumi.StringOutput `pulumi:"etag"`
	// The location for the resource
	Location pulumi.StringOutput `pulumi:"location"`
	// Name of the repository.
	Name pulumi.StringOutput `pulumi:"name"`
	// The connection for the resource
	ParentConnection pulumi.StringOutput `pulumi:"parentConnection"`
	// The project for the resource
	Project pulumi.StringOutput `pulumi:"project"`
	// Required. Git Clone HTTPS URI.
	//
	// ***
	RemoteUri pulumi.StringOutput `pulumi:"remoteUri"`
	// Output only. Server assigned timestamp for when the connection was updated.
	UpdateTime pulumi.StringOutput `pulumi:"updateTime"`
}

The Cloudbuildv2 Repository resource

## Example Usage ### Ghe ```go package main

import (

"os"

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudbuildv2"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/organizations"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/secretmanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func readFileOrPanic(path string) pulumi.StringPtrInput {
	data, err := os.ReadFile(path)
	if err != nil {
		panic(err.Error())
	}
	return pulumi.String(string(data))
}

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := secretmanager.NewSecret(ctx, "private-key-secret", &secretmanager.SecretArgs{
			SecretId: pulumi.String("ghe-pk-secret"),
			Replication: &secretmanager.SecretReplicationArgs{
				Auto: nil,
			},
		})
		if err != nil {
			return err
		}
		_, err = secretmanager.NewSecretVersion(ctx, "private-key-secret-version", &secretmanager.SecretVersionArgs{
			Secret:     private_key_secret.ID(),
			SecretData: readFileOrPanic("private-key.pem"),
		})
		if err != nil {
			return err
		}
		_, err = secretmanager.NewSecret(ctx, "webhook-secret-secret", &secretmanager.SecretArgs{
			SecretId: pulumi.String("github-token-secret"),
			Replication: &secretmanager.SecretReplicationArgs{
				Auto: nil,
			},
		})
		if err != nil {
			return err
		}
		_, err = secretmanager.NewSecretVersion(ctx, "webhook-secret-secret-version", &secretmanager.SecretVersionArgs{
			Secret:     webhook_secret_secret.ID(),
			SecretData: pulumi.String("<webhook-secret-data>"),
		})
		if err != nil {
			return err
		}
		p4sa_secretAccessor, err := organizations.LookupIAMPolicy(ctx, &organizations.LookupIAMPolicyArgs{
			Bindings: []organizations.GetIAMPolicyBinding{
				{
					Role: "roles/secretmanager.secretAccessor",
					Members: []string{
						"serviceAccount:service-123456789@gcp-sa-cloudbuild.iam.gserviceaccount.com",
					},
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		_, err = secretmanager.NewSecretIamPolicy(ctx, "policy-pk", &secretmanager.SecretIamPolicyArgs{
			SecretId:   private_key_secret.SecretId,
			PolicyData: *pulumi.String(p4sa_secretAccessor.PolicyData),
		})
		if err != nil {
			return err
		}
		_, err = secretmanager.NewSecretIamPolicy(ctx, "policy-whs", &secretmanager.SecretIamPolicyArgs{
			SecretId:   webhook_secret_secret.SecretId,
			PolicyData: *pulumi.String(p4sa_secretAccessor.PolicyData),
		})
		if err != nil {
			return err
		}
		_, err = cloudbuildv2.NewConnection(ctx, "my-connection", &cloudbuildv2.ConnectionArgs{
			Location: pulumi.String("us-central1"),
			GithubEnterpriseConfig: &cloudbuildv2.ConnectionGithubEnterpriseConfigArgs{
				HostUri:                    pulumi.String("https://ghe.com"),
				PrivateKeySecretVersion:    private_key_secret_version.ID(),
				WebhookSecretSecretVersion: webhook_secret_secret_version.ID(),
				AppId:                      pulumi.Int(200),
				AppSlug:                    pulumi.String("gcb-app"),
				AppInstallationId:          pulumi.Int(300),
			},
		}, pulumi.DependsOn([]pulumi.Resource{
			policy_pk,
			policy_whs,
		}))
		if err != nil {
			return err
		}
		_, err = cloudbuildv2.NewRepository(ctx, "my-repository", &cloudbuildv2.RepositoryArgs{
			Location:         pulumi.String("us-central1"),
			ParentConnection: my_connection.ID(),
			RemoteUri:        pulumi.String("https://ghe.com/hashicorp/terraform-provider-google.git"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Repository In GitHub Connection Creates a Repository resource inside a Connection to github.com ```go package main

import (

"os"

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudbuildv2"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/organizations"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/secretmanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func readFileOrPanic(path string) pulumi.StringPtrInput {
	data, err := os.ReadFile(path)
	if err != nil {
		panic(err.Error())
	}
	return pulumi.String(string(data))
}

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := secretmanager.NewSecret(ctx, "github-token-secret", &secretmanager.SecretArgs{
			SecretId: pulumi.String("github-token-secret"),
			Replication: &secretmanager.SecretReplicationArgs{
				Auto: nil,
			},
		})
		if err != nil {
			return err
		}
		_, err = secretmanager.NewSecretVersion(ctx, "github-token-secret-version", &secretmanager.SecretVersionArgs{
			Secret:     github_token_secret.ID(),
			SecretData: readFileOrPanic("my-github-token.txt"),
		})
		if err != nil {
			return err
		}
		p4sa_secretAccessor, err := organizations.LookupIAMPolicy(ctx, &organizations.LookupIAMPolicyArgs{
			Bindings: []organizations.GetIAMPolicyBinding{
				{
					Role: "roles/secretmanager.secretAccessor",
					Members: []string{
						"serviceAccount:service-123456789@gcp-sa-cloudbuild.iam.gserviceaccount.com",
					},
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		_, err = secretmanager.NewSecretIamPolicy(ctx, "policy", &secretmanager.SecretIamPolicyArgs{
			SecretId:   github_token_secret.SecretId,
			PolicyData: *pulumi.String(p4sa_secretAccessor.PolicyData),
		})
		if err != nil {
			return err
		}
		_, err = cloudbuildv2.NewConnection(ctx, "my-connection", &cloudbuildv2.ConnectionArgs{
			Location: pulumi.String("us-west1"),
			GithubConfig: &cloudbuildv2.ConnectionGithubConfigArgs{
				AppInstallationId: pulumi.Int(123123),
				AuthorizerCredential: &cloudbuildv2.ConnectionGithubConfigAuthorizerCredentialArgs{
					OauthTokenSecretVersion: github_token_secret_version.ID(),
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = cloudbuildv2.NewRepository(ctx, "my-repository", &cloudbuildv2.RepositoryArgs{
			Location:         pulumi.String("us-west1"),
			ParentConnection: my_connection.Name,
			RemoteUri:        pulumi.String("https://github.com/myuser/myrepo.git"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Repository can be imported using any of these accepted formats

```sh

$ pulumi import gcp:cloudbuildv2/repository:Repository default projects/{{project}}/locations/{{location}}/connections/{{parent_connection}}/repositories/{{name}}

```

```sh

$ pulumi import gcp:cloudbuildv2/repository:Repository default {{project}}/{{location}}/{{parent_connection}}/{{name}}

```

```sh

$ pulumi import gcp:cloudbuildv2/repository:Repository default {{location}}/{{parent_connection}}/{{name}}

```

func GetRepository

func GetRepository(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RepositoryState, opts ...pulumi.ResourceOption) (*Repository, error)

GetRepository gets an existing Repository resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewRepository

func NewRepository(ctx *pulumi.Context,
	name string, args *RepositoryArgs, opts ...pulumi.ResourceOption) (*Repository, error)

NewRepository registers a new resource with the given unique name, arguments, and options.

func (*Repository) ElementType

func (*Repository) ElementType() reflect.Type

func (*Repository) ToOutput added in v6.65.1

func (i *Repository) ToOutput(ctx context.Context) pulumix.Output[*Repository]

func (*Repository) ToRepositoryOutput

func (i *Repository) ToRepositoryOutput() RepositoryOutput

func (*Repository) ToRepositoryOutputWithContext

func (i *Repository) ToRepositoryOutputWithContext(ctx context.Context) RepositoryOutput

type RepositoryArgs

type RepositoryArgs struct {
	// Allows clients to store small amounts of arbitrary data.
	Annotations pulumi.StringMapInput
	// The location for the resource
	Location pulumi.StringPtrInput
	// Name of the repository.
	Name pulumi.StringPtrInput
	// The connection for the resource
	ParentConnection pulumi.StringInput
	// The project for the resource
	Project pulumi.StringPtrInput
	// Required. Git Clone HTTPS URI.
	//
	// ***
	RemoteUri pulumi.StringInput
}

The set of arguments for constructing a Repository resource.

func (RepositoryArgs) ElementType

func (RepositoryArgs) ElementType() reflect.Type

type RepositoryArray

type RepositoryArray []RepositoryInput

func (RepositoryArray) ElementType

func (RepositoryArray) ElementType() reflect.Type

func (RepositoryArray) ToOutput added in v6.65.1

func (RepositoryArray) ToRepositoryArrayOutput

func (i RepositoryArray) ToRepositoryArrayOutput() RepositoryArrayOutput

func (RepositoryArray) ToRepositoryArrayOutputWithContext

func (i RepositoryArray) ToRepositoryArrayOutputWithContext(ctx context.Context) RepositoryArrayOutput

type RepositoryArrayInput

type RepositoryArrayInput interface {
	pulumi.Input

	ToRepositoryArrayOutput() RepositoryArrayOutput
	ToRepositoryArrayOutputWithContext(context.Context) RepositoryArrayOutput
}

RepositoryArrayInput is an input type that accepts RepositoryArray and RepositoryArrayOutput values. You can construct a concrete instance of `RepositoryArrayInput` via:

RepositoryArray{ RepositoryArgs{...} }

type RepositoryArrayOutput

type RepositoryArrayOutput struct{ *pulumi.OutputState }

func (RepositoryArrayOutput) ElementType

func (RepositoryArrayOutput) ElementType() reflect.Type

func (RepositoryArrayOutput) Index

func (RepositoryArrayOutput) ToOutput added in v6.65.1

func (RepositoryArrayOutput) ToRepositoryArrayOutput

func (o RepositoryArrayOutput) ToRepositoryArrayOutput() RepositoryArrayOutput

func (RepositoryArrayOutput) ToRepositoryArrayOutputWithContext

func (o RepositoryArrayOutput) ToRepositoryArrayOutputWithContext(ctx context.Context) RepositoryArrayOutput

type RepositoryInput

type RepositoryInput interface {
	pulumi.Input

	ToRepositoryOutput() RepositoryOutput
	ToRepositoryOutputWithContext(ctx context.Context) RepositoryOutput
}

type RepositoryMap

type RepositoryMap map[string]RepositoryInput

func (RepositoryMap) ElementType

func (RepositoryMap) ElementType() reflect.Type

func (RepositoryMap) ToOutput added in v6.65.1

func (RepositoryMap) ToRepositoryMapOutput

func (i RepositoryMap) ToRepositoryMapOutput() RepositoryMapOutput

func (RepositoryMap) ToRepositoryMapOutputWithContext

func (i RepositoryMap) ToRepositoryMapOutputWithContext(ctx context.Context) RepositoryMapOutput

type RepositoryMapInput

type RepositoryMapInput interface {
	pulumi.Input

	ToRepositoryMapOutput() RepositoryMapOutput
	ToRepositoryMapOutputWithContext(context.Context) RepositoryMapOutput
}

RepositoryMapInput is an input type that accepts RepositoryMap and RepositoryMapOutput values. You can construct a concrete instance of `RepositoryMapInput` via:

RepositoryMap{ "key": RepositoryArgs{...} }

type RepositoryMapOutput

type RepositoryMapOutput struct{ *pulumi.OutputState }

func (RepositoryMapOutput) ElementType

func (RepositoryMapOutput) ElementType() reflect.Type

func (RepositoryMapOutput) MapIndex

func (RepositoryMapOutput) ToOutput added in v6.65.1

func (RepositoryMapOutput) ToRepositoryMapOutput

func (o RepositoryMapOutput) ToRepositoryMapOutput() RepositoryMapOutput

func (RepositoryMapOutput) ToRepositoryMapOutputWithContext

func (o RepositoryMapOutput) ToRepositoryMapOutputWithContext(ctx context.Context) RepositoryMapOutput

type RepositoryOutput

type RepositoryOutput struct{ *pulumi.OutputState }

func (RepositoryOutput) Annotations

func (o RepositoryOutput) Annotations() pulumi.StringMapOutput

Allows clients to store small amounts of arbitrary data.

func (RepositoryOutput) CreateTime

func (o RepositoryOutput) CreateTime() pulumi.StringOutput

Output only. Server assigned timestamp for when the connection was created.

func (RepositoryOutput) ElementType

func (RepositoryOutput) ElementType() reflect.Type

func (RepositoryOutput) Etag

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.

func (RepositoryOutput) Location

func (o RepositoryOutput) Location() pulumi.StringOutput

The location for the resource

func (RepositoryOutput) Name

Name of the repository.

func (RepositoryOutput) ParentConnection

func (o RepositoryOutput) ParentConnection() pulumi.StringOutput

The connection for the resource

func (RepositoryOutput) Project

func (o RepositoryOutput) Project() pulumi.StringOutput

The project for the resource

func (RepositoryOutput) RemoteUri

func (o RepositoryOutput) RemoteUri() pulumi.StringOutput

Required. Git Clone HTTPS URI.

***

func (RepositoryOutput) ToOutput added in v6.65.1

func (RepositoryOutput) ToRepositoryOutput

func (o RepositoryOutput) ToRepositoryOutput() RepositoryOutput

func (RepositoryOutput) ToRepositoryOutputWithContext

func (o RepositoryOutput) ToRepositoryOutputWithContext(ctx context.Context) RepositoryOutput

func (RepositoryOutput) UpdateTime

func (o RepositoryOutput) UpdateTime() pulumi.StringOutput

Output only. Server assigned timestamp for when the connection was updated.

type RepositoryState

type RepositoryState struct {
	// Allows clients to store small amounts of arbitrary data.
	Annotations pulumi.StringMapInput
	// Output only. Server assigned timestamp for when the connection was created.
	CreateTime pulumi.StringPtrInput
	// 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.
	Etag pulumi.StringPtrInput
	// The location for the resource
	Location pulumi.StringPtrInput
	// Name of the repository.
	Name pulumi.StringPtrInput
	// The connection for the resource
	ParentConnection pulumi.StringPtrInput
	// The project for the resource
	Project pulumi.StringPtrInput
	// Required. Git Clone HTTPS URI.
	//
	// ***
	RemoteUri pulumi.StringPtrInput
	// Output only. Server assigned timestamp for when the connection was updated.
	UpdateTime pulumi.StringPtrInput
}

func (RepositoryState) ElementType

func (RepositoryState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL