cloudbuildv2

package
v6.50.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: Apache-2.0 Imports: 7 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"`
	// 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"`
}

Beta only: The Cloudbuildv2 Connection resource

## Example Usage ### 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{
				Automatic: pulumi.Bool(true),
			},
		}, pulumi.Provider(google_beta))
		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"),
		}, pulumi.Provider(google_beta))
		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),
		}, pulumi.Provider(google_beta))
		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(),
				},
			},
		}, pulumi.Provider(google_beta))
		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

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
	// 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

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

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

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"`
	// 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"`
	// 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

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) Username

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) Username

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

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

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

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) 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) 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

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

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

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.
	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"`
}

## 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

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.
	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

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

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

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

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

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

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

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.

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

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.
	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.
	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"`
}

## 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

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.
	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

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

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

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

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

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

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

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.

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

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.
	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.
	Project pulumi.StringOutput `pulumi:"project"`
}

## 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

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.
	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

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

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

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

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.

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

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.
	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

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

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

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

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

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

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) 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) 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
	// 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 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"`
}

Beta only: The Cloudbuildv2 Repository resource

## Example Usage ### 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{
				Automatic: pulumi.Bool(true),
			},
		}, pulumi.Provider(google_beta))
		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"),
		}, pulumi.Provider(google_beta))
		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),
		}, pulumi.Provider(google_beta))
		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(),
				},
			},
		}, pulumi.Provider(google_beta))
		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"),
		}, pulumi.Provider(google_beta))
		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) 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) 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) 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) 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) 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) 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