github

package
v4.17.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

Types

type ActionsEnvironmentSecret added in v4.3.0

type ActionsEnvironmentSecret struct {
	pulumi.CustomResourceState

	// Date of actionsEnvironmentSecret creation.
	CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
	// Encrypted value of the secret using the Github public key in Base64 format.
	EncryptedValue pulumi.StringPtrOutput `pulumi:"encryptedValue"`
	// Name of the environment.
	Environment pulumi.StringOutput `pulumi:"environment"`
	// Plaintext value of the secret to be encrypted.
	PlaintextValue pulumi.StringPtrOutput `pulumi:"plaintextValue"`
	// Name of the repository.
	Repository pulumi.StringOutput `pulumi:"repository"`
	// Name of the secret.
	SecretName pulumi.StringOutput `pulumi:"secretName"`
	// Date of actionsEnvironmentSecret update.
	UpdatedAt pulumi.StringOutput `pulumi:"updatedAt"`
}

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.NewActionsEnvironmentSecret(ctx, "exampleSecretActionsEnvironmentSecret", &github.ActionsEnvironmentSecretArgs{
			Environment:    pulumi.String("example_environment"),
			SecretName:     pulumi.String("example_secret_name"),
			PlaintextValue: pulumi.Any(_var.Some_secret_string),
		})
		if err != nil {
			return err
		}
		_, err = github.NewActionsEnvironmentSecret(ctx, "exampleSecretIndex/actionsEnvironmentSecretActionsEnvironmentSecret", &github.ActionsEnvironmentSecretArgs{
			Environment:    pulumi.String("example_environment"),
			SecretName:     pulumi.String("example_secret_name"),
			EncryptedValue: pulumi.Any(_var.Some_encrypted_secret_string),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		repo, err := github.LookupRepository(ctx, &GetRepositoryArgs{
			FullName: pulumi.StringRef("my-org/repo"),
		}, nil)
		if err != nil {
			return err
		}
		repoEnvironment, err := github.NewRepositoryEnvironment(ctx, "repoEnvironment", &github.RepositoryEnvironmentArgs{
			Repository:  pulumi.String(repo.Name),
			Environment: pulumi.String("example_environment"),
		})
		if err != nil {
			return err
		}
		_, err = github.NewActionsEnvironmentSecret(ctx, "testSecret", &github.ActionsEnvironmentSecretArgs{
			Repository:     pulumi.String(repo.Name),
			Environment:    repoEnvironment.Environment,
			SecretName:     pulumi.String("test_secret_name"),
			PlaintextValue: pulumi.String(fmt.Sprintf("%vs", "%")),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

This resource can be imported using an ID made up of the secret name

```sh

$ pulumi import github:index/actionsEnvironmentSecret:ActionsEnvironmentSecret test_secret test_secret_name

```

NOTEthe implementation is limited in that it won't fetch the value of the `plaintext_value` field when importing. You may need to ignore changes for the `plaintext_value` as a workaround.

func GetActionsEnvironmentSecret added in v4.3.0

func GetActionsEnvironmentSecret(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ActionsEnvironmentSecretState, opts ...pulumi.ResourceOption) (*ActionsEnvironmentSecret, error)

GetActionsEnvironmentSecret gets an existing ActionsEnvironmentSecret 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 NewActionsEnvironmentSecret added in v4.3.0

func NewActionsEnvironmentSecret(ctx *pulumi.Context,
	name string, args *ActionsEnvironmentSecretArgs, opts ...pulumi.ResourceOption) (*ActionsEnvironmentSecret, error)

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

func (*ActionsEnvironmentSecret) ElementType added in v4.3.0

func (*ActionsEnvironmentSecret) ElementType() reflect.Type

func (*ActionsEnvironmentSecret) ToActionsEnvironmentSecretOutput added in v4.3.0

func (i *ActionsEnvironmentSecret) ToActionsEnvironmentSecretOutput() ActionsEnvironmentSecretOutput

func (*ActionsEnvironmentSecret) ToActionsEnvironmentSecretOutputWithContext added in v4.3.0

func (i *ActionsEnvironmentSecret) ToActionsEnvironmentSecretOutputWithContext(ctx context.Context) ActionsEnvironmentSecretOutput

type ActionsEnvironmentSecretArgs added in v4.3.0

type ActionsEnvironmentSecretArgs struct {
	// Encrypted value of the secret using the Github public key in Base64 format.
	EncryptedValue pulumi.StringPtrInput
	// Name of the environment.
	Environment pulumi.StringInput
	// Plaintext value of the secret to be encrypted.
	PlaintextValue pulumi.StringPtrInput
	// Name of the repository.
	Repository pulumi.StringInput
	// Name of the secret.
	SecretName pulumi.StringInput
}

The set of arguments for constructing a ActionsEnvironmentSecret resource.

func (ActionsEnvironmentSecretArgs) ElementType added in v4.3.0

type ActionsEnvironmentSecretArray added in v4.3.0

type ActionsEnvironmentSecretArray []ActionsEnvironmentSecretInput

func (ActionsEnvironmentSecretArray) ElementType added in v4.3.0

func (ActionsEnvironmentSecretArray) ToActionsEnvironmentSecretArrayOutput added in v4.3.0

func (i ActionsEnvironmentSecretArray) ToActionsEnvironmentSecretArrayOutput() ActionsEnvironmentSecretArrayOutput

func (ActionsEnvironmentSecretArray) ToActionsEnvironmentSecretArrayOutputWithContext added in v4.3.0

func (i ActionsEnvironmentSecretArray) ToActionsEnvironmentSecretArrayOutputWithContext(ctx context.Context) ActionsEnvironmentSecretArrayOutput

type ActionsEnvironmentSecretArrayInput added in v4.3.0

type ActionsEnvironmentSecretArrayInput interface {
	pulumi.Input

	ToActionsEnvironmentSecretArrayOutput() ActionsEnvironmentSecretArrayOutput
	ToActionsEnvironmentSecretArrayOutputWithContext(context.Context) ActionsEnvironmentSecretArrayOutput
}

ActionsEnvironmentSecretArrayInput is an input type that accepts ActionsEnvironmentSecretArray and ActionsEnvironmentSecretArrayOutput values. You can construct a concrete instance of `ActionsEnvironmentSecretArrayInput` via:

ActionsEnvironmentSecretArray{ ActionsEnvironmentSecretArgs{...} }

type ActionsEnvironmentSecretArrayOutput added in v4.3.0

type ActionsEnvironmentSecretArrayOutput struct{ *pulumi.OutputState }

func (ActionsEnvironmentSecretArrayOutput) ElementType added in v4.3.0

func (ActionsEnvironmentSecretArrayOutput) Index added in v4.3.0

func (ActionsEnvironmentSecretArrayOutput) ToActionsEnvironmentSecretArrayOutput added in v4.3.0

func (o ActionsEnvironmentSecretArrayOutput) ToActionsEnvironmentSecretArrayOutput() ActionsEnvironmentSecretArrayOutput

func (ActionsEnvironmentSecretArrayOutput) ToActionsEnvironmentSecretArrayOutputWithContext added in v4.3.0

func (o ActionsEnvironmentSecretArrayOutput) ToActionsEnvironmentSecretArrayOutputWithContext(ctx context.Context) ActionsEnvironmentSecretArrayOutput

type ActionsEnvironmentSecretInput added in v4.3.0

type ActionsEnvironmentSecretInput interface {
	pulumi.Input

	ToActionsEnvironmentSecretOutput() ActionsEnvironmentSecretOutput
	ToActionsEnvironmentSecretOutputWithContext(ctx context.Context) ActionsEnvironmentSecretOutput
}

type ActionsEnvironmentSecretMap added in v4.3.0

type ActionsEnvironmentSecretMap map[string]ActionsEnvironmentSecretInput

func (ActionsEnvironmentSecretMap) ElementType added in v4.3.0

func (ActionsEnvironmentSecretMap) ToActionsEnvironmentSecretMapOutput added in v4.3.0

func (i ActionsEnvironmentSecretMap) ToActionsEnvironmentSecretMapOutput() ActionsEnvironmentSecretMapOutput

func (ActionsEnvironmentSecretMap) ToActionsEnvironmentSecretMapOutputWithContext added in v4.3.0

func (i ActionsEnvironmentSecretMap) ToActionsEnvironmentSecretMapOutputWithContext(ctx context.Context) ActionsEnvironmentSecretMapOutput

type ActionsEnvironmentSecretMapInput added in v4.3.0

type ActionsEnvironmentSecretMapInput interface {
	pulumi.Input

	ToActionsEnvironmentSecretMapOutput() ActionsEnvironmentSecretMapOutput
	ToActionsEnvironmentSecretMapOutputWithContext(context.Context) ActionsEnvironmentSecretMapOutput
}

ActionsEnvironmentSecretMapInput is an input type that accepts ActionsEnvironmentSecretMap and ActionsEnvironmentSecretMapOutput values. You can construct a concrete instance of `ActionsEnvironmentSecretMapInput` via:

ActionsEnvironmentSecretMap{ "key": ActionsEnvironmentSecretArgs{...} }

type ActionsEnvironmentSecretMapOutput added in v4.3.0

type ActionsEnvironmentSecretMapOutput struct{ *pulumi.OutputState }

func (ActionsEnvironmentSecretMapOutput) ElementType added in v4.3.0

func (ActionsEnvironmentSecretMapOutput) MapIndex added in v4.3.0

func (ActionsEnvironmentSecretMapOutput) ToActionsEnvironmentSecretMapOutput added in v4.3.0

func (o ActionsEnvironmentSecretMapOutput) ToActionsEnvironmentSecretMapOutput() ActionsEnvironmentSecretMapOutput

func (ActionsEnvironmentSecretMapOutput) ToActionsEnvironmentSecretMapOutputWithContext added in v4.3.0

func (o ActionsEnvironmentSecretMapOutput) ToActionsEnvironmentSecretMapOutputWithContext(ctx context.Context) ActionsEnvironmentSecretMapOutput

type ActionsEnvironmentSecretOutput added in v4.3.0

type ActionsEnvironmentSecretOutput struct{ *pulumi.OutputState }

func (ActionsEnvironmentSecretOutput) CreatedAt added in v4.15.0

Date of actionsEnvironmentSecret creation.

func (ActionsEnvironmentSecretOutput) ElementType added in v4.3.0

func (ActionsEnvironmentSecretOutput) EncryptedValue added in v4.15.0

Encrypted value of the secret using the Github public key in Base64 format.

func (ActionsEnvironmentSecretOutput) Environment added in v4.15.0

Name of the environment.

func (ActionsEnvironmentSecretOutput) PlaintextValue added in v4.15.0

Plaintext value of the secret to be encrypted.

func (ActionsEnvironmentSecretOutput) Repository added in v4.15.0

Name of the repository.

func (ActionsEnvironmentSecretOutput) SecretName added in v4.15.0

Name of the secret.

func (ActionsEnvironmentSecretOutput) ToActionsEnvironmentSecretOutput added in v4.3.0

func (o ActionsEnvironmentSecretOutput) ToActionsEnvironmentSecretOutput() ActionsEnvironmentSecretOutput

func (ActionsEnvironmentSecretOutput) ToActionsEnvironmentSecretOutputWithContext added in v4.3.0

func (o ActionsEnvironmentSecretOutput) ToActionsEnvironmentSecretOutputWithContext(ctx context.Context) ActionsEnvironmentSecretOutput

func (ActionsEnvironmentSecretOutput) UpdatedAt added in v4.15.0

Date of actionsEnvironmentSecret update.

type ActionsEnvironmentSecretState added in v4.3.0

type ActionsEnvironmentSecretState struct {
	// Date of actionsEnvironmentSecret creation.
	CreatedAt pulumi.StringPtrInput
	// Encrypted value of the secret using the Github public key in Base64 format.
	EncryptedValue pulumi.StringPtrInput
	// Name of the environment.
	Environment pulumi.StringPtrInput
	// Plaintext value of the secret to be encrypted.
	PlaintextValue pulumi.StringPtrInput
	// Name of the repository.
	Repository pulumi.StringPtrInput
	// Name of the secret.
	SecretName pulumi.StringPtrInput
	// Date of actionsEnvironmentSecret update.
	UpdatedAt pulumi.StringPtrInput
}

func (ActionsEnvironmentSecretState) ElementType added in v4.3.0

type ActionsOrganizationPermissions added in v4.7.0

type ActionsOrganizationPermissions struct {
	pulumi.CustomResourceState

	// The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `localOnly`, or `selected`.
	AllowedActions pulumi.StringPtrOutput `pulumi:"allowedActions"`
	// Sets the actions that are allowed in an organization. Only available when `allowedActions` = `selected`. See Allowed Actions Config below for details.
	AllowedActionsConfig ActionsOrganizationPermissionsAllowedActionsConfigPtrOutput `pulumi:"allowedActionsConfig"`
	// The policy that controls the repositories in the organization that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`.
	EnabledRepositories pulumi.StringOutput `pulumi:"enabledRepositories"`
	// Sets the list of selected repositories that are enabled for GitHub Actions in an organization. Only available when `enabledRepositories` = `selected`. See Enabled Repositories Config below for details.
	EnabledRepositoriesConfig ActionsOrganizationPermissionsEnabledRepositoriesConfigPtrOutput `pulumi:"enabledRepositoriesConfig"`
}

This resource allows you to create and manage GitHub Actions permissions within your GitHub enterprise organizations. You must have admin access to an organization to use this resource.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := github.NewRepository(ctx, "example", nil)
		if err != nil {
			return err
		}
		_, err = github.NewActionsOrganizationPermissions(ctx, "test", &github.ActionsOrganizationPermissionsArgs{
			AllowedActions:      pulumi.String("selected"),
			EnabledRepositories: pulumi.String("selected"),
			AllowedActionsConfig: &ActionsOrganizationPermissionsAllowedActionsConfigArgs{
				GithubOwnedAllowed: pulumi.Bool(true),
				PatternsAlloweds: pulumi.StringArray{
					pulumi.String("actions/cache@*"),
					pulumi.String("actions/checkout@*"),
				},
				VerifiedAllowed: pulumi.Bool(true),
			},
			EnabledRepositoriesConfig: &ActionsOrganizationPermissionsEnabledRepositoriesConfigArgs{
				RepositoryIds: pulumi.IntArray{
					example.RepoId,
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

This resource can be imported using the ID of the GitHub organization

```sh

$ pulumi import github:index/actionsOrganizationPermissions:ActionsOrganizationPermissions test <github_organization_name>

```

func GetActionsOrganizationPermissions added in v4.7.0

func GetActionsOrganizationPermissions(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ActionsOrganizationPermissionsState, opts ...pulumi.ResourceOption) (*ActionsOrganizationPermissions, error)

GetActionsOrganizationPermissions gets an existing ActionsOrganizationPermissions 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 NewActionsOrganizationPermissions added in v4.7.0

func NewActionsOrganizationPermissions(ctx *pulumi.Context,
	name string, args *ActionsOrganizationPermissionsArgs, opts ...pulumi.ResourceOption) (*ActionsOrganizationPermissions, error)

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

func (*ActionsOrganizationPermissions) ElementType added in v4.7.0

func (*ActionsOrganizationPermissions) ToActionsOrganizationPermissionsOutput added in v4.7.0

func (i *ActionsOrganizationPermissions) ToActionsOrganizationPermissionsOutput() ActionsOrganizationPermissionsOutput

func (*ActionsOrganizationPermissions) ToActionsOrganizationPermissionsOutputWithContext added in v4.7.0

func (i *ActionsOrganizationPermissions) ToActionsOrganizationPermissionsOutputWithContext(ctx context.Context) ActionsOrganizationPermissionsOutput

type ActionsOrganizationPermissionsAllowedActionsConfig added in v4.7.0

type ActionsOrganizationPermissionsAllowedActionsConfig struct {
	// Whether GitHub-owned actions are allowed in the organization.
	GithubOwnedAllowed bool `pulumi:"githubOwnedAllowed"`
	// Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, monalisa/octocat@*, monalisa/octocat@v2, monalisa/*."
	PatternsAlloweds []string `pulumi:"patternsAlloweds"`
	// Whether actions in GitHub Marketplace from verified creators are allowed. Set to true to allow all GitHub Marketplace actions by verified creators.
	VerifiedAllowed *bool `pulumi:"verifiedAllowed"`
}

type ActionsOrganizationPermissionsAllowedActionsConfigArgs added in v4.7.0

type ActionsOrganizationPermissionsAllowedActionsConfigArgs struct {
	// Whether GitHub-owned actions are allowed in the organization.
	GithubOwnedAllowed pulumi.BoolInput `pulumi:"githubOwnedAllowed"`
	// Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, monalisa/octocat@*, monalisa/octocat@v2, monalisa/*."
	PatternsAlloweds pulumi.StringArrayInput `pulumi:"patternsAlloweds"`
	// Whether actions in GitHub Marketplace from verified creators are allowed. Set to true to allow all GitHub Marketplace actions by verified creators.
	VerifiedAllowed pulumi.BoolPtrInput `pulumi:"verifiedAllowed"`
}

func (ActionsOrganizationPermissionsAllowedActionsConfigArgs) ElementType added in v4.7.0

func (ActionsOrganizationPermissionsAllowedActionsConfigArgs) ToActionsOrganizationPermissionsAllowedActionsConfigOutput added in v4.7.0

func (ActionsOrganizationPermissionsAllowedActionsConfigArgs) ToActionsOrganizationPermissionsAllowedActionsConfigOutputWithContext added in v4.7.0

func (i ActionsOrganizationPermissionsAllowedActionsConfigArgs) ToActionsOrganizationPermissionsAllowedActionsConfigOutputWithContext(ctx context.Context) ActionsOrganizationPermissionsAllowedActionsConfigOutput

func (ActionsOrganizationPermissionsAllowedActionsConfigArgs) ToActionsOrganizationPermissionsAllowedActionsConfigPtrOutput added in v4.7.0

func (i ActionsOrganizationPermissionsAllowedActionsConfigArgs) ToActionsOrganizationPermissionsAllowedActionsConfigPtrOutput() ActionsOrganizationPermissionsAllowedActionsConfigPtrOutput

func (ActionsOrganizationPermissionsAllowedActionsConfigArgs) ToActionsOrganizationPermissionsAllowedActionsConfigPtrOutputWithContext added in v4.7.0

func (i ActionsOrganizationPermissionsAllowedActionsConfigArgs) ToActionsOrganizationPermissionsAllowedActionsConfigPtrOutputWithContext(ctx context.Context) ActionsOrganizationPermissionsAllowedActionsConfigPtrOutput

type ActionsOrganizationPermissionsAllowedActionsConfigInput added in v4.7.0

type ActionsOrganizationPermissionsAllowedActionsConfigInput interface {
	pulumi.Input

	ToActionsOrganizationPermissionsAllowedActionsConfigOutput() ActionsOrganizationPermissionsAllowedActionsConfigOutput
	ToActionsOrganizationPermissionsAllowedActionsConfigOutputWithContext(context.Context) ActionsOrganizationPermissionsAllowedActionsConfigOutput
}

ActionsOrganizationPermissionsAllowedActionsConfigInput is an input type that accepts ActionsOrganizationPermissionsAllowedActionsConfigArgs and ActionsOrganizationPermissionsAllowedActionsConfigOutput values. You can construct a concrete instance of `ActionsOrganizationPermissionsAllowedActionsConfigInput` via:

ActionsOrganizationPermissionsAllowedActionsConfigArgs{...}

type ActionsOrganizationPermissionsAllowedActionsConfigOutput added in v4.7.0

type ActionsOrganizationPermissionsAllowedActionsConfigOutput struct{ *pulumi.OutputState }

func (ActionsOrganizationPermissionsAllowedActionsConfigOutput) ElementType added in v4.7.0

func (ActionsOrganizationPermissionsAllowedActionsConfigOutput) GithubOwnedAllowed added in v4.7.0

Whether GitHub-owned actions are allowed in the organization.

func (ActionsOrganizationPermissionsAllowedActionsConfigOutput) PatternsAlloweds added in v4.7.0

Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, monalisa/octocat@*, monalisa/octocat@v2, monalisa/*."

func (ActionsOrganizationPermissionsAllowedActionsConfigOutput) ToActionsOrganizationPermissionsAllowedActionsConfigOutput added in v4.7.0

func (ActionsOrganizationPermissionsAllowedActionsConfigOutput) ToActionsOrganizationPermissionsAllowedActionsConfigOutputWithContext added in v4.7.0

func (o ActionsOrganizationPermissionsAllowedActionsConfigOutput) ToActionsOrganizationPermissionsAllowedActionsConfigOutputWithContext(ctx context.Context) ActionsOrganizationPermissionsAllowedActionsConfigOutput

func (ActionsOrganizationPermissionsAllowedActionsConfigOutput) ToActionsOrganizationPermissionsAllowedActionsConfigPtrOutput added in v4.7.0

func (ActionsOrganizationPermissionsAllowedActionsConfigOutput) ToActionsOrganizationPermissionsAllowedActionsConfigPtrOutputWithContext added in v4.7.0

func (o ActionsOrganizationPermissionsAllowedActionsConfigOutput) ToActionsOrganizationPermissionsAllowedActionsConfigPtrOutputWithContext(ctx context.Context) ActionsOrganizationPermissionsAllowedActionsConfigPtrOutput

func (ActionsOrganizationPermissionsAllowedActionsConfigOutput) VerifiedAllowed added in v4.7.0

Whether actions in GitHub Marketplace from verified creators are allowed. Set to true to allow all GitHub Marketplace actions by verified creators.

type ActionsOrganizationPermissionsAllowedActionsConfigPtrInput added in v4.7.0

type ActionsOrganizationPermissionsAllowedActionsConfigPtrInput interface {
	pulumi.Input

	ToActionsOrganizationPermissionsAllowedActionsConfigPtrOutput() ActionsOrganizationPermissionsAllowedActionsConfigPtrOutput
	ToActionsOrganizationPermissionsAllowedActionsConfigPtrOutputWithContext(context.Context) ActionsOrganizationPermissionsAllowedActionsConfigPtrOutput
}

ActionsOrganizationPermissionsAllowedActionsConfigPtrInput is an input type that accepts ActionsOrganizationPermissionsAllowedActionsConfigArgs, ActionsOrganizationPermissionsAllowedActionsConfigPtr and ActionsOrganizationPermissionsAllowedActionsConfigPtrOutput values. You can construct a concrete instance of `ActionsOrganizationPermissionsAllowedActionsConfigPtrInput` via:

        ActionsOrganizationPermissionsAllowedActionsConfigArgs{...}

or:

        nil

type ActionsOrganizationPermissionsAllowedActionsConfigPtrOutput added in v4.7.0

type ActionsOrganizationPermissionsAllowedActionsConfigPtrOutput struct{ *pulumi.OutputState }

func (ActionsOrganizationPermissionsAllowedActionsConfigPtrOutput) Elem added in v4.7.0

func (ActionsOrganizationPermissionsAllowedActionsConfigPtrOutput) ElementType added in v4.7.0

func (ActionsOrganizationPermissionsAllowedActionsConfigPtrOutput) GithubOwnedAllowed added in v4.7.0

Whether GitHub-owned actions are allowed in the organization.

func (ActionsOrganizationPermissionsAllowedActionsConfigPtrOutput) PatternsAlloweds added in v4.7.0

Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, monalisa/octocat@*, monalisa/octocat@v2, monalisa/*."

func (ActionsOrganizationPermissionsAllowedActionsConfigPtrOutput) ToActionsOrganizationPermissionsAllowedActionsConfigPtrOutput added in v4.7.0

func (ActionsOrganizationPermissionsAllowedActionsConfigPtrOutput) ToActionsOrganizationPermissionsAllowedActionsConfigPtrOutputWithContext added in v4.7.0

func (o ActionsOrganizationPermissionsAllowedActionsConfigPtrOutput) ToActionsOrganizationPermissionsAllowedActionsConfigPtrOutputWithContext(ctx context.Context) ActionsOrganizationPermissionsAllowedActionsConfigPtrOutput

func (ActionsOrganizationPermissionsAllowedActionsConfigPtrOutput) VerifiedAllowed added in v4.7.0

Whether actions in GitHub Marketplace from verified creators are allowed. Set to true to allow all GitHub Marketplace actions by verified creators.

type ActionsOrganizationPermissionsArgs added in v4.7.0

type ActionsOrganizationPermissionsArgs struct {
	// The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `localOnly`, or `selected`.
	AllowedActions pulumi.StringPtrInput
	// Sets the actions that are allowed in an organization. Only available when `allowedActions` = `selected`. See Allowed Actions Config below for details.
	AllowedActionsConfig ActionsOrganizationPermissionsAllowedActionsConfigPtrInput
	// The policy that controls the repositories in the organization that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`.
	EnabledRepositories pulumi.StringInput
	// Sets the list of selected repositories that are enabled for GitHub Actions in an organization. Only available when `enabledRepositories` = `selected`. See Enabled Repositories Config below for details.
	EnabledRepositoriesConfig ActionsOrganizationPermissionsEnabledRepositoriesConfigPtrInput
}

The set of arguments for constructing a ActionsOrganizationPermissions resource.

func (ActionsOrganizationPermissionsArgs) ElementType added in v4.7.0

type ActionsOrganizationPermissionsArray added in v4.7.0

type ActionsOrganizationPermissionsArray []ActionsOrganizationPermissionsInput

func (ActionsOrganizationPermissionsArray) ElementType added in v4.7.0

func (ActionsOrganizationPermissionsArray) ToActionsOrganizationPermissionsArrayOutput added in v4.7.0

func (i ActionsOrganizationPermissionsArray) ToActionsOrganizationPermissionsArrayOutput() ActionsOrganizationPermissionsArrayOutput

func (ActionsOrganizationPermissionsArray) ToActionsOrganizationPermissionsArrayOutputWithContext added in v4.7.0

func (i ActionsOrganizationPermissionsArray) ToActionsOrganizationPermissionsArrayOutputWithContext(ctx context.Context) ActionsOrganizationPermissionsArrayOutput

type ActionsOrganizationPermissionsArrayInput added in v4.7.0

type ActionsOrganizationPermissionsArrayInput interface {
	pulumi.Input

	ToActionsOrganizationPermissionsArrayOutput() ActionsOrganizationPermissionsArrayOutput
	ToActionsOrganizationPermissionsArrayOutputWithContext(context.Context) ActionsOrganizationPermissionsArrayOutput
}

ActionsOrganizationPermissionsArrayInput is an input type that accepts ActionsOrganizationPermissionsArray and ActionsOrganizationPermissionsArrayOutput values. You can construct a concrete instance of `ActionsOrganizationPermissionsArrayInput` via:

ActionsOrganizationPermissionsArray{ ActionsOrganizationPermissionsArgs{...} }

type ActionsOrganizationPermissionsArrayOutput added in v4.7.0

type ActionsOrganizationPermissionsArrayOutput struct{ *pulumi.OutputState }

func (ActionsOrganizationPermissionsArrayOutput) ElementType added in v4.7.0

func (ActionsOrganizationPermissionsArrayOutput) Index added in v4.7.0

func (ActionsOrganizationPermissionsArrayOutput) ToActionsOrganizationPermissionsArrayOutput added in v4.7.0

func (o ActionsOrganizationPermissionsArrayOutput) ToActionsOrganizationPermissionsArrayOutput() ActionsOrganizationPermissionsArrayOutput

func (ActionsOrganizationPermissionsArrayOutput) ToActionsOrganizationPermissionsArrayOutputWithContext added in v4.7.0

func (o ActionsOrganizationPermissionsArrayOutput) ToActionsOrganizationPermissionsArrayOutputWithContext(ctx context.Context) ActionsOrganizationPermissionsArrayOutput

type ActionsOrganizationPermissionsEnabledRepositoriesConfig added in v4.7.0

type ActionsOrganizationPermissionsEnabledRepositoriesConfig struct {
	// List of repository IDs to enable for GitHub Actions.
	RepositoryIds []int `pulumi:"repositoryIds"`
}

type ActionsOrganizationPermissionsEnabledRepositoriesConfigArgs added in v4.7.0

type ActionsOrganizationPermissionsEnabledRepositoriesConfigArgs struct {
	// List of repository IDs to enable for GitHub Actions.
	RepositoryIds pulumi.IntArrayInput `pulumi:"repositoryIds"`
}

func (ActionsOrganizationPermissionsEnabledRepositoriesConfigArgs) ElementType added in v4.7.0

func (ActionsOrganizationPermissionsEnabledRepositoriesConfigArgs) ToActionsOrganizationPermissionsEnabledRepositoriesConfigOutput added in v4.7.0

func (ActionsOrganizationPermissionsEnabledRepositoriesConfigArgs) ToActionsOrganizationPermissionsEnabledRepositoriesConfigOutputWithContext added in v4.7.0

func (i ActionsOrganizationPermissionsEnabledRepositoriesConfigArgs) ToActionsOrganizationPermissionsEnabledRepositoriesConfigOutputWithContext(ctx context.Context) ActionsOrganizationPermissionsEnabledRepositoriesConfigOutput

func (ActionsOrganizationPermissionsEnabledRepositoriesConfigArgs) ToActionsOrganizationPermissionsEnabledRepositoriesConfigPtrOutput added in v4.7.0

func (ActionsOrganizationPermissionsEnabledRepositoriesConfigArgs) ToActionsOrganizationPermissionsEnabledRepositoriesConfigPtrOutputWithContext added in v4.7.0

func (i ActionsOrganizationPermissionsEnabledRepositoriesConfigArgs) ToActionsOrganizationPermissionsEnabledRepositoriesConfigPtrOutputWithContext(ctx context.Context) ActionsOrganizationPermissionsEnabledRepositoriesConfigPtrOutput

type ActionsOrganizationPermissionsEnabledRepositoriesConfigInput added in v4.7.0

type ActionsOrganizationPermissionsEnabledRepositoriesConfigInput interface {
	pulumi.Input

	ToActionsOrganizationPermissionsEnabledRepositoriesConfigOutput() ActionsOrganizationPermissionsEnabledRepositoriesConfigOutput
	ToActionsOrganizationPermissionsEnabledRepositoriesConfigOutputWithContext(context.Context) ActionsOrganizationPermissionsEnabledRepositoriesConfigOutput
}

ActionsOrganizationPermissionsEnabledRepositoriesConfigInput is an input type that accepts ActionsOrganizationPermissionsEnabledRepositoriesConfigArgs and ActionsOrganizationPermissionsEnabledRepositoriesConfigOutput values. You can construct a concrete instance of `ActionsOrganizationPermissionsEnabledRepositoriesConfigInput` via:

ActionsOrganizationPermissionsEnabledRepositoriesConfigArgs{...}

type ActionsOrganizationPermissionsEnabledRepositoriesConfigOutput added in v4.7.0

type ActionsOrganizationPermissionsEnabledRepositoriesConfigOutput struct{ *pulumi.OutputState }

func (ActionsOrganizationPermissionsEnabledRepositoriesConfigOutput) ElementType added in v4.7.0

func (ActionsOrganizationPermissionsEnabledRepositoriesConfigOutput) RepositoryIds added in v4.7.0

List of repository IDs to enable for GitHub Actions.

func (ActionsOrganizationPermissionsEnabledRepositoriesConfigOutput) ToActionsOrganizationPermissionsEnabledRepositoriesConfigOutput added in v4.7.0

func (ActionsOrganizationPermissionsEnabledRepositoriesConfigOutput) ToActionsOrganizationPermissionsEnabledRepositoriesConfigOutputWithContext added in v4.7.0

func (o ActionsOrganizationPermissionsEnabledRepositoriesConfigOutput) ToActionsOrganizationPermissionsEnabledRepositoriesConfigOutputWithContext(ctx context.Context) ActionsOrganizationPermissionsEnabledRepositoriesConfigOutput

func (ActionsOrganizationPermissionsEnabledRepositoriesConfigOutput) ToActionsOrganizationPermissionsEnabledRepositoriesConfigPtrOutput added in v4.7.0

func (ActionsOrganizationPermissionsEnabledRepositoriesConfigOutput) ToActionsOrganizationPermissionsEnabledRepositoriesConfigPtrOutputWithContext added in v4.7.0

func (o ActionsOrganizationPermissionsEnabledRepositoriesConfigOutput) ToActionsOrganizationPermissionsEnabledRepositoriesConfigPtrOutputWithContext(ctx context.Context) ActionsOrganizationPermissionsEnabledRepositoriesConfigPtrOutput

type ActionsOrganizationPermissionsEnabledRepositoriesConfigPtrInput added in v4.7.0

type ActionsOrganizationPermissionsEnabledRepositoriesConfigPtrInput interface {
	pulumi.Input

	ToActionsOrganizationPermissionsEnabledRepositoriesConfigPtrOutput() ActionsOrganizationPermissionsEnabledRepositoriesConfigPtrOutput
	ToActionsOrganizationPermissionsEnabledRepositoriesConfigPtrOutputWithContext(context.Context) ActionsOrganizationPermissionsEnabledRepositoriesConfigPtrOutput
}

ActionsOrganizationPermissionsEnabledRepositoriesConfigPtrInput is an input type that accepts ActionsOrganizationPermissionsEnabledRepositoriesConfigArgs, ActionsOrganizationPermissionsEnabledRepositoriesConfigPtr and ActionsOrganizationPermissionsEnabledRepositoriesConfigPtrOutput values. You can construct a concrete instance of `ActionsOrganizationPermissionsEnabledRepositoriesConfigPtrInput` via:

        ActionsOrganizationPermissionsEnabledRepositoriesConfigArgs{...}

or:

        nil

type ActionsOrganizationPermissionsEnabledRepositoriesConfigPtrOutput added in v4.7.0

type ActionsOrganizationPermissionsEnabledRepositoriesConfigPtrOutput struct{ *pulumi.OutputState }

func (ActionsOrganizationPermissionsEnabledRepositoriesConfigPtrOutput) Elem added in v4.7.0

func (ActionsOrganizationPermissionsEnabledRepositoriesConfigPtrOutput) ElementType added in v4.7.0

func (ActionsOrganizationPermissionsEnabledRepositoriesConfigPtrOutput) RepositoryIds added in v4.7.0

List of repository IDs to enable for GitHub Actions.

func (ActionsOrganizationPermissionsEnabledRepositoriesConfigPtrOutput) ToActionsOrganizationPermissionsEnabledRepositoriesConfigPtrOutput added in v4.7.0

func (ActionsOrganizationPermissionsEnabledRepositoriesConfigPtrOutput) ToActionsOrganizationPermissionsEnabledRepositoriesConfigPtrOutputWithContext added in v4.7.0

func (o ActionsOrganizationPermissionsEnabledRepositoriesConfigPtrOutput) ToActionsOrganizationPermissionsEnabledRepositoriesConfigPtrOutputWithContext(ctx context.Context) ActionsOrganizationPermissionsEnabledRepositoriesConfigPtrOutput

type ActionsOrganizationPermissionsInput added in v4.7.0

type ActionsOrganizationPermissionsInput interface {
	pulumi.Input

	ToActionsOrganizationPermissionsOutput() ActionsOrganizationPermissionsOutput
	ToActionsOrganizationPermissionsOutputWithContext(ctx context.Context) ActionsOrganizationPermissionsOutput
}

type ActionsOrganizationPermissionsMap added in v4.7.0

type ActionsOrganizationPermissionsMap map[string]ActionsOrganizationPermissionsInput

func (ActionsOrganizationPermissionsMap) ElementType added in v4.7.0

func (ActionsOrganizationPermissionsMap) ToActionsOrganizationPermissionsMapOutput added in v4.7.0

func (i ActionsOrganizationPermissionsMap) ToActionsOrganizationPermissionsMapOutput() ActionsOrganizationPermissionsMapOutput

func (ActionsOrganizationPermissionsMap) ToActionsOrganizationPermissionsMapOutputWithContext added in v4.7.0

func (i ActionsOrganizationPermissionsMap) ToActionsOrganizationPermissionsMapOutputWithContext(ctx context.Context) ActionsOrganizationPermissionsMapOutput

type ActionsOrganizationPermissionsMapInput added in v4.7.0

type ActionsOrganizationPermissionsMapInput interface {
	pulumi.Input

	ToActionsOrganizationPermissionsMapOutput() ActionsOrganizationPermissionsMapOutput
	ToActionsOrganizationPermissionsMapOutputWithContext(context.Context) ActionsOrganizationPermissionsMapOutput
}

ActionsOrganizationPermissionsMapInput is an input type that accepts ActionsOrganizationPermissionsMap and ActionsOrganizationPermissionsMapOutput values. You can construct a concrete instance of `ActionsOrganizationPermissionsMapInput` via:

ActionsOrganizationPermissionsMap{ "key": ActionsOrganizationPermissionsArgs{...} }

type ActionsOrganizationPermissionsMapOutput added in v4.7.0

type ActionsOrganizationPermissionsMapOutput struct{ *pulumi.OutputState }

func (ActionsOrganizationPermissionsMapOutput) ElementType added in v4.7.0

func (ActionsOrganizationPermissionsMapOutput) MapIndex added in v4.7.0

func (ActionsOrganizationPermissionsMapOutput) ToActionsOrganizationPermissionsMapOutput added in v4.7.0

func (o ActionsOrganizationPermissionsMapOutput) ToActionsOrganizationPermissionsMapOutput() ActionsOrganizationPermissionsMapOutput

func (ActionsOrganizationPermissionsMapOutput) ToActionsOrganizationPermissionsMapOutputWithContext added in v4.7.0

func (o ActionsOrganizationPermissionsMapOutput) ToActionsOrganizationPermissionsMapOutputWithContext(ctx context.Context) ActionsOrganizationPermissionsMapOutput

type ActionsOrganizationPermissionsOutput added in v4.7.0

type ActionsOrganizationPermissionsOutput struct{ *pulumi.OutputState }

func (ActionsOrganizationPermissionsOutput) AllowedActions added in v4.15.0

The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `localOnly`, or `selected`.

func (ActionsOrganizationPermissionsOutput) AllowedActionsConfig added in v4.15.0

Sets the actions that are allowed in an organization. Only available when `allowedActions` = `selected`. See Allowed Actions Config below for details.

func (ActionsOrganizationPermissionsOutput) ElementType added in v4.7.0

func (ActionsOrganizationPermissionsOutput) EnabledRepositories added in v4.15.0

The policy that controls the repositories in the organization that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`.

func (ActionsOrganizationPermissionsOutput) EnabledRepositoriesConfig added in v4.15.0

Sets the list of selected repositories that are enabled for GitHub Actions in an organization. Only available when `enabledRepositories` = `selected`. See Enabled Repositories Config below for details.

func (ActionsOrganizationPermissionsOutput) ToActionsOrganizationPermissionsOutput added in v4.7.0

func (o ActionsOrganizationPermissionsOutput) ToActionsOrganizationPermissionsOutput() ActionsOrganizationPermissionsOutput

func (ActionsOrganizationPermissionsOutput) ToActionsOrganizationPermissionsOutputWithContext added in v4.7.0

func (o ActionsOrganizationPermissionsOutput) ToActionsOrganizationPermissionsOutputWithContext(ctx context.Context) ActionsOrganizationPermissionsOutput

type ActionsOrganizationPermissionsState added in v4.7.0

type ActionsOrganizationPermissionsState struct {
	// The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `localOnly`, or `selected`.
	AllowedActions pulumi.StringPtrInput
	// Sets the actions that are allowed in an organization. Only available when `allowedActions` = `selected`. See Allowed Actions Config below for details.
	AllowedActionsConfig ActionsOrganizationPermissionsAllowedActionsConfigPtrInput
	// The policy that controls the repositories in the organization that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`.
	EnabledRepositories pulumi.StringPtrInput
	// Sets the list of selected repositories that are enabled for GitHub Actions in an organization. Only available when `enabledRepositories` = `selected`. See Enabled Repositories Config below for details.
	EnabledRepositoriesConfig ActionsOrganizationPermissionsEnabledRepositoriesConfigPtrInput
}

func (ActionsOrganizationPermissionsState) ElementType added in v4.7.0

type ActionsOrganizationSecret

type ActionsOrganizationSecret struct {
	pulumi.CustomResourceState

	// Date of actionsSecret creation.
	CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
	// Encrypted value of the secret using the Github public key in Base64 format.
	EncryptedValue pulumi.StringPtrOutput `pulumi:"encryptedValue"`
	// Plaintext value of the secret to be encrypted
	PlaintextValue pulumi.StringPtrOutput `pulumi:"plaintextValue"`
	// Name of the secret
	SecretName pulumi.StringOutput `pulumi:"secretName"`
	// An array of repository ids that can access the organization secret.
	SelectedRepositoryIds pulumi.IntArrayOutput `pulumi:"selectedRepositoryIds"`
	// Date of actionsSecret update.
	UpdatedAt pulumi.StringOutput `pulumi:"updatedAt"`
	// Configures the access that repositories have to the organization secret.
	// Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
	Visibility pulumi.StringOutput `pulumi:"visibility"`
}

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.NewActionsOrganizationSecret(ctx, "exampleSecretActionsOrganizationSecret", &github.ActionsOrganizationSecretArgs{
			SecretName:     pulumi.String("example_secret_name"),
			Visibility:     pulumi.String("private"),
			PlaintextValue: pulumi.Any(_var.Some_secret_string),
		})
		if err != nil {
			return err
		}
		_, err = github.NewActionsOrganizationSecret(ctx, "exampleSecretIndex/actionsOrganizationSecretActionsOrganizationSecret", &github.ActionsOrganizationSecretArgs{
			SecretName:     pulumi.String("example_secret_name"),
			Visibility:     pulumi.String("private"),
			EncryptedValue: pulumi.Any(_var.Some_encrypted_secret_string),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		repo, err := github.LookupRepository(ctx, &GetRepositoryArgs{
			FullName: pulumi.StringRef("my-org/repo"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = github.NewActionsOrganizationSecret(ctx, "exampleSecretActionsOrganizationSecret", &github.ActionsOrganizationSecretArgs{
			SecretName:     pulumi.String("example_secret_name"),
			Visibility:     pulumi.String("selected"),
			PlaintextValue: pulumi.Any(_var.Some_secret_string),
			SelectedRepositoryIds: pulumi.IntArray{
				pulumi.Int(repo.RepoId),
			},
		})
		if err != nil {
			return err
		}
		_, err = github.NewActionsOrganizationSecret(ctx, "exampleSecretIndex/actionsOrganizationSecretActionsOrganizationSecret", &github.ActionsOrganizationSecretArgs{
			SecretName:     pulumi.String("example_secret_name"),
			Visibility:     pulumi.String("selected"),
			EncryptedValue: pulumi.Any(_var.Some_encrypted_secret_string),
			SelectedRepositoryIds: pulumi.IntArray{
				pulumi.Int(repo.RepoId),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

This resource can be imported using an ID made up of the secret name

```sh

$ pulumi import github:index/actionsOrganizationSecret:ActionsOrganizationSecret test_secret test_secret_name

```

NOTEthe implementation is limited in that it won't fetch the value of the `plaintext_value` or `encrypted_value` fields when importing. You may need to ignore changes for these as a workaround.

func GetActionsOrganizationSecret

func GetActionsOrganizationSecret(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ActionsOrganizationSecretState, opts ...pulumi.ResourceOption) (*ActionsOrganizationSecret, error)

GetActionsOrganizationSecret gets an existing ActionsOrganizationSecret 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 NewActionsOrganizationSecret

func NewActionsOrganizationSecret(ctx *pulumi.Context,
	name string, args *ActionsOrganizationSecretArgs, opts ...pulumi.ResourceOption) (*ActionsOrganizationSecret, error)

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

func (*ActionsOrganizationSecret) ElementType

func (*ActionsOrganizationSecret) ElementType() reflect.Type

func (*ActionsOrganizationSecret) ToActionsOrganizationSecretOutput

func (i *ActionsOrganizationSecret) ToActionsOrganizationSecretOutput() ActionsOrganizationSecretOutput

func (*ActionsOrganizationSecret) ToActionsOrganizationSecretOutputWithContext

func (i *ActionsOrganizationSecret) ToActionsOrganizationSecretOutputWithContext(ctx context.Context) ActionsOrganizationSecretOutput

type ActionsOrganizationSecretArgs

type ActionsOrganizationSecretArgs struct {
	// Encrypted value of the secret using the Github public key in Base64 format.
	EncryptedValue pulumi.StringPtrInput
	// Plaintext value of the secret to be encrypted
	PlaintextValue pulumi.StringPtrInput
	// Name of the secret
	SecretName pulumi.StringInput
	// An array of repository ids that can access the organization secret.
	SelectedRepositoryIds pulumi.IntArrayInput
	// Configures the access that repositories have to the organization secret.
	// Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
	Visibility pulumi.StringInput
}

The set of arguments for constructing a ActionsOrganizationSecret resource.

func (ActionsOrganizationSecretArgs) ElementType

type ActionsOrganizationSecretArray

type ActionsOrganizationSecretArray []ActionsOrganizationSecretInput

func (ActionsOrganizationSecretArray) ElementType

func (ActionsOrganizationSecretArray) ToActionsOrganizationSecretArrayOutput

func (i ActionsOrganizationSecretArray) ToActionsOrganizationSecretArrayOutput() ActionsOrganizationSecretArrayOutput

func (ActionsOrganizationSecretArray) ToActionsOrganizationSecretArrayOutputWithContext

func (i ActionsOrganizationSecretArray) ToActionsOrganizationSecretArrayOutputWithContext(ctx context.Context) ActionsOrganizationSecretArrayOutput

type ActionsOrganizationSecretArrayInput

type ActionsOrganizationSecretArrayInput interface {
	pulumi.Input

	ToActionsOrganizationSecretArrayOutput() ActionsOrganizationSecretArrayOutput
	ToActionsOrganizationSecretArrayOutputWithContext(context.Context) ActionsOrganizationSecretArrayOutput
}

ActionsOrganizationSecretArrayInput is an input type that accepts ActionsOrganizationSecretArray and ActionsOrganizationSecretArrayOutput values. You can construct a concrete instance of `ActionsOrganizationSecretArrayInput` via:

ActionsOrganizationSecretArray{ ActionsOrganizationSecretArgs{...} }

type ActionsOrganizationSecretArrayOutput

type ActionsOrganizationSecretArrayOutput struct{ *pulumi.OutputState }

func (ActionsOrganizationSecretArrayOutput) ElementType

func (ActionsOrganizationSecretArrayOutput) Index

func (ActionsOrganizationSecretArrayOutput) ToActionsOrganizationSecretArrayOutput

func (o ActionsOrganizationSecretArrayOutput) ToActionsOrganizationSecretArrayOutput() ActionsOrganizationSecretArrayOutput

func (ActionsOrganizationSecretArrayOutput) ToActionsOrganizationSecretArrayOutputWithContext

func (o ActionsOrganizationSecretArrayOutput) ToActionsOrganizationSecretArrayOutputWithContext(ctx context.Context) ActionsOrganizationSecretArrayOutput

type ActionsOrganizationSecretInput

type ActionsOrganizationSecretInput interface {
	pulumi.Input

	ToActionsOrganizationSecretOutput() ActionsOrganizationSecretOutput
	ToActionsOrganizationSecretOutputWithContext(ctx context.Context) ActionsOrganizationSecretOutput
}

type ActionsOrganizationSecretMap

type ActionsOrganizationSecretMap map[string]ActionsOrganizationSecretInput

func (ActionsOrganizationSecretMap) ElementType

func (ActionsOrganizationSecretMap) ToActionsOrganizationSecretMapOutput

func (i ActionsOrganizationSecretMap) ToActionsOrganizationSecretMapOutput() ActionsOrganizationSecretMapOutput

func (ActionsOrganizationSecretMap) ToActionsOrganizationSecretMapOutputWithContext

func (i ActionsOrganizationSecretMap) ToActionsOrganizationSecretMapOutputWithContext(ctx context.Context) ActionsOrganizationSecretMapOutput

type ActionsOrganizationSecretMapInput

type ActionsOrganizationSecretMapInput interface {
	pulumi.Input

	ToActionsOrganizationSecretMapOutput() ActionsOrganizationSecretMapOutput
	ToActionsOrganizationSecretMapOutputWithContext(context.Context) ActionsOrganizationSecretMapOutput
}

ActionsOrganizationSecretMapInput is an input type that accepts ActionsOrganizationSecretMap and ActionsOrganizationSecretMapOutput values. You can construct a concrete instance of `ActionsOrganizationSecretMapInput` via:

ActionsOrganizationSecretMap{ "key": ActionsOrganizationSecretArgs{...} }

type ActionsOrganizationSecretMapOutput

type ActionsOrganizationSecretMapOutput struct{ *pulumi.OutputState }

func (ActionsOrganizationSecretMapOutput) ElementType

func (ActionsOrganizationSecretMapOutput) MapIndex

func (ActionsOrganizationSecretMapOutput) ToActionsOrganizationSecretMapOutput

func (o ActionsOrganizationSecretMapOutput) ToActionsOrganizationSecretMapOutput() ActionsOrganizationSecretMapOutput

func (ActionsOrganizationSecretMapOutput) ToActionsOrganizationSecretMapOutputWithContext

func (o ActionsOrganizationSecretMapOutput) ToActionsOrganizationSecretMapOutputWithContext(ctx context.Context) ActionsOrganizationSecretMapOutput

type ActionsOrganizationSecretOutput

type ActionsOrganizationSecretOutput struct{ *pulumi.OutputState }

func (ActionsOrganizationSecretOutput) CreatedAt added in v4.15.0

Date of actionsSecret creation.

func (ActionsOrganizationSecretOutput) ElementType

func (ActionsOrganizationSecretOutput) EncryptedValue added in v4.15.0

Encrypted value of the secret using the Github public key in Base64 format.

func (ActionsOrganizationSecretOutput) PlaintextValue added in v4.15.0

Plaintext value of the secret to be encrypted

func (ActionsOrganizationSecretOutput) SecretName added in v4.15.0

Name of the secret

func (ActionsOrganizationSecretOutput) SelectedRepositoryIds added in v4.15.0

func (o ActionsOrganizationSecretOutput) SelectedRepositoryIds() pulumi.IntArrayOutput

An array of repository ids that can access the organization secret.

func (ActionsOrganizationSecretOutput) ToActionsOrganizationSecretOutput

func (o ActionsOrganizationSecretOutput) ToActionsOrganizationSecretOutput() ActionsOrganizationSecretOutput

func (ActionsOrganizationSecretOutput) ToActionsOrganizationSecretOutputWithContext

func (o ActionsOrganizationSecretOutput) ToActionsOrganizationSecretOutputWithContext(ctx context.Context) ActionsOrganizationSecretOutput

func (ActionsOrganizationSecretOutput) UpdatedAt added in v4.15.0

Date of actionsSecret update.

func (ActionsOrganizationSecretOutput) Visibility added in v4.15.0

Configures the access that repositories have to the organization secret. Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.

type ActionsOrganizationSecretRepositories added in v4.5.0

type ActionsOrganizationSecretRepositories struct {
	pulumi.CustomResourceState

	// Name of the existing secret
	SecretName pulumi.StringOutput `pulumi:"secretName"`
	// An array of repository ids that can access the organization secret.
	SelectedRepositoryIds pulumi.IntArrayOutput `pulumi:"selectedRepositoryIds"`
}

This resource allows you to manage repository allow list for existing GitHub Actions secrets within your GitHub organization. You must have write access to an organization secret to use this resource.

This resource is only applicable when `visibility` of the existing organization secret has been set to `selected`.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		repo, err := github.LookupRepository(ctx, &GetRepositoryArgs{
			FullName: pulumi.StringRef("my-org/repo"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = github.NewActionsOrganizationSecretRepositories(ctx, "orgSecretRepos", &github.ActionsOrganizationSecretRepositoriesArgs{
			SecretName: pulumi.String("existing_secret_name"),
			SelectedRepositoryIds: pulumi.IntArray{
				pulumi.Int(repo.RepoId),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

This resource can be imported using an ID made up of the secret name

```sh

$ pulumi import github:index/actionsOrganizationSecretRepositories:ActionsOrganizationSecretRepositories test_secret_repos test_secret_name

```

func GetActionsOrganizationSecretRepositories added in v4.5.0

func GetActionsOrganizationSecretRepositories(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ActionsOrganizationSecretRepositoriesState, opts ...pulumi.ResourceOption) (*ActionsOrganizationSecretRepositories, error)

GetActionsOrganizationSecretRepositories gets an existing ActionsOrganizationSecretRepositories 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 NewActionsOrganizationSecretRepositories added in v4.5.0

func NewActionsOrganizationSecretRepositories(ctx *pulumi.Context,
	name string, args *ActionsOrganizationSecretRepositoriesArgs, opts ...pulumi.ResourceOption) (*ActionsOrganizationSecretRepositories, error)

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

func (*ActionsOrganizationSecretRepositories) ElementType added in v4.5.0

func (*ActionsOrganizationSecretRepositories) ToActionsOrganizationSecretRepositoriesOutput added in v4.5.0

func (i *ActionsOrganizationSecretRepositories) ToActionsOrganizationSecretRepositoriesOutput() ActionsOrganizationSecretRepositoriesOutput

func (*ActionsOrganizationSecretRepositories) ToActionsOrganizationSecretRepositoriesOutputWithContext added in v4.5.0

func (i *ActionsOrganizationSecretRepositories) ToActionsOrganizationSecretRepositoriesOutputWithContext(ctx context.Context) ActionsOrganizationSecretRepositoriesOutput

type ActionsOrganizationSecretRepositoriesArgs added in v4.5.0

type ActionsOrganizationSecretRepositoriesArgs struct {
	// Name of the existing secret
	SecretName pulumi.StringInput
	// An array of repository ids that can access the organization secret.
	SelectedRepositoryIds pulumi.IntArrayInput
}

The set of arguments for constructing a ActionsOrganizationSecretRepositories resource.

func (ActionsOrganizationSecretRepositoriesArgs) ElementType added in v4.5.0

type ActionsOrganizationSecretRepositoriesArray added in v4.5.0

type ActionsOrganizationSecretRepositoriesArray []ActionsOrganizationSecretRepositoriesInput

func (ActionsOrganizationSecretRepositoriesArray) ElementType added in v4.5.0

func (ActionsOrganizationSecretRepositoriesArray) ToActionsOrganizationSecretRepositoriesArrayOutput added in v4.5.0

func (i ActionsOrganizationSecretRepositoriesArray) ToActionsOrganizationSecretRepositoriesArrayOutput() ActionsOrganizationSecretRepositoriesArrayOutput

func (ActionsOrganizationSecretRepositoriesArray) ToActionsOrganizationSecretRepositoriesArrayOutputWithContext added in v4.5.0

func (i ActionsOrganizationSecretRepositoriesArray) ToActionsOrganizationSecretRepositoriesArrayOutputWithContext(ctx context.Context) ActionsOrganizationSecretRepositoriesArrayOutput

type ActionsOrganizationSecretRepositoriesArrayInput added in v4.5.0

type ActionsOrganizationSecretRepositoriesArrayInput interface {
	pulumi.Input

	ToActionsOrganizationSecretRepositoriesArrayOutput() ActionsOrganizationSecretRepositoriesArrayOutput
	ToActionsOrganizationSecretRepositoriesArrayOutputWithContext(context.Context) ActionsOrganizationSecretRepositoriesArrayOutput
}

ActionsOrganizationSecretRepositoriesArrayInput is an input type that accepts ActionsOrganizationSecretRepositoriesArray and ActionsOrganizationSecretRepositoriesArrayOutput values. You can construct a concrete instance of `ActionsOrganizationSecretRepositoriesArrayInput` via:

ActionsOrganizationSecretRepositoriesArray{ ActionsOrganizationSecretRepositoriesArgs{...} }

type ActionsOrganizationSecretRepositoriesArrayOutput added in v4.5.0

type ActionsOrganizationSecretRepositoriesArrayOutput struct{ *pulumi.OutputState }

func (ActionsOrganizationSecretRepositoriesArrayOutput) ElementType added in v4.5.0

func (ActionsOrganizationSecretRepositoriesArrayOutput) Index added in v4.5.0

func (ActionsOrganizationSecretRepositoriesArrayOutput) ToActionsOrganizationSecretRepositoriesArrayOutput added in v4.5.0

func (o ActionsOrganizationSecretRepositoriesArrayOutput) ToActionsOrganizationSecretRepositoriesArrayOutput() ActionsOrganizationSecretRepositoriesArrayOutput

func (ActionsOrganizationSecretRepositoriesArrayOutput) ToActionsOrganizationSecretRepositoriesArrayOutputWithContext added in v4.5.0

func (o ActionsOrganizationSecretRepositoriesArrayOutput) ToActionsOrganizationSecretRepositoriesArrayOutputWithContext(ctx context.Context) ActionsOrganizationSecretRepositoriesArrayOutput

type ActionsOrganizationSecretRepositoriesInput added in v4.5.0

type ActionsOrganizationSecretRepositoriesInput interface {
	pulumi.Input

	ToActionsOrganizationSecretRepositoriesOutput() ActionsOrganizationSecretRepositoriesOutput
	ToActionsOrganizationSecretRepositoriesOutputWithContext(ctx context.Context) ActionsOrganizationSecretRepositoriesOutput
}

type ActionsOrganizationSecretRepositoriesMap added in v4.5.0

type ActionsOrganizationSecretRepositoriesMap map[string]ActionsOrganizationSecretRepositoriesInput

func (ActionsOrganizationSecretRepositoriesMap) ElementType added in v4.5.0

func (ActionsOrganizationSecretRepositoriesMap) ToActionsOrganizationSecretRepositoriesMapOutput added in v4.5.0

func (i ActionsOrganizationSecretRepositoriesMap) ToActionsOrganizationSecretRepositoriesMapOutput() ActionsOrganizationSecretRepositoriesMapOutput

func (ActionsOrganizationSecretRepositoriesMap) ToActionsOrganizationSecretRepositoriesMapOutputWithContext added in v4.5.0

func (i ActionsOrganizationSecretRepositoriesMap) ToActionsOrganizationSecretRepositoriesMapOutputWithContext(ctx context.Context) ActionsOrganizationSecretRepositoriesMapOutput

type ActionsOrganizationSecretRepositoriesMapInput added in v4.5.0

type ActionsOrganizationSecretRepositoriesMapInput interface {
	pulumi.Input

	ToActionsOrganizationSecretRepositoriesMapOutput() ActionsOrganizationSecretRepositoriesMapOutput
	ToActionsOrganizationSecretRepositoriesMapOutputWithContext(context.Context) ActionsOrganizationSecretRepositoriesMapOutput
}

ActionsOrganizationSecretRepositoriesMapInput is an input type that accepts ActionsOrganizationSecretRepositoriesMap and ActionsOrganizationSecretRepositoriesMapOutput values. You can construct a concrete instance of `ActionsOrganizationSecretRepositoriesMapInput` via:

ActionsOrganizationSecretRepositoriesMap{ "key": ActionsOrganizationSecretRepositoriesArgs{...} }

type ActionsOrganizationSecretRepositoriesMapOutput added in v4.5.0

type ActionsOrganizationSecretRepositoriesMapOutput struct{ *pulumi.OutputState }

func (ActionsOrganizationSecretRepositoriesMapOutput) ElementType added in v4.5.0

func (ActionsOrganizationSecretRepositoriesMapOutput) MapIndex added in v4.5.0

func (ActionsOrganizationSecretRepositoriesMapOutput) ToActionsOrganizationSecretRepositoriesMapOutput added in v4.5.0

func (o ActionsOrganizationSecretRepositoriesMapOutput) ToActionsOrganizationSecretRepositoriesMapOutput() ActionsOrganizationSecretRepositoriesMapOutput

func (ActionsOrganizationSecretRepositoriesMapOutput) ToActionsOrganizationSecretRepositoriesMapOutputWithContext added in v4.5.0

func (o ActionsOrganizationSecretRepositoriesMapOutput) ToActionsOrganizationSecretRepositoriesMapOutputWithContext(ctx context.Context) ActionsOrganizationSecretRepositoriesMapOutput

type ActionsOrganizationSecretRepositoriesOutput added in v4.5.0

type ActionsOrganizationSecretRepositoriesOutput struct{ *pulumi.OutputState }

func (ActionsOrganizationSecretRepositoriesOutput) ElementType added in v4.5.0

func (ActionsOrganizationSecretRepositoriesOutput) SecretName added in v4.15.0

Name of the existing secret

func (ActionsOrganizationSecretRepositoriesOutput) SelectedRepositoryIds added in v4.15.0

An array of repository ids that can access the organization secret.

func (ActionsOrganizationSecretRepositoriesOutput) ToActionsOrganizationSecretRepositoriesOutput added in v4.5.0

func (o ActionsOrganizationSecretRepositoriesOutput) ToActionsOrganizationSecretRepositoriesOutput() ActionsOrganizationSecretRepositoriesOutput

func (ActionsOrganizationSecretRepositoriesOutput) ToActionsOrganizationSecretRepositoriesOutputWithContext added in v4.5.0

func (o ActionsOrganizationSecretRepositoriesOutput) ToActionsOrganizationSecretRepositoriesOutputWithContext(ctx context.Context) ActionsOrganizationSecretRepositoriesOutput

type ActionsOrganizationSecretRepositoriesState added in v4.5.0

type ActionsOrganizationSecretRepositoriesState struct {
	// Name of the existing secret
	SecretName pulumi.StringPtrInput
	// An array of repository ids that can access the organization secret.
	SelectedRepositoryIds pulumi.IntArrayInput
}

func (ActionsOrganizationSecretRepositoriesState) ElementType added in v4.5.0

type ActionsOrganizationSecretState

type ActionsOrganizationSecretState struct {
	// Date of actionsSecret creation.
	CreatedAt pulumi.StringPtrInput
	// Encrypted value of the secret using the Github public key in Base64 format.
	EncryptedValue pulumi.StringPtrInput
	// Plaintext value of the secret to be encrypted
	PlaintextValue pulumi.StringPtrInput
	// Name of the secret
	SecretName pulumi.StringPtrInput
	// An array of repository ids that can access the organization secret.
	SelectedRepositoryIds pulumi.IntArrayInput
	// Date of actionsSecret update.
	UpdatedAt pulumi.StringPtrInput
	// Configures the access that repositories have to the organization secret.
	// Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
	Visibility pulumi.StringPtrInput
}

func (ActionsOrganizationSecretState) ElementType

type ActionsRunnerGroup added in v4.5.0

type ActionsRunnerGroup struct {
	pulumi.CustomResourceState

	// Whether public repositories can be added to the runner group
	AllowsPublicRepositories pulumi.BoolOutput `pulumi:"allowsPublicRepositories"`
	// Whether this is the default runner group
	Default pulumi.BoolOutput `pulumi:"default"`
	// An etag representing the runner group object
	Etag pulumi.StringOutput `pulumi:"etag"`
	// Whether the runner group is inherited from the enterprise level
	Inherited pulumi.BoolOutput `pulumi:"inherited"`
	// Name of the runner group
	Name pulumi.StringOutput `pulumi:"name"`
	// The GitHub API URL for the runner group's runners
	RunnersUrl pulumi.StringOutput `pulumi:"runnersUrl"`
	// Github API URL for the runner group's repositories
	SelectedRepositoriesUrl pulumi.StringOutput `pulumi:"selectedRepositoriesUrl"`
	// IDs of the repositories which should be added to the runner group
	SelectedRepositoryIds pulumi.IntArrayOutput `pulumi:"selectedRepositoryIds"`
	// Visibility of a runner group. Whether the runner group can include `all`, `selected`, or `private` repositories. A value of `private` is not currently supported due to limitations in the GitHub API.
	Visibility pulumi.StringOutput `pulumi:"visibility"`
}

This resource allows you to create and manage GitHub Actions runner groups within your GitHub enterprise organizations. You must have admin access to an organization to use this resource.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleRepository, err := github.NewRepository(ctx, "exampleRepository", nil)
		if err != nil {
			return err
		}
		_, err = github.NewActionsRunnerGroup(ctx, "exampleActionsRunnerGroup", &github.ActionsRunnerGroupArgs{
			Visibility: pulumi.String("selected"),
			SelectedRepositoryIds: pulumi.IntArray{
				exampleRepository.RepoId,
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

This resource can be imported using the ID of the runner group

```sh

$ pulumi import github:index/actionsRunnerGroup:ActionsRunnerGroup test 7

```

func GetActionsRunnerGroup added in v4.5.0

func GetActionsRunnerGroup(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ActionsRunnerGroupState, opts ...pulumi.ResourceOption) (*ActionsRunnerGroup, error)

GetActionsRunnerGroup gets an existing ActionsRunnerGroup 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 NewActionsRunnerGroup added in v4.5.0

func NewActionsRunnerGroup(ctx *pulumi.Context,
	name string, args *ActionsRunnerGroupArgs, opts ...pulumi.ResourceOption) (*ActionsRunnerGroup, error)

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

func (*ActionsRunnerGroup) ElementType added in v4.5.0

func (*ActionsRunnerGroup) ElementType() reflect.Type

func (*ActionsRunnerGroup) ToActionsRunnerGroupOutput added in v4.5.0

func (i *ActionsRunnerGroup) ToActionsRunnerGroupOutput() ActionsRunnerGroupOutput

func (*ActionsRunnerGroup) ToActionsRunnerGroupOutputWithContext added in v4.5.0

func (i *ActionsRunnerGroup) ToActionsRunnerGroupOutputWithContext(ctx context.Context) ActionsRunnerGroupOutput

type ActionsRunnerGroupArgs added in v4.5.0

type ActionsRunnerGroupArgs struct {
	// Name of the runner group
	Name pulumi.StringPtrInput
	// IDs of the repositories which should be added to the runner group
	SelectedRepositoryIds pulumi.IntArrayInput
	// Visibility of a runner group. Whether the runner group can include `all`, `selected`, or `private` repositories. A value of `private` is not currently supported due to limitations in the GitHub API.
	Visibility pulumi.StringInput
}

The set of arguments for constructing a ActionsRunnerGroup resource.

func (ActionsRunnerGroupArgs) ElementType added in v4.5.0

func (ActionsRunnerGroupArgs) ElementType() reflect.Type

type ActionsRunnerGroupArray added in v4.5.0

type ActionsRunnerGroupArray []ActionsRunnerGroupInput

func (ActionsRunnerGroupArray) ElementType added in v4.5.0

func (ActionsRunnerGroupArray) ElementType() reflect.Type

func (ActionsRunnerGroupArray) ToActionsRunnerGroupArrayOutput added in v4.5.0

func (i ActionsRunnerGroupArray) ToActionsRunnerGroupArrayOutput() ActionsRunnerGroupArrayOutput

func (ActionsRunnerGroupArray) ToActionsRunnerGroupArrayOutputWithContext added in v4.5.0

func (i ActionsRunnerGroupArray) ToActionsRunnerGroupArrayOutputWithContext(ctx context.Context) ActionsRunnerGroupArrayOutput

type ActionsRunnerGroupArrayInput added in v4.5.0

type ActionsRunnerGroupArrayInput interface {
	pulumi.Input

	ToActionsRunnerGroupArrayOutput() ActionsRunnerGroupArrayOutput
	ToActionsRunnerGroupArrayOutputWithContext(context.Context) ActionsRunnerGroupArrayOutput
}

ActionsRunnerGroupArrayInput is an input type that accepts ActionsRunnerGroupArray and ActionsRunnerGroupArrayOutput values. You can construct a concrete instance of `ActionsRunnerGroupArrayInput` via:

ActionsRunnerGroupArray{ ActionsRunnerGroupArgs{...} }

type ActionsRunnerGroupArrayOutput added in v4.5.0

type ActionsRunnerGroupArrayOutput struct{ *pulumi.OutputState }

func (ActionsRunnerGroupArrayOutput) ElementType added in v4.5.0

func (ActionsRunnerGroupArrayOutput) Index added in v4.5.0

func (ActionsRunnerGroupArrayOutput) ToActionsRunnerGroupArrayOutput added in v4.5.0

func (o ActionsRunnerGroupArrayOutput) ToActionsRunnerGroupArrayOutput() ActionsRunnerGroupArrayOutput

func (ActionsRunnerGroupArrayOutput) ToActionsRunnerGroupArrayOutputWithContext added in v4.5.0

func (o ActionsRunnerGroupArrayOutput) ToActionsRunnerGroupArrayOutputWithContext(ctx context.Context) ActionsRunnerGroupArrayOutput

type ActionsRunnerGroupInput added in v4.5.0

type ActionsRunnerGroupInput interface {
	pulumi.Input

	ToActionsRunnerGroupOutput() ActionsRunnerGroupOutput
	ToActionsRunnerGroupOutputWithContext(ctx context.Context) ActionsRunnerGroupOutput
}

type ActionsRunnerGroupMap added in v4.5.0

type ActionsRunnerGroupMap map[string]ActionsRunnerGroupInput

func (ActionsRunnerGroupMap) ElementType added in v4.5.0

func (ActionsRunnerGroupMap) ElementType() reflect.Type

func (ActionsRunnerGroupMap) ToActionsRunnerGroupMapOutput added in v4.5.0

func (i ActionsRunnerGroupMap) ToActionsRunnerGroupMapOutput() ActionsRunnerGroupMapOutput

func (ActionsRunnerGroupMap) ToActionsRunnerGroupMapOutputWithContext added in v4.5.0

func (i ActionsRunnerGroupMap) ToActionsRunnerGroupMapOutputWithContext(ctx context.Context) ActionsRunnerGroupMapOutput

type ActionsRunnerGroupMapInput added in v4.5.0

type ActionsRunnerGroupMapInput interface {
	pulumi.Input

	ToActionsRunnerGroupMapOutput() ActionsRunnerGroupMapOutput
	ToActionsRunnerGroupMapOutputWithContext(context.Context) ActionsRunnerGroupMapOutput
}

ActionsRunnerGroupMapInput is an input type that accepts ActionsRunnerGroupMap and ActionsRunnerGroupMapOutput values. You can construct a concrete instance of `ActionsRunnerGroupMapInput` via:

ActionsRunnerGroupMap{ "key": ActionsRunnerGroupArgs{...} }

type ActionsRunnerGroupMapOutput added in v4.5.0

type ActionsRunnerGroupMapOutput struct{ *pulumi.OutputState }

func (ActionsRunnerGroupMapOutput) ElementType added in v4.5.0

func (ActionsRunnerGroupMapOutput) MapIndex added in v4.5.0

func (ActionsRunnerGroupMapOutput) ToActionsRunnerGroupMapOutput added in v4.5.0

func (o ActionsRunnerGroupMapOutput) ToActionsRunnerGroupMapOutput() ActionsRunnerGroupMapOutput

func (ActionsRunnerGroupMapOutput) ToActionsRunnerGroupMapOutputWithContext added in v4.5.0

func (o ActionsRunnerGroupMapOutput) ToActionsRunnerGroupMapOutputWithContext(ctx context.Context) ActionsRunnerGroupMapOutput

type ActionsRunnerGroupOutput added in v4.5.0

type ActionsRunnerGroupOutput struct{ *pulumi.OutputState }

func (ActionsRunnerGroupOutput) AllowsPublicRepositories added in v4.15.0

func (o ActionsRunnerGroupOutput) AllowsPublicRepositories() pulumi.BoolOutput

Whether public repositories can be added to the runner group

func (ActionsRunnerGroupOutput) Default added in v4.15.0

Whether this is the default runner group

func (ActionsRunnerGroupOutput) ElementType added in v4.5.0

func (ActionsRunnerGroupOutput) ElementType() reflect.Type

func (ActionsRunnerGroupOutput) Etag added in v4.15.0

An etag representing the runner group object

func (ActionsRunnerGroupOutput) Inherited added in v4.15.0

Whether the runner group is inherited from the enterprise level

func (ActionsRunnerGroupOutput) Name added in v4.15.0

Name of the runner group

func (ActionsRunnerGroupOutput) RunnersUrl added in v4.15.0

The GitHub API URL for the runner group's runners

func (ActionsRunnerGroupOutput) SelectedRepositoriesUrl added in v4.15.0

func (o ActionsRunnerGroupOutput) SelectedRepositoriesUrl() pulumi.StringOutput

Github API URL for the runner group's repositories

func (ActionsRunnerGroupOutput) SelectedRepositoryIds added in v4.15.0

func (o ActionsRunnerGroupOutput) SelectedRepositoryIds() pulumi.IntArrayOutput

IDs of the repositories which should be added to the runner group

func (ActionsRunnerGroupOutput) ToActionsRunnerGroupOutput added in v4.5.0

func (o ActionsRunnerGroupOutput) ToActionsRunnerGroupOutput() ActionsRunnerGroupOutput

func (ActionsRunnerGroupOutput) ToActionsRunnerGroupOutputWithContext added in v4.5.0

func (o ActionsRunnerGroupOutput) ToActionsRunnerGroupOutputWithContext(ctx context.Context) ActionsRunnerGroupOutput

func (ActionsRunnerGroupOutput) Visibility added in v4.15.0

Visibility of a runner group. Whether the runner group can include `all`, `selected`, or `private` repositories. A value of `private` is not currently supported due to limitations in the GitHub API.

type ActionsRunnerGroupState added in v4.5.0

type ActionsRunnerGroupState struct {
	// Whether public repositories can be added to the runner group
	AllowsPublicRepositories pulumi.BoolPtrInput
	// Whether this is the default runner group
	Default pulumi.BoolPtrInput
	// An etag representing the runner group object
	Etag pulumi.StringPtrInput
	// Whether the runner group is inherited from the enterprise level
	Inherited pulumi.BoolPtrInput
	// Name of the runner group
	Name pulumi.StringPtrInput
	// The GitHub API URL for the runner group's runners
	RunnersUrl pulumi.StringPtrInput
	// Github API URL for the runner group's repositories
	SelectedRepositoriesUrl pulumi.StringPtrInput
	// IDs of the repositories which should be added to the runner group
	SelectedRepositoryIds pulumi.IntArrayInput
	// Visibility of a runner group. Whether the runner group can include `all`, `selected`, or `private` repositories. A value of `private` is not currently supported due to limitations in the GitHub API.
	Visibility pulumi.StringPtrInput
}

func (ActionsRunnerGroupState) ElementType added in v4.5.0

func (ActionsRunnerGroupState) ElementType() reflect.Type

type ActionsSecret

type ActionsSecret struct {
	pulumi.CustomResourceState

	// Date of actionsSecret creation.
	CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
	// Encrypted value of the secret using the Github public key in Base64 format.
	EncryptedValue pulumi.StringPtrOutput `pulumi:"encryptedValue"`
	// Plaintext value of the secret to be encrypted
	PlaintextValue pulumi.StringPtrOutput `pulumi:"plaintextValue"`
	// Name of the repository
	Repository pulumi.StringOutput `pulumi:"repository"`
	// Name of the secret
	SecretName pulumi.StringOutput `pulumi:"secretName"`
	// Date of actionsSecret update.
	UpdatedAt pulumi.StringOutput `pulumi:"updatedAt"`
}

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.GetActionsPublicKey(ctx, &GetActionsPublicKeyArgs{
			Repository: "example_repository",
		}, nil)
		if err != nil {
			return err
		}
		_, err = github.NewActionsSecret(ctx, "exampleSecretActionsSecret", &github.ActionsSecretArgs{
			Repository:     pulumi.String("example_repository"),
			SecretName:     pulumi.String("example_secret_name"),
			PlaintextValue: pulumi.Any(_var.Some_secret_string),
		})
		if err != nil {
			return err
		}
		_, err = github.NewActionsSecret(ctx, "exampleSecretIndex/actionsSecretActionsSecret", &github.ActionsSecretArgs{
			Repository:     pulumi.String("example_repository"),
			SecretName:     pulumi.String("example_secret_name"),
			EncryptedValue: pulumi.Any(_var.Some_encrypted_secret_string),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetActionsSecret

func GetActionsSecret(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ActionsSecretState, opts ...pulumi.ResourceOption) (*ActionsSecret, error)

GetActionsSecret gets an existing ActionsSecret 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 NewActionsSecret

func NewActionsSecret(ctx *pulumi.Context,
	name string, args *ActionsSecretArgs, opts ...pulumi.ResourceOption) (*ActionsSecret, error)

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

func (*ActionsSecret) ElementType

func (*ActionsSecret) ElementType() reflect.Type

func (*ActionsSecret) ToActionsSecretOutput

func (i *ActionsSecret) ToActionsSecretOutput() ActionsSecretOutput

func (*ActionsSecret) ToActionsSecretOutputWithContext

func (i *ActionsSecret) ToActionsSecretOutputWithContext(ctx context.Context) ActionsSecretOutput

type ActionsSecretArgs

type ActionsSecretArgs struct {
	// Encrypted value of the secret using the Github public key in Base64 format.
	EncryptedValue pulumi.StringPtrInput
	// Plaintext value of the secret to be encrypted
	PlaintextValue pulumi.StringPtrInput
	// Name of the repository
	Repository pulumi.StringInput
	// Name of the secret
	SecretName pulumi.StringInput
}

The set of arguments for constructing a ActionsSecret resource.

func (ActionsSecretArgs) ElementType

func (ActionsSecretArgs) ElementType() reflect.Type

type ActionsSecretArray

type ActionsSecretArray []ActionsSecretInput

func (ActionsSecretArray) ElementType

func (ActionsSecretArray) ElementType() reflect.Type

func (ActionsSecretArray) ToActionsSecretArrayOutput

func (i ActionsSecretArray) ToActionsSecretArrayOutput() ActionsSecretArrayOutput

func (ActionsSecretArray) ToActionsSecretArrayOutputWithContext

func (i ActionsSecretArray) ToActionsSecretArrayOutputWithContext(ctx context.Context) ActionsSecretArrayOutput

type ActionsSecretArrayInput

type ActionsSecretArrayInput interface {
	pulumi.Input

	ToActionsSecretArrayOutput() ActionsSecretArrayOutput
	ToActionsSecretArrayOutputWithContext(context.Context) ActionsSecretArrayOutput
}

ActionsSecretArrayInput is an input type that accepts ActionsSecretArray and ActionsSecretArrayOutput values. You can construct a concrete instance of `ActionsSecretArrayInput` via:

ActionsSecretArray{ ActionsSecretArgs{...} }

type ActionsSecretArrayOutput

type ActionsSecretArrayOutput struct{ *pulumi.OutputState }

func (ActionsSecretArrayOutput) ElementType

func (ActionsSecretArrayOutput) ElementType() reflect.Type

func (ActionsSecretArrayOutput) Index

func (ActionsSecretArrayOutput) ToActionsSecretArrayOutput

func (o ActionsSecretArrayOutput) ToActionsSecretArrayOutput() ActionsSecretArrayOutput

func (ActionsSecretArrayOutput) ToActionsSecretArrayOutputWithContext

func (o ActionsSecretArrayOutput) ToActionsSecretArrayOutputWithContext(ctx context.Context) ActionsSecretArrayOutput

type ActionsSecretInput

type ActionsSecretInput interface {
	pulumi.Input

	ToActionsSecretOutput() ActionsSecretOutput
	ToActionsSecretOutputWithContext(ctx context.Context) ActionsSecretOutput
}

type ActionsSecretMap

type ActionsSecretMap map[string]ActionsSecretInput

func (ActionsSecretMap) ElementType

func (ActionsSecretMap) ElementType() reflect.Type

func (ActionsSecretMap) ToActionsSecretMapOutput

func (i ActionsSecretMap) ToActionsSecretMapOutput() ActionsSecretMapOutput

func (ActionsSecretMap) ToActionsSecretMapOutputWithContext

func (i ActionsSecretMap) ToActionsSecretMapOutputWithContext(ctx context.Context) ActionsSecretMapOutput

type ActionsSecretMapInput

type ActionsSecretMapInput interface {
	pulumi.Input

	ToActionsSecretMapOutput() ActionsSecretMapOutput
	ToActionsSecretMapOutputWithContext(context.Context) ActionsSecretMapOutput
}

ActionsSecretMapInput is an input type that accepts ActionsSecretMap and ActionsSecretMapOutput values. You can construct a concrete instance of `ActionsSecretMapInput` via:

ActionsSecretMap{ "key": ActionsSecretArgs{...} }

type ActionsSecretMapOutput

type ActionsSecretMapOutput struct{ *pulumi.OutputState }

func (ActionsSecretMapOutput) ElementType

func (ActionsSecretMapOutput) ElementType() reflect.Type

func (ActionsSecretMapOutput) MapIndex

func (ActionsSecretMapOutput) ToActionsSecretMapOutput

func (o ActionsSecretMapOutput) ToActionsSecretMapOutput() ActionsSecretMapOutput

func (ActionsSecretMapOutput) ToActionsSecretMapOutputWithContext

func (o ActionsSecretMapOutput) ToActionsSecretMapOutputWithContext(ctx context.Context) ActionsSecretMapOutput

type ActionsSecretOutput

type ActionsSecretOutput struct{ *pulumi.OutputState }

func (ActionsSecretOutput) CreatedAt added in v4.15.0

func (o ActionsSecretOutput) CreatedAt() pulumi.StringOutput

Date of actionsSecret creation.

func (ActionsSecretOutput) ElementType

func (ActionsSecretOutput) ElementType() reflect.Type

func (ActionsSecretOutput) EncryptedValue added in v4.15.0

func (o ActionsSecretOutput) EncryptedValue() pulumi.StringPtrOutput

Encrypted value of the secret using the Github public key in Base64 format.

func (ActionsSecretOutput) PlaintextValue added in v4.15.0

func (o ActionsSecretOutput) PlaintextValue() pulumi.StringPtrOutput

Plaintext value of the secret to be encrypted

func (ActionsSecretOutput) Repository added in v4.15.0

func (o ActionsSecretOutput) Repository() pulumi.StringOutput

Name of the repository

func (ActionsSecretOutput) SecretName added in v4.15.0

func (o ActionsSecretOutput) SecretName() pulumi.StringOutput

Name of the secret

func (ActionsSecretOutput) ToActionsSecretOutput

func (o ActionsSecretOutput) ToActionsSecretOutput() ActionsSecretOutput

func (ActionsSecretOutput) ToActionsSecretOutputWithContext

func (o ActionsSecretOutput) ToActionsSecretOutputWithContext(ctx context.Context) ActionsSecretOutput

func (ActionsSecretOutput) UpdatedAt added in v4.15.0

func (o ActionsSecretOutput) UpdatedAt() pulumi.StringOutput

Date of actionsSecret update.

type ActionsSecretState

type ActionsSecretState struct {
	// Date of actionsSecret creation.
	CreatedAt pulumi.StringPtrInput
	// Encrypted value of the secret using the Github public key in Base64 format.
	EncryptedValue pulumi.StringPtrInput
	// Plaintext value of the secret to be encrypted
	PlaintextValue pulumi.StringPtrInput
	// Name of the repository
	Repository pulumi.StringPtrInput
	// Name of the secret
	SecretName pulumi.StringPtrInput
	// Date of actionsSecret update.
	UpdatedAt pulumi.StringPtrInput
}

func (ActionsSecretState) ElementType

func (ActionsSecretState) ElementType() reflect.Type

type AppInstallationRepository

type AppInstallationRepository struct {
	pulumi.CustomResourceState

	// The GitHub app installation id.
	InstallationId pulumi.StringOutput `pulumi:"installationId"`
	RepoId         pulumi.IntOutput    `pulumi:"repoId"`
	// The repository to install the app on.
	Repository pulumi.StringOutput `pulumi:"repository"`
}

> **Note**: This resource is not compatible with the GitHub App Installation authentication method.

This resource manages relationships between app installations and repositories in your GitHub organization.

Creating this resource installs a particular app on a particular repository.

The app installation and the repository must both belong to the same organization on GitHub. Note: you can review your organization's installations by the following the instructions at this [link](https://docs.github.com/en/github/setting-up-and-managing-organizations-and-teams/reviewing-your-organizations-installed-integrations).

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		someRepo, err := github.NewRepository(ctx, "someRepo", nil)
		if err != nil {
			return err
		}
		_, err = github.NewAppInstallationRepository(ctx, "someAppRepo", &github.AppInstallationRepositoryArgs{
			InstallationId: pulumi.String("1234567"),
			Repository:     someRepo.Name,
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

GitHub App Installation Repository can be imported using an ID made up of `installation_id:repository`, e.g.

```sh

$ pulumi import github:index/appInstallationRepository:AppInstallationRepository terraform_repo 1234567:terraform

```

func GetAppInstallationRepository

func GetAppInstallationRepository(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AppInstallationRepositoryState, opts ...pulumi.ResourceOption) (*AppInstallationRepository, error)

GetAppInstallationRepository gets an existing AppInstallationRepository 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 NewAppInstallationRepository

func NewAppInstallationRepository(ctx *pulumi.Context,
	name string, args *AppInstallationRepositoryArgs, opts ...pulumi.ResourceOption) (*AppInstallationRepository, error)

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

func (*AppInstallationRepository) ElementType

func (*AppInstallationRepository) ElementType() reflect.Type

func (*AppInstallationRepository) ToAppInstallationRepositoryOutput

func (i *AppInstallationRepository) ToAppInstallationRepositoryOutput() AppInstallationRepositoryOutput

func (*AppInstallationRepository) ToAppInstallationRepositoryOutputWithContext

func (i *AppInstallationRepository) ToAppInstallationRepositoryOutputWithContext(ctx context.Context) AppInstallationRepositoryOutput

type AppInstallationRepositoryArgs

type AppInstallationRepositoryArgs struct {
	// The GitHub app installation id.
	InstallationId pulumi.StringInput
	// The repository to install the app on.
	Repository pulumi.StringInput
}

The set of arguments for constructing a AppInstallationRepository resource.

func (AppInstallationRepositoryArgs) ElementType

type AppInstallationRepositoryArray

type AppInstallationRepositoryArray []AppInstallationRepositoryInput

func (AppInstallationRepositoryArray) ElementType

func (AppInstallationRepositoryArray) ToAppInstallationRepositoryArrayOutput

func (i AppInstallationRepositoryArray) ToAppInstallationRepositoryArrayOutput() AppInstallationRepositoryArrayOutput

func (AppInstallationRepositoryArray) ToAppInstallationRepositoryArrayOutputWithContext

func (i AppInstallationRepositoryArray) ToAppInstallationRepositoryArrayOutputWithContext(ctx context.Context) AppInstallationRepositoryArrayOutput

type AppInstallationRepositoryArrayInput

type AppInstallationRepositoryArrayInput interface {
	pulumi.Input

	ToAppInstallationRepositoryArrayOutput() AppInstallationRepositoryArrayOutput
	ToAppInstallationRepositoryArrayOutputWithContext(context.Context) AppInstallationRepositoryArrayOutput
}

AppInstallationRepositoryArrayInput is an input type that accepts AppInstallationRepositoryArray and AppInstallationRepositoryArrayOutput values. You can construct a concrete instance of `AppInstallationRepositoryArrayInput` via:

AppInstallationRepositoryArray{ AppInstallationRepositoryArgs{...} }

type AppInstallationRepositoryArrayOutput

type AppInstallationRepositoryArrayOutput struct{ *pulumi.OutputState }

func (AppInstallationRepositoryArrayOutput) ElementType

func (AppInstallationRepositoryArrayOutput) Index

func (AppInstallationRepositoryArrayOutput) ToAppInstallationRepositoryArrayOutput

func (o AppInstallationRepositoryArrayOutput) ToAppInstallationRepositoryArrayOutput() AppInstallationRepositoryArrayOutput

func (AppInstallationRepositoryArrayOutput) ToAppInstallationRepositoryArrayOutputWithContext

func (o AppInstallationRepositoryArrayOutput) ToAppInstallationRepositoryArrayOutputWithContext(ctx context.Context) AppInstallationRepositoryArrayOutput

type AppInstallationRepositoryInput

type AppInstallationRepositoryInput interface {
	pulumi.Input

	ToAppInstallationRepositoryOutput() AppInstallationRepositoryOutput
	ToAppInstallationRepositoryOutputWithContext(ctx context.Context) AppInstallationRepositoryOutput
}

type AppInstallationRepositoryMap

type AppInstallationRepositoryMap map[string]AppInstallationRepositoryInput

func (AppInstallationRepositoryMap) ElementType

func (AppInstallationRepositoryMap) ToAppInstallationRepositoryMapOutput

func (i AppInstallationRepositoryMap) ToAppInstallationRepositoryMapOutput() AppInstallationRepositoryMapOutput

func (AppInstallationRepositoryMap) ToAppInstallationRepositoryMapOutputWithContext

func (i AppInstallationRepositoryMap) ToAppInstallationRepositoryMapOutputWithContext(ctx context.Context) AppInstallationRepositoryMapOutput

type AppInstallationRepositoryMapInput

type AppInstallationRepositoryMapInput interface {
	pulumi.Input

	ToAppInstallationRepositoryMapOutput() AppInstallationRepositoryMapOutput
	ToAppInstallationRepositoryMapOutputWithContext(context.Context) AppInstallationRepositoryMapOutput
}

AppInstallationRepositoryMapInput is an input type that accepts AppInstallationRepositoryMap and AppInstallationRepositoryMapOutput values. You can construct a concrete instance of `AppInstallationRepositoryMapInput` via:

AppInstallationRepositoryMap{ "key": AppInstallationRepositoryArgs{...} }

type AppInstallationRepositoryMapOutput

type AppInstallationRepositoryMapOutput struct{ *pulumi.OutputState }

func (AppInstallationRepositoryMapOutput) ElementType

func (AppInstallationRepositoryMapOutput) MapIndex

func (AppInstallationRepositoryMapOutput) ToAppInstallationRepositoryMapOutput

func (o AppInstallationRepositoryMapOutput) ToAppInstallationRepositoryMapOutput() AppInstallationRepositoryMapOutput

func (AppInstallationRepositoryMapOutput) ToAppInstallationRepositoryMapOutputWithContext

func (o AppInstallationRepositoryMapOutput) ToAppInstallationRepositoryMapOutputWithContext(ctx context.Context) AppInstallationRepositoryMapOutput

type AppInstallationRepositoryOutput

type AppInstallationRepositoryOutput struct{ *pulumi.OutputState }

func (AppInstallationRepositoryOutput) ElementType

func (AppInstallationRepositoryOutput) InstallationId added in v4.15.0

The GitHub app installation id.

func (AppInstallationRepositoryOutput) RepoId added in v4.15.0

func (AppInstallationRepositoryOutput) Repository added in v4.15.0

The repository to install the app on.

func (AppInstallationRepositoryOutput) ToAppInstallationRepositoryOutput

func (o AppInstallationRepositoryOutput) ToAppInstallationRepositoryOutput() AppInstallationRepositoryOutput

func (AppInstallationRepositoryOutput) ToAppInstallationRepositoryOutputWithContext

func (o AppInstallationRepositoryOutput) ToAppInstallationRepositoryOutputWithContext(ctx context.Context) AppInstallationRepositoryOutput

type AppInstallationRepositoryState

type AppInstallationRepositoryState struct {
	// The GitHub app installation id.
	InstallationId pulumi.StringPtrInput
	RepoId         pulumi.IntPtrInput
	// The repository to install the app on.
	Repository pulumi.StringPtrInput
}

func (AppInstallationRepositoryState) ElementType

type Branch

type Branch struct {
	pulumi.CustomResourceState

	// The repository branch to create.
	Branch pulumi.StringOutput `pulumi:"branch"`
	// An etag representing the Branch object.
	Etag pulumi.StringOutput `pulumi:"etag"`
	// A string representing a branch reference, in the form of `refs/heads/<branch>`.
	Ref pulumi.StringOutput `pulumi:"ref"`
	// The GitHub repository name.
	Repository pulumi.StringOutput `pulumi:"repository"`
	// A string storing the reference's `HEAD` commit's SHA1.
	Sha pulumi.StringOutput `pulumi:"sha"`
	// The branch name to start from. Defaults to `main`.
	SourceBranch pulumi.StringPtrOutput `pulumi:"sourceBranch"`
	// The commit hash to start from. Defaults to the tip of `sourceBranch`. If provided, `sourceBranch` is ignored.
	SourceSha pulumi.StringOutput `pulumi:"sourceSha"`
}

This resource allows you to create and manage branches within your repository.

Additional constraints can be applied to ensure your branch is created from another branch or commit.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.NewBranch(ctx, "development", &github.BranchArgs{
			Branch:     pulumi.String("development"),
			Repository: pulumi.String("example"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

GitHub Branch can be imported using an ID made up of `repository:branch`, e.g.

```sh

$ pulumi import github:index/branch:Branch terraform terraform:main

```

Importing github branch into an instance object (when using a for each block to manage multiple branches)

```sh

$ pulumi import github:index/branch:Branch terraform["terraform"] terraform:main

```

Optionally, a source branch may be specified using an ID of `repository:branch:source_branch`. This is useful for importing branches that do not branch directly off main.

```sh

$ pulumi import github:index/branch:Branch terraform terraform:feature-branch:dev

```

func GetBranch

func GetBranch(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *BranchState, opts ...pulumi.ResourceOption) (*Branch, error)

GetBranch gets an existing Branch 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 NewBranch

func NewBranch(ctx *pulumi.Context,
	name string, args *BranchArgs, opts ...pulumi.ResourceOption) (*Branch, error)

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

func (*Branch) ElementType

func (*Branch) ElementType() reflect.Type

func (*Branch) ToBranchOutput

func (i *Branch) ToBranchOutput() BranchOutput

func (*Branch) ToBranchOutputWithContext

func (i *Branch) ToBranchOutputWithContext(ctx context.Context) BranchOutput

type BranchArgs

type BranchArgs struct {
	// The repository branch to create.
	Branch pulumi.StringInput
	// The GitHub repository name.
	Repository pulumi.StringInput
	// The branch name to start from. Defaults to `main`.
	SourceBranch pulumi.StringPtrInput
	// The commit hash to start from. Defaults to the tip of `sourceBranch`. If provided, `sourceBranch` is ignored.
	SourceSha pulumi.StringPtrInput
}

The set of arguments for constructing a Branch resource.

func (BranchArgs) ElementType

func (BranchArgs) ElementType() reflect.Type

type BranchArray

type BranchArray []BranchInput

func (BranchArray) ElementType

func (BranchArray) ElementType() reflect.Type

func (BranchArray) ToBranchArrayOutput

func (i BranchArray) ToBranchArrayOutput() BranchArrayOutput

func (BranchArray) ToBranchArrayOutputWithContext

func (i BranchArray) ToBranchArrayOutputWithContext(ctx context.Context) BranchArrayOutput

type BranchArrayInput

type BranchArrayInput interface {
	pulumi.Input

	ToBranchArrayOutput() BranchArrayOutput
	ToBranchArrayOutputWithContext(context.Context) BranchArrayOutput
}

BranchArrayInput is an input type that accepts BranchArray and BranchArrayOutput values. You can construct a concrete instance of `BranchArrayInput` via:

BranchArray{ BranchArgs{...} }

type BranchArrayOutput

type BranchArrayOutput struct{ *pulumi.OutputState }

func (BranchArrayOutput) ElementType

func (BranchArrayOutput) ElementType() reflect.Type

func (BranchArrayOutput) Index

func (BranchArrayOutput) ToBranchArrayOutput

func (o BranchArrayOutput) ToBranchArrayOutput() BranchArrayOutput

func (BranchArrayOutput) ToBranchArrayOutputWithContext

func (o BranchArrayOutput) ToBranchArrayOutputWithContext(ctx context.Context) BranchArrayOutput

type BranchDefault

type BranchDefault struct {
	pulumi.CustomResourceState

	// The branch (e.g. `main`)
	Branch pulumi.StringOutput `pulumi:"branch"`
	// The GitHub repository
	Repository pulumi.StringOutput `pulumi:"repository"`
}

Provides a GitHub branch default resource.

This resource allows you to set the default branch for a given repository.

Note that use of this resource is incompatible with the `defaultBranch` option of the `Repository` resource. Using both will result in plans always showing a diff.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := github.NewRepository(ctx, "example", &github.RepositoryArgs{
			Description: pulumi.String("My awesome codebase"),
			AutoInit:    pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		development, err := github.NewBranch(ctx, "development", &github.BranchArgs{
			Repository: example.Name,
			Branch:     pulumi.String("development"),
		})
		if err != nil {
			return err
		}
		_, err = github.NewBranchDefault(ctx, "default", &github.BranchDefaultArgs{
			Repository: example.Name,
			Branch:     development.Branch,
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

GitHub Branch Defaults can be imported using an ID made up of `repository`, e.g.

```sh

$ pulumi import github:index/branchDefault:BranchDefault branch_default my-repo

```

func GetBranchDefault

func GetBranchDefault(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *BranchDefaultState, opts ...pulumi.ResourceOption) (*BranchDefault, error)

GetBranchDefault gets an existing BranchDefault 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 NewBranchDefault

func NewBranchDefault(ctx *pulumi.Context,
	name string, args *BranchDefaultArgs, opts ...pulumi.ResourceOption) (*BranchDefault, error)

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

func (*BranchDefault) ElementType

func (*BranchDefault) ElementType() reflect.Type

func (*BranchDefault) ToBranchDefaultOutput

func (i *BranchDefault) ToBranchDefaultOutput() BranchDefaultOutput

func (*BranchDefault) ToBranchDefaultOutputWithContext

func (i *BranchDefault) ToBranchDefaultOutputWithContext(ctx context.Context) BranchDefaultOutput

type BranchDefaultArgs

type BranchDefaultArgs struct {
	// The branch (e.g. `main`)
	Branch pulumi.StringInput
	// The GitHub repository
	Repository pulumi.StringInput
}

The set of arguments for constructing a BranchDefault resource.

func (BranchDefaultArgs) ElementType

func (BranchDefaultArgs) ElementType() reflect.Type

type BranchDefaultArray

type BranchDefaultArray []BranchDefaultInput

func (BranchDefaultArray) ElementType

func (BranchDefaultArray) ElementType() reflect.Type

func (BranchDefaultArray) ToBranchDefaultArrayOutput

func (i BranchDefaultArray) ToBranchDefaultArrayOutput() BranchDefaultArrayOutput

func (BranchDefaultArray) ToBranchDefaultArrayOutputWithContext

func (i BranchDefaultArray) ToBranchDefaultArrayOutputWithContext(ctx context.Context) BranchDefaultArrayOutput

type BranchDefaultArrayInput

type BranchDefaultArrayInput interface {
	pulumi.Input

	ToBranchDefaultArrayOutput() BranchDefaultArrayOutput
	ToBranchDefaultArrayOutputWithContext(context.Context) BranchDefaultArrayOutput
}

BranchDefaultArrayInput is an input type that accepts BranchDefaultArray and BranchDefaultArrayOutput values. You can construct a concrete instance of `BranchDefaultArrayInput` via:

BranchDefaultArray{ BranchDefaultArgs{...} }

type BranchDefaultArrayOutput

type BranchDefaultArrayOutput struct{ *pulumi.OutputState }

func (BranchDefaultArrayOutput) ElementType

func (BranchDefaultArrayOutput) ElementType() reflect.Type

func (BranchDefaultArrayOutput) Index

func (BranchDefaultArrayOutput) ToBranchDefaultArrayOutput

func (o BranchDefaultArrayOutput) ToBranchDefaultArrayOutput() BranchDefaultArrayOutput

func (BranchDefaultArrayOutput) ToBranchDefaultArrayOutputWithContext

func (o BranchDefaultArrayOutput) ToBranchDefaultArrayOutputWithContext(ctx context.Context) BranchDefaultArrayOutput

type BranchDefaultInput

type BranchDefaultInput interface {
	pulumi.Input

	ToBranchDefaultOutput() BranchDefaultOutput
	ToBranchDefaultOutputWithContext(ctx context.Context) BranchDefaultOutput
}

type BranchDefaultMap

type BranchDefaultMap map[string]BranchDefaultInput

func (BranchDefaultMap) ElementType

func (BranchDefaultMap) ElementType() reflect.Type

func (BranchDefaultMap) ToBranchDefaultMapOutput

func (i BranchDefaultMap) ToBranchDefaultMapOutput() BranchDefaultMapOutput

func (BranchDefaultMap) ToBranchDefaultMapOutputWithContext

func (i BranchDefaultMap) ToBranchDefaultMapOutputWithContext(ctx context.Context) BranchDefaultMapOutput

type BranchDefaultMapInput

type BranchDefaultMapInput interface {
	pulumi.Input

	ToBranchDefaultMapOutput() BranchDefaultMapOutput
	ToBranchDefaultMapOutputWithContext(context.Context) BranchDefaultMapOutput
}

BranchDefaultMapInput is an input type that accepts BranchDefaultMap and BranchDefaultMapOutput values. You can construct a concrete instance of `BranchDefaultMapInput` via:

BranchDefaultMap{ "key": BranchDefaultArgs{...} }

type BranchDefaultMapOutput

type BranchDefaultMapOutput struct{ *pulumi.OutputState }

func (BranchDefaultMapOutput) ElementType

func (BranchDefaultMapOutput) ElementType() reflect.Type

func (BranchDefaultMapOutput) MapIndex

func (BranchDefaultMapOutput) ToBranchDefaultMapOutput

func (o BranchDefaultMapOutput) ToBranchDefaultMapOutput() BranchDefaultMapOutput

func (BranchDefaultMapOutput) ToBranchDefaultMapOutputWithContext

func (o BranchDefaultMapOutput) ToBranchDefaultMapOutputWithContext(ctx context.Context) BranchDefaultMapOutput

type BranchDefaultOutput

type BranchDefaultOutput struct{ *pulumi.OutputState }

func (BranchDefaultOutput) Branch added in v4.15.0

The branch (e.g. `main`)

func (BranchDefaultOutput) ElementType

func (BranchDefaultOutput) ElementType() reflect.Type

func (BranchDefaultOutput) Repository added in v4.15.0

func (o BranchDefaultOutput) Repository() pulumi.StringOutput

The GitHub repository

func (BranchDefaultOutput) ToBranchDefaultOutput

func (o BranchDefaultOutput) ToBranchDefaultOutput() BranchDefaultOutput

func (BranchDefaultOutput) ToBranchDefaultOutputWithContext

func (o BranchDefaultOutput) ToBranchDefaultOutputWithContext(ctx context.Context) BranchDefaultOutput

type BranchDefaultState

type BranchDefaultState struct {
	// The branch (e.g. `main`)
	Branch pulumi.StringPtrInput
	// The GitHub repository
	Repository pulumi.StringPtrInput
}

func (BranchDefaultState) ElementType

func (BranchDefaultState) ElementType() reflect.Type

type BranchInput

type BranchInput interface {
	pulumi.Input

	ToBranchOutput() BranchOutput
	ToBranchOutputWithContext(ctx context.Context) BranchOutput
}

type BranchMap

type BranchMap map[string]BranchInput

func (BranchMap) ElementType

func (BranchMap) ElementType() reflect.Type

func (BranchMap) ToBranchMapOutput

func (i BranchMap) ToBranchMapOutput() BranchMapOutput

func (BranchMap) ToBranchMapOutputWithContext

func (i BranchMap) ToBranchMapOutputWithContext(ctx context.Context) BranchMapOutput

type BranchMapInput

type BranchMapInput interface {
	pulumi.Input

	ToBranchMapOutput() BranchMapOutput
	ToBranchMapOutputWithContext(context.Context) BranchMapOutput
}

BranchMapInput is an input type that accepts BranchMap and BranchMapOutput values. You can construct a concrete instance of `BranchMapInput` via:

BranchMap{ "key": BranchArgs{...} }

type BranchMapOutput

type BranchMapOutput struct{ *pulumi.OutputState }

func (BranchMapOutput) ElementType

func (BranchMapOutput) ElementType() reflect.Type

func (BranchMapOutput) MapIndex

func (BranchMapOutput) ToBranchMapOutput

func (o BranchMapOutput) ToBranchMapOutput() BranchMapOutput

func (BranchMapOutput) ToBranchMapOutputWithContext

func (o BranchMapOutput) ToBranchMapOutputWithContext(ctx context.Context) BranchMapOutput

type BranchOutput

type BranchOutput struct{ *pulumi.OutputState }

func (BranchOutput) Branch added in v4.15.0

func (o BranchOutput) Branch() pulumi.StringOutput

The repository branch to create.

func (BranchOutput) ElementType

func (BranchOutput) ElementType() reflect.Type

func (BranchOutput) Etag added in v4.15.0

func (o BranchOutput) Etag() pulumi.StringOutput

An etag representing the Branch object.

func (BranchOutput) Ref added in v4.15.0

A string representing a branch reference, in the form of `refs/heads/<branch>`.

func (BranchOutput) Repository added in v4.15.0

func (o BranchOutput) Repository() pulumi.StringOutput

The GitHub repository name.

func (BranchOutput) Sha added in v4.15.0

A string storing the reference's `HEAD` commit's SHA1.

func (BranchOutput) SourceBranch added in v4.15.0

func (o BranchOutput) SourceBranch() pulumi.StringPtrOutput

The branch name to start from. Defaults to `main`.

func (BranchOutput) SourceSha added in v4.15.0

func (o BranchOutput) SourceSha() pulumi.StringOutput

The commit hash to start from. Defaults to the tip of `sourceBranch`. If provided, `sourceBranch` is ignored.

func (BranchOutput) ToBranchOutput

func (o BranchOutput) ToBranchOutput() BranchOutput

func (BranchOutput) ToBranchOutputWithContext

func (o BranchOutput) ToBranchOutputWithContext(ctx context.Context) BranchOutput

type BranchProtection

type BranchProtection struct {
	pulumi.CustomResourceState

	// Boolean, setting this to `true` to allow the branch to be deleted.
	AllowsDeletions pulumi.BoolPtrOutput `pulumi:"allowsDeletions"`
	// Boolean, setting this to `true` to allow force pushes on the branch.
	AllowsForcePushes pulumi.BoolPtrOutput `pulumi:"allowsForcePushes"`
	// Boolean, setting this to `true` to block creating the branch.
	BlocksCreations pulumi.BoolPtrOutput `pulumi:"blocksCreations"`
	// Boolean, setting this to `true` enforces status checks for repository administrators.
	EnforceAdmins pulumi.BoolPtrOutput `pulumi:"enforceAdmins"`
	// Identifies the protection rule pattern.
	Pattern pulumi.StringOutput `pulumi:"pattern"`
	// The list of actor IDs that may push to the branch.
	PushRestrictions pulumi.StringArrayOutput `pulumi:"pushRestrictions"`
	// The name or node ID of the repository associated with this branch protection rule.
	RepositoryId pulumi.StringOutput `pulumi:"repositoryId"`
	// Boolean, setting this to `true` requires all conversations on code must be resolved before a pull request can be merged.
	RequireConversationResolution pulumi.BoolPtrOutput `pulumi:"requireConversationResolution"`
	// Boolean, setting this to `true` requires all commits to be signed with GPG.
	RequireSignedCommits pulumi.BoolPtrOutput `pulumi:"requireSignedCommits"`
	// Boolean, setting this to `true` enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch
	RequiredLinearHistory pulumi.BoolPtrOutput `pulumi:"requiredLinearHistory"`
	// Enforce restrictions for pull request reviews. See Required Pull Request Reviews below for details.
	RequiredPullRequestReviews BranchProtectionRequiredPullRequestReviewArrayOutput `pulumi:"requiredPullRequestReviews"`
	// Enforce restrictions for required status checks. See Required Status Checks below for details.
	RequiredStatusChecks BranchProtectionRequiredStatusCheckArrayOutput `pulumi:"requiredStatusChecks"`
}

Protects a GitHub branch.

This resource allows you to configure branch protection for repositories in your organization. When applied, the branch will be protected from forced pushes and deletion. Additional constraints, such as required status checks or restrictions on users, teams, and apps, can also be configured.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleRepository, err := github.NewRepository(ctx, "exampleRepository", nil)
		if err != nil {
			return err
		}
		exampleUser, err := github.GetUser(ctx, &GetUserArgs{
			Username: "example",
		}, nil)
		if err != nil {
			return err
		}
		exampleTeam, err := github.NewTeam(ctx, "exampleTeam", nil)
		if err != nil {
			return err
		}
		_, err = github.NewBranchProtection(ctx, "exampleBranchProtection", &github.BranchProtectionArgs{
			RepositoryId:    exampleRepository.NodeId,
			Pattern:         pulumi.String("main"),
			EnforceAdmins:   pulumi.Bool(true),
			AllowsDeletions: pulumi.Bool(true),
			RequiredStatusChecks: BranchProtectionRequiredStatusCheckArray{
				&BranchProtectionRequiredStatusCheckArgs{
					Strict: pulumi.Bool(false),
					Contexts: pulumi.StringArray{
						pulumi.String("ci/travis"),
					},
				},
			},
			RequiredPullRequestReviews: BranchProtectionRequiredPullRequestReviewArray{
				&BranchProtectionRequiredPullRequestReviewArgs{
					DismissStaleReviews: pulumi.Bool(true),
					RestrictDismissals:  pulumi.Bool(true),
					DismissalRestrictions: pulumi.StringArray{
						pulumi.String(exampleUser.NodeId),
						exampleTeam.NodeId,
					},
				},
			},
			PushRestrictions: pulumi.StringArray{
				pulumi.String(exampleUser.NodeId),
			},
		})
		if err != nil {
			return err
		}
		_, err = github.NewTeamRepository(ctx, "exampleTeamRepository", &github.TeamRepositoryArgs{
			TeamId:     exampleTeam.ID(),
			Repository: exampleRepository.Name,
			Permission: pulumi.String("pull"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

GitHub Branch Protection can be imported using an ID made up of `repository:pattern`, e.g.

```sh

$ pulumi import github:index/branchProtection:BranchProtection terraform terraform:main

```

func GetBranchProtection

func GetBranchProtection(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *BranchProtectionState, opts ...pulumi.ResourceOption) (*BranchProtection, error)

GetBranchProtection gets an existing BranchProtection 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 NewBranchProtection

func NewBranchProtection(ctx *pulumi.Context,
	name string, args *BranchProtectionArgs, opts ...pulumi.ResourceOption) (*BranchProtection, error)

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

func (*BranchProtection) ElementType

func (*BranchProtection) ElementType() reflect.Type

func (*BranchProtection) ToBranchProtectionOutput

func (i *BranchProtection) ToBranchProtectionOutput() BranchProtectionOutput

func (*BranchProtection) ToBranchProtectionOutputWithContext

func (i *BranchProtection) ToBranchProtectionOutputWithContext(ctx context.Context) BranchProtectionOutput

type BranchProtectionArgs

type BranchProtectionArgs struct {
	// Boolean, setting this to `true` to allow the branch to be deleted.
	AllowsDeletions pulumi.BoolPtrInput
	// Boolean, setting this to `true` to allow force pushes on the branch.
	AllowsForcePushes pulumi.BoolPtrInput
	// Boolean, setting this to `true` to block creating the branch.
	BlocksCreations pulumi.BoolPtrInput
	// Boolean, setting this to `true` enforces status checks for repository administrators.
	EnforceAdmins pulumi.BoolPtrInput
	// Identifies the protection rule pattern.
	Pattern pulumi.StringInput
	// The list of actor IDs that may push to the branch.
	PushRestrictions pulumi.StringArrayInput
	// The name or node ID of the repository associated with this branch protection rule.
	RepositoryId pulumi.StringInput
	// Boolean, setting this to `true` requires all conversations on code must be resolved before a pull request can be merged.
	RequireConversationResolution pulumi.BoolPtrInput
	// Boolean, setting this to `true` requires all commits to be signed with GPG.
	RequireSignedCommits pulumi.BoolPtrInput
	// Boolean, setting this to `true` enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch
	RequiredLinearHistory pulumi.BoolPtrInput
	// Enforce restrictions for pull request reviews. See Required Pull Request Reviews below for details.
	RequiredPullRequestReviews BranchProtectionRequiredPullRequestReviewArrayInput
	// Enforce restrictions for required status checks. See Required Status Checks below for details.
	RequiredStatusChecks BranchProtectionRequiredStatusCheckArrayInput
}

The set of arguments for constructing a BranchProtection resource.

func (BranchProtectionArgs) ElementType

func (BranchProtectionArgs) ElementType() reflect.Type

type BranchProtectionArray

type BranchProtectionArray []BranchProtectionInput

func (BranchProtectionArray) ElementType

func (BranchProtectionArray) ElementType() reflect.Type

func (BranchProtectionArray) ToBranchProtectionArrayOutput

func (i BranchProtectionArray) ToBranchProtectionArrayOutput() BranchProtectionArrayOutput

func (BranchProtectionArray) ToBranchProtectionArrayOutputWithContext

func (i BranchProtectionArray) ToBranchProtectionArrayOutputWithContext(ctx context.Context) BranchProtectionArrayOutput

type BranchProtectionArrayInput

type BranchProtectionArrayInput interface {
	pulumi.Input

	ToBranchProtectionArrayOutput() BranchProtectionArrayOutput
	ToBranchProtectionArrayOutputWithContext(context.Context) BranchProtectionArrayOutput
}

BranchProtectionArrayInput is an input type that accepts BranchProtectionArray and BranchProtectionArrayOutput values. You can construct a concrete instance of `BranchProtectionArrayInput` via:

BranchProtectionArray{ BranchProtectionArgs{...} }

type BranchProtectionArrayOutput

type BranchProtectionArrayOutput struct{ *pulumi.OutputState }

func (BranchProtectionArrayOutput) ElementType

func (BranchProtectionArrayOutput) Index

func (BranchProtectionArrayOutput) ToBranchProtectionArrayOutput

func (o BranchProtectionArrayOutput) ToBranchProtectionArrayOutput() BranchProtectionArrayOutput

func (BranchProtectionArrayOutput) ToBranchProtectionArrayOutputWithContext

func (o BranchProtectionArrayOutput) ToBranchProtectionArrayOutputWithContext(ctx context.Context) BranchProtectionArrayOutput

type BranchProtectionInput

type BranchProtectionInput interface {
	pulumi.Input

	ToBranchProtectionOutput() BranchProtectionOutput
	ToBranchProtectionOutputWithContext(ctx context.Context) BranchProtectionOutput
}

type BranchProtectionMap

type BranchProtectionMap map[string]BranchProtectionInput

func (BranchProtectionMap) ElementType

func (BranchProtectionMap) ElementType() reflect.Type

func (BranchProtectionMap) ToBranchProtectionMapOutput

func (i BranchProtectionMap) ToBranchProtectionMapOutput() BranchProtectionMapOutput

func (BranchProtectionMap) ToBranchProtectionMapOutputWithContext

func (i BranchProtectionMap) ToBranchProtectionMapOutputWithContext(ctx context.Context) BranchProtectionMapOutput

type BranchProtectionMapInput

type BranchProtectionMapInput interface {
	pulumi.Input

	ToBranchProtectionMapOutput() BranchProtectionMapOutput
	ToBranchProtectionMapOutputWithContext(context.Context) BranchProtectionMapOutput
}

BranchProtectionMapInput is an input type that accepts BranchProtectionMap and BranchProtectionMapOutput values. You can construct a concrete instance of `BranchProtectionMapInput` via:

BranchProtectionMap{ "key": BranchProtectionArgs{...} }

type BranchProtectionMapOutput

type BranchProtectionMapOutput struct{ *pulumi.OutputState }

func (BranchProtectionMapOutput) ElementType

func (BranchProtectionMapOutput) ElementType() reflect.Type

func (BranchProtectionMapOutput) MapIndex

func (BranchProtectionMapOutput) ToBranchProtectionMapOutput

func (o BranchProtectionMapOutput) ToBranchProtectionMapOutput() BranchProtectionMapOutput

func (BranchProtectionMapOutput) ToBranchProtectionMapOutputWithContext

func (o BranchProtectionMapOutput) ToBranchProtectionMapOutputWithContext(ctx context.Context) BranchProtectionMapOutput

type BranchProtectionOutput

type BranchProtectionOutput struct{ *pulumi.OutputState }

func (BranchProtectionOutput) AllowsDeletions added in v4.15.0

func (o BranchProtectionOutput) AllowsDeletions() pulumi.BoolPtrOutput

Boolean, setting this to `true` to allow the branch to be deleted.

func (BranchProtectionOutput) AllowsForcePushes added in v4.15.0

func (o BranchProtectionOutput) AllowsForcePushes() pulumi.BoolPtrOutput

Boolean, setting this to `true` to allow force pushes on the branch.

func (BranchProtectionOutput) BlocksCreations added in v4.15.0

func (o BranchProtectionOutput) BlocksCreations() pulumi.BoolPtrOutput

Boolean, setting this to `true` to block creating the branch.

func (BranchProtectionOutput) ElementType

func (BranchProtectionOutput) ElementType() reflect.Type

func (BranchProtectionOutput) EnforceAdmins added in v4.15.0

func (o BranchProtectionOutput) EnforceAdmins() pulumi.BoolPtrOutput

Boolean, setting this to `true` enforces status checks for repository administrators.

func (BranchProtectionOutput) Pattern added in v4.15.0

Identifies the protection rule pattern.

func (BranchProtectionOutput) PushRestrictions added in v4.15.0

func (o BranchProtectionOutput) PushRestrictions() pulumi.StringArrayOutput

The list of actor IDs that may push to the branch.

func (BranchProtectionOutput) RepositoryId added in v4.15.0

func (o BranchProtectionOutput) RepositoryId() pulumi.StringOutput

The name or node ID of the repository associated with this branch protection rule.

func (BranchProtectionOutput) RequireConversationResolution added in v4.15.0

func (o BranchProtectionOutput) RequireConversationResolution() pulumi.BoolPtrOutput

Boolean, setting this to `true` requires all conversations on code must be resolved before a pull request can be merged.

func (BranchProtectionOutput) RequireSignedCommits added in v4.15.0

func (o BranchProtectionOutput) RequireSignedCommits() pulumi.BoolPtrOutput

Boolean, setting this to `true` requires all commits to be signed with GPG.

func (BranchProtectionOutput) RequiredLinearHistory added in v4.15.0

func (o BranchProtectionOutput) RequiredLinearHistory() pulumi.BoolPtrOutput

Boolean, setting this to `true` enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch

func (BranchProtectionOutput) RequiredPullRequestReviews added in v4.15.0

Enforce restrictions for pull request reviews. See Required Pull Request Reviews below for details.

func (BranchProtectionOutput) RequiredStatusChecks added in v4.15.0

Enforce restrictions for required status checks. See Required Status Checks below for details.

func (BranchProtectionOutput) ToBranchProtectionOutput

func (o BranchProtectionOutput) ToBranchProtectionOutput() BranchProtectionOutput

func (BranchProtectionOutput) ToBranchProtectionOutputWithContext

func (o BranchProtectionOutput) ToBranchProtectionOutputWithContext(ctx context.Context) BranchProtectionOutput

type BranchProtectionRequiredPullRequestReview

type BranchProtectionRequiredPullRequestReview struct {
	DismissStaleReviews          *bool    `pulumi:"dismissStaleReviews"`
	DismissalRestrictions        []string `pulumi:"dismissalRestrictions"`
	PullRequestBypassers         []string `pulumi:"pullRequestBypassers"`
	RequireCodeOwnerReviews      *bool    `pulumi:"requireCodeOwnerReviews"`
	RequiredApprovingReviewCount *int     `pulumi:"requiredApprovingReviewCount"`
	RestrictDismissals           *bool    `pulumi:"restrictDismissals"`
}

type BranchProtectionRequiredPullRequestReviewArgs

type BranchProtectionRequiredPullRequestReviewArgs struct {
	DismissStaleReviews          pulumi.BoolPtrInput     `pulumi:"dismissStaleReviews"`
	DismissalRestrictions        pulumi.StringArrayInput `pulumi:"dismissalRestrictions"`
	PullRequestBypassers         pulumi.StringArrayInput `pulumi:"pullRequestBypassers"`
	RequireCodeOwnerReviews      pulumi.BoolPtrInput     `pulumi:"requireCodeOwnerReviews"`
	RequiredApprovingReviewCount pulumi.IntPtrInput      `pulumi:"requiredApprovingReviewCount"`
	RestrictDismissals           pulumi.BoolPtrInput     `pulumi:"restrictDismissals"`
}

func (BranchProtectionRequiredPullRequestReviewArgs) ElementType

func (BranchProtectionRequiredPullRequestReviewArgs) ToBranchProtectionRequiredPullRequestReviewOutput

func (i BranchProtectionRequiredPullRequestReviewArgs) ToBranchProtectionRequiredPullRequestReviewOutput() BranchProtectionRequiredPullRequestReviewOutput

func (BranchProtectionRequiredPullRequestReviewArgs) ToBranchProtectionRequiredPullRequestReviewOutputWithContext

func (i BranchProtectionRequiredPullRequestReviewArgs) ToBranchProtectionRequiredPullRequestReviewOutputWithContext(ctx context.Context) BranchProtectionRequiredPullRequestReviewOutput

type BranchProtectionRequiredPullRequestReviewArray

type BranchProtectionRequiredPullRequestReviewArray []BranchProtectionRequiredPullRequestReviewInput

func (BranchProtectionRequiredPullRequestReviewArray) ElementType

func (BranchProtectionRequiredPullRequestReviewArray) ToBranchProtectionRequiredPullRequestReviewArrayOutput

func (i BranchProtectionRequiredPullRequestReviewArray) ToBranchProtectionRequiredPullRequestReviewArrayOutput() BranchProtectionRequiredPullRequestReviewArrayOutput

func (BranchProtectionRequiredPullRequestReviewArray) ToBranchProtectionRequiredPullRequestReviewArrayOutputWithContext

func (i BranchProtectionRequiredPullRequestReviewArray) ToBranchProtectionRequiredPullRequestReviewArrayOutputWithContext(ctx context.Context) BranchProtectionRequiredPullRequestReviewArrayOutput

type BranchProtectionRequiredPullRequestReviewArrayInput

type BranchProtectionRequiredPullRequestReviewArrayInput interface {
	pulumi.Input

	ToBranchProtectionRequiredPullRequestReviewArrayOutput() BranchProtectionRequiredPullRequestReviewArrayOutput
	ToBranchProtectionRequiredPullRequestReviewArrayOutputWithContext(context.Context) BranchProtectionRequiredPullRequestReviewArrayOutput
}

BranchProtectionRequiredPullRequestReviewArrayInput is an input type that accepts BranchProtectionRequiredPullRequestReviewArray and BranchProtectionRequiredPullRequestReviewArrayOutput values. You can construct a concrete instance of `BranchProtectionRequiredPullRequestReviewArrayInput` via:

BranchProtectionRequiredPullRequestReviewArray{ BranchProtectionRequiredPullRequestReviewArgs{...} }

type BranchProtectionRequiredPullRequestReviewArrayOutput

type BranchProtectionRequiredPullRequestReviewArrayOutput struct{ *pulumi.OutputState }

func (BranchProtectionRequiredPullRequestReviewArrayOutput) ElementType

func (BranchProtectionRequiredPullRequestReviewArrayOutput) Index

func (BranchProtectionRequiredPullRequestReviewArrayOutput) ToBranchProtectionRequiredPullRequestReviewArrayOutput

func (BranchProtectionRequiredPullRequestReviewArrayOutput) ToBranchProtectionRequiredPullRequestReviewArrayOutputWithContext

func (o BranchProtectionRequiredPullRequestReviewArrayOutput) ToBranchProtectionRequiredPullRequestReviewArrayOutputWithContext(ctx context.Context) BranchProtectionRequiredPullRequestReviewArrayOutput

type BranchProtectionRequiredPullRequestReviewInput

type BranchProtectionRequiredPullRequestReviewInput interface {
	pulumi.Input

	ToBranchProtectionRequiredPullRequestReviewOutput() BranchProtectionRequiredPullRequestReviewOutput
	ToBranchProtectionRequiredPullRequestReviewOutputWithContext(context.Context) BranchProtectionRequiredPullRequestReviewOutput
}

BranchProtectionRequiredPullRequestReviewInput is an input type that accepts BranchProtectionRequiredPullRequestReviewArgs and BranchProtectionRequiredPullRequestReviewOutput values. You can construct a concrete instance of `BranchProtectionRequiredPullRequestReviewInput` via:

BranchProtectionRequiredPullRequestReviewArgs{...}

type BranchProtectionRequiredPullRequestReviewOutput

type BranchProtectionRequiredPullRequestReviewOutput struct{ *pulumi.OutputState }

func (BranchProtectionRequiredPullRequestReviewOutput) DismissStaleReviews

func (BranchProtectionRequiredPullRequestReviewOutput) DismissalRestrictions

func (BranchProtectionRequiredPullRequestReviewOutput) ElementType

func (BranchProtectionRequiredPullRequestReviewOutput) PullRequestBypassers added in v4.11.0

func (BranchProtectionRequiredPullRequestReviewOutput) RequireCodeOwnerReviews

func (BranchProtectionRequiredPullRequestReviewOutput) RequiredApprovingReviewCount

func (o BranchProtectionRequiredPullRequestReviewOutput) RequiredApprovingReviewCount() pulumi.IntPtrOutput

func (BranchProtectionRequiredPullRequestReviewOutput) RestrictDismissals added in v4.3.0

func (BranchProtectionRequiredPullRequestReviewOutput) ToBranchProtectionRequiredPullRequestReviewOutput

func (o BranchProtectionRequiredPullRequestReviewOutput) ToBranchProtectionRequiredPullRequestReviewOutput() BranchProtectionRequiredPullRequestReviewOutput

func (BranchProtectionRequiredPullRequestReviewOutput) ToBranchProtectionRequiredPullRequestReviewOutputWithContext

func (o BranchProtectionRequiredPullRequestReviewOutput) ToBranchProtectionRequiredPullRequestReviewOutputWithContext(ctx context.Context) BranchProtectionRequiredPullRequestReviewOutput

type BranchProtectionRequiredStatusCheck

type BranchProtectionRequiredStatusCheck struct {
	Contexts []string `pulumi:"contexts"`
	Strict   *bool    `pulumi:"strict"`
}

type BranchProtectionRequiredStatusCheckArgs

type BranchProtectionRequiredStatusCheckArgs struct {
	Contexts pulumi.StringArrayInput `pulumi:"contexts"`
	Strict   pulumi.BoolPtrInput     `pulumi:"strict"`
}

func (BranchProtectionRequiredStatusCheckArgs) ElementType

func (BranchProtectionRequiredStatusCheckArgs) ToBranchProtectionRequiredStatusCheckOutput

func (i BranchProtectionRequiredStatusCheckArgs) ToBranchProtectionRequiredStatusCheckOutput() BranchProtectionRequiredStatusCheckOutput

func (BranchProtectionRequiredStatusCheckArgs) ToBranchProtectionRequiredStatusCheckOutputWithContext

func (i BranchProtectionRequiredStatusCheckArgs) ToBranchProtectionRequiredStatusCheckOutputWithContext(ctx context.Context) BranchProtectionRequiredStatusCheckOutput

type BranchProtectionRequiredStatusCheckArray

type BranchProtectionRequiredStatusCheckArray []BranchProtectionRequiredStatusCheckInput

func (BranchProtectionRequiredStatusCheckArray) ElementType

func (BranchProtectionRequiredStatusCheckArray) ToBranchProtectionRequiredStatusCheckArrayOutput

func (i BranchProtectionRequiredStatusCheckArray) ToBranchProtectionRequiredStatusCheckArrayOutput() BranchProtectionRequiredStatusCheckArrayOutput

func (BranchProtectionRequiredStatusCheckArray) ToBranchProtectionRequiredStatusCheckArrayOutputWithContext

func (i BranchProtectionRequiredStatusCheckArray) ToBranchProtectionRequiredStatusCheckArrayOutputWithContext(ctx context.Context) BranchProtectionRequiredStatusCheckArrayOutput

type BranchProtectionRequiredStatusCheckArrayInput

type BranchProtectionRequiredStatusCheckArrayInput interface {
	pulumi.Input

	ToBranchProtectionRequiredStatusCheckArrayOutput() BranchProtectionRequiredStatusCheckArrayOutput
	ToBranchProtectionRequiredStatusCheckArrayOutputWithContext(context.Context) BranchProtectionRequiredStatusCheckArrayOutput
}

BranchProtectionRequiredStatusCheckArrayInput is an input type that accepts BranchProtectionRequiredStatusCheckArray and BranchProtectionRequiredStatusCheckArrayOutput values. You can construct a concrete instance of `BranchProtectionRequiredStatusCheckArrayInput` via:

BranchProtectionRequiredStatusCheckArray{ BranchProtectionRequiredStatusCheckArgs{...} }

type BranchProtectionRequiredStatusCheckArrayOutput

type BranchProtectionRequiredStatusCheckArrayOutput struct{ *pulumi.OutputState }

func (BranchProtectionRequiredStatusCheckArrayOutput) ElementType

func (BranchProtectionRequiredStatusCheckArrayOutput) Index

func (BranchProtectionRequiredStatusCheckArrayOutput) ToBranchProtectionRequiredStatusCheckArrayOutput

func (o BranchProtectionRequiredStatusCheckArrayOutput) ToBranchProtectionRequiredStatusCheckArrayOutput() BranchProtectionRequiredStatusCheckArrayOutput

func (BranchProtectionRequiredStatusCheckArrayOutput) ToBranchProtectionRequiredStatusCheckArrayOutputWithContext

func (o BranchProtectionRequiredStatusCheckArrayOutput) ToBranchProtectionRequiredStatusCheckArrayOutputWithContext(ctx context.Context) BranchProtectionRequiredStatusCheckArrayOutput

type BranchProtectionRequiredStatusCheckInput

type BranchProtectionRequiredStatusCheckInput interface {
	pulumi.Input

	ToBranchProtectionRequiredStatusCheckOutput() BranchProtectionRequiredStatusCheckOutput
	ToBranchProtectionRequiredStatusCheckOutputWithContext(context.Context) BranchProtectionRequiredStatusCheckOutput
}

BranchProtectionRequiredStatusCheckInput is an input type that accepts BranchProtectionRequiredStatusCheckArgs and BranchProtectionRequiredStatusCheckOutput values. You can construct a concrete instance of `BranchProtectionRequiredStatusCheckInput` via:

BranchProtectionRequiredStatusCheckArgs{...}

type BranchProtectionRequiredStatusCheckOutput

type BranchProtectionRequiredStatusCheckOutput struct{ *pulumi.OutputState }

func (BranchProtectionRequiredStatusCheckOutput) Contexts

func (BranchProtectionRequiredStatusCheckOutput) ElementType

func (BranchProtectionRequiredStatusCheckOutput) Strict

func (BranchProtectionRequiredStatusCheckOutput) ToBranchProtectionRequiredStatusCheckOutput

func (o BranchProtectionRequiredStatusCheckOutput) ToBranchProtectionRequiredStatusCheckOutput() BranchProtectionRequiredStatusCheckOutput

func (BranchProtectionRequiredStatusCheckOutput) ToBranchProtectionRequiredStatusCheckOutputWithContext

func (o BranchProtectionRequiredStatusCheckOutput) ToBranchProtectionRequiredStatusCheckOutputWithContext(ctx context.Context) BranchProtectionRequiredStatusCheckOutput

type BranchProtectionState

type BranchProtectionState struct {
	// Boolean, setting this to `true` to allow the branch to be deleted.
	AllowsDeletions pulumi.BoolPtrInput
	// Boolean, setting this to `true` to allow force pushes on the branch.
	AllowsForcePushes pulumi.BoolPtrInput
	// Boolean, setting this to `true` to block creating the branch.
	BlocksCreations pulumi.BoolPtrInput
	// Boolean, setting this to `true` enforces status checks for repository administrators.
	EnforceAdmins pulumi.BoolPtrInput
	// Identifies the protection rule pattern.
	Pattern pulumi.StringPtrInput
	// The list of actor IDs that may push to the branch.
	PushRestrictions pulumi.StringArrayInput
	// The name or node ID of the repository associated with this branch protection rule.
	RepositoryId pulumi.StringPtrInput
	// Boolean, setting this to `true` requires all conversations on code must be resolved before a pull request can be merged.
	RequireConversationResolution pulumi.BoolPtrInput
	// Boolean, setting this to `true` requires all commits to be signed with GPG.
	RequireSignedCommits pulumi.BoolPtrInput
	// Boolean, setting this to `true` enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch
	RequiredLinearHistory pulumi.BoolPtrInput
	// Enforce restrictions for pull request reviews. See Required Pull Request Reviews below for details.
	RequiredPullRequestReviews BranchProtectionRequiredPullRequestReviewArrayInput
	// Enforce restrictions for required status checks. See Required Status Checks below for details.
	RequiredStatusChecks BranchProtectionRequiredStatusCheckArrayInput
}

func (BranchProtectionState) ElementType

func (BranchProtectionState) ElementType() reflect.Type

type BranchProtectionV3

type BranchProtectionV3 struct {
	pulumi.CustomResourceState

	// The Git branch to protect.
	Branch pulumi.StringOutput `pulumi:"branch"`
	// Boolean, setting this to `true` enforces status checks for repository administrators.
	EnforceAdmins pulumi.BoolPtrOutput `pulumi:"enforceAdmins"`
	Etag          pulumi.StringOutput  `pulumi:"etag"`
	// The GitHub repository name.
	Repository pulumi.StringOutput `pulumi:"repository"`
	// Boolean, setting this to `true` requires all conversations on code must be resolved before a pull request can be merged.
	RequireConversationResolution pulumi.BoolPtrOutput `pulumi:"requireConversationResolution"`
	// Boolean, setting this to `true` requires all commits to be signed with GPG.
	RequireSignedCommits pulumi.BoolPtrOutput `pulumi:"requireSignedCommits"`
	// Enforce restrictions for pull request reviews. See Required Pull Request Reviews below for details.
	RequiredPullRequestReviews BranchProtectionV3RequiredPullRequestReviewsPtrOutput `pulumi:"requiredPullRequestReviews"`
	// Enforce restrictions for required status checks. See Required Status Checks below for details.
	RequiredStatusChecks BranchProtectionV3RequiredStatusChecksPtrOutput `pulumi:"requiredStatusChecks"`
	// Enforce restrictions for the users and teams that may push to the branch. See Restrictions below for details.
	Restrictions BranchProtectionV3RestrictionsPtrOutput `pulumi:"restrictions"`
}

Protects a GitHub branch.

The `BranchProtection` resource has moved to the GraphQL API, while this resource will continue to leverage the REST API.

This resource allows you to configure branch protection for repositories in your organization. When applied, the branch will be protected from forced pushes and deletion. Additional constraints, such as required status checks or restrictions on users, teams, and apps, can also be configured.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.NewBranchProtectionV3(ctx, "example", &github.BranchProtectionV3Args{
			Repository: pulumi.Any(github_repository.Example.Name),
			Branch:     pulumi.String("main"),
			Restrictions: &BranchProtectionV3RestrictionsArgs{
				Users: pulumi.StringArray{
					pulumi.String("foo-user"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleRepository, err := github.NewRepository(ctx, "exampleRepository", nil)
		if err != nil {
			return err
		}
		exampleTeam, err := github.NewTeam(ctx, "exampleTeam", nil)
		if err != nil {
			return err
		}
		_, err = github.NewBranchProtectionV3(ctx, "exampleBranchProtectionV3", &github.BranchProtectionV3Args{
			Repository:    exampleRepository.Name,
			Branch:        pulumi.String("main"),
			EnforceAdmins: pulumi.Bool(true),
			RequiredStatusChecks: &BranchProtectionV3RequiredStatusChecksArgs{
				Strict: pulumi.Bool(false),
				Contexts: pulumi.StringArray{
					pulumi.String("ci/travis"),
				},
			},
			RequiredPullRequestReviews: &BranchProtectionV3RequiredPullRequestReviewsArgs{
				DismissStaleReviews: pulumi.Bool(true),
				DismissalUsers: pulumi.StringArray{
					pulumi.String("foo-user"),
				},
				DismissalTeams: pulumi.StringArray{
					exampleTeam.Slug,
				},
			},
			Restrictions: &BranchProtectionV3RestrictionsArgs{
				Users: pulumi.StringArray{
					pulumi.String("foo-user"),
				},
				Teams: pulumi.StringArray{
					exampleTeam.Slug,
				},
				Apps: pulumi.StringArray{
					pulumi.String("foo-app"),
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = github.NewTeamRepository(ctx, "exampleTeamRepository", &github.TeamRepositoryArgs{
			TeamId:     exampleTeam.ID(),
			Repository: exampleRepository.Name,
			Permission: pulumi.String("pull"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

GitHub Branch Protection can be imported using an ID made up of `repository:branch`, e.g.

```sh

$ pulumi import github:index/branchProtectionV3:BranchProtectionV3 terraform terraform:main

```

func GetBranchProtectionV3

func GetBranchProtectionV3(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *BranchProtectionV3State, opts ...pulumi.ResourceOption) (*BranchProtectionV3, error)

GetBranchProtectionV3 gets an existing BranchProtectionV3 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 NewBranchProtectionV3

func NewBranchProtectionV3(ctx *pulumi.Context,
	name string, args *BranchProtectionV3Args, opts ...pulumi.ResourceOption) (*BranchProtectionV3, error)

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

func (*BranchProtectionV3) ElementType

func (*BranchProtectionV3) ElementType() reflect.Type

func (*BranchProtectionV3) ToBranchProtectionV3Output

func (i *BranchProtectionV3) ToBranchProtectionV3Output() BranchProtectionV3Output

func (*BranchProtectionV3) ToBranchProtectionV3OutputWithContext

func (i *BranchProtectionV3) ToBranchProtectionV3OutputWithContext(ctx context.Context) BranchProtectionV3Output

type BranchProtectionV3Args

type BranchProtectionV3Args struct {
	// The Git branch to protect.
	Branch pulumi.StringInput
	// Boolean, setting this to `true` enforces status checks for repository administrators.
	EnforceAdmins pulumi.BoolPtrInput
	// The GitHub repository name.
	Repository pulumi.StringInput
	// Boolean, setting this to `true` requires all conversations on code must be resolved before a pull request can be merged.
	RequireConversationResolution pulumi.BoolPtrInput
	// Boolean, setting this to `true` requires all commits to be signed with GPG.
	RequireSignedCommits pulumi.BoolPtrInput
	// Enforce restrictions for pull request reviews. See Required Pull Request Reviews below for details.
	RequiredPullRequestReviews BranchProtectionV3RequiredPullRequestReviewsPtrInput
	// Enforce restrictions for required status checks. See Required Status Checks below for details.
	RequiredStatusChecks BranchProtectionV3RequiredStatusChecksPtrInput
	// Enforce restrictions for the users and teams that may push to the branch. See Restrictions below for details.
	Restrictions BranchProtectionV3RestrictionsPtrInput
}

The set of arguments for constructing a BranchProtectionV3 resource.

func (BranchProtectionV3Args) ElementType

func (BranchProtectionV3Args) ElementType() reflect.Type

type BranchProtectionV3Array

type BranchProtectionV3Array []BranchProtectionV3Input

func (BranchProtectionV3Array) ElementType

func (BranchProtectionV3Array) ElementType() reflect.Type

func (BranchProtectionV3Array) ToBranchProtectionV3ArrayOutput

func (i BranchProtectionV3Array) ToBranchProtectionV3ArrayOutput() BranchProtectionV3ArrayOutput

func (BranchProtectionV3Array) ToBranchProtectionV3ArrayOutputWithContext

func (i BranchProtectionV3Array) ToBranchProtectionV3ArrayOutputWithContext(ctx context.Context) BranchProtectionV3ArrayOutput

type BranchProtectionV3ArrayInput

type BranchProtectionV3ArrayInput interface {
	pulumi.Input

	ToBranchProtectionV3ArrayOutput() BranchProtectionV3ArrayOutput
	ToBranchProtectionV3ArrayOutputWithContext(context.Context) BranchProtectionV3ArrayOutput
}

BranchProtectionV3ArrayInput is an input type that accepts BranchProtectionV3Array and BranchProtectionV3ArrayOutput values. You can construct a concrete instance of `BranchProtectionV3ArrayInput` via:

BranchProtectionV3Array{ BranchProtectionV3Args{...} }

type BranchProtectionV3ArrayOutput

type BranchProtectionV3ArrayOutput struct{ *pulumi.OutputState }

func (BranchProtectionV3ArrayOutput) ElementType

func (BranchProtectionV3ArrayOutput) Index

func (BranchProtectionV3ArrayOutput) ToBranchProtectionV3ArrayOutput

func (o BranchProtectionV3ArrayOutput) ToBranchProtectionV3ArrayOutput() BranchProtectionV3ArrayOutput

func (BranchProtectionV3ArrayOutput) ToBranchProtectionV3ArrayOutputWithContext

func (o BranchProtectionV3ArrayOutput) ToBranchProtectionV3ArrayOutputWithContext(ctx context.Context) BranchProtectionV3ArrayOutput

type BranchProtectionV3Input

type BranchProtectionV3Input interface {
	pulumi.Input

	ToBranchProtectionV3Output() BranchProtectionV3Output
	ToBranchProtectionV3OutputWithContext(ctx context.Context) BranchProtectionV3Output
}

type BranchProtectionV3Map

type BranchProtectionV3Map map[string]BranchProtectionV3Input

func (BranchProtectionV3Map) ElementType

func (BranchProtectionV3Map) ElementType() reflect.Type

func (BranchProtectionV3Map) ToBranchProtectionV3MapOutput

func (i BranchProtectionV3Map) ToBranchProtectionV3MapOutput() BranchProtectionV3MapOutput

func (BranchProtectionV3Map) ToBranchProtectionV3MapOutputWithContext

func (i BranchProtectionV3Map) ToBranchProtectionV3MapOutputWithContext(ctx context.Context) BranchProtectionV3MapOutput

type BranchProtectionV3MapInput

type BranchProtectionV3MapInput interface {
	pulumi.Input

	ToBranchProtectionV3MapOutput() BranchProtectionV3MapOutput
	ToBranchProtectionV3MapOutputWithContext(context.Context) BranchProtectionV3MapOutput
}

BranchProtectionV3MapInput is an input type that accepts BranchProtectionV3Map and BranchProtectionV3MapOutput values. You can construct a concrete instance of `BranchProtectionV3MapInput` via:

BranchProtectionV3Map{ "key": BranchProtectionV3Args{...} }

type BranchProtectionV3MapOutput

type BranchProtectionV3MapOutput struct{ *pulumi.OutputState }

func (BranchProtectionV3MapOutput) ElementType

func (BranchProtectionV3MapOutput) MapIndex

func (BranchProtectionV3MapOutput) ToBranchProtectionV3MapOutput

func (o BranchProtectionV3MapOutput) ToBranchProtectionV3MapOutput() BranchProtectionV3MapOutput

func (BranchProtectionV3MapOutput) ToBranchProtectionV3MapOutputWithContext

func (o BranchProtectionV3MapOutput) ToBranchProtectionV3MapOutputWithContext(ctx context.Context) BranchProtectionV3MapOutput

type BranchProtectionV3Output

type BranchProtectionV3Output struct{ *pulumi.OutputState }

func (BranchProtectionV3Output) Branch added in v4.15.0

The Git branch to protect.

func (BranchProtectionV3Output) ElementType

func (BranchProtectionV3Output) ElementType() reflect.Type

func (BranchProtectionV3Output) EnforceAdmins added in v4.15.0

func (o BranchProtectionV3Output) EnforceAdmins() pulumi.BoolPtrOutput

Boolean, setting this to `true` enforces status checks for repository administrators.

func (BranchProtectionV3Output) Etag added in v4.15.0

func (BranchProtectionV3Output) Repository added in v4.15.0

The GitHub repository name.

func (BranchProtectionV3Output) RequireConversationResolution added in v4.15.0

func (o BranchProtectionV3Output) RequireConversationResolution() pulumi.BoolPtrOutput

Boolean, setting this to `true` requires all conversations on code must be resolved before a pull request can be merged.

func (BranchProtectionV3Output) RequireSignedCommits added in v4.15.0

func (o BranchProtectionV3Output) RequireSignedCommits() pulumi.BoolPtrOutput

Boolean, setting this to `true` requires all commits to be signed with GPG.

func (BranchProtectionV3Output) RequiredPullRequestReviews added in v4.15.0

Enforce restrictions for pull request reviews. See Required Pull Request Reviews below for details.

func (BranchProtectionV3Output) RequiredStatusChecks added in v4.15.0

Enforce restrictions for required status checks. See Required Status Checks below for details.

func (BranchProtectionV3Output) Restrictions added in v4.15.0

Enforce restrictions for the users and teams that may push to the branch. See Restrictions below for details.

func (BranchProtectionV3Output) ToBranchProtectionV3Output

func (o BranchProtectionV3Output) ToBranchProtectionV3Output() BranchProtectionV3Output

func (BranchProtectionV3Output) ToBranchProtectionV3OutputWithContext

func (o BranchProtectionV3Output) ToBranchProtectionV3OutputWithContext(ctx context.Context) BranchProtectionV3Output

type BranchProtectionV3RequiredPullRequestReviews

type BranchProtectionV3RequiredPullRequestReviews struct {
	DismissStaleReviews *bool    `pulumi:"dismissStaleReviews"`
	DismissalTeams      []string `pulumi:"dismissalTeams"`
	DismissalUsers      []string `pulumi:"dismissalUsers"`
	// Deprecated: Use enforce_admins instead
	IncludeAdmins                *bool `pulumi:"includeAdmins"`
	RequireCodeOwnerReviews      *bool `pulumi:"requireCodeOwnerReviews"`
	RequiredApprovingReviewCount *int  `pulumi:"requiredApprovingReviewCount"`
}

type BranchProtectionV3RequiredPullRequestReviewsArgs

type BranchProtectionV3RequiredPullRequestReviewsArgs struct {
	DismissStaleReviews pulumi.BoolPtrInput     `pulumi:"dismissStaleReviews"`
	DismissalTeams      pulumi.StringArrayInput `pulumi:"dismissalTeams"`
	DismissalUsers      pulumi.StringArrayInput `pulumi:"dismissalUsers"`
	// Deprecated: Use enforce_admins instead
	IncludeAdmins                pulumi.BoolPtrInput `pulumi:"includeAdmins"`
	RequireCodeOwnerReviews      pulumi.BoolPtrInput `pulumi:"requireCodeOwnerReviews"`
	RequiredApprovingReviewCount pulumi.IntPtrInput  `pulumi:"requiredApprovingReviewCount"`
}

func (BranchProtectionV3RequiredPullRequestReviewsArgs) ElementType

func (BranchProtectionV3RequiredPullRequestReviewsArgs) ToBranchProtectionV3RequiredPullRequestReviewsOutput

func (i BranchProtectionV3RequiredPullRequestReviewsArgs) ToBranchProtectionV3RequiredPullRequestReviewsOutput() BranchProtectionV3RequiredPullRequestReviewsOutput

func (BranchProtectionV3RequiredPullRequestReviewsArgs) ToBranchProtectionV3RequiredPullRequestReviewsOutputWithContext

func (i BranchProtectionV3RequiredPullRequestReviewsArgs) ToBranchProtectionV3RequiredPullRequestReviewsOutputWithContext(ctx context.Context) BranchProtectionV3RequiredPullRequestReviewsOutput

func (BranchProtectionV3RequiredPullRequestReviewsArgs) ToBranchProtectionV3RequiredPullRequestReviewsPtrOutput

func (i BranchProtectionV3RequiredPullRequestReviewsArgs) ToBranchProtectionV3RequiredPullRequestReviewsPtrOutput() BranchProtectionV3RequiredPullRequestReviewsPtrOutput

func (BranchProtectionV3RequiredPullRequestReviewsArgs) ToBranchProtectionV3RequiredPullRequestReviewsPtrOutputWithContext

func (i BranchProtectionV3RequiredPullRequestReviewsArgs) ToBranchProtectionV3RequiredPullRequestReviewsPtrOutputWithContext(ctx context.Context) BranchProtectionV3RequiredPullRequestReviewsPtrOutput

type BranchProtectionV3RequiredPullRequestReviewsInput

type BranchProtectionV3RequiredPullRequestReviewsInput interface {
	pulumi.Input

	ToBranchProtectionV3RequiredPullRequestReviewsOutput() BranchProtectionV3RequiredPullRequestReviewsOutput
	ToBranchProtectionV3RequiredPullRequestReviewsOutputWithContext(context.Context) BranchProtectionV3RequiredPullRequestReviewsOutput
}

BranchProtectionV3RequiredPullRequestReviewsInput is an input type that accepts BranchProtectionV3RequiredPullRequestReviewsArgs and BranchProtectionV3RequiredPullRequestReviewsOutput values. You can construct a concrete instance of `BranchProtectionV3RequiredPullRequestReviewsInput` via:

BranchProtectionV3RequiredPullRequestReviewsArgs{...}

type BranchProtectionV3RequiredPullRequestReviewsOutput

type BranchProtectionV3RequiredPullRequestReviewsOutput struct{ *pulumi.OutputState }

func (BranchProtectionV3RequiredPullRequestReviewsOutput) DismissStaleReviews

func (BranchProtectionV3RequiredPullRequestReviewsOutput) DismissalTeams

func (BranchProtectionV3RequiredPullRequestReviewsOutput) DismissalUsers

func (BranchProtectionV3RequiredPullRequestReviewsOutput) ElementType

func (BranchProtectionV3RequiredPullRequestReviewsOutput) IncludeAdmins deprecated

Deprecated: Use enforce_admins instead

func (BranchProtectionV3RequiredPullRequestReviewsOutput) RequireCodeOwnerReviews

func (BranchProtectionV3RequiredPullRequestReviewsOutput) RequiredApprovingReviewCount

func (BranchProtectionV3RequiredPullRequestReviewsOutput) ToBranchProtectionV3RequiredPullRequestReviewsOutput

func (o BranchProtectionV3RequiredPullRequestReviewsOutput) ToBranchProtectionV3RequiredPullRequestReviewsOutput() BranchProtectionV3RequiredPullRequestReviewsOutput

func (BranchProtectionV3RequiredPullRequestReviewsOutput) ToBranchProtectionV3RequiredPullRequestReviewsOutputWithContext

func (o BranchProtectionV3RequiredPullRequestReviewsOutput) ToBranchProtectionV3RequiredPullRequestReviewsOutputWithContext(ctx context.Context) BranchProtectionV3RequiredPullRequestReviewsOutput

func (BranchProtectionV3RequiredPullRequestReviewsOutput) ToBranchProtectionV3RequiredPullRequestReviewsPtrOutput

func (o BranchProtectionV3RequiredPullRequestReviewsOutput) ToBranchProtectionV3RequiredPullRequestReviewsPtrOutput() BranchProtectionV3RequiredPullRequestReviewsPtrOutput

func (BranchProtectionV3RequiredPullRequestReviewsOutput) ToBranchProtectionV3RequiredPullRequestReviewsPtrOutputWithContext

func (o BranchProtectionV3RequiredPullRequestReviewsOutput) ToBranchProtectionV3RequiredPullRequestReviewsPtrOutputWithContext(ctx context.Context) BranchProtectionV3RequiredPullRequestReviewsPtrOutput

type BranchProtectionV3RequiredPullRequestReviewsPtrInput

type BranchProtectionV3RequiredPullRequestReviewsPtrInput interface {
	pulumi.Input

	ToBranchProtectionV3RequiredPullRequestReviewsPtrOutput() BranchProtectionV3RequiredPullRequestReviewsPtrOutput
	ToBranchProtectionV3RequiredPullRequestReviewsPtrOutputWithContext(context.Context) BranchProtectionV3RequiredPullRequestReviewsPtrOutput
}

BranchProtectionV3RequiredPullRequestReviewsPtrInput is an input type that accepts BranchProtectionV3RequiredPullRequestReviewsArgs, BranchProtectionV3RequiredPullRequestReviewsPtr and BranchProtectionV3RequiredPullRequestReviewsPtrOutput values. You can construct a concrete instance of `BranchProtectionV3RequiredPullRequestReviewsPtrInput` via:

        BranchProtectionV3RequiredPullRequestReviewsArgs{...}

or:

        nil

type BranchProtectionV3RequiredPullRequestReviewsPtrOutput

type BranchProtectionV3RequiredPullRequestReviewsPtrOutput struct{ *pulumi.OutputState }

func (BranchProtectionV3RequiredPullRequestReviewsPtrOutput) DismissStaleReviews

func (BranchProtectionV3RequiredPullRequestReviewsPtrOutput) DismissalTeams

func (BranchProtectionV3RequiredPullRequestReviewsPtrOutput) DismissalUsers

func (BranchProtectionV3RequiredPullRequestReviewsPtrOutput) Elem

func (BranchProtectionV3RequiredPullRequestReviewsPtrOutput) ElementType

func (BranchProtectionV3RequiredPullRequestReviewsPtrOutput) IncludeAdmins deprecated

Deprecated: Use enforce_admins instead

func (BranchProtectionV3RequiredPullRequestReviewsPtrOutput) RequireCodeOwnerReviews

func (BranchProtectionV3RequiredPullRequestReviewsPtrOutput) RequiredApprovingReviewCount

func (BranchProtectionV3RequiredPullRequestReviewsPtrOutput) ToBranchProtectionV3RequiredPullRequestReviewsPtrOutput

func (BranchProtectionV3RequiredPullRequestReviewsPtrOutput) ToBranchProtectionV3RequiredPullRequestReviewsPtrOutputWithContext

func (o BranchProtectionV3RequiredPullRequestReviewsPtrOutput) ToBranchProtectionV3RequiredPullRequestReviewsPtrOutputWithContext(ctx context.Context) BranchProtectionV3RequiredPullRequestReviewsPtrOutput

type BranchProtectionV3RequiredStatusChecks

type BranchProtectionV3RequiredStatusChecks struct {
	Contexts []string `pulumi:"contexts"`
	// Deprecated: Use enforce_admins instead
	IncludeAdmins *bool `pulumi:"includeAdmins"`
	Strict        *bool `pulumi:"strict"`
}

type BranchProtectionV3RequiredStatusChecksArgs

type BranchProtectionV3RequiredStatusChecksArgs struct {
	Contexts pulumi.StringArrayInput `pulumi:"contexts"`
	// Deprecated: Use enforce_admins instead
	IncludeAdmins pulumi.BoolPtrInput `pulumi:"includeAdmins"`
	Strict        pulumi.BoolPtrInput `pulumi:"strict"`
}

func (BranchProtectionV3RequiredStatusChecksArgs) ElementType

func (BranchProtectionV3RequiredStatusChecksArgs) ToBranchProtectionV3RequiredStatusChecksOutput

func (i BranchProtectionV3RequiredStatusChecksArgs) ToBranchProtectionV3RequiredStatusChecksOutput() BranchProtectionV3RequiredStatusChecksOutput

func (BranchProtectionV3RequiredStatusChecksArgs) ToBranchProtectionV3RequiredStatusChecksOutputWithContext

func (i BranchProtectionV3RequiredStatusChecksArgs) ToBranchProtectionV3RequiredStatusChecksOutputWithContext(ctx context.Context) BranchProtectionV3RequiredStatusChecksOutput

func (BranchProtectionV3RequiredStatusChecksArgs) ToBranchProtectionV3RequiredStatusChecksPtrOutput

func (i BranchProtectionV3RequiredStatusChecksArgs) ToBranchProtectionV3RequiredStatusChecksPtrOutput() BranchProtectionV3RequiredStatusChecksPtrOutput

func (BranchProtectionV3RequiredStatusChecksArgs) ToBranchProtectionV3RequiredStatusChecksPtrOutputWithContext

func (i BranchProtectionV3RequiredStatusChecksArgs) ToBranchProtectionV3RequiredStatusChecksPtrOutputWithContext(ctx context.Context) BranchProtectionV3RequiredStatusChecksPtrOutput

type BranchProtectionV3RequiredStatusChecksInput

type BranchProtectionV3RequiredStatusChecksInput interface {
	pulumi.Input

	ToBranchProtectionV3RequiredStatusChecksOutput() BranchProtectionV3RequiredStatusChecksOutput
	ToBranchProtectionV3RequiredStatusChecksOutputWithContext(context.Context) BranchProtectionV3RequiredStatusChecksOutput
}

BranchProtectionV3RequiredStatusChecksInput is an input type that accepts BranchProtectionV3RequiredStatusChecksArgs and BranchProtectionV3RequiredStatusChecksOutput values. You can construct a concrete instance of `BranchProtectionV3RequiredStatusChecksInput` via:

BranchProtectionV3RequiredStatusChecksArgs{...}

type BranchProtectionV3RequiredStatusChecksOutput

type BranchProtectionV3RequiredStatusChecksOutput struct{ *pulumi.OutputState }

func (BranchProtectionV3RequiredStatusChecksOutput) Contexts

func (BranchProtectionV3RequiredStatusChecksOutput) ElementType

func (BranchProtectionV3RequiredStatusChecksOutput) IncludeAdmins deprecated

Deprecated: Use enforce_admins instead

func (BranchProtectionV3RequiredStatusChecksOutput) Strict

func (BranchProtectionV3RequiredStatusChecksOutput) ToBranchProtectionV3RequiredStatusChecksOutput

func (o BranchProtectionV3RequiredStatusChecksOutput) ToBranchProtectionV3RequiredStatusChecksOutput() BranchProtectionV3RequiredStatusChecksOutput

func (BranchProtectionV3RequiredStatusChecksOutput) ToBranchProtectionV3RequiredStatusChecksOutputWithContext

func (o BranchProtectionV3RequiredStatusChecksOutput) ToBranchProtectionV3RequiredStatusChecksOutputWithContext(ctx context.Context) BranchProtectionV3RequiredStatusChecksOutput

func (BranchProtectionV3RequiredStatusChecksOutput) ToBranchProtectionV3RequiredStatusChecksPtrOutput

func (o BranchProtectionV3RequiredStatusChecksOutput) ToBranchProtectionV3RequiredStatusChecksPtrOutput() BranchProtectionV3RequiredStatusChecksPtrOutput

func (BranchProtectionV3RequiredStatusChecksOutput) ToBranchProtectionV3RequiredStatusChecksPtrOutputWithContext

func (o BranchProtectionV3RequiredStatusChecksOutput) ToBranchProtectionV3RequiredStatusChecksPtrOutputWithContext(ctx context.Context) BranchProtectionV3RequiredStatusChecksPtrOutput

type BranchProtectionV3RequiredStatusChecksPtrInput

type BranchProtectionV3RequiredStatusChecksPtrInput interface {
	pulumi.Input

	ToBranchProtectionV3RequiredStatusChecksPtrOutput() BranchProtectionV3RequiredStatusChecksPtrOutput
	ToBranchProtectionV3RequiredStatusChecksPtrOutputWithContext(context.Context) BranchProtectionV3RequiredStatusChecksPtrOutput
}

BranchProtectionV3RequiredStatusChecksPtrInput is an input type that accepts BranchProtectionV3RequiredStatusChecksArgs, BranchProtectionV3RequiredStatusChecksPtr and BranchProtectionV3RequiredStatusChecksPtrOutput values. You can construct a concrete instance of `BranchProtectionV3RequiredStatusChecksPtrInput` via:

        BranchProtectionV3RequiredStatusChecksArgs{...}

or:

        nil

type BranchProtectionV3RequiredStatusChecksPtrOutput

type BranchProtectionV3RequiredStatusChecksPtrOutput struct{ *pulumi.OutputState }

func (BranchProtectionV3RequiredStatusChecksPtrOutput) Contexts

func (BranchProtectionV3RequiredStatusChecksPtrOutput) Elem

func (BranchProtectionV3RequiredStatusChecksPtrOutput) ElementType

func (BranchProtectionV3RequiredStatusChecksPtrOutput) IncludeAdmins deprecated

Deprecated: Use enforce_admins instead

func (BranchProtectionV3RequiredStatusChecksPtrOutput) Strict

func (BranchProtectionV3RequiredStatusChecksPtrOutput) ToBranchProtectionV3RequiredStatusChecksPtrOutput

func (o BranchProtectionV3RequiredStatusChecksPtrOutput) ToBranchProtectionV3RequiredStatusChecksPtrOutput() BranchProtectionV3RequiredStatusChecksPtrOutput

func (BranchProtectionV3RequiredStatusChecksPtrOutput) ToBranchProtectionV3RequiredStatusChecksPtrOutputWithContext

func (o BranchProtectionV3RequiredStatusChecksPtrOutput) ToBranchProtectionV3RequiredStatusChecksPtrOutputWithContext(ctx context.Context) BranchProtectionV3RequiredStatusChecksPtrOutput

type BranchProtectionV3Restrictions

type BranchProtectionV3Restrictions struct {
	Apps  []string `pulumi:"apps"`
	Teams []string `pulumi:"teams"`
	Users []string `pulumi:"users"`
}

type BranchProtectionV3RestrictionsArgs

type BranchProtectionV3RestrictionsArgs struct {
	Apps  pulumi.StringArrayInput `pulumi:"apps"`
	Teams pulumi.StringArrayInput `pulumi:"teams"`
	Users pulumi.StringArrayInput `pulumi:"users"`
}

func (BranchProtectionV3RestrictionsArgs) ElementType

func (BranchProtectionV3RestrictionsArgs) ToBranchProtectionV3RestrictionsOutput

func (i BranchProtectionV3RestrictionsArgs) ToBranchProtectionV3RestrictionsOutput() BranchProtectionV3RestrictionsOutput

func (BranchProtectionV3RestrictionsArgs) ToBranchProtectionV3RestrictionsOutputWithContext

func (i BranchProtectionV3RestrictionsArgs) ToBranchProtectionV3RestrictionsOutputWithContext(ctx context.Context) BranchProtectionV3RestrictionsOutput

func (BranchProtectionV3RestrictionsArgs) ToBranchProtectionV3RestrictionsPtrOutput

func (i BranchProtectionV3RestrictionsArgs) ToBranchProtectionV3RestrictionsPtrOutput() BranchProtectionV3RestrictionsPtrOutput

func (BranchProtectionV3RestrictionsArgs) ToBranchProtectionV3RestrictionsPtrOutputWithContext

func (i BranchProtectionV3RestrictionsArgs) ToBranchProtectionV3RestrictionsPtrOutputWithContext(ctx context.Context) BranchProtectionV3RestrictionsPtrOutput

type BranchProtectionV3RestrictionsInput

type BranchProtectionV3RestrictionsInput interface {
	pulumi.Input

	ToBranchProtectionV3RestrictionsOutput() BranchProtectionV3RestrictionsOutput
	ToBranchProtectionV3RestrictionsOutputWithContext(context.Context) BranchProtectionV3RestrictionsOutput
}

BranchProtectionV3RestrictionsInput is an input type that accepts BranchProtectionV3RestrictionsArgs and BranchProtectionV3RestrictionsOutput values. You can construct a concrete instance of `BranchProtectionV3RestrictionsInput` via:

BranchProtectionV3RestrictionsArgs{...}

type BranchProtectionV3RestrictionsOutput

type BranchProtectionV3RestrictionsOutput struct{ *pulumi.OutputState }

func (BranchProtectionV3RestrictionsOutput) Apps

func (BranchProtectionV3RestrictionsOutput) ElementType

func (BranchProtectionV3RestrictionsOutput) Teams

func (BranchProtectionV3RestrictionsOutput) ToBranchProtectionV3RestrictionsOutput

func (o BranchProtectionV3RestrictionsOutput) ToBranchProtectionV3RestrictionsOutput() BranchProtectionV3RestrictionsOutput

func (BranchProtectionV3RestrictionsOutput) ToBranchProtectionV3RestrictionsOutputWithContext

func (o BranchProtectionV3RestrictionsOutput) ToBranchProtectionV3RestrictionsOutputWithContext(ctx context.Context) BranchProtectionV3RestrictionsOutput

func (BranchProtectionV3RestrictionsOutput) ToBranchProtectionV3RestrictionsPtrOutput

func (o BranchProtectionV3RestrictionsOutput) ToBranchProtectionV3RestrictionsPtrOutput() BranchProtectionV3RestrictionsPtrOutput

func (BranchProtectionV3RestrictionsOutput) ToBranchProtectionV3RestrictionsPtrOutputWithContext

func (o BranchProtectionV3RestrictionsOutput) ToBranchProtectionV3RestrictionsPtrOutputWithContext(ctx context.Context) BranchProtectionV3RestrictionsPtrOutput

func (BranchProtectionV3RestrictionsOutput) Users

type BranchProtectionV3RestrictionsPtrInput

type BranchProtectionV3RestrictionsPtrInput interface {
	pulumi.Input

	ToBranchProtectionV3RestrictionsPtrOutput() BranchProtectionV3RestrictionsPtrOutput
	ToBranchProtectionV3RestrictionsPtrOutputWithContext(context.Context) BranchProtectionV3RestrictionsPtrOutput
}

BranchProtectionV3RestrictionsPtrInput is an input type that accepts BranchProtectionV3RestrictionsArgs, BranchProtectionV3RestrictionsPtr and BranchProtectionV3RestrictionsPtrOutput values. You can construct a concrete instance of `BranchProtectionV3RestrictionsPtrInput` via:

        BranchProtectionV3RestrictionsArgs{...}

or:

        nil

type BranchProtectionV3RestrictionsPtrOutput

type BranchProtectionV3RestrictionsPtrOutput struct{ *pulumi.OutputState }

func (BranchProtectionV3RestrictionsPtrOutput) Apps

func (BranchProtectionV3RestrictionsPtrOutput) Elem

func (BranchProtectionV3RestrictionsPtrOutput) ElementType

func (BranchProtectionV3RestrictionsPtrOutput) Teams

func (BranchProtectionV3RestrictionsPtrOutput) ToBranchProtectionV3RestrictionsPtrOutput

func (o BranchProtectionV3RestrictionsPtrOutput) ToBranchProtectionV3RestrictionsPtrOutput() BranchProtectionV3RestrictionsPtrOutput

func (BranchProtectionV3RestrictionsPtrOutput) ToBranchProtectionV3RestrictionsPtrOutputWithContext

func (o BranchProtectionV3RestrictionsPtrOutput) ToBranchProtectionV3RestrictionsPtrOutputWithContext(ctx context.Context) BranchProtectionV3RestrictionsPtrOutput

func (BranchProtectionV3RestrictionsPtrOutput) Users

type BranchProtectionV3State

type BranchProtectionV3State struct {
	// The Git branch to protect.
	Branch pulumi.StringPtrInput
	// Boolean, setting this to `true` enforces status checks for repository administrators.
	EnforceAdmins pulumi.BoolPtrInput
	Etag          pulumi.StringPtrInput
	// The GitHub repository name.
	Repository pulumi.StringPtrInput
	// Boolean, setting this to `true` requires all conversations on code must be resolved before a pull request can be merged.
	RequireConversationResolution pulumi.BoolPtrInput
	// Boolean, setting this to `true` requires all commits to be signed with GPG.
	RequireSignedCommits pulumi.BoolPtrInput
	// Enforce restrictions for pull request reviews. See Required Pull Request Reviews below for details.
	RequiredPullRequestReviews BranchProtectionV3RequiredPullRequestReviewsPtrInput
	// Enforce restrictions for required status checks. See Required Status Checks below for details.
	RequiredStatusChecks BranchProtectionV3RequiredStatusChecksPtrInput
	// Enforce restrictions for the users and teams that may push to the branch. See Restrictions below for details.
	Restrictions BranchProtectionV3RestrictionsPtrInput
}

func (BranchProtectionV3State) ElementType

func (BranchProtectionV3State) ElementType() reflect.Type

type BranchState

type BranchState struct {
	// The repository branch to create.
	Branch pulumi.StringPtrInput
	// An etag representing the Branch object.
	Etag pulumi.StringPtrInput
	// A string representing a branch reference, in the form of `refs/heads/<branch>`.
	Ref pulumi.StringPtrInput
	// The GitHub repository name.
	Repository pulumi.StringPtrInput
	// A string storing the reference's `HEAD` commit's SHA1.
	Sha pulumi.StringPtrInput
	// The branch name to start from. Defaults to `main`.
	SourceBranch pulumi.StringPtrInput
	// The commit hash to start from. Defaults to the tip of `sourceBranch`. If provided, `sourceBranch` is ignored.
	SourceSha pulumi.StringPtrInput
}

func (BranchState) ElementType

func (BranchState) ElementType() reflect.Type

type DependabotOrganizationSecret added in v4.13.0

type DependabotOrganizationSecret struct {
	pulumi.CustomResourceState

	CreatedAt             pulumi.StringOutput    `pulumi:"createdAt"`
	EncryptedValue        pulumi.StringPtrOutput `pulumi:"encryptedValue"`
	PlaintextValue        pulumi.StringPtrOutput `pulumi:"plaintextValue"`
	SecretName            pulumi.StringOutput    `pulumi:"secretName"`
	SelectedRepositoryIds pulumi.IntArrayOutput  `pulumi:"selectedRepositoryIds"`
	UpdatedAt             pulumi.StringOutput    `pulumi:"updatedAt"`
	Visibility            pulumi.StringOutput    `pulumi:"visibility"`
}

func GetDependabotOrganizationSecret added in v4.13.0

func GetDependabotOrganizationSecret(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DependabotOrganizationSecretState, opts ...pulumi.ResourceOption) (*DependabotOrganizationSecret, error)

GetDependabotOrganizationSecret gets an existing DependabotOrganizationSecret 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 NewDependabotOrganizationSecret added in v4.13.0

func NewDependabotOrganizationSecret(ctx *pulumi.Context,
	name string, args *DependabotOrganizationSecretArgs, opts ...pulumi.ResourceOption) (*DependabotOrganizationSecret, error)

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

func (*DependabotOrganizationSecret) ElementType added in v4.13.0

func (*DependabotOrganizationSecret) ElementType() reflect.Type

func (*DependabotOrganizationSecret) ToDependabotOrganizationSecretOutput added in v4.13.0

func (i *DependabotOrganizationSecret) ToDependabotOrganizationSecretOutput() DependabotOrganizationSecretOutput

func (*DependabotOrganizationSecret) ToDependabotOrganizationSecretOutputWithContext added in v4.13.0

func (i *DependabotOrganizationSecret) ToDependabotOrganizationSecretOutputWithContext(ctx context.Context) DependabotOrganizationSecretOutput

type DependabotOrganizationSecretArgs added in v4.13.0

type DependabotOrganizationSecretArgs struct {
	EncryptedValue        pulumi.StringPtrInput
	PlaintextValue        pulumi.StringPtrInput
	SecretName            pulumi.StringInput
	SelectedRepositoryIds pulumi.IntArrayInput
	Visibility            pulumi.StringInput
}

The set of arguments for constructing a DependabotOrganizationSecret resource.

func (DependabotOrganizationSecretArgs) ElementType added in v4.13.0

type DependabotOrganizationSecretArray added in v4.13.0

type DependabotOrganizationSecretArray []DependabotOrganizationSecretInput

func (DependabotOrganizationSecretArray) ElementType added in v4.13.0

func (DependabotOrganizationSecretArray) ToDependabotOrganizationSecretArrayOutput added in v4.13.0

func (i DependabotOrganizationSecretArray) ToDependabotOrganizationSecretArrayOutput() DependabotOrganizationSecretArrayOutput

func (DependabotOrganizationSecretArray) ToDependabotOrganizationSecretArrayOutputWithContext added in v4.13.0

func (i DependabotOrganizationSecretArray) ToDependabotOrganizationSecretArrayOutputWithContext(ctx context.Context) DependabotOrganizationSecretArrayOutput

type DependabotOrganizationSecretArrayInput added in v4.13.0

type DependabotOrganizationSecretArrayInput interface {
	pulumi.Input

	ToDependabotOrganizationSecretArrayOutput() DependabotOrganizationSecretArrayOutput
	ToDependabotOrganizationSecretArrayOutputWithContext(context.Context) DependabotOrganizationSecretArrayOutput
}

DependabotOrganizationSecretArrayInput is an input type that accepts DependabotOrganizationSecretArray and DependabotOrganizationSecretArrayOutput values. You can construct a concrete instance of `DependabotOrganizationSecretArrayInput` via:

DependabotOrganizationSecretArray{ DependabotOrganizationSecretArgs{...} }

type DependabotOrganizationSecretArrayOutput added in v4.13.0

type DependabotOrganizationSecretArrayOutput struct{ *pulumi.OutputState }

func (DependabotOrganizationSecretArrayOutput) ElementType added in v4.13.0

func (DependabotOrganizationSecretArrayOutput) Index added in v4.13.0

func (DependabotOrganizationSecretArrayOutput) ToDependabotOrganizationSecretArrayOutput added in v4.13.0

func (o DependabotOrganizationSecretArrayOutput) ToDependabotOrganizationSecretArrayOutput() DependabotOrganizationSecretArrayOutput

func (DependabotOrganizationSecretArrayOutput) ToDependabotOrganizationSecretArrayOutputWithContext added in v4.13.0

func (o DependabotOrganizationSecretArrayOutput) ToDependabotOrganizationSecretArrayOutputWithContext(ctx context.Context) DependabotOrganizationSecretArrayOutput

type DependabotOrganizationSecretInput added in v4.13.0

type DependabotOrganizationSecretInput interface {
	pulumi.Input

	ToDependabotOrganizationSecretOutput() DependabotOrganizationSecretOutput
	ToDependabotOrganizationSecretOutputWithContext(ctx context.Context) DependabotOrganizationSecretOutput
}

type DependabotOrganizationSecretMap added in v4.13.0

type DependabotOrganizationSecretMap map[string]DependabotOrganizationSecretInput

func (DependabotOrganizationSecretMap) ElementType added in v4.13.0

func (DependabotOrganizationSecretMap) ToDependabotOrganizationSecretMapOutput added in v4.13.0

func (i DependabotOrganizationSecretMap) ToDependabotOrganizationSecretMapOutput() DependabotOrganizationSecretMapOutput

func (DependabotOrganizationSecretMap) ToDependabotOrganizationSecretMapOutputWithContext added in v4.13.0

func (i DependabotOrganizationSecretMap) ToDependabotOrganizationSecretMapOutputWithContext(ctx context.Context) DependabotOrganizationSecretMapOutput

type DependabotOrganizationSecretMapInput added in v4.13.0

type DependabotOrganizationSecretMapInput interface {
	pulumi.Input

	ToDependabotOrganizationSecretMapOutput() DependabotOrganizationSecretMapOutput
	ToDependabotOrganizationSecretMapOutputWithContext(context.Context) DependabotOrganizationSecretMapOutput
}

DependabotOrganizationSecretMapInput is an input type that accepts DependabotOrganizationSecretMap and DependabotOrganizationSecretMapOutput values. You can construct a concrete instance of `DependabotOrganizationSecretMapInput` via:

DependabotOrganizationSecretMap{ "key": DependabotOrganizationSecretArgs{...} }

type DependabotOrganizationSecretMapOutput added in v4.13.0

type DependabotOrganizationSecretMapOutput struct{ *pulumi.OutputState }

func (DependabotOrganizationSecretMapOutput) ElementType added in v4.13.0

func (DependabotOrganizationSecretMapOutput) MapIndex added in v4.13.0

func (DependabotOrganizationSecretMapOutput) ToDependabotOrganizationSecretMapOutput added in v4.13.0

func (o DependabotOrganizationSecretMapOutput) ToDependabotOrganizationSecretMapOutput() DependabotOrganizationSecretMapOutput

func (DependabotOrganizationSecretMapOutput) ToDependabotOrganizationSecretMapOutputWithContext added in v4.13.0

func (o DependabotOrganizationSecretMapOutput) ToDependabotOrganizationSecretMapOutputWithContext(ctx context.Context) DependabotOrganizationSecretMapOutput

type DependabotOrganizationSecretOutput added in v4.13.0

type DependabotOrganizationSecretOutput struct{ *pulumi.OutputState }

func (DependabotOrganizationSecretOutput) CreatedAt added in v4.15.0

func (DependabotOrganizationSecretOutput) ElementType added in v4.13.0

func (DependabotOrganizationSecretOutput) EncryptedValue added in v4.15.0

func (DependabotOrganizationSecretOutput) PlaintextValue added in v4.15.0

func (DependabotOrganizationSecretOutput) SecretName added in v4.15.0

func (DependabotOrganizationSecretOutput) SelectedRepositoryIds added in v4.15.0

func (o DependabotOrganizationSecretOutput) SelectedRepositoryIds() pulumi.IntArrayOutput

func (DependabotOrganizationSecretOutput) ToDependabotOrganizationSecretOutput added in v4.13.0

func (o DependabotOrganizationSecretOutput) ToDependabotOrganizationSecretOutput() DependabotOrganizationSecretOutput

func (DependabotOrganizationSecretOutput) ToDependabotOrganizationSecretOutputWithContext added in v4.13.0

func (o DependabotOrganizationSecretOutput) ToDependabotOrganizationSecretOutputWithContext(ctx context.Context) DependabotOrganizationSecretOutput

func (DependabotOrganizationSecretOutput) UpdatedAt added in v4.15.0

func (DependabotOrganizationSecretOutput) Visibility added in v4.15.0

type DependabotOrganizationSecretRepositories added in v4.13.0

type DependabotOrganizationSecretRepositories struct {
	pulumi.CustomResourceState

	SecretName            pulumi.StringOutput   `pulumi:"secretName"`
	SelectedRepositoryIds pulumi.IntArrayOutput `pulumi:"selectedRepositoryIds"`
}

func GetDependabotOrganizationSecretRepositories added in v4.13.0

func GetDependabotOrganizationSecretRepositories(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DependabotOrganizationSecretRepositoriesState, opts ...pulumi.ResourceOption) (*DependabotOrganizationSecretRepositories, error)

GetDependabotOrganizationSecretRepositories gets an existing DependabotOrganizationSecretRepositories 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 NewDependabotOrganizationSecretRepositories added in v4.13.0

func NewDependabotOrganizationSecretRepositories(ctx *pulumi.Context,
	name string, args *DependabotOrganizationSecretRepositoriesArgs, opts ...pulumi.ResourceOption) (*DependabotOrganizationSecretRepositories, error)

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

func (*DependabotOrganizationSecretRepositories) ElementType added in v4.13.0

func (*DependabotOrganizationSecretRepositories) ToDependabotOrganizationSecretRepositoriesOutput added in v4.13.0

func (i *DependabotOrganizationSecretRepositories) ToDependabotOrganizationSecretRepositoriesOutput() DependabotOrganizationSecretRepositoriesOutput

func (*DependabotOrganizationSecretRepositories) ToDependabotOrganizationSecretRepositoriesOutputWithContext added in v4.13.0

func (i *DependabotOrganizationSecretRepositories) ToDependabotOrganizationSecretRepositoriesOutputWithContext(ctx context.Context) DependabotOrganizationSecretRepositoriesOutput

type DependabotOrganizationSecretRepositoriesArgs added in v4.13.0

type DependabotOrganizationSecretRepositoriesArgs struct {
	SecretName            pulumi.StringInput
	SelectedRepositoryIds pulumi.IntArrayInput
}

The set of arguments for constructing a DependabotOrganizationSecretRepositories resource.

func (DependabotOrganizationSecretRepositoriesArgs) ElementType added in v4.13.0

type DependabotOrganizationSecretRepositoriesArray added in v4.13.0

type DependabotOrganizationSecretRepositoriesArray []DependabotOrganizationSecretRepositoriesInput

func (DependabotOrganizationSecretRepositoriesArray) ElementType added in v4.13.0

func (DependabotOrganizationSecretRepositoriesArray) ToDependabotOrganizationSecretRepositoriesArrayOutput added in v4.13.0

func (i DependabotOrganizationSecretRepositoriesArray) ToDependabotOrganizationSecretRepositoriesArrayOutput() DependabotOrganizationSecretRepositoriesArrayOutput

func (DependabotOrganizationSecretRepositoriesArray) ToDependabotOrganizationSecretRepositoriesArrayOutputWithContext added in v4.13.0

func (i DependabotOrganizationSecretRepositoriesArray) ToDependabotOrganizationSecretRepositoriesArrayOutputWithContext(ctx context.Context) DependabotOrganizationSecretRepositoriesArrayOutput

type DependabotOrganizationSecretRepositoriesArrayInput added in v4.13.0

type DependabotOrganizationSecretRepositoriesArrayInput interface {
	pulumi.Input

	ToDependabotOrganizationSecretRepositoriesArrayOutput() DependabotOrganizationSecretRepositoriesArrayOutput
	ToDependabotOrganizationSecretRepositoriesArrayOutputWithContext(context.Context) DependabotOrganizationSecretRepositoriesArrayOutput
}

DependabotOrganizationSecretRepositoriesArrayInput is an input type that accepts DependabotOrganizationSecretRepositoriesArray and DependabotOrganizationSecretRepositoriesArrayOutput values. You can construct a concrete instance of `DependabotOrganizationSecretRepositoriesArrayInput` via:

DependabotOrganizationSecretRepositoriesArray{ DependabotOrganizationSecretRepositoriesArgs{...} }

type DependabotOrganizationSecretRepositoriesArrayOutput added in v4.13.0

type DependabotOrganizationSecretRepositoriesArrayOutput struct{ *pulumi.OutputState }

func (DependabotOrganizationSecretRepositoriesArrayOutput) ElementType added in v4.13.0

func (DependabotOrganizationSecretRepositoriesArrayOutput) Index added in v4.13.0

func (DependabotOrganizationSecretRepositoriesArrayOutput) ToDependabotOrganizationSecretRepositoriesArrayOutput added in v4.13.0

func (o DependabotOrganizationSecretRepositoriesArrayOutput) ToDependabotOrganizationSecretRepositoriesArrayOutput() DependabotOrganizationSecretRepositoriesArrayOutput

func (DependabotOrganizationSecretRepositoriesArrayOutput) ToDependabotOrganizationSecretRepositoriesArrayOutputWithContext added in v4.13.0

func (o DependabotOrganizationSecretRepositoriesArrayOutput) ToDependabotOrganizationSecretRepositoriesArrayOutputWithContext(ctx context.Context) DependabotOrganizationSecretRepositoriesArrayOutput

type DependabotOrganizationSecretRepositoriesInput added in v4.13.0

type DependabotOrganizationSecretRepositoriesInput interface {
	pulumi.Input

	ToDependabotOrganizationSecretRepositoriesOutput() DependabotOrganizationSecretRepositoriesOutput
	ToDependabotOrganizationSecretRepositoriesOutputWithContext(ctx context.Context) DependabotOrganizationSecretRepositoriesOutput
}

type DependabotOrganizationSecretRepositoriesMap added in v4.13.0

type DependabotOrganizationSecretRepositoriesMap map[string]DependabotOrganizationSecretRepositoriesInput

func (DependabotOrganizationSecretRepositoriesMap) ElementType added in v4.13.0

func (DependabotOrganizationSecretRepositoriesMap) ToDependabotOrganizationSecretRepositoriesMapOutput added in v4.13.0

func (i DependabotOrganizationSecretRepositoriesMap) ToDependabotOrganizationSecretRepositoriesMapOutput() DependabotOrganizationSecretRepositoriesMapOutput

func (DependabotOrganizationSecretRepositoriesMap) ToDependabotOrganizationSecretRepositoriesMapOutputWithContext added in v4.13.0

func (i DependabotOrganizationSecretRepositoriesMap) ToDependabotOrganizationSecretRepositoriesMapOutputWithContext(ctx context.Context) DependabotOrganizationSecretRepositoriesMapOutput

type DependabotOrganizationSecretRepositoriesMapInput added in v4.13.0

type DependabotOrganizationSecretRepositoriesMapInput interface {
	pulumi.Input

	ToDependabotOrganizationSecretRepositoriesMapOutput() DependabotOrganizationSecretRepositoriesMapOutput
	ToDependabotOrganizationSecretRepositoriesMapOutputWithContext(context.Context) DependabotOrganizationSecretRepositoriesMapOutput
}

DependabotOrganizationSecretRepositoriesMapInput is an input type that accepts DependabotOrganizationSecretRepositoriesMap and DependabotOrganizationSecretRepositoriesMapOutput values. You can construct a concrete instance of `DependabotOrganizationSecretRepositoriesMapInput` via:

DependabotOrganizationSecretRepositoriesMap{ "key": DependabotOrganizationSecretRepositoriesArgs{...} }

type DependabotOrganizationSecretRepositoriesMapOutput added in v4.13.0

type DependabotOrganizationSecretRepositoriesMapOutput struct{ *pulumi.OutputState }

func (DependabotOrganizationSecretRepositoriesMapOutput) ElementType added in v4.13.0

func (DependabotOrganizationSecretRepositoriesMapOutput) MapIndex added in v4.13.0

func (DependabotOrganizationSecretRepositoriesMapOutput) ToDependabotOrganizationSecretRepositoriesMapOutput added in v4.13.0

func (o DependabotOrganizationSecretRepositoriesMapOutput) ToDependabotOrganizationSecretRepositoriesMapOutput() DependabotOrganizationSecretRepositoriesMapOutput

func (DependabotOrganizationSecretRepositoriesMapOutput) ToDependabotOrganizationSecretRepositoriesMapOutputWithContext added in v4.13.0

func (o DependabotOrganizationSecretRepositoriesMapOutput) ToDependabotOrganizationSecretRepositoriesMapOutputWithContext(ctx context.Context) DependabotOrganizationSecretRepositoriesMapOutput

type DependabotOrganizationSecretRepositoriesOutput added in v4.13.0

type DependabotOrganizationSecretRepositoriesOutput struct{ *pulumi.OutputState }

func (DependabotOrganizationSecretRepositoriesOutput) ElementType added in v4.13.0

func (DependabotOrganizationSecretRepositoriesOutput) SecretName added in v4.15.0

func (DependabotOrganizationSecretRepositoriesOutput) SelectedRepositoryIds added in v4.15.0

func (DependabotOrganizationSecretRepositoriesOutput) ToDependabotOrganizationSecretRepositoriesOutput added in v4.13.0

func (o DependabotOrganizationSecretRepositoriesOutput) ToDependabotOrganizationSecretRepositoriesOutput() DependabotOrganizationSecretRepositoriesOutput

func (DependabotOrganizationSecretRepositoriesOutput) ToDependabotOrganizationSecretRepositoriesOutputWithContext added in v4.13.0

func (o DependabotOrganizationSecretRepositoriesOutput) ToDependabotOrganizationSecretRepositoriesOutputWithContext(ctx context.Context) DependabotOrganizationSecretRepositoriesOutput

type DependabotOrganizationSecretRepositoriesState added in v4.13.0

type DependabotOrganizationSecretRepositoriesState struct {
	SecretName            pulumi.StringPtrInput
	SelectedRepositoryIds pulumi.IntArrayInput
}

func (DependabotOrganizationSecretRepositoriesState) ElementType added in v4.13.0

type DependabotOrganizationSecretState added in v4.13.0

type DependabotOrganizationSecretState struct {
	CreatedAt             pulumi.StringPtrInput
	EncryptedValue        pulumi.StringPtrInput
	PlaintextValue        pulumi.StringPtrInput
	SecretName            pulumi.StringPtrInput
	SelectedRepositoryIds pulumi.IntArrayInput
	UpdatedAt             pulumi.StringPtrInput
	Visibility            pulumi.StringPtrInput
}

func (DependabotOrganizationSecretState) ElementType added in v4.13.0

type DependabotSecret added in v4.13.0

type DependabotSecret struct {
	pulumi.CustomResourceState

	CreatedAt      pulumi.StringOutput    `pulumi:"createdAt"`
	EncryptedValue pulumi.StringPtrOutput `pulumi:"encryptedValue"`
	PlaintextValue pulumi.StringPtrOutput `pulumi:"plaintextValue"`
	Repository     pulumi.StringOutput    `pulumi:"repository"`
	SecretName     pulumi.StringOutput    `pulumi:"secretName"`
	UpdatedAt      pulumi.StringOutput    `pulumi:"updatedAt"`
}

func GetDependabotSecret added in v4.13.0

func GetDependabotSecret(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DependabotSecretState, opts ...pulumi.ResourceOption) (*DependabotSecret, error)

GetDependabotSecret gets an existing DependabotSecret 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 NewDependabotSecret added in v4.13.0

func NewDependabotSecret(ctx *pulumi.Context,
	name string, args *DependabotSecretArgs, opts ...pulumi.ResourceOption) (*DependabotSecret, error)

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

func (*DependabotSecret) ElementType added in v4.13.0

func (*DependabotSecret) ElementType() reflect.Type

func (*DependabotSecret) ToDependabotSecretOutput added in v4.13.0

func (i *DependabotSecret) ToDependabotSecretOutput() DependabotSecretOutput

func (*DependabotSecret) ToDependabotSecretOutputWithContext added in v4.13.0

func (i *DependabotSecret) ToDependabotSecretOutputWithContext(ctx context.Context) DependabotSecretOutput

type DependabotSecretArgs added in v4.13.0

type DependabotSecretArgs struct {
	EncryptedValue pulumi.StringPtrInput
	PlaintextValue pulumi.StringPtrInput
	Repository     pulumi.StringInput
	SecretName     pulumi.StringInput
}

The set of arguments for constructing a DependabotSecret resource.

func (DependabotSecretArgs) ElementType added in v4.13.0

func (DependabotSecretArgs) ElementType() reflect.Type

type DependabotSecretArray added in v4.13.0

type DependabotSecretArray []DependabotSecretInput

func (DependabotSecretArray) ElementType added in v4.13.0

func (DependabotSecretArray) ElementType() reflect.Type

func (DependabotSecretArray) ToDependabotSecretArrayOutput added in v4.13.0

func (i DependabotSecretArray) ToDependabotSecretArrayOutput() DependabotSecretArrayOutput

func (DependabotSecretArray) ToDependabotSecretArrayOutputWithContext added in v4.13.0

func (i DependabotSecretArray) ToDependabotSecretArrayOutputWithContext(ctx context.Context) DependabotSecretArrayOutput

type DependabotSecretArrayInput added in v4.13.0

type DependabotSecretArrayInput interface {
	pulumi.Input

	ToDependabotSecretArrayOutput() DependabotSecretArrayOutput
	ToDependabotSecretArrayOutputWithContext(context.Context) DependabotSecretArrayOutput
}

DependabotSecretArrayInput is an input type that accepts DependabotSecretArray and DependabotSecretArrayOutput values. You can construct a concrete instance of `DependabotSecretArrayInput` via:

DependabotSecretArray{ DependabotSecretArgs{...} }

type DependabotSecretArrayOutput added in v4.13.0

type DependabotSecretArrayOutput struct{ *pulumi.OutputState }

func (DependabotSecretArrayOutput) ElementType added in v4.13.0

func (DependabotSecretArrayOutput) Index added in v4.13.0

func (DependabotSecretArrayOutput) ToDependabotSecretArrayOutput added in v4.13.0

func (o DependabotSecretArrayOutput) ToDependabotSecretArrayOutput() DependabotSecretArrayOutput

func (DependabotSecretArrayOutput) ToDependabotSecretArrayOutputWithContext added in v4.13.0

func (o DependabotSecretArrayOutput) ToDependabotSecretArrayOutputWithContext(ctx context.Context) DependabotSecretArrayOutput

type DependabotSecretInput added in v4.13.0

type DependabotSecretInput interface {
	pulumi.Input

	ToDependabotSecretOutput() DependabotSecretOutput
	ToDependabotSecretOutputWithContext(ctx context.Context) DependabotSecretOutput
}

type DependabotSecretMap added in v4.13.0

type DependabotSecretMap map[string]DependabotSecretInput

func (DependabotSecretMap) ElementType added in v4.13.0

func (DependabotSecretMap) ElementType() reflect.Type

func (DependabotSecretMap) ToDependabotSecretMapOutput added in v4.13.0

func (i DependabotSecretMap) ToDependabotSecretMapOutput() DependabotSecretMapOutput

func (DependabotSecretMap) ToDependabotSecretMapOutputWithContext added in v4.13.0

func (i DependabotSecretMap) ToDependabotSecretMapOutputWithContext(ctx context.Context) DependabotSecretMapOutput

type DependabotSecretMapInput added in v4.13.0

type DependabotSecretMapInput interface {
	pulumi.Input

	ToDependabotSecretMapOutput() DependabotSecretMapOutput
	ToDependabotSecretMapOutputWithContext(context.Context) DependabotSecretMapOutput
}

DependabotSecretMapInput is an input type that accepts DependabotSecretMap and DependabotSecretMapOutput values. You can construct a concrete instance of `DependabotSecretMapInput` via:

DependabotSecretMap{ "key": DependabotSecretArgs{...} }

type DependabotSecretMapOutput added in v4.13.0

type DependabotSecretMapOutput struct{ *pulumi.OutputState }

func (DependabotSecretMapOutput) ElementType added in v4.13.0

func (DependabotSecretMapOutput) ElementType() reflect.Type

func (DependabotSecretMapOutput) MapIndex added in v4.13.0

func (DependabotSecretMapOutput) ToDependabotSecretMapOutput added in v4.13.0

func (o DependabotSecretMapOutput) ToDependabotSecretMapOutput() DependabotSecretMapOutput

func (DependabotSecretMapOutput) ToDependabotSecretMapOutputWithContext added in v4.13.0

func (o DependabotSecretMapOutput) ToDependabotSecretMapOutputWithContext(ctx context.Context) DependabotSecretMapOutput

type DependabotSecretOutput added in v4.13.0

type DependabotSecretOutput struct{ *pulumi.OutputState }

func (DependabotSecretOutput) CreatedAt added in v4.15.0

func (DependabotSecretOutput) ElementType added in v4.13.0

func (DependabotSecretOutput) ElementType() reflect.Type

func (DependabotSecretOutput) EncryptedValue added in v4.15.0

func (o DependabotSecretOutput) EncryptedValue() pulumi.StringPtrOutput

func (DependabotSecretOutput) PlaintextValue added in v4.15.0

func (o DependabotSecretOutput) PlaintextValue() pulumi.StringPtrOutput

func (DependabotSecretOutput) Repository added in v4.15.0

func (DependabotSecretOutput) SecretName added in v4.15.0

func (DependabotSecretOutput) ToDependabotSecretOutput added in v4.13.0

func (o DependabotSecretOutput) ToDependabotSecretOutput() DependabotSecretOutput

func (DependabotSecretOutput) ToDependabotSecretOutputWithContext added in v4.13.0

func (o DependabotSecretOutput) ToDependabotSecretOutputWithContext(ctx context.Context) DependabotSecretOutput

func (DependabotSecretOutput) UpdatedAt added in v4.15.0

type DependabotSecretState added in v4.13.0

type DependabotSecretState struct {
	CreatedAt      pulumi.StringPtrInput
	EncryptedValue pulumi.StringPtrInput
	PlaintextValue pulumi.StringPtrInput
	Repository     pulumi.StringPtrInput
	SecretName     pulumi.StringPtrInput
	UpdatedAt      pulumi.StringPtrInput
}

func (DependabotSecretState) ElementType added in v4.13.0

func (DependabotSecretState) ElementType() reflect.Type

type EmuGroupMapping added in v4.12.0

type EmuGroupMapping struct {
	pulumi.CustomResourceState

	Etag pulumi.StringOutput `pulumi:"etag"`
	// Integer corresponding to the external group ID to be linked
	GroupId pulumi.IntOutput `pulumi:"groupId"`
	// Slug of the GitHub team
	TeamSlug pulumi.StringOutput `pulumi:"teamSlug"`
}

This resource manages mappings between external groups for enterprise managed users and GitHub teams. It wraps the API detailed [here](https://docs.github.com/en/rest/reference/teams#external-groups). Note that this is a distinct resource from `TeamSyncGroupMapping`. `EmuGroupMapping` is special to the Enterprise Managed User (EMU) external group feature, whereas `TeamSyncGroupMapping` is specific to Identity Provider Groups.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.NewEmuGroupMapping(ctx, "exampleEmuGroupMapping", &github.EmuGroupMappingArgs{
			GroupId:  pulumi.Int(28836),
			TeamSlug: pulumi.String("emu-test-team"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

GitHub EMU External Group Mappings can be imported using the external `group_id`, e.g.

```sh

$ pulumi import github:index/emuGroupMapping:EmuGroupMapping example_emu_group_mapping 28836

```

func GetEmuGroupMapping added in v4.12.0

func GetEmuGroupMapping(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *EmuGroupMappingState, opts ...pulumi.ResourceOption) (*EmuGroupMapping, error)

GetEmuGroupMapping gets an existing EmuGroupMapping 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 NewEmuGroupMapping added in v4.12.0

func NewEmuGroupMapping(ctx *pulumi.Context,
	name string, args *EmuGroupMappingArgs, opts ...pulumi.ResourceOption) (*EmuGroupMapping, error)

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

func (*EmuGroupMapping) ElementType added in v4.12.0

func (*EmuGroupMapping) ElementType() reflect.Type

func (*EmuGroupMapping) ToEmuGroupMappingOutput added in v4.12.0

func (i *EmuGroupMapping) ToEmuGroupMappingOutput() EmuGroupMappingOutput

func (*EmuGroupMapping) ToEmuGroupMappingOutputWithContext added in v4.12.0

func (i *EmuGroupMapping) ToEmuGroupMappingOutputWithContext(ctx context.Context) EmuGroupMappingOutput

type EmuGroupMappingArgs added in v4.12.0

type EmuGroupMappingArgs struct {
	// Integer corresponding to the external group ID to be linked
	GroupId pulumi.IntInput
	// Slug of the GitHub team
	TeamSlug pulumi.StringInput
}

The set of arguments for constructing a EmuGroupMapping resource.

func (EmuGroupMappingArgs) ElementType added in v4.12.0

func (EmuGroupMappingArgs) ElementType() reflect.Type

type EmuGroupMappingArray added in v4.12.0

type EmuGroupMappingArray []EmuGroupMappingInput

func (EmuGroupMappingArray) ElementType added in v4.12.0

func (EmuGroupMappingArray) ElementType() reflect.Type

func (EmuGroupMappingArray) ToEmuGroupMappingArrayOutput added in v4.12.0

func (i EmuGroupMappingArray) ToEmuGroupMappingArrayOutput() EmuGroupMappingArrayOutput

func (EmuGroupMappingArray) ToEmuGroupMappingArrayOutputWithContext added in v4.12.0

func (i EmuGroupMappingArray) ToEmuGroupMappingArrayOutputWithContext(ctx context.Context) EmuGroupMappingArrayOutput

type EmuGroupMappingArrayInput added in v4.12.0

type EmuGroupMappingArrayInput interface {
	pulumi.Input

	ToEmuGroupMappingArrayOutput() EmuGroupMappingArrayOutput
	ToEmuGroupMappingArrayOutputWithContext(context.Context) EmuGroupMappingArrayOutput
}

EmuGroupMappingArrayInput is an input type that accepts EmuGroupMappingArray and EmuGroupMappingArrayOutput values. You can construct a concrete instance of `EmuGroupMappingArrayInput` via:

EmuGroupMappingArray{ EmuGroupMappingArgs{...} }

type EmuGroupMappingArrayOutput added in v4.12.0

type EmuGroupMappingArrayOutput struct{ *pulumi.OutputState }

func (EmuGroupMappingArrayOutput) ElementType added in v4.12.0

func (EmuGroupMappingArrayOutput) ElementType() reflect.Type

func (EmuGroupMappingArrayOutput) Index added in v4.12.0

func (EmuGroupMappingArrayOutput) ToEmuGroupMappingArrayOutput added in v4.12.0

func (o EmuGroupMappingArrayOutput) ToEmuGroupMappingArrayOutput() EmuGroupMappingArrayOutput

func (EmuGroupMappingArrayOutput) ToEmuGroupMappingArrayOutputWithContext added in v4.12.0

func (o EmuGroupMappingArrayOutput) ToEmuGroupMappingArrayOutputWithContext(ctx context.Context) EmuGroupMappingArrayOutput

type EmuGroupMappingInput added in v4.12.0

type EmuGroupMappingInput interface {
	pulumi.Input

	ToEmuGroupMappingOutput() EmuGroupMappingOutput
	ToEmuGroupMappingOutputWithContext(ctx context.Context) EmuGroupMappingOutput
}

type EmuGroupMappingMap added in v4.12.0

type EmuGroupMappingMap map[string]EmuGroupMappingInput

func (EmuGroupMappingMap) ElementType added in v4.12.0

func (EmuGroupMappingMap) ElementType() reflect.Type

func (EmuGroupMappingMap) ToEmuGroupMappingMapOutput added in v4.12.0

func (i EmuGroupMappingMap) ToEmuGroupMappingMapOutput() EmuGroupMappingMapOutput

func (EmuGroupMappingMap) ToEmuGroupMappingMapOutputWithContext added in v4.12.0

func (i EmuGroupMappingMap) ToEmuGroupMappingMapOutputWithContext(ctx context.Context) EmuGroupMappingMapOutput

type EmuGroupMappingMapInput added in v4.12.0

type EmuGroupMappingMapInput interface {
	pulumi.Input

	ToEmuGroupMappingMapOutput() EmuGroupMappingMapOutput
	ToEmuGroupMappingMapOutputWithContext(context.Context) EmuGroupMappingMapOutput
}

EmuGroupMappingMapInput is an input type that accepts EmuGroupMappingMap and EmuGroupMappingMapOutput values. You can construct a concrete instance of `EmuGroupMappingMapInput` via:

EmuGroupMappingMap{ "key": EmuGroupMappingArgs{...} }

type EmuGroupMappingMapOutput added in v4.12.0

type EmuGroupMappingMapOutput struct{ *pulumi.OutputState }

func (EmuGroupMappingMapOutput) ElementType added in v4.12.0

func (EmuGroupMappingMapOutput) ElementType() reflect.Type

func (EmuGroupMappingMapOutput) MapIndex added in v4.12.0

func (EmuGroupMappingMapOutput) ToEmuGroupMappingMapOutput added in v4.12.0

func (o EmuGroupMappingMapOutput) ToEmuGroupMappingMapOutput() EmuGroupMappingMapOutput

func (EmuGroupMappingMapOutput) ToEmuGroupMappingMapOutputWithContext added in v4.12.0

func (o EmuGroupMappingMapOutput) ToEmuGroupMappingMapOutputWithContext(ctx context.Context) EmuGroupMappingMapOutput

type EmuGroupMappingOutput added in v4.12.0

type EmuGroupMappingOutput struct{ *pulumi.OutputState }

func (EmuGroupMappingOutput) ElementType added in v4.12.0

func (EmuGroupMappingOutput) ElementType() reflect.Type

func (EmuGroupMappingOutput) Etag added in v4.15.0

func (EmuGroupMappingOutput) GroupId added in v4.15.0

Integer corresponding to the external group ID to be linked

func (EmuGroupMappingOutput) TeamSlug added in v4.15.0

Slug of the GitHub team

func (EmuGroupMappingOutput) ToEmuGroupMappingOutput added in v4.12.0

func (o EmuGroupMappingOutput) ToEmuGroupMappingOutput() EmuGroupMappingOutput

func (EmuGroupMappingOutput) ToEmuGroupMappingOutputWithContext added in v4.12.0

func (o EmuGroupMappingOutput) ToEmuGroupMappingOutputWithContext(ctx context.Context) EmuGroupMappingOutput

type EmuGroupMappingState added in v4.12.0

type EmuGroupMappingState struct {
	Etag pulumi.StringPtrInput
	// Integer corresponding to the external group ID to be linked
	GroupId pulumi.IntPtrInput
	// Slug of the GitHub team
	TeamSlug pulumi.StringPtrInput
}

func (EmuGroupMappingState) ElementType added in v4.12.0

func (EmuGroupMappingState) ElementType() reflect.Type

type GetActionsPublicKeyArgs

type GetActionsPublicKeyArgs struct {
	// Name of the repository to get public key from.
	Repository string `pulumi:"repository"`
}

A collection of arguments for invoking getActionsPublicKey.

type GetActionsPublicKeyOutputArgs added in v4.8.0

type GetActionsPublicKeyOutputArgs struct {
	// Name of the repository to get public key from.
	Repository pulumi.StringInput `pulumi:"repository"`
}

A collection of arguments for invoking getActionsPublicKey.

func (GetActionsPublicKeyOutputArgs) ElementType added in v4.8.0

type GetActionsPublicKeyResult

type GetActionsPublicKeyResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// Actual key retrieved.
	Key string `pulumi:"key"`
	// ID of the key that has been retrieved.
	KeyId      string `pulumi:"keyId"`
	Repository string `pulumi:"repository"`
}

A collection of values returned by getActionsPublicKey.

func GetActionsPublicKey

func GetActionsPublicKey(ctx *pulumi.Context, args *GetActionsPublicKeyArgs, opts ...pulumi.InvokeOption) (*GetActionsPublicKeyResult, error)

Use this data source to retrieve information about a GitHub Actions public key. This data source is required to be used with other GitHub secrets interactions. Note that the provider `token` must have admin rights to a repository to retrieve it's action public key.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.GetActionsPublicKey(ctx, &GetActionsPublicKeyArgs{
			Repository: "example_repo",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetActionsPublicKeyResultOutput added in v4.8.0

type GetActionsPublicKeyResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getActionsPublicKey.

func GetActionsPublicKeyOutput added in v4.8.0

func (GetActionsPublicKeyResultOutput) ElementType added in v4.8.0

func (GetActionsPublicKeyResultOutput) Id added in v4.8.0

The provider-assigned unique ID for this managed resource.

func (GetActionsPublicKeyResultOutput) Key added in v4.8.0

Actual key retrieved.

func (GetActionsPublicKeyResultOutput) KeyId added in v4.8.0

ID of the key that has been retrieved.

func (GetActionsPublicKeyResultOutput) Repository added in v4.8.0

func (GetActionsPublicKeyResultOutput) ToGetActionsPublicKeyResultOutput added in v4.8.0

func (o GetActionsPublicKeyResultOutput) ToGetActionsPublicKeyResultOutput() GetActionsPublicKeyResultOutput

func (GetActionsPublicKeyResultOutput) ToGetActionsPublicKeyResultOutputWithContext added in v4.8.0

func (o GetActionsPublicKeyResultOutput) ToGetActionsPublicKeyResultOutputWithContext(ctx context.Context) GetActionsPublicKeyResultOutput

type GetCollaboratorsArgs

type GetCollaboratorsArgs struct {
	// Filter collaborators returned by their affiliation. Can be one of: `outside`, `direct`, `all`.  Defaults to `all`.
	Affiliation *string `pulumi:"affiliation"`
	// The organization that owns the repository.
	Owner string `pulumi:"owner"`
	// The name of the repository.
	Repository string `pulumi:"repository"`
}

A collection of arguments for invoking getCollaborators.

type GetCollaboratorsCollaborator

type GetCollaboratorsCollaborator struct {
	// The GitHub API URL for the collaborator's events.
	EventsUrl string `pulumi:"eventsUrl"`
	// The GitHub API URL for the collaborator's followers.
	FollowersUrl string `pulumi:"followersUrl"`
	// The GitHub API URL for those following the collaborator.
	FollowingUrl string `pulumi:"followingUrl"`
	// The GitHub API URL for the collaborator's gists.
	GistsUrl string `pulumi:"gistsUrl"`
	// The GitHub HTML URL for the collaborator.
	HtmlUrl string `pulumi:"htmlUrl"`
	// The ID of the collaborator.
	Id int `pulumi:"id"`
	// The collaborator's login.
	Login string `pulumi:"login"`
	// The GitHub API URL for the collaborator's organizations.
	OrganizationsUrl string `pulumi:"organizationsUrl"`
	// The permission of the collaborator.
	Permission string `pulumi:"permission"`
	// The GitHub API URL for the collaborator's received events.
	ReceivedEventsUrl string `pulumi:"receivedEventsUrl"`
	// The GitHub API URL for the collaborator's repositories.
	ReposUrl string `pulumi:"reposUrl"`
	// Whether the user is a GitHub admin.
	SiteAdmin bool `pulumi:"siteAdmin"`
	// The GitHub API URL for the collaborator's starred repositories.
	StarredUrl string `pulumi:"starredUrl"`
	// The GitHub API URL for the collaborator's subscribed repositories.
	SubscriptionsUrl string `pulumi:"subscriptionsUrl"`
	// The type of the collaborator (ex. `user`).
	Type string `pulumi:"type"`
	// The GitHub API URL for the collaborator.
	Url string `pulumi:"url"`
}

type GetCollaboratorsCollaboratorArgs

type GetCollaboratorsCollaboratorArgs struct {
	// The GitHub API URL for the collaborator's events.
	EventsUrl pulumi.StringInput `pulumi:"eventsUrl"`
	// The GitHub API URL for the collaborator's followers.
	FollowersUrl pulumi.StringInput `pulumi:"followersUrl"`
	// The GitHub API URL for those following the collaborator.
	FollowingUrl pulumi.StringInput `pulumi:"followingUrl"`
	// The GitHub API URL for the collaborator's gists.
	GistsUrl pulumi.StringInput `pulumi:"gistsUrl"`
	// The GitHub HTML URL for the collaborator.
	HtmlUrl pulumi.StringInput `pulumi:"htmlUrl"`
	// The ID of the collaborator.
	Id pulumi.IntInput `pulumi:"id"`
	// The collaborator's login.
	Login pulumi.StringInput `pulumi:"login"`
	// The GitHub API URL for the collaborator's organizations.
	OrganizationsUrl pulumi.StringInput `pulumi:"organizationsUrl"`
	// The permission of the collaborator.
	Permission pulumi.StringInput `pulumi:"permission"`
	// The GitHub API URL for the collaborator's received events.
	ReceivedEventsUrl pulumi.StringInput `pulumi:"receivedEventsUrl"`
	// The GitHub API URL for the collaborator's repositories.
	ReposUrl pulumi.StringInput `pulumi:"reposUrl"`
	// Whether the user is a GitHub admin.
	SiteAdmin pulumi.BoolInput `pulumi:"siteAdmin"`
	// The GitHub API URL for the collaborator's starred repositories.
	StarredUrl pulumi.StringInput `pulumi:"starredUrl"`
	// The GitHub API URL for the collaborator's subscribed repositories.
	SubscriptionsUrl pulumi.StringInput `pulumi:"subscriptionsUrl"`
	// The type of the collaborator (ex. `user`).
	Type pulumi.StringInput `pulumi:"type"`
	// The GitHub API URL for the collaborator.
	Url pulumi.StringInput `pulumi:"url"`
}

func (GetCollaboratorsCollaboratorArgs) ElementType

func (GetCollaboratorsCollaboratorArgs) ToGetCollaboratorsCollaboratorOutput

func (i GetCollaboratorsCollaboratorArgs) ToGetCollaboratorsCollaboratorOutput() GetCollaboratorsCollaboratorOutput

func (GetCollaboratorsCollaboratorArgs) ToGetCollaboratorsCollaboratorOutputWithContext

func (i GetCollaboratorsCollaboratorArgs) ToGetCollaboratorsCollaboratorOutputWithContext(ctx context.Context) GetCollaboratorsCollaboratorOutput

type GetCollaboratorsCollaboratorArray

type GetCollaboratorsCollaboratorArray []GetCollaboratorsCollaboratorInput

func (GetCollaboratorsCollaboratorArray) ElementType

func (GetCollaboratorsCollaboratorArray) ToGetCollaboratorsCollaboratorArrayOutput

func (i GetCollaboratorsCollaboratorArray) ToGetCollaboratorsCollaboratorArrayOutput() GetCollaboratorsCollaboratorArrayOutput

func (GetCollaboratorsCollaboratorArray) ToGetCollaboratorsCollaboratorArrayOutputWithContext

func (i GetCollaboratorsCollaboratorArray) ToGetCollaboratorsCollaboratorArrayOutputWithContext(ctx context.Context) GetCollaboratorsCollaboratorArrayOutput

type GetCollaboratorsCollaboratorArrayInput

type GetCollaboratorsCollaboratorArrayInput interface {
	pulumi.Input

	ToGetCollaboratorsCollaboratorArrayOutput() GetCollaboratorsCollaboratorArrayOutput
	ToGetCollaboratorsCollaboratorArrayOutputWithContext(context.Context) GetCollaboratorsCollaboratorArrayOutput
}

GetCollaboratorsCollaboratorArrayInput is an input type that accepts GetCollaboratorsCollaboratorArray and GetCollaboratorsCollaboratorArrayOutput values. You can construct a concrete instance of `GetCollaboratorsCollaboratorArrayInput` via:

GetCollaboratorsCollaboratorArray{ GetCollaboratorsCollaboratorArgs{...} }

type GetCollaboratorsCollaboratorArrayOutput

type GetCollaboratorsCollaboratorArrayOutput struct{ *pulumi.OutputState }

func (GetCollaboratorsCollaboratorArrayOutput) ElementType

func (GetCollaboratorsCollaboratorArrayOutput) Index

func (GetCollaboratorsCollaboratorArrayOutput) ToGetCollaboratorsCollaboratorArrayOutput

func (o GetCollaboratorsCollaboratorArrayOutput) ToGetCollaboratorsCollaboratorArrayOutput() GetCollaboratorsCollaboratorArrayOutput

func (GetCollaboratorsCollaboratorArrayOutput) ToGetCollaboratorsCollaboratorArrayOutputWithContext

func (o GetCollaboratorsCollaboratorArrayOutput) ToGetCollaboratorsCollaboratorArrayOutputWithContext(ctx context.Context) GetCollaboratorsCollaboratorArrayOutput

type GetCollaboratorsCollaboratorInput

type GetCollaboratorsCollaboratorInput interface {
	pulumi.Input

	ToGetCollaboratorsCollaboratorOutput() GetCollaboratorsCollaboratorOutput
	ToGetCollaboratorsCollaboratorOutputWithContext(context.Context) GetCollaboratorsCollaboratorOutput
}

GetCollaboratorsCollaboratorInput is an input type that accepts GetCollaboratorsCollaboratorArgs and GetCollaboratorsCollaboratorOutput values. You can construct a concrete instance of `GetCollaboratorsCollaboratorInput` via:

GetCollaboratorsCollaboratorArgs{...}

type GetCollaboratorsCollaboratorOutput

type GetCollaboratorsCollaboratorOutput struct{ *pulumi.OutputState }

func (GetCollaboratorsCollaboratorOutput) ElementType

func (GetCollaboratorsCollaboratorOutput) EventsUrl

The GitHub API URL for the collaborator's events.

func (GetCollaboratorsCollaboratorOutput) FollowersUrl

The GitHub API URL for the collaborator's followers.

func (GetCollaboratorsCollaboratorOutput) FollowingUrl

The GitHub API URL for those following the collaborator.

func (GetCollaboratorsCollaboratorOutput) GistsUrl

The GitHub API URL for the collaborator's gists.

func (GetCollaboratorsCollaboratorOutput) HtmlUrl

The GitHub HTML URL for the collaborator.

func (GetCollaboratorsCollaboratorOutput) Id

The ID of the collaborator.

func (GetCollaboratorsCollaboratorOutput) Login

The collaborator's login.

func (GetCollaboratorsCollaboratorOutput) OrganizationsUrl

The GitHub API URL for the collaborator's organizations.

func (GetCollaboratorsCollaboratorOutput) Permission

The permission of the collaborator.

func (GetCollaboratorsCollaboratorOutput) ReceivedEventsUrl

The GitHub API URL for the collaborator's received events.

func (GetCollaboratorsCollaboratorOutput) ReposUrl

The GitHub API URL for the collaborator's repositories.

func (GetCollaboratorsCollaboratorOutput) SiteAdmin

Whether the user is a GitHub admin.

func (GetCollaboratorsCollaboratorOutput) StarredUrl

The GitHub API URL for the collaborator's starred repositories.

func (GetCollaboratorsCollaboratorOutput) SubscriptionsUrl

The GitHub API URL for the collaborator's subscribed repositories.

func (GetCollaboratorsCollaboratorOutput) ToGetCollaboratorsCollaboratorOutput

func (o GetCollaboratorsCollaboratorOutput) ToGetCollaboratorsCollaboratorOutput() GetCollaboratorsCollaboratorOutput

func (GetCollaboratorsCollaboratorOutput) ToGetCollaboratorsCollaboratorOutputWithContext

func (o GetCollaboratorsCollaboratorOutput) ToGetCollaboratorsCollaboratorOutputWithContext(ctx context.Context) GetCollaboratorsCollaboratorOutput

func (GetCollaboratorsCollaboratorOutput) Type

The type of the collaborator (ex. `user`).

func (GetCollaboratorsCollaboratorOutput) Url

The GitHub API URL for the collaborator.

type GetCollaboratorsOutputArgs added in v4.8.0

type GetCollaboratorsOutputArgs struct {
	// Filter collaborators returned by their affiliation. Can be one of: `outside`, `direct`, `all`.  Defaults to `all`.
	Affiliation pulumi.StringPtrInput `pulumi:"affiliation"`
	// The organization that owns the repository.
	Owner pulumi.StringInput `pulumi:"owner"`
	// The name of the repository.
	Repository pulumi.StringInput `pulumi:"repository"`
}

A collection of arguments for invoking getCollaborators.

func (GetCollaboratorsOutputArgs) ElementType added in v4.8.0

func (GetCollaboratorsOutputArgs) ElementType() reflect.Type

type GetCollaboratorsResult

type GetCollaboratorsResult struct {
	Affiliation *string `pulumi:"affiliation"`
	// An Array of GitHub collaborators.  Each `collaborator` block consists of the fields documented below.
	Collaborators []GetCollaboratorsCollaborator `pulumi:"collaborators"`
	// The provider-assigned unique ID for this managed resource.
	Id         string `pulumi:"id"`
	Owner      string `pulumi:"owner"`
	Repository string `pulumi:"repository"`
}

A collection of values returned by getCollaborators.

func GetCollaborators

func GetCollaborators(ctx *pulumi.Context, args *GetCollaboratorsArgs, opts ...pulumi.InvokeOption) (*GetCollaboratorsResult, error)

Use this data source to retrieve the collaborators for a given repository.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.GetCollaborators(ctx, &GetCollaboratorsArgs{
			Owner:      "example_owner",
			Repository: "example_repository",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetCollaboratorsResultOutput added in v4.8.0

type GetCollaboratorsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getCollaborators.

func GetCollaboratorsOutput added in v4.8.0

func (GetCollaboratorsResultOutput) Affiliation added in v4.8.0

func (GetCollaboratorsResultOutput) Collaborators added in v4.8.0

An Array of GitHub collaborators. Each `collaborator` block consists of the fields documented below.

func (GetCollaboratorsResultOutput) ElementType added in v4.8.0

func (GetCollaboratorsResultOutput) Id added in v4.8.0

The provider-assigned unique ID for this managed resource.

func (GetCollaboratorsResultOutput) Owner added in v4.8.0

func (GetCollaboratorsResultOutput) Repository added in v4.8.0

func (GetCollaboratorsResultOutput) ToGetCollaboratorsResultOutput added in v4.8.0

func (o GetCollaboratorsResultOutput) ToGetCollaboratorsResultOutput() GetCollaboratorsResultOutput

func (GetCollaboratorsResultOutput) ToGetCollaboratorsResultOutputWithContext added in v4.8.0

func (o GetCollaboratorsResultOutput) ToGetCollaboratorsResultOutputWithContext(ctx context.Context) GetCollaboratorsResultOutput

type GetDependabotPublicKeyArgs added in v4.13.0

type GetDependabotPublicKeyArgs struct {
	Repository string `pulumi:"repository"`
}

A collection of arguments for invoking getDependabotPublicKey.

type GetDependabotPublicKeyOutputArgs added in v4.13.0

type GetDependabotPublicKeyOutputArgs struct {
	Repository pulumi.StringInput `pulumi:"repository"`
}

A collection of arguments for invoking getDependabotPublicKey.

func (GetDependabotPublicKeyOutputArgs) ElementType added in v4.13.0

type GetDependabotPublicKeyResult added in v4.13.0

type GetDependabotPublicKeyResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id         string `pulumi:"id"`
	Key        string `pulumi:"key"`
	KeyId      string `pulumi:"keyId"`
	Repository string `pulumi:"repository"`
}

A collection of values returned by getDependabotPublicKey.

func GetDependabotPublicKey added in v4.13.0

func GetDependabotPublicKey(ctx *pulumi.Context, args *GetDependabotPublicKeyArgs, opts ...pulumi.InvokeOption) (*GetDependabotPublicKeyResult, error)

type GetDependabotPublicKeyResultOutput added in v4.13.0

type GetDependabotPublicKeyResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getDependabotPublicKey.

func GetDependabotPublicKeyOutput added in v4.13.0

func (GetDependabotPublicKeyResultOutput) ElementType added in v4.13.0

func (GetDependabotPublicKeyResultOutput) Id added in v4.13.0

The provider-assigned unique ID for this managed resource.

func (GetDependabotPublicKeyResultOutput) Key added in v4.13.0

func (GetDependabotPublicKeyResultOutput) KeyId added in v4.13.0

func (GetDependabotPublicKeyResultOutput) Repository added in v4.13.0

func (GetDependabotPublicKeyResultOutput) ToGetDependabotPublicKeyResultOutput added in v4.13.0

func (o GetDependabotPublicKeyResultOutput) ToGetDependabotPublicKeyResultOutput() GetDependabotPublicKeyResultOutput

func (GetDependabotPublicKeyResultOutput) ToGetDependabotPublicKeyResultOutputWithContext added in v4.13.0

func (o GetDependabotPublicKeyResultOutput) ToGetDependabotPublicKeyResultOutputWithContext(ctx context.Context) GetDependabotPublicKeyResultOutput

type GetExternalGroupsExternalGroup added in v4.16.0

type GetExternalGroupsExternalGroup struct {
	// the ID of the group.
	GroupId int `pulumi:"groupId"`
	// the name of the group.
	GroupName string `pulumi:"groupName"`
	// the date the group was last updated.
	UpdatedAt string `pulumi:"updatedAt"`
}

type GetExternalGroupsExternalGroupArgs added in v4.16.0

type GetExternalGroupsExternalGroupArgs struct {
	// the ID of the group.
	GroupId pulumi.IntInput `pulumi:"groupId"`
	// the name of the group.
	GroupName pulumi.StringInput `pulumi:"groupName"`
	// the date the group was last updated.
	UpdatedAt pulumi.StringInput `pulumi:"updatedAt"`
}

func (GetExternalGroupsExternalGroupArgs) ElementType added in v4.16.0

func (GetExternalGroupsExternalGroupArgs) ToGetExternalGroupsExternalGroupOutput added in v4.16.0

func (i GetExternalGroupsExternalGroupArgs) ToGetExternalGroupsExternalGroupOutput() GetExternalGroupsExternalGroupOutput

func (GetExternalGroupsExternalGroupArgs) ToGetExternalGroupsExternalGroupOutputWithContext added in v4.16.0

func (i GetExternalGroupsExternalGroupArgs) ToGetExternalGroupsExternalGroupOutputWithContext(ctx context.Context) GetExternalGroupsExternalGroupOutput

type GetExternalGroupsExternalGroupArray added in v4.16.0

type GetExternalGroupsExternalGroupArray []GetExternalGroupsExternalGroupInput

func (GetExternalGroupsExternalGroupArray) ElementType added in v4.16.0

func (GetExternalGroupsExternalGroupArray) ToGetExternalGroupsExternalGroupArrayOutput added in v4.16.0

func (i GetExternalGroupsExternalGroupArray) ToGetExternalGroupsExternalGroupArrayOutput() GetExternalGroupsExternalGroupArrayOutput

func (GetExternalGroupsExternalGroupArray) ToGetExternalGroupsExternalGroupArrayOutputWithContext added in v4.16.0

func (i GetExternalGroupsExternalGroupArray) ToGetExternalGroupsExternalGroupArrayOutputWithContext(ctx context.Context) GetExternalGroupsExternalGroupArrayOutput

type GetExternalGroupsExternalGroupArrayInput added in v4.16.0

type GetExternalGroupsExternalGroupArrayInput interface {
	pulumi.Input

	ToGetExternalGroupsExternalGroupArrayOutput() GetExternalGroupsExternalGroupArrayOutput
	ToGetExternalGroupsExternalGroupArrayOutputWithContext(context.Context) GetExternalGroupsExternalGroupArrayOutput
}

GetExternalGroupsExternalGroupArrayInput is an input type that accepts GetExternalGroupsExternalGroupArray and GetExternalGroupsExternalGroupArrayOutput values. You can construct a concrete instance of `GetExternalGroupsExternalGroupArrayInput` via:

GetExternalGroupsExternalGroupArray{ GetExternalGroupsExternalGroupArgs{...} }

type GetExternalGroupsExternalGroupArrayOutput added in v4.16.0

type GetExternalGroupsExternalGroupArrayOutput struct{ *pulumi.OutputState }

func (GetExternalGroupsExternalGroupArrayOutput) ElementType added in v4.16.0

func (GetExternalGroupsExternalGroupArrayOutput) Index added in v4.16.0

func (GetExternalGroupsExternalGroupArrayOutput) ToGetExternalGroupsExternalGroupArrayOutput added in v4.16.0

func (o GetExternalGroupsExternalGroupArrayOutput) ToGetExternalGroupsExternalGroupArrayOutput() GetExternalGroupsExternalGroupArrayOutput

func (GetExternalGroupsExternalGroupArrayOutput) ToGetExternalGroupsExternalGroupArrayOutputWithContext added in v4.16.0

func (o GetExternalGroupsExternalGroupArrayOutput) ToGetExternalGroupsExternalGroupArrayOutputWithContext(ctx context.Context) GetExternalGroupsExternalGroupArrayOutput

type GetExternalGroupsExternalGroupInput added in v4.16.0

type GetExternalGroupsExternalGroupInput interface {
	pulumi.Input

	ToGetExternalGroupsExternalGroupOutput() GetExternalGroupsExternalGroupOutput
	ToGetExternalGroupsExternalGroupOutputWithContext(context.Context) GetExternalGroupsExternalGroupOutput
}

GetExternalGroupsExternalGroupInput is an input type that accepts GetExternalGroupsExternalGroupArgs and GetExternalGroupsExternalGroupOutput values. You can construct a concrete instance of `GetExternalGroupsExternalGroupInput` via:

GetExternalGroupsExternalGroupArgs{...}

type GetExternalGroupsExternalGroupOutput added in v4.16.0

type GetExternalGroupsExternalGroupOutput struct{ *pulumi.OutputState }

func (GetExternalGroupsExternalGroupOutput) ElementType added in v4.16.0

func (GetExternalGroupsExternalGroupOutput) GroupId added in v4.16.0

the ID of the group.

func (GetExternalGroupsExternalGroupOutput) GroupName added in v4.16.0

the name of the group.

func (GetExternalGroupsExternalGroupOutput) ToGetExternalGroupsExternalGroupOutput added in v4.16.0

func (o GetExternalGroupsExternalGroupOutput) ToGetExternalGroupsExternalGroupOutput() GetExternalGroupsExternalGroupOutput

func (GetExternalGroupsExternalGroupOutput) ToGetExternalGroupsExternalGroupOutputWithContext added in v4.16.0

func (o GetExternalGroupsExternalGroupOutput) ToGetExternalGroupsExternalGroupOutputWithContext(ctx context.Context) GetExternalGroupsExternalGroupOutput

func (GetExternalGroupsExternalGroupOutput) UpdatedAt added in v4.16.0

the date the group was last updated.

type GetExternalGroupsResult added in v4.16.0

type GetExternalGroupsResult struct {
	// an array of external groups belonging to the organization. Each group consists of the fields documented below.
	ExternalGroups []GetExternalGroupsExternalGroup `pulumi:"externalGroups"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
}

A collection of values returned by getExternalGroups.

func GetExternalGroups added in v4.16.0

func GetExternalGroups(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetExternalGroupsResult, error)

Use this data source to retrieve external groups belonging to an organization.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleExternalGroups, err := github.GetExternalGroups(ctx, nil, nil)
		if err != nil {
			return err
		}
		localGroups := exampleExternalGroups
		ctx.Export("groups", localGroups)
		return nil
	})
}

```

type GetIpRangesResult

type GetIpRangesResult struct {
	// An array of IP addresses in CIDR format specifying the addresses that incoming requests from GitHub actions will originate from.
	Actions []string `pulumi:"actions"`
	// A subset of the `actions` array that contains IP addresses in IPv4 CIDR format.
	ActionsIpv4s []string `pulumi:"actionsIpv4s"`
	// A subset of the `actions` array that contains IP addresses in IPv6 CIDR format.
	ActionsIpv6s []string `pulumi:"actionsIpv6s"`
	// A subset of the `api` array that contains IP addresses in IPv4 CIDR format.
	ApiIpv4s []string `pulumi:"apiIpv4s"`
	// A subset of the `api` array that contains IP addresses in IPv6 CIDR format.
	ApiIpv6s []string `pulumi:"apiIpv6s"`
	// An Array of IP addresses in CIDR format for the GitHub API.
	Apis []string `pulumi:"apis"`
	// A subset of the `dependabot` array that contains IP addresses in IPv4 CIDR format.
	DependabotIpv4s []string `pulumi:"dependabotIpv4s"`
	// A subset of the `dependabot` array that contains IP addresses in IPv6 CIDR format.
	DependabotIpv6s []string `pulumi:"dependabotIpv6s"`
	// An array of IP addresses in CIDR format specifying the A records for dependabot.
	Dependabots []string `pulumi:"dependabots"`
	// A subset of the `git` array that contains IP addresses in IPv4 CIDR format.
	GitIpv4s []string `pulumi:"gitIpv4s"`
	// A subset of the `git` array that contains IP addresses in IPv6 CIDR format.
	GitIpv6s []string `pulumi:"gitIpv6s"`
	// An Array of IP addresses in CIDR format specifying the Git servers.
	Gits []string `pulumi:"gits"`
	// An Array of IP addresses in CIDR format specifying the addresses that incoming service hooks will originate from.
	Hooks []string `pulumi:"hooks"`
	// A subset of the `hooks` array that contains IP addresses in IPv4 CIDR format.
	HooksIpv4s []string `pulumi:"hooksIpv4s"`
	// A subset of the `hooks` array that contains IP addresses in IPv6 CIDR format.
	HooksIpv6s []string `pulumi:"hooksIpv6s"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A subset of the `importer` array that contains IP addresses in IPv4 CIDR format.
	ImporterIpv4s []string `pulumi:"importerIpv4s"`
	// A subset of the `importer` array that contains IP addresses in IPv6 CIDR format.
	ImporterIpv6s []string `pulumi:"importerIpv6s"`
	// An Array of IP addresses in CIDR format specifying the A records for GitHub Importer.
	Importers []string `pulumi:"importers"`
	// An Array of IP addresses in CIDR format specifying the A records for GitHub Pages.
	Pages []string `pulumi:"pages"`
	// A subset of the `pages` array that contains IP addresses in IPv4 CIDR format.
	PagesIpv4s []string `pulumi:"pagesIpv4s"`
	// A subset of the `pages` array that contains IP addresses in IPv6 CIDR format.
	PagesIpv6s []string `pulumi:"pagesIpv6s"`
	// A subset of the `web` array that contains IP addresses in IPv4 CIDR format.
	WebIpv4s []string `pulumi:"webIpv4s"`
	// A subset of the `web` array that contains IP addresses in IPv6 CIDR format.
	WebIpv6s []string `pulumi:"webIpv6s"`
	// An Array of IP addresses in CIDR format for GitHub Web.
	Webs []string `pulumi:"webs"`
}

A collection of values returned by getIpRanges.

func GetIpRanges

func GetIpRanges(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetIpRangesResult, error)

Use this data source to retrieve information about GitHub's IP addresses.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.GetIpRanges(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetOrganizationArgs

type GetOrganizationArgs struct {
	// The name of the organization account
	Name string `pulumi:"name"`
}

A collection of arguments for invoking getOrganization.

type GetOrganizationOutputArgs added in v4.8.0

type GetOrganizationOutputArgs struct {
	// The name of the organization account
	Name pulumi.StringInput `pulumi:"name"`
}

A collection of arguments for invoking getOrganization.

func (GetOrganizationOutputArgs) ElementType added in v4.8.0

func (GetOrganizationOutputArgs) ElementType() reflect.Type

type GetOrganizationResult

type GetOrganizationResult struct {
	// The description the organization account
	Description string `pulumi:"description"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The login of the organization account
	Login string `pulumi:"login"`
	// (`list`) A list with the members of the organization
	Members []string `pulumi:"members"`
	// The name of the organization account
	Name    string `pulumi:"name"`
	NodeId  string `pulumi:"nodeId"`
	Orgname string `pulumi:"orgname"`
	// The plan name for the organization account
	Plan string `pulumi:"plan"`
	// (`list`) A list with the repositories on the organization
	Repositories []string `pulumi:"repositories"`
}

A collection of values returned by getOrganization.

func GetOrganization

func GetOrganization(ctx *pulumi.Context, args *GetOrganizationArgs, opts ...pulumi.InvokeOption) (*GetOrganizationResult, error)

Use this data source to retrieve basic information about a GitHub Organization.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.GetOrganization(ctx, &GetOrganizationArgs{
			Name: "github",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetOrganizationResultOutput added in v4.8.0

type GetOrganizationResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getOrganization.

func GetOrganizationOutput added in v4.8.0

func (GetOrganizationResultOutput) Description added in v4.8.0

The description the organization account

func (GetOrganizationResultOutput) ElementType added in v4.8.0

func (GetOrganizationResultOutput) Id added in v4.8.0

The provider-assigned unique ID for this managed resource.

func (GetOrganizationResultOutput) Login added in v4.8.0

The login of the organization account

func (GetOrganizationResultOutput) Members added in v4.8.0

(`list`) A list with the members of the organization

func (GetOrganizationResultOutput) Name added in v4.8.0

The name of the organization account

func (GetOrganizationResultOutput) NodeId added in v4.8.0

func (GetOrganizationResultOutput) Orgname added in v4.11.0

func (GetOrganizationResultOutput) Plan added in v4.8.0

The plan name for the organization account

func (GetOrganizationResultOutput) Repositories added in v4.8.0

(`list`) A list with the repositories on the organization

func (GetOrganizationResultOutput) ToGetOrganizationResultOutput added in v4.8.0

func (o GetOrganizationResultOutput) ToGetOrganizationResultOutput() GetOrganizationResultOutput

func (GetOrganizationResultOutput) ToGetOrganizationResultOutputWithContext added in v4.8.0

func (o GetOrganizationResultOutput) ToGetOrganizationResultOutputWithContext(ctx context.Context) GetOrganizationResultOutput

type GetOrganizationTeamSyncGroupsGroup

type GetOrganizationTeamSyncGroupsGroup struct {
	// The description of the IdP group.
	GroupDescription string `pulumi:"groupDescription"`
	// The ID of the IdP group.
	GroupId string `pulumi:"groupId"`
	// The name of the IdP group.
	GroupName string `pulumi:"groupName"`
}

type GetOrganizationTeamSyncGroupsGroupArgs

type GetOrganizationTeamSyncGroupsGroupArgs struct {
	// The description of the IdP group.
	GroupDescription pulumi.StringInput `pulumi:"groupDescription"`
	// The ID of the IdP group.
	GroupId pulumi.StringInput `pulumi:"groupId"`
	// The name of the IdP group.
	GroupName pulumi.StringInput `pulumi:"groupName"`
}

func (GetOrganizationTeamSyncGroupsGroupArgs) ElementType

func (GetOrganizationTeamSyncGroupsGroupArgs) ToGetOrganizationTeamSyncGroupsGroupOutput

func (i GetOrganizationTeamSyncGroupsGroupArgs) ToGetOrganizationTeamSyncGroupsGroupOutput() GetOrganizationTeamSyncGroupsGroupOutput

func (GetOrganizationTeamSyncGroupsGroupArgs) ToGetOrganizationTeamSyncGroupsGroupOutputWithContext

func (i GetOrganizationTeamSyncGroupsGroupArgs) ToGetOrganizationTeamSyncGroupsGroupOutputWithContext(ctx context.Context) GetOrganizationTeamSyncGroupsGroupOutput

type GetOrganizationTeamSyncGroupsGroupArray

type GetOrganizationTeamSyncGroupsGroupArray []GetOrganizationTeamSyncGroupsGroupInput

func (GetOrganizationTeamSyncGroupsGroupArray) ElementType

func (GetOrganizationTeamSyncGroupsGroupArray) ToGetOrganizationTeamSyncGroupsGroupArrayOutput

func (i GetOrganizationTeamSyncGroupsGroupArray) ToGetOrganizationTeamSyncGroupsGroupArrayOutput() GetOrganizationTeamSyncGroupsGroupArrayOutput

func (GetOrganizationTeamSyncGroupsGroupArray) ToGetOrganizationTeamSyncGroupsGroupArrayOutputWithContext

func (i GetOrganizationTeamSyncGroupsGroupArray) ToGetOrganizationTeamSyncGroupsGroupArrayOutputWithContext(ctx context.Context) GetOrganizationTeamSyncGroupsGroupArrayOutput

type GetOrganizationTeamSyncGroupsGroupArrayInput

type GetOrganizationTeamSyncGroupsGroupArrayInput interface {
	pulumi.Input

	ToGetOrganizationTeamSyncGroupsGroupArrayOutput() GetOrganizationTeamSyncGroupsGroupArrayOutput
	ToGetOrganizationTeamSyncGroupsGroupArrayOutputWithContext(context.Context) GetOrganizationTeamSyncGroupsGroupArrayOutput
}

GetOrganizationTeamSyncGroupsGroupArrayInput is an input type that accepts GetOrganizationTeamSyncGroupsGroupArray and GetOrganizationTeamSyncGroupsGroupArrayOutput values. You can construct a concrete instance of `GetOrganizationTeamSyncGroupsGroupArrayInput` via:

GetOrganizationTeamSyncGroupsGroupArray{ GetOrganizationTeamSyncGroupsGroupArgs{...} }

type GetOrganizationTeamSyncGroupsGroupArrayOutput

type GetOrganizationTeamSyncGroupsGroupArrayOutput struct{ *pulumi.OutputState }

func (GetOrganizationTeamSyncGroupsGroupArrayOutput) ElementType

func (GetOrganizationTeamSyncGroupsGroupArrayOutput) Index

func (GetOrganizationTeamSyncGroupsGroupArrayOutput) ToGetOrganizationTeamSyncGroupsGroupArrayOutput

func (o GetOrganizationTeamSyncGroupsGroupArrayOutput) ToGetOrganizationTeamSyncGroupsGroupArrayOutput() GetOrganizationTeamSyncGroupsGroupArrayOutput

func (GetOrganizationTeamSyncGroupsGroupArrayOutput) ToGetOrganizationTeamSyncGroupsGroupArrayOutputWithContext

func (o GetOrganizationTeamSyncGroupsGroupArrayOutput) ToGetOrganizationTeamSyncGroupsGroupArrayOutputWithContext(ctx context.Context) GetOrganizationTeamSyncGroupsGroupArrayOutput

type GetOrganizationTeamSyncGroupsGroupInput

type GetOrganizationTeamSyncGroupsGroupInput interface {
	pulumi.Input

	ToGetOrganizationTeamSyncGroupsGroupOutput() GetOrganizationTeamSyncGroupsGroupOutput
	ToGetOrganizationTeamSyncGroupsGroupOutputWithContext(context.Context) GetOrganizationTeamSyncGroupsGroupOutput
}

GetOrganizationTeamSyncGroupsGroupInput is an input type that accepts GetOrganizationTeamSyncGroupsGroupArgs and GetOrganizationTeamSyncGroupsGroupOutput values. You can construct a concrete instance of `GetOrganizationTeamSyncGroupsGroupInput` via:

GetOrganizationTeamSyncGroupsGroupArgs{...}

type GetOrganizationTeamSyncGroupsGroupOutput

type GetOrganizationTeamSyncGroupsGroupOutput struct{ *pulumi.OutputState }

func (GetOrganizationTeamSyncGroupsGroupOutput) ElementType

func (GetOrganizationTeamSyncGroupsGroupOutput) GroupDescription

The description of the IdP group.

func (GetOrganizationTeamSyncGroupsGroupOutput) GroupId

The ID of the IdP group.

func (GetOrganizationTeamSyncGroupsGroupOutput) GroupName

The name of the IdP group.

func (GetOrganizationTeamSyncGroupsGroupOutput) ToGetOrganizationTeamSyncGroupsGroupOutput

func (o GetOrganizationTeamSyncGroupsGroupOutput) ToGetOrganizationTeamSyncGroupsGroupOutput() GetOrganizationTeamSyncGroupsGroupOutput

func (GetOrganizationTeamSyncGroupsGroupOutput) ToGetOrganizationTeamSyncGroupsGroupOutputWithContext

func (o GetOrganizationTeamSyncGroupsGroupOutput) ToGetOrganizationTeamSyncGroupsGroupOutputWithContext(ctx context.Context) GetOrganizationTeamSyncGroupsGroupOutput

type GetOrganizationTeamSyncGroupsResult

type GetOrganizationTeamSyncGroupsResult struct {
	// An Array of GitHub Identity Provider Groups.  Each `group` block consists of the fields documented below.
	Groups []GetOrganizationTeamSyncGroupsGroup `pulumi:"groups"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
}

A collection of values returned by getOrganizationTeamSyncGroups.

func GetOrganizationTeamSyncGroups

func GetOrganizationTeamSyncGroups(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetOrganizationTeamSyncGroupsResult, error)

Use this data source to retrieve the identity provider (IdP) groups for an organization.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.GetOrganizationTeamSyncGroups(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetOrganizationTeamsArgs

type GetOrganizationTeamsArgs struct {
	// Only return teams that are at the organization's root, i.e. no nested teams. Defaults to `false`.
	RootTeamsOnly *bool `pulumi:"rootTeamsOnly"`
}

A collection of arguments for invoking getOrganizationTeams.

type GetOrganizationTeamsOutputArgs added in v4.8.0

type GetOrganizationTeamsOutputArgs struct {
	// Only return teams that are at the organization's root, i.e. no nested teams. Defaults to `false`.
	RootTeamsOnly pulumi.BoolPtrInput `pulumi:"rootTeamsOnly"`
}

A collection of arguments for invoking getOrganizationTeams.

func (GetOrganizationTeamsOutputArgs) ElementType added in v4.8.0

type GetOrganizationTeamsResult

type GetOrganizationTeamsResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// Only return teams that are at the organization's root, i.e. no nested teams. Defaults to `false`.
	RootTeamsOnly *bool `pulumi:"rootTeamsOnly"`
	// An Array of GitHub Teams.  Each `team` block consists of the fields documented below.
	// ***
	Teams []GetOrganizationTeamsTeam `pulumi:"teams"`
}

A collection of values returned by getOrganizationTeams.

func GetOrganizationTeams

func GetOrganizationTeams(ctx *pulumi.Context, args *GetOrganizationTeamsArgs, opts ...pulumi.InvokeOption) (*GetOrganizationTeamsResult, error)

Use this data source to retrieve information about all GitHub teams in an organization.

## Example Usage

To retrieve *all* teams of the organization:

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.GetOrganizationTeams(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

To retrieve only the team's at the root of the organization:

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.GetOrganizationTeams(ctx, &GetOrganizationTeamsArgs{
			RootTeamsOnly: pulumi.BoolRef(true),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetOrganizationTeamsResultOutput added in v4.8.0

type GetOrganizationTeamsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getOrganizationTeams.

func GetOrganizationTeamsOutput added in v4.8.0

func (GetOrganizationTeamsResultOutput) ElementType added in v4.8.0

func (GetOrganizationTeamsResultOutput) Id added in v4.8.0

The provider-assigned unique ID for this managed resource.

func (GetOrganizationTeamsResultOutput) RootTeamsOnly added in v4.8.0

Only return teams that are at the organization's root, i.e. no nested teams. Defaults to `false`.

func (GetOrganizationTeamsResultOutput) Teams added in v4.8.0

An Array of GitHub Teams. Each `team` block consists of the fields documented below. ***

func (GetOrganizationTeamsResultOutput) ToGetOrganizationTeamsResultOutput added in v4.8.0

func (o GetOrganizationTeamsResultOutput) ToGetOrganizationTeamsResultOutput() GetOrganizationTeamsResultOutput

func (GetOrganizationTeamsResultOutput) ToGetOrganizationTeamsResultOutputWithContext added in v4.8.0

func (o GetOrganizationTeamsResultOutput) ToGetOrganizationTeamsResultOutputWithContext(ctx context.Context) GetOrganizationTeamsResultOutput

type GetOrganizationTeamsTeam

type GetOrganizationTeamsTeam struct {
	// the team's description.
	Description string `pulumi:"description"`
	// the ID of the team.
	Id int `pulumi:"id"`
	// List of team members.
	Members []string `pulumi:"members"`
	// the team's full name.
	Name string `pulumi:"name"`
	// the Node ID of the team.
	NodeId string `pulumi:"nodeId"`
	// the team's privacy type.
	Privacy string `pulumi:"privacy"`
	// List of team repositories.
	Repositories []string `pulumi:"repositories"`
	// the slug of the team.
	Slug string `pulumi:"slug"`
}

type GetOrganizationTeamsTeamArgs

type GetOrganizationTeamsTeamArgs struct {
	// the team's description.
	Description pulumi.StringInput `pulumi:"description"`
	// the ID of the team.
	Id pulumi.IntInput `pulumi:"id"`
	// List of team members.
	Members pulumi.StringArrayInput `pulumi:"members"`
	// the team's full name.
	Name pulumi.StringInput `pulumi:"name"`
	// the Node ID of the team.
	NodeId pulumi.StringInput `pulumi:"nodeId"`
	// the team's privacy type.
	Privacy pulumi.StringInput `pulumi:"privacy"`
	// List of team repositories.
	Repositories pulumi.StringArrayInput `pulumi:"repositories"`
	// the slug of the team.
	Slug pulumi.StringInput `pulumi:"slug"`
}

func (GetOrganizationTeamsTeamArgs) ElementType

func (GetOrganizationTeamsTeamArgs) ToGetOrganizationTeamsTeamOutput

func (i GetOrganizationTeamsTeamArgs) ToGetOrganizationTeamsTeamOutput() GetOrganizationTeamsTeamOutput

func (GetOrganizationTeamsTeamArgs) ToGetOrganizationTeamsTeamOutputWithContext

func (i GetOrganizationTeamsTeamArgs) ToGetOrganizationTeamsTeamOutputWithContext(ctx context.Context) GetOrganizationTeamsTeamOutput

type GetOrganizationTeamsTeamArray

type GetOrganizationTeamsTeamArray []GetOrganizationTeamsTeamInput

func (GetOrganizationTeamsTeamArray) ElementType

func (GetOrganizationTeamsTeamArray) ToGetOrganizationTeamsTeamArrayOutput

func (i GetOrganizationTeamsTeamArray) ToGetOrganizationTeamsTeamArrayOutput() GetOrganizationTeamsTeamArrayOutput

func (GetOrganizationTeamsTeamArray) ToGetOrganizationTeamsTeamArrayOutputWithContext

func (i GetOrganizationTeamsTeamArray) ToGetOrganizationTeamsTeamArrayOutputWithContext(ctx context.Context) GetOrganizationTeamsTeamArrayOutput

type GetOrganizationTeamsTeamArrayInput

type GetOrganizationTeamsTeamArrayInput interface {
	pulumi.Input

	ToGetOrganizationTeamsTeamArrayOutput() GetOrganizationTeamsTeamArrayOutput
	ToGetOrganizationTeamsTeamArrayOutputWithContext(context.Context) GetOrganizationTeamsTeamArrayOutput
}

GetOrganizationTeamsTeamArrayInput is an input type that accepts GetOrganizationTeamsTeamArray and GetOrganizationTeamsTeamArrayOutput values. You can construct a concrete instance of `GetOrganizationTeamsTeamArrayInput` via:

GetOrganizationTeamsTeamArray{ GetOrganizationTeamsTeamArgs{...} }

type GetOrganizationTeamsTeamArrayOutput

type GetOrganizationTeamsTeamArrayOutput struct{ *pulumi.OutputState }

func (GetOrganizationTeamsTeamArrayOutput) ElementType

func (GetOrganizationTeamsTeamArrayOutput) Index

func (GetOrganizationTeamsTeamArrayOutput) ToGetOrganizationTeamsTeamArrayOutput

func (o GetOrganizationTeamsTeamArrayOutput) ToGetOrganizationTeamsTeamArrayOutput() GetOrganizationTeamsTeamArrayOutput

func (GetOrganizationTeamsTeamArrayOutput) ToGetOrganizationTeamsTeamArrayOutputWithContext

func (o GetOrganizationTeamsTeamArrayOutput) ToGetOrganizationTeamsTeamArrayOutputWithContext(ctx context.Context) GetOrganizationTeamsTeamArrayOutput

type GetOrganizationTeamsTeamInput

type GetOrganizationTeamsTeamInput interface {
	pulumi.Input

	ToGetOrganizationTeamsTeamOutput() GetOrganizationTeamsTeamOutput
	ToGetOrganizationTeamsTeamOutputWithContext(context.Context) GetOrganizationTeamsTeamOutput
}

GetOrganizationTeamsTeamInput is an input type that accepts GetOrganizationTeamsTeamArgs and GetOrganizationTeamsTeamOutput values. You can construct a concrete instance of `GetOrganizationTeamsTeamInput` via:

GetOrganizationTeamsTeamArgs{...}

type GetOrganizationTeamsTeamOutput

type GetOrganizationTeamsTeamOutput struct{ *pulumi.OutputState }

func (GetOrganizationTeamsTeamOutput) Description

the team's description.

func (GetOrganizationTeamsTeamOutput) ElementType

func (GetOrganizationTeamsTeamOutput) Id

the ID of the team.

func (GetOrganizationTeamsTeamOutput) Members

List of team members.

func (GetOrganizationTeamsTeamOutput) Name

the team's full name.

func (GetOrganizationTeamsTeamOutput) NodeId

the Node ID of the team.

func (GetOrganizationTeamsTeamOutput) Privacy

the team's privacy type.

func (GetOrganizationTeamsTeamOutput) Repositories added in v4.3.0

List of team repositories.

func (GetOrganizationTeamsTeamOutput) Slug

the slug of the team.

func (GetOrganizationTeamsTeamOutput) ToGetOrganizationTeamsTeamOutput

func (o GetOrganizationTeamsTeamOutput) ToGetOrganizationTeamsTeamOutput() GetOrganizationTeamsTeamOutput

func (GetOrganizationTeamsTeamOutput) ToGetOrganizationTeamsTeamOutputWithContext

func (o GetOrganizationTeamsTeamOutput) ToGetOrganizationTeamsTeamOutputWithContext(ctx context.Context) GetOrganizationTeamsTeamOutput

type GetRefArgs added in v4.11.0

type GetRefArgs struct {
	// The repository ref to look up. Must be formatted `heads/<ref>` for branches, and `tags/<ref>` for tags.
	Ref string `pulumi:"ref"`
	// The GitHub repository name.
	Repository string `pulumi:"repository"`
}

A collection of arguments for invoking getRef.

type GetRefOutputArgs added in v4.11.0

type GetRefOutputArgs struct {
	// The repository ref to look up. Must be formatted `heads/<ref>` for branches, and `tags/<ref>` for tags.
	Ref pulumi.StringInput `pulumi:"ref"`
	// The GitHub repository name.
	Repository pulumi.StringInput `pulumi:"repository"`
}

A collection of arguments for invoking getRef.

func (GetRefOutputArgs) ElementType added in v4.11.0

func (GetRefOutputArgs) ElementType() reflect.Type

type GetRefResult added in v4.11.0

type GetRefResult struct {
	// An etag representing the ref.
	Etag string `pulumi:"etag"`
	// The provider-assigned unique ID for this managed resource.
	Id         string `pulumi:"id"`
	Ref        string `pulumi:"ref"`
	Repository string `pulumi:"repository"`
	// A string storing the reference's `HEAD` commit's SHA1.
	Sha string `pulumi:"sha"`
}

A collection of values returned by getRef.

func GetRef added in v4.11.0

func GetRef(ctx *pulumi.Context, args *GetRefArgs, opts ...pulumi.InvokeOption) (*GetRefResult, error)

Use this data source to retrieve information about a repository ref.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.GetRef(ctx, &GetRefArgs{
			Ref:        "heads/development",
			Repository: "example",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetRefResultOutput added in v4.11.0

type GetRefResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getRef.

func GetRefOutput added in v4.11.0

func GetRefOutput(ctx *pulumi.Context, args GetRefOutputArgs, opts ...pulumi.InvokeOption) GetRefResultOutput

func (GetRefResultOutput) ElementType added in v4.11.0

func (GetRefResultOutput) ElementType() reflect.Type

func (GetRefResultOutput) Etag added in v4.11.0

An etag representing the ref.

func (GetRefResultOutput) Id added in v4.11.0

The provider-assigned unique ID for this managed resource.

func (GetRefResultOutput) Ref added in v4.11.0

func (GetRefResultOutput) Repository added in v4.11.0

func (o GetRefResultOutput) Repository() pulumi.StringOutput

func (GetRefResultOutput) Sha added in v4.11.0

A string storing the reference's `HEAD` commit's SHA1.

func (GetRefResultOutput) ToGetRefResultOutput added in v4.11.0

func (o GetRefResultOutput) ToGetRefResultOutput() GetRefResultOutput

func (GetRefResultOutput) ToGetRefResultOutputWithContext added in v4.11.0

func (o GetRefResultOutput) ToGetRefResultOutputWithContext(ctx context.Context) GetRefResultOutput

type GetReleaseArgs

type GetReleaseArgs struct {
	// Owner of the repository.
	Owner string `pulumi:"owner"`
	// ID of the release to retrieve. Must be specified when `retrieveBy` = `id`.
	ReleaseId *int `pulumi:"releaseId"`
	// Tag of the release to retrieve. Must be specified when `retrieveBy` = `tag`.
	ReleaseTag *string `pulumi:"releaseTag"`
	// Name of the repository to retrieve the release from.
	Repository string `pulumi:"repository"`
	// Describes how to fetch the release. Valid values are `id`, `tag`, `latest`.
	RetrieveBy string `pulumi:"retrieveBy"`
}

A collection of arguments for invoking getRelease.

type GetReleaseOutputArgs added in v4.8.0

type GetReleaseOutputArgs struct {
	// Owner of the repository.
	Owner pulumi.StringInput `pulumi:"owner"`
	// ID of the release to retrieve. Must be specified when `retrieveBy` = `id`.
	ReleaseId pulumi.IntPtrInput `pulumi:"releaseId"`
	// Tag of the release to retrieve. Must be specified when `retrieveBy` = `tag`.
	ReleaseTag pulumi.StringPtrInput `pulumi:"releaseTag"`
	// Name of the repository to retrieve the release from.
	Repository pulumi.StringInput `pulumi:"repository"`
	// Describes how to fetch the release. Valid values are `id`, `tag`, `latest`.
	RetrieveBy pulumi.StringInput `pulumi:"retrieveBy"`
}

A collection of arguments for invoking getRelease.

func (GetReleaseOutputArgs) ElementType added in v4.8.0

func (GetReleaseOutputArgs) ElementType() reflect.Type

type GetReleaseResult

type GetReleaseResult struct {
	// URL of any associated assets with the release
	AssertsUrl string `pulumi:"assertsUrl"`
	// Contents of the description (body) of a release
	Body string `pulumi:"body"`
	// Date of release creation
	CreatedAt string `pulumi:"createdAt"`
	// (`Boolean`) indicates whether the release is a draft
	Draft bool `pulumi:"draft"`
	// URL directing to detailed information on the release
	HtmlUrl string `pulumi:"htmlUrl"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// Name of release
	Name  string `pulumi:"name"`
	Owner string `pulumi:"owner"`
	// (`Boolean`) indicates whether the release is a prerelease
	Prerelease bool `pulumi:"prerelease"`
	// Date of release publishing
	PublishedAt string `pulumi:"publishedAt"`
	// ID of release
	ReleaseId *int `pulumi:"releaseId"`
	// Tag of release
	ReleaseTag *string `pulumi:"releaseTag"`
	Repository string  `pulumi:"repository"`
	RetrieveBy string  `pulumi:"retrieveBy"`
	// Download URL of a specific release in `tar.gz` format
	TarballUrl string `pulumi:"tarballUrl"`
	// Commitish value that determines where the Git release is created from
	TargetCommitish string `pulumi:"targetCommitish"`
	// URL that can be used to upload Assets to the release
	UploadUrl string `pulumi:"uploadUrl"`
	// Base URL of the release
	Url string `pulumi:"url"`
	// Download URL of a specific release in `zip` format
	ZipballUrl string `pulumi:"zipballUrl"`
}

A collection of values returned by getRelease.

func GetRelease

func GetRelease(ctx *pulumi.Context, args *GetReleaseArgs, opts ...pulumi.InvokeOption) (*GetReleaseResult, error)

Use this data source to retrieve information about a GitHub release in a specific repository.

type GetReleaseResultOutput added in v4.8.0

type GetReleaseResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getRelease.

func GetReleaseOutput added in v4.8.0

func GetReleaseOutput(ctx *pulumi.Context, args GetReleaseOutputArgs, opts ...pulumi.InvokeOption) GetReleaseResultOutput

func (GetReleaseResultOutput) AssertsUrl added in v4.8.0

URL of any associated assets with the release

func (GetReleaseResultOutput) Body added in v4.8.0

Contents of the description (body) of a release

func (GetReleaseResultOutput) CreatedAt added in v4.8.0

Date of release creation

func (GetReleaseResultOutput) Draft added in v4.8.0

(`Boolean`) indicates whether the release is a draft

func (GetReleaseResultOutput) ElementType added in v4.8.0

func (GetReleaseResultOutput) ElementType() reflect.Type

func (GetReleaseResultOutput) HtmlUrl added in v4.8.0

URL directing to detailed information on the release

func (GetReleaseResultOutput) Id added in v4.8.0

The provider-assigned unique ID for this managed resource.

func (GetReleaseResultOutput) Name added in v4.8.0

Name of release

func (GetReleaseResultOutput) Owner added in v4.8.0

func (GetReleaseResultOutput) Prerelease added in v4.8.0

func (o GetReleaseResultOutput) Prerelease() pulumi.BoolOutput

(`Boolean`) indicates whether the release is a prerelease

func (GetReleaseResultOutput) PublishedAt added in v4.8.0

func (o GetReleaseResultOutput) PublishedAt() pulumi.StringOutput

Date of release publishing

func (GetReleaseResultOutput) ReleaseId added in v4.8.0

ID of release

func (GetReleaseResultOutput) ReleaseTag added in v4.8.0

Tag of release

func (GetReleaseResultOutput) Repository added in v4.8.0

func (GetReleaseResultOutput) RetrieveBy added in v4.8.0

func (GetReleaseResultOutput) TarballUrl added in v4.8.0

Download URL of a specific release in `tar.gz` format

func (GetReleaseResultOutput) TargetCommitish added in v4.8.0

func (o GetReleaseResultOutput) TargetCommitish() pulumi.StringOutput

Commitish value that determines where the Git release is created from

func (GetReleaseResultOutput) ToGetReleaseResultOutput added in v4.8.0

func (o GetReleaseResultOutput) ToGetReleaseResultOutput() GetReleaseResultOutput

func (GetReleaseResultOutput) ToGetReleaseResultOutputWithContext added in v4.8.0

func (o GetReleaseResultOutput) ToGetReleaseResultOutputWithContext(ctx context.Context) GetReleaseResultOutput

func (GetReleaseResultOutput) UploadUrl added in v4.8.0

URL that can be used to upload Assets to the release

func (GetReleaseResultOutput) Url added in v4.8.0

Base URL of the release

func (GetReleaseResultOutput) ZipballUrl added in v4.8.0

Download URL of a specific release in `zip` format

type GetRepositoriesArgs

type GetRepositoriesArgs struct {
	// Search query. See [documentation for the search syntax](https://help.github.com/articles/understanding-the-search-syntax/).
	Query string `pulumi:"query"`
	// Sorts the repositories returned by the specified attribute. Valid values include `stars`, `fork`, and `updated`. Defaults to `updated`.
	Sort *string `pulumi:"sort"`
}

A collection of arguments for invoking getRepositories.

type GetRepositoriesOutputArgs added in v4.8.0

type GetRepositoriesOutputArgs struct {
	// Search query. See [documentation for the search syntax](https://help.github.com/articles/understanding-the-search-syntax/).
	Query pulumi.StringInput `pulumi:"query"`
	// Sorts the repositories returned by the specified attribute. Valid values include `stars`, `fork`, and `updated`. Defaults to `updated`.
	Sort pulumi.StringPtrInput `pulumi:"sort"`
}

A collection of arguments for invoking getRepositories.

func (GetRepositoriesOutputArgs) ElementType added in v4.8.0

func (GetRepositoriesOutputArgs) ElementType() reflect.Type

type GetRepositoriesResult

type GetRepositoriesResult struct {
	FullNames []string `pulumi:"fullNames"`
	// The provider-assigned unique ID for this managed resource.
	Id    string   `pulumi:"id"`
	Names []string `pulumi:"names"`
	Query string   `pulumi:"query"`
	Sort  *string  `pulumi:"sort"`
}

A collection of values returned by getRepositories.

func GetRepositories

func GetRepositories(ctx *pulumi.Context, args *GetRepositoriesArgs, opts ...pulumi.InvokeOption) (*GetRepositoriesResult, error)

> **Note:** The data source will return a maximum of `1000` repositories

[as documented in official API docs](https://developer.github.com/v3/search/#about-the-search-api).

Use this data source to retrieve a list of GitHub repositories using a search query.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.GetRepositories(ctx, &GetRepositoriesArgs{
			Query: "org:hashicorp language:Go",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetRepositoriesResultOutput added in v4.8.0

type GetRepositoriesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getRepositories.

func GetRepositoriesOutput added in v4.8.0

func (GetRepositoriesResultOutput) ElementType added in v4.8.0

func (GetRepositoriesResultOutput) FullNames added in v4.8.0

func (GetRepositoriesResultOutput) Id added in v4.8.0

The provider-assigned unique ID for this managed resource.

func (GetRepositoriesResultOutput) Names added in v4.8.0

func (GetRepositoriesResultOutput) Query added in v4.8.0

func (GetRepositoriesResultOutput) Sort added in v4.8.0

func (GetRepositoriesResultOutput) ToGetRepositoriesResultOutput added in v4.8.0

func (o GetRepositoriesResultOutput) ToGetRepositoriesResultOutput() GetRepositoriesResultOutput

func (GetRepositoriesResultOutput) ToGetRepositoriesResultOutputWithContext added in v4.8.0

func (o GetRepositoriesResultOutput) ToGetRepositoriesResultOutputWithContext(ctx context.Context) GetRepositoriesResultOutput

type GetRepositoryBranch added in v4.5.0

type GetRepositoryBranch struct {
	// The name of the repository.
	Name string `pulumi:"name"`
	// Whether the branch is protected.
	Protected bool `pulumi:"protected"`
}

type GetRepositoryBranchArgs added in v4.5.0

type GetRepositoryBranchArgs struct {
	// The name of the repository.
	Name pulumi.StringInput `pulumi:"name"`
	// Whether the branch is protected.
	Protected pulumi.BoolInput `pulumi:"protected"`
}

func (GetRepositoryBranchArgs) ElementType added in v4.5.0

func (GetRepositoryBranchArgs) ElementType() reflect.Type

func (GetRepositoryBranchArgs) ToGetRepositoryBranchOutput added in v4.5.0

func (i GetRepositoryBranchArgs) ToGetRepositoryBranchOutput() GetRepositoryBranchOutput

func (GetRepositoryBranchArgs) ToGetRepositoryBranchOutputWithContext added in v4.5.0

func (i GetRepositoryBranchArgs) ToGetRepositoryBranchOutputWithContext(ctx context.Context) GetRepositoryBranchOutput

type GetRepositoryBranchArray added in v4.5.0

type GetRepositoryBranchArray []GetRepositoryBranchInput

func (GetRepositoryBranchArray) ElementType added in v4.5.0

func (GetRepositoryBranchArray) ElementType() reflect.Type

func (GetRepositoryBranchArray) ToGetRepositoryBranchArrayOutput added in v4.5.0

func (i GetRepositoryBranchArray) ToGetRepositoryBranchArrayOutput() GetRepositoryBranchArrayOutput

func (GetRepositoryBranchArray) ToGetRepositoryBranchArrayOutputWithContext added in v4.5.0

func (i GetRepositoryBranchArray) ToGetRepositoryBranchArrayOutputWithContext(ctx context.Context) GetRepositoryBranchArrayOutput

type GetRepositoryBranchArrayInput added in v4.5.0

type GetRepositoryBranchArrayInput interface {
	pulumi.Input

	ToGetRepositoryBranchArrayOutput() GetRepositoryBranchArrayOutput
	ToGetRepositoryBranchArrayOutputWithContext(context.Context) GetRepositoryBranchArrayOutput
}

GetRepositoryBranchArrayInput is an input type that accepts GetRepositoryBranchArray and GetRepositoryBranchArrayOutput values. You can construct a concrete instance of `GetRepositoryBranchArrayInput` via:

GetRepositoryBranchArray{ GetRepositoryBranchArgs{...} }

type GetRepositoryBranchArrayOutput added in v4.5.0

type GetRepositoryBranchArrayOutput struct{ *pulumi.OutputState }

func (GetRepositoryBranchArrayOutput) ElementType added in v4.5.0

func (GetRepositoryBranchArrayOutput) Index added in v4.5.0

func (GetRepositoryBranchArrayOutput) ToGetRepositoryBranchArrayOutput added in v4.5.0

func (o GetRepositoryBranchArrayOutput) ToGetRepositoryBranchArrayOutput() GetRepositoryBranchArrayOutput

func (GetRepositoryBranchArrayOutput) ToGetRepositoryBranchArrayOutputWithContext added in v4.5.0

func (o GetRepositoryBranchArrayOutput) ToGetRepositoryBranchArrayOutputWithContext(ctx context.Context) GetRepositoryBranchArrayOutput

type GetRepositoryBranchInput added in v4.5.0

type GetRepositoryBranchInput interface {
	pulumi.Input

	ToGetRepositoryBranchOutput() GetRepositoryBranchOutput
	ToGetRepositoryBranchOutputWithContext(context.Context) GetRepositoryBranchOutput
}

GetRepositoryBranchInput is an input type that accepts GetRepositoryBranchArgs and GetRepositoryBranchOutput values. You can construct a concrete instance of `GetRepositoryBranchInput` via:

GetRepositoryBranchArgs{...}

type GetRepositoryBranchOutput added in v4.5.0

type GetRepositoryBranchOutput struct{ *pulumi.OutputState }

func (GetRepositoryBranchOutput) ElementType added in v4.5.0

func (GetRepositoryBranchOutput) ElementType() reflect.Type

func (GetRepositoryBranchOutput) Name added in v4.5.0

The name of the repository.

func (GetRepositoryBranchOutput) Protected added in v4.5.0

Whether the branch is protected.

func (GetRepositoryBranchOutput) ToGetRepositoryBranchOutput added in v4.5.0

func (o GetRepositoryBranchOutput) ToGetRepositoryBranchOutput() GetRepositoryBranchOutput

func (GetRepositoryBranchOutput) ToGetRepositoryBranchOutputWithContext added in v4.5.0

func (o GetRepositoryBranchOutput) ToGetRepositoryBranchOutputWithContext(ctx context.Context) GetRepositoryBranchOutput

type GetRepositoryPage

type GetRepositoryPage struct {
	Cname     string `pulumi:"cname"`
	Custom404 bool   `pulumi:"custom404"`
	// URL to the repository on the web.
	HtmlUrl string                    `pulumi:"htmlUrl"`
	Sources []GetRepositoryPageSource `pulumi:"sources"`
	Status  string                    `pulumi:"status"`
	Url     string                    `pulumi:"url"`
}

type GetRepositoryPageArgs

type GetRepositoryPageArgs struct {
	Cname     pulumi.StringInput `pulumi:"cname"`
	Custom404 pulumi.BoolInput   `pulumi:"custom404"`
	// URL to the repository on the web.
	HtmlUrl pulumi.StringInput                `pulumi:"htmlUrl"`
	Sources GetRepositoryPageSourceArrayInput `pulumi:"sources"`
	Status  pulumi.StringInput                `pulumi:"status"`
	Url     pulumi.StringInput                `pulumi:"url"`
}

func (GetRepositoryPageArgs) ElementType

func (GetRepositoryPageArgs) ElementType() reflect.Type

func (GetRepositoryPageArgs) ToGetRepositoryPageOutput

func (i GetRepositoryPageArgs) ToGetRepositoryPageOutput() GetRepositoryPageOutput

func (GetRepositoryPageArgs) ToGetRepositoryPageOutputWithContext

func (i GetRepositoryPageArgs) ToGetRepositoryPageOutputWithContext(ctx context.Context) GetRepositoryPageOutput

type GetRepositoryPageArray

type GetRepositoryPageArray []GetRepositoryPageInput

func (GetRepositoryPageArray) ElementType

func (GetRepositoryPageArray) ElementType() reflect.Type

func (GetRepositoryPageArray) ToGetRepositoryPageArrayOutput

func (i GetRepositoryPageArray) ToGetRepositoryPageArrayOutput() GetRepositoryPageArrayOutput

func (GetRepositoryPageArray) ToGetRepositoryPageArrayOutputWithContext

func (i GetRepositoryPageArray) ToGetRepositoryPageArrayOutputWithContext(ctx context.Context) GetRepositoryPageArrayOutput

type GetRepositoryPageArrayInput

type GetRepositoryPageArrayInput interface {
	pulumi.Input

	ToGetRepositoryPageArrayOutput() GetRepositoryPageArrayOutput
	ToGetRepositoryPageArrayOutputWithContext(context.Context) GetRepositoryPageArrayOutput
}

GetRepositoryPageArrayInput is an input type that accepts GetRepositoryPageArray and GetRepositoryPageArrayOutput values. You can construct a concrete instance of `GetRepositoryPageArrayInput` via:

GetRepositoryPageArray{ GetRepositoryPageArgs{...} }

type GetRepositoryPageArrayOutput

type GetRepositoryPageArrayOutput struct{ *pulumi.OutputState }

func (GetRepositoryPageArrayOutput) ElementType

func (GetRepositoryPageArrayOutput) Index

func (GetRepositoryPageArrayOutput) ToGetRepositoryPageArrayOutput

func (o GetRepositoryPageArrayOutput) ToGetRepositoryPageArrayOutput() GetRepositoryPageArrayOutput

func (GetRepositoryPageArrayOutput) ToGetRepositoryPageArrayOutputWithContext

func (o GetRepositoryPageArrayOutput) ToGetRepositoryPageArrayOutputWithContext(ctx context.Context) GetRepositoryPageArrayOutput

type GetRepositoryPageInput

type GetRepositoryPageInput interface {
	pulumi.Input

	ToGetRepositoryPageOutput() GetRepositoryPageOutput
	ToGetRepositoryPageOutputWithContext(context.Context) GetRepositoryPageOutput
}

GetRepositoryPageInput is an input type that accepts GetRepositoryPageArgs and GetRepositoryPageOutput values. You can construct a concrete instance of `GetRepositoryPageInput` via:

GetRepositoryPageArgs{...}

type GetRepositoryPageOutput

type GetRepositoryPageOutput struct{ *pulumi.OutputState }

func (GetRepositoryPageOutput) Cname

func (GetRepositoryPageOutput) Custom404

func (GetRepositoryPageOutput) ElementType

func (GetRepositoryPageOutput) ElementType() reflect.Type

func (GetRepositoryPageOutput) HtmlUrl

URL to the repository on the web.

func (GetRepositoryPageOutput) Sources

func (GetRepositoryPageOutput) Status

func (GetRepositoryPageOutput) ToGetRepositoryPageOutput

func (o GetRepositoryPageOutput) ToGetRepositoryPageOutput() GetRepositoryPageOutput

func (GetRepositoryPageOutput) ToGetRepositoryPageOutputWithContext

func (o GetRepositoryPageOutput) ToGetRepositoryPageOutputWithContext(ctx context.Context) GetRepositoryPageOutput

func (GetRepositoryPageOutput) Url

type GetRepositoryPageSource

type GetRepositoryPageSource struct {
	Branch string `pulumi:"branch"`
	Path   string `pulumi:"path"`
}

type GetRepositoryPageSourceArgs

type GetRepositoryPageSourceArgs struct {
	Branch pulumi.StringInput `pulumi:"branch"`
	Path   pulumi.StringInput `pulumi:"path"`
}

func (GetRepositoryPageSourceArgs) ElementType

func (GetRepositoryPageSourceArgs) ToGetRepositoryPageSourceOutput

func (i GetRepositoryPageSourceArgs) ToGetRepositoryPageSourceOutput() GetRepositoryPageSourceOutput

func (GetRepositoryPageSourceArgs) ToGetRepositoryPageSourceOutputWithContext

func (i GetRepositoryPageSourceArgs) ToGetRepositoryPageSourceOutputWithContext(ctx context.Context) GetRepositoryPageSourceOutput

type GetRepositoryPageSourceArray

type GetRepositoryPageSourceArray []GetRepositoryPageSourceInput

func (GetRepositoryPageSourceArray) ElementType

func (GetRepositoryPageSourceArray) ToGetRepositoryPageSourceArrayOutput

func (i GetRepositoryPageSourceArray) ToGetRepositoryPageSourceArrayOutput() GetRepositoryPageSourceArrayOutput

func (GetRepositoryPageSourceArray) ToGetRepositoryPageSourceArrayOutputWithContext

func (i GetRepositoryPageSourceArray) ToGetRepositoryPageSourceArrayOutputWithContext(ctx context.Context) GetRepositoryPageSourceArrayOutput

type GetRepositoryPageSourceArrayInput

type GetRepositoryPageSourceArrayInput interface {
	pulumi.Input

	ToGetRepositoryPageSourceArrayOutput() GetRepositoryPageSourceArrayOutput
	ToGetRepositoryPageSourceArrayOutputWithContext(context.Context) GetRepositoryPageSourceArrayOutput
}

GetRepositoryPageSourceArrayInput is an input type that accepts GetRepositoryPageSourceArray and GetRepositoryPageSourceArrayOutput values. You can construct a concrete instance of `GetRepositoryPageSourceArrayInput` via:

GetRepositoryPageSourceArray{ GetRepositoryPageSourceArgs{...} }

type GetRepositoryPageSourceArrayOutput

type GetRepositoryPageSourceArrayOutput struct{ *pulumi.OutputState }

func (GetRepositoryPageSourceArrayOutput) ElementType

func (GetRepositoryPageSourceArrayOutput) Index

func (GetRepositoryPageSourceArrayOutput) ToGetRepositoryPageSourceArrayOutput

func (o GetRepositoryPageSourceArrayOutput) ToGetRepositoryPageSourceArrayOutput() GetRepositoryPageSourceArrayOutput

func (GetRepositoryPageSourceArrayOutput) ToGetRepositoryPageSourceArrayOutputWithContext

func (o GetRepositoryPageSourceArrayOutput) ToGetRepositoryPageSourceArrayOutputWithContext(ctx context.Context) GetRepositoryPageSourceArrayOutput

type GetRepositoryPageSourceInput

type GetRepositoryPageSourceInput interface {
	pulumi.Input

	ToGetRepositoryPageSourceOutput() GetRepositoryPageSourceOutput
	ToGetRepositoryPageSourceOutputWithContext(context.Context) GetRepositoryPageSourceOutput
}

GetRepositoryPageSourceInput is an input type that accepts GetRepositoryPageSourceArgs and GetRepositoryPageSourceOutput values. You can construct a concrete instance of `GetRepositoryPageSourceInput` via:

GetRepositoryPageSourceArgs{...}

type GetRepositoryPageSourceOutput

type GetRepositoryPageSourceOutput struct{ *pulumi.OutputState }

func (GetRepositoryPageSourceOutput) Branch

func (GetRepositoryPageSourceOutput) ElementType

func (GetRepositoryPageSourceOutput) Path

func (GetRepositoryPageSourceOutput) ToGetRepositoryPageSourceOutput

func (o GetRepositoryPageSourceOutput) ToGetRepositoryPageSourceOutput() GetRepositoryPageSourceOutput

func (GetRepositoryPageSourceOutput) ToGetRepositoryPageSourceOutputWithContext

func (o GetRepositoryPageSourceOutput) ToGetRepositoryPageSourceOutputWithContext(ctx context.Context) GetRepositoryPageSourceOutput

type GetRepositoryPullRequestsResult

type GetRepositoryPullRequestsResult struct {
	// If set, filters Pull Requests by base branch name.
	BaseRef string `pulumi:"baseRef"`
	// Head commit SHA of the Pull Request base.
	BaseSha string `pulumi:"baseSha"`
	// Body of the Pull Request.
	Body string `pulumi:"body"`
	// Indicates Whether this Pull Request is a draft.
	Draft bool `pulumi:"draft"`
	// Owner of the Pull Request head repository.
	HeadOwner string `pulumi:"headOwner"`
	// If set, filters Pull Requests by head user or head organization and branch name in the format of "user:ref-name" or "organization:ref-name". For example: "github:new-script-format" or "octocat:test-branch".
	HeadRef string `pulumi:"headRef"`
	// Name of the Pull Request head repository.
	HeadRepository string `pulumi:"headRepository"`
	// Head commit SHA of the Pull Request head.
	HeadSha string `pulumi:"headSha"`
	// List of label names set on the Pull Request.
	Labels []string `pulumi:"labels"`
	// Indicates whether the base repository maintainers can modify the Pull Request.
	MaintainerCanModify bool `pulumi:"maintainerCanModify"`
	// The number of the Pull Request within the repository.
	Number int `pulumi:"number"`
	// Unix timestamp indicating the Pull Request creation time.
	OpenedAt int `pulumi:"openedAt"`
	// GitHub login of the user who opened the Pull Request.
	OpenedBy string `pulumi:"openedBy"`
	// If set, filters Pull Requests by state. Can be "open", "closed", or "all". Default: "open".
	State string `pulumi:"state"`
	// The title of the Pull Request.
	Title string `pulumi:"title"`
	// The timestamp of the last Pull Request update.
	UpdatedAt int `pulumi:"updatedAt"`
}

type GetRepositoryPullRequestsResultArgs added in v4.8.0

type GetRepositoryPullRequestsResultArgs struct {
	// If set, filters Pull Requests by base branch name.
	BaseRef pulumi.StringInput `pulumi:"baseRef"`
	// Head commit SHA of the Pull Request base.
	BaseSha pulumi.StringInput `pulumi:"baseSha"`
	// Body of the Pull Request.
	Body pulumi.StringInput `pulumi:"body"`
	// Indicates Whether this Pull Request is a draft.
	Draft pulumi.BoolInput `pulumi:"draft"`
	// Owner of the Pull Request head repository.
	HeadOwner pulumi.StringInput `pulumi:"headOwner"`
	// If set, filters Pull Requests by head user or head organization and branch name in the format of "user:ref-name" or "organization:ref-name". For example: "github:new-script-format" or "octocat:test-branch".
	HeadRef pulumi.StringInput `pulumi:"headRef"`
	// Name of the Pull Request head repository.
	HeadRepository pulumi.StringInput `pulumi:"headRepository"`
	// Head commit SHA of the Pull Request head.
	HeadSha pulumi.StringInput `pulumi:"headSha"`
	// List of label names set on the Pull Request.
	Labels pulumi.StringArrayInput `pulumi:"labels"`
	// Indicates whether the base repository maintainers can modify the Pull Request.
	MaintainerCanModify pulumi.BoolInput `pulumi:"maintainerCanModify"`
	// The number of the Pull Request within the repository.
	Number pulumi.IntInput `pulumi:"number"`
	// Unix timestamp indicating the Pull Request creation time.
	OpenedAt pulumi.IntInput `pulumi:"openedAt"`
	// GitHub login of the user who opened the Pull Request.
	OpenedBy pulumi.StringInput `pulumi:"openedBy"`
	// If set, filters Pull Requests by state. Can be "open", "closed", or "all". Default: "open".
	State pulumi.StringInput `pulumi:"state"`
	// The title of the Pull Request.
	Title pulumi.StringInput `pulumi:"title"`
	// The timestamp of the last Pull Request update.
	UpdatedAt pulumi.IntInput `pulumi:"updatedAt"`
}

func (GetRepositoryPullRequestsResultArgs) ElementType added in v4.8.0

func (GetRepositoryPullRequestsResultArgs) ToGetRepositoryPullRequestsResultOutput added in v4.8.0

func (i GetRepositoryPullRequestsResultArgs) ToGetRepositoryPullRequestsResultOutput() GetRepositoryPullRequestsResultOutput

func (GetRepositoryPullRequestsResultArgs) ToGetRepositoryPullRequestsResultOutputWithContext added in v4.8.0

func (i GetRepositoryPullRequestsResultArgs) ToGetRepositoryPullRequestsResultOutputWithContext(ctx context.Context) GetRepositoryPullRequestsResultOutput

type GetRepositoryPullRequestsResultArray added in v4.8.0

type GetRepositoryPullRequestsResultArray []GetRepositoryPullRequestsResultInput

func (GetRepositoryPullRequestsResultArray) ElementType added in v4.8.0

func (GetRepositoryPullRequestsResultArray) ToGetRepositoryPullRequestsResultArrayOutput added in v4.8.0

func (i GetRepositoryPullRequestsResultArray) ToGetRepositoryPullRequestsResultArrayOutput() GetRepositoryPullRequestsResultArrayOutput

func (GetRepositoryPullRequestsResultArray) ToGetRepositoryPullRequestsResultArrayOutputWithContext added in v4.8.0

func (i GetRepositoryPullRequestsResultArray) ToGetRepositoryPullRequestsResultArrayOutputWithContext(ctx context.Context) GetRepositoryPullRequestsResultArrayOutput

type GetRepositoryPullRequestsResultArrayInput added in v4.8.0

type GetRepositoryPullRequestsResultArrayInput interface {
	pulumi.Input

	ToGetRepositoryPullRequestsResultArrayOutput() GetRepositoryPullRequestsResultArrayOutput
	ToGetRepositoryPullRequestsResultArrayOutputWithContext(context.Context) GetRepositoryPullRequestsResultArrayOutput
}

GetRepositoryPullRequestsResultArrayInput is an input type that accepts GetRepositoryPullRequestsResultArray and GetRepositoryPullRequestsResultArrayOutput values. You can construct a concrete instance of `GetRepositoryPullRequestsResultArrayInput` via:

GetRepositoryPullRequestsResultArray{ GetRepositoryPullRequestsResultArgs{...} }

type GetRepositoryPullRequestsResultArrayOutput added in v4.8.0

type GetRepositoryPullRequestsResultArrayOutput struct{ *pulumi.OutputState }

func (GetRepositoryPullRequestsResultArrayOutput) ElementType added in v4.8.0

func (GetRepositoryPullRequestsResultArrayOutput) Index added in v4.8.0

func (GetRepositoryPullRequestsResultArrayOutput) ToGetRepositoryPullRequestsResultArrayOutput added in v4.8.0

func (o GetRepositoryPullRequestsResultArrayOutput) ToGetRepositoryPullRequestsResultArrayOutput() GetRepositoryPullRequestsResultArrayOutput

func (GetRepositoryPullRequestsResultArrayOutput) ToGetRepositoryPullRequestsResultArrayOutputWithContext added in v4.8.0

func (o GetRepositoryPullRequestsResultArrayOutput) ToGetRepositoryPullRequestsResultArrayOutputWithContext(ctx context.Context) GetRepositoryPullRequestsResultArrayOutput

type GetRepositoryPullRequestsResultInput added in v4.8.0

type GetRepositoryPullRequestsResultInput interface {
	pulumi.Input

	ToGetRepositoryPullRequestsResultOutput() GetRepositoryPullRequestsResultOutput
	ToGetRepositoryPullRequestsResultOutputWithContext(context.Context) GetRepositoryPullRequestsResultOutput
}

GetRepositoryPullRequestsResultInput is an input type that accepts GetRepositoryPullRequestsResultArgs and GetRepositoryPullRequestsResultOutput values. You can construct a concrete instance of `GetRepositoryPullRequestsResultInput` via:

GetRepositoryPullRequestsResultArgs{...}

type GetRepositoryPullRequestsResultOutput added in v4.8.0

type GetRepositoryPullRequestsResultOutput struct{ *pulumi.OutputState }

func (GetRepositoryPullRequestsResultOutput) BaseRef added in v4.8.0

If set, filters Pull Requests by base branch name.

func (GetRepositoryPullRequestsResultOutput) BaseSha added in v4.8.0

Head commit SHA of the Pull Request base.

func (GetRepositoryPullRequestsResultOutput) Body added in v4.8.0

Body of the Pull Request.

func (GetRepositoryPullRequestsResultOutput) Draft added in v4.8.0

Indicates Whether this Pull Request is a draft.

func (GetRepositoryPullRequestsResultOutput) ElementType added in v4.8.0

func (GetRepositoryPullRequestsResultOutput) HeadOwner added in v4.8.0

Owner of the Pull Request head repository.

func (GetRepositoryPullRequestsResultOutput) HeadRef added in v4.8.0

If set, filters Pull Requests by head user or head organization and branch name in the format of "user:ref-name" or "organization:ref-name". For example: "github:new-script-format" or "octocat:test-branch".

func (GetRepositoryPullRequestsResultOutput) HeadRepository added in v4.8.0

Name of the Pull Request head repository.

func (GetRepositoryPullRequestsResultOutput) HeadSha added in v4.8.0

Head commit SHA of the Pull Request head.

func (GetRepositoryPullRequestsResultOutput) Labels added in v4.8.0

List of label names set on the Pull Request.

func (GetRepositoryPullRequestsResultOutput) MaintainerCanModify added in v4.8.0

Indicates whether the base repository maintainers can modify the Pull Request.

func (GetRepositoryPullRequestsResultOutput) Number added in v4.8.0

The number of the Pull Request within the repository.

func (GetRepositoryPullRequestsResultOutput) OpenedAt added in v4.8.0

Unix timestamp indicating the Pull Request creation time.

func (GetRepositoryPullRequestsResultOutput) OpenedBy added in v4.8.0

GitHub login of the user who opened the Pull Request.

func (GetRepositoryPullRequestsResultOutput) State added in v4.8.0

If set, filters Pull Requests by state. Can be "open", "closed", or "all". Default: "open".

func (GetRepositoryPullRequestsResultOutput) Title added in v4.8.0

The title of the Pull Request.

func (GetRepositoryPullRequestsResultOutput) ToGetRepositoryPullRequestsResultOutput added in v4.8.0

func (o GetRepositoryPullRequestsResultOutput) ToGetRepositoryPullRequestsResultOutput() GetRepositoryPullRequestsResultOutput

func (GetRepositoryPullRequestsResultOutput) ToGetRepositoryPullRequestsResultOutputWithContext added in v4.8.0

func (o GetRepositoryPullRequestsResultOutput) ToGetRepositoryPullRequestsResultOutputWithContext(ctx context.Context) GetRepositoryPullRequestsResultOutput

func (GetRepositoryPullRequestsResultOutput) UpdatedAt added in v4.8.0

The timestamp of the last Pull Request update.

type GetTreeArgs added in v4.11.0

type GetTreeArgs struct {
	// Setting this parameter to `true` returns the objects or subtrees referenced by the tree specified in `treeSha`.
	Recursive *bool `pulumi:"recursive"`
	// The name of the repository.
	Repository string `pulumi:"repository"`
	// The SHA1 value for the tree.
	TreeSha string `pulumi:"treeSha"`
}

A collection of arguments for invoking getTree.

type GetTreeEntry added in v4.11.0

type GetTreeEntry struct {
	Mode string `pulumi:"mode"`
	Path string `pulumi:"path"`
	Sha  string `pulumi:"sha"`
	Size int    `pulumi:"size"`
	Type string `pulumi:"type"`
}

type GetTreeEntryArgs added in v4.11.0

type GetTreeEntryArgs struct {
	Mode pulumi.StringInput `pulumi:"mode"`
	Path pulumi.StringInput `pulumi:"path"`
	Sha  pulumi.StringInput `pulumi:"sha"`
	Size pulumi.IntInput    `pulumi:"size"`
	Type pulumi.StringInput `pulumi:"type"`
}

func (GetTreeEntryArgs) ElementType added in v4.11.0

func (GetTreeEntryArgs) ElementType() reflect.Type

func (GetTreeEntryArgs) ToGetTreeEntryOutput added in v4.11.0

func (i GetTreeEntryArgs) ToGetTreeEntryOutput() GetTreeEntryOutput

func (GetTreeEntryArgs) ToGetTreeEntryOutputWithContext added in v4.11.0

func (i GetTreeEntryArgs) ToGetTreeEntryOutputWithContext(ctx context.Context) GetTreeEntryOutput

type GetTreeEntryArray added in v4.11.0

type GetTreeEntryArray []GetTreeEntryInput

func (GetTreeEntryArray) ElementType added in v4.11.0

func (GetTreeEntryArray) ElementType() reflect.Type

func (GetTreeEntryArray) ToGetTreeEntryArrayOutput added in v4.11.0

func (i GetTreeEntryArray) ToGetTreeEntryArrayOutput() GetTreeEntryArrayOutput

func (GetTreeEntryArray) ToGetTreeEntryArrayOutputWithContext added in v4.11.0

func (i GetTreeEntryArray) ToGetTreeEntryArrayOutputWithContext(ctx context.Context) GetTreeEntryArrayOutput

type GetTreeEntryArrayInput added in v4.11.0

type GetTreeEntryArrayInput interface {
	pulumi.Input

	ToGetTreeEntryArrayOutput() GetTreeEntryArrayOutput
	ToGetTreeEntryArrayOutputWithContext(context.Context) GetTreeEntryArrayOutput
}

GetTreeEntryArrayInput is an input type that accepts GetTreeEntryArray and GetTreeEntryArrayOutput values. You can construct a concrete instance of `GetTreeEntryArrayInput` via:

GetTreeEntryArray{ GetTreeEntryArgs{...} }

type GetTreeEntryArrayOutput added in v4.11.0

type GetTreeEntryArrayOutput struct{ *pulumi.OutputState }

func (GetTreeEntryArrayOutput) ElementType added in v4.11.0

func (GetTreeEntryArrayOutput) ElementType() reflect.Type

func (GetTreeEntryArrayOutput) Index added in v4.11.0

func (GetTreeEntryArrayOutput) ToGetTreeEntryArrayOutput added in v4.11.0

func (o GetTreeEntryArrayOutput) ToGetTreeEntryArrayOutput() GetTreeEntryArrayOutput

func (GetTreeEntryArrayOutput) ToGetTreeEntryArrayOutputWithContext added in v4.11.0

func (o GetTreeEntryArrayOutput) ToGetTreeEntryArrayOutputWithContext(ctx context.Context) GetTreeEntryArrayOutput

type GetTreeEntryInput added in v4.11.0

type GetTreeEntryInput interface {
	pulumi.Input

	ToGetTreeEntryOutput() GetTreeEntryOutput
	ToGetTreeEntryOutputWithContext(context.Context) GetTreeEntryOutput
}

GetTreeEntryInput is an input type that accepts GetTreeEntryArgs and GetTreeEntryOutput values. You can construct a concrete instance of `GetTreeEntryInput` via:

GetTreeEntryArgs{...}

type GetTreeEntryOutput added in v4.11.0

type GetTreeEntryOutput struct{ *pulumi.OutputState }

func (GetTreeEntryOutput) ElementType added in v4.11.0

func (GetTreeEntryOutput) ElementType() reflect.Type

func (GetTreeEntryOutput) Mode added in v4.11.0

func (GetTreeEntryOutput) Path added in v4.11.0

func (GetTreeEntryOutput) Sha added in v4.11.0

func (GetTreeEntryOutput) Size added in v4.11.0

func (GetTreeEntryOutput) ToGetTreeEntryOutput added in v4.11.0

func (o GetTreeEntryOutput) ToGetTreeEntryOutput() GetTreeEntryOutput

func (GetTreeEntryOutput) ToGetTreeEntryOutputWithContext added in v4.11.0

func (o GetTreeEntryOutput) ToGetTreeEntryOutputWithContext(ctx context.Context) GetTreeEntryOutput

func (GetTreeEntryOutput) Type added in v4.11.0

type GetTreeOutputArgs added in v4.11.0

type GetTreeOutputArgs struct {
	// Setting this parameter to `true` returns the objects or subtrees referenced by the tree specified in `treeSha`.
	Recursive pulumi.BoolPtrInput `pulumi:"recursive"`
	// The name of the repository.
	Repository pulumi.StringInput `pulumi:"repository"`
	// The SHA1 value for the tree.
	TreeSha pulumi.StringInput `pulumi:"treeSha"`
}

A collection of arguments for invoking getTree.

func (GetTreeOutputArgs) ElementType added in v4.11.0

func (GetTreeOutputArgs) ElementType() reflect.Type

type GetTreeResult added in v4.11.0

type GetTreeResult struct {
	// Objects (of `path`, `mode`, `type`, `size`, and `sha`) specifying a tree structure.
	Entries []GetTreeEntry `pulumi:"entries"`
	// The provider-assigned unique ID for this managed resource.
	Id         string `pulumi:"id"`
	Recursive  *bool  `pulumi:"recursive"`
	Repository string `pulumi:"repository"`
	TreeSha    string `pulumi:"treeSha"`
}

A collection of values returned by getTree.

func GetTree added in v4.11.0

func GetTree(ctx *pulumi.Context, args *GetTreeArgs, opts ...pulumi.InvokeOption) (*GetTreeResult, error)

Use this data source to retrieve information about a single tree.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		thisRepository, err := github.LookupRepository(ctx, &GetRepositoryArgs{
			Name: pulumi.StringRef("example"),
		}, nil)
		if err != nil {
			return err
		}
		thisBranch, err := github.LookupBranch(ctx, &GetBranchArgs{
			Branch:     thisRepository.DefaultBranch,
			Repository: thisRepository.Name,
		}, nil)
		if err != nil {
			return err
		}
		thisTree, err := github.GetTree(ctx, &GetTreeArgs{
			Recursive:  pulumi.BoolRef(false),
			Repository: thisRepository.Name,
			TreeSha:    thisBranch.Sha,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("entries", thisTree.Entries)
		return nil
	})
}

```

type GetTreeResultOutput added in v4.11.0

type GetTreeResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getTree.

func GetTreeOutput added in v4.11.0

func GetTreeOutput(ctx *pulumi.Context, args GetTreeOutputArgs, opts ...pulumi.InvokeOption) GetTreeResultOutput

func (GetTreeResultOutput) ElementType added in v4.11.0

func (GetTreeResultOutput) ElementType() reflect.Type

func (GetTreeResultOutput) Entries added in v4.11.0

Objects (of `path`, `mode`, `type`, `size`, and `sha`) specifying a tree structure.

func (GetTreeResultOutput) Id added in v4.11.0

The provider-assigned unique ID for this managed resource.

func (GetTreeResultOutput) Recursive added in v4.11.0

func (GetTreeResultOutput) Repository added in v4.11.0

func (o GetTreeResultOutput) Repository() pulumi.StringOutput

func (GetTreeResultOutput) ToGetTreeResultOutput added in v4.11.0

func (o GetTreeResultOutput) ToGetTreeResultOutput() GetTreeResultOutput

func (GetTreeResultOutput) ToGetTreeResultOutputWithContext added in v4.11.0

func (o GetTreeResultOutput) ToGetTreeResultOutputWithContext(ctx context.Context) GetTreeResultOutput

func (GetTreeResultOutput) TreeSha added in v4.11.0

type GetUserArgs

type GetUserArgs struct {
	// The username. Use an empty string `""` to retrieve information about the currently authenticated user.
	Username string `pulumi:"username"`
}

A collection of arguments for invoking getUser.

type GetUserOutputArgs added in v4.8.0

type GetUserOutputArgs struct {
	// The username. Use an empty string `""` to retrieve information about the currently authenticated user.
	Username pulumi.StringInput `pulumi:"username"`
}

A collection of arguments for invoking getUser.

func (GetUserOutputArgs) ElementType added in v4.8.0

func (GetUserOutputArgs) ElementType() reflect.Type

type GetUserResult

type GetUserResult struct {
	// the user's avatar URL.
	AvatarUrl string `pulumi:"avatarUrl"`
	// the user's bio.
	Bio string `pulumi:"bio"`
	// the user's blog location.
	Blog string `pulumi:"blog"`
	// the user's company name.
	Company string `pulumi:"company"`
	// the creation date.
	CreatedAt string `pulumi:"createdAt"`
	// the user's email.
	Email string `pulumi:"email"`
	// the number of followers.
	Followers int `pulumi:"followers"`
	// the number of following users.
	Following int `pulumi:"following"`
	// list of user's GPG keys.
	GpgKeys []string `pulumi:"gpgKeys"`
	// the user's gravatar ID.
	GravatarId string `pulumi:"gravatarId"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// the user's location.
	Location string `pulumi:"location"`
	// the user's login.
	Login string `pulumi:"login"`
	// the user's full name.
	Name string `pulumi:"name"`
	// the Node ID of the user.
	NodeId string `pulumi:"nodeId"`
	// the number of public gists.
	PublicGists int `pulumi:"publicGists"`
	// the number of public repositories.
	PublicRepos int `pulumi:"publicRepos"`
	// whether the user is a GitHub admin.
	SiteAdmin bool `pulumi:"siteAdmin"`
	// list of user's SSH keys.
	SshKeys []string `pulumi:"sshKeys"`
	// the suspended date if the user is suspended.
	SuspendedAt string `pulumi:"suspendedAt"`
	// the update date.
	UpdatedAt string `pulumi:"updatedAt"`
	Username  string `pulumi:"username"`
}

A collection of values returned by getUser.

func GetUser

func GetUser(ctx *pulumi.Context, args *GetUserArgs, opts ...pulumi.InvokeOption) (*GetUserResult, error)

Use this data source to retrieve information about a GitHub user.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.GetUser(ctx, &GetUserArgs{
			Username: "example",
		}, nil)
		if err != nil {
			return err
		}
		current, err := github.GetUser(ctx, &GetUserArgs{
			Username: "",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("currentGithubLogin", current.Login)
		return nil
	})
}

```

type GetUserResultOutput added in v4.8.0

type GetUserResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getUser.

func GetUserOutput added in v4.8.0

func GetUserOutput(ctx *pulumi.Context, args GetUserOutputArgs, opts ...pulumi.InvokeOption) GetUserResultOutput

func (GetUserResultOutput) AvatarUrl added in v4.8.0

func (o GetUserResultOutput) AvatarUrl() pulumi.StringOutput

the user's avatar URL.

func (GetUserResultOutput) Bio added in v4.8.0

the user's bio.

func (GetUserResultOutput) Blog added in v4.8.0

the user's blog location.

func (GetUserResultOutput) Company added in v4.8.0

the user's company name.

func (GetUserResultOutput) CreatedAt added in v4.8.0

func (o GetUserResultOutput) CreatedAt() pulumi.StringOutput

the creation date.

func (GetUserResultOutput) ElementType added in v4.8.0

func (GetUserResultOutput) ElementType() reflect.Type

func (GetUserResultOutput) Email added in v4.8.0

the user's email.

func (GetUserResultOutput) Followers added in v4.8.0

func (o GetUserResultOutput) Followers() pulumi.IntOutput

the number of followers.

func (GetUserResultOutput) Following added in v4.8.0

func (o GetUserResultOutput) Following() pulumi.IntOutput

the number of following users.

func (GetUserResultOutput) GpgKeys added in v4.8.0

list of user's GPG keys.

func (GetUserResultOutput) GravatarId added in v4.8.0

func (o GetUserResultOutput) GravatarId() pulumi.StringOutput

the user's gravatar ID.

func (GetUserResultOutput) Id added in v4.8.0

The provider-assigned unique ID for this managed resource.

func (GetUserResultOutput) Location added in v4.8.0

the user's location.

func (GetUserResultOutput) Login added in v4.8.0

the user's login.

func (GetUserResultOutput) Name added in v4.8.0

the user's full name.

func (GetUserResultOutput) NodeId added in v4.8.0

the Node ID of the user.

func (GetUserResultOutput) PublicGists added in v4.8.0

func (o GetUserResultOutput) PublicGists() pulumi.IntOutput

the number of public gists.

func (GetUserResultOutput) PublicRepos added in v4.8.0

func (o GetUserResultOutput) PublicRepos() pulumi.IntOutput

the number of public repositories.

func (GetUserResultOutput) SiteAdmin added in v4.8.0

func (o GetUserResultOutput) SiteAdmin() pulumi.BoolOutput

whether the user is a GitHub admin.

func (GetUserResultOutput) SshKeys added in v4.8.0

list of user's SSH keys.

func (GetUserResultOutput) SuspendedAt added in v4.11.0

func (o GetUserResultOutput) SuspendedAt() pulumi.StringOutput

the suspended date if the user is suspended.

func (GetUserResultOutput) ToGetUserResultOutput added in v4.8.0

func (o GetUserResultOutput) ToGetUserResultOutput() GetUserResultOutput

func (GetUserResultOutput) ToGetUserResultOutputWithContext added in v4.8.0

func (o GetUserResultOutput) ToGetUserResultOutputWithContext(ctx context.Context) GetUserResultOutput

func (GetUserResultOutput) UpdatedAt added in v4.8.0

func (o GetUserResultOutput) UpdatedAt() pulumi.StringOutput

the update date.

func (GetUserResultOutput) Username added in v4.8.0

type GetUsersArgs added in v4.7.0

type GetUsersArgs struct {
	// List of usernames.
	Usernames []string `pulumi:"usernames"`
}

A collection of arguments for invoking getUsers.

type GetUsersOutputArgs added in v4.8.0

type GetUsersOutputArgs struct {
	// List of usernames.
	Usernames pulumi.StringArrayInput `pulumi:"usernames"`
}

A collection of arguments for invoking getUsers.

func (GetUsersOutputArgs) ElementType added in v4.8.0

func (GetUsersOutputArgs) ElementType() reflect.Type

type GetUsersResult added in v4.7.0

type GetUsersResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// list of logins of users that could be found.
	Logins []string `pulumi:"logins"`
	// list of Node IDs of users that could be found.
	NodeIds []string `pulumi:"nodeIds"`
	// list of logins without matching user.
	UnknownLogins []string `pulumi:"unknownLogins"`
	Usernames     []string `pulumi:"usernames"`
}

A collection of values returned by getUsers.

func GetUsers added in v4.7.0

func GetUsers(ctx *pulumi.Context, args *GetUsersArgs, opts ...pulumi.InvokeOption) (*GetUsersResult, error)

Use this data source to retrieve information about multiple GitHub users at once.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := github.GetUsers(ctx, &GetUsersArgs{
			Usernames: []string{
				"example1",
				"example2",
				"example3",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("validUsers", example.Logins)
		ctx.Export("invalidUsers", example.UnknownLogins)
		return nil
	})
}

```

type GetUsersResultOutput added in v4.8.0

type GetUsersResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getUsers.

func GetUsersOutput added in v4.8.0

func GetUsersOutput(ctx *pulumi.Context, args GetUsersOutputArgs, opts ...pulumi.InvokeOption) GetUsersResultOutput

func (GetUsersResultOutput) ElementType added in v4.8.0

func (GetUsersResultOutput) ElementType() reflect.Type

func (GetUsersResultOutput) Id added in v4.8.0

The provider-assigned unique ID for this managed resource.

func (GetUsersResultOutput) Logins added in v4.8.0

list of logins of users that could be found.

func (GetUsersResultOutput) NodeIds added in v4.8.0

list of Node IDs of users that could be found.

func (GetUsersResultOutput) ToGetUsersResultOutput added in v4.8.0

func (o GetUsersResultOutput) ToGetUsersResultOutput() GetUsersResultOutput

func (GetUsersResultOutput) ToGetUsersResultOutputWithContext added in v4.8.0

func (o GetUsersResultOutput) ToGetUsersResultOutputWithContext(ctx context.Context) GetUsersResultOutput

func (GetUsersResultOutput) UnknownLogins added in v4.8.0

func (o GetUsersResultOutput) UnknownLogins() pulumi.StringArrayOutput

list of logins without matching user.

func (GetUsersResultOutput) Usernames added in v4.8.0

type Issue added in v4.11.0

type Issue struct {
	pulumi.CustomResourceState

	// List of Logins to assign the to the issue.
	Assignees pulumi.StringArrayOutput `pulumi:"assignees"`
	// Title of the issue.
	Body pulumi.StringPtrOutput `pulumi:"body"`
	Etag pulumi.StringOutput    `pulumi:"etag"`
	// (Computed) - The issue id
	IssueId pulumi.IntOutput `pulumi:"issueId"`
	// List of labels to attach to the issue.
	Labels pulumi.StringArrayOutput `pulumi:"labels"`
	// Milestone number to assign to the issue
	MilestoneNumber pulumi.IntPtrOutput `pulumi:"milestoneNumber"`
	// (Computed) - The issue number
	Number pulumi.IntOutput `pulumi:"number"`
	// The GitHub repository name
	Repository pulumi.StringOutput `pulumi:"repository"`
	// Title of the issue.
	Title pulumi.StringOutput `pulumi:"title"`
}

Provides a GitHub issue resource.

This resource allows you to create and manage issue within your GitHub repository.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		testRepository, err := github.NewRepository(ctx, "testRepository", &github.RepositoryArgs{
			AutoInit:  pulumi.Bool(true),
			HasIssues: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = github.NewIssue(ctx, "testIssue", &github.IssueArgs{
			Repository: testRepository.Name,
			Title:      pulumi.String("My issue title"),
			Body:       pulumi.String("The body of my issue"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

GitHub Issues can be imported using an ID made up of `repository:number`, e.g.

```sh

$ pulumi import github:index/issue:Issue issue_15 myrepo:15

```

func GetIssue added in v4.11.0

func GetIssue(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *IssueState, opts ...pulumi.ResourceOption) (*Issue, error)

GetIssue gets an existing Issue 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 NewIssue added in v4.11.0

func NewIssue(ctx *pulumi.Context,
	name string, args *IssueArgs, opts ...pulumi.ResourceOption) (*Issue, error)

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

func (*Issue) ElementType added in v4.11.0

func (*Issue) ElementType() reflect.Type

func (*Issue) ToIssueOutput added in v4.11.0

func (i *Issue) ToIssueOutput() IssueOutput

func (*Issue) ToIssueOutputWithContext added in v4.11.0

func (i *Issue) ToIssueOutputWithContext(ctx context.Context) IssueOutput

type IssueArgs added in v4.11.0

type IssueArgs struct {
	// List of Logins to assign the to the issue.
	Assignees pulumi.StringArrayInput
	// Title of the issue.
	Body pulumi.StringPtrInput
	// List of labels to attach to the issue.
	Labels pulumi.StringArrayInput
	// Milestone number to assign to the issue
	MilestoneNumber pulumi.IntPtrInput
	// The GitHub repository name
	Repository pulumi.StringInput
	// Title of the issue.
	Title pulumi.StringInput
}

The set of arguments for constructing a Issue resource.

func (IssueArgs) ElementType added in v4.11.0

func (IssueArgs) ElementType() reflect.Type

type IssueArray added in v4.11.0

type IssueArray []IssueInput

func (IssueArray) ElementType added in v4.11.0

func (IssueArray) ElementType() reflect.Type

func (IssueArray) ToIssueArrayOutput added in v4.11.0

func (i IssueArray) ToIssueArrayOutput() IssueArrayOutput

func (IssueArray) ToIssueArrayOutputWithContext added in v4.11.0

func (i IssueArray) ToIssueArrayOutputWithContext(ctx context.Context) IssueArrayOutput

type IssueArrayInput added in v4.11.0

type IssueArrayInput interface {
	pulumi.Input

	ToIssueArrayOutput() IssueArrayOutput
	ToIssueArrayOutputWithContext(context.Context) IssueArrayOutput
}

IssueArrayInput is an input type that accepts IssueArray and IssueArrayOutput values. You can construct a concrete instance of `IssueArrayInput` via:

IssueArray{ IssueArgs{...} }

type IssueArrayOutput added in v4.11.0

type IssueArrayOutput struct{ *pulumi.OutputState }

func (IssueArrayOutput) ElementType added in v4.11.0

func (IssueArrayOutput) ElementType() reflect.Type

func (IssueArrayOutput) Index added in v4.11.0

func (IssueArrayOutput) ToIssueArrayOutput added in v4.11.0

func (o IssueArrayOutput) ToIssueArrayOutput() IssueArrayOutput

func (IssueArrayOutput) ToIssueArrayOutputWithContext added in v4.11.0

func (o IssueArrayOutput) ToIssueArrayOutputWithContext(ctx context.Context) IssueArrayOutput

type IssueInput added in v4.11.0

type IssueInput interface {
	pulumi.Input

	ToIssueOutput() IssueOutput
	ToIssueOutputWithContext(ctx context.Context) IssueOutput
}

type IssueLabel

type IssueLabel struct {
	pulumi.CustomResourceState

	// A 6 character hex code, **without the leading #**, identifying the color of the label.
	Color pulumi.StringOutput `pulumi:"color"`
	// A short description of the label.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	Etag        pulumi.StringOutput    `pulumi:"etag"`
	// The name of the label.
	Name pulumi.StringOutput `pulumi:"name"`
	// The GitHub repository
	Repository pulumi.StringOutput `pulumi:"repository"`
	// The URL to the issue label
	Url pulumi.StringOutput `pulumi:"url"`
}

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.NewIssueLabel(ctx, "testRepo", &github.IssueLabelArgs{
			Color:      pulumi.String("FF0000"),
			Repository: pulumi.String("test-repo"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

GitHub Issue Labels can be imported using an ID made up of `repository:name`, e.g.

```sh

$ pulumi import github:index/issueLabel:IssueLabel panic_label terraform:panic

```

func GetIssueLabel

func GetIssueLabel(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *IssueLabelState, opts ...pulumi.ResourceOption) (*IssueLabel, error)

GetIssueLabel gets an existing IssueLabel 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 NewIssueLabel

func NewIssueLabel(ctx *pulumi.Context,
	name string, args *IssueLabelArgs, opts ...pulumi.ResourceOption) (*IssueLabel, error)

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

func (*IssueLabel) ElementType

func (*IssueLabel) ElementType() reflect.Type

func (*IssueLabel) ToIssueLabelOutput

func (i *IssueLabel) ToIssueLabelOutput() IssueLabelOutput

func (*IssueLabel) ToIssueLabelOutputWithContext

func (i *IssueLabel) ToIssueLabelOutputWithContext(ctx context.Context) IssueLabelOutput

type IssueLabelArgs

type IssueLabelArgs struct {
	// A 6 character hex code, **without the leading #**, identifying the color of the label.
	Color pulumi.StringInput
	// A short description of the label.
	Description pulumi.StringPtrInput
	// The name of the label.
	Name pulumi.StringPtrInput
	// The GitHub repository
	Repository pulumi.StringInput
}

The set of arguments for constructing a IssueLabel resource.

func (IssueLabelArgs) ElementType

func (IssueLabelArgs) ElementType() reflect.Type

type IssueLabelArray

type IssueLabelArray []IssueLabelInput

func (IssueLabelArray) ElementType

func (IssueLabelArray) ElementType() reflect.Type

func (IssueLabelArray) ToIssueLabelArrayOutput

func (i IssueLabelArray) ToIssueLabelArrayOutput() IssueLabelArrayOutput

func (IssueLabelArray) ToIssueLabelArrayOutputWithContext

func (i IssueLabelArray) ToIssueLabelArrayOutputWithContext(ctx context.Context) IssueLabelArrayOutput

type IssueLabelArrayInput

type IssueLabelArrayInput interface {
	pulumi.Input

	ToIssueLabelArrayOutput() IssueLabelArrayOutput
	ToIssueLabelArrayOutputWithContext(context.Context) IssueLabelArrayOutput
}

IssueLabelArrayInput is an input type that accepts IssueLabelArray and IssueLabelArrayOutput values. You can construct a concrete instance of `IssueLabelArrayInput` via:

IssueLabelArray{ IssueLabelArgs{...} }

type IssueLabelArrayOutput

type IssueLabelArrayOutput struct{ *pulumi.OutputState }

func (IssueLabelArrayOutput) ElementType

func (IssueLabelArrayOutput) ElementType() reflect.Type

func (IssueLabelArrayOutput) Index

func (IssueLabelArrayOutput) ToIssueLabelArrayOutput

func (o IssueLabelArrayOutput) ToIssueLabelArrayOutput() IssueLabelArrayOutput

func (IssueLabelArrayOutput) ToIssueLabelArrayOutputWithContext

func (o IssueLabelArrayOutput) ToIssueLabelArrayOutputWithContext(ctx context.Context) IssueLabelArrayOutput

type IssueLabelInput

type IssueLabelInput interface {
	pulumi.Input

	ToIssueLabelOutput() IssueLabelOutput
	ToIssueLabelOutputWithContext(ctx context.Context) IssueLabelOutput
}

type IssueLabelMap

type IssueLabelMap map[string]IssueLabelInput

func (IssueLabelMap) ElementType

func (IssueLabelMap) ElementType() reflect.Type

func (IssueLabelMap) ToIssueLabelMapOutput

func (i IssueLabelMap) ToIssueLabelMapOutput() IssueLabelMapOutput

func (IssueLabelMap) ToIssueLabelMapOutputWithContext

func (i IssueLabelMap) ToIssueLabelMapOutputWithContext(ctx context.Context) IssueLabelMapOutput

type IssueLabelMapInput

type IssueLabelMapInput interface {
	pulumi.Input

	ToIssueLabelMapOutput() IssueLabelMapOutput
	ToIssueLabelMapOutputWithContext(context.Context) IssueLabelMapOutput
}

IssueLabelMapInput is an input type that accepts IssueLabelMap and IssueLabelMapOutput values. You can construct a concrete instance of `IssueLabelMapInput` via:

IssueLabelMap{ "key": IssueLabelArgs{...} }

type IssueLabelMapOutput

type IssueLabelMapOutput struct{ *pulumi.OutputState }

func (IssueLabelMapOutput) ElementType

func (IssueLabelMapOutput) ElementType() reflect.Type

func (IssueLabelMapOutput) MapIndex

func (IssueLabelMapOutput) ToIssueLabelMapOutput

func (o IssueLabelMapOutput) ToIssueLabelMapOutput() IssueLabelMapOutput

func (IssueLabelMapOutput) ToIssueLabelMapOutputWithContext

func (o IssueLabelMapOutput) ToIssueLabelMapOutputWithContext(ctx context.Context) IssueLabelMapOutput

type IssueLabelOutput

type IssueLabelOutput struct{ *pulumi.OutputState }

func (IssueLabelOutput) Color added in v4.15.0

A 6 character hex code, **without the leading #**, identifying the color of the label.

func (IssueLabelOutput) Description added in v4.15.0

func (o IssueLabelOutput) Description() pulumi.StringPtrOutput

A short description of the label.

func (IssueLabelOutput) ElementType

func (IssueLabelOutput) ElementType() reflect.Type

func (IssueLabelOutput) Etag added in v4.15.0

func (IssueLabelOutput) Name added in v4.15.0

The name of the label.

func (IssueLabelOutput) Repository added in v4.15.0

func (o IssueLabelOutput) Repository() pulumi.StringOutput

The GitHub repository

func (IssueLabelOutput) ToIssueLabelOutput

func (o IssueLabelOutput) ToIssueLabelOutput() IssueLabelOutput

func (IssueLabelOutput) ToIssueLabelOutputWithContext

func (o IssueLabelOutput) ToIssueLabelOutputWithContext(ctx context.Context) IssueLabelOutput

func (IssueLabelOutput) Url added in v4.15.0

The URL to the issue label

type IssueLabelState

type IssueLabelState struct {
	// A 6 character hex code, **without the leading #**, identifying the color of the label.
	Color pulumi.StringPtrInput
	// A short description of the label.
	Description pulumi.StringPtrInput
	Etag        pulumi.StringPtrInput
	// The name of the label.
	Name pulumi.StringPtrInput
	// The GitHub repository
	Repository pulumi.StringPtrInput
	// The URL to the issue label
	Url pulumi.StringPtrInput
}

func (IssueLabelState) ElementType

func (IssueLabelState) ElementType() reflect.Type

type IssueMap added in v4.11.0

type IssueMap map[string]IssueInput

func (IssueMap) ElementType added in v4.11.0

func (IssueMap) ElementType() reflect.Type

func (IssueMap) ToIssueMapOutput added in v4.11.0

func (i IssueMap) ToIssueMapOutput() IssueMapOutput

func (IssueMap) ToIssueMapOutputWithContext added in v4.11.0

func (i IssueMap) ToIssueMapOutputWithContext(ctx context.Context) IssueMapOutput

type IssueMapInput added in v4.11.0

type IssueMapInput interface {
	pulumi.Input

	ToIssueMapOutput() IssueMapOutput
	ToIssueMapOutputWithContext(context.Context) IssueMapOutput
}

IssueMapInput is an input type that accepts IssueMap and IssueMapOutput values. You can construct a concrete instance of `IssueMapInput` via:

IssueMap{ "key": IssueArgs{...} }

type IssueMapOutput added in v4.11.0

type IssueMapOutput struct{ *pulumi.OutputState }

func (IssueMapOutput) ElementType added in v4.11.0

func (IssueMapOutput) ElementType() reflect.Type

func (IssueMapOutput) MapIndex added in v4.11.0

func (IssueMapOutput) ToIssueMapOutput added in v4.11.0

func (o IssueMapOutput) ToIssueMapOutput() IssueMapOutput

func (IssueMapOutput) ToIssueMapOutputWithContext added in v4.11.0

func (o IssueMapOutput) ToIssueMapOutputWithContext(ctx context.Context) IssueMapOutput

type IssueOutput added in v4.11.0

type IssueOutput struct{ *pulumi.OutputState }

func (IssueOutput) Assignees added in v4.15.0

func (o IssueOutput) Assignees() pulumi.StringArrayOutput

List of Logins to assign the to the issue.

func (IssueOutput) Body added in v4.15.0

Title of the issue.

func (IssueOutput) ElementType added in v4.11.0

func (IssueOutput) ElementType() reflect.Type

func (IssueOutput) Etag added in v4.15.0

func (o IssueOutput) Etag() pulumi.StringOutput

func (IssueOutput) IssueId added in v4.15.0

func (o IssueOutput) IssueId() pulumi.IntOutput

(Computed) - The issue id

func (IssueOutput) Labels added in v4.15.0

List of labels to attach to the issue.

func (IssueOutput) MilestoneNumber added in v4.15.0

func (o IssueOutput) MilestoneNumber() pulumi.IntPtrOutput

Milestone number to assign to the issue

func (IssueOutput) Number added in v4.15.0

func (o IssueOutput) Number() pulumi.IntOutput

(Computed) - The issue number

func (IssueOutput) Repository added in v4.15.0

func (o IssueOutput) Repository() pulumi.StringOutput

The GitHub repository name

func (IssueOutput) Title added in v4.15.0

func (o IssueOutput) Title() pulumi.StringOutput

Title of the issue.

func (IssueOutput) ToIssueOutput added in v4.11.0

func (o IssueOutput) ToIssueOutput() IssueOutput

func (IssueOutput) ToIssueOutputWithContext added in v4.11.0

func (o IssueOutput) ToIssueOutputWithContext(ctx context.Context) IssueOutput

type IssueState added in v4.11.0

type IssueState struct {
	// List of Logins to assign the to the issue.
	Assignees pulumi.StringArrayInput
	// Title of the issue.
	Body pulumi.StringPtrInput
	Etag pulumi.StringPtrInput
	// (Computed) - The issue id
	IssueId pulumi.IntPtrInput
	// List of labels to attach to the issue.
	Labels pulumi.StringArrayInput
	// Milestone number to assign to the issue
	MilestoneNumber pulumi.IntPtrInput
	// (Computed) - The issue number
	Number pulumi.IntPtrInput
	// The GitHub repository name
	Repository pulumi.StringPtrInput
	// Title of the issue.
	Title pulumi.StringPtrInput
}

func (IssueState) ElementType added in v4.11.0

func (IssueState) ElementType() reflect.Type

type LookupBranchArgs

type LookupBranchArgs struct {
	// The repository branch to create.
	Branch string `pulumi:"branch"`
	// The GitHub repository name.
	Repository string `pulumi:"repository"`
}

A collection of arguments for invoking getBranch.

type LookupBranchOutputArgs added in v4.8.0

type LookupBranchOutputArgs struct {
	// The repository branch to create.
	Branch pulumi.StringInput `pulumi:"branch"`
	// The GitHub repository name.
	Repository pulumi.StringInput `pulumi:"repository"`
}

A collection of arguments for invoking getBranch.

func (LookupBranchOutputArgs) ElementType added in v4.8.0

func (LookupBranchOutputArgs) ElementType() reflect.Type

type LookupBranchResult

type LookupBranchResult struct {
	Branch string `pulumi:"branch"`
	// An etag representing the Branch object.
	Etag string `pulumi:"etag"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A string representing a branch reference, in the form of `refs/heads/<branch>`.
	Ref        string `pulumi:"ref"`
	Repository string `pulumi:"repository"`
	// A string storing the reference's `HEAD` commit's SHA1.
	Sha string `pulumi:"sha"`
}

A collection of values returned by getBranch.

func LookupBranch

func LookupBranch(ctx *pulumi.Context, args *LookupBranchArgs, opts ...pulumi.InvokeOption) (*LookupBranchResult, error)

Use this data source to retrieve information about a repository branch.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.LookupBranch(ctx, &GetBranchArgs{
			Branch:     "development",
			Repository: "example",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupBranchResultOutput added in v4.8.0

type LookupBranchResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getBranch.

func LookupBranchOutput added in v4.8.0

func LookupBranchOutput(ctx *pulumi.Context, args LookupBranchOutputArgs, opts ...pulumi.InvokeOption) LookupBranchResultOutput

func (LookupBranchResultOutput) Branch added in v4.8.0

func (LookupBranchResultOutput) ElementType added in v4.8.0

func (LookupBranchResultOutput) ElementType() reflect.Type

func (LookupBranchResultOutput) Etag added in v4.8.0

An etag representing the Branch object.

func (LookupBranchResultOutput) Id added in v4.8.0

The provider-assigned unique ID for this managed resource.

func (LookupBranchResultOutput) Ref added in v4.8.0

A string representing a branch reference, in the form of `refs/heads/<branch>`.

func (LookupBranchResultOutput) Repository added in v4.8.0

func (LookupBranchResultOutput) Sha added in v4.8.0

A string storing the reference's `HEAD` commit's SHA1.

func (LookupBranchResultOutput) ToLookupBranchResultOutput added in v4.8.0

func (o LookupBranchResultOutput) ToLookupBranchResultOutput() LookupBranchResultOutput

func (LookupBranchResultOutput) ToLookupBranchResultOutputWithContext added in v4.8.0

func (o LookupBranchResultOutput) ToLookupBranchResultOutputWithContext(ctx context.Context) LookupBranchResultOutput

type LookupMembershipArgs

type LookupMembershipArgs struct {
	// The organization to check for the above username.
	Organization *string `pulumi:"organization"`
	// The username to lookup in the organization.
	Username string `pulumi:"username"`
}

A collection of arguments for invoking getMembership.

type LookupMembershipOutputArgs added in v4.8.0

type LookupMembershipOutputArgs struct {
	// The organization to check for the above username.
	Organization pulumi.StringPtrInput `pulumi:"organization"`
	// The username to lookup in the organization.
	Username pulumi.StringInput `pulumi:"username"`
}

A collection of arguments for invoking getMembership.

func (LookupMembershipOutputArgs) ElementType added in v4.8.0

func (LookupMembershipOutputArgs) ElementType() reflect.Type

type LookupMembershipResult

type LookupMembershipResult struct {
	// An etag representing the membership object.
	Etag string `pulumi:"etag"`
	// The provider-assigned unique ID for this managed resource.
	Id           string  `pulumi:"id"`
	Organization *string `pulumi:"organization"`
	// `admin` or `member` -- the role the user has within the organization.
	Role string `pulumi:"role"`
	// The username.
	Username string `pulumi:"username"`
}

A collection of values returned by getMembership.

func LookupMembership

func LookupMembership(ctx *pulumi.Context, args *LookupMembershipArgs, opts ...pulumi.InvokeOption) (*LookupMembershipResult, error)

Use this data source to find out if a user is a member of your organization, as well as what role they have within it. If the user's membership in the organization is pending their acceptance of an invite, the role they would have once they accept will be returned.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.LookupMembership(ctx, &GetMembershipArgs{
			Username: "SomeUser",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupMembershipResultOutput added in v4.8.0

type LookupMembershipResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getMembership.

func LookupMembershipOutput added in v4.8.0

func (LookupMembershipResultOutput) ElementType added in v4.8.0

func (LookupMembershipResultOutput) Etag added in v4.8.0

An etag representing the membership object.

func (LookupMembershipResultOutput) Id added in v4.8.0

The provider-assigned unique ID for this managed resource.

func (LookupMembershipResultOutput) Organization added in v4.8.0

func (LookupMembershipResultOutput) Role added in v4.8.0

`admin` or `member` -- the role the user has within the organization.

func (LookupMembershipResultOutput) ToLookupMembershipResultOutput added in v4.8.0

func (o LookupMembershipResultOutput) ToLookupMembershipResultOutput() LookupMembershipResultOutput

func (LookupMembershipResultOutput) ToLookupMembershipResultOutputWithContext added in v4.8.0

func (o LookupMembershipResultOutput) ToLookupMembershipResultOutputWithContext(ctx context.Context) LookupMembershipResultOutput

func (LookupMembershipResultOutput) Username added in v4.8.0

The username.

type LookupRepositoryArgs

type LookupRepositoryArgs struct {
	// A description of the repository.
	Description *string `pulumi:"description"`
	// Full name of the repository (in `org/name` format).
	FullName *string `pulumi:"fullName"`
	// URL of a page describing the project.
	HomepageUrl *string `pulumi:"homepageUrl"`
	// The name of the repository.
	Name *string `pulumi:"name"`
	// . If true, the `branches` attributes will be populated only with protected branches. Default: `false`.
	OnlyProtectedBranches *bool `pulumi:"onlyProtectedBranches"`
}

A collection of arguments for invoking getRepository.

type LookupRepositoryFileArgs added in v4.7.0

type LookupRepositoryFileArgs struct {
	// Git branch (defaults to `main`).
	// The branch must already exist, it will not be created if it does not already exist.
	Branch *string `pulumi:"branch"`
	// The path of the file to manage.
	File string `pulumi:"file"`
	// The repository to create the file in.
	Repository string `pulumi:"repository"`
}

A collection of arguments for invoking getRepositoryFile.

type LookupRepositoryFileOutputArgs added in v4.8.0

type LookupRepositoryFileOutputArgs struct {
	// Git branch (defaults to `main`).
	// The branch must already exist, it will not be created if it does not already exist.
	Branch pulumi.StringPtrInput `pulumi:"branch"`
	// The path of the file to manage.
	File pulumi.StringInput `pulumi:"file"`
	// The repository to create the file in.
	Repository pulumi.StringInput `pulumi:"repository"`
}

A collection of arguments for invoking getRepositoryFile.

func (LookupRepositoryFileOutputArgs) ElementType added in v4.8.0

type LookupRepositoryFileResult added in v4.7.0

type LookupRepositoryFileResult struct {
	Branch *string `pulumi:"branch"`
	// Committer author name.
	CommitAuthor string `pulumi:"commitAuthor"`
	// Committer email address.
	CommitEmail string `pulumi:"commitEmail"`
	// Commit message when file was last updated.
	CommitMessage string `pulumi:"commitMessage"`
	// The SHA of the commit that modified the file.
	CommitSha string `pulumi:"commitSha"`
	// The file content.
	Content string `pulumi:"content"`
	File    string `pulumi:"file"`
	// The provider-assigned unique ID for this managed resource.
	Id         string `pulumi:"id"`
	Repository string `pulumi:"repository"`
	// The SHA blob of the file.
	Sha string `pulumi:"sha"`
}

A collection of values returned by getRepositoryFile.

func LookupRepositoryFile added in v4.7.0

func LookupRepositoryFile(ctx *pulumi.Context, args *LookupRepositoryFileArgs, opts ...pulumi.InvokeOption) (*LookupRepositoryFileResult, error)

This data source allows you to read files within a GitHub repository.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.LookupRepositoryFile(ctx, &GetRepositoryFileArgs{
			Repository: github_repository.Foo.Name,
			Branch:     pulumi.StringRef("main"),
			File:       ".gitignore",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupRepositoryFileResultOutput added in v4.8.0

type LookupRepositoryFileResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getRepositoryFile.

func LookupRepositoryFileOutput added in v4.8.0

func (LookupRepositoryFileResultOutput) Branch added in v4.8.0

func (LookupRepositoryFileResultOutput) CommitAuthor added in v4.8.0

Committer author name.

func (LookupRepositoryFileResultOutput) CommitEmail added in v4.8.0

Committer email address.

func (LookupRepositoryFileResultOutput) CommitMessage added in v4.8.0

Commit message when file was last updated.

func (LookupRepositoryFileResultOutput) CommitSha added in v4.8.0

The SHA of the commit that modified the file.

func (LookupRepositoryFileResultOutput) Content added in v4.8.0

The file content.

func (LookupRepositoryFileResultOutput) ElementType added in v4.8.0

func (LookupRepositoryFileResultOutput) File added in v4.8.0

func (LookupRepositoryFileResultOutput) Id added in v4.8.0

The provider-assigned unique ID for this managed resource.

func (LookupRepositoryFileResultOutput) Repository added in v4.8.0

func (LookupRepositoryFileResultOutput) Sha added in v4.8.0

The SHA blob of the file.

func (LookupRepositoryFileResultOutput) ToLookupRepositoryFileResultOutput added in v4.8.0

func (o LookupRepositoryFileResultOutput) ToLookupRepositoryFileResultOutput() LookupRepositoryFileResultOutput

func (LookupRepositoryFileResultOutput) ToLookupRepositoryFileResultOutputWithContext added in v4.8.0

func (o LookupRepositoryFileResultOutput) ToLookupRepositoryFileResultOutputWithContext(ctx context.Context) LookupRepositoryFileResultOutput

type LookupRepositoryMilestoneArgs

type LookupRepositoryMilestoneArgs struct {
	// The number of the milestone.
	Number int `pulumi:"number"`
	// Owner of the repository.
	Owner string `pulumi:"owner"`
	// Name of the repository to retrieve the milestone from.
	Repository string `pulumi:"repository"`
}

A collection of arguments for invoking getRepositoryMilestone.

type LookupRepositoryMilestoneOutputArgs added in v4.8.0

type LookupRepositoryMilestoneOutputArgs struct {
	// The number of the milestone.
	Number pulumi.IntInput `pulumi:"number"`
	// Owner of the repository.
	Owner pulumi.StringInput `pulumi:"owner"`
	// Name of the repository to retrieve the milestone from.
	Repository pulumi.StringInput `pulumi:"repository"`
}

A collection of arguments for invoking getRepositoryMilestone.

func (LookupRepositoryMilestoneOutputArgs) ElementType added in v4.8.0

type LookupRepositoryMilestoneResult

type LookupRepositoryMilestoneResult struct {
	// Description of the milestone.
	Description string `pulumi:"description"`
	// The milestone due date (in ISO-8601 `yyyy-mm-dd` format).
	DueDate string `pulumi:"dueDate"`
	// The provider-assigned unique ID for this managed resource.
	Id         string `pulumi:"id"`
	Number     int    `pulumi:"number"`
	Owner      string `pulumi:"owner"`
	Repository string `pulumi:"repository"`
	// State of the milestone.
	State string `pulumi:"state"`
	// Title of the milestone.
	Title string `pulumi:"title"`
}

A collection of values returned by getRepositoryMilestone.

func LookupRepositoryMilestone

func LookupRepositoryMilestone(ctx *pulumi.Context, args *LookupRepositoryMilestoneArgs, opts ...pulumi.InvokeOption) (*LookupRepositoryMilestoneResult, error)

Use this data source to retrieve information about a specific GitHub milestone in a repository.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.LookupRepositoryMilestone(ctx, &GetRepositoryMilestoneArgs{
			Number:     1,
			Owner:      "example-owner",
			Repository: "example-repository",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupRepositoryMilestoneResultOutput added in v4.8.0

type LookupRepositoryMilestoneResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getRepositoryMilestone.

func (LookupRepositoryMilestoneResultOutput) Description added in v4.8.0

Description of the milestone.

func (LookupRepositoryMilestoneResultOutput) DueDate added in v4.8.0

The milestone due date (in ISO-8601 `yyyy-mm-dd` format).

func (LookupRepositoryMilestoneResultOutput) ElementType added in v4.8.0

func (LookupRepositoryMilestoneResultOutput) Id added in v4.8.0

The provider-assigned unique ID for this managed resource.

func (LookupRepositoryMilestoneResultOutput) Number added in v4.8.0

func (LookupRepositoryMilestoneResultOutput) Owner added in v4.8.0

func (LookupRepositoryMilestoneResultOutput) Repository added in v4.8.0

func (LookupRepositoryMilestoneResultOutput) State added in v4.8.0

State of the milestone.

func (LookupRepositoryMilestoneResultOutput) Title added in v4.8.0

Title of the milestone.

func (LookupRepositoryMilestoneResultOutput) ToLookupRepositoryMilestoneResultOutput added in v4.8.0

func (o LookupRepositoryMilestoneResultOutput) ToLookupRepositoryMilestoneResultOutput() LookupRepositoryMilestoneResultOutput

func (LookupRepositoryMilestoneResultOutput) ToLookupRepositoryMilestoneResultOutputWithContext added in v4.8.0

func (o LookupRepositoryMilestoneResultOutput) ToLookupRepositoryMilestoneResultOutputWithContext(ctx context.Context) LookupRepositoryMilestoneResultOutput

type LookupRepositoryOutputArgs added in v4.8.0

type LookupRepositoryOutputArgs struct {
	// A description of the repository.
	Description pulumi.StringPtrInput `pulumi:"description"`
	// Full name of the repository (in `org/name` format).
	FullName pulumi.StringPtrInput `pulumi:"fullName"`
	// URL of a page describing the project.
	HomepageUrl pulumi.StringPtrInput `pulumi:"homepageUrl"`
	// The name of the repository.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// . If true, the `branches` attributes will be populated only with protected branches. Default: `false`.
	OnlyProtectedBranches pulumi.BoolPtrInput `pulumi:"onlyProtectedBranches"`
}

A collection of arguments for invoking getRepository.

func (LookupRepositoryOutputArgs) ElementType added in v4.8.0

func (LookupRepositoryOutputArgs) ElementType() reflect.Type

type LookupRepositoryPullRequestArgs

type LookupRepositoryPullRequestArgs struct {
	// Name of the base repository to retrieve the Pull Request from.
	BaseRepository string `pulumi:"baseRepository"`
	// The number of the Pull Request within the repository.
	Number int `pulumi:"number"`
	// Owner of the repository. If not provided, the provider's default owner is used.
	Owner *string `pulumi:"owner"`
}

A collection of arguments for invoking getRepositoryPullRequest.

type LookupRepositoryPullRequestOutputArgs added in v4.8.0

type LookupRepositoryPullRequestOutputArgs struct {
	// Name of the base repository to retrieve the Pull Request from.
	BaseRepository pulumi.StringInput `pulumi:"baseRepository"`
	// The number of the Pull Request within the repository.
	Number pulumi.IntInput `pulumi:"number"`
	// Owner of the repository. If not provided, the provider's default owner is used.
	Owner pulumi.StringPtrInput `pulumi:"owner"`
}

A collection of arguments for invoking getRepositoryPullRequest.

func (LookupRepositoryPullRequestOutputArgs) ElementType added in v4.8.0

type LookupRepositoryPullRequestResult

type LookupRepositoryPullRequestResult struct {
	// Name of the ref (branch) of the Pull Request base.
	BaseRef        string `pulumi:"baseRef"`
	BaseRepository string `pulumi:"baseRepository"`
	// Head commit SHA of the Pull Request base.
	BaseSha string `pulumi:"baseSha"`
	// Body of the Pull Request.
	Body string `pulumi:"body"`
	// Indicates Whether this Pull Request is a draft.
	Draft bool `pulumi:"draft"`
	// Owner of the Pull Request head repository.
	HeadOwner string `pulumi:"headOwner"`
	HeadRef   string `pulumi:"headRef"`
	// Name of the Pull Request head repository.
	HeadRepository string `pulumi:"headRepository"`
	// Head commit SHA of the Pull Request head.
	HeadSha string `pulumi:"headSha"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// List of label names set on the Pull Request.
	Labels []string `pulumi:"labels"`
	// Indicates whether the base repository maintainers can modify the Pull Request.
	MaintainerCanModify bool `pulumi:"maintainerCanModify"`
	Number              int  `pulumi:"number"`
	// Unix timestamp indicating the Pull Request creation time.
	OpenedAt int `pulumi:"openedAt"`
	// GitHub login of the user who opened the Pull Request.
	OpenedBy string  `pulumi:"openedBy"`
	Owner    *string `pulumi:"owner"`
	// the current Pull Request state - can be "open", "closed" or "merged".
	State string `pulumi:"state"`
	// The title of the Pull Request.
	Title string `pulumi:"title"`
	// The timestamp of the last Pull Request update.
	UpdatedAt int `pulumi:"updatedAt"`
}

A collection of values returned by getRepositoryPullRequest.

func LookupRepositoryPullRequest

func LookupRepositoryPullRequest(ctx *pulumi.Context, args *LookupRepositoryPullRequestArgs, opts ...pulumi.InvokeOption) (*LookupRepositoryPullRequestResult, error)

Use this data source to retrieve information about a specific GitHub Pull Request in a repository.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.LookupRepositoryPullRequest(ctx, &GetRepositoryPullRequestArgs{
			BaseRepository: "example_repository",
			Number:         1,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupRepositoryPullRequestResultOutput added in v4.8.0

type LookupRepositoryPullRequestResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getRepositoryPullRequest.

func (LookupRepositoryPullRequestResultOutput) BaseRef added in v4.8.0

Name of the ref (branch) of the Pull Request base.

func (LookupRepositoryPullRequestResultOutput) BaseRepository added in v4.8.0

func (LookupRepositoryPullRequestResultOutput) BaseSha added in v4.8.0

Head commit SHA of the Pull Request base.

func (LookupRepositoryPullRequestResultOutput) Body added in v4.8.0

Body of the Pull Request.

func (LookupRepositoryPullRequestResultOutput) Draft added in v4.8.0

Indicates Whether this Pull Request is a draft.

func (LookupRepositoryPullRequestResultOutput) ElementType added in v4.8.0

func (LookupRepositoryPullRequestResultOutput) HeadOwner added in v4.8.0

Owner of the Pull Request head repository.

func (LookupRepositoryPullRequestResultOutput) HeadRef added in v4.8.0

func (LookupRepositoryPullRequestResultOutput) HeadRepository added in v4.8.0

Name of the Pull Request head repository.

func (LookupRepositoryPullRequestResultOutput) HeadSha added in v4.8.0

Head commit SHA of the Pull Request head.

func (LookupRepositoryPullRequestResultOutput) Id added in v4.8.0

The provider-assigned unique ID for this managed resource.

func (LookupRepositoryPullRequestResultOutput) Labels added in v4.8.0

List of label names set on the Pull Request.

func (LookupRepositoryPullRequestResultOutput) MaintainerCanModify added in v4.8.0

Indicates whether the base repository maintainers can modify the Pull Request.

func (LookupRepositoryPullRequestResultOutput) Number added in v4.8.0

func (LookupRepositoryPullRequestResultOutput) OpenedAt added in v4.8.0

Unix timestamp indicating the Pull Request creation time.

func (LookupRepositoryPullRequestResultOutput) OpenedBy added in v4.8.0

GitHub login of the user who opened the Pull Request.

func (LookupRepositoryPullRequestResultOutput) Owner added in v4.8.0

func (LookupRepositoryPullRequestResultOutput) State added in v4.8.0

the current Pull Request state - can be "open", "closed" or "merged".

func (LookupRepositoryPullRequestResultOutput) Title added in v4.8.0

The title of the Pull Request.

func (LookupRepositoryPullRequestResultOutput) ToLookupRepositoryPullRequestResultOutput added in v4.8.0

func (o LookupRepositoryPullRequestResultOutput) ToLookupRepositoryPullRequestResultOutput() LookupRepositoryPullRequestResultOutput

func (LookupRepositoryPullRequestResultOutput) ToLookupRepositoryPullRequestResultOutputWithContext added in v4.8.0

func (o LookupRepositoryPullRequestResultOutput) ToLookupRepositoryPullRequestResultOutputWithContext(ctx context.Context) LookupRepositoryPullRequestResultOutput

func (LookupRepositoryPullRequestResultOutput) UpdatedAt added in v4.8.0

The timestamp of the last Pull Request update.

type LookupRepositoryPullRequestsArgs added in v4.8.0

type LookupRepositoryPullRequestsArgs struct {
	// If set, filters Pull Requests by base branch name.
	BaseRef *string `pulumi:"baseRef"`
	// Name of the base repository to retrieve the Pull Requests from.
	BaseRepository string `pulumi:"baseRepository"`
	// If set, filters Pull Requests by head user or head organization and branch name in the format of "user:ref-name" or "organization:ref-name". For example: "github:new-script-format" or "octocat:test-branch".
	HeadRef *string `pulumi:"headRef"`
	// Owner of the repository. If not provided, the provider's default owner is used.
	Owner *string `pulumi:"owner"`
	// If set, indicates what to sort results by. Can be either "created", "updated", "popularity" (comment count) or "long-running" (age, filtering by pulls updated in the last month). Default: "created".
	SortBy *string `pulumi:"sortBy"`
	// If set, controls the direction of the sort. Can be either "asc" or "desc". Default: "asc".
	SortDirection *string `pulumi:"sortDirection"`
	// If set, filters Pull Requests by state. Can be "open", "closed", or "all". Default: "open".
	State *string `pulumi:"state"`
}

A collection of arguments for invoking getRepositoryPullRequests.

type LookupRepositoryPullRequestsOutputArgs added in v4.8.0

type LookupRepositoryPullRequestsOutputArgs struct {
	// If set, filters Pull Requests by base branch name.
	BaseRef pulumi.StringPtrInput `pulumi:"baseRef"`
	// Name of the base repository to retrieve the Pull Requests from.
	BaseRepository pulumi.StringInput `pulumi:"baseRepository"`
	// If set, filters Pull Requests by head user or head organization and branch name in the format of "user:ref-name" or "organization:ref-name". For example: "github:new-script-format" or "octocat:test-branch".
	HeadRef pulumi.StringPtrInput `pulumi:"headRef"`
	// Owner of the repository. If not provided, the provider's default owner is used.
	Owner pulumi.StringPtrInput `pulumi:"owner"`
	// If set, indicates what to sort results by. Can be either "created", "updated", "popularity" (comment count) or "long-running" (age, filtering by pulls updated in the last month). Default: "created".
	SortBy pulumi.StringPtrInput `pulumi:"sortBy"`
	// If set, controls the direction of the sort. Can be either "asc" or "desc". Default: "asc".
	SortDirection pulumi.StringPtrInput `pulumi:"sortDirection"`
	// If set, filters Pull Requests by state. Can be "open", "closed", or "all". Default: "open".
	State pulumi.StringPtrInput `pulumi:"state"`
}

A collection of arguments for invoking getRepositoryPullRequests.

func (LookupRepositoryPullRequestsOutputArgs) ElementType added in v4.8.0

type LookupRepositoryPullRequestsResult added in v4.8.0

type LookupRepositoryPullRequestsResult struct {
	// Name of the ref (branch) of the Pull Request base.
	BaseRef        *string `pulumi:"baseRef"`
	BaseRepository string  `pulumi:"baseRepository"`
	// Value of the Pull Request `HEAD` reference.
	HeadRef *string `pulumi:"headRef"`
	// The provider-assigned unique ID for this managed resource.
	Id    string  `pulumi:"id"`
	Owner *string `pulumi:"owner"`
	// Collection of Pull Requests matching the filters. Each of the results conforms to the following scheme:
	Results       []GetRepositoryPullRequestsResult `pulumi:"results"`
	SortBy        *string                           `pulumi:"sortBy"`
	SortDirection *string                           `pulumi:"sortDirection"`
	// the current Pull Request state - can be "open", "closed" or "merged".
	State *string `pulumi:"state"`
}

A collection of values returned by getRepositoryPullRequests.

func LookupRepositoryPullRequests added in v4.8.0

func LookupRepositoryPullRequests(ctx *pulumi.Context, args *LookupRepositoryPullRequestsArgs, opts ...pulumi.InvokeOption) (*LookupRepositoryPullRequestsResult, error)

Use this data source to retrieve information about multiple GitHub Pull Requests in a repository.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.LookupRepositoryPullRequests(ctx, &GetRepositoryPullRequestsArgs{
			BaseRef:        pulumi.StringRef("main"),
			BaseRepository: "example-repository",
			SortBy:         pulumi.StringRef("updated"),
			SortDirection:  pulumi.StringRef("desc"),
			State:          pulumi.StringRef("open"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupRepositoryPullRequestsResultOutput added in v4.8.0

type LookupRepositoryPullRequestsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getRepositoryPullRequests.

func (LookupRepositoryPullRequestsResultOutput) BaseRef added in v4.8.0

Name of the ref (branch) of the Pull Request base.

func (LookupRepositoryPullRequestsResultOutput) BaseRepository added in v4.8.0

func (LookupRepositoryPullRequestsResultOutput) ElementType added in v4.8.0

func (LookupRepositoryPullRequestsResultOutput) HeadRef added in v4.8.0

Value of the Pull Request `HEAD` reference.

func (LookupRepositoryPullRequestsResultOutput) Id added in v4.8.0

The provider-assigned unique ID for this managed resource.

func (LookupRepositoryPullRequestsResultOutput) Owner added in v4.8.0

func (LookupRepositoryPullRequestsResultOutput) Results added in v4.8.0

Collection of Pull Requests matching the filters. Each of the results conforms to the following scheme:

func (LookupRepositoryPullRequestsResultOutput) SortBy added in v4.8.0

func (LookupRepositoryPullRequestsResultOutput) SortDirection added in v4.8.0

func (LookupRepositoryPullRequestsResultOutput) State added in v4.8.0

the current Pull Request state - can be "open", "closed" or "merged".

func (LookupRepositoryPullRequestsResultOutput) ToLookupRepositoryPullRequestsResultOutput added in v4.8.0

func (o LookupRepositoryPullRequestsResultOutput) ToLookupRepositoryPullRequestsResultOutput() LookupRepositoryPullRequestsResultOutput

func (LookupRepositoryPullRequestsResultOutput) ToLookupRepositoryPullRequestsResultOutputWithContext added in v4.8.0

func (o LookupRepositoryPullRequestsResultOutput) ToLookupRepositoryPullRequestsResultOutputWithContext(ctx context.Context) LookupRepositoryPullRequestsResultOutput

type LookupRepositoryResult

type LookupRepositoryResult struct {
	// Whether the repository allows auto-merging pull requests.
	AllowAutoMerge bool `pulumi:"allowAutoMerge"`
	// Whether the repository allows merge commits.
	AllowMergeCommit bool `pulumi:"allowMergeCommit"`
	// Whether the repository allows rebase merges.
	AllowRebaseMerge bool `pulumi:"allowRebaseMerge"`
	// Whether the repository allows squash merges.
	AllowSquashMerge bool `pulumi:"allowSquashMerge"`
	// Whether the repository is archived.
	Archived bool `pulumi:"archived"`
	// The list of this repository's branches. Each element of `branches` has the following attributes:
	Branches []GetRepositoryBranch `pulumi:"branches"`
	// The name of the default branch of the repository.
	DefaultBranch string `pulumi:"defaultBranch"`
	// A description of the repository.
	Description *string `pulumi:"description"`
	FullName    string  `pulumi:"fullName"`
	// URL that can be provided to `git clone` to clone the repository anonymously via the git protocol.
	GitCloneUrl string `pulumi:"gitCloneUrl"`
	// Whether the repository has Downloads feature enabled.
	HasDownloads bool `pulumi:"hasDownloads"`
	// Whether the repository has GitHub Issues enabled.
	HasIssues bool `pulumi:"hasIssues"`
	// Whether the repository has the GitHub Projects enabled.
	HasProjects bool `pulumi:"hasProjects"`
	// Whether the repository has the GitHub Wiki enabled.
	HasWiki bool `pulumi:"hasWiki"`
	// URL of a page describing the project.
	HomepageUrl *string `pulumi:"homepageUrl"`
	// URL to the repository on the web.
	HtmlUrl string `pulumi:"htmlUrl"`
	// URL that can be provided to `git clone` to clone the repository via HTTPS.
	HttpCloneUrl string `pulumi:"httpCloneUrl"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The default value for a merge commit message.
	MergeCommitMessage string `pulumi:"mergeCommitMessage"`
	// The default value for a merge commit title.
	MergeCommitTitle string `pulumi:"mergeCommitTitle"`
	// Name of the branch.
	Name string `pulumi:"name"`
	// GraphQL global node id for use with v4 API
	NodeId                string `pulumi:"nodeId"`
	OnlyProtectedBranches *bool  `pulumi:"onlyProtectedBranches"`
	// The repository's GitHub Pages configuration.
	Pages []GetRepositoryPage `pulumi:"pages"`
	// Whether the repository is private.
	Private bool `pulumi:"private"`
	// GitHub ID for the repository
	RepoId int `pulumi:"repoId"`
	// The default value for a squash merge commit message.
	SquashMergeCommitMessage string `pulumi:"squashMergeCommitMessage"`
	// The default value for a squash merge commit title.
	SquashMergeCommitTitle string `pulumi:"squashMergeCommitTitle"`
	// URL that can be provided to `git clone` to clone the repository via SSH.
	SshCloneUrl string `pulumi:"sshCloneUrl"`
	// URL that can be provided to `svn checkout` to check out the repository via GitHub's Subversion protocol emulation.
	SvnUrl string `pulumi:"svnUrl"`
	// The list of topics of the repository.
	Topics []string `pulumi:"topics"`
	// Whether the repository is public, private or internal.
	Visibility string `pulumi:"visibility"`
}

A collection of values returned by getRepository.

func LookupRepository

func LookupRepository(ctx *pulumi.Context, args *LookupRepositoryArgs, opts ...pulumi.InvokeOption) (*LookupRepositoryResult, error)

Use this data source to retrieve information about a GitHub repository.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.LookupRepository(ctx, &GetRepositoryArgs{
			FullName: pulumi.StringRef("hashicorp/terraform"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupRepositoryResultOutput added in v4.8.0

type LookupRepositoryResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getRepository.

func LookupRepositoryOutput added in v4.8.0

func (LookupRepositoryResultOutput) AllowAutoMerge added in v4.8.0

func (o LookupRepositoryResultOutput) AllowAutoMerge() pulumi.BoolOutput

Whether the repository allows auto-merging pull requests.

func (LookupRepositoryResultOutput) AllowMergeCommit added in v4.8.0

func (o LookupRepositoryResultOutput) AllowMergeCommit() pulumi.BoolOutput

Whether the repository allows merge commits.

func (LookupRepositoryResultOutput) AllowRebaseMerge added in v4.8.0

func (o LookupRepositoryResultOutput) AllowRebaseMerge() pulumi.BoolOutput

Whether the repository allows rebase merges.

func (LookupRepositoryResultOutput) AllowSquashMerge added in v4.8.0

func (o LookupRepositoryResultOutput) AllowSquashMerge() pulumi.BoolOutput

Whether the repository allows squash merges.

func (LookupRepositoryResultOutput) Archived added in v4.8.0

Whether the repository is archived.

func (LookupRepositoryResultOutput) Branches added in v4.8.0

The list of this repository's branches. Each element of `branches` has the following attributes:

func (LookupRepositoryResultOutput) DefaultBranch added in v4.8.0

The name of the default branch of the repository.

func (LookupRepositoryResultOutput) Description added in v4.8.0

A description of the repository.

func (LookupRepositoryResultOutput) ElementType added in v4.8.0

func (LookupRepositoryResultOutput) FullName added in v4.8.0

func (LookupRepositoryResultOutput) GitCloneUrl added in v4.8.0

URL that can be provided to `git clone` to clone the repository anonymously via the git protocol.

func (LookupRepositoryResultOutput) HasDownloads added in v4.8.0

Whether the repository has Downloads feature enabled.

func (LookupRepositoryResultOutput) HasIssues added in v4.8.0

Whether the repository has GitHub Issues enabled.

func (LookupRepositoryResultOutput) HasProjects added in v4.8.0

Whether the repository has the GitHub Projects enabled.

func (LookupRepositoryResultOutput) HasWiki added in v4.8.0

Whether the repository has the GitHub Wiki enabled.

func (LookupRepositoryResultOutput) HomepageUrl added in v4.8.0

URL of a page describing the project.

func (LookupRepositoryResultOutput) HtmlUrl added in v4.8.0

URL to the repository on the web.

func (LookupRepositoryResultOutput) HttpCloneUrl added in v4.8.0

URL that can be provided to `git clone` to clone the repository via HTTPS.

func (LookupRepositoryResultOutput) Id added in v4.8.0

The provider-assigned unique ID for this managed resource.

func (LookupRepositoryResultOutput) MergeCommitMessage added in v4.17.0

func (o LookupRepositoryResultOutput) MergeCommitMessage() pulumi.StringOutput

The default value for a merge commit message.

func (LookupRepositoryResultOutput) MergeCommitTitle added in v4.17.0

func (o LookupRepositoryResultOutput) MergeCommitTitle() pulumi.StringOutput

The default value for a merge commit title.

func (LookupRepositoryResultOutput) Name added in v4.8.0

Name of the branch.

func (LookupRepositoryResultOutput) NodeId added in v4.8.0

GraphQL global node id for use with v4 API

func (LookupRepositoryResultOutput) OnlyProtectedBranches added in v4.14.0

func (o LookupRepositoryResultOutput) OnlyProtectedBranches() pulumi.BoolPtrOutput

func (LookupRepositoryResultOutput) Pages added in v4.8.0

The repository's GitHub Pages configuration.

func (LookupRepositoryResultOutput) Private added in v4.8.0

Whether the repository is private.

func (LookupRepositoryResultOutput) RepoId added in v4.8.0

GitHub ID for the repository

func (LookupRepositoryResultOutput) SquashMergeCommitMessage added in v4.17.0

func (o LookupRepositoryResultOutput) SquashMergeCommitMessage() pulumi.StringOutput

The default value for a squash merge commit message.

func (LookupRepositoryResultOutput) SquashMergeCommitTitle added in v4.17.0

func (o LookupRepositoryResultOutput) SquashMergeCommitTitle() pulumi.StringOutput

The default value for a squash merge commit title.

func (LookupRepositoryResultOutput) SshCloneUrl added in v4.8.0

URL that can be provided to `git clone` to clone the repository via SSH.

func (LookupRepositoryResultOutput) SvnUrl added in v4.8.0

URL that can be provided to `svn checkout` to check out the repository via GitHub's Subversion protocol emulation.

func (LookupRepositoryResultOutput) ToLookupRepositoryResultOutput added in v4.8.0

func (o LookupRepositoryResultOutput) ToLookupRepositoryResultOutput() LookupRepositoryResultOutput

func (LookupRepositoryResultOutput) ToLookupRepositoryResultOutputWithContext added in v4.8.0

func (o LookupRepositoryResultOutput) ToLookupRepositoryResultOutputWithContext(ctx context.Context) LookupRepositoryResultOutput

func (LookupRepositoryResultOutput) Topics added in v4.8.0

The list of topics of the repository.

func (LookupRepositoryResultOutput) Visibility added in v4.8.0

Whether the repository is public, private or internal.

type LookupTeamArgs

type LookupTeamArgs struct {
	// Type of membershp to be requested to fill the list of members. Can be either "all" or "immediate". Default: "all"
	MembershipType *string `pulumi:"membershipType"`
	// The team slug.
	Slug string `pulumi:"slug"`
}

A collection of arguments for invoking getTeam.

type LookupTeamOutputArgs added in v4.8.0

type LookupTeamOutputArgs struct {
	// Type of membershp to be requested to fill the list of members. Can be either "all" or "immediate". Default: "all"
	MembershipType pulumi.StringPtrInput `pulumi:"membershipType"`
	// The team slug.
	Slug pulumi.StringInput `pulumi:"slug"`
}

A collection of arguments for invoking getTeam.

func (LookupTeamOutputArgs) ElementType added in v4.8.0

func (LookupTeamOutputArgs) ElementType() reflect.Type

type LookupTeamResult

type LookupTeamResult struct {
	// the team's description.
	Description string `pulumi:"description"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// List of team members (list of GitHub usernames)
	Members        []string `pulumi:"members"`
	MembershipType *string  `pulumi:"membershipType"`
	// the team's full name.
	Name string `pulumi:"name"`
	// the Node ID of the team.
	NodeId string `pulumi:"nodeId"`
	// the team's permission level.
	Permission string `pulumi:"permission"`
	// the team's privacy type.
	Privacy string `pulumi:"privacy"`
	// List of team repositories (list of repo names)
	Repositories []string `pulumi:"repositories"`
	Slug         string   `pulumi:"slug"`
}

A collection of values returned by getTeam.

func LookupTeam

func LookupTeam(ctx *pulumi.Context, args *LookupTeamArgs, opts ...pulumi.InvokeOption) (*LookupTeamResult, error)

Use this data source to retrieve information about a GitHub team.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.LookupTeam(ctx, &GetTeamArgs{
			Slug: "example",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupTeamResultOutput added in v4.8.0

type LookupTeamResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getTeam.

func LookupTeamOutput added in v4.8.0

func LookupTeamOutput(ctx *pulumi.Context, args LookupTeamOutputArgs, opts ...pulumi.InvokeOption) LookupTeamResultOutput

func (LookupTeamResultOutput) Description added in v4.8.0

func (o LookupTeamResultOutput) Description() pulumi.StringOutput

the team's description.

func (LookupTeamResultOutput) ElementType added in v4.8.0

func (LookupTeamResultOutput) ElementType() reflect.Type

func (LookupTeamResultOutput) Id added in v4.8.0

The provider-assigned unique ID for this managed resource.

func (LookupTeamResultOutput) Members added in v4.8.0

List of team members (list of GitHub usernames)

func (LookupTeamResultOutput) MembershipType added in v4.17.0

func (o LookupTeamResultOutput) MembershipType() pulumi.StringPtrOutput

func (LookupTeamResultOutput) Name added in v4.8.0

the team's full name.

func (LookupTeamResultOutput) NodeId added in v4.8.0

the Node ID of the team.

func (LookupTeamResultOutput) Permission added in v4.8.0

the team's permission level.

func (LookupTeamResultOutput) Privacy added in v4.8.0

the team's privacy type.

func (LookupTeamResultOutput) Repositories added in v4.8.0

List of team repositories (list of repo names)

func (LookupTeamResultOutput) Slug added in v4.8.0

func (LookupTeamResultOutput) ToLookupTeamResultOutput added in v4.8.0

func (o LookupTeamResultOutput) ToLookupTeamResultOutput() LookupTeamResultOutput

func (LookupTeamResultOutput) ToLookupTeamResultOutputWithContext added in v4.8.0

func (o LookupTeamResultOutput) ToLookupTeamResultOutputWithContext(ctx context.Context) LookupTeamResultOutput

type Membership

type Membership struct {
	pulumi.CustomResourceState

	Etag pulumi.StringOutput `pulumi:"etag"`
	// The role of the user within the organization.
	// Must be one of `member` or `admin`. Defaults to `member`.
	Role pulumi.StringPtrOutput `pulumi:"role"`
	// The user to add to the organization.
	Username pulumi.StringOutput `pulumi:"username"`
}

Provides a GitHub membership resource.

This resource allows you to add/remove users from your organization. When applied, an invitation will be sent to the user to become part of the organization. When destroyed, either the invitation will be cancelled or the user will be removed.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.NewMembership(ctx, "membershipForSomeUser", &github.MembershipArgs{
			Role:     pulumi.String("member"),
			Username: pulumi.String("SomeUser"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

GitHub Membership can be imported using an ID made up of `organization:username`, e.g.

```sh

$ pulumi import github:index/membership:Membership member hashicorp:someuser

```

func GetMembership

func GetMembership(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *MembershipState, opts ...pulumi.ResourceOption) (*Membership, error)

GetMembership gets an existing Membership 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 NewMembership

func NewMembership(ctx *pulumi.Context,
	name string, args *MembershipArgs, opts ...pulumi.ResourceOption) (*Membership, error)

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

func (*Membership) ElementType

func (*Membership) ElementType() reflect.Type

func (*Membership) ToMembershipOutput

func (i *Membership) ToMembershipOutput() MembershipOutput

func (*Membership) ToMembershipOutputWithContext

func (i *Membership) ToMembershipOutputWithContext(ctx context.Context) MembershipOutput

type MembershipArgs

type MembershipArgs struct {
	// The role of the user within the organization.
	// Must be one of `member` or `admin`. Defaults to `member`.
	Role pulumi.StringPtrInput
	// The user to add to the organization.
	Username pulumi.StringInput
}

The set of arguments for constructing a Membership resource.

func (MembershipArgs) ElementType

func (MembershipArgs) ElementType() reflect.Type

type MembershipArray

type MembershipArray []MembershipInput

func (MembershipArray) ElementType

func (MembershipArray) ElementType() reflect.Type

func (MembershipArray) ToMembershipArrayOutput

func (i MembershipArray) ToMembershipArrayOutput() MembershipArrayOutput

func (MembershipArray) ToMembershipArrayOutputWithContext

func (i MembershipArray) ToMembershipArrayOutputWithContext(ctx context.Context) MembershipArrayOutput

type MembershipArrayInput

type MembershipArrayInput interface {
	pulumi.Input

	ToMembershipArrayOutput() MembershipArrayOutput
	ToMembershipArrayOutputWithContext(context.Context) MembershipArrayOutput
}

MembershipArrayInput is an input type that accepts MembershipArray and MembershipArrayOutput values. You can construct a concrete instance of `MembershipArrayInput` via:

MembershipArray{ MembershipArgs{...} }

type MembershipArrayOutput

type MembershipArrayOutput struct{ *pulumi.OutputState }

func (MembershipArrayOutput) ElementType

func (MembershipArrayOutput) ElementType() reflect.Type

func (MembershipArrayOutput) Index

func (MembershipArrayOutput) ToMembershipArrayOutput

func (o MembershipArrayOutput) ToMembershipArrayOutput() MembershipArrayOutput

func (MembershipArrayOutput) ToMembershipArrayOutputWithContext

func (o MembershipArrayOutput) ToMembershipArrayOutputWithContext(ctx context.Context) MembershipArrayOutput

type MembershipInput

type MembershipInput interface {
	pulumi.Input

	ToMembershipOutput() MembershipOutput
	ToMembershipOutputWithContext(ctx context.Context) MembershipOutput
}

type MembershipMap

type MembershipMap map[string]MembershipInput

func (MembershipMap) ElementType

func (MembershipMap) ElementType() reflect.Type

func (MembershipMap) ToMembershipMapOutput

func (i MembershipMap) ToMembershipMapOutput() MembershipMapOutput

func (MembershipMap) ToMembershipMapOutputWithContext

func (i MembershipMap) ToMembershipMapOutputWithContext(ctx context.Context) MembershipMapOutput

type MembershipMapInput

type MembershipMapInput interface {
	pulumi.Input

	ToMembershipMapOutput() MembershipMapOutput
	ToMembershipMapOutputWithContext(context.Context) MembershipMapOutput
}

MembershipMapInput is an input type that accepts MembershipMap and MembershipMapOutput values. You can construct a concrete instance of `MembershipMapInput` via:

MembershipMap{ "key": MembershipArgs{...} }

type MembershipMapOutput

type MembershipMapOutput struct{ *pulumi.OutputState }

func (MembershipMapOutput) ElementType

func (MembershipMapOutput) ElementType() reflect.Type

func (MembershipMapOutput) MapIndex

func (MembershipMapOutput) ToMembershipMapOutput

func (o MembershipMapOutput) ToMembershipMapOutput() MembershipMapOutput

func (MembershipMapOutput) ToMembershipMapOutputWithContext

func (o MembershipMapOutput) ToMembershipMapOutputWithContext(ctx context.Context) MembershipMapOutput

type MembershipOutput

type MembershipOutput struct{ *pulumi.OutputState }

func (MembershipOutput) ElementType

func (MembershipOutput) ElementType() reflect.Type

func (MembershipOutput) Etag added in v4.15.0

func (MembershipOutput) Role added in v4.15.0

The role of the user within the organization. Must be one of `member` or `admin`. Defaults to `member`.

func (MembershipOutput) ToMembershipOutput

func (o MembershipOutput) ToMembershipOutput() MembershipOutput

func (MembershipOutput) ToMembershipOutputWithContext

func (o MembershipOutput) ToMembershipOutputWithContext(ctx context.Context) MembershipOutput

func (MembershipOutput) Username added in v4.15.0

func (o MembershipOutput) Username() pulumi.StringOutput

The user to add to the organization.

type MembershipState

type MembershipState struct {
	Etag pulumi.StringPtrInput
	// The role of the user within the organization.
	// Must be one of `member` or `admin`. Defaults to `member`.
	Role pulumi.StringPtrInput
	// The user to add to the organization.
	Username pulumi.StringPtrInput
}

func (MembershipState) ElementType

func (MembershipState) ElementType() reflect.Type

type OrganizationBlock

type OrganizationBlock struct {
	pulumi.CustomResourceState

	Etag pulumi.StringOutput `pulumi:"etag"`
	// The name of the user to block.
	Username pulumi.StringOutput `pulumi:"username"`
}

This resource allows you to create and manage blocks for GitHub organizations.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.NewOrganizationBlock(ctx, "example", &github.OrganizationBlockArgs{
			Username: pulumi.String("paultyng"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetOrganizationBlock

func GetOrganizationBlock(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *OrganizationBlockState, opts ...pulumi.ResourceOption) (*OrganizationBlock, error)

GetOrganizationBlock gets an existing OrganizationBlock 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 NewOrganizationBlock

func NewOrganizationBlock(ctx *pulumi.Context,
	name string, args *OrganizationBlockArgs, opts ...pulumi.ResourceOption) (*OrganizationBlock, error)

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

func (*OrganizationBlock) ElementType

func (*OrganizationBlock) ElementType() reflect.Type

func (*OrganizationBlock) ToOrganizationBlockOutput

func (i *OrganizationBlock) ToOrganizationBlockOutput() OrganizationBlockOutput

func (*OrganizationBlock) ToOrganizationBlockOutputWithContext

func (i *OrganizationBlock) ToOrganizationBlockOutputWithContext(ctx context.Context) OrganizationBlockOutput

type OrganizationBlockArgs

type OrganizationBlockArgs struct {
	// The name of the user to block.
	Username pulumi.StringInput
}

The set of arguments for constructing a OrganizationBlock resource.

func (OrganizationBlockArgs) ElementType

func (OrganizationBlockArgs) ElementType() reflect.Type

type OrganizationBlockArray

type OrganizationBlockArray []OrganizationBlockInput

func (OrganizationBlockArray) ElementType

func (OrganizationBlockArray) ElementType() reflect.Type

func (OrganizationBlockArray) ToOrganizationBlockArrayOutput

func (i OrganizationBlockArray) ToOrganizationBlockArrayOutput() OrganizationBlockArrayOutput

func (OrganizationBlockArray) ToOrganizationBlockArrayOutputWithContext

func (i OrganizationBlockArray) ToOrganizationBlockArrayOutputWithContext(ctx context.Context) OrganizationBlockArrayOutput

type OrganizationBlockArrayInput

type OrganizationBlockArrayInput interface {
	pulumi.Input

	ToOrganizationBlockArrayOutput() OrganizationBlockArrayOutput
	ToOrganizationBlockArrayOutputWithContext(context.Context) OrganizationBlockArrayOutput
}

OrganizationBlockArrayInput is an input type that accepts OrganizationBlockArray and OrganizationBlockArrayOutput values. You can construct a concrete instance of `OrganizationBlockArrayInput` via:

OrganizationBlockArray{ OrganizationBlockArgs{...} }

type OrganizationBlockArrayOutput

type OrganizationBlockArrayOutput struct{ *pulumi.OutputState }

func (OrganizationBlockArrayOutput) ElementType

func (OrganizationBlockArrayOutput) Index

func (OrganizationBlockArrayOutput) ToOrganizationBlockArrayOutput

func (o OrganizationBlockArrayOutput) ToOrganizationBlockArrayOutput() OrganizationBlockArrayOutput

func (OrganizationBlockArrayOutput) ToOrganizationBlockArrayOutputWithContext

func (o OrganizationBlockArrayOutput) ToOrganizationBlockArrayOutputWithContext(ctx context.Context) OrganizationBlockArrayOutput

type OrganizationBlockInput

type OrganizationBlockInput interface {
	pulumi.Input

	ToOrganizationBlockOutput() OrganizationBlockOutput
	ToOrganizationBlockOutputWithContext(ctx context.Context) OrganizationBlockOutput
}

type OrganizationBlockMap

type OrganizationBlockMap map[string]OrganizationBlockInput

func (OrganizationBlockMap) ElementType

func (OrganizationBlockMap) ElementType() reflect.Type

func (OrganizationBlockMap) ToOrganizationBlockMapOutput

func (i OrganizationBlockMap) ToOrganizationBlockMapOutput() OrganizationBlockMapOutput

func (OrganizationBlockMap) ToOrganizationBlockMapOutputWithContext

func (i OrganizationBlockMap) ToOrganizationBlockMapOutputWithContext(ctx context.Context) OrganizationBlockMapOutput

type OrganizationBlockMapInput

type OrganizationBlockMapInput interface {
	pulumi.Input

	ToOrganizationBlockMapOutput() OrganizationBlockMapOutput
	ToOrganizationBlockMapOutputWithContext(context.Context) OrganizationBlockMapOutput
}

OrganizationBlockMapInput is an input type that accepts OrganizationBlockMap and OrganizationBlockMapOutput values. You can construct a concrete instance of `OrganizationBlockMapInput` via:

OrganizationBlockMap{ "key": OrganizationBlockArgs{...} }

type OrganizationBlockMapOutput

type OrganizationBlockMapOutput struct{ *pulumi.OutputState }

func (OrganizationBlockMapOutput) ElementType

func (OrganizationBlockMapOutput) ElementType() reflect.Type

func (OrganizationBlockMapOutput) MapIndex

func (OrganizationBlockMapOutput) ToOrganizationBlockMapOutput

func (o OrganizationBlockMapOutput) ToOrganizationBlockMapOutput() OrganizationBlockMapOutput

func (OrganizationBlockMapOutput) ToOrganizationBlockMapOutputWithContext

func (o OrganizationBlockMapOutput) ToOrganizationBlockMapOutputWithContext(ctx context.Context) OrganizationBlockMapOutput

type OrganizationBlockOutput

type OrganizationBlockOutput struct{ *pulumi.OutputState }

func (OrganizationBlockOutput) ElementType

func (OrganizationBlockOutput) ElementType() reflect.Type

func (OrganizationBlockOutput) Etag added in v4.15.0

func (OrganizationBlockOutput) ToOrganizationBlockOutput

func (o OrganizationBlockOutput) ToOrganizationBlockOutput() OrganizationBlockOutput

func (OrganizationBlockOutput) ToOrganizationBlockOutputWithContext

func (o OrganizationBlockOutput) ToOrganizationBlockOutputWithContext(ctx context.Context) OrganizationBlockOutput

func (OrganizationBlockOutput) Username added in v4.15.0

The name of the user to block.

type OrganizationBlockState

type OrganizationBlockState struct {
	Etag pulumi.StringPtrInput
	// The name of the user to block.
	Username pulumi.StringPtrInput
}

func (OrganizationBlockState) ElementType

func (OrganizationBlockState) ElementType() reflect.Type

type OrganizationProject

type OrganizationProject struct {
	pulumi.CustomResourceState

	// The body of the project.
	Body pulumi.StringPtrOutput `pulumi:"body"`
	Etag pulumi.StringOutput    `pulumi:"etag"`
	// The name of the project.
	Name pulumi.StringOutput `pulumi:"name"`
	// URL of the project
	Url pulumi.StringOutput `pulumi:"url"`
}

This resource allows you to create and manage projects for GitHub organization.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.NewOrganizationProject(ctx, "project", &github.OrganizationProjectArgs{
			Body: pulumi.String("This is a organization project."),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetOrganizationProject

func GetOrganizationProject(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *OrganizationProjectState, opts ...pulumi.ResourceOption) (*OrganizationProject, error)

GetOrganizationProject gets an existing OrganizationProject 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 NewOrganizationProject

func NewOrganizationProject(ctx *pulumi.Context,
	name string, args *OrganizationProjectArgs, opts ...pulumi.ResourceOption) (*OrganizationProject, error)

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

func (*OrganizationProject) ElementType

func (*OrganizationProject) ElementType() reflect.Type

func (*OrganizationProject) ToOrganizationProjectOutput

func (i *OrganizationProject) ToOrganizationProjectOutput() OrganizationProjectOutput

func (*OrganizationProject) ToOrganizationProjectOutputWithContext

func (i *OrganizationProject) ToOrganizationProjectOutputWithContext(ctx context.Context) OrganizationProjectOutput

type OrganizationProjectArgs

type OrganizationProjectArgs struct {
	// The body of the project.
	Body pulumi.StringPtrInput
	// The name of the project.
	Name pulumi.StringPtrInput
}

The set of arguments for constructing a OrganizationProject resource.

func (OrganizationProjectArgs) ElementType

func (OrganizationProjectArgs) ElementType() reflect.Type

type OrganizationProjectArray

type OrganizationProjectArray []OrganizationProjectInput

func (OrganizationProjectArray) ElementType

func (OrganizationProjectArray) ElementType() reflect.Type

func (OrganizationProjectArray) ToOrganizationProjectArrayOutput

func (i OrganizationProjectArray) ToOrganizationProjectArrayOutput() OrganizationProjectArrayOutput

func (OrganizationProjectArray) ToOrganizationProjectArrayOutputWithContext

func (i OrganizationProjectArray) ToOrganizationProjectArrayOutputWithContext(ctx context.Context) OrganizationProjectArrayOutput

type OrganizationProjectArrayInput

type OrganizationProjectArrayInput interface {
	pulumi.Input

	ToOrganizationProjectArrayOutput() OrganizationProjectArrayOutput
	ToOrganizationProjectArrayOutputWithContext(context.Context) OrganizationProjectArrayOutput
}

OrganizationProjectArrayInput is an input type that accepts OrganizationProjectArray and OrganizationProjectArrayOutput values. You can construct a concrete instance of `OrganizationProjectArrayInput` via:

OrganizationProjectArray{ OrganizationProjectArgs{...} }

type OrganizationProjectArrayOutput

type OrganizationProjectArrayOutput struct{ *pulumi.OutputState }

func (OrganizationProjectArrayOutput) ElementType

func (OrganizationProjectArrayOutput) Index

func (OrganizationProjectArrayOutput) ToOrganizationProjectArrayOutput

func (o OrganizationProjectArrayOutput) ToOrganizationProjectArrayOutput() OrganizationProjectArrayOutput

func (OrganizationProjectArrayOutput) ToOrganizationProjectArrayOutputWithContext

func (o OrganizationProjectArrayOutput) ToOrganizationProjectArrayOutputWithContext(ctx context.Context) OrganizationProjectArrayOutput

type OrganizationProjectInput

type OrganizationProjectInput interface {
	pulumi.Input

	ToOrganizationProjectOutput() OrganizationProjectOutput
	ToOrganizationProjectOutputWithContext(ctx context.Context) OrganizationProjectOutput
}

type OrganizationProjectMap

type OrganizationProjectMap map[string]OrganizationProjectInput

func (OrganizationProjectMap) ElementType

func (OrganizationProjectMap) ElementType() reflect.Type

func (OrganizationProjectMap) ToOrganizationProjectMapOutput

func (i OrganizationProjectMap) ToOrganizationProjectMapOutput() OrganizationProjectMapOutput

func (OrganizationProjectMap) ToOrganizationProjectMapOutputWithContext

func (i OrganizationProjectMap) ToOrganizationProjectMapOutputWithContext(ctx context.Context) OrganizationProjectMapOutput

type OrganizationProjectMapInput

type OrganizationProjectMapInput interface {
	pulumi.Input

	ToOrganizationProjectMapOutput() OrganizationProjectMapOutput
	ToOrganizationProjectMapOutputWithContext(context.Context) OrganizationProjectMapOutput
}

OrganizationProjectMapInput is an input type that accepts OrganizationProjectMap and OrganizationProjectMapOutput values. You can construct a concrete instance of `OrganizationProjectMapInput` via:

OrganizationProjectMap{ "key": OrganizationProjectArgs{...} }

type OrganizationProjectMapOutput

type OrganizationProjectMapOutput struct{ *pulumi.OutputState }

func (OrganizationProjectMapOutput) ElementType

func (OrganizationProjectMapOutput) MapIndex

func (OrganizationProjectMapOutput) ToOrganizationProjectMapOutput

func (o OrganizationProjectMapOutput) ToOrganizationProjectMapOutput() OrganizationProjectMapOutput

func (OrganizationProjectMapOutput) ToOrganizationProjectMapOutputWithContext

func (o OrganizationProjectMapOutput) ToOrganizationProjectMapOutputWithContext(ctx context.Context) OrganizationProjectMapOutput

type OrganizationProjectOutput

type OrganizationProjectOutput struct{ *pulumi.OutputState }

func (OrganizationProjectOutput) Body added in v4.15.0

The body of the project.

func (OrganizationProjectOutput) ElementType

func (OrganizationProjectOutput) ElementType() reflect.Type

func (OrganizationProjectOutput) Etag added in v4.15.0

func (OrganizationProjectOutput) Name added in v4.15.0

The name of the project.

func (OrganizationProjectOutput) ToOrganizationProjectOutput

func (o OrganizationProjectOutput) ToOrganizationProjectOutput() OrganizationProjectOutput

func (OrganizationProjectOutput) ToOrganizationProjectOutputWithContext

func (o OrganizationProjectOutput) ToOrganizationProjectOutputWithContext(ctx context.Context) OrganizationProjectOutput

func (OrganizationProjectOutput) Url added in v4.15.0

URL of the project

type OrganizationProjectState

type OrganizationProjectState struct {
	// The body of the project.
	Body pulumi.StringPtrInput
	Etag pulumi.StringPtrInput
	// The name of the project.
	Name pulumi.StringPtrInput
	// URL of the project
	Url pulumi.StringPtrInput
}

func (OrganizationProjectState) ElementType

func (OrganizationProjectState) ElementType() reflect.Type

type OrganizationWebhook

type OrganizationWebhook struct {
	pulumi.CustomResourceState

	// Indicate of the webhook should receive events. Defaults to `true`.
	Active pulumi.BoolPtrOutput `pulumi:"active"`
	// key/value pair of configuration for this webhook. Available keys are `url`, `contentType`, `secret` and `insecureSsl`.
	Configuration OrganizationWebhookConfigurationPtrOutput `pulumi:"configuration"`
	Etag          pulumi.StringOutput                       `pulumi:"etag"`
	// A list of events which should trigger the webhook. See a list of [available events](https://developer.github.com/v3/activity/events/types/)
	Events pulumi.StringArrayOutput `pulumi:"events"`
	// URL of the webhook
	Url pulumi.StringOutput `pulumi:"url"`
}

This resource allows you to create and manage webhooks for GitHub organization.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.NewOrganizationWebhook(ctx, "foo", &github.OrganizationWebhookArgs{
			Active: pulumi.Bool(false),
			Configuration: &OrganizationWebhookConfigurationArgs{
				ContentType: pulumi.String("form"),
				InsecureSsl: pulumi.Bool(false),
				Url:         pulumi.String("https://google.de/"),
			},
			Events: pulumi.StringArray{
				pulumi.String("issues"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Organization webhooks can be imported using the `id` of the webhook. The `id` of the webhook can be found in the URL of the webhook. For example, `"https://github.com/organizations/foo-org/settings/hooks/123456789"`.

```sh

$ pulumi import github:index/organizationWebhook:OrganizationWebhook terraform 123456789

```

If secret is populated in the webhook's configuration, the value will be imported as "********".

func GetOrganizationWebhook

func GetOrganizationWebhook(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *OrganizationWebhookState, opts ...pulumi.ResourceOption) (*OrganizationWebhook, error)

GetOrganizationWebhook gets an existing OrganizationWebhook 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 NewOrganizationWebhook

func NewOrganizationWebhook(ctx *pulumi.Context,
	name string, args *OrganizationWebhookArgs, opts ...pulumi.ResourceOption) (*OrganizationWebhook, error)

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

func (*OrganizationWebhook) ElementType

func (*OrganizationWebhook) ElementType() reflect.Type

func (*OrganizationWebhook) ToOrganizationWebhookOutput

func (i *OrganizationWebhook) ToOrganizationWebhookOutput() OrganizationWebhookOutput

func (*OrganizationWebhook) ToOrganizationWebhookOutputWithContext

func (i *OrganizationWebhook) ToOrganizationWebhookOutputWithContext(ctx context.Context) OrganizationWebhookOutput

type OrganizationWebhookArgs

type OrganizationWebhookArgs struct {
	// Indicate of the webhook should receive events. Defaults to `true`.
	Active pulumi.BoolPtrInput
	// key/value pair of configuration for this webhook. Available keys are `url`, `contentType`, `secret` and `insecureSsl`.
	Configuration OrganizationWebhookConfigurationPtrInput
	// A list of events which should trigger the webhook. See a list of [available events](https://developer.github.com/v3/activity/events/types/)
	Events pulumi.StringArrayInput
}

The set of arguments for constructing a OrganizationWebhook resource.

func (OrganizationWebhookArgs) ElementType

func (OrganizationWebhookArgs) ElementType() reflect.Type

type OrganizationWebhookArray

type OrganizationWebhookArray []OrganizationWebhookInput

func (OrganizationWebhookArray) ElementType

func (OrganizationWebhookArray) ElementType() reflect.Type

func (OrganizationWebhookArray) ToOrganizationWebhookArrayOutput

func (i OrganizationWebhookArray) ToOrganizationWebhookArrayOutput() OrganizationWebhookArrayOutput

func (OrganizationWebhookArray) ToOrganizationWebhookArrayOutputWithContext

func (i OrganizationWebhookArray) ToOrganizationWebhookArrayOutputWithContext(ctx context.Context) OrganizationWebhookArrayOutput

type OrganizationWebhookArrayInput

type OrganizationWebhookArrayInput interface {
	pulumi.Input

	ToOrganizationWebhookArrayOutput() OrganizationWebhookArrayOutput
	ToOrganizationWebhookArrayOutputWithContext(context.Context) OrganizationWebhookArrayOutput
}

OrganizationWebhookArrayInput is an input type that accepts OrganizationWebhookArray and OrganizationWebhookArrayOutput values. You can construct a concrete instance of `OrganizationWebhookArrayInput` via:

OrganizationWebhookArray{ OrganizationWebhookArgs{...} }

type OrganizationWebhookArrayOutput

type OrganizationWebhookArrayOutput struct{ *pulumi.OutputState }

func (OrganizationWebhookArrayOutput) ElementType

func (OrganizationWebhookArrayOutput) Index

func (OrganizationWebhookArrayOutput) ToOrganizationWebhookArrayOutput

func (o OrganizationWebhookArrayOutput) ToOrganizationWebhookArrayOutput() OrganizationWebhookArrayOutput

func (OrganizationWebhookArrayOutput) ToOrganizationWebhookArrayOutputWithContext

func (o OrganizationWebhookArrayOutput) ToOrganizationWebhookArrayOutputWithContext(ctx context.Context) OrganizationWebhookArrayOutput

type OrganizationWebhookConfiguration

type OrganizationWebhookConfiguration struct {
	ContentType *string `pulumi:"contentType"`
	InsecureSsl *bool   `pulumi:"insecureSsl"`
	Secret      *string `pulumi:"secret"`
	// URL of the webhook
	Url string `pulumi:"url"`
}

type OrganizationWebhookConfigurationArgs

type OrganizationWebhookConfigurationArgs struct {
	ContentType pulumi.StringPtrInput `pulumi:"contentType"`
	InsecureSsl pulumi.BoolPtrInput   `pulumi:"insecureSsl"`
	Secret      pulumi.StringPtrInput `pulumi:"secret"`
	// URL of the webhook
	Url pulumi.StringInput `pulumi:"url"`
}

func (OrganizationWebhookConfigurationArgs) ElementType

func (OrganizationWebhookConfigurationArgs) ToOrganizationWebhookConfigurationOutput

func (i OrganizationWebhookConfigurationArgs) ToOrganizationWebhookConfigurationOutput() OrganizationWebhookConfigurationOutput

func (OrganizationWebhookConfigurationArgs) ToOrganizationWebhookConfigurationOutputWithContext

func (i OrganizationWebhookConfigurationArgs) ToOrganizationWebhookConfigurationOutputWithContext(ctx context.Context) OrganizationWebhookConfigurationOutput

func (OrganizationWebhookConfigurationArgs) ToOrganizationWebhookConfigurationPtrOutput

func (i OrganizationWebhookConfigurationArgs) ToOrganizationWebhookConfigurationPtrOutput() OrganizationWebhookConfigurationPtrOutput

func (OrganizationWebhookConfigurationArgs) ToOrganizationWebhookConfigurationPtrOutputWithContext

func (i OrganizationWebhookConfigurationArgs) ToOrganizationWebhookConfigurationPtrOutputWithContext(ctx context.Context) OrganizationWebhookConfigurationPtrOutput

type OrganizationWebhookConfigurationInput

type OrganizationWebhookConfigurationInput interface {
	pulumi.Input

	ToOrganizationWebhookConfigurationOutput() OrganizationWebhookConfigurationOutput
	ToOrganizationWebhookConfigurationOutputWithContext(context.Context) OrganizationWebhookConfigurationOutput
}

OrganizationWebhookConfigurationInput is an input type that accepts OrganizationWebhookConfigurationArgs and OrganizationWebhookConfigurationOutput values. You can construct a concrete instance of `OrganizationWebhookConfigurationInput` via:

OrganizationWebhookConfigurationArgs{...}

type OrganizationWebhookConfigurationOutput

type OrganizationWebhookConfigurationOutput struct{ *pulumi.OutputState }

func (OrganizationWebhookConfigurationOutput) ContentType

func (OrganizationWebhookConfigurationOutput) ElementType

func (OrganizationWebhookConfigurationOutput) InsecureSsl

func (OrganizationWebhookConfigurationOutput) Secret

func (OrganizationWebhookConfigurationOutput) ToOrganizationWebhookConfigurationOutput

func (o OrganizationWebhookConfigurationOutput) ToOrganizationWebhookConfigurationOutput() OrganizationWebhookConfigurationOutput

func (OrganizationWebhookConfigurationOutput) ToOrganizationWebhookConfigurationOutputWithContext

func (o OrganizationWebhookConfigurationOutput) ToOrganizationWebhookConfigurationOutputWithContext(ctx context.Context) OrganizationWebhookConfigurationOutput

func (OrganizationWebhookConfigurationOutput) ToOrganizationWebhookConfigurationPtrOutput

func (o OrganizationWebhookConfigurationOutput) ToOrganizationWebhookConfigurationPtrOutput() OrganizationWebhookConfigurationPtrOutput

func (OrganizationWebhookConfigurationOutput) ToOrganizationWebhookConfigurationPtrOutputWithContext

func (o OrganizationWebhookConfigurationOutput) ToOrganizationWebhookConfigurationPtrOutputWithContext(ctx context.Context) OrganizationWebhookConfigurationPtrOutput

func (OrganizationWebhookConfigurationOutput) Url

URL of the webhook

type OrganizationWebhookConfigurationPtrInput

type OrganizationWebhookConfigurationPtrInput interface {
	pulumi.Input

	ToOrganizationWebhookConfigurationPtrOutput() OrganizationWebhookConfigurationPtrOutput
	ToOrganizationWebhookConfigurationPtrOutputWithContext(context.Context) OrganizationWebhookConfigurationPtrOutput
}

OrganizationWebhookConfigurationPtrInput is an input type that accepts OrganizationWebhookConfigurationArgs, OrganizationWebhookConfigurationPtr and OrganizationWebhookConfigurationPtrOutput values. You can construct a concrete instance of `OrganizationWebhookConfigurationPtrInput` via:

        OrganizationWebhookConfigurationArgs{...}

or:

        nil

type OrganizationWebhookConfigurationPtrOutput

type OrganizationWebhookConfigurationPtrOutput struct{ *pulumi.OutputState }

func (OrganizationWebhookConfigurationPtrOutput) ContentType

func (OrganizationWebhookConfigurationPtrOutput) Elem

func (OrganizationWebhookConfigurationPtrOutput) ElementType

func (OrganizationWebhookConfigurationPtrOutput) InsecureSsl

func (OrganizationWebhookConfigurationPtrOutput) Secret

func (OrganizationWebhookConfigurationPtrOutput) ToOrganizationWebhookConfigurationPtrOutput

func (o OrganizationWebhookConfigurationPtrOutput) ToOrganizationWebhookConfigurationPtrOutput() OrganizationWebhookConfigurationPtrOutput

func (OrganizationWebhookConfigurationPtrOutput) ToOrganizationWebhookConfigurationPtrOutputWithContext

func (o OrganizationWebhookConfigurationPtrOutput) ToOrganizationWebhookConfigurationPtrOutputWithContext(ctx context.Context) OrganizationWebhookConfigurationPtrOutput

func (OrganizationWebhookConfigurationPtrOutput) Url

URL of the webhook

type OrganizationWebhookInput

type OrganizationWebhookInput interface {
	pulumi.Input

	ToOrganizationWebhookOutput() OrganizationWebhookOutput
	ToOrganizationWebhookOutputWithContext(ctx context.Context) OrganizationWebhookOutput
}

type OrganizationWebhookMap

type OrganizationWebhookMap map[string]OrganizationWebhookInput

func (OrganizationWebhookMap) ElementType

func (OrganizationWebhookMap) ElementType() reflect.Type

func (OrganizationWebhookMap) ToOrganizationWebhookMapOutput

func (i OrganizationWebhookMap) ToOrganizationWebhookMapOutput() OrganizationWebhookMapOutput

func (OrganizationWebhookMap) ToOrganizationWebhookMapOutputWithContext

func (i OrganizationWebhookMap) ToOrganizationWebhookMapOutputWithContext(ctx context.Context) OrganizationWebhookMapOutput

type OrganizationWebhookMapInput

type OrganizationWebhookMapInput interface {
	pulumi.Input

	ToOrganizationWebhookMapOutput() OrganizationWebhookMapOutput
	ToOrganizationWebhookMapOutputWithContext(context.Context) OrganizationWebhookMapOutput
}

OrganizationWebhookMapInput is an input type that accepts OrganizationWebhookMap and OrganizationWebhookMapOutput values. You can construct a concrete instance of `OrganizationWebhookMapInput` via:

OrganizationWebhookMap{ "key": OrganizationWebhookArgs{...} }

type OrganizationWebhookMapOutput

type OrganizationWebhookMapOutput struct{ *pulumi.OutputState }

func (OrganizationWebhookMapOutput) ElementType

func (OrganizationWebhookMapOutput) MapIndex

func (OrganizationWebhookMapOutput) ToOrganizationWebhookMapOutput

func (o OrganizationWebhookMapOutput) ToOrganizationWebhookMapOutput() OrganizationWebhookMapOutput

func (OrganizationWebhookMapOutput) ToOrganizationWebhookMapOutputWithContext

func (o OrganizationWebhookMapOutput) ToOrganizationWebhookMapOutputWithContext(ctx context.Context) OrganizationWebhookMapOutput

type OrganizationWebhookOutput

type OrganizationWebhookOutput struct{ *pulumi.OutputState }

func (OrganizationWebhookOutput) Active added in v4.15.0

Indicate of the webhook should receive events. Defaults to `true`.

func (OrganizationWebhookOutput) Configuration added in v4.15.0

key/value pair of configuration for this webhook. Available keys are `url`, `contentType`, `secret` and `insecureSsl`.

func (OrganizationWebhookOutput) ElementType

func (OrganizationWebhookOutput) ElementType() reflect.Type

func (OrganizationWebhookOutput) Etag added in v4.15.0

func (OrganizationWebhookOutput) Events added in v4.15.0

A list of events which should trigger the webhook. See a list of [available events](https://developer.github.com/v3/activity/events/types/)

func (OrganizationWebhookOutput) ToOrganizationWebhookOutput

func (o OrganizationWebhookOutput) ToOrganizationWebhookOutput() OrganizationWebhookOutput

func (OrganizationWebhookOutput) ToOrganizationWebhookOutputWithContext

func (o OrganizationWebhookOutput) ToOrganizationWebhookOutputWithContext(ctx context.Context) OrganizationWebhookOutput

func (OrganizationWebhookOutput) Url added in v4.15.0

URL of the webhook

type OrganizationWebhookState

type OrganizationWebhookState struct {
	// Indicate of the webhook should receive events. Defaults to `true`.
	Active pulumi.BoolPtrInput
	// key/value pair of configuration for this webhook. Available keys are `url`, `contentType`, `secret` and `insecureSsl`.
	Configuration OrganizationWebhookConfigurationPtrInput
	Etag          pulumi.StringPtrInput
	// A list of events which should trigger the webhook. See a list of [available events](https://developer.github.com/v3/activity/events/types/)
	Events pulumi.StringArrayInput
	// URL of the webhook
	Url pulumi.StringPtrInput
}

func (OrganizationWebhookState) ElementType

func (OrganizationWebhookState) ElementType() reflect.Type

type ProjectCard

type ProjectCard struct {
	pulumi.CustomResourceState

	CardId pulumi.IntOutput `pulumi:"cardId"`
	// The ID of the card.
	ColumnId pulumi.StringOutput `pulumi:"columnId"`
	// `github_issue.issue_id`.
	ContentId pulumi.IntPtrOutput `pulumi:"contentId"`
	// Must be either `Issue` or `PullRequest`
	ContentType pulumi.StringPtrOutput `pulumi:"contentType"`
	Etag        pulumi.StringOutput    `pulumi:"etag"`
	// The note contents of the card. Markdown supported.
	Note pulumi.StringPtrOutput `pulumi:"note"`
}

This resource allows you to create and manage cards for GitHub projects.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		project, err := github.NewOrganizationProject(ctx, "project", &github.OrganizationProjectArgs{
			Body: pulumi.String("This is an organization project."),
		})
		if err != nil {
			return err
		}
		column, err := github.NewProjectColumn(ctx, "column", &github.ProjectColumnArgs{
			ProjectId: project.ID(),
		})
		if err != nil {
			return err
		}
		_, err = github.NewProjectCard(ctx, "card", &github.ProjectCardArgs{
			ColumnId: column.ColumnId,
			Note:     pulumi.String("## Unaccepted 👇"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Adding An Issue To A Project

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		testRepository, err := github.NewRepository(ctx, "testRepository", &github.RepositoryArgs{
			HasProjects: pulumi.Bool(true),
			HasIssues:   pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		testIssue, err := github.NewIssue(ctx, "testIssue", &github.IssueArgs{
			Repository: testRepository.ID(),
			Title:      pulumi.String("Test issue title"),
			Body:       pulumi.String("Test issue body"),
		})
		if err != nil {
			return err
		}
		testRepositoryProject, err := github.NewRepositoryProject(ctx, "testRepositoryProject", &github.RepositoryProjectArgs{
			Repository: testRepository.Name,
			Body:       pulumi.String("this is a test project"),
		})
		if err != nil {
			return err
		}
		testProjectColumn, err := github.NewProjectColumn(ctx, "testProjectColumn", &github.ProjectColumnArgs{
			ProjectId: testRepositoryProject.ID(),
		})
		if err != nil {
			return err
		}
		_, err = github.NewProjectCard(ctx, "testProjectCard", &github.ProjectCardArgs{
			ColumnId:    testProjectColumn.ColumnId,
			ContentId:   testIssue.IssueId,
			ContentType: pulumi.String("Issue"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

A GitHub Project Card can be imported using its [Card ID](https://developer.github.com/v3/projects/cards/#get-a-project-card)

```sh

$ pulumi import github:index/projectCard:ProjectCard card 01234567

```

func GetProjectCard

func GetProjectCard(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ProjectCardState, opts ...pulumi.ResourceOption) (*ProjectCard, error)

GetProjectCard gets an existing ProjectCard 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 NewProjectCard

func NewProjectCard(ctx *pulumi.Context,
	name string, args *ProjectCardArgs, opts ...pulumi.ResourceOption) (*ProjectCard, error)

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

func (*ProjectCard) ElementType

func (*ProjectCard) ElementType() reflect.Type

func (*ProjectCard) ToProjectCardOutput

func (i *ProjectCard) ToProjectCardOutput() ProjectCardOutput

func (*ProjectCard) ToProjectCardOutputWithContext

func (i *ProjectCard) ToProjectCardOutputWithContext(ctx context.Context) ProjectCardOutput

type ProjectCardArgs

type ProjectCardArgs struct {
	// The ID of the card.
	ColumnId pulumi.StringInput
	// `github_issue.issue_id`.
	ContentId pulumi.IntPtrInput
	// Must be either `Issue` or `PullRequest`
	ContentType pulumi.StringPtrInput
	// The note contents of the card. Markdown supported.
	Note pulumi.StringPtrInput
}

The set of arguments for constructing a ProjectCard resource.

func (ProjectCardArgs) ElementType

func (ProjectCardArgs) ElementType() reflect.Type

type ProjectCardArray

type ProjectCardArray []ProjectCardInput

func (ProjectCardArray) ElementType

func (ProjectCardArray) ElementType() reflect.Type

func (ProjectCardArray) ToProjectCardArrayOutput

func (i ProjectCardArray) ToProjectCardArrayOutput() ProjectCardArrayOutput

func (ProjectCardArray) ToProjectCardArrayOutputWithContext

func (i ProjectCardArray) ToProjectCardArrayOutputWithContext(ctx context.Context) ProjectCardArrayOutput

type ProjectCardArrayInput

type ProjectCardArrayInput interface {
	pulumi.Input

	ToProjectCardArrayOutput() ProjectCardArrayOutput
	ToProjectCardArrayOutputWithContext(context.Context) ProjectCardArrayOutput
}

ProjectCardArrayInput is an input type that accepts ProjectCardArray and ProjectCardArrayOutput values. You can construct a concrete instance of `ProjectCardArrayInput` via:

ProjectCardArray{ ProjectCardArgs{...} }

type ProjectCardArrayOutput

type ProjectCardArrayOutput struct{ *pulumi.OutputState }

func (ProjectCardArrayOutput) ElementType

func (ProjectCardArrayOutput) ElementType() reflect.Type

func (ProjectCardArrayOutput) Index

func (ProjectCardArrayOutput) ToProjectCardArrayOutput

func (o ProjectCardArrayOutput) ToProjectCardArrayOutput() ProjectCardArrayOutput

func (ProjectCardArrayOutput) ToProjectCardArrayOutputWithContext

func (o ProjectCardArrayOutput) ToProjectCardArrayOutputWithContext(ctx context.Context) ProjectCardArrayOutput

type ProjectCardInput

type ProjectCardInput interface {
	pulumi.Input

	ToProjectCardOutput() ProjectCardOutput
	ToProjectCardOutputWithContext(ctx context.Context) ProjectCardOutput
}

type ProjectCardMap

type ProjectCardMap map[string]ProjectCardInput

func (ProjectCardMap) ElementType

func (ProjectCardMap) ElementType() reflect.Type

func (ProjectCardMap) ToProjectCardMapOutput

func (i ProjectCardMap) ToProjectCardMapOutput() ProjectCardMapOutput

func (ProjectCardMap) ToProjectCardMapOutputWithContext

func (i ProjectCardMap) ToProjectCardMapOutputWithContext(ctx context.Context) ProjectCardMapOutput

type ProjectCardMapInput

type ProjectCardMapInput interface {
	pulumi.Input

	ToProjectCardMapOutput() ProjectCardMapOutput
	ToProjectCardMapOutputWithContext(context.Context) ProjectCardMapOutput
}

ProjectCardMapInput is an input type that accepts ProjectCardMap and ProjectCardMapOutput values. You can construct a concrete instance of `ProjectCardMapInput` via:

ProjectCardMap{ "key": ProjectCardArgs{...} }

type ProjectCardMapOutput

type ProjectCardMapOutput struct{ *pulumi.OutputState }

func (ProjectCardMapOutput) ElementType

func (ProjectCardMapOutput) ElementType() reflect.Type

func (ProjectCardMapOutput) MapIndex

func (ProjectCardMapOutput) ToProjectCardMapOutput

func (o ProjectCardMapOutput) ToProjectCardMapOutput() ProjectCardMapOutput

func (ProjectCardMapOutput) ToProjectCardMapOutputWithContext

func (o ProjectCardMapOutput) ToProjectCardMapOutputWithContext(ctx context.Context) ProjectCardMapOutput

type ProjectCardOutput

type ProjectCardOutput struct{ *pulumi.OutputState }

func (ProjectCardOutput) CardId added in v4.15.0

func (o ProjectCardOutput) CardId() pulumi.IntOutput

func (ProjectCardOutput) ColumnId added in v4.15.0

func (o ProjectCardOutput) ColumnId() pulumi.StringOutput

The ID of the card.

func (ProjectCardOutput) ContentId added in v4.15.0

func (o ProjectCardOutput) ContentId() pulumi.IntPtrOutput

`github_issue.issue_id`.

func (ProjectCardOutput) ContentType added in v4.15.0

func (o ProjectCardOutput) ContentType() pulumi.StringPtrOutput

Must be either `Issue` or `PullRequest`

func (ProjectCardOutput) ElementType

func (ProjectCardOutput) ElementType() reflect.Type

func (ProjectCardOutput) Etag added in v4.15.0

func (ProjectCardOutput) Note added in v4.15.0

The note contents of the card. Markdown supported.

func (ProjectCardOutput) ToProjectCardOutput

func (o ProjectCardOutput) ToProjectCardOutput() ProjectCardOutput

func (ProjectCardOutput) ToProjectCardOutputWithContext

func (o ProjectCardOutput) ToProjectCardOutputWithContext(ctx context.Context) ProjectCardOutput

type ProjectCardState

type ProjectCardState struct {
	CardId pulumi.IntPtrInput
	// The ID of the card.
	ColumnId pulumi.StringPtrInput
	// `github_issue.issue_id`.
	ContentId pulumi.IntPtrInput
	// Must be either `Issue` or `PullRequest`
	ContentType pulumi.StringPtrInput
	Etag        pulumi.StringPtrInput
	// The note contents of the card. Markdown supported.
	Note pulumi.StringPtrInput
}

func (ProjectCardState) ElementType

func (ProjectCardState) ElementType() reflect.Type

type ProjectColumn

type ProjectColumn struct {
	pulumi.CustomResourceState

	ColumnId pulumi.IntOutput    `pulumi:"columnId"`
	Etag     pulumi.StringOutput `pulumi:"etag"`
	// The name of the column.
	Name pulumi.StringOutput `pulumi:"name"`
	// The ID of an existing project that the column will be created in.
	ProjectId pulumi.StringOutput `pulumi:"projectId"`
}

This resource allows you to create and manage columns for GitHub projects.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		project, err := github.NewOrganizationProject(ctx, "project", &github.OrganizationProjectArgs{
			Body: pulumi.String("This is an organization project."),
		})
		if err != nil {
			return err
		}
		_, err = github.NewProjectColumn(ctx, "column", &github.ProjectColumnArgs{
			ProjectId: project.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetProjectColumn

func GetProjectColumn(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ProjectColumnState, opts ...pulumi.ResourceOption) (*ProjectColumn, error)

GetProjectColumn gets an existing ProjectColumn 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 NewProjectColumn

func NewProjectColumn(ctx *pulumi.Context,
	name string, args *ProjectColumnArgs, opts ...pulumi.ResourceOption) (*ProjectColumn, error)

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

func (*ProjectColumn) ElementType

func (*ProjectColumn) ElementType() reflect.Type

func (*ProjectColumn) ToProjectColumnOutput

func (i *ProjectColumn) ToProjectColumnOutput() ProjectColumnOutput

func (*ProjectColumn) ToProjectColumnOutputWithContext

func (i *ProjectColumn) ToProjectColumnOutputWithContext(ctx context.Context) ProjectColumnOutput

type ProjectColumnArgs

type ProjectColumnArgs struct {
	// The name of the column.
	Name pulumi.StringPtrInput
	// The ID of an existing project that the column will be created in.
	ProjectId pulumi.StringInput
}

The set of arguments for constructing a ProjectColumn resource.

func (ProjectColumnArgs) ElementType

func (ProjectColumnArgs) ElementType() reflect.Type

type ProjectColumnArray

type ProjectColumnArray []ProjectColumnInput

func (ProjectColumnArray) ElementType

func (ProjectColumnArray) ElementType() reflect.Type

func (ProjectColumnArray) ToProjectColumnArrayOutput

func (i ProjectColumnArray) ToProjectColumnArrayOutput() ProjectColumnArrayOutput

func (ProjectColumnArray) ToProjectColumnArrayOutputWithContext

func (i ProjectColumnArray) ToProjectColumnArrayOutputWithContext(ctx context.Context) ProjectColumnArrayOutput

type ProjectColumnArrayInput

type ProjectColumnArrayInput interface {
	pulumi.Input

	ToProjectColumnArrayOutput() ProjectColumnArrayOutput
	ToProjectColumnArrayOutputWithContext(context.Context) ProjectColumnArrayOutput
}

ProjectColumnArrayInput is an input type that accepts ProjectColumnArray and ProjectColumnArrayOutput values. You can construct a concrete instance of `ProjectColumnArrayInput` via:

ProjectColumnArray{ ProjectColumnArgs{...} }

type ProjectColumnArrayOutput

type ProjectColumnArrayOutput struct{ *pulumi.OutputState }

func (ProjectColumnArrayOutput) ElementType

func (ProjectColumnArrayOutput) ElementType() reflect.Type

func (ProjectColumnArrayOutput) Index

func (ProjectColumnArrayOutput) ToProjectColumnArrayOutput

func (o ProjectColumnArrayOutput) ToProjectColumnArrayOutput() ProjectColumnArrayOutput

func (ProjectColumnArrayOutput) ToProjectColumnArrayOutputWithContext

func (o ProjectColumnArrayOutput) ToProjectColumnArrayOutputWithContext(ctx context.Context) ProjectColumnArrayOutput

type ProjectColumnInput

type ProjectColumnInput interface {
	pulumi.Input

	ToProjectColumnOutput() ProjectColumnOutput
	ToProjectColumnOutputWithContext(ctx context.Context) ProjectColumnOutput
}

type ProjectColumnMap

type ProjectColumnMap map[string]ProjectColumnInput

func (ProjectColumnMap) ElementType

func (ProjectColumnMap) ElementType() reflect.Type

func (ProjectColumnMap) ToProjectColumnMapOutput

func (i ProjectColumnMap) ToProjectColumnMapOutput() ProjectColumnMapOutput

func (ProjectColumnMap) ToProjectColumnMapOutputWithContext

func (i ProjectColumnMap) ToProjectColumnMapOutputWithContext(ctx context.Context) ProjectColumnMapOutput

type ProjectColumnMapInput

type ProjectColumnMapInput interface {
	pulumi.Input

	ToProjectColumnMapOutput() ProjectColumnMapOutput
	ToProjectColumnMapOutputWithContext(context.Context) ProjectColumnMapOutput
}

ProjectColumnMapInput is an input type that accepts ProjectColumnMap and ProjectColumnMapOutput values. You can construct a concrete instance of `ProjectColumnMapInput` via:

ProjectColumnMap{ "key": ProjectColumnArgs{...} }

type ProjectColumnMapOutput

type ProjectColumnMapOutput struct{ *pulumi.OutputState }

func (ProjectColumnMapOutput) ElementType

func (ProjectColumnMapOutput) ElementType() reflect.Type

func (ProjectColumnMapOutput) MapIndex

func (ProjectColumnMapOutput) ToProjectColumnMapOutput

func (o ProjectColumnMapOutput) ToProjectColumnMapOutput() ProjectColumnMapOutput

func (ProjectColumnMapOutput) ToProjectColumnMapOutputWithContext

func (o ProjectColumnMapOutput) ToProjectColumnMapOutputWithContext(ctx context.Context) ProjectColumnMapOutput

type ProjectColumnOutput

type ProjectColumnOutput struct{ *pulumi.OutputState }

func (ProjectColumnOutput) ColumnId added in v4.15.0

func (o ProjectColumnOutput) ColumnId() pulumi.IntOutput

func (ProjectColumnOutput) ElementType

func (ProjectColumnOutput) ElementType() reflect.Type

func (ProjectColumnOutput) Etag added in v4.15.0

func (ProjectColumnOutput) Name added in v4.15.0

The name of the column.

func (ProjectColumnOutput) ProjectId added in v4.15.0

func (o ProjectColumnOutput) ProjectId() pulumi.StringOutput

The ID of an existing project that the column will be created in.

func (ProjectColumnOutput) ToProjectColumnOutput

func (o ProjectColumnOutput) ToProjectColumnOutput() ProjectColumnOutput

func (ProjectColumnOutput) ToProjectColumnOutputWithContext

func (o ProjectColumnOutput) ToProjectColumnOutputWithContext(ctx context.Context) ProjectColumnOutput

type ProjectColumnState

type ProjectColumnState struct {
	ColumnId pulumi.IntPtrInput
	Etag     pulumi.StringPtrInput
	// The name of the column.
	Name pulumi.StringPtrInput
	// The ID of an existing project that the column will be created in.
	ProjectId pulumi.StringPtrInput
}

func (ProjectColumnState) ElementType

func (ProjectColumnState) ElementType() reflect.Type

type Provider

type Provider struct {
	pulumi.ProviderResourceState

	// The GitHub Base API URL
	BaseUrl pulumi.StringPtrOutput `pulumi:"baseUrl"`
	// The GitHub organization name to manage. Use this field instead of `owner` when managing organization accounts.
	//
	// Deprecated: Use owner (or GITHUB_OWNER) instead of organization (or GITHUB_ORGANIZATION)
	Organization pulumi.StringPtrOutput `pulumi:"organization"`
	// The GitHub owner name to manage. Use this field instead of `organization` when managing individual accounts.
	Owner pulumi.StringPtrOutput `pulumi:"owner"`
	// The OAuth token used to connect to GitHub. Anonymous mode is enabled if both `token` and `app_auth` are not set.
	Token pulumi.StringPtrOutput `pulumi:"token"`
}

The provider type for the github package. By default, resources use package-wide configuration settings, however an explicit `Provider` instance may be created and passed during resource construction to achieve fine-grained programmatic control over provider settings. See the [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.

func NewProvider

func NewProvider(ctx *pulumi.Context,
	name string, args *ProviderArgs, opts ...pulumi.ResourceOption) (*Provider, error)

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

func (*Provider) ElementType

func (*Provider) ElementType() reflect.Type

func (*Provider) ToProviderOutput

func (i *Provider) ToProviderOutput() ProviderOutput

func (*Provider) ToProviderOutputWithContext

func (i *Provider) ToProviderOutputWithContext(ctx context.Context) ProviderOutput

type ProviderAppAuth added in v4.1.0

type ProviderAppAuth struct {
	Id             string `pulumi:"id"`
	InstallationId string `pulumi:"installationId"`
	PemFile        string `pulumi:"pemFile"`
}

type ProviderAppAuthArgs added in v4.1.0

type ProviderAppAuthArgs struct {
	Id             pulumi.StringInput `pulumi:"id"`
	InstallationId pulumi.StringInput `pulumi:"installationId"`
	PemFile        pulumi.StringInput `pulumi:"pemFile"`
}

func (ProviderAppAuthArgs) ElementType added in v4.1.0

func (ProviderAppAuthArgs) ElementType() reflect.Type

func (ProviderAppAuthArgs) ToProviderAppAuthOutput added in v4.1.0

func (i ProviderAppAuthArgs) ToProviderAppAuthOutput() ProviderAppAuthOutput

func (ProviderAppAuthArgs) ToProviderAppAuthOutputWithContext added in v4.1.0

func (i ProviderAppAuthArgs) ToProviderAppAuthOutputWithContext(ctx context.Context) ProviderAppAuthOutput

func (ProviderAppAuthArgs) ToProviderAppAuthPtrOutput added in v4.1.0

func (i ProviderAppAuthArgs) ToProviderAppAuthPtrOutput() ProviderAppAuthPtrOutput

func (ProviderAppAuthArgs) ToProviderAppAuthPtrOutputWithContext added in v4.1.0

func (i ProviderAppAuthArgs) ToProviderAppAuthPtrOutputWithContext(ctx context.Context) ProviderAppAuthPtrOutput

type ProviderAppAuthInput added in v4.1.0

type ProviderAppAuthInput interface {
	pulumi.Input

	ToProviderAppAuthOutput() ProviderAppAuthOutput
	ToProviderAppAuthOutputWithContext(context.Context) ProviderAppAuthOutput
}

ProviderAppAuthInput is an input type that accepts ProviderAppAuthArgs and ProviderAppAuthOutput values. You can construct a concrete instance of `ProviderAppAuthInput` via:

ProviderAppAuthArgs{...}

type ProviderAppAuthOutput added in v4.1.0

type ProviderAppAuthOutput struct{ *pulumi.OutputState }

func (ProviderAppAuthOutput) ElementType added in v4.1.0

func (ProviderAppAuthOutput) ElementType() reflect.Type

func (ProviderAppAuthOutput) Id added in v4.1.0

func (ProviderAppAuthOutput) InstallationId added in v4.1.0

func (o ProviderAppAuthOutput) InstallationId() pulumi.StringOutput

func (ProviderAppAuthOutput) PemFile added in v4.1.0

func (ProviderAppAuthOutput) ToProviderAppAuthOutput added in v4.1.0

func (o ProviderAppAuthOutput) ToProviderAppAuthOutput() ProviderAppAuthOutput

func (ProviderAppAuthOutput) ToProviderAppAuthOutputWithContext added in v4.1.0

func (o ProviderAppAuthOutput) ToProviderAppAuthOutputWithContext(ctx context.Context) ProviderAppAuthOutput

func (ProviderAppAuthOutput) ToProviderAppAuthPtrOutput added in v4.1.0

func (o ProviderAppAuthOutput) ToProviderAppAuthPtrOutput() ProviderAppAuthPtrOutput

func (ProviderAppAuthOutput) ToProviderAppAuthPtrOutputWithContext added in v4.1.0

func (o ProviderAppAuthOutput) ToProviderAppAuthPtrOutputWithContext(ctx context.Context) ProviderAppAuthPtrOutput

type ProviderAppAuthPtrInput added in v4.1.0

type ProviderAppAuthPtrInput interface {
	pulumi.Input

	ToProviderAppAuthPtrOutput() ProviderAppAuthPtrOutput
	ToProviderAppAuthPtrOutputWithContext(context.Context) ProviderAppAuthPtrOutput
}

ProviderAppAuthPtrInput is an input type that accepts ProviderAppAuthArgs, ProviderAppAuthPtr and ProviderAppAuthPtrOutput values. You can construct a concrete instance of `ProviderAppAuthPtrInput` via:

        ProviderAppAuthArgs{...}

or:

        nil

func ProviderAppAuthPtr added in v4.1.0

func ProviderAppAuthPtr(v *ProviderAppAuthArgs) ProviderAppAuthPtrInput

type ProviderAppAuthPtrOutput added in v4.1.0

type ProviderAppAuthPtrOutput struct{ *pulumi.OutputState }

func (ProviderAppAuthPtrOutput) Elem added in v4.1.0

func (ProviderAppAuthPtrOutput) ElementType added in v4.1.0

func (ProviderAppAuthPtrOutput) ElementType() reflect.Type

func (ProviderAppAuthPtrOutput) Id added in v4.1.0

func (ProviderAppAuthPtrOutput) InstallationId added in v4.1.0

func (o ProviderAppAuthPtrOutput) InstallationId() pulumi.StringPtrOutput

func (ProviderAppAuthPtrOutput) PemFile added in v4.1.0

func (ProviderAppAuthPtrOutput) ToProviderAppAuthPtrOutput added in v4.1.0

func (o ProviderAppAuthPtrOutput) ToProviderAppAuthPtrOutput() ProviderAppAuthPtrOutput

func (ProviderAppAuthPtrOutput) ToProviderAppAuthPtrOutputWithContext added in v4.1.0

func (o ProviderAppAuthPtrOutput) ToProviderAppAuthPtrOutputWithContext(ctx context.Context) ProviderAppAuthPtrOutput

type ProviderArgs

type ProviderArgs struct {
	// The GitHub App credentials used to connect to GitHub. Conflicts with `token`. Anonymous mode is enabled if both `token`
	// and `app_auth` are not set.
	AppAuth ProviderAppAuthPtrInput
	// The GitHub Base API URL
	BaseUrl pulumi.StringPtrInput
	// Enable `insecure` mode for testing purposes
	Insecure pulumi.BoolPtrInput
	// The GitHub organization name to manage. Use this field instead of `owner` when managing organization accounts.
	//
	// Deprecated: Use owner (or GITHUB_OWNER) instead of organization (or GITHUB_ORGANIZATION)
	Organization pulumi.StringPtrInput
	// The GitHub owner name to manage. Use this field instead of `organization` when managing individual accounts.
	Owner pulumi.StringPtrInput
	// Amount of time in milliseconds to sleep in between non-write requests to GitHub API. Defaults to 0ms if not set.
	ReadDelayMs pulumi.IntPtrInput
	// The OAuth token used to connect to GitHub. Anonymous mode is enabled if both `token` and `app_auth` are not set.
	Token pulumi.StringPtrInput
	// Amount of time in milliseconds to sleep in between writes to GitHub API. Defaults to 1000ms or 1s if not set.
	WriteDelayMs pulumi.IntPtrInput
}

The set of arguments for constructing a Provider resource.

func (ProviderArgs) ElementType

func (ProviderArgs) ElementType() reflect.Type

type ProviderInput

type ProviderInput interface {
	pulumi.Input

	ToProviderOutput() ProviderOutput
	ToProviderOutputWithContext(ctx context.Context) ProviderOutput
}

type ProviderOutput

type ProviderOutput struct{ *pulumi.OutputState }

func (ProviderOutput) BaseUrl added in v4.15.0

The GitHub Base API URL

func (ProviderOutput) ElementType

func (ProviderOutput) ElementType() reflect.Type

func (ProviderOutput) Organization deprecated added in v4.15.0

func (o ProviderOutput) Organization() pulumi.StringPtrOutput

The GitHub organization name to manage. Use this field instead of `owner` when managing organization accounts.

Deprecated: Use owner (or GITHUB_OWNER) instead of organization (or GITHUB_ORGANIZATION)

func (ProviderOutput) Owner added in v4.15.0

The GitHub owner name to manage. Use this field instead of `organization` when managing individual accounts.

func (ProviderOutput) ToProviderOutput

func (o ProviderOutput) ToProviderOutput() ProviderOutput

func (ProviderOutput) ToProviderOutputWithContext

func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) ProviderOutput

func (ProviderOutput) Token added in v4.15.0

The OAuth token used to connect to GitHub. Anonymous mode is enabled if both `token` and `app_auth` are not set.

type Repository

type Repository struct {
	pulumi.CustomResourceState

	// Set to `true` to allow auto-merging pull requests on the repository.
	AllowAutoMerge pulumi.BoolPtrOutput `pulumi:"allowAutoMerge"`
	// Set to `false` to disable merge commits on the repository.
	AllowMergeCommit pulumi.BoolPtrOutput `pulumi:"allowMergeCommit"`
	// Set to `false` to disable rebase merges on the repository.
	AllowRebaseMerge pulumi.BoolPtrOutput `pulumi:"allowRebaseMerge"`
	// Set to `false` to disable squash merges on the repository.
	AllowSquashMerge pulumi.BoolPtrOutput `pulumi:"allowSquashMerge"`
	// Set to `true` to archive the repository instead of deleting on destroy.
	ArchiveOnDestroy pulumi.BoolPtrOutput `pulumi:"archiveOnDestroy"`
	// Specifies if the repository should be archived. Defaults to `false`. **NOTE** Currently, the API does not support unarchiving.
	Archived pulumi.BoolPtrOutput `pulumi:"archived"`
	// Set to `true` to produce an initial commit in the repository.
	AutoInit pulumi.BoolPtrOutput `pulumi:"autoInit"`
	// The list of this repository's branches. Each element of `branches` has the following attributes:
	Branches RepositoryBranchArrayOutput `pulumi:"branches"`
	// (Deprecated: Use `BranchDefault` resource instead) The name of the default branch of the repository. **NOTE:** This can only be set after a repository has already been created,
	// and after a correct reference has been created for the target branch inside the repository. This means a user will have to omit this parameter from the
	// initial repository creation and create the target branch inside of the repository prior to setting this attribute.
	//
	// Deprecated: Use the github_branch_default resource instead
	DefaultBranch pulumi.StringOutput `pulumi:"defaultBranch"`
	// Automatically delete head branch after a pull request is merged. Defaults to `false`.
	DeleteBranchOnMerge pulumi.BoolPtrOutput `pulumi:"deleteBranchOnMerge"`
	// A description of the repository.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	Etag        pulumi.StringOutput    `pulumi:"etag"`
	// A string of the form "orgname/reponame".
	FullName pulumi.StringOutput `pulumi:"fullName"`
	// URL that can be provided to `git clone` to clone the repository anonymously via the git protocol.
	GitCloneUrl pulumi.StringOutput `pulumi:"gitCloneUrl"`
	// Use the [name of the template](https://github.com/github/gitignore) without the extension. For example, "Haskell".
	GitignoreTemplate pulumi.StringPtrOutput `pulumi:"gitignoreTemplate"`
	// Set to `true` to enable the (deprecated) downloads features on the repository.
	HasDownloads pulumi.BoolPtrOutput `pulumi:"hasDownloads"`
	// Set to `true` to enable the GitHub Issues features
	// on the repository.
	HasIssues pulumi.BoolPtrOutput `pulumi:"hasIssues"`
	// Set to `true` to enable the GitHub Projects features on the repository. Per the GitHub [documentation](https://developer.github.com/v3/repos/#create) when in an organization that has disabled repository projects it will default to `false` and will otherwise default to `true`. If you specify `true` when it has been disabled it will return an error.
	HasProjects pulumi.BoolPtrOutput `pulumi:"hasProjects"`
	// Set to `true` to enable the GitHub Wiki features on
	// the repository.
	HasWiki pulumi.BoolPtrOutput `pulumi:"hasWiki"`
	// URL of a page describing the project.
	HomepageUrl pulumi.StringPtrOutput `pulumi:"homepageUrl"`
	// The absolute URL (including scheme) of the rendered GitHub Pages site e.g. `https://username.github.io`.
	HtmlUrl pulumi.StringOutput `pulumi:"htmlUrl"`
	// URL that can be provided to `git clone` to clone the repository via HTTPS.
	HttpCloneUrl pulumi.StringOutput `pulumi:"httpCloneUrl"`
	// Set to `true` to not call the vulnerability alerts endpoint so the resource can also be used without admin permissions during read.
	IgnoreVulnerabilityAlertsDuringRead pulumi.BoolPtrOutput `pulumi:"ignoreVulnerabilityAlertsDuringRead"`
	// Set to `true` to tell GitHub that this is a template repository.
	IsTemplate pulumi.BoolPtrOutput `pulumi:"isTemplate"`
	// Use the [name of the template](https://github.com/github/choosealicense.com/tree/gh-pages/_licenses) without the extension. For example, "mit" or "mpl-2.0".
	LicenseTemplate pulumi.StringPtrOutput `pulumi:"licenseTemplate"`
	// Can be `PR_BODY`, `PR_TITLE`, or `BLANK` for a default merge commit message.
	MergeCommitMessage pulumi.StringPtrOutput `pulumi:"mergeCommitMessage"`
	// Can be `PR_TITLE` or `MERGE_MESSAGE` for a default merge commit title.
	MergeCommitTitle pulumi.StringPtrOutput `pulumi:"mergeCommitTitle"`
	// The name of the repository.
	Name pulumi.StringOutput `pulumi:"name"`
	// GraphQL global node id for use with v4 API
	NodeId pulumi.StringOutput `pulumi:"nodeId"`
	// The repository's GitHub Pages configuration. See GitHub Pages Configuration below for details.
	Pages RepositoryPagesPtrOutput `pulumi:"pages"`
	// Set to `true` to create a private repository.
	// Repositories are created as public (e.g. open source) by default.
	//
	// Deprecated: use visibility instead
	Private pulumi.BoolOutput `pulumi:"private"`
	// GitHub ID for the repository
	RepoId pulumi.IntOutput `pulumi:"repoId"`
	// Can be `PR_BODY`, `COMMIT_MESSAGES`, or `BLANK` for a default squash merge commit message.
	SquashMergeCommitMessage pulumi.StringPtrOutput `pulumi:"squashMergeCommitMessage"`
	// Can be `PR_TITLE` or `COMMIT_OR_PR_TITLE` for a default squash merge commit title.
	SquashMergeCommitTitle pulumi.StringPtrOutput `pulumi:"squashMergeCommitTitle"`
	// URL that can be provided to `git clone` to clone the repository via SSH.
	SshCloneUrl pulumi.StringOutput `pulumi:"sshCloneUrl"`
	// URL that can be provided to `svn checkout` to check out the repository via GitHub's Subversion protocol emulation.
	SvnUrl pulumi.StringOutput `pulumi:"svnUrl"`
	// Use a template repository to create this resource. See Template Repositories below for details.
	Template RepositoryTemplatePtrOutput `pulumi:"template"`
	// The list of topics of the repository.
	Topics pulumi.StringArrayOutput `pulumi:"topics"`
	// Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, visibility can also be `internal`. The `visibility` parameter overrides the `private` parameter.
	Visibility pulumi.StringOutput `pulumi:"visibility"`
	// Set to `true` to enable security alerts for vulnerable dependencies. Enabling requires alerts to be enabled on the owner level. (Note for importing: GitHub enables the alerts on public repos but disables them on private repos by default.) See [GitHub Documentation](https://help.github.com/en/github/managing-security-vulnerabilities/about-security-alerts-for-vulnerable-dependencies) for details. Note that vulnerability alerts have not been successfully tested on any GitHub Enterprise instance and may be unavailable in those settings.
	VulnerabilityAlerts pulumi.BoolPtrOutput `pulumi:"vulnerabilityAlerts"`
}

This resource allows you to create and manage repositories within your GitHub organization or personal account.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.NewRepository(ctx, "example", &github.RepositoryArgs{
			Description: pulumi.String("My awesome codebase"),
			Template: &RepositoryTemplateArgs{
				Owner:      pulumi.String("github"),
				Repository: pulumi.String("terraform-module-template"),
			},
			Visibility: pulumi.String("public"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### With GitHub Pages Enabled

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.NewRepository(ctx, "example", &github.RepositoryArgs{
			Description: pulumi.String("My awesome web page"),
			Pages: &RepositoryPagesArgs{
				Source: &RepositoryPagesSourceArgs{
					Branch: pulumi.String("master"),
					Path:   pulumi.String("/docs"),
				},
			},
			Private: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Repositories can be imported using the `name`, e.g.

```sh

$ pulumi import github:index/repository:Repository terraform terraform

```

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 {
	// Set to `true` to allow auto-merging pull requests on the repository.
	AllowAutoMerge pulumi.BoolPtrInput
	// Set to `false` to disable merge commits on the repository.
	AllowMergeCommit pulumi.BoolPtrInput
	// Set to `false` to disable rebase merges on the repository.
	AllowRebaseMerge pulumi.BoolPtrInput
	// Set to `false` to disable squash merges on the repository.
	AllowSquashMerge pulumi.BoolPtrInput
	// Set to `true` to archive the repository instead of deleting on destroy.
	ArchiveOnDestroy pulumi.BoolPtrInput
	// Specifies if the repository should be archived. Defaults to `false`. **NOTE** Currently, the API does not support unarchiving.
	Archived pulumi.BoolPtrInput
	// Set to `true` to produce an initial commit in the repository.
	AutoInit pulumi.BoolPtrInput
	// (Deprecated: Use `BranchDefault` resource instead) The name of the default branch of the repository. **NOTE:** This can only be set after a repository has already been created,
	// and after a correct reference has been created for the target branch inside the repository. This means a user will have to omit this parameter from the
	// initial repository creation and create the target branch inside of the repository prior to setting this attribute.
	//
	// Deprecated: Use the github_branch_default resource instead
	DefaultBranch pulumi.StringPtrInput
	// Automatically delete head branch after a pull request is merged. Defaults to `false`.
	DeleteBranchOnMerge pulumi.BoolPtrInput
	// A description of the repository.
	Description pulumi.StringPtrInput
	// Use the [name of the template](https://github.com/github/gitignore) without the extension. For example, "Haskell".
	GitignoreTemplate pulumi.StringPtrInput
	// Set to `true` to enable the (deprecated) downloads features on the repository.
	HasDownloads pulumi.BoolPtrInput
	// Set to `true` to enable the GitHub Issues features
	// on the repository.
	HasIssues pulumi.BoolPtrInput
	// Set to `true` to enable the GitHub Projects features on the repository. Per the GitHub [documentation](https://developer.github.com/v3/repos/#create) when in an organization that has disabled repository projects it will default to `false` and will otherwise default to `true`. If you specify `true` when it has been disabled it will return an error.
	HasProjects pulumi.BoolPtrInput
	// Set to `true` to enable the GitHub Wiki features on
	// the repository.
	HasWiki pulumi.BoolPtrInput
	// URL of a page describing the project.
	HomepageUrl pulumi.StringPtrInput
	// Set to `true` to not call the vulnerability alerts endpoint so the resource can also be used without admin permissions during read.
	IgnoreVulnerabilityAlertsDuringRead pulumi.BoolPtrInput
	// Set to `true` to tell GitHub that this is a template repository.
	IsTemplate pulumi.BoolPtrInput
	// Use the [name of the template](https://github.com/github/choosealicense.com/tree/gh-pages/_licenses) without the extension. For example, "mit" or "mpl-2.0".
	LicenseTemplate pulumi.StringPtrInput
	// Can be `PR_BODY`, `PR_TITLE`, or `BLANK` for a default merge commit message.
	MergeCommitMessage pulumi.StringPtrInput
	// Can be `PR_TITLE` or `MERGE_MESSAGE` for a default merge commit title.
	MergeCommitTitle pulumi.StringPtrInput
	// The name of the repository.
	Name pulumi.StringPtrInput
	// The repository's GitHub Pages configuration. See GitHub Pages Configuration below for details.
	Pages RepositoryPagesPtrInput
	// Set to `true` to create a private repository.
	// Repositories are created as public (e.g. open source) by default.
	//
	// Deprecated: use visibility instead
	Private pulumi.BoolPtrInput
	// Can be `PR_BODY`, `COMMIT_MESSAGES`, or `BLANK` for a default squash merge commit message.
	SquashMergeCommitMessage pulumi.StringPtrInput
	// Can be `PR_TITLE` or `COMMIT_OR_PR_TITLE` for a default squash merge commit title.
	SquashMergeCommitTitle pulumi.StringPtrInput
	// Use a template repository to create this resource. See Template Repositories below for details.
	Template RepositoryTemplatePtrInput
	// The list of topics of the repository.
	Topics pulumi.StringArrayInput
	// Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, visibility can also be `internal`. The `visibility` parameter overrides the `private` parameter.
	Visibility pulumi.StringPtrInput
	// Set to `true` to enable security alerts for vulnerable dependencies. Enabling requires alerts to be enabled on the owner level. (Note for importing: GitHub enables the alerts on public repos but disables them on private repos by default.) See [GitHub Documentation](https://help.github.com/en/github/managing-security-vulnerabilities/about-security-alerts-for-vulnerable-dependencies) for details. Note that vulnerability alerts have not been successfully tested on any GitHub Enterprise instance and may be unavailable in those settings.
	VulnerabilityAlerts pulumi.BoolPtrInput
}

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 RepositoryAutolinkReference added in v4.7.0

type RepositoryAutolinkReference struct {
	pulumi.CustomResourceState

	// An etag representing the autolink reference object.
	Etag pulumi.StringOutput `pulumi:"etag"`
	// This prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit.
	KeyPrefix pulumi.StringOutput `pulumi:"keyPrefix"`
	// The repository of the autolink reference.
	Repository pulumi.StringOutput `pulumi:"repository"`
	// The template of the target URL used for the links; must be a valid URL and contain `<num>` for the reference number
	TargetUrlTemplate pulumi.StringOutput `pulumi:"targetUrlTemplate"`
}

This resource allows you to create and manage an autolink reference for a single repository.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		repo, err := github.NewRepository(ctx, "repo", &github.RepositoryArgs{
			Description: pulumi.String("GitHub repo managed by Terraform"),
			Private:     pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		_, err = github.NewRepositoryAutolinkReference(ctx, "auto", &github.RepositoryAutolinkReferenceArgs{
			Repository:        repo.Name,
			KeyPrefix:         pulumi.String("TICKET-"),
			TargetUrlTemplate: pulumi.String("https://hello.there/TICKET?query=<num>"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Autolink references can be imported using the `name` of the repository, combined with the `id` of the autolink reference and a `/` character for separating components, e.g.

```sh

$ pulumi import github:index/repositoryAutolinkReference:RepositoryAutolinkReference auto oof/123

```

func GetRepositoryAutolinkReference added in v4.7.0

func GetRepositoryAutolinkReference(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RepositoryAutolinkReferenceState, opts ...pulumi.ResourceOption) (*RepositoryAutolinkReference, error)

GetRepositoryAutolinkReference gets an existing RepositoryAutolinkReference 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 NewRepositoryAutolinkReference added in v4.7.0

func NewRepositoryAutolinkReference(ctx *pulumi.Context,
	name string, args *RepositoryAutolinkReferenceArgs, opts ...pulumi.ResourceOption) (*RepositoryAutolinkReference, error)

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

func (*RepositoryAutolinkReference) ElementType added in v4.7.0

func (*RepositoryAutolinkReference) ElementType() reflect.Type

func (*RepositoryAutolinkReference) ToRepositoryAutolinkReferenceOutput added in v4.7.0

func (i *RepositoryAutolinkReference) ToRepositoryAutolinkReferenceOutput() RepositoryAutolinkReferenceOutput

func (*RepositoryAutolinkReference) ToRepositoryAutolinkReferenceOutputWithContext added in v4.7.0

func (i *RepositoryAutolinkReference) ToRepositoryAutolinkReferenceOutputWithContext(ctx context.Context) RepositoryAutolinkReferenceOutput

type RepositoryAutolinkReferenceArgs added in v4.7.0

type RepositoryAutolinkReferenceArgs struct {
	// This prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit.
	KeyPrefix pulumi.StringInput
	// The repository of the autolink reference.
	Repository pulumi.StringInput
	// The template of the target URL used for the links; must be a valid URL and contain `<num>` for the reference number
	TargetUrlTemplate pulumi.StringInput
}

The set of arguments for constructing a RepositoryAutolinkReference resource.

func (RepositoryAutolinkReferenceArgs) ElementType added in v4.7.0

type RepositoryAutolinkReferenceArray added in v4.7.0

type RepositoryAutolinkReferenceArray []RepositoryAutolinkReferenceInput

func (RepositoryAutolinkReferenceArray) ElementType added in v4.7.0

func (RepositoryAutolinkReferenceArray) ToRepositoryAutolinkReferenceArrayOutput added in v4.7.0

func (i RepositoryAutolinkReferenceArray) ToRepositoryAutolinkReferenceArrayOutput() RepositoryAutolinkReferenceArrayOutput

func (RepositoryAutolinkReferenceArray) ToRepositoryAutolinkReferenceArrayOutputWithContext added in v4.7.0

func (i RepositoryAutolinkReferenceArray) ToRepositoryAutolinkReferenceArrayOutputWithContext(ctx context.Context) RepositoryAutolinkReferenceArrayOutput

type RepositoryAutolinkReferenceArrayInput added in v4.7.0

type RepositoryAutolinkReferenceArrayInput interface {
	pulumi.Input

	ToRepositoryAutolinkReferenceArrayOutput() RepositoryAutolinkReferenceArrayOutput
	ToRepositoryAutolinkReferenceArrayOutputWithContext(context.Context) RepositoryAutolinkReferenceArrayOutput
}

RepositoryAutolinkReferenceArrayInput is an input type that accepts RepositoryAutolinkReferenceArray and RepositoryAutolinkReferenceArrayOutput values. You can construct a concrete instance of `RepositoryAutolinkReferenceArrayInput` via:

RepositoryAutolinkReferenceArray{ RepositoryAutolinkReferenceArgs{...} }

type RepositoryAutolinkReferenceArrayOutput added in v4.7.0

type RepositoryAutolinkReferenceArrayOutput struct{ *pulumi.OutputState }

func (RepositoryAutolinkReferenceArrayOutput) ElementType added in v4.7.0

func (RepositoryAutolinkReferenceArrayOutput) Index added in v4.7.0

func (RepositoryAutolinkReferenceArrayOutput) ToRepositoryAutolinkReferenceArrayOutput added in v4.7.0

func (o RepositoryAutolinkReferenceArrayOutput) ToRepositoryAutolinkReferenceArrayOutput() RepositoryAutolinkReferenceArrayOutput

func (RepositoryAutolinkReferenceArrayOutput) ToRepositoryAutolinkReferenceArrayOutputWithContext added in v4.7.0

func (o RepositoryAutolinkReferenceArrayOutput) ToRepositoryAutolinkReferenceArrayOutputWithContext(ctx context.Context) RepositoryAutolinkReferenceArrayOutput

type RepositoryAutolinkReferenceInput added in v4.7.0

type RepositoryAutolinkReferenceInput interface {
	pulumi.Input

	ToRepositoryAutolinkReferenceOutput() RepositoryAutolinkReferenceOutput
	ToRepositoryAutolinkReferenceOutputWithContext(ctx context.Context) RepositoryAutolinkReferenceOutput
}

type RepositoryAutolinkReferenceMap added in v4.7.0

type RepositoryAutolinkReferenceMap map[string]RepositoryAutolinkReferenceInput

func (RepositoryAutolinkReferenceMap) ElementType added in v4.7.0

func (RepositoryAutolinkReferenceMap) ToRepositoryAutolinkReferenceMapOutput added in v4.7.0

func (i RepositoryAutolinkReferenceMap) ToRepositoryAutolinkReferenceMapOutput() RepositoryAutolinkReferenceMapOutput

func (RepositoryAutolinkReferenceMap) ToRepositoryAutolinkReferenceMapOutputWithContext added in v4.7.0

func (i RepositoryAutolinkReferenceMap) ToRepositoryAutolinkReferenceMapOutputWithContext(ctx context.Context) RepositoryAutolinkReferenceMapOutput

type RepositoryAutolinkReferenceMapInput added in v4.7.0

type RepositoryAutolinkReferenceMapInput interface {
	pulumi.Input

	ToRepositoryAutolinkReferenceMapOutput() RepositoryAutolinkReferenceMapOutput
	ToRepositoryAutolinkReferenceMapOutputWithContext(context.Context) RepositoryAutolinkReferenceMapOutput
}

RepositoryAutolinkReferenceMapInput is an input type that accepts RepositoryAutolinkReferenceMap and RepositoryAutolinkReferenceMapOutput values. You can construct a concrete instance of `RepositoryAutolinkReferenceMapInput` via:

RepositoryAutolinkReferenceMap{ "key": RepositoryAutolinkReferenceArgs{...} }

type RepositoryAutolinkReferenceMapOutput added in v4.7.0

type RepositoryAutolinkReferenceMapOutput struct{ *pulumi.OutputState }

func (RepositoryAutolinkReferenceMapOutput) ElementType added in v4.7.0

func (RepositoryAutolinkReferenceMapOutput) MapIndex added in v4.7.0

func (RepositoryAutolinkReferenceMapOutput) ToRepositoryAutolinkReferenceMapOutput added in v4.7.0

func (o RepositoryAutolinkReferenceMapOutput) ToRepositoryAutolinkReferenceMapOutput() RepositoryAutolinkReferenceMapOutput

func (RepositoryAutolinkReferenceMapOutput) ToRepositoryAutolinkReferenceMapOutputWithContext added in v4.7.0

func (o RepositoryAutolinkReferenceMapOutput) ToRepositoryAutolinkReferenceMapOutputWithContext(ctx context.Context) RepositoryAutolinkReferenceMapOutput

type RepositoryAutolinkReferenceOutput added in v4.7.0

type RepositoryAutolinkReferenceOutput struct{ *pulumi.OutputState }

func (RepositoryAutolinkReferenceOutput) ElementType added in v4.7.0

func (RepositoryAutolinkReferenceOutput) Etag added in v4.15.0

An etag representing the autolink reference object.

func (RepositoryAutolinkReferenceOutput) KeyPrefix added in v4.15.0

This prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit.

func (RepositoryAutolinkReferenceOutput) Repository added in v4.15.0

The repository of the autolink reference.

func (RepositoryAutolinkReferenceOutput) TargetUrlTemplate added in v4.15.0

The template of the target URL used for the links; must be a valid URL and contain `<num>` for the reference number

func (RepositoryAutolinkReferenceOutput) ToRepositoryAutolinkReferenceOutput added in v4.7.0

func (o RepositoryAutolinkReferenceOutput) ToRepositoryAutolinkReferenceOutput() RepositoryAutolinkReferenceOutput

func (RepositoryAutolinkReferenceOutput) ToRepositoryAutolinkReferenceOutputWithContext added in v4.7.0

func (o RepositoryAutolinkReferenceOutput) ToRepositoryAutolinkReferenceOutputWithContext(ctx context.Context) RepositoryAutolinkReferenceOutput

type RepositoryAutolinkReferenceState added in v4.7.0

type RepositoryAutolinkReferenceState struct {
	// An etag representing the autolink reference object.
	Etag pulumi.StringPtrInput
	// This prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit.
	KeyPrefix pulumi.StringPtrInput
	// The repository of the autolink reference.
	Repository pulumi.StringPtrInput
	// The template of the target URL used for the links; must be a valid URL and contain `<num>` for the reference number
	TargetUrlTemplate pulumi.StringPtrInput
}

func (RepositoryAutolinkReferenceState) ElementType added in v4.7.0

type RepositoryBranch added in v4.9.0

type RepositoryBranch struct {
	// The name of the repository.
	Name *string `pulumi:"name"`
	// Whether the branch is protected.
	Protected *bool `pulumi:"protected"`
}

type RepositoryBranchArgs added in v4.9.0

type RepositoryBranchArgs struct {
	// The name of the repository.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// Whether the branch is protected.
	Protected pulumi.BoolPtrInput `pulumi:"protected"`
}

func (RepositoryBranchArgs) ElementType added in v4.9.0

func (RepositoryBranchArgs) ElementType() reflect.Type

func (RepositoryBranchArgs) ToRepositoryBranchOutput added in v4.9.0

func (i RepositoryBranchArgs) ToRepositoryBranchOutput() RepositoryBranchOutput

func (RepositoryBranchArgs) ToRepositoryBranchOutputWithContext added in v4.9.0

func (i RepositoryBranchArgs) ToRepositoryBranchOutputWithContext(ctx context.Context) RepositoryBranchOutput

type RepositoryBranchArray added in v4.9.0

type RepositoryBranchArray []RepositoryBranchInput

func (RepositoryBranchArray) ElementType added in v4.9.0

func (RepositoryBranchArray) ElementType() reflect.Type

func (RepositoryBranchArray) ToRepositoryBranchArrayOutput added in v4.9.0

func (i RepositoryBranchArray) ToRepositoryBranchArrayOutput() RepositoryBranchArrayOutput

func (RepositoryBranchArray) ToRepositoryBranchArrayOutputWithContext added in v4.9.0

func (i RepositoryBranchArray) ToRepositoryBranchArrayOutputWithContext(ctx context.Context) RepositoryBranchArrayOutput

type RepositoryBranchArrayInput added in v4.9.0

type RepositoryBranchArrayInput interface {
	pulumi.Input

	ToRepositoryBranchArrayOutput() RepositoryBranchArrayOutput
	ToRepositoryBranchArrayOutputWithContext(context.Context) RepositoryBranchArrayOutput
}

RepositoryBranchArrayInput is an input type that accepts RepositoryBranchArray and RepositoryBranchArrayOutput values. You can construct a concrete instance of `RepositoryBranchArrayInput` via:

RepositoryBranchArray{ RepositoryBranchArgs{...} }

type RepositoryBranchArrayOutput added in v4.9.0

type RepositoryBranchArrayOutput struct{ *pulumi.OutputState }

func (RepositoryBranchArrayOutput) ElementType added in v4.9.0

func (RepositoryBranchArrayOutput) Index added in v4.9.0

func (RepositoryBranchArrayOutput) ToRepositoryBranchArrayOutput added in v4.9.0

func (o RepositoryBranchArrayOutput) ToRepositoryBranchArrayOutput() RepositoryBranchArrayOutput

func (RepositoryBranchArrayOutput) ToRepositoryBranchArrayOutputWithContext added in v4.9.0

func (o RepositoryBranchArrayOutput) ToRepositoryBranchArrayOutputWithContext(ctx context.Context) RepositoryBranchArrayOutput

type RepositoryBranchInput added in v4.9.0

type RepositoryBranchInput interface {
	pulumi.Input

	ToRepositoryBranchOutput() RepositoryBranchOutput
	ToRepositoryBranchOutputWithContext(context.Context) RepositoryBranchOutput
}

RepositoryBranchInput is an input type that accepts RepositoryBranchArgs and RepositoryBranchOutput values. You can construct a concrete instance of `RepositoryBranchInput` via:

RepositoryBranchArgs{...}

type RepositoryBranchOutput added in v4.9.0

type RepositoryBranchOutput struct{ *pulumi.OutputState }

func (RepositoryBranchOutput) ElementType added in v4.9.0

func (RepositoryBranchOutput) ElementType() reflect.Type

func (RepositoryBranchOutput) Name added in v4.9.0

The name of the repository.

func (RepositoryBranchOutput) Protected added in v4.9.0

Whether the branch is protected.

func (RepositoryBranchOutput) ToRepositoryBranchOutput added in v4.9.0

func (o RepositoryBranchOutput) ToRepositoryBranchOutput() RepositoryBranchOutput

func (RepositoryBranchOutput) ToRepositoryBranchOutputWithContext added in v4.9.0

func (o RepositoryBranchOutput) ToRepositoryBranchOutputWithContext(ctx context.Context) RepositoryBranchOutput

type RepositoryCollaborator

type RepositoryCollaborator struct {
	pulumi.CustomResourceState

	// ID of the invitation to be used in `UserInvitationAccepter`
	InvitationId pulumi.StringOutput `pulumi:"invitationId"`
	// The permission of the outside collaborator for the repository.
	// Must be one of `pull`, `push`, `maintain`, `triage` or `admin` for organization-owned repositories.
	// Must be `push` for personal repositories. Defaults to `push`.
	Permission pulumi.StringPtrOutput `pulumi:"permission"`
	// Suppress plan diffs for `triage` and `maintain`.  Defaults to `false`.
	PermissionDiffSuppression pulumi.BoolPtrOutput `pulumi:"permissionDiffSuppression"`
	// The GitHub repository
	Repository pulumi.StringOutput `pulumi:"repository"`
	// The user to add to the repository as a collaborator.
	Username pulumi.StringOutput `pulumi:"username"`
}

Provides a GitHub repository collaborator resource.

This resource allows you to add/remove collaborators from repositories in your organization or personal account. For organization repositories, collaborators can have explicit (and differing levels of) read, write, or administrator access to specific repositories, without giving the user full organization membership. For personal repositories, collaborators can only be granted write (implictly includes read) permission.

When applied, an invitation will be sent to the user to become a collaborator on a repository. When destroyed, either the invitation will be cancelled or the collaborator will be removed from the repository.

Further documentation on GitHub collaborators:

- [Adding outside collaborators to your personal repositories](https://help.github.com/en/github/setting-up-and-managing-your-github-user-account/managing-access-to-your-personal-repositories) - [Adding outside collaborators to repositories in your organization](https://help.github.com/articles/adding-outside-collaborators-to-repositories-in-your-organization/) - [Converting an organization member to an outside collaborator](https://help.github.com/articles/converting-an-organization-member-to-an-outside-collaborator/)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.NewRepositoryCollaborator(ctx, "aRepoCollaborator", &github.RepositoryCollaboratorArgs{
			Permission: pulumi.String("admin"),
			Repository: pulumi.String("our-cool-repo"),
			Username:   pulumi.String("SomeUser"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

GitHub Repository Collaborators can be imported using an ID made up of `repository:username`, e.g.

```sh

$ pulumi import github:index/repositoryCollaborator:RepositoryCollaborator collaborator terraform:someuser

```

func GetRepositoryCollaborator

func GetRepositoryCollaborator(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RepositoryCollaboratorState, opts ...pulumi.ResourceOption) (*RepositoryCollaborator, error)

GetRepositoryCollaborator gets an existing RepositoryCollaborator 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 NewRepositoryCollaborator

func NewRepositoryCollaborator(ctx *pulumi.Context,
	name string, args *RepositoryCollaboratorArgs, opts ...pulumi.ResourceOption) (*RepositoryCollaborator, error)

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

func (*RepositoryCollaborator) ElementType

func (*RepositoryCollaborator) ElementType() reflect.Type

func (*RepositoryCollaborator) ToRepositoryCollaboratorOutput

func (i *RepositoryCollaborator) ToRepositoryCollaboratorOutput() RepositoryCollaboratorOutput

func (*RepositoryCollaborator) ToRepositoryCollaboratorOutputWithContext

func (i *RepositoryCollaborator) ToRepositoryCollaboratorOutputWithContext(ctx context.Context) RepositoryCollaboratorOutput

type RepositoryCollaboratorArgs

type RepositoryCollaboratorArgs struct {
	// The permission of the outside collaborator for the repository.
	// Must be one of `pull`, `push`, `maintain`, `triage` or `admin` for organization-owned repositories.
	// Must be `push` for personal repositories. Defaults to `push`.
	Permission pulumi.StringPtrInput
	// Suppress plan diffs for `triage` and `maintain`.  Defaults to `false`.
	PermissionDiffSuppression pulumi.BoolPtrInput
	// The GitHub repository
	Repository pulumi.StringInput
	// The user to add to the repository as a collaborator.
	Username pulumi.StringInput
}

The set of arguments for constructing a RepositoryCollaborator resource.

func (RepositoryCollaboratorArgs) ElementType

func (RepositoryCollaboratorArgs) ElementType() reflect.Type

type RepositoryCollaboratorArray

type RepositoryCollaboratorArray []RepositoryCollaboratorInput

func (RepositoryCollaboratorArray) ElementType

func (RepositoryCollaboratorArray) ToRepositoryCollaboratorArrayOutput

func (i RepositoryCollaboratorArray) ToRepositoryCollaboratorArrayOutput() RepositoryCollaboratorArrayOutput

func (RepositoryCollaboratorArray) ToRepositoryCollaboratorArrayOutputWithContext

func (i RepositoryCollaboratorArray) ToRepositoryCollaboratorArrayOutputWithContext(ctx context.Context) RepositoryCollaboratorArrayOutput

type RepositoryCollaboratorArrayInput

type RepositoryCollaboratorArrayInput interface {
	pulumi.Input

	ToRepositoryCollaboratorArrayOutput() RepositoryCollaboratorArrayOutput
	ToRepositoryCollaboratorArrayOutputWithContext(context.Context) RepositoryCollaboratorArrayOutput
}

RepositoryCollaboratorArrayInput is an input type that accepts RepositoryCollaboratorArray and RepositoryCollaboratorArrayOutput values. You can construct a concrete instance of `RepositoryCollaboratorArrayInput` via:

RepositoryCollaboratorArray{ RepositoryCollaboratorArgs{...} }

type RepositoryCollaboratorArrayOutput

type RepositoryCollaboratorArrayOutput struct{ *pulumi.OutputState }

func (RepositoryCollaboratorArrayOutput) ElementType

func (RepositoryCollaboratorArrayOutput) Index

func (RepositoryCollaboratorArrayOutput) ToRepositoryCollaboratorArrayOutput

func (o RepositoryCollaboratorArrayOutput) ToRepositoryCollaboratorArrayOutput() RepositoryCollaboratorArrayOutput

func (RepositoryCollaboratorArrayOutput) ToRepositoryCollaboratorArrayOutputWithContext

func (o RepositoryCollaboratorArrayOutput) ToRepositoryCollaboratorArrayOutputWithContext(ctx context.Context) RepositoryCollaboratorArrayOutput

type RepositoryCollaboratorInput

type RepositoryCollaboratorInput interface {
	pulumi.Input

	ToRepositoryCollaboratorOutput() RepositoryCollaboratorOutput
	ToRepositoryCollaboratorOutputWithContext(ctx context.Context) RepositoryCollaboratorOutput
}

type RepositoryCollaboratorMap

type RepositoryCollaboratorMap map[string]RepositoryCollaboratorInput

func (RepositoryCollaboratorMap) ElementType

func (RepositoryCollaboratorMap) ElementType() reflect.Type

func (RepositoryCollaboratorMap) ToRepositoryCollaboratorMapOutput

func (i RepositoryCollaboratorMap) ToRepositoryCollaboratorMapOutput() RepositoryCollaboratorMapOutput

func (RepositoryCollaboratorMap) ToRepositoryCollaboratorMapOutputWithContext

func (i RepositoryCollaboratorMap) ToRepositoryCollaboratorMapOutputWithContext(ctx context.Context) RepositoryCollaboratorMapOutput

type RepositoryCollaboratorMapInput

type RepositoryCollaboratorMapInput interface {
	pulumi.Input

	ToRepositoryCollaboratorMapOutput() RepositoryCollaboratorMapOutput
	ToRepositoryCollaboratorMapOutputWithContext(context.Context) RepositoryCollaboratorMapOutput
}

RepositoryCollaboratorMapInput is an input type that accepts RepositoryCollaboratorMap and RepositoryCollaboratorMapOutput values. You can construct a concrete instance of `RepositoryCollaboratorMapInput` via:

RepositoryCollaboratorMap{ "key": RepositoryCollaboratorArgs{...} }

type RepositoryCollaboratorMapOutput

type RepositoryCollaboratorMapOutput struct{ *pulumi.OutputState }

func (RepositoryCollaboratorMapOutput) ElementType

func (RepositoryCollaboratorMapOutput) MapIndex

func (RepositoryCollaboratorMapOutput) ToRepositoryCollaboratorMapOutput

func (o RepositoryCollaboratorMapOutput) ToRepositoryCollaboratorMapOutput() RepositoryCollaboratorMapOutput

func (RepositoryCollaboratorMapOutput) ToRepositoryCollaboratorMapOutputWithContext

func (o RepositoryCollaboratorMapOutput) ToRepositoryCollaboratorMapOutputWithContext(ctx context.Context) RepositoryCollaboratorMapOutput

type RepositoryCollaboratorOutput

type RepositoryCollaboratorOutput struct{ *pulumi.OutputState }

func (RepositoryCollaboratorOutput) ElementType

func (RepositoryCollaboratorOutput) InvitationId added in v4.15.0

ID of the invitation to be used in `UserInvitationAccepter`

func (RepositoryCollaboratorOutput) Permission added in v4.15.0

The permission of the outside collaborator for the repository. Must be one of `pull`, `push`, `maintain`, `triage` or `admin` for organization-owned repositories. Must be `push` for personal repositories. Defaults to `push`.

func (RepositoryCollaboratorOutput) PermissionDiffSuppression added in v4.15.0

func (o RepositoryCollaboratorOutput) PermissionDiffSuppression() pulumi.BoolPtrOutput

Suppress plan diffs for `triage` and `maintain`. Defaults to `false`.

func (RepositoryCollaboratorOutput) Repository added in v4.15.0

The GitHub repository

func (RepositoryCollaboratorOutput) ToRepositoryCollaboratorOutput

func (o RepositoryCollaboratorOutput) ToRepositoryCollaboratorOutput() RepositoryCollaboratorOutput

func (RepositoryCollaboratorOutput) ToRepositoryCollaboratorOutputWithContext

func (o RepositoryCollaboratorOutput) ToRepositoryCollaboratorOutputWithContext(ctx context.Context) RepositoryCollaboratorOutput

func (RepositoryCollaboratorOutput) Username added in v4.15.0

The user to add to the repository as a collaborator.

type RepositoryCollaboratorState

type RepositoryCollaboratorState struct {
	// ID of the invitation to be used in `UserInvitationAccepter`
	InvitationId pulumi.StringPtrInput
	// The permission of the outside collaborator for the repository.
	// Must be one of `pull`, `push`, `maintain`, `triage` or `admin` for organization-owned repositories.
	// Must be `push` for personal repositories. Defaults to `push`.
	Permission pulumi.StringPtrInput
	// Suppress plan diffs for `triage` and `maintain`.  Defaults to `false`.
	PermissionDiffSuppression pulumi.BoolPtrInput
	// The GitHub repository
	Repository pulumi.StringPtrInput
	// The user to add to the repository as a collaborator.
	Username pulumi.StringPtrInput
}

func (RepositoryCollaboratorState) ElementType

type RepositoryDeployKey

type RepositoryDeployKey struct {
	pulumi.CustomResourceState

	Etag pulumi.StringOutput `pulumi:"etag"`
	// A SSH key.
	Key pulumi.StringOutput `pulumi:"key"`
	// A boolean qualifying the key to be either read only or read/write.
	ReadOnly pulumi.BoolPtrOutput `pulumi:"readOnly"`
	// Name of the GitHub repository.
	Repository pulumi.StringOutput `pulumi:"repository"`
	// A title.
	Title pulumi.StringOutput `pulumi:"title"`
}

Provides a GitHub repository deploy key resource.

A deploy key is an SSH key that is stored on your server and grants access to a single GitHub repository. This key is attached directly to the repository instead of to a personal user account.

This resource allows you to add/remove repository deploy keys.

Further documentation on GitHub repository deploy keys: - [About deploy keys](https://developer.github.com/guides/managing-deploy-keys/#deploy-keys)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.NewRepositoryDeployKey(ctx, "exampleRepositoryDeployKey", &github.RepositoryDeployKeyArgs{
			Key:        pulumi.String("ssh-rsa AAA..."),
			ReadOnly:   pulumi.Bool(false),
			Repository: pulumi.String("test-repo"),
			Title:      pulumi.String("Repository test key"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Repository deploy keys can be imported using a colon-separated pair of repository name and GitHub's key id. The latter can be obtained by GitHub's SDKs and API.

```sh

$ pulumi import github:index/repositoryDeployKey:RepositoryDeployKey foo test-repo:23824728

```

func GetRepositoryDeployKey

func GetRepositoryDeployKey(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RepositoryDeployKeyState, opts ...pulumi.ResourceOption) (*RepositoryDeployKey, error)

GetRepositoryDeployKey gets an existing RepositoryDeployKey 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 NewRepositoryDeployKey

func NewRepositoryDeployKey(ctx *pulumi.Context,
	name string, args *RepositoryDeployKeyArgs, opts ...pulumi.ResourceOption) (*RepositoryDeployKey, error)

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

func (*RepositoryDeployKey) ElementType

func (*RepositoryDeployKey) ElementType() reflect.Type

func (*RepositoryDeployKey) ToRepositoryDeployKeyOutput

func (i *RepositoryDeployKey) ToRepositoryDeployKeyOutput() RepositoryDeployKeyOutput

func (*RepositoryDeployKey) ToRepositoryDeployKeyOutputWithContext

func (i *RepositoryDeployKey) ToRepositoryDeployKeyOutputWithContext(ctx context.Context) RepositoryDeployKeyOutput

type RepositoryDeployKeyArgs

type RepositoryDeployKeyArgs struct {
	// A SSH key.
	Key pulumi.StringInput
	// A boolean qualifying the key to be either read only or read/write.
	ReadOnly pulumi.BoolPtrInput
	// Name of the GitHub repository.
	Repository pulumi.StringInput
	// A title.
	Title pulumi.StringInput
}

The set of arguments for constructing a RepositoryDeployKey resource.

func (RepositoryDeployKeyArgs) ElementType

func (RepositoryDeployKeyArgs) ElementType() reflect.Type

type RepositoryDeployKeyArray

type RepositoryDeployKeyArray []RepositoryDeployKeyInput

func (RepositoryDeployKeyArray) ElementType

func (RepositoryDeployKeyArray) ElementType() reflect.Type

func (RepositoryDeployKeyArray) ToRepositoryDeployKeyArrayOutput

func (i RepositoryDeployKeyArray) ToRepositoryDeployKeyArrayOutput() RepositoryDeployKeyArrayOutput

func (RepositoryDeployKeyArray) ToRepositoryDeployKeyArrayOutputWithContext

func (i RepositoryDeployKeyArray) ToRepositoryDeployKeyArrayOutputWithContext(ctx context.Context) RepositoryDeployKeyArrayOutput

type RepositoryDeployKeyArrayInput

type RepositoryDeployKeyArrayInput interface {
	pulumi.Input

	ToRepositoryDeployKeyArrayOutput() RepositoryDeployKeyArrayOutput
	ToRepositoryDeployKeyArrayOutputWithContext(context.Context) RepositoryDeployKeyArrayOutput
}

RepositoryDeployKeyArrayInput is an input type that accepts RepositoryDeployKeyArray and RepositoryDeployKeyArrayOutput values. You can construct a concrete instance of `RepositoryDeployKeyArrayInput` via:

RepositoryDeployKeyArray{ RepositoryDeployKeyArgs{...} }

type RepositoryDeployKeyArrayOutput

type RepositoryDeployKeyArrayOutput struct{ *pulumi.OutputState }

func (RepositoryDeployKeyArrayOutput) ElementType

func (RepositoryDeployKeyArrayOutput) Index

func (RepositoryDeployKeyArrayOutput) ToRepositoryDeployKeyArrayOutput

func (o RepositoryDeployKeyArrayOutput) ToRepositoryDeployKeyArrayOutput() RepositoryDeployKeyArrayOutput

func (RepositoryDeployKeyArrayOutput) ToRepositoryDeployKeyArrayOutputWithContext

func (o RepositoryDeployKeyArrayOutput) ToRepositoryDeployKeyArrayOutputWithContext(ctx context.Context) RepositoryDeployKeyArrayOutput

type RepositoryDeployKeyInput

type RepositoryDeployKeyInput interface {
	pulumi.Input

	ToRepositoryDeployKeyOutput() RepositoryDeployKeyOutput
	ToRepositoryDeployKeyOutputWithContext(ctx context.Context) RepositoryDeployKeyOutput
}

type RepositoryDeployKeyMap

type RepositoryDeployKeyMap map[string]RepositoryDeployKeyInput

func (RepositoryDeployKeyMap) ElementType

func (RepositoryDeployKeyMap) ElementType() reflect.Type

func (RepositoryDeployKeyMap) ToRepositoryDeployKeyMapOutput

func (i RepositoryDeployKeyMap) ToRepositoryDeployKeyMapOutput() RepositoryDeployKeyMapOutput

func (RepositoryDeployKeyMap) ToRepositoryDeployKeyMapOutputWithContext

func (i RepositoryDeployKeyMap) ToRepositoryDeployKeyMapOutputWithContext(ctx context.Context) RepositoryDeployKeyMapOutput

type RepositoryDeployKeyMapInput

type RepositoryDeployKeyMapInput interface {
	pulumi.Input

	ToRepositoryDeployKeyMapOutput() RepositoryDeployKeyMapOutput
	ToRepositoryDeployKeyMapOutputWithContext(context.Context) RepositoryDeployKeyMapOutput
}

RepositoryDeployKeyMapInput is an input type that accepts RepositoryDeployKeyMap and RepositoryDeployKeyMapOutput values. You can construct a concrete instance of `RepositoryDeployKeyMapInput` via:

RepositoryDeployKeyMap{ "key": RepositoryDeployKeyArgs{...} }

type RepositoryDeployKeyMapOutput

type RepositoryDeployKeyMapOutput struct{ *pulumi.OutputState }

func (RepositoryDeployKeyMapOutput) ElementType

func (RepositoryDeployKeyMapOutput) MapIndex

func (RepositoryDeployKeyMapOutput) ToRepositoryDeployKeyMapOutput

func (o RepositoryDeployKeyMapOutput) ToRepositoryDeployKeyMapOutput() RepositoryDeployKeyMapOutput

func (RepositoryDeployKeyMapOutput) ToRepositoryDeployKeyMapOutputWithContext

func (o RepositoryDeployKeyMapOutput) ToRepositoryDeployKeyMapOutputWithContext(ctx context.Context) RepositoryDeployKeyMapOutput

type RepositoryDeployKeyOutput

type RepositoryDeployKeyOutput struct{ *pulumi.OutputState }

func (RepositoryDeployKeyOutput) ElementType

func (RepositoryDeployKeyOutput) ElementType() reflect.Type

func (RepositoryDeployKeyOutput) Etag added in v4.15.0

func (RepositoryDeployKeyOutput) Key added in v4.15.0

A SSH key.

func (RepositoryDeployKeyOutput) ReadOnly added in v4.15.0

A boolean qualifying the key to be either read only or read/write.

func (RepositoryDeployKeyOutput) Repository added in v4.15.0

Name of the GitHub repository.

func (RepositoryDeployKeyOutput) Title added in v4.15.0

A title.

func (RepositoryDeployKeyOutput) ToRepositoryDeployKeyOutput

func (o RepositoryDeployKeyOutput) ToRepositoryDeployKeyOutput() RepositoryDeployKeyOutput

func (RepositoryDeployKeyOutput) ToRepositoryDeployKeyOutputWithContext

func (o RepositoryDeployKeyOutput) ToRepositoryDeployKeyOutputWithContext(ctx context.Context) RepositoryDeployKeyOutput

type RepositoryDeployKeyState

type RepositoryDeployKeyState struct {
	Etag pulumi.StringPtrInput
	// A SSH key.
	Key pulumi.StringPtrInput
	// A boolean qualifying the key to be either read only or read/write.
	ReadOnly pulumi.BoolPtrInput
	// Name of the GitHub repository.
	Repository pulumi.StringPtrInput
	// A title.
	Title pulumi.StringPtrInput
}

func (RepositoryDeployKeyState) ElementType

func (RepositoryDeployKeyState) ElementType() reflect.Type

type RepositoryEnvironment added in v4.3.0

type RepositoryEnvironment struct {
	pulumi.CustomResourceState

	DeploymentBranchPolicy RepositoryEnvironmentDeploymentBranchPolicyPtrOutput `pulumi:"deploymentBranchPolicy"`
	// The name of the environment.
	Environment pulumi.StringOutput `pulumi:"environment"`
	// The repository of the environment.
	Repository pulumi.StringOutput                      `pulumi:"repository"`
	Reviewers  RepositoryEnvironmentReviewerArrayOutput `pulumi:"reviewers"`
	// Amount of time to delay a job after the job is initially triggered.
	WaitTimer pulumi.IntPtrOutput `pulumi:"waitTimer"`
}

This resource allows you to create and manage environments for a GitHub repository.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		current, err := github.GetUser(ctx, &GetUserArgs{
			Username: "",
		}, nil)
		if err != nil {
			return err
		}
		exampleRepository, err := github.NewRepository(ctx, "exampleRepository", &github.RepositoryArgs{
			Description: pulumi.String("My awesome codebase"),
		})
		if err != nil {
			return err
		}
		_, err = github.NewRepositoryEnvironment(ctx, "exampleRepositoryEnvironment", &github.RepositoryEnvironmentArgs{
			Environment: pulumi.String("example"),
			Repository:  exampleRepository.Name,
			Reviewers: RepositoryEnvironmentReviewerArray{
				&RepositoryEnvironmentReviewerArgs{
					Users: pulumi.IntArray{
						pulumi.String(current.Id),
					},
				},
			},
			DeploymentBranchPolicy: &RepositoryEnvironmentDeploymentBranchPolicyArgs{
				ProtectedBranches:    pulumi.Bool(true),
				CustomBranchPolicies: pulumi.Bool(false),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

GitHub Repository Environment can be imported using an ID made up of `name` of the repository combined with the `environment` name of the environment, separated by a `:` character, e.g.

```sh

$ pulumi import github:index/repositoryEnvironment:RepositoryEnvironment daily terraform:daily

```

func GetRepositoryEnvironment added in v4.3.0

func GetRepositoryEnvironment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RepositoryEnvironmentState, opts ...pulumi.ResourceOption) (*RepositoryEnvironment, error)

GetRepositoryEnvironment gets an existing RepositoryEnvironment 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 NewRepositoryEnvironment added in v4.3.0

func NewRepositoryEnvironment(ctx *pulumi.Context,
	name string, args *RepositoryEnvironmentArgs, opts ...pulumi.ResourceOption) (*RepositoryEnvironment, error)

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

func (*RepositoryEnvironment) ElementType added in v4.3.0

func (*RepositoryEnvironment) ElementType() reflect.Type

func (*RepositoryEnvironment) ToRepositoryEnvironmentOutput added in v4.3.0

func (i *RepositoryEnvironment) ToRepositoryEnvironmentOutput() RepositoryEnvironmentOutput

func (*RepositoryEnvironment) ToRepositoryEnvironmentOutputWithContext added in v4.3.0

func (i *RepositoryEnvironment) ToRepositoryEnvironmentOutputWithContext(ctx context.Context) RepositoryEnvironmentOutput

type RepositoryEnvironmentArgs added in v4.3.0

type RepositoryEnvironmentArgs struct {
	DeploymentBranchPolicy RepositoryEnvironmentDeploymentBranchPolicyPtrInput
	// The name of the environment.
	Environment pulumi.StringInput
	// The repository of the environment.
	Repository pulumi.StringInput
	Reviewers  RepositoryEnvironmentReviewerArrayInput
	// Amount of time to delay a job after the job is initially triggered.
	WaitTimer pulumi.IntPtrInput
}

The set of arguments for constructing a RepositoryEnvironment resource.

func (RepositoryEnvironmentArgs) ElementType added in v4.3.0

func (RepositoryEnvironmentArgs) ElementType() reflect.Type

type RepositoryEnvironmentArray added in v4.3.0

type RepositoryEnvironmentArray []RepositoryEnvironmentInput

func (RepositoryEnvironmentArray) ElementType added in v4.3.0

func (RepositoryEnvironmentArray) ElementType() reflect.Type

func (RepositoryEnvironmentArray) ToRepositoryEnvironmentArrayOutput added in v4.3.0

func (i RepositoryEnvironmentArray) ToRepositoryEnvironmentArrayOutput() RepositoryEnvironmentArrayOutput

func (RepositoryEnvironmentArray) ToRepositoryEnvironmentArrayOutputWithContext added in v4.3.0

func (i RepositoryEnvironmentArray) ToRepositoryEnvironmentArrayOutputWithContext(ctx context.Context) RepositoryEnvironmentArrayOutput

type RepositoryEnvironmentArrayInput added in v4.3.0

type RepositoryEnvironmentArrayInput interface {
	pulumi.Input

	ToRepositoryEnvironmentArrayOutput() RepositoryEnvironmentArrayOutput
	ToRepositoryEnvironmentArrayOutputWithContext(context.Context) RepositoryEnvironmentArrayOutput
}

RepositoryEnvironmentArrayInput is an input type that accepts RepositoryEnvironmentArray and RepositoryEnvironmentArrayOutput values. You can construct a concrete instance of `RepositoryEnvironmentArrayInput` via:

RepositoryEnvironmentArray{ RepositoryEnvironmentArgs{...} }

type RepositoryEnvironmentArrayOutput added in v4.3.0

type RepositoryEnvironmentArrayOutput struct{ *pulumi.OutputState }

func (RepositoryEnvironmentArrayOutput) ElementType added in v4.3.0

func (RepositoryEnvironmentArrayOutput) Index added in v4.3.0

func (RepositoryEnvironmentArrayOutput) ToRepositoryEnvironmentArrayOutput added in v4.3.0

func (o RepositoryEnvironmentArrayOutput) ToRepositoryEnvironmentArrayOutput() RepositoryEnvironmentArrayOutput

func (RepositoryEnvironmentArrayOutput) ToRepositoryEnvironmentArrayOutputWithContext added in v4.3.0

func (o RepositoryEnvironmentArrayOutput) ToRepositoryEnvironmentArrayOutputWithContext(ctx context.Context) RepositoryEnvironmentArrayOutput

type RepositoryEnvironmentDeploymentBranchPolicy added in v4.3.0

type RepositoryEnvironmentDeploymentBranchPolicy struct {
	// Whether only branches that match the specified name patterns can deploy to this environment.
	CustomBranchPolicies bool `pulumi:"customBranchPolicies"`
	// Whether only branches with branch protection rules can deploy to this environment.
	ProtectedBranches bool `pulumi:"protectedBranches"`
}

type RepositoryEnvironmentDeploymentBranchPolicyArgs added in v4.3.0

type RepositoryEnvironmentDeploymentBranchPolicyArgs struct {
	// Whether only branches that match the specified name patterns can deploy to this environment.
	CustomBranchPolicies pulumi.BoolInput `pulumi:"customBranchPolicies"`
	// Whether only branches with branch protection rules can deploy to this environment.
	ProtectedBranches pulumi.BoolInput `pulumi:"protectedBranches"`
}

func (RepositoryEnvironmentDeploymentBranchPolicyArgs) ElementType added in v4.3.0

func (RepositoryEnvironmentDeploymentBranchPolicyArgs) ToRepositoryEnvironmentDeploymentBranchPolicyOutput added in v4.3.0

func (i RepositoryEnvironmentDeploymentBranchPolicyArgs) ToRepositoryEnvironmentDeploymentBranchPolicyOutput() RepositoryEnvironmentDeploymentBranchPolicyOutput

func (RepositoryEnvironmentDeploymentBranchPolicyArgs) ToRepositoryEnvironmentDeploymentBranchPolicyOutputWithContext added in v4.3.0

func (i RepositoryEnvironmentDeploymentBranchPolicyArgs) ToRepositoryEnvironmentDeploymentBranchPolicyOutputWithContext(ctx context.Context) RepositoryEnvironmentDeploymentBranchPolicyOutput

func (RepositoryEnvironmentDeploymentBranchPolicyArgs) ToRepositoryEnvironmentDeploymentBranchPolicyPtrOutput added in v4.3.0

func (i RepositoryEnvironmentDeploymentBranchPolicyArgs) ToRepositoryEnvironmentDeploymentBranchPolicyPtrOutput() RepositoryEnvironmentDeploymentBranchPolicyPtrOutput

func (RepositoryEnvironmentDeploymentBranchPolicyArgs) ToRepositoryEnvironmentDeploymentBranchPolicyPtrOutputWithContext added in v4.3.0

func (i RepositoryEnvironmentDeploymentBranchPolicyArgs) ToRepositoryEnvironmentDeploymentBranchPolicyPtrOutputWithContext(ctx context.Context) RepositoryEnvironmentDeploymentBranchPolicyPtrOutput

type RepositoryEnvironmentDeploymentBranchPolicyInput added in v4.3.0

type RepositoryEnvironmentDeploymentBranchPolicyInput interface {
	pulumi.Input

	ToRepositoryEnvironmentDeploymentBranchPolicyOutput() RepositoryEnvironmentDeploymentBranchPolicyOutput
	ToRepositoryEnvironmentDeploymentBranchPolicyOutputWithContext(context.Context) RepositoryEnvironmentDeploymentBranchPolicyOutput
}

RepositoryEnvironmentDeploymentBranchPolicyInput is an input type that accepts RepositoryEnvironmentDeploymentBranchPolicyArgs and RepositoryEnvironmentDeploymentBranchPolicyOutput values. You can construct a concrete instance of `RepositoryEnvironmentDeploymentBranchPolicyInput` via:

RepositoryEnvironmentDeploymentBranchPolicyArgs{...}

type RepositoryEnvironmentDeploymentBranchPolicyOutput added in v4.3.0

type RepositoryEnvironmentDeploymentBranchPolicyOutput struct{ *pulumi.OutputState }

func (RepositoryEnvironmentDeploymentBranchPolicyOutput) CustomBranchPolicies added in v4.3.0

Whether only branches that match the specified name patterns can deploy to this environment.

func (RepositoryEnvironmentDeploymentBranchPolicyOutput) ElementType added in v4.3.0

func (RepositoryEnvironmentDeploymentBranchPolicyOutput) ProtectedBranches added in v4.3.0

Whether only branches with branch protection rules can deploy to this environment.

func (RepositoryEnvironmentDeploymentBranchPolicyOutput) ToRepositoryEnvironmentDeploymentBranchPolicyOutput added in v4.3.0

func (o RepositoryEnvironmentDeploymentBranchPolicyOutput) ToRepositoryEnvironmentDeploymentBranchPolicyOutput() RepositoryEnvironmentDeploymentBranchPolicyOutput

func (RepositoryEnvironmentDeploymentBranchPolicyOutput) ToRepositoryEnvironmentDeploymentBranchPolicyOutputWithContext added in v4.3.0

func (o RepositoryEnvironmentDeploymentBranchPolicyOutput) ToRepositoryEnvironmentDeploymentBranchPolicyOutputWithContext(ctx context.Context) RepositoryEnvironmentDeploymentBranchPolicyOutput

func (RepositoryEnvironmentDeploymentBranchPolicyOutput) ToRepositoryEnvironmentDeploymentBranchPolicyPtrOutput added in v4.3.0

func (o RepositoryEnvironmentDeploymentBranchPolicyOutput) ToRepositoryEnvironmentDeploymentBranchPolicyPtrOutput() RepositoryEnvironmentDeploymentBranchPolicyPtrOutput

func (RepositoryEnvironmentDeploymentBranchPolicyOutput) ToRepositoryEnvironmentDeploymentBranchPolicyPtrOutputWithContext added in v4.3.0

func (o RepositoryEnvironmentDeploymentBranchPolicyOutput) ToRepositoryEnvironmentDeploymentBranchPolicyPtrOutputWithContext(ctx context.Context) RepositoryEnvironmentDeploymentBranchPolicyPtrOutput

type RepositoryEnvironmentDeploymentBranchPolicyPtrInput added in v4.3.0

type RepositoryEnvironmentDeploymentBranchPolicyPtrInput interface {
	pulumi.Input

	ToRepositoryEnvironmentDeploymentBranchPolicyPtrOutput() RepositoryEnvironmentDeploymentBranchPolicyPtrOutput
	ToRepositoryEnvironmentDeploymentBranchPolicyPtrOutputWithContext(context.Context) RepositoryEnvironmentDeploymentBranchPolicyPtrOutput
}

RepositoryEnvironmentDeploymentBranchPolicyPtrInput is an input type that accepts RepositoryEnvironmentDeploymentBranchPolicyArgs, RepositoryEnvironmentDeploymentBranchPolicyPtr and RepositoryEnvironmentDeploymentBranchPolicyPtrOutput values. You can construct a concrete instance of `RepositoryEnvironmentDeploymentBranchPolicyPtrInput` via:

        RepositoryEnvironmentDeploymentBranchPolicyArgs{...}

or:

        nil

type RepositoryEnvironmentDeploymentBranchPolicyPtrOutput added in v4.3.0

type RepositoryEnvironmentDeploymentBranchPolicyPtrOutput struct{ *pulumi.OutputState }

func (RepositoryEnvironmentDeploymentBranchPolicyPtrOutput) CustomBranchPolicies added in v4.3.0

Whether only branches that match the specified name patterns can deploy to this environment.

func (RepositoryEnvironmentDeploymentBranchPolicyPtrOutput) Elem added in v4.3.0

func (RepositoryEnvironmentDeploymentBranchPolicyPtrOutput) ElementType added in v4.3.0

func (RepositoryEnvironmentDeploymentBranchPolicyPtrOutput) ProtectedBranches added in v4.3.0

Whether only branches with branch protection rules can deploy to this environment.

func (RepositoryEnvironmentDeploymentBranchPolicyPtrOutput) ToRepositoryEnvironmentDeploymentBranchPolicyPtrOutput added in v4.3.0

func (RepositoryEnvironmentDeploymentBranchPolicyPtrOutput) ToRepositoryEnvironmentDeploymentBranchPolicyPtrOutputWithContext added in v4.3.0

func (o RepositoryEnvironmentDeploymentBranchPolicyPtrOutput) ToRepositoryEnvironmentDeploymentBranchPolicyPtrOutputWithContext(ctx context.Context) RepositoryEnvironmentDeploymentBranchPolicyPtrOutput

type RepositoryEnvironmentInput added in v4.3.0

type RepositoryEnvironmentInput interface {
	pulumi.Input

	ToRepositoryEnvironmentOutput() RepositoryEnvironmentOutput
	ToRepositoryEnvironmentOutputWithContext(ctx context.Context) RepositoryEnvironmentOutput
}

type RepositoryEnvironmentMap added in v4.3.0

type RepositoryEnvironmentMap map[string]RepositoryEnvironmentInput

func (RepositoryEnvironmentMap) ElementType added in v4.3.0

func (RepositoryEnvironmentMap) ElementType() reflect.Type

func (RepositoryEnvironmentMap) ToRepositoryEnvironmentMapOutput added in v4.3.0

func (i RepositoryEnvironmentMap) ToRepositoryEnvironmentMapOutput() RepositoryEnvironmentMapOutput

func (RepositoryEnvironmentMap) ToRepositoryEnvironmentMapOutputWithContext added in v4.3.0

func (i RepositoryEnvironmentMap) ToRepositoryEnvironmentMapOutputWithContext(ctx context.Context) RepositoryEnvironmentMapOutput

type RepositoryEnvironmentMapInput added in v4.3.0

type RepositoryEnvironmentMapInput interface {
	pulumi.Input

	ToRepositoryEnvironmentMapOutput() RepositoryEnvironmentMapOutput
	ToRepositoryEnvironmentMapOutputWithContext(context.Context) RepositoryEnvironmentMapOutput
}

RepositoryEnvironmentMapInput is an input type that accepts RepositoryEnvironmentMap and RepositoryEnvironmentMapOutput values. You can construct a concrete instance of `RepositoryEnvironmentMapInput` via:

RepositoryEnvironmentMap{ "key": RepositoryEnvironmentArgs{...} }

type RepositoryEnvironmentMapOutput added in v4.3.0

type RepositoryEnvironmentMapOutput struct{ *pulumi.OutputState }

func (RepositoryEnvironmentMapOutput) ElementType added in v4.3.0

func (RepositoryEnvironmentMapOutput) MapIndex added in v4.3.0

func (RepositoryEnvironmentMapOutput) ToRepositoryEnvironmentMapOutput added in v4.3.0

func (o RepositoryEnvironmentMapOutput) ToRepositoryEnvironmentMapOutput() RepositoryEnvironmentMapOutput

func (RepositoryEnvironmentMapOutput) ToRepositoryEnvironmentMapOutputWithContext added in v4.3.0

func (o RepositoryEnvironmentMapOutput) ToRepositoryEnvironmentMapOutputWithContext(ctx context.Context) RepositoryEnvironmentMapOutput

type RepositoryEnvironmentOutput added in v4.3.0

type RepositoryEnvironmentOutput struct{ *pulumi.OutputState }

func (RepositoryEnvironmentOutput) DeploymentBranchPolicy added in v4.15.0

func (RepositoryEnvironmentOutput) ElementType added in v4.3.0

func (RepositoryEnvironmentOutput) Environment added in v4.15.0

The name of the environment.

func (RepositoryEnvironmentOutput) Repository added in v4.15.0

The repository of the environment.

func (RepositoryEnvironmentOutput) Reviewers added in v4.15.0

func (RepositoryEnvironmentOutput) ToRepositoryEnvironmentOutput added in v4.3.0

func (o RepositoryEnvironmentOutput) ToRepositoryEnvironmentOutput() RepositoryEnvironmentOutput

func (RepositoryEnvironmentOutput) ToRepositoryEnvironmentOutputWithContext added in v4.3.0

func (o RepositoryEnvironmentOutput) ToRepositoryEnvironmentOutputWithContext(ctx context.Context) RepositoryEnvironmentOutput

func (RepositoryEnvironmentOutput) WaitTimer added in v4.15.0

Amount of time to delay a job after the job is initially triggered.

type RepositoryEnvironmentReviewer added in v4.3.0

type RepositoryEnvironmentReviewer struct {
	// Up to 6 IDs for teams who may review jobs that reference the environment. Reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.
	Teams []int `pulumi:"teams"`
	// Up to 6 IDs for users who may review jobs that reference the environment. Reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.
	Users []int `pulumi:"users"`
}

type RepositoryEnvironmentReviewerArgs added in v4.3.0

type RepositoryEnvironmentReviewerArgs struct {
	// Up to 6 IDs for teams who may review jobs that reference the environment. Reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.
	Teams pulumi.IntArrayInput `pulumi:"teams"`
	// Up to 6 IDs for users who may review jobs that reference the environment. Reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.
	Users pulumi.IntArrayInput `pulumi:"users"`
}

func (RepositoryEnvironmentReviewerArgs) ElementType added in v4.3.0

func (RepositoryEnvironmentReviewerArgs) ToRepositoryEnvironmentReviewerOutput added in v4.3.0

func (i RepositoryEnvironmentReviewerArgs) ToRepositoryEnvironmentReviewerOutput() RepositoryEnvironmentReviewerOutput

func (RepositoryEnvironmentReviewerArgs) ToRepositoryEnvironmentReviewerOutputWithContext added in v4.3.0

func (i RepositoryEnvironmentReviewerArgs) ToRepositoryEnvironmentReviewerOutputWithContext(ctx context.Context) RepositoryEnvironmentReviewerOutput

type RepositoryEnvironmentReviewerArray added in v4.3.0

type RepositoryEnvironmentReviewerArray []RepositoryEnvironmentReviewerInput

func (RepositoryEnvironmentReviewerArray) ElementType added in v4.3.0

func (RepositoryEnvironmentReviewerArray) ToRepositoryEnvironmentReviewerArrayOutput added in v4.3.0

func (i RepositoryEnvironmentReviewerArray) ToRepositoryEnvironmentReviewerArrayOutput() RepositoryEnvironmentReviewerArrayOutput

func (RepositoryEnvironmentReviewerArray) ToRepositoryEnvironmentReviewerArrayOutputWithContext added in v4.3.0

func (i RepositoryEnvironmentReviewerArray) ToRepositoryEnvironmentReviewerArrayOutputWithContext(ctx context.Context) RepositoryEnvironmentReviewerArrayOutput

type RepositoryEnvironmentReviewerArrayInput added in v4.3.0

type RepositoryEnvironmentReviewerArrayInput interface {
	pulumi.Input

	ToRepositoryEnvironmentReviewerArrayOutput() RepositoryEnvironmentReviewerArrayOutput
	ToRepositoryEnvironmentReviewerArrayOutputWithContext(context.Context) RepositoryEnvironmentReviewerArrayOutput
}

RepositoryEnvironmentReviewerArrayInput is an input type that accepts RepositoryEnvironmentReviewerArray and RepositoryEnvironmentReviewerArrayOutput values. You can construct a concrete instance of `RepositoryEnvironmentReviewerArrayInput` via:

RepositoryEnvironmentReviewerArray{ RepositoryEnvironmentReviewerArgs{...} }

type RepositoryEnvironmentReviewerArrayOutput added in v4.3.0

type RepositoryEnvironmentReviewerArrayOutput struct{ *pulumi.OutputState }

func (RepositoryEnvironmentReviewerArrayOutput) ElementType added in v4.3.0

func (RepositoryEnvironmentReviewerArrayOutput) Index added in v4.3.0

func (RepositoryEnvironmentReviewerArrayOutput) ToRepositoryEnvironmentReviewerArrayOutput added in v4.3.0

func (o RepositoryEnvironmentReviewerArrayOutput) ToRepositoryEnvironmentReviewerArrayOutput() RepositoryEnvironmentReviewerArrayOutput

func (RepositoryEnvironmentReviewerArrayOutput) ToRepositoryEnvironmentReviewerArrayOutputWithContext added in v4.3.0

func (o RepositoryEnvironmentReviewerArrayOutput) ToRepositoryEnvironmentReviewerArrayOutputWithContext(ctx context.Context) RepositoryEnvironmentReviewerArrayOutput

type RepositoryEnvironmentReviewerInput added in v4.3.0

type RepositoryEnvironmentReviewerInput interface {
	pulumi.Input

	ToRepositoryEnvironmentReviewerOutput() RepositoryEnvironmentReviewerOutput
	ToRepositoryEnvironmentReviewerOutputWithContext(context.Context) RepositoryEnvironmentReviewerOutput
}

RepositoryEnvironmentReviewerInput is an input type that accepts RepositoryEnvironmentReviewerArgs and RepositoryEnvironmentReviewerOutput values. You can construct a concrete instance of `RepositoryEnvironmentReviewerInput` via:

RepositoryEnvironmentReviewerArgs{...}

type RepositoryEnvironmentReviewerOutput added in v4.3.0

type RepositoryEnvironmentReviewerOutput struct{ *pulumi.OutputState }

func (RepositoryEnvironmentReviewerOutput) ElementType added in v4.3.0

func (RepositoryEnvironmentReviewerOutput) Teams added in v4.3.0

Up to 6 IDs for teams who may review jobs that reference the environment. Reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.

func (RepositoryEnvironmentReviewerOutput) ToRepositoryEnvironmentReviewerOutput added in v4.3.0

func (o RepositoryEnvironmentReviewerOutput) ToRepositoryEnvironmentReviewerOutput() RepositoryEnvironmentReviewerOutput

func (RepositoryEnvironmentReviewerOutput) ToRepositoryEnvironmentReviewerOutputWithContext added in v4.3.0

func (o RepositoryEnvironmentReviewerOutput) ToRepositoryEnvironmentReviewerOutputWithContext(ctx context.Context) RepositoryEnvironmentReviewerOutput

func (RepositoryEnvironmentReviewerOutput) Users added in v4.3.0

Up to 6 IDs for users who may review jobs that reference the environment. Reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.

type RepositoryEnvironmentState added in v4.3.0

type RepositoryEnvironmentState struct {
	DeploymentBranchPolicy RepositoryEnvironmentDeploymentBranchPolicyPtrInput
	// The name of the environment.
	Environment pulumi.StringPtrInput
	// The repository of the environment.
	Repository pulumi.StringPtrInput
	Reviewers  RepositoryEnvironmentReviewerArrayInput
	// Amount of time to delay a job after the job is initially triggered.
	WaitTimer pulumi.IntPtrInput
}

func (RepositoryEnvironmentState) ElementType added in v4.3.0

func (RepositoryEnvironmentState) ElementType() reflect.Type

type RepositoryFile

type RepositoryFile struct {
	pulumi.CustomResourceState

	// Git branch (defaults to `main`).
	// The branch must already exist, it will not be created if it does not already exist.
	Branch pulumi.StringPtrOutput `pulumi:"branch"`
	// Committer author name to use.
	CommitAuthor pulumi.StringOutput `pulumi:"commitAuthor"`
	// Committer email address to use.
	CommitEmail pulumi.StringOutput `pulumi:"commitEmail"`
	// Commit message when adding or updating the managed file.
	CommitMessage pulumi.StringOutput `pulumi:"commitMessage"`
	// The SHA of the commit that modified the file.
	CommitSha pulumi.StringOutput `pulumi:"commitSha"`
	// The file content.
	Content pulumi.StringOutput `pulumi:"content"`
	// The path of the file to manage.
	File pulumi.StringOutput `pulumi:"file"`
	// Enable overwriting existing files
	OverwriteOnCreate pulumi.BoolPtrOutput `pulumi:"overwriteOnCreate"`
	// The repository to create the file in.
	Repository pulumi.StringOutput `pulumi:"repository"`
	// The SHA blob of the file.
	Sha pulumi.StringOutput `pulumi:"sha"`
}

This resource allows you to create and manage files within a GitHub repository.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		fooRepository, err := github.NewRepository(ctx, "fooRepository", &github.RepositoryArgs{
			AutoInit: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = github.NewRepositoryFile(ctx, "fooRepositoryFile", &github.RepositoryFileArgs{
			Repository:        fooRepository.Name,
			Branch:            pulumi.String("main"),
			File:              pulumi.String(".gitignore"),
			Content:           pulumi.String("**/*.tfstate"),
			CommitMessage:     pulumi.String("Managed by Terraform"),
			CommitAuthor:      pulumi.String("Terraform User"),
			CommitEmail:       pulumi.String("terraform@example.com"),
			OverwriteOnCreate: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Repository files can be imported using a combination of the `repo` and `file`, e.g.

```sh

$ pulumi import github:index/repositoryFile:RepositoryFile gitignore example/.gitignore

```

To import a file from a branch other than main, append `:` and the branch name, e.g.

```sh

$ pulumi import github:index/repositoryFile:RepositoryFile gitignore example/.gitignore:dev

```

func GetRepositoryFile

func GetRepositoryFile(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RepositoryFileState, opts ...pulumi.ResourceOption) (*RepositoryFile, error)

GetRepositoryFile gets an existing RepositoryFile 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 NewRepositoryFile

func NewRepositoryFile(ctx *pulumi.Context,
	name string, args *RepositoryFileArgs, opts ...pulumi.ResourceOption) (*RepositoryFile, error)

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

func (*RepositoryFile) ElementType

func (*RepositoryFile) ElementType() reflect.Type

func (*RepositoryFile) ToRepositoryFileOutput

func (i *RepositoryFile) ToRepositoryFileOutput() RepositoryFileOutput

func (*RepositoryFile) ToRepositoryFileOutputWithContext

func (i *RepositoryFile) ToRepositoryFileOutputWithContext(ctx context.Context) RepositoryFileOutput

type RepositoryFileArgs

type RepositoryFileArgs struct {
	// Git branch (defaults to `main`).
	// The branch must already exist, it will not be created if it does not already exist.
	Branch pulumi.StringPtrInput
	// Committer author name to use.
	CommitAuthor pulumi.StringPtrInput
	// Committer email address to use.
	CommitEmail pulumi.StringPtrInput
	// Commit message when adding or updating the managed file.
	CommitMessage pulumi.StringPtrInput
	// The file content.
	Content pulumi.StringInput
	// The path of the file to manage.
	File pulumi.StringInput
	// Enable overwriting existing files
	OverwriteOnCreate pulumi.BoolPtrInput
	// The repository to create the file in.
	Repository pulumi.StringInput
}

The set of arguments for constructing a RepositoryFile resource.

func (RepositoryFileArgs) ElementType

func (RepositoryFileArgs) ElementType() reflect.Type

type RepositoryFileArray

type RepositoryFileArray []RepositoryFileInput

func (RepositoryFileArray) ElementType

func (RepositoryFileArray) ElementType() reflect.Type

func (RepositoryFileArray) ToRepositoryFileArrayOutput

func (i RepositoryFileArray) ToRepositoryFileArrayOutput() RepositoryFileArrayOutput

func (RepositoryFileArray) ToRepositoryFileArrayOutputWithContext

func (i RepositoryFileArray) ToRepositoryFileArrayOutputWithContext(ctx context.Context) RepositoryFileArrayOutput

type RepositoryFileArrayInput

type RepositoryFileArrayInput interface {
	pulumi.Input

	ToRepositoryFileArrayOutput() RepositoryFileArrayOutput
	ToRepositoryFileArrayOutputWithContext(context.Context) RepositoryFileArrayOutput
}

RepositoryFileArrayInput is an input type that accepts RepositoryFileArray and RepositoryFileArrayOutput values. You can construct a concrete instance of `RepositoryFileArrayInput` via:

RepositoryFileArray{ RepositoryFileArgs{...} }

type RepositoryFileArrayOutput

type RepositoryFileArrayOutput struct{ *pulumi.OutputState }

func (RepositoryFileArrayOutput) ElementType

func (RepositoryFileArrayOutput) ElementType() reflect.Type

func (RepositoryFileArrayOutput) Index

func (RepositoryFileArrayOutput) ToRepositoryFileArrayOutput

func (o RepositoryFileArrayOutput) ToRepositoryFileArrayOutput() RepositoryFileArrayOutput

func (RepositoryFileArrayOutput) ToRepositoryFileArrayOutputWithContext

func (o RepositoryFileArrayOutput) ToRepositoryFileArrayOutputWithContext(ctx context.Context) RepositoryFileArrayOutput

type RepositoryFileInput

type RepositoryFileInput interface {
	pulumi.Input

	ToRepositoryFileOutput() RepositoryFileOutput
	ToRepositoryFileOutputWithContext(ctx context.Context) RepositoryFileOutput
}

type RepositoryFileMap

type RepositoryFileMap map[string]RepositoryFileInput

func (RepositoryFileMap) ElementType

func (RepositoryFileMap) ElementType() reflect.Type

func (RepositoryFileMap) ToRepositoryFileMapOutput

func (i RepositoryFileMap) ToRepositoryFileMapOutput() RepositoryFileMapOutput

func (RepositoryFileMap) ToRepositoryFileMapOutputWithContext

func (i RepositoryFileMap) ToRepositoryFileMapOutputWithContext(ctx context.Context) RepositoryFileMapOutput

type RepositoryFileMapInput

type RepositoryFileMapInput interface {
	pulumi.Input

	ToRepositoryFileMapOutput() RepositoryFileMapOutput
	ToRepositoryFileMapOutputWithContext(context.Context) RepositoryFileMapOutput
}

RepositoryFileMapInput is an input type that accepts RepositoryFileMap and RepositoryFileMapOutput values. You can construct a concrete instance of `RepositoryFileMapInput` via:

RepositoryFileMap{ "key": RepositoryFileArgs{...} }

type RepositoryFileMapOutput

type RepositoryFileMapOutput struct{ *pulumi.OutputState }

func (RepositoryFileMapOutput) ElementType

func (RepositoryFileMapOutput) ElementType() reflect.Type

func (RepositoryFileMapOutput) MapIndex

func (RepositoryFileMapOutput) ToRepositoryFileMapOutput

func (o RepositoryFileMapOutput) ToRepositoryFileMapOutput() RepositoryFileMapOutput

func (RepositoryFileMapOutput) ToRepositoryFileMapOutputWithContext

func (o RepositoryFileMapOutput) ToRepositoryFileMapOutputWithContext(ctx context.Context) RepositoryFileMapOutput

type RepositoryFileOutput

type RepositoryFileOutput struct{ *pulumi.OutputState }

func (RepositoryFileOutput) Branch added in v4.15.0

Git branch (defaults to `main`). The branch must already exist, it will not be created if it does not already exist.

func (RepositoryFileOutput) CommitAuthor added in v4.15.0

func (o RepositoryFileOutput) CommitAuthor() pulumi.StringOutput

Committer author name to use.

func (RepositoryFileOutput) CommitEmail added in v4.15.0

func (o RepositoryFileOutput) CommitEmail() pulumi.StringOutput

Committer email address to use.

func (RepositoryFileOutput) CommitMessage added in v4.15.0

func (o RepositoryFileOutput) CommitMessage() pulumi.StringOutput

Commit message when adding or updating the managed file.

func (RepositoryFileOutput) CommitSha added in v4.15.0

The SHA of the commit that modified the file.

func (RepositoryFileOutput) Content added in v4.15.0

The file content.

func (RepositoryFileOutput) ElementType

func (RepositoryFileOutput) ElementType() reflect.Type

func (RepositoryFileOutput) File added in v4.15.0

The path of the file to manage.

func (RepositoryFileOutput) OverwriteOnCreate added in v4.15.0

func (o RepositoryFileOutput) OverwriteOnCreate() pulumi.BoolPtrOutput

Enable overwriting existing files

func (RepositoryFileOutput) Repository added in v4.15.0

func (o RepositoryFileOutput) Repository() pulumi.StringOutput

The repository to create the file in.

func (RepositoryFileOutput) Sha added in v4.15.0

The SHA blob of the file.

func (RepositoryFileOutput) ToRepositoryFileOutput

func (o RepositoryFileOutput) ToRepositoryFileOutput() RepositoryFileOutput

func (RepositoryFileOutput) ToRepositoryFileOutputWithContext

func (o RepositoryFileOutput) ToRepositoryFileOutputWithContext(ctx context.Context) RepositoryFileOutput

type RepositoryFileState

type RepositoryFileState struct {
	// Git branch (defaults to `main`).
	// The branch must already exist, it will not be created if it does not already exist.
	Branch pulumi.StringPtrInput
	// Committer author name to use.
	CommitAuthor pulumi.StringPtrInput
	// Committer email address to use.
	CommitEmail pulumi.StringPtrInput
	// Commit message when adding or updating the managed file.
	CommitMessage pulumi.StringPtrInput
	// The SHA of the commit that modified the file.
	CommitSha pulumi.StringPtrInput
	// The file content.
	Content pulumi.StringPtrInput
	// The path of the file to manage.
	File pulumi.StringPtrInput
	// Enable overwriting existing files
	OverwriteOnCreate pulumi.BoolPtrInput
	// The repository to create the file in.
	Repository pulumi.StringPtrInput
	// The SHA blob of the file.
	Sha pulumi.StringPtrInput
}

func (RepositoryFileState) ElementType

func (RepositoryFileState) ElementType() reflect.Type

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 RepositoryMilestone

type RepositoryMilestone struct {
	pulumi.CustomResourceState

	// A description of the milestone.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The milestone due date. In `yyyy-mm-dd` format.
	DueDate pulumi.StringPtrOutput `pulumi:"dueDate"`
	// The number of the milestone.
	Number pulumi.IntOutput `pulumi:"number"`
	// The owner of the GitHub Repository.
	Owner pulumi.StringOutput `pulumi:"owner"`
	// The name of the GitHub Repository.
	Repository pulumi.StringOutput `pulumi:"repository"`
	// The state of the milestone. Either `open` or `closed`. Default: `open`
	State pulumi.StringPtrOutput `pulumi:"state"`
	// The title of the milestone.
	Title pulumi.StringOutput `pulumi:"title"`
}

Provides a GitHub repository milestone resource.

This resource allows you to create and manage milestones for a GitHub Repository within an organization or user account.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.NewRepositoryMilestone(ctx, "example", &github.RepositoryMilestoneArgs{
			Owner:      pulumi.String("example-owner"),
			Repository: pulumi.String("example-repository"),
			Title:      pulumi.String("v1.1.0"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

A GitHub Repository Milestone can be imported using an ID made up of `owner/repository/number`, e.g.

```sh

$ pulumi import github:index/repositoryMilestone:RepositoryMilestone example example-owner/example-repository/1

```

func GetRepositoryMilestone

func GetRepositoryMilestone(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RepositoryMilestoneState, opts ...pulumi.ResourceOption) (*RepositoryMilestone, error)

GetRepositoryMilestone gets an existing RepositoryMilestone 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 NewRepositoryMilestone

func NewRepositoryMilestone(ctx *pulumi.Context,
	name string, args *RepositoryMilestoneArgs, opts ...pulumi.ResourceOption) (*RepositoryMilestone, error)

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

func (*RepositoryMilestone) ElementType

func (*RepositoryMilestone) ElementType() reflect.Type

func (*RepositoryMilestone) ToRepositoryMilestoneOutput

func (i *RepositoryMilestone) ToRepositoryMilestoneOutput() RepositoryMilestoneOutput

func (*RepositoryMilestone) ToRepositoryMilestoneOutputWithContext

func (i *RepositoryMilestone) ToRepositoryMilestoneOutputWithContext(ctx context.Context) RepositoryMilestoneOutput

type RepositoryMilestoneArgs

type RepositoryMilestoneArgs struct {
	// A description of the milestone.
	Description pulumi.StringPtrInput
	// The milestone due date. In `yyyy-mm-dd` format.
	DueDate pulumi.StringPtrInput
	// The owner of the GitHub Repository.
	Owner pulumi.StringInput
	// The name of the GitHub Repository.
	Repository pulumi.StringInput
	// The state of the milestone. Either `open` or `closed`. Default: `open`
	State pulumi.StringPtrInput
	// The title of the milestone.
	Title pulumi.StringInput
}

The set of arguments for constructing a RepositoryMilestone resource.

func (RepositoryMilestoneArgs) ElementType

func (RepositoryMilestoneArgs) ElementType() reflect.Type

type RepositoryMilestoneArray

type RepositoryMilestoneArray []RepositoryMilestoneInput

func (RepositoryMilestoneArray) ElementType

func (RepositoryMilestoneArray) ElementType() reflect.Type

func (RepositoryMilestoneArray) ToRepositoryMilestoneArrayOutput

func (i RepositoryMilestoneArray) ToRepositoryMilestoneArrayOutput() RepositoryMilestoneArrayOutput

func (RepositoryMilestoneArray) ToRepositoryMilestoneArrayOutputWithContext

func (i RepositoryMilestoneArray) ToRepositoryMilestoneArrayOutputWithContext(ctx context.Context) RepositoryMilestoneArrayOutput

type RepositoryMilestoneArrayInput

type RepositoryMilestoneArrayInput interface {
	pulumi.Input

	ToRepositoryMilestoneArrayOutput() RepositoryMilestoneArrayOutput
	ToRepositoryMilestoneArrayOutputWithContext(context.Context) RepositoryMilestoneArrayOutput
}

RepositoryMilestoneArrayInput is an input type that accepts RepositoryMilestoneArray and RepositoryMilestoneArrayOutput values. You can construct a concrete instance of `RepositoryMilestoneArrayInput` via:

RepositoryMilestoneArray{ RepositoryMilestoneArgs{...} }

type RepositoryMilestoneArrayOutput

type RepositoryMilestoneArrayOutput struct{ *pulumi.OutputState }

func (RepositoryMilestoneArrayOutput) ElementType

func (RepositoryMilestoneArrayOutput) Index

func (RepositoryMilestoneArrayOutput) ToRepositoryMilestoneArrayOutput

func (o RepositoryMilestoneArrayOutput) ToRepositoryMilestoneArrayOutput() RepositoryMilestoneArrayOutput

func (RepositoryMilestoneArrayOutput) ToRepositoryMilestoneArrayOutputWithContext

func (o RepositoryMilestoneArrayOutput) ToRepositoryMilestoneArrayOutputWithContext(ctx context.Context) RepositoryMilestoneArrayOutput

type RepositoryMilestoneInput

type RepositoryMilestoneInput interface {
	pulumi.Input

	ToRepositoryMilestoneOutput() RepositoryMilestoneOutput
	ToRepositoryMilestoneOutputWithContext(ctx context.Context) RepositoryMilestoneOutput
}

type RepositoryMilestoneMap

type RepositoryMilestoneMap map[string]RepositoryMilestoneInput

func (RepositoryMilestoneMap) ElementType

func (RepositoryMilestoneMap) ElementType() reflect.Type

func (RepositoryMilestoneMap) ToRepositoryMilestoneMapOutput

func (i RepositoryMilestoneMap) ToRepositoryMilestoneMapOutput() RepositoryMilestoneMapOutput

func (RepositoryMilestoneMap) ToRepositoryMilestoneMapOutputWithContext

func (i RepositoryMilestoneMap) ToRepositoryMilestoneMapOutputWithContext(ctx context.Context) RepositoryMilestoneMapOutput

type RepositoryMilestoneMapInput

type RepositoryMilestoneMapInput interface {
	pulumi.Input

	ToRepositoryMilestoneMapOutput() RepositoryMilestoneMapOutput
	ToRepositoryMilestoneMapOutputWithContext(context.Context) RepositoryMilestoneMapOutput
}

RepositoryMilestoneMapInput is an input type that accepts RepositoryMilestoneMap and RepositoryMilestoneMapOutput values. You can construct a concrete instance of `RepositoryMilestoneMapInput` via:

RepositoryMilestoneMap{ "key": RepositoryMilestoneArgs{...} }

type RepositoryMilestoneMapOutput

type RepositoryMilestoneMapOutput struct{ *pulumi.OutputState }

func (RepositoryMilestoneMapOutput) ElementType

func (RepositoryMilestoneMapOutput) MapIndex

func (RepositoryMilestoneMapOutput) ToRepositoryMilestoneMapOutput

func (o RepositoryMilestoneMapOutput) ToRepositoryMilestoneMapOutput() RepositoryMilestoneMapOutput

func (RepositoryMilestoneMapOutput) ToRepositoryMilestoneMapOutputWithContext

func (o RepositoryMilestoneMapOutput) ToRepositoryMilestoneMapOutputWithContext(ctx context.Context) RepositoryMilestoneMapOutput

type RepositoryMilestoneOutput

type RepositoryMilestoneOutput struct{ *pulumi.OutputState }

func (RepositoryMilestoneOutput) Description added in v4.15.0

A description of the milestone.

func (RepositoryMilestoneOutput) DueDate added in v4.15.0

The milestone due date. In `yyyy-mm-dd` format.

func (RepositoryMilestoneOutput) ElementType

func (RepositoryMilestoneOutput) ElementType() reflect.Type

func (RepositoryMilestoneOutput) Number added in v4.15.0

The number of the milestone.

func (RepositoryMilestoneOutput) Owner added in v4.15.0

The owner of the GitHub Repository.

func (RepositoryMilestoneOutput) Repository added in v4.15.0

The name of the GitHub Repository.

func (RepositoryMilestoneOutput) State added in v4.15.0

The state of the milestone. Either `open` or `closed`. Default: `open`

func (RepositoryMilestoneOutput) Title added in v4.15.0

The title of the milestone.

func (RepositoryMilestoneOutput) ToRepositoryMilestoneOutput

func (o RepositoryMilestoneOutput) ToRepositoryMilestoneOutput() RepositoryMilestoneOutput

func (RepositoryMilestoneOutput) ToRepositoryMilestoneOutputWithContext

func (o RepositoryMilestoneOutput) ToRepositoryMilestoneOutputWithContext(ctx context.Context) RepositoryMilestoneOutput

type RepositoryMilestoneState

type RepositoryMilestoneState struct {
	// A description of the milestone.
	Description pulumi.StringPtrInput
	// The milestone due date. In `yyyy-mm-dd` format.
	DueDate pulumi.StringPtrInput
	// The number of the milestone.
	Number pulumi.IntPtrInput
	// The owner of the GitHub Repository.
	Owner pulumi.StringPtrInput
	// The name of the GitHub Repository.
	Repository pulumi.StringPtrInput
	// The state of the milestone. Either `open` or `closed`. Default: `open`
	State pulumi.StringPtrInput
	// The title of the milestone.
	Title pulumi.StringPtrInput
}

func (RepositoryMilestoneState) ElementType

func (RepositoryMilestoneState) ElementType() reflect.Type

type RepositoryOutput

type RepositoryOutput struct{ *pulumi.OutputState }

func (RepositoryOutput) AllowAutoMerge added in v4.15.0

func (o RepositoryOutput) AllowAutoMerge() pulumi.BoolPtrOutput

Set to `true` to allow auto-merging pull requests on the repository.

func (RepositoryOutput) AllowMergeCommit added in v4.15.0

func (o RepositoryOutput) AllowMergeCommit() pulumi.BoolPtrOutput

Set to `false` to disable merge commits on the repository.

func (RepositoryOutput) AllowRebaseMerge added in v4.15.0

func (o RepositoryOutput) AllowRebaseMerge() pulumi.BoolPtrOutput

Set to `false` to disable rebase merges on the repository.

func (RepositoryOutput) AllowSquashMerge added in v4.15.0

func (o RepositoryOutput) AllowSquashMerge() pulumi.BoolPtrOutput

Set to `false` to disable squash merges on the repository.

func (RepositoryOutput) ArchiveOnDestroy added in v4.15.0

func (o RepositoryOutput) ArchiveOnDestroy() pulumi.BoolPtrOutput

Set to `true` to archive the repository instead of deleting on destroy.

func (RepositoryOutput) Archived added in v4.15.0

func (o RepositoryOutput) Archived() pulumi.BoolPtrOutput

Specifies if the repository should be archived. Defaults to `false`. **NOTE** Currently, the API does not support unarchiving.

func (RepositoryOutput) AutoInit added in v4.15.0

func (o RepositoryOutput) AutoInit() pulumi.BoolPtrOutput

Set to `true` to produce an initial commit in the repository.

func (RepositoryOutput) Branches added in v4.15.0

The list of this repository's branches. Each element of `branches` has the following attributes:

func (RepositoryOutput) DefaultBranch deprecated added in v4.15.0

func (o RepositoryOutput) DefaultBranch() pulumi.StringOutput

(Deprecated: Use `BranchDefault` resource instead) The name of the default branch of the repository. **NOTE:** This can only be set after a repository has already been created, and after a correct reference has been created for the target branch inside the repository. This means a user will have to omit this parameter from the initial repository creation and create the target branch inside of the repository prior to setting this attribute.

Deprecated: Use the github_branch_default resource instead

func (RepositoryOutput) DeleteBranchOnMerge added in v4.15.0

func (o RepositoryOutput) DeleteBranchOnMerge() pulumi.BoolPtrOutput

Automatically delete head branch after a pull request is merged. Defaults to `false`.

func (RepositoryOutput) Description added in v4.15.0

func (o RepositoryOutput) Description() pulumi.StringPtrOutput

A description of the repository.

func (RepositoryOutput) ElementType

func (RepositoryOutput) ElementType() reflect.Type

func (RepositoryOutput) Etag added in v4.15.0

func (RepositoryOutput) FullName added in v4.15.0

func (o RepositoryOutput) FullName() pulumi.StringOutput

A string of the form "orgname/reponame".

func (RepositoryOutput) GitCloneUrl added in v4.15.0

func (o RepositoryOutput) GitCloneUrl() pulumi.StringOutput

URL that can be provided to `git clone` to clone the repository anonymously via the git protocol.

func (RepositoryOutput) GitignoreTemplate added in v4.15.0

func (o RepositoryOutput) GitignoreTemplate() pulumi.StringPtrOutput

Use the [name of the template](https://github.com/github/gitignore) without the extension. For example, "Haskell".

func (RepositoryOutput) HasDownloads added in v4.15.0

func (o RepositoryOutput) HasDownloads() pulumi.BoolPtrOutput

Set to `true` to enable the (deprecated) downloads features on the repository.

func (RepositoryOutput) HasIssues added in v4.15.0

func (o RepositoryOutput) HasIssues() pulumi.BoolPtrOutput

Set to `true` to enable the GitHub Issues features on the repository.

func (RepositoryOutput) HasProjects added in v4.15.0

func (o RepositoryOutput) HasProjects() pulumi.BoolPtrOutput

Set to `true` to enable the GitHub Projects features on the repository. Per the GitHub [documentation](https://developer.github.com/v3/repos/#create) when in an organization that has disabled repository projects it will default to `false` and will otherwise default to `true`. If you specify `true` when it has been disabled it will return an error.

func (RepositoryOutput) HasWiki added in v4.15.0

Set to `true` to enable the GitHub Wiki features on the repository.

func (RepositoryOutput) HomepageUrl added in v4.15.0

func (o RepositoryOutput) HomepageUrl() pulumi.StringPtrOutput

URL of a page describing the project.

func (RepositoryOutput) HtmlUrl added in v4.15.0

func (o RepositoryOutput) HtmlUrl() pulumi.StringOutput

The absolute URL (including scheme) of the rendered GitHub Pages site e.g. `https://username.github.io`.

func (RepositoryOutput) HttpCloneUrl added in v4.15.0

func (o RepositoryOutput) HttpCloneUrl() pulumi.StringOutput

URL that can be provided to `git clone` to clone the repository via HTTPS.

func (RepositoryOutput) IgnoreVulnerabilityAlertsDuringRead added in v4.15.0

func (o RepositoryOutput) IgnoreVulnerabilityAlertsDuringRead() pulumi.BoolPtrOutput

Set to `true` to not call the vulnerability alerts endpoint so the resource can also be used without admin permissions during read.

func (RepositoryOutput) IsTemplate added in v4.15.0

func (o RepositoryOutput) IsTemplate() pulumi.BoolPtrOutput

Set to `true` to tell GitHub that this is a template repository.

func (RepositoryOutput) LicenseTemplate added in v4.15.0

func (o RepositoryOutput) LicenseTemplate() pulumi.StringPtrOutput

Use the [name of the template](https://github.com/github/choosealicense.com/tree/gh-pages/_licenses) without the extension. For example, "mit" or "mpl-2.0".

func (RepositoryOutput) MergeCommitMessage added in v4.17.0

func (o RepositoryOutput) MergeCommitMessage() pulumi.StringPtrOutput

Can be `PR_BODY`, `PR_TITLE`, or `BLANK` for a default merge commit message.

func (RepositoryOutput) MergeCommitTitle added in v4.17.0

func (o RepositoryOutput) MergeCommitTitle() pulumi.StringPtrOutput

Can be `PR_TITLE` or `MERGE_MESSAGE` for a default merge commit title.

func (RepositoryOutput) Name added in v4.15.0

The name of the repository.

func (RepositoryOutput) NodeId added in v4.15.0

GraphQL global node id for use with v4 API

func (RepositoryOutput) Pages added in v4.15.0

The repository's GitHub Pages configuration. See GitHub Pages Configuration below for details.

func (RepositoryOutput) Private deprecated added in v4.15.0

func (o RepositoryOutput) Private() pulumi.BoolOutput

Set to `true` to create a private repository. Repositories are created as public (e.g. open source) by default.

Deprecated: use visibility instead

func (RepositoryOutput) RepoId added in v4.15.0

func (o RepositoryOutput) RepoId() pulumi.IntOutput

GitHub ID for the repository

func (RepositoryOutput) SquashMergeCommitMessage added in v4.17.0

func (o RepositoryOutput) SquashMergeCommitMessage() pulumi.StringPtrOutput

Can be `PR_BODY`, `COMMIT_MESSAGES`, or `BLANK` for a default squash merge commit message.

func (RepositoryOutput) SquashMergeCommitTitle added in v4.17.0

func (o RepositoryOutput) SquashMergeCommitTitle() pulumi.StringPtrOutput

Can be `PR_TITLE` or `COMMIT_OR_PR_TITLE` for a default squash merge commit title.

func (RepositoryOutput) SshCloneUrl added in v4.15.0

func (o RepositoryOutput) SshCloneUrl() pulumi.StringOutput

URL that can be provided to `git clone` to clone the repository via SSH.

func (RepositoryOutput) SvnUrl added in v4.15.0

URL that can be provided to `svn checkout` to check out the repository via GitHub's Subversion protocol emulation.

func (RepositoryOutput) Template added in v4.15.0

Use a template repository to create this resource. See Template Repositories below for details.

func (RepositoryOutput) ToRepositoryOutput

func (o RepositoryOutput) ToRepositoryOutput() RepositoryOutput

func (RepositoryOutput) ToRepositoryOutputWithContext

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

func (RepositoryOutput) Topics added in v4.15.0

The list of topics of the repository.

func (RepositoryOutput) Visibility added in v4.15.0

func (o RepositoryOutput) Visibility() pulumi.StringOutput

Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, visibility can also be `internal`. The `visibility` parameter overrides the `private` parameter.

func (RepositoryOutput) VulnerabilityAlerts added in v4.15.0

func (o RepositoryOutput) VulnerabilityAlerts() pulumi.BoolPtrOutput

Set to `true` to enable security alerts for vulnerable dependencies. Enabling requires alerts to be enabled on the owner level. (Note for importing: GitHub enables the alerts on public repos but disables them on private repos by default.) See [GitHub Documentation](https://help.github.com/en/github/managing-security-vulnerabilities/about-security-alerts-for-vulnerable-dependencies) for details. Note that vulnerability alerts have not been successfully tested on any GitHub Enterprise instance and may be unavailable in those settings.

type RepositoryPages

type RepositoryPages struct {
	// The custom domain for the repository. This can only be set after the repository has been created.
	Cname *string `pulumi:"cname"`
	// Whether the rendered GitHub Pages site has a custom 404 page.
	Custom404 *bool `pulumi:"custom404"`
	// The absolute URL (including scheme) of the rendered GitHub Pages site e.g. `https://username.github.io`.
	HtmlUrl *string `pulumi:"htmlUrl"`
	// The source branch and directory for the rendered Pages site. See GitHub Pages Source below for details.
	Source RepositoryPagesSource `pulumi:"source"`
	// The GitHub Pages site's build status e.g. `building` or `built`.
	Status *string `pulumi:"status"`
	Url    *string `pulumi:"url"`
}

type RepositoryPagesArgs

type RepositoryPagesArgs struct {
	// The custom domain for the repository. This can only be set after the repository has been created.
	Cname pulumi.StringPtrInput `pulumi:"cname"`
	// Whether the rendered GitHub Pages site has a custom 404 page.
	Custom404 pulumi.BoolPtrInput `pulumi:"custom404"`
	// The absolute URL (including scheme) of the rendered GitHub Pages site e.g. `https://username.github.io`.
	HtmlUrl pulumi.StringPtrInput `pulumi:"htmlUrl"`
	// The source branch and directory for the rendered Pages site. See GitHub Pages Source below for details.
	Source RepositoryPagesSourceInput `pulumi:"source"`
	// The GitHub Pages site's build status e.g. `building` or `built`.
	Status pulumi.StringPtrInput `pulumi:"status"`
	Url    pulumi.StringPtrInput `pulumi:"url"`
}

func (RepositoryPagesArgs) ElementType

func (RepositoryPagesArgs) ElementType() reflect.Type

func (RepositoryPagesArgs) ToRepositoryPagesOutput

func (i RepositoryPagesArgs) ToRepositoryPagesOutput() RepositoryPagesOutput

func (RepositoryPagesArgs) ToRepositoryPagesOutputWithContext

func (i RepositoryPagesArgs) ToRepositoryPagesOutputWithContext(ctx context.Context) RepositoryPagesOutput

func (RepositoryPagesArgs) ToRepositoryPagesPtrOutput

func (i RepositoryPagesArgs) ToRepositoryPagesPtrOutput() RepositoryPagesPtrOutput

func (RepositoryPagesArgs) ToRepositoryPagesPtrOutputWithContext

func (i RepositoryPagesArgs) ToRepositoryPagesPtrOutputWithContext(ctx context.Context) RepositoryPagesPtrOutput

type RepositoryPagesInput

type RepositoryPagesInput interface {
	pulumi.Input

	ToRepositoryPagesOutput() RepositoryPagesOutput
	ToRepositoryPagesOutputWithContext(context.Context) RepositoryPagesOutput
}

RepositoryPagesInput is an input type that accepts RepositoryPagesArgs and RepositoryPagesOutput values. You can construct a concrete instance of `RepositoryPagesInput` via:

RepositoryPagesArgs{...}

type RepositoryPagesOutput

type RepositoryPagesOutput struct{ *pulumi.OutputState }

func (RepositoryPagesOutput) Cname

The custom domain for the repository. This can only be set after the repository has been created.

func (RepositoryPagesOutput) Custom404

Whether the rendered GitHub Pages site has a custom 404 page.

func (RepositoryPagesOutput) ElementType

func (RepositoryPagesOutput) ElementType() reflect.Type

func (RepositoryPagesOutput) HtmlUrl

The absolute URL (including scheme) of the rendered GitHub Pages site e.g. `https://username.github.io`.

func (RepositoryPagesOutput) Source

The source branch and directory for the rendered Pages site. See GitHub Pages Source below for details.

func (RepositoryPagesOutput) Status

The GitHub Pages site's build status e.g. `building` or `built`.

func (RepositoryPagesOutput) ToRepositoryPagesOutput

func (o RepositoryPagesOutput) ToRepositoryPagesOutput() RepositoryPagesOutput

func (RepositoryPagesOutput) ToRepositoryPagesOutputWithContext

func (o RepositoryPagesOutput) ToRepositoryPagesOutputWithContext(ctx context.Context) RepositoryPagesOutput

func (RepositoryPagesOutput) ToRepositoryPagesPtrOutput

func (o RepositoryPagesOutput) ToRepositoryPagesPtrOutput() RepositoryPagesPtrOutput

func (RepositoryPagesOutput) ToRepositoryPagesPtrOutputWithContext

func (o RepositoryPagesOutput) ToRepositoryPagesPtrOutputWithContext(ctx context.Context) RepositoryPagesPtrOutput

func (RepositoryPagesOutput) Url

type RepositoryPagesPtrInput

type RepositoryPagesPtrInput interface {
	pulumi.Input

	ToRepositoryPagesPtrOutput() RepositoryPagesPtrOutput
	ToRepositoryPagesPtrOutputWithContext(context.Context) RepositoryPagesPtrOutput
}

RepositoryPagesPtrInput is an input type that accepts RepositoryPagesArgs, RepositoryPagesPtr and RepositoryPagesPtrOutput values. You can construct a concrete instance of `RepositoryPagesPtrInput` via:

        RepositoryPagesArgs{...}

or:

        nil

type RepositoryPagesPtrOutput

type RepositoryPagesPtrOutput struct{ *pulumi.OutputState }

func (RepositoryPagesPtrOutput) Cname

The custom domain for the repository. This can only be set after the repository has been created.

func (RepositoryPagesPtrOutput) Custom404

Whether the rendered GitHub Pages site has a custom 404 page.

func (RepositoryPagesPtrOutput) Elem

func (RepositoryPagesPtrOutput) ElementType

func (RepositoryPagesPtrOutput) ElementType() reflect.Type

func (RepositoryPagesPtrOutput) HtmlUrl

The absolute URL (including scheme) of the rendered GitHub Pages site e.g. `https://username.github.io`.

func (RepositoryPagesPtrOutput) Source

The source branch and directory for the rendered Pages site. See GitHub Pages Source below for details.

func (RepositoryPagesPtrOutput) Status

The GitHub Pages site's build status e.g. `building` or `built`.

func (RepositoryPagesPtrOutput) ToRepositoryPagesPtrOutput

func (o RepositoryPagesPtrOutput) ToRepositoryPagesPtrOutput() RepositoryPagesPtrOutput

func (RepositoryPagesPtrOutput) ToRepositoryPagesPtrOutputWithContext

func (o RepositoryPagesPtrOutput) ToRepositoryPagesPtrOutputWithContext(ctx context.Context) RepositoryPagesPtrOutput

func (RepositoryPagesPtrOutput) Url

type RepositoryPagesSource

type RepositoryPagesSource struct {
	// The repository branch used to publish the site's source files. (i.e. `main` or `gh-pages`.
	Branch string `pulumi:"branch"`
	// The repository directory from which the site publishes (Default: `/`).
	Path *string `pulumi:"path"`
}

type RepositoryPagesSourceArgs

type RepositoryPagesSourceArgs struct {
	// The repository branch used to publish the site's source files. (i.e. `main` or `gh-pages`.
	Branch pulumi.StringInput `pulumi:"branch"`
	// The repository directory from which the site publishes (Default: `/`).
	Path pulumi.StringPtrInput `pulumi:"path"`
}

func (RepositoryPagesSourceArgs) ElementType

func (RepositoryPagesSourceArgs) ElementType() reflect.Type

func (RepositoryPagesSourceArgs) ToRepositoryPagesSourceOutput

func (i RepositoryPagesSourceArgs) ToRepositoryPagesSourceOutput() RepositoryPagesSourceOutput

func (RepositoryPagesSourceArgs) ToRepositoryPagesSourceOutputWithContext

func (i RepositoryPagesSourceArgs) ToRepositoryPagesSourceOutputWithContext(ctx context.Context) RepositoryPagesSourceOutput

func (RepositoryPagesSourceArgs) ToRepositoryPagesSourcePtrOutput

func (i RepositoryPagesSourceArgs) ToRepositoryPagesSourcePtrOutput() RepositoryPagesSourcePtrOutput

func (RepositoryPagesSourceArgs) ToRepositoryPagesSourcePtrOutputWithContext

func (i RepositoryPagesSourceArgs) ToRepositoryPagesSourcePtrOutputWithContext(ctx context.Context) RepositoryPagesSourcePtrOutput

type RepositoryPagesSourceInput

type RepositoryPagesSourceInput interface {
	pulumi.Input

	ToRepositoryPagesSourceOutput() RepositoryPagesSourceOutput
	ToRepositoryPagesSourceOutputWithContext(context.Context) RepositoryPagesSourceOutput
}

RepositoryPagesSourceInput is an input type that accepts RepositoryPagesSourceArgs and RepositoryPagesSourceOutput values. You can construct a concrete instance of `RepositoryPagesSourceInput` via:

RepositoryPagesSourceArgs{...}

type RepositoryPagesSourceOutput

type RepositoryPagesSourceOutput struct{ *pulumi.OutputState }

func (RepositoryPagesSourceOutput) Branch

The repository branch used to publish the site's source files. (i.e. `main` or `gh-pages`.

func (RepositoryPagesSourceOutput) ElementType

func (RepositoryPagesSourceOutput) Path

The repository directory from which the site publishes (Default: `/`).

func (RepositoryPagesSourceOutput) ToRepositoryPagesSourceOutput

func (o RepositoryPagesSourceOutput) ToRepositoryPagesSourceOutput() RepositoryPagesSourceOutput

func (RepositoryPagesSourceOutput) ToRepositoryPagesSourceOutputWithContext

func (o RepositoryPagesSourceOutput) ToRepositoryPagesSourceOutputWithContext(ctx context.Context) RepositoryPagesSourceOutput

func (RepositoryPagesSourceOutput) ToRepositoryPagesSourcePtrOutput

func (o RepositoryPagesSourceOutput) ToRepositoryPagesSourcePtrOutput() RepositoryPagesSourcePtrOutput

func (RepositoryPagesSourceOutput) ToRepositoryPagesSourcePtrOutputWithContext

func (o RepositoryPagesSourceOutput) ToRepositoryPagesSourcePtrOutputWithContext(ctx context.Context) RepositoryPagesSourcePtrOutput

type RepositoryPagesSourcePtrInput

type RepositoryPagesSourcePtrInput interface {
	pulumi.Input

	ToRepositoryPagesSourcePtrOutput() RepositoryPagesSourcePtrOutput
	ToRepositoryPagesSourcePtrOutputWithContext(context.Context) RepositoryPagesSourcePtrOutput
}

RepositoryPagesSourcePtrInput is an input type that accepts RepositoryPagesSourceArgs, RepositoryPagesSourcePtr and RepositoryPagesSourcePtrOutput values. You can construct a concrete instance of `RepositoryPagesSourcePtrInput` via:

        RepositoryPagesSourceArgs{...}

or:

        nil

type RepositoryPagesSourcePtrOutput

type RepositoryPagesSourcePtrOutput struct{ *pulumi.OutputState }

func (RepositoryPagesSourcePtrOutput) Branch

The repository branch used to publish the site's source files. (i.e. `main` or `gh-pages`.

func (RepositoryPagesSourcePtrOutput) Elem

func (RepositoryPagesSourcePtrOutput) ElementType

func (RepositoryPagesSourcePtrOutput) Path

The repository directory from which the site publishes (Default: `/`).

func (RepositoryPagesSourcePtrOutput) ToRepositoryPagesSourcePtrOutput

func (o RepositoryPagesSourcePtrOutput) ToRepositoryPagesSourcePtrOutput() RepositoryPagesSourcePtrOutput

func (RepositoryPagesSourcePtrOutput) ToRepositoryPagesSourcePtrOutputWithContext

func (o RepositoryPagesSourcePtrOutput) ToRepositoryPagesSourcePtrOutputWithContext(ctx context.Context) RepositoryPagesSourcePtrOutput

type RepositoryProject

type RepositoryProject struct {
	pulumi.CustomResourceState

	// The body of the project.
	Body pulumi.StringPtrOutput `pulumi:"body"`
	Etag pulumi.StringOutput    `pulumi:"etag"`
	// The name of the project.
	Name pulumi.StringOutput `pulumi:"name"`
	// The repository of the project.
	Repository pulumi.StringOutput `pulumi:"repository"`
	// URL of the project
	Url pulumi.StringOutput `pulumi:"url"`
}

This resource allows you to create and manage projects for GitHub repository.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := github.NewRepository(ctx, "example", &github.RepositoryArgs{
			Description: pulumi.String("My awesome codebase"),
			HasProjects: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = github.NewRepositoryProject(ctx, "project", &github.RepositoryProjectArgs{
			Body:       pulumi.String("This is a repository project."),
			Repository: example.Name,
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetRepositoryProject

func GetRepositoryProject(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RepositoryProjectState, opts ...pulumi.ResourceOption) (*RepositoryProject, error)

GetRepositoryProject gets an existing RepositoryProject 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 NewRepositoryProject

func NewRepositoryProject(ctx *pulumi.Context,
	name string, args *RepositoryProjectArgs, opts ...pulumi.ResourceOption) (*RepositoryProject, error)

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

func (*RepositoryProject) ElementType

func (*RepositoryProject) ElementType() reflect.Type

func (*RepositoryProject) ToRepositoryProjectOutput

func (i *RepositoryProject) ToRepositoryProjectOutput() RepositoryProjectOutput

func (*RepositoryProject) ToRepositoryProjectOutputWithContext

func (i *RepositoryProject) ToRepositoryProjectOutputWithContext(ctx context.Context) RepositoryProjectOutput

type RepositoryProjectArgs

type RepositoryProjectArgs struct {
	// The body of the project.
	Body pulumi.StringPtrInput
	// The name of the project.
	Name pulumi.StringPtrInput
	// The repository of the project.
	Repository pulumi.StringInput
}

The set of arguments for constructing a RepositoryProject resource.

func (RepositoryProjectArgs) ElementType

func (RepositoryProjectArgs) ElementType() reflect.Type

type RepositoryProjectArray

type RepositoryProjectArray []RepositoryProjectInput

func (RepositoryProjectArray) ElementType

func (RepositoryProjectArray) ElementType() reflect.Type

func (RepositoryProjectArray) ToRepositoryProjectArrayOutput

func (i RepositoryProjectArray) ToRepositoryProjectArrayOutput() RepositoryProjectArrayOutput

func (RepositoryProjectArray) ToRepositoryProjectArrayOutputWithContext

func (i RepositoryProjectArray) ToRepositoryProjectArrayOutputWithContext(ctx context.Context) RepositoryProjectArrayOutput

type RepositoryProjectArrayInput

type RepositoryProjectArrayInput interface {
	pulumi.Input

	ToRepositoryProjectArrayOutput() RepositoryProjectArrayOutput
	ToRepositoryProjectArrayOutputWithContext(context.Context) RepositoryProjectArrayOutput
}

RepositoryProjectArrayInput is an input type that accepts RepositoryProjectArray and RepositoryProjectArrayOutput values. You can construct a concrete instance of `RepositoryProjectArrayInput` via:

RepositoryProjectArray{ RepositoryProjectArgs{...} }

type RepositoryProjectArrayOutput

type RepositoryProjectArrayOutput struct{ *pulumi.OutputState }

func (RepositoryProjectArrayOutput) ElementType

func (RepositoryProjectArrayOutput) Index

func (RepositoryProjectArrayOutput) ToRepositoryProjectArrayOutput

func (o RepositoryProjectArrayOutput) ToRepositoryProjectArrayOutput() RepositoryProjectArrayOutput

func (RepositoryProjectArrayOutput) ToRepositoryProjectArrayOutputWithContext

func (o RepositoryProjectArrayOutput) ToRepositoryProjectArrayOutputWithContext(ctx context.Context) RepositoryProjectArrayOutput

type RepositoryProjectInput

type RepositoryProjectInput interface {
	pulumi.Input

	ToRepositoryProjectOutput() RepositoryProjectOutput
	ToRepositoryProjectOutputWithContext(ctx context.Context) RepositoryProjectOutput
}

type RepositoryProjectMap

type RepositoryProjectMap map[string]RepositoryProjectInput

func (RepositoryProjectMap) ElementType

func (RepositoryProjectMap) ElementType() reflect.Type

func (RepositoryProjectMap) ToRepositoryProjectMapOutput

func (i RepositoryProjectMap) ToRepositoryProjectMapOutput() RepositoryProjectMapOutput

func (RepositoryProjectMap) ToRepositoryProjectMapOutputWithContext

func (i RepositoryProjectMap) ToRepositoryProjectMapOutputWithContext(ctx context.Context) RepositoryProjectMapOutput

type RepositoryProjectMapInput

type RepositoryProjectMapInput interface {
	pulumi.Input

	ToRepositoryProjectMapOutput() RepositoryProjectMapOutput
	ToRepositoryProjectMapOutputWithContext(context.Context) RepositoryProjectMapOutput
}

RepositoryProjectMapInput is an input type that accepts RepositoryProjectMap and RepositoryProjectMapOutput values. You can construct a concrete instance of `RepositoryProjectMapInput` via:

RepositoryProjectMap{ "key": RepositoryProjectArgs{...} }

type RepositoryProjectMapOutput

type RepositoryProjectMapOutput struct{ *pulumi.OutputState }

func (RepositoryProjectMapOutput) ElementType

func (RepositoryProjectMapOutput) ElementType() reflect.Type

func (RepositoryProjectMapOutput) MapIndex

func (RepositoryProjectMapOutput) ToRepositoryProjectMapOutput

func (o RepositoryProjectMapOutput) ToRepositoryProjectMapOutput() RepositoryProjectMapOutput

func (RepositoryProjectMapOutput) ToRepositoryProjectMapOutputWithContext

func (o RepositoryProjectMapOutput) ToRepositoryProjectMapOutputWithContext(ctx context.Context) RepositoryProjectMapOutput

type RepositoryProjectOutput

type RepositoryProjectOutput struct{ *pulumi.OutputState }

func (RepositoryProjectOutput) Body added in v4.15.0

The body of the project.

func (RepositoryProjectOutput) ElementType

func (RepositoryProjectOutput) ElementType() reflect.Type

func (RepositoryProjectOutput) Etag added in v4.15.0

func (RepositoryProjectOutput) Name added in v4.15.0

The name of the project.

func (RepositoryProjectOutput) Repository added in v4.15.0

The repository of the project.

func (RepositoryProjectOutput) ToRepositoryProjectOutput

func (o RepositoryProjectOutput) ToRepositoryProjectOutput() RepositoryProjectOutput

func (RepositoryProjectOutput) ToRepositoryProjectOutputWithContext

func (o RepositoryProjectOutput) ToRepositoryProjectOutputWithContext(ctx context.Context) RepositoryProjectOutput

func (RepositoryProjectOutput) Url added in v4.15.0

URL of the project

type RepositoryProjectState

type RepositoryProjectState struct {
	// The body of the project.
	Body pulumi.StringPtrInput
	Etag pulumi.StringPtrInput
	// The name of the project.
	Name pulumi.StringPtrInput
	// The repository of the project.
	Repository pulumi.StringPtrInput
	// URL of the project
	Url pulumi.StringPtrInput
}

func (RepositoryProjectState) ElementType

func (RepositoryProjectState) ElementType() reflect.Type

type RepositoryPullRequest

type RepositoryPullRequest struct {
	pulumi.CustomResourceState

	// Name of the branch serving as the base of the Pull Request.
	BaseRef pulumi.StringOutput `pulumi:"baseRef"`
	// Name of the base repository to retrieve the Pull Requests from.
	BaseRepository pulumi.StringOutput `pulumi:"baseRepository"`
	// Head commit SHA of the Pull Request base.
	BaseSha pulumi.StringOutput `pulumi:"baseSha"`
	// Body of the Pull Request.
	Body pulumi.StringPtrOutput `pulumi:"body"`
	// Indicates Whether this Pull Request is a draft.
	Draft pulumi.BoolOutput `pulumi:"draft"`
	// Name of the branch serving as the head of the Pull Request.
	HeadRef pulumi.StringOutput `pulumi:"headRef"`
	// Head commit SHA of the Pull Request head.
	HeadSha pulumi.StringOutput `pulumi:"headSha"`
	// List of label names set on the Pull Request.
	Labels pulumi.StringArrayOutput `pulumi:"labels"`
	// Controls whether the base repository maintainers can modify the Pull Request. Default: false.
	MaintainerCanModify pulumi.BoolPtrOutput `pulumi:"maintainerCanModify"`
	// The number of the Pull Request within the repository.
	Number pulumi.IntOutput `pulumi:"number"`
	// Unix timestamp indicating the Pull Request creation time.
	OpenedAt pulumi.IntOutput `pulumi:"openedAt"`
	// GitHub login of the user who opened the Pull Request.
	OpenedBy pulumi.StringOutput `pulumi:"openedBy"`
	// Owner of the repository. If not provided, the provider's default owner is used.
	Owner pulumi.StringPtrOutput `pulumi:"owner"`
	// the current Pull Request state - can be "open", "closed" or "merged".
	State pulumi.StringOutput `pulumi:"state"`
	// The title of the Pull Request.
	Title pulumi.StringOutput `pulumi:"title"`
	// The timestamp of the last Pull Request update.
	UpdatedAt pulumi.IntOutput `pulumi:"updatedAt"`
}

This resource allows you to create and manage PullRequests for repositories within your GitHub organization or personal account.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.NewRepositoryPullRequest(ctx, "example", &github.RepositoryPullRequestArgs{
			BaseRef:        pulumi.String("main"),
			BaseRepository: pulumi.String("example-repository"),
			Body:           pulumi.String("This will change everything"),
			HeadRef:        pulumi.String("feature-branch"),
			Title:          pulumi.String("My newest feature"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetRepositoryPullRequest

func GetRepositoryPullRequest(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RepositoryPullRequestState, opts ...pulumi.ResourceOption) (*RepositoryPullRequest, error)

GetRepositoryPullRequest gets an existing RepositoryPullRequest 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 NewRepositoryPullRequest

func NewRepositoryPullRequest(ctx *pulumi.Context,
	name string, args *RepositoryPullRequestArgs, opts ...pulumi.ResourceOption) (*RepositoryPullRequest, error)

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

func (*RepositoryPullRequest) ElementType

func (*RepositoryPullRequest) ElementType() reflect.Type

func (*RepositoryPullRequest) ToRepositoryPullRequestOutput

func (i *RepositoryPullRequest) ToRepositoryPullRequestOutput() RepositoryPullRequestOutput

func (*RepositoryPullRequest) ToRepositoryPullRequestOutputWithContext

func (i *RepositoryPullRequest) ToRepositoryPullRequestOutputWithContext(ctx context.Context) RepositoryPullRequestOutput

type RepositoryPullRequestArgs

type RepositoryPullRequestArgs struct {
	// Name of the branch serving as the base of the Pull Request.
	BaseRef pulumi.StringInput
	// Name of the base repository to retrieve the Pull Requests from.
	BaseRepository pulumi.StringInput
	// Body of the Pull Request.
	Body pulumi.StringPtrInput
	// Name of the branch serving as the head of the Pull Request.
	HeadRef pulumi.StringInput
	// Controls whether the base repository maintainers can modify the Pull Request. Default: false.
	MaintainerCanModify pulumi.BoolPtrInput
	// Owner of the repository. If not provided, the provider's default owner is used.
	Owner pulumi.StringPtrInput
	// The title of the Pull Request.
	Title pulumi.StringInput
}

The set of arguments for constructing a RepositoryPullRequest resource.

func (RepositoryPullRequestArgs) ElementType

func (RepositoryPullRequestArgs) ElementType() reflect.Type

type RepositoryPullRequestArray

type RepositoryPullRequestArray []RepositoryPullRequestInput

func (RepositoryPullRequestArray) ElementType

func (RepositoryPullRequestArray) ElementType() reflect.Type

func (RepositoryPullRequestArray) ToRepositoryPullRequestArrayOutput

func (i RepositoryPullRequestArray) ToRepositoryPullRequestArrayOutput() RepositoryPullRequestArrayOutput

func (RepositoryPullRequestArray) ToRepositoryPullRequestArrayOutputWithContext

func (i RepositoryPullRequestArray) ToRepositoryPullRequestArrayOutputWithContext(ctx context.Context) RepositoryPullRequestArrayOutput

type RepositoryPullRequestArrayInput

type RepositoryPullRequestArrayInput interface {
	pulumi.Input

	ToRepositoryPullRequestArrayOutput() RepositoryPullRequestArrayOutput
	ToRepositoryPullRequestArrayOutputWithContext(context.Context) RepositoryPullRequestArrayOutput
}

RepositoryPullRequestArrayInput is an input type that accepts RepositoryPullRequestArray and RepositoryPullRequestArrayOutput values. You can construct a concrete instance of `RepositoryPullRequestArrayInput` via:

RepositoryPullRequestArray{ RepositoryPullRequestArgs{...} }

type RepositoryPullRequestArrayOutput

type RepositoryPullRequestArrayOutput struct{ *pulumi.OutputState }

func (RepositoryPullRequestArrayOutput) ElementType

func (RepositoryPullRequestArrayOutput) Index

func (RepositoryPullRequestArrayOutput) ToRepositoryPullRequestArrayOutput

func (o RepositoryPullRequestArrayOutput) ToRepositoryPullRequestArrayOutput() RepositoryPullRequestArrayOutput

func (RepositoryPullRequestArrayOutput) ToRepositoryPullRequestArrayOutputWithContext

func (o RepositoryPullRequestArrayOutput) ToRepositoryPullRequestArrayOutputWithContext(ctx context.Context) RepositoryPullRequestArrayOutput

type RepositoryPullRequestInput

type RepositoryPullRequestInput interface {
	pulumi.Input

	ToRepositoryPullRequestOutput() RepositoryPullRequestOutput
	ToRepositoryPullRequestOutputWithContext(ctx context.Context) RepositoryPullRequestOutput
}

type RepositoryPullRequestMap

type RepositoryPullRequestMap map[string]RepositoryPullRequestInput

func (RepositoryPullRequestMap) ElementType

func (RepositoryPullRequestMap) ElementType() reflect.Type

func (RepositoryPullRequestMap) ToRepositoryPullRequestMapOutput

func (i RepositoryPullRequestMap) ToRepositoryPullRequestMapOutput() RepositoryPullRequestMapOutput

func (RepositoryPullRequestMap) ToRepositoryPullRequestMapOutputWithContext

func (i RepositoryPullRequestMap) ToRepositoryPullRequestMapOutputWithContext(ctx context.Context) RepositoryPullRequestMapOutput

type RepositoryPullRequestMapInput

type RepositoryPullRequestMapInput interface {
	pulumi.Input

	ToRepositoryPullRequestMapOutput() RepositoryPullRequestMapOutput
	ToRepositoryPullRequestMapOutputWithContext(context.Context) RepositoryPullRequestMapOutput
}

RepositoryPullRequestMapInput is an input type that accepts RepositoryPullRequestMap and RepositoryPullRequestMapOutput values. You can construct a concrete instance of `RepositoryPullRequestMapInput` via:

RepositoryPullRequestMap{ "key": RepositoryPullRequestArgs{...} }

type RepositoryPullRequestMapOutput

type RepositoryPullRequestMapOutput struct{ *pulumi.OutputState }

func (RepositoryPullRequestMapOutput) ElementType

func (RepositoryPullRequestMapOutput) MapIndex

func (RepositoryPullRequestMapOutput) ToRepositoryPullRequestMapOutput

func (o RepositoryPullRequestMapOutput) ToRepositoryPullRequestMapOutput() RepositoryPullRequestMapOutput

func (RepositoryPullRequestMapOutput) ToRepositoryPullRequestMapOutputWithContext

func (o RepositoryPullRequestMapOutput) ToRepositoryPullRequestMapOutputWithContext(ctx context.Context) RepositoryPullRequestMapOutput

type RepositoryPullRequestOutput

type RepositoryPullRequestOutput struct{ *pulumi.OutputState }

func (RepositoryPullRequestOutput) BaseRef added in v4.15.0

Name of the branch serving as the base of the Pull Request.

func (RepositoryPullRequestOutput) BaseRepository added in v4.15.0

func (o RepositoryPullRequestOutput) BaseRepository() pulumi.StringOutput

Name of the base repository to retrieve the Pull Requests from.

func (RepositoryPullRequestOutput) BaseSha added in v4.15.0

Head commit SHA of the Pull Request base.

func (RepositoryPullRequestOutput) Body added in v4.15.0

Body of the Pull Request.

func (RepositoryPullRequestOutput) Draft added in v4.15.0

Indicates Whether this Pull Request is a draft.

func (RepositoryPullRequestOutput) ElementType

func (RepositoryPullRequestOutput) HeadRef added in v4.15.0

Name of the branch serving as the head of the Pull Request.

func (RepositoryPullRequestOutput) HeadSha added in v4.15.0

Head commit SHA of the Pull Request head.

func (RepositoryPullRequestOutput) Labels added in v4.15.0

List of label names set on the Pull Request.

func (RepositoryPullRequestOutput) MaintainerCanModify added in v4.15.0

func (o RepositoryPullRequestOutput) MaintainerCanModify() pulumi.BoolPtrOutput

Controls whether the base repository maintainers can modify the Pull Request. Default: false.

func (RepositoryPullRequestOutput) Number added in v4.15.0

The number of the Pull Request within the repository.

func (RepositoryPullRequestOutput) OpenedAt added in v4.15.0

Unix timestamp indicating the Pull Request creation time.

func (RepositoryPullRequestOutput) OpenedBy added in v4.15.0

GitHub login of the user who opened the Pull Request.

func (RepositoryPullRequestOutput) Owner added in v4.15.0

Owner of the repository. If not provided, the provider's default owner is used.

func (RepositoryPullRequestOutput) State added in v4.15.0

the current Pull Request state - can be "open", "closed" or "merged".

func (RepositoryPullRequestOutput) Title added in v4.15.0

The title of the Pull Request.

func (RepositoryPullRequestOutput) ToRepositoryPullRequestOutput

func (o RepositoryPullRequestOutput) ToRepositoryPullRequestOutput() RepositoryPullRequestOutput

func (RepositoryPullRequestOutput) ToRepositoryPullRequestOutputWithContext

func (o RepositoryPullRequestOutput) ToRepositoryPullRequestOutputWithContext(ctx context.Context) RepositoryPullRequestOutput

func (RepositoryPullRequestOutput) UpdatedAt added in v4.15.0

The timestamp of the last Pull Request update.

type RepositoryPullRequestState

type RepositoryPullRequestState struct {
	// Name of the branch serving as the base of the Pull Request.
	BaseRef pulumi.StringPtrInput
	// Name of the base repository to retrieve the Pull Requests from.
	BaseRepository pulumi.StringPtrInput
	// Head commit SHA of the Pull Request base.
	BaseSha pulumi.StringPtrInput
	// Body of the Pull Request.
	Body pulumi.StringPtrInput
	// Indicates Whether this Pull Request is a draft.
	Draft pulumi.BoolPtrInput
	// Name of the branch serving as the head of the Pull Request.
	HeadRef pulumi.StringPtrInput
	// Head commit SHA of the Pull Request head.
	HeadSha pulumi.StringPtrInput
	// List of label names set on the Pull Request.
	Labels pulumi.StringArrayInput
	// Controls whether the base repository maintainers can modify the Pull Request. Default: false.
	MaintainerCanModify pulumi.BoolPtrInput
	// The number of the Pull Request within the repository.
	Number pulumi.IntPtrInput
	// Unix timestamp indicating the Pull Request creation time.
	OpenedAt pulumi.IntPtrInput
	// GitHub login of the user who opened the Pull Request.
	OpenedBy pulumi.StringPtrInput
	// Owner of the repository. If not provided, the provider's default owner is used.
	Owner pulumi.StringPtrInput
	// the current Pull Request state - can be "open", "closed" or "merged".
	State pulumi.StringPtrInput
	// The title of the Pull Request.
	Title pulumi.StringPtrInput
	// The timestamp of the last Pull Request update.
	UpdatedAt pulumi.IntPtrInput
}

func (RepositoryPullRequestState) ElementType

func (RepositoryPullRequestState) ElementType() reflect.Type

type RepositoryState

type RepositoryState struct {
	// Set to `true` to allow auto-merging pull requests on the repository.
	AllowAutoMerge pulumi.BoolPtrInput
	// Set to `false` to disable merge commits on the repository.
	AllowMergeCommit pulumi.BoolPtrInput
	// Set to `false` to disable rebase merges on the repository.
	AllowRebaseMerge pulumi.BoolPtrInput
	// Set to `false` to disable squash merges on the repository.
	AllowSquashMerge pulumi.BoolPtrInput
	// Set to `true` to archive the repository instead of deleting on destroy.
	ArchiveOnDestroy pulumi.BoolPtrInput
	// Specifies if the repository should be archived. Defaults to `false`. **NOTE** Currently, the API does not support unarchiving.
	Archived pulumi.BoolPtrInput
	// Set to `true` to produce an initial commit in the repository.
	AutoInit pulumi.BoolPtrInput
	// The list of this repository's branches. Each element of `branches` has the following attributes:
	Branches RepositoryBranchArrayInput
	// (Deprecated: Use `BranchDefault` resource instead) The name of the default branch of the repository. **NOTE:** This can only be set after a repository has already been created,
	// and after a correct reference has been created for the target branch inside the repository. This means a user will have to omit this parameter from the
	// initial repository creation and create the target branch inside of the repository prior to setting this attribute.
	//
	// Deprecated: Use the github_branch_default resource instead
	DefaultBranch pulumi.StringPtrInput
	// Automatically delete head branch after a pull request is merged. Defaults to `false`.
	DeleteBranchOnMerge pulumi.BoolPtrInput
	// A description of the repository.
	Description pulumi.StringPtrInput
	Etag        pulumi.StringPtrInput
	// A string of the form "orgname/reponame".
	FullName pulumi.StringPtrInput
	// URL that can be provided to `git clone` to clone the repository anonymously via the git protocol.
	GitCloneUrl pulumi.StringPtrInput
	// Use the [name of the template](https://github.com/github/gitignore) without the extension. For example, "Haskell".
	GitignoreTemplate pulumi.StringPtrInput
	// Set to `true` to enable the (deprecated) downloads features on the repository.
	HasDownloads pulumi.BoolPtrInput
	// Set to `true` to enable the GitHub Issues features
	// on the repository.
	HasIssues pulumi.BoolPtrInput
	// Set to `true` to enable the GitHub Projects features on the repository. Per the GitHub [documentation](https://developer.github.com/v3/repos/#create) when in an organization that has disabled repository projects it will default to `false` and will otherwise default to `true`. If you specify `true` when it has been disabled it will return an error.
	HasProjects pulumi.BoolPtrInput
	// Set to `true` to enable the GitHub Wiki features on
	// the repository.
	HasWiki pulumi.BoolPtrInput
	// URL of a page describing the project.
	HomepageUrl pulumi.StringPtrInput
	// The absolute URL (including scheme) of the rendered GitHub Pages site e.g. `https://username.github.io`.
	HtmlUrl pulumi.StringPtrInput
	// URL that can be provided to `git clone` to clone the repository via HTTPS.
	HttpCloneUrl pulumi.StringPtrInput
	// Set to `true` to not call the vulnerability alerts endpoint so the resource can also be used without admin permissions during read.
	IgnoreVulnerabilityAlertsDuringRead pulumi.BoolPtrInput
	// Set to `true` to tell GitHub that this is a template repository.
	IsTemplate pulumi.BoolPtrInput
	// Use the [name of the template](https://github.com/github/choosealicense.com/tree/gh-pages/_licenses) without the extension. For example, "mit" or "mpl-2.0".
	LicenseTemplate pulumi.StringPtrInput
	// Can be `PR_BODY`, `PR_TITLE`, or `BLANK` for a default merge commit message.
	MergeCommitMessage pulumi.StringPtrInput
	// Can be `PR_TITLE` or `MERGE_MESSAGE` for a default merge commit title.
	MergeCommitTitle pulumi.StringPtrInput
	// The name of the repository.
	Name pulumi.StringPtrInput
	// GraphQL global node id for use with v4 API
	NodeId pulumi.StringPtrInput
	// The repository's GitHub Pages configuration. See GitHub Pages Configuration below for details.
	Pages RepositoryPagesPtrInput
	// Set to `true` to create a private repository.
	// Repositories are created as public (e.g. open source) by default.
	//
	// Deprecated: use visibility instead
	Private pulumi.BoolPtrInput
	// GitHub ID for the repository
	RepoId pulumi.IntPtrInput
	// Can be `PR_BODY`, `COMMIT_MESSAGES`, or `BLANK` for a default squash merge commit message.
	SquashMergeCommitMessage pulumi.StringPtrInput
	// Can be `PR_TITLE` or `COMMIT_OR_PR_TITLE` for a default squash merge commit title.
	SquashMergeCommitTitle pulumi.StringPtrInput
	// URL that can be provided to `git clone` to clone the repository via SSH.
	SshCloneUrl pulumi.StringPtrInput
	// URL that can be provided to `svn checkout` to check out the repository via GitHub's Subversion protocol emulation.
	SvnUrl pulumi.StringPtrInput
	// Use a template repository to create this resource. See Template Repositories below for details.
	Template RepositoryTemplatePtrInput
	// The list of topics of the repository.
	Topics pulumi.StringArrayInput
	// Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, visibility can also be `internal`. The `visibility` parameter overrides the `private` parameter.
	Visibility pulumi.StringPtrInput
	// Set to `true` to enable security alerts for vulnerable dependencies. Enabling requires alerts to be enabled on the owner level. (Note for importing: GitHub enables the alerts on public repos but disables them on private repos by default.) See [GitHub Documentation](https://help.github.com/en/github/managing-security-vulnerabilities/about-security-alerts-for-vulnerable-dependencies) for details. Note that vulnerability alerts have not been successfully tested on any GitHub Enterprise instance and may be unavailable in those settings.
	VulnerabilityAlerts pulumi.BoolPtrInput
}

func (RepositoryState) ElementType

func (RepositoryState) ElementType() reflect.Type

type RepositoryTemplate

type RepositoryTemplate struct {
	Owner      string `pulumi:"owner"`
	Repository string `pulumi:"repository"`
}

type RepositoryTemplateArgs

type RepositoryTemplateArgs struct {
	Owner      pulumi.StringInput `pulumi:"owner"`
	Repository pulumi.StringInput `pulumi:"repository"`
}

func (RepositoryTemplateArgs) ElementType

func (RepositoryTemplateArgs) ElementType() reflect.Type

func (RepositoryTemplateArgs) ToRepositoryTemplateOutput

func (i RepositoryTemplateArgs) ToRepositoryTemplateOutput() RepositoryTemplateOutput

func (RepositoryTemplateArgs) ToRepositoryTemplateOutputWithContext

func (i RepositoryTemplateArgs) ToRepositoryTemplateOutputWithContext(ctx context.Context) RepositoryTemplateOutput

func (RepositoryTemplateArgs) ToRepositoryTemplatePtrOutput

func (i RepositoryTemplateArgs) ToRepositoryTemplatePtrOutput() RepositoryTemplatePtrOutput

func (RepositoryTemplateArgs) ToRepositoryTemplatePtrOutputWithContext

func (i RepositoryTemplateArgs) ToRepositoryTemplatePtrOutputWithContext(ctx context.Context) RepositoryTemplatePtrOutput

type RepositoryTemplateInput

type RepositoryTemplateInput interface {
	pulumi.Input

	ToRepositoryTemplateOutput() RepositoryTemplateOutput
	ToRepositoryTemplateOutputWithContext(context.Context) RepositoryTemplateOutput
}

RepositoryTemplateInput is an input type that accepts RepositoryTemplateArgs and RepositoryTemplateOutput values. You can construct a concrete instance of `RepositoryTemplateInput` via:

RepositoryTemplateArgs{...}

type RepositoryTemplateOutput

type RepositoryTemplateOutput struct{ *pulumi.OutputState }

func (RepositoryTemplateOutput) ElementType

func (RepositoryTemplateOutput) ElementType() reflect.Type

func (RepositoryTemplateOutput) Owner

func (RepositoryTemplateOutput) Repository

func (RepositoryTemplateOutput) ToRepositoryTemplateOutput

func (o RepositoryTemplateOutput) ToRepositoryTemplateOutput() RepositoryTemplateOutput

func (RepositoryTemplateOutput) ToRepositoryTemplateOutputWithContext

func (o RepositoryTemplateOutput) ToRepositoryTemplateOutputWithContext(ctx context.Context) RepositoryTemplateOutput

func (RepositoryTemplateOutput) ToRepositoryTemplatePtrOutput

func (o RepositoryTemplateOutput) ToRepositoryTemplatePtrOutput() RepositoryTemplatePtrOutput

func (RepositoryTemplateOutput) ToRepositoryTemplatePtrOutputWithContext

func (o RepositoryTemplateOutput) ToRepositoryTemplatePtrOutputWithContext(ctx context.Context) RepositoryTemplatePtrOutput

type RepositoryTemplatePtrInput

type RepositoryTemplatePtrInput interface {
	pulumi.Input

	ToRepositoryTemplatePtrOutput() RepositoryTemplatePtrOutput
	ToRepositoryTemplatePtrOutputWithContext(context.Context) RepositoryTemplatePtrOutput
}

RepositoryTemplatePtrInput is an input type that accepts RepositoryTemplateArgs, RepositoryTemplatePtr and RepositoryTemplatePtrOutput values. You can construct a concrete instance of `RepositoryTemplatePtrInput` via:

        RepositoryTemplateArgs{...}

or:

        nil

type RepositoryTemplatePtrOutput

type RepositoryTemplatePtrOutput struct{ *pulumi.OutputState }

func (RepositoryTemplatePtrOutput) Elem

func (RepositoryTemplatePtrOutput) ElementType

func (RepositoryTemplatePtrOutput) Owner

func (RepositoryTemplatePtrOutput) Repository

func (RepositoryTemplatePtrOutput) ToRepositoryTemplatePtrOutput

func (o RepositoryTemplatePtrOutput) ToRepositoryTemplatePtrOutput() RepositoryTemplatePtrOutput

func (RepositoryTemplatePtrOutput) ToRepositoryTemplatePtrOutputWithContext

func (o RepositoryTemplatePtrOutput) ToRepositoryTemplatePtrOutputWithContext(ctx context.Context) RepositoryTemplatePtrOutput

type RepositoryWebhook

type RepositoryWebhook struct {
	pulumi.CustomResourceState

	// Indicate if the webhook should receive events. Defaults to `true`.
	Active pulumi.BoolPtrOutput `pulumi:"active"`
	// Configuration block for the webhook. Detailed below.
	Configuration RepositoryWebhookConfigurationPtrOutput `pulumi:"configuration"`
	Etag          pulumi.StringOutput                     `pulumi:"etag"`
	// A list of events which should trigger the webhook. See a list of [available events](https://developer.github.com/v3/activity/events/types/).
	Events pulumi.StringArrayOutput `pulumi:"events"`
	// The repository of the webhook.
	Repository pulumi.StringOutput `pulumi:"repository"`
	// The URL of the webhook.
	Url pulumi.StringOutput `pulumi:"url"`
}

This resource allows you to create and manage webhooks for repositories within your GitHub organization or personal account.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		repo, err := github.NewRepository(ctx, "repo", &github.RepositoryArgs{
			Description: pulumi.String("Terraform acceptance tests"),
			HomepageUrl: pulumi.String("http://example.com/"),
			Private:     pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		_, err = github.NewRepositoryWebhook(ctx, "foo", &github.RepositoryWebhookArgs{
			Repository: repo.Name,
			Configuration: &RepositoryWebhookConfigurationArgs{
				Url:         pulumi.String("https://google.de/"),
				ContentType: pulumi.String("form"),
				InsecureSsl: pulumi.Bool(false),
			},
			Active: pulumi.Bool(false),
			Events: pulumi.StringArray{
				pulumi.String("issues"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Repository webhooks can be imported using the `name` of the repository, combined with the `id` of the webhook, separated by a `/` character. The `id` of the webhook can be found in the URL of the webhook. For example`"https://github.com/foo-org/foo-repo/settings/hooks/14711452"`. Importing uses the name of the repository, as well as the ID of the webhook, e.g.

```sh

$ pulumi import github:index/repositoryWebhook:RepositoryWebhook terraform terraform/11235813

```

If secret is populated in the webhook's configuration, the value will be imported as "********".

func GetRepositoryWebhook

func GetRepositoryWebhook(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RepositoryWebhookState, opts ...pulumi.ResourceOption) (*RepositoryWebhook, error)

GetRepositoryWebhook gets an existing RepositoryWebhook 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 NewRepositoryWebhook

func NewRepositoryWebhook(ctx *pulumi.Context,
	name string, args *RepositoryWebhookArgs, opts ...pulumi.ResourceOption) (*RepositoryWebhook, error)

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

func (*RepositoryWebhook) ElementType

func (*RepositoryWebhook) ElementType() reflect.Type

func (*RepositoryWebhook) ToRepositoryWebhookOutput

func (i *RepositoryWebhook) ToRepositoryWebhookOutput() RepositoryWebhookOutput

func (*RepositoryWebhook) ToRepositoryWebhookOutputWithContext

func (i *RepositoryWebhook) ToRepositoryWebhookOutputWithContext(ctx context.Context) RepositoryWebhookOutput

type RepositoryWebhookArgs

type RepositoryWebhookArgs struct {
	// Indicate if the webhook should receive events. Defaults to `true`.
	Active pulumi.BoolPtrInput
	// Configuration block for the webhook. Detailed below.
	Configuration RepositoryWebhookConfigurationPtrInput
	// A list of events which should trigger the webhook. See a list of [available events](https://developer.github.com/v3/activity/events/types/).
	Events pulumi.StringArrayInput
	// The repository of the webhook.
	Repository pulumi.StringInput
}

The set of arguments for constructing a RepositoryWebhook resource.

func (RepositoryWebhookArgs) ElementType

func (RepositoryWebhookArgs) ElementType() reflect.Type

type RepositoryWebhookArray

type RepositoryWebhookArray []RepositoryWebhookInput

func (RepositoryWebhookArray) ElementType

func (RepositoryWebhookArray) ElementType() reflect.Type

func (RepositoryWebhookArray) ToRepositoryWebhookArrayOutput

func (i RepositoryWebhookArray) ToRepositoryWebhookArrayOutput() RepositoryWebhookArrayOutput

func (RepositoryWebhookArray) ToRepositoryWebhookArrayOutputWithContext

func (i RepositoryWebhookArray) ToRepositoryWebhookArrayOutputWithContext(ctx context.Context) RepositoryWebhookArrayOutput

type RepositoryWebhookArrayInput

type RepositoryWebhookArrayInput interface {
	pulumi.Input

	ToRepositoryWebhookArrayOutput() RepositoryWebhookArrayOutput
	ToRepositoryWebhookArrayOutputWithContext(context.Context) RepositoryWebhookArrayOutput
}

RepositoryWebhookArrayInput is an input type that accepts RepositoryWebhookArray and RepositoryWebhookArrayOutput values. You can construct a concrete instance of `RepositoryWebhookArrayInput` via:

RepositoryWebhookArray{ RepositoryWebhookArgs{...} }

type RepositoryWebhookArrayOutput

type RepositoryWebhookArrayOutput struct{ *pulumi.OutputState }

func (RepositoryWebhookArrayOutput) ElementType

func (RepositoryWebhookArrayOutput) Index

func (RepositoryWebhookArrayOutput) ToRepositoryWebhookArrayOutput

func (o RepositoryWebhookArrayOutput) ToRepositoryWebhookArrayOutput() RepositoryWebhookArrayOutput

func (RepositoryWebhookArrayOutput) ToRepositoryWebhookArrayOutputWithContext

func (o RepositoryWebhookArrayOutput) ToRepositoryWebhookArrayOutputWithContext(ctx context.Context) RepositoryWebhookArrayOutput

type RepositoryWebhookConfiguration

type RepositoryWebhookConfiguration struct {
	// The content type for the payload. Valid values are either `form` or `json`.
	ContentType *string `pulumi:"contentType"`
	// Insecure SSL boolean toggle. Defaults to `false`.
	InsecureSsl *bool `pulumi:"insecureSsl"`
	// The shared secret for the webhook. [See API documentation](https://developer.github.com/v3/repos/hooks/#create-a-hook).
	Secret *string `pulumi:"secret"`
	// The URL of the webhook.
	Url string `pulumi:"url"`
}

type RepositoryWebhookConfigurationArgs

type RepositoryWebhookConfigurationArgs struct {
	// The content type for the payload. Valid values are either `form` or `json`.
	ContentType pulumi.StringPtrInput `pulumi:"contentType"`
	// Insecure SSL boolean toggle. Defaults to `false`.
	InsecureSsl pulumi.BoolPtrInput `pulumi:"insecureSsl"`
	// The shared secret for the webhook. [See API documentation](https://developer.github.com/v3/repos/hooks/#create-a-hook).
	Secret pulumi.StringPtrInput `pulumi:"secret"`
	// The URL of the webhook.
	Url pulumi.StringInput `pulumi:"url"`
}

func (RepositoryWebhookConfigurationArgs) ElementType

func (RepositoryWebhookConfigurationArgs) ToRepositoryWebhookConfigurationOutput

func (i RepositoryWebhookConfigurationArgs) ToRepositoryWebhookConfigurationOutput() RepositoryWebhookConfigurationOutput

func (RepositoryWebhookConfigurationArgs) ToRepositoryWebhookConfigurationOutputWithContext

func (i RepositoryWebhookConfigurationArgs) ToRepositoryWebhookConfigurationOutputWithContext(ctx context.Context) RepositoryWebhookConfigurationOutput

func (RepositoryWebhookConfigurationArgs) ToRepositoryWebhookConfigurationPtrOutput

func (i RepositoryWebhookConfigurationArgs) ToRepositoryWebhookConfigurationPtrOutput() RepositoryWebhookConfigurationPtrOutput

func (RepositoryWebhookConfigurationArgs) ToRepositoryWebhookConfigurationPtrOutputWithContext

func (i RepositoryWebhookConfigurationArgs) ToRepositoryWebhookConfigurationPtrOutputWithContext(ctx context.Context) RepositoryWebhookConfigurationPtrOutput

type RepositoryWebhookConfigurationInput

type RepositoryWebhookConfigurationInput interface {
	pulumi.Input

	ToRepositoryWebhookConfigurationOutput() RepositoryWebhookConfigurationOutput
	ToRepositoryWebhookConfigurationOutputWithContext(context.Context) RepositoryWebhookConfigurationOutput
}

RepositoryWebhookConfigurationInput is an input type that accepts RepositoryWebhookConfigurationArgs and RepositoryWebhookConfigurationOutput values. You can construct a concrete instance of `RepositoryWebhookConfigurationInput` via:

RepositoryWebhookConfigurationArgs{...}

type RepositoryWebhookConfigurationOutput

type RepositoryWebhookConfigurationOutput struct{ *pulumi.OutputState }

func (RepositoryWebhookConfigurationOutput) ContentType

The content type for the payload. Valid values are either `form` or `json`.

func (RepositoryWebhookConfigurationOutput) ElementType

func (RepositoryWebhookConfigurationOutput) InsecureSsl

Insecure SSL boolean toggle. Defaults to `false`.

func (RepositoryWebhookConfigurationOutput) Secret

The shared secret for the webhook. [See API documentation](https://developer.github.com/v3/repos/hooks/#create-a-hook).

func (RepositoryWebhookConfigurationOutput) ToRepositoryWebhookConfigurationOutput

func (o RepositoryWebhookConfigurationOutput) ToRepositoryWebhookConfigurationOutput() RepositoryWebhookConfigurationOutput

func (RepositoryWebhookConfigurationOutput) ToRepositoryWebhookConfigurationOutputWithContext

func (o RepositoryWebhookConfigurationOutput) ToRepositoryWebhookConfigurationOutputWithContext(ctx context.Context) RepositoryWebhookConfigurationOutput

func (RepositoryWebhookConfigurationOutput) ToRepositoryWebhookConfigurationPtrOutput

func (o RepositoryWebhookConfigurationOutput) ToRepositoryWebhookConfigurationPtrOutput() RepositoryWebhookConfigurationPtrOutput

func (RepositoryWebhookConfigurationOutput) ToRepositoryWebhookConfigurationPtrOutputWithContext

func (o RepositoryWebhookConfigurationOutput) ToRepositoryWebhookConfigurationPtrOutputWithContext(ctx context.Context) RepositoryWebhookConfigurationPtrOutput

func (RepositoryWebhookConfigurationOutput) Url

The URL of the webhook.

type RepositoryWebhookConfigurationPtrInput

type RepositoryWebhookConfigurationPtrInput interface {
	pulumi.Input

	ToRepositoryWebhookConfigurationPtrOutput() RepositoryWebhookConfigurationPtrOutput
	ToRepositoryWebhookConfigurationPtrOutputWithContext(context.Context) RepositoryWebhookConfigurationPtrOutput
}

RepositoryWebhookConfigurationPtrInput is an input type that accepts RepositoryWebhookConfigurationArgs, RepositoryWebhookConfigurationPtr and RepositoryWebhookConfigurationPtrOutput values. You can construct a concrete instance of `RepositoryWebhookConfigurationPtrInput` via:

        RepositoryWebhookConfigurationArgs{...}

or:

        nil

type RepositoryWebhookConfigurationPtrOutput

type RepositoryWebhookConfigurationPtrOutput struct{ *pulumi.OutputState }

func (RepositoryWebhookConfigurationPtrOutput) ContentType

The content type for the payload. Valid values are either `form` or `json`.

func (RepositoryWebhookConfigurationPtrOutput) Elem

func (RepositoryWebhookConfigurationPtrOutput) ElementType

func (RepositoryWebhookConfigurationPtrOutput) InsecureSsl

Insecure SSL boolean toggle. Defaults to `false`.

func (RepositoryWebhookConfigurationPtrOutput) Secret

The shared secret for the webhook. [See API documentation](https://developer.github.com/v3/repos/hooks/#create-a-hook).

func (RepositoryWebhookConfigurationPtrOutput) ToRepositoryWebhookConfigurationPtrOutput

func (o RepositoryWebhookConfigurationPtrOutput) ToRepositoryWebhookConfigurationPtrOutput() RepositoryWebhookConfigurationPtrOutput

func (RepositoryWebhookConfigurationPtrOutput) ToRepositoryWebhookConfigurationPtrOutputWithContext

func (o RepositoryWebhookConfigurationPtrOutput) ToRepositoryWebhookConfigurationPtrOutputWithContext(ctx context.Context) RepositoryWebhookConfigurationPtrOutput

func (RepositoryWebhookConfigurationPtrOutput) Url

The URL of the webhook.

type RepositoryWebhookInput

type RepositoryWebhookInput interface {
	pulumi.Input

	ToRepositoryWebhookOutput() RepositoryWebhookOutput
	ToRepositoryWebhookOutputWithContext(ctx context.Context) RepositoryWebhookOutput
}

type RepositoryWebhookMap

type RepositoryWebhookMap map[string]RepositoryWebhookInput

func (RepositoryWebhookMap) ElementType

func (RepositoryWebhookMap) ElementType() reflect.Type

func (RepositoryWebhookMap) ToRepositoryWebhookMapOutput

func (i RepositoryWebhookMap) ToRepositoryWebhookMapOutput() RepositoryWebhookMapOutput

func (RepositoryWebhookMap) ToRepositoryWebhookMapOutputWithContext

func (i RepositoryWebhookMap) ToRepositoryWebhookMapOutputWithContext(ctx context.Context) RepositoryWebhookMapOutput

type RepositoryWebhookMapInput

type RepositoryWebhookMapInput interface {
	pulumi.Input

	ToRepositoryWebhookMapOutput() RepositoryWebhookMapOutput
	ToRepositoryWebhookMapOutputWithContext(context.Context) RepositoryWebhookMapOutput
}

RepositoryWebhookMapInput is an input type that accepts RepositoryWebhookMap and RepositoryWebhookMapOutput values. You can construct a concrete instance of `RepositoryWebhookMapInput` via:

RepositoryWebhookMap{ "key": RepositoryWebhookArgs{...} }

type RepositoryWebhookMapOutput

type RepositoryWebhookMapOutput struct{ *pulumi.OutputState }

func (RepositoryWebhookMapOutput) ElementType

func (RepositoryWebhookMapOutput) ElementType() reflect.Type

func (RepositoryWebhookMapOutput) MapIndex

func (RepositoryWebhookMapOutput) ToRepositoryWebhookMapOutput

func (o RepositoryWebhookMapOutput) ToRepositoryWebhookMapOutput() RepositoryWebhookMapOutput

func (RepositoryWebhookMapOutput) ToRepositoryWebhookMapOutputWithContext

func (o RepositoryWebhookMapOutput) ToRepositoryWebhookMapOutputWithContext(ctx context.Context) RepositoryWebhookMapOutput

type RepositoryWebhookOutput

type RepositoryWebhookOutput struct{ *pulumi.OutputState }

func (RepositoryWebhookOutput) Active added in v4.15.0

Indicate if the webhook should receive events. Defaults to `true`.

func (RepositoryWebhookOutput) Configuration added in v4.15.0

Configuration block for the webhook. Detailed below.

func (RepositoryWebhookOutput) ElementType

func (RepositoryWebhookOutput) ElementType() reflect.Type

func (RepositoryWebhookOutput) Etag added in v4.15.0

func (RepositoryWebhookOutput) Events added in v4.15.0

A list of events which should trigger the webhook. See a list of [available events](https://developer.github.com/v3/activity/events/types/).

func (RepositoryWebhookOutput) Repository added in v4.15.0

The repository of the webhook.

func (RepositoryWebhookOutput) ToRepositoryWebhookOutput

func (o RepositoryWebhookOutput) ToRepositoryWebhookOutput() RepositoryWebhookOutput

func (RepositoryWebhookOutput) ToRepositoryWebhookOutputWithContext

func (o RepositoryWebhookOutput) ToRepositoryWebhookOutputWithContext(ctx context.Context) RepositoryWebhookOutput

func (RepositoryWebhookOutput) Url added in v4.15.0

The URL of the webhook.

type RepositoryWebhookState

type RepositoryWebhookState struct {
	// Indicate if the webhook should receive events. Defaults to `true`.
	Active pulumi.BoolPtrInput
	// Configuration block for the webhook. Detailed below.
	Configuration RepositoryWebhookConfigurationPtrInput
	Etag          pulumi.StringPtrInput
	// A list of events which should trigger the webhook. See a list of [available events](https://developer.github.com/v3/activity/events/types/).
	Events pulumi.StringArrayInput
	// The repository of the webhook.
	Repository pulumi.StringPtrInput
	// The URL of the webhook.
	Url pulumi.StringPtrInput
}

func (RepositoryWebhookState) ElementType

func (RepositoryWebhookState) ElementType() reflect.Type

type Team

type Team struct {
	pulumi.CustomResourceState

	// Adds a default maintainer to the team. Defaults to `false` and adds the creating user to the team when `true`.
	CreateDefaultMaintainer pulumi.BoolPtrOutput `pulumi:"createDefaultMaintainer"`
	// A description of the team.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	Etag        pulumi.StringOutput    `pulumi:"etag"`
	// The LDAP Distinguished Name of the group where membership will be synchronized. Only available in GitHub Enterprise Server.
	LdapDn       pulumi.StringPtrOutput `pulumi:"ldapDn"`
	MembersCount pulumi.IntOutput       `pulumi:"membersCount"`
	// The name of the team.
	Name pulumi.StringOutput `pulumi:"name"`
	// The Node ID of the created team.
	NodeId pulumi.StringOutput `pulumi:"nodeId"`
	// The ID of the parent team, if this is a nested team.
	ParentTeamId pulumi.IntPtrOutput `pulumi:"parentTeamId"`
	// The level of privacy for the team. Must be one of `secret` or `closed`.
	// Defaults to `secret`.
	Privacy pulumi.StringPtrOutput `pulumi:"privacy"`
	// The slug of the created team, which may or may not differ from `name`,
	// depending on whether `name` contains "URL-unsafe" characters.
	// Useful when referencing the team in [`BranchProtection`](https://www.terraform.io/docs/providers/github/r/branch_protection.html).
	Slug pulumi.StringOutput `pulumi:"slug"`
}

Provides a GitHub team resource.

This resource allows you to add/remove teams from your organization. When applied, a new team will be created. When destroyed, that team will be removed.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.NewTeam(ctx, "someTeam", &github.TeamArgs{
			Description: pulumi.String("Some cool team"),
			Privacy:     pulumi.String("closed"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

GitHub Teams can be imported using the GitHub team ID e.g.

```sh

$ pulumi import github:index/team:Team core 1234567

```

func GetTeam

func GetTeam(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TeamState, opts ...pulumi.ResourceOption) (*Team, error)

GetTeam gets an existing Team 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 NewTeam

func NewTeam(ctx *pulumi.Context,
	name string, args *TeamArgs, opts ...pulumi.ResourceOption) (*Team, error)

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

func (*Team) ElementType

func (*Team) ElementType() reflect.Type

func (*Team) ToTeamOutput

func (i *Team) ToTeamOutput() TeamOutput

func (*Team) ToTeamOutputWithContext

func (i *Team) ToTeamOutputWithContext(ctx context.Context) TeamOutput

type TeamArgs

type TeamArgs struct {
	// Adds a default maintainer to the team. Defaults to `false` and adds the creating user to the team when `true`.
	CreateDefaultMaintainer pulumi.BoolPtrInput
	// A description of the team.
	Description pulumi.StringPtrInput
	// The LDAP Distinguished Name of the group where membership will be synchronized. Only available in GitHub Enterprise Server.
	LdapDn pulumi.StringPtrInput
	// The name of the team.
	Name pulumi.StringPtrInput
	// The ID of the parent team, if this is a nested team.
	ParentTeamId pulumi.IntPtrInput
	// The level of privacy for the team. Must be one of `secret` or `closed`.
	// Defaults to `secret`.
	Privacy pulumi.StringPtrInput
}

The set of arguments for constructing a Team resource.

func (TeamArgs) ElementType

func (TeamArgs) ElementType() reflect.Type

type TeamArray

type TeamArray []TeamInput

func (TeamArray) ElementType

func (TeamArray) ElementType() reflect.Type

func (TeamArray) ToTeamArrayOutput

func (i TeamArray) ToTeamArrayOutput() TeamArrayOutput

func (TeamArray) ToTeamArrayOutputWithContext

func (i TeamArray) ToTeamArrayOutputWithContext(ctx context.Context) TeamArrayOutput

type TeamArrayInput

type TeamArrayInput interface {
	pulumi.Input

	ToTeamArrayOutput() TeamArrayOutput
	ToTeamArrayOutputWithContext(context.Context) TeamArrayOutput
}

TeamArrayInput is an input type that accepts TeamArray and TeamArrayOutput values. You can construct a concrete instance of `TeamArrayInput` via:

TeamArray{ TeamArgs{...} }

type TeamArrayOutput

type TeamArrayOutput struct{ *pulumi.OutputState }

func (TeamArrayOutput) ElementType

func (TeamArrayOutput) ElementType() reflect.Type

func (TeamArrayOutput) Index

func (TeamArrayOutput) ToTeamArrayOutput

func (o TeamArrayOutput) ToTeamArrayOutput() TeamArrayOutput

func (TeamArrayOutput) ToTeamArrayOutputWithContext

func (o TeamArrayOutput) ToTeamArrayOutputWithContext(ctx context.Context) TeamArrayOutput

type TeamInput

type TeamInput interface {
	pulumi.Input

	ToTeamOutput() TeamOutput
	ToTeamOutputWithContext(ctx context.Context) TeamOutput
}

type TeamMap

type TeamMap map[string]TeamInput

func (TeamMap) ElementType

func (TeamMap) ElementType() reflect.Type

func (TeamMap) ToTeamMapOutput

func (i TeamMap) ToTeamMapOutput() TeamMapOutput

func (TeamMap) ToTeamMapOutputWithContext

func (i TeamMap) ToTeamMapOutputWithContext(ctx context.Context) TeamMapOutput

type TeamMapInput

type TeamMapInput interface {
	pulumi.Input

	ToTeamMapOutput() TeamMapOutput
	ToTeamMapOutputWithContext(context.Context) TeamMapOutput
}

TeamMapInput is an input type that accepts TeamMap and TeamMapOutput values. You can construct a concrete instance of `TeamMapInput` via:

TeamMap{ "key": TeamArgs{...} }

type TeamMapOutput

type TeamMapOutput struct{ *pulumi.OutputState }

func (TeamMapOutput) ElementType

func (TeamMapOutput) ElementType() reflect.Type

func (TeamMapOutput) MapIndex

func (TeamMapOutput) ToTeamMapOutput

func (o TeamMapOutput) ToTeamMapOutput() TeamMapOutput

func (TeamMapOutput) ToTeamMapOutputWithContext

func (o TeamMapOutput) ToTeamMapOutputWithContext(ctx context.Context) TeamMapOutput

type TeamMembers added in v4.10.0

type TeamMembers struct {
	pulumi.CustomResourceState

	Etag pulumi.StringOutput `pulumi:"etag"`
	// List of team members. See Members below for details.
	Members TeamMembersMemberArrayOutput `pulumi:"members"`
	// The GitHub team id
	TeamId pulumi.StringOutput `pulumi:"teamId"`
}

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.NewMembership(ctx, "membershipForSomeUser", &github.MembershipArgs{
			Username: pulumi.String("SomeUser"),
			Role:     pulumi.String("member"),
		})
		if err != nil {
			return err
		}
		_, err = github.NewMembership(ctx, "membershipForAnotherUser", &github.MembershipArgs{
			Username: pulumi.String("AnotherUser"),
			Role:     pulumi.String("member"),
		})
		if err != nil {
			return err
		}
		someTeam, err := github.NewTeam(ctx, "someTeam", &github.TeamArgs{
			Description: pulumi.String("Some cool team"),
		})
		if err != nil {
			return err
		}
		_, err = github.NewTeamMembers(ctx, "someTeamMembers", &github.TeamMembersArgs{
			TeamId: someTeam.ID(),
			Members: TeamMembersMemberArray{
				&TeamMembersMemberArgs{
					Username: pulumi.String("SomeUser"),
					Role:     pulumi.String("maintainer"),
				},
				&TeamMembersMemberArgs{
					Username: pulumi.String("AnotherUser"),
					Role:     pulumi.String("member"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

GitHub Team Membership can be imported using the team ID `teamid`, e.g.

```sh

$ pulumi import github:index/teamMembers:TeamMembers some_team 1234567

```

func GetTeamMembers added in v4.10.0

func GetTeamMembers(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TeamMembersState, opts ...pulumi.ResourceOption) (*TeamMembers, error)

GetTeamMembers gets an existing TeamMembers 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 NewTeamMembers added in v4.10.0

func NewTeamMembers(ctx *pulumi.Context,
	name string, args *TeamMembersArgs, opts ...pulumi.ResourceOption) (*TeamMembers, error)

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

func (*TeamMembers) ElementType added in v4.10.0

func (*TeamMembers) ElementType() reflect.Type

func (*TeamMembers) ToTeamMembersOutput added in v4.10.0

func (i *TeamMembers) ToTeamMembersOutput() TeamMembersOutput

func (*TeamMembers) ToTeamMembersOutputWithContext added in v4.10.0

func (i *TeamMembers) ToTeamMembersOutputWithContext(ctx context.Context) TeamMembersOutput

type TeamMembersArgs added in v4.10.0

type TeamMembersArgs struct {
	// List of team members. See Members below for details.
	Members TeamMembersMemberArrayInput
	// The GitHub team id
	TeamId pulumi.StringInput
}

The set of arguments for constructing a TeamMembers resource.

func (TeamMembersArgs) ElementType added in v4.10.0

func (TeamMembersArgs) ElementType() reflect.Type

type TeamMembersArray added in v4.10.0

type TeamMembersArray []TeamMembersInput

func (TeamMembersArray) ElementType added in v4.10.0

func (TeamMembersArray) ElementType() reflect.Type

func (TeamMembersArray) ToTeamMembersArrayOutput added in v4.10.0

func (i TeamMembersArray) ToTeamMembersArrayOutput() TeamMembersArrayOutput

func (TeamMembersArray) ToTeamMembersArrayOutputWithContext added in v4.10.0

func (i TeamMembersArray) ToTeamMembersArrayOutputWithContext(ctx context.Context) TeamMembersArrayOutput

type TeamMembersArrayInput added in v4.10.0

type TeamMembersArrayInput interface {
	pulumi.Input

	ToTeamMembersArrayOutput() TeamMembersArrayOutput
	ToTeamMembersArrayOutputWithContext(context.Context) TeamMembersArrayOutput
}

TeamMembersArrayInput is an input type that accepts TeamMembersArray and TeamMembersArrayOutput values. You can construct a concrete instance of `TeamMembersArrayInput` via:

TeamMembersArray{ TeamMembersArgs{...} }

type TeamMembersArrayOutput added in v4.10.0

type TeamMembersArrayOutput struct{ *pulumi.OutputState }

func (TeamMembersArrayOutput) ElementType added in v4.10.0

func (TeamMembersArrayOutput) ElementType() reflect.Type

func (TeamMembersArrayOutput) Index added in v4.10.0

func (TeamMembersArrayOutput) ToTeamMembersArrayOutput added in v4.10.0

func (o TeamMembersArrayOutput) ToTeamMembersArrayOutput() TeamMembersArrayOutput

func (TeamMembersArrayOutput) ToTeamMembersArrayOutputWithContext added in v4.10.0

func (o TeamMembersArrayOutput) ToTeamMembersArrayOutputWithContext(ctx context.Context) TeamMembersArrayOutput

type TeamMembersInput added in v4.10.0

type TeamMembersInput interface {
	pulumi.Input

	ToTeamMembersOutput() TeamMembersOutput
	ToTeamMembersOutputWithContext(ctx context.Context) TeamMembersOutput
}

type TeamMembersMap added in v4.10.0

type TeamMembersMap map[string]TeamMembersInput

func (TeamMembersMap) ElementType added in v4.10.0

func (TeamMembersMap) ElementType() reflect.Type

func (TeamMembersMap) ToTeamMembersMapOutput added in v4.10.0

func (i TeamMembersMap) ToTeamMembersMapOutput() TeamMembersMapOutput

func (TeamMembersMap) ToTeamMembersMapOutputWithContext added in v4.10.0

func (i TeamMembersMap) ToTeamMembersMapOutputWithContext(ctx context.Context) TeamMembersMapOutput

type TeamMembersMapInput added in v4.10.0

type TeamMembersMapInput interface {
	pulumi.Input

	ToTeamMembersMapOutput() TeamMembersMapOutput
	ToTeamMembersMapOutputWithContext(context.Context) TeamMembersMapOutput
}

TeamMembersMapInput is an input type that accepts TeamMembersMap and TeamMembersMapOutput values. You can construct a concrete instance of `TeamMembersMapInput` via:

TeamMembersMap{ "key": TeamMembersArgs{...} }

type TeamMembersMapOutput added in v4.10.0

type TeamMembersMapOutput struct{ *pulumi.OutputState }

func (TeamMembersMapOutput) ElementType added in v4.10.0

func (TeamMembersMapOutput) ElementType() reflect.Type

func (TeamMembersMapOutput) MapIndex added in v4.10.0

func (TeamMembersMapOutput) ToTeamMembersMapOutput added in v4.10.0

func (o TeamMembersMapOutput) ToTeamMembersMapOutput() TeamMembersMapOutput

func (TeamMembersMapOutput) ToTeamMembersMapOutputWithContext added in v4.10.0

func (o TeamMembersMapOutput) ToTeamMembersMapOutputWithContext(ctx context.Context) TeamMembersMapOutput

type TeamMembersMember added in v4.10.0

type TeamMembersMember struct {
	// The role of the user within the team.
	// Must be one of `member` or `maintainer`. Defaults to `member`.
	Role *string `pulumi:"role"`
	// The user to add to the team.
	Username string `pulumi:"username"`
}

type TeamMembersMemberArgs added in v4.10.0

type TeamMembersMemberArgs struct {
	// The role of the user within the team.
	// Must be one of `member` or `maintainer`. Defaults to `member`.
	Role pulumi.StringPtrInput `pulumi:"role"`
	// The user to add to the team.
	Username pulumi.StringInput `pulumi:"username"`
}

func (TeamMembersMemberArgs) ElementType added in v4.10.0

func (TeamMembersMemberArgs) ElementType() reflect.Type

func (TeamMembersMemberArgs) ToTeamMembersMemberOutput added in v4.10.0

func (i TeamMembersMemberArgs) ToTeamMembersMemberOutput() TeamMembersMemberOutput

func (TeamMembersMemberArgs) ToTeamMembersMemberOutputWithContext added in v4.10.0

func (i TeamMembersMemberArgs) ToTeamMembersMemberOutputWithContext(ctx context.Context) TeamMembersMemberOutput

type TeamMembersMemberArray added in v4.10.0

type TeamMembersMemberArray []TeamMembersMemberInput

func (TeamMembersMemberArray) ElementType added in v4.10.0

func (TeamMembersMemberArray) ElementType() reflect.Type

func (TeamMembersMemberArray) ToTeamMembersMemberArrayOutput added in v4.10.0

func (i TeamMembersMemberArray) ToTeamMembersMemberArrayOutput() TeamMembersMemberArrayOutput

func (TeamMembersMemberArray) ToTeamMembersMemberArrayOutputWithContext added in v4.10.0

func (i TeamMembersMemberArray) ToTeamMembersMemberArrayOutputWithContext(ctx context.Context) TeamMembersMemberArrayOutput

type TeamMembersMemberArrayInput added in v4.10.0

type TeamMembersMemberArrayInput interface {
	pulumi.Input

	ToTeamMembersMemberArrayOutput() TeamMembersMemberArrayOutput
	ToTeamMembersMemberArrayOutputWithContext(context.Context) TeamMembersMemberArrayOutput
}

TeamMembersMemberArrayInput is an input type that accepts TeamMembersMemberArray and TeamMembersMemberArrayOutput values. You can construct a concrete instance of `TeamMembersMemberArrayInput` via:

TeamMembersMemberArray{ TeamMembersMemberArgs{...} }

type TeamMembersMemberArrayOutput added in v4.10.0

type TeamMembersMemberArrayOutput struct{ *pulumi.OutputState }

func (TeamMembersMemberArrayOutput) ElementType added in v4.10.0

func (TeamMembersMemberArrayOutput) Index added in v4.10.0

func (TeamMembersMemberArrayOutput) ToTeamMembersMemberArrayOutput added in v4.10.0

func (o TeamMembersMemberArrayOutput) ToTeamMembersMemberArrayOutput() TeamMembersMemberArrayOutput

func (TeamMembersMemberArrayOutput) ToTeamMembersMemberArrayOutputWithContext added in v4.10.0

func (o TeamMembersMemberArrayOutput) ToTeamMembersMemberArrayOutputWithContext(ctx context.Context) TeamMembersMemberArrayOutput

type TeamMembersMemberInput added in v4.10.0

type TeamMembersMemberInput interface {
	pulumi.Input

	ToTeamMembersMemberOutput() TeamMembersMemberOutput
	ToTeamMembersMemberOutputWithContext(context.Context) TeamMembersMemberOutput
}

TeamMembersMemberInput is an input type that accepts TeamMembersMemberArgs and TeamMembersMemberOutput values. You can construct a concrete instance of `TeamMembersMemberInput` via:

TeamMembersMemberArgs{...}

type TeamMembersMemberOutput added in v4.10.0

type TeamMembersMemberOutput struct{ *pulumi.OutputState }

func (TeamMembersMemberOutput) ElementType added in v4.10.0

func (TeamMembersMemberOutput) ElementType() reflect.Type

func (TeamMembersMemberOutput) Role added in v4.10.0

The role of the user within the team. Must be one of `member` or `maintainer`. Defaults to `member`.

func (TeamMembersMemberOutput) ToTeamMembersMemberOutput added in v4.10.0

func (o TeamMembersMemberOutput) ToTeamMembersMemberOutput() TeamMembersMemberOutput

func (TeamMembersMemberOutput) ToTeamMembersMemberOutputWithContext added in v4.10.0

func (o TeamMembersMemberOutput) ToTeamMembersMemberOutputWithContext(ctx context.Context) TeamMembersMemberOutput

func (TeamMembersMemberOutput) Username added in v4.10.0

The user to add to the team.

type TeamMembersOutput added in v4.10.0

type TeamMembersOutput struct{ *pulumi.OutputState }

func (TeamMembersOutput) ElementType added in v4.10.0

func (TeamMembersOutput) ElementType() reflect.Type

func (TeamMembersOutput) Etag added in v4.15.0

func (TeamMembersOutput) Members added in v4.15.0

List of team members. See Members below for details.

func (TeamMembersOutput) TeamId added in v4.15.0

The GitHub team id

func (TeamMembersOutput) ToTeamMembersOutput added in v4.10.0

func (o TeamMembersOutput) ToTeamMembersOutput() TeamMembersOutput

func (TeamMembersOutput) ToTeamMembersOutputWithContext added in v4.10.0

func (o TeamMembersOutput) ToTeamMembersOutputWithContext(ctx context.Context) TeamMembersOutput

type TeamMembersState added in v4.10.0

type TeamMembersState struct {
	Etag pulumi.StringPtrInput
	// List of team members. See Members below for details.
	Members TeamMembersMemberArrayInput
	// The GitHub team id
	TeamId pulumi.StringPtrInput
}

func (TeamMembersState) ElementType added in v4.10.0

func (TeamMembersState) ElementType() reflect.Type

type TeamMembership

type TeamMembership struct {
	pulumi.CustomResourceState

	Etag pulumi.StringOutput `pulumi:"etag"`
	// The role of the user within the team.
	// Must be one of `member` or `maintainer`. Defaults to `member`.
	Role pulumi.StringPtrOutput `pulumi:"role"`
	// The GitHub team id
	TeamId pulumi.StringOutput `pulumi:"teamId"`
	// The user to add to the team.
	Username pulumi.StringOutput `pulumi:"username"`
}

Provides a GitHub team membership resource.

This resource allows you to add/remove users from teams in your organization. When applied, the user will be added to the team. If the user hasn't accepted their invitation to the organization, they won't be part of the team until they do. When destroyed, the user will be removed from the team.

> **Note**: This resource is not compatible with `TeamMembers`. Use either `TeamMembers` or `TeamMembership`.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.NewMembership(ctx, "membershipForSomeUser", &github.MembershipArgs{
			Username: pulumi.String("SomeUser"),
			Role:     pulumi.String("member"),
		})
		if err != nil {
			return err
		}
		someTeam, err := github.NewTeam(ctx, "someTeam", &github.TeamArgs{
			Description: pulumi.String("Some cool team"),
		})
		if err != nil {
			return err
		}
		_, err = github.NewTeamMembership(ctx, "someTeamMembership", &github.TeamMembershipArgs{
			TeamId:   someTeam.ID(),
			Username: pulumi.String("SomeUser"),
			Role:     pulumi.String("member"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

GitHub Team Membership can be imported using an ID made up of `teamid:username`, e.g.

```sh

$ pulumi import github:index/teamMembership:TeamMembership member 1234567:someuser

```

func GetTeamMembership

func GetTeamMembership(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TeamMembershipState, opts ...pulumi.ResourceOption) (*TeamMembership, error)

GetTeamMembership gets an existing TeamMembership 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 NewTeamMembership

func NewTeamMembership(ctx *pulumi.Context,
	name string, args *TeamMembershipArgs, opts ...pulumi.ResourceOption) (*TeamMembership, error)

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

func (*TeamMembership) ElementType

func (*TeamMembership) ElementType() reflect.Type

func (*TeamMembership) ToTeamMembershipOutput

func (i *TeamMembership) ToTeamMembershipOutput() TeamMembershipOutput

func (*TeamMembership) ToTeamMembershipOutputWithContext

func (i *TeamMembership) ToTeamMembershipOutputWithContext(ctx context.Context) TeamMembershipOutput

type TeamMembershipArgs

type TeamMembershipArgs struct {
	// The role of the user within the team.
	// Must be one of `member` or `maintainer`. Defaults to `member`.
	Role pulumi.StringPtrInput
	// The GitHub team id
	TeamId pulumi.StringInput
	// The user to add to the team.
	Username pulumi.StringInput
}

The set of arguments for constructing a TeamMembership resource.

func (TeamMembershipArgs) ElementType

func (TeamMembershipArgs) ElementType() reflect.Type

type TeamMembershipArray

type TeamMembershipArray []TeamMembershipInput

func (TeamMembershipArray) ElementType

func (TeamMembershipArray) ElementType() reflect.Type

func (TeamMembershipArray) ToTeamMembershipArrayOutput

func (i TeamMembershipArray) ToTeamMembershipArrayOutput() TeamMembershipArrayOutput

func (TeamMembershipArray) ToTeamMembershipArrayOutputWithContext

func (i TeamMembershipArray) ToTeamMembershipArrayOutputWithContext(ctx context.Context) TeamMembershipArrayOutput

type TeamMembershipArrayInput

type TeamMembershipArrayInput interface {
	pulumi.Input

	ToTeamMembershipArrayOutput() TeamMembershipArrayOutput
	ToTeamMembershipArrayOutputWithContext(context.Context) TeamMembershipArrayOutput
}

TeamMembershipArrayInput is an input type that accepts TeamMembershipArray and TeamMembershipArrayOutput values. You can construct a concrete instance of `TeamMembershipArrayInput` via:

TeamMembershipArray{ TeamMembershipArgs{...} }

type TeamMembershipArrayOutput

type TeamMembershipArrayOutput struct{ *pulumi.OutputState }

func (TeamMembershipArrayOutput) ElementType

func (TeamMembershipArrayOutput) ElementType() reflect.Type

func (TeamMembershipArrayOutput) Index

func (TeamMembershipArrayOutput) ToTeamMembershipArrayOutput

func (o TeamMembershipArrayOutput) ToTeamMembershipArrayOutput() TeamMembershipArrayOutput

func (TeamMembershipArrayOutput) ToTeamMembershipArrayOutputWithContext

func (o TeamMembershipArrayOutput) ToTeamMembershipArrayOutputWithContext(ctx context.Context) TeamMembershipArrayOutput

type TeamMembershipInput

type TeamMembershipInput interface {
	pulumi.Input

	ToTeamMembershipOutput() TeamMembershipOutput
	ToTeamMembershipOutputWithContext(ctx context.Context) TeamMembershipOutput
}

type TeamMembershipMap

type TeamMembershipMap map[string]TeamMembershipInput

func (TeamMembershipMap) ElementType

func (TeamMembershipMap) ElementType() reflect.Type

func (TeamMembershipMap) ToTeamMembershipMapOutput

func (i TeamMembershipMap) ToTeamMembershipMapOutput() TeamMembershipMapOutput

func (TeamMembershipMap) ToTeamMembershipMapOutputWithContext

func (i TeamMembershipMap) ToTeamMembershipMapOutputWithContext(ctx context.Context) TeamMembershipMapOutput

type TeamMembershipMapInput

type TeamMembershipMapInput interface {
	pulumi.Input

	ToTeamMembershipMapOutput() TeamMembershipMapOutput
	ToTeamMembershipMapOutputWithContext(context.Context) TeamMembershipMapOutput
}

TeamMembershipMapInput is an input type that accepts TeamMembershipMap and TeamMembershipMapOutput values. You can construct a concrete instance of `TeamMembershipMapInput` via:

TeamMembershipMap{ "key": TeamMembershipArgs{...} }

type TeamMembershipMapOutput

type TeamMembershipMapOutput struct{ *pulumi.OutputState }

func (TeamMembershipMapOutput) ElementType

func (TeamMembershipMapOutput) ElementType() reflect.Type

func (TeamMembershipMapOutput) MapIndex

func (TeamMembershipMapOutput) ToTeamMembershipMapOutput

func (o TeamMembershipMapOutput) ToTeamMembershipMapOutput() TeamMembershipMapOutput

func (TeamMembershipMapOutput) ToTeamMembershipMapOutputWithContext

func (o TeamMembershipMapOutput) ToTeamMembershipMapOutputWithContext(ctx context.Context) TeamMembershipMapOutput

type TeamMembershipOutput

type TeamMembershipOutput struct{ *pulumi.OutputState }

func (TeamMembershipOutput) ElementType

func (TeamMembershipOutput) ElementType() reflect.Type

func (TeamMembershipOutput) Etag added in v4.15.0

func (TeamMembershipOutput) Role added in v4.15.0

The role of the user within the team. Must be one of `member` or `maintainer`. Defaults to `member`.

func (TeamMembershipOutput) TeamId added in v4.15.0

The GitHub team id

func (TeamMembershipOutput) ToTeamMembershipOutput

func (o TeamMembershipOutput) ToTeamMembershipOutput() TeamMembershipOutput

func (TeamMembershipOutput) ToTeamMembershipOutputWithContext

func (o TeamMembershipOutput) ToTeamMembershipOutputWithContext(ctx context.Context) TeamMembershipOutput

func (TeamMembershipOutput) Username added in v4.15.0

The user to add to the team.

type TeamMembershipState

type TeamMembershipState struct {
	Etag pulumi.StringPtrInput
	// The role of the user within the team.
	// Must be one of `member` or `maintainer`. Defaults to `member`.
	Role pulumi.StringPtrInput
	// The GitHub team id
	TeamId pulumi.StringPtrInput
	// The user to add to the team.
	Username pulumi.StringPtrInput
}

func (TeamMembershipState) ElementType

func (TeamMembershipState) ElementType() reflect.Type

type TeamOutput

type TeamOutput struct{ *pulumi.OutputState }

func (TeamOutput) CreateDefaultMaintainer added in v4.15.0

func (o TeamOutput) CreateDefaultMaintainer() pulumi.BoolPtrOutput

Adds a default maintainer to the team. Defaults to `false` and adds the creating user to the team when `true`.

func (TeamOutput) Description added in v4.15.0

func (o TeamOutput) Description() pulumi.StringPtrOutput

A description of the team.

func (TeamOutput) ElementType

func (TeamOutput) ElementType() reflect.Type

func (TeamOutput) Etag added in v4.15.0

func (o TeamOutput) Etag() pulumi.StringOutput

func (TeamOutput) LdapDn added in v4.15.0

func (o TeamOutput) LdapDn() pulumi.StringPtrOutput

The LDAP Distinguished Name of the group where membership will be synchronized. Only available in GitHub Enterprise Server.

func (TeamOutput) MembersCount added in v4.15.0

func (o TeamOutput) MembersCount() pulumi.IntOutput

func (TeamOutput) Name added in v4.15.0

func (o TeamOutput) Name() pulumi.StringOutput

The name of the team.

func (TeamOutput) NodeId added in v4.15.0

func (o TeamOutput) NodeId() pulumi.StringOutput

The Node ID of the created team.

func (TeamOutput) ParentTeamId added in v4.15.0

func (o TeamOutput) ParentTeamId() pulumi.IntPtrOutput

The ID of the parent team, if this is a nested team.

func (TeamOutput) Privacy added in v4.15.0

func (o TeamOutput) Privacy() pulumi.StringPtrOutput

The level of privacy for the team. Must be one of `secret` or `closed`. Defaults to `secret`.

func (TeamOutput) Slug added in v4.15.0

func (o TeamOutput) Slug() pulumi.StringOutput

The slug of the created team, which may or may not differ from `name`, depending on whether `name` contains "URL-unsafe" characters. Useful when referencing the team in [`BranchProtection`](https://www.terraform.io/docs/providers/github/r/branch_protection.html).

func (TeamOutput) ToTeamOutput

func (o TeamOutput) ToTeamOutput() TeamOutput

func (TeamOutput) ToTeamOutputWithContext

func (o TeamOutput) ToTeamOutputWithContext(ctx context.Context) TeamOutput

type TeamRepository

type TeamRepository struct {
	pulumi.CustomResourceState

	Etag pulumi.StringOutput `pulumi:"etag"`
	// The permissions of team members regarding the repository.
	// Must be one of `pull`, `triage`, `push`, `maintain`, `admin` or the name of an existing [custom repository role](https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization) within the organisation. Defaults to `pull`.
	Permission pulumi.StringPtrOutput `pulumi:"permission"`
	// The repository to add to the team.
	Repository pulumi.StringOutput `pulumi:"repository"`
	// The GitHub team id or the GitHub team slug
	TeamId pulumi.StringOutput `pulumi:"teamId"`
}

This resource manages relationships between teams and repositories in your GitHub organization.

Creating this resource grants a particular team permissions on a particular repository.

The repository and the team must both belong to the same organization on GitHub. This resource does not actually *create* any repositories; to do that, see `Repository`.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		someTeam, err := github.NewTeam(ctx, "someTeam", &github.TeamArgs{
			Description: pulumi.String("Some cool team"),
		})
		if err != nil {
			return err
		}
		someRepo, err := github.NewRepository(ctx, "someRepo", nil)
		if err != nil {
			return err
		}
		_, err = github.NewTeamRepository(ctx, "someTeamRepo", &github.TeamRepositoryArgs{
			TeamId:     someTeam.ID(),
			Repository: someRepo.Name,
			Permission: pulumi.String("pull"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

GitHub Team Repository can be imported using an ID made up of `teamid:repository`, e.g.

```sh

$ pulumi import github:index/teamRepository:TeamRepository terraform_repo 1234567:terraform

```

func GetTeamRepository

func GetTeamRepository(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TeamRepositoryState, opts ...pulumi.ResourceOption) (*TeamRepository, error)

GetTeamRepository gets an existing TeamRepository 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 NewTeamRepository

func NewTeamRepository(ctx *pulumi.Context,
	name string, args *TeamRepositoryArgs, opts ...pulumi.ResourceOption) (*TeamRepository, error)

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

func (*TeamRepository) ElementType

func (*TeamRepository) ElementType() reflect.Type

func (*TeamRepository) ToTeamRepositoryOutput

func (i *TeamRepository) ToTeamRepositoryOutput() TeamRepositoryOutput

func (*TeamRepository) ToTeamRepositoryOutputWithContext

func (i *TeamRepository) ToTeamRepositoryOutputWithContext(ctx context.Context) TeamRepositoryOutput

type TeamRepositoryArgs

type TeamRepositoryArgs struct {
	// The permissions of team members regarding the repository.
	// Must be one of `pull`, `triage`, `push`, `maintain`, `admin` or the name of an existing [custom repository role](https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization) within the organisation. Defaults to `pull`.
	Permission pulumi.StringPtrInput
	// The repository to add to the team.
	Repository pulumi.StringInput
	// The GitHub team id or the GitHub team slug
	TeamId pulumi.StringInput
}

The set of arguments for constructing a TeamRepository resource.

func (TeamRepositoryArgs) ElementType

func (TeamRepositoryArgs) ElementType() reflect.Type

type TeamRepositoryArray

type TeamRepositoryArray []TeamRepositoryInput

func (TeamRepositoryArray) ElementType

func (TeamRepositoryArray) ElementType() reflect.Type

func (TeamRepositoryArray) ToTeamRepositoryArrayOutput

func (i TeamRepositoryArray) ToTeamRepositoryArrayOutput() TeamRepositoryArrayOutput

func (TeamRepositoryArray) ToTeamRepositoryArrayOutputWithContext

func (i TeamRepositoryArray) ToTeamRepositoryArrayOutputWithContext(ctx context.Context) TeamRepositoryArrayOutput

type TeamRepositoryArrayInput

type TeamRepositoryArrayInput interface {
	pulumi.Input

	ToTeamRepositoryArrayOutput() TeamRepositoryArrayOutput
	ToTeamRepositoryArrayOutputWithContext(context.Context) TeamRepositoryArrayOutput
}

TeamRepositoryArrayInput is an input type that accepts TeamRepositoryArray and TeamRepositoryArrayOutput values. You can construct a concrete instance of `TeamRepositoryArrayInput` via:

TeamRepositoryArray{ TeamRepositoryArgs{...} }

type TeamRepositoryArrayOutput

type TeamRepositoryArrayOutput struct{ *pulumi.OutputState }

func (TeamRepositoryArrayOutput) ElementType

func (TeamRepositoryArrayOutput) ElementType() reflect.Type

func (TeamRepositoryArrayOutput) Index

func (TeamRepositoryArrayOutput) ToTeamRepositoryArrayOutput

func (o TeamRepositoryArrayOutput) ToTeamRepositoryArrayOutput() TeamRepositoryArrayOutput

func (TeamRepositoryArrayOutput) ToTeamRepositoryArrayOutputWithContext

func (o TeamRepositoryArrayOutput) ToTeamRepositoryArrayOutputWithContext(ctx context.Context) TeamRepositoryArrayOutput

type TeamRepositoryInput

type TeamRepositoryInput interface {
	pulumi.Input

	ToTeamRepositoryOutput() TeamRepositoryOutput
	ToTeamRepositoryOutputWithContext(ctx context.Context) TeamRepositoryOutput
}

type TeamRepositoryMap

type TeamRepositoryMap map[string]TeamRepositoryInput

func (TeamRepositoryMap) ElementType

func (TeamRepositoryMap) ElementType() reflect.Type

func (TeamRepositoryMap) ToTeamRepositoryMapOutput

func (i TeamRepositoryMap) ToTeamRepositoryMapOutput() TeamRepositoryMapOutput

func (TeamRepositoryMap) ToTeamRepositoryMapOutputWithContext

func (i TeamRepositoryMap) ToTeamRepositoryMapOutputWithContext(ctx context.Context) TeamRepositoryMapOutput

type TeamRepositoryMapInput

type TeamRepositoryMapInput interface {
	pulumi.Input

	ToTeamRepositoryMapOutput() TeamRepositoryMapOutput
	ToTeamRepositoryMapOutputWithContext(context.Context) TeamRepositoryMapOutput
}

TeamRepositoryMapInput is an input type that accepts TeamRepositoryMap and TeamRepositoryMapOutput values. You can construct a concrete instance of `TeamRepositoryMapInput` via:

TeamRepositoryMap{ "key": TeamRepositoryArgs{...} }

type TeamRepositoryMapOutput

type TeamRepositoryMapOutput struct{ *pulumi.OutputState }

func (TeamRepositoryMapOutput) ElementType

func (TeamRepositoryMapOutput) ElementType() reflect.Type

func (TeamRepositoryMapOutput) MapIndex

func (TeamRepositoryMapOutput) ToTeamRepositoryMapOutput

func (o TeamRepositoryMapOutput) ToTeamRepositoryMapOutput() TeamRepositoryMapOutput

func (TeamRepositoryMapOutput) ToTeamRepositoryMapOutputWithContext

func (o TeamRepositoryMapOutput) ToTeamRepositoryMapOutputWithContext(ctx context.Context) TeamRepositoryMapOutput

type TeamRepositoryOutput

type TeamRepositoryOutput struct{ *pulumi.OutputState }

func (TeamRepositoryOutput) ElementType

func (TeamRepositoryOutput) ElementType() reflect.Type

func (TeamRepositoryOutput) Etag added in v4.15.0

func (TeamRepositoryOutput) Permission added in v4.15.0

The permissions of team members regarding the repository. Must be one of `pull`, `triage`, `push`, `maintain`, `admin` or the name of an existing [custom repository role](https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization) within the organisation. Defaults to `pull`.

func (TeamRepositoryOutput) Repository added in v4.15.0

func (o TeamRepositoryOutput) Repository() pulumi.StringOutput

The repository to add to the team.

func (TeamRepositoryOutput) TeamId added in v4.15.0

The GitHub team id or the GitHub team slug

func (TeamRepositoryOutput) ToTeamRepositoryOutput

func (o TeamRepositoryOutput) ToTeamRepositoryOutput() TeamRepositoryOutput

func (TeamRepositoryOutput) ToTeamRepositoryOutputWithContext

func (o TeamRepositoryOutput) ToTeamRepositoryOutputWithContext(ctx context.Context) TeamRepositoryOutput

type TeamRepositoryState

type TeamRepositoryState struct {
	Etag pulumi.StringPtrInput
	// The permissions of team members regarding the repository.
	// Must be one of `pull`, `triage`, `push`, `maintain`, `admin` or the name of an existing [custom repository role](https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization) within the organisation. Defaults to `pull`.
	Permission pulumi.StringPtrInput
	// The repository to add to the team.
	Repository pulumi.StringPtrInput
	// The GitHub team id or the GitHub team slug
	TeamId pulumi.StringPtrInput
}

func (TeamRepositoryState) ElementType

func (TeamRepositoryState) ElementType() reflect.Type

type TeamState

type TeamState struct {
	// Adds a default maintainer to the team. Defaults to `false` and adds the creating user to the team when `true`.
	CreateDefaultMaintainer pulumi.BoolPtrInput
	// A description of the team.
	Description pulumi.StringPtrInput
	Etag        pulumi.StringPtrInput
	// The LDAP Distinguished Name of the group where membership will be synchronized. Only available in GitHub Enterprise Server.
	LdapDn       pulumi.StringPtrInput
	MembersCount pulumi.IntPtrInput
	// The name of the team.
	Name pulumi.StringPtrInput
	// The Node ID of the created team.
	NodeId pulumi.StringPtrInput
	// The ID of the parent team, if this is a nested team.
	ParentTeamId pulumi.IntPtrInput
	// The level of privacy for the team. Must be one of `secret` or `closed`.
	// Defaults to `secret`.
	Privacy pulumi.StringPtrInput
	// The slug of the created team, which may or may not differ from `name`,
	// depending on whether `name` contains "URL-unsafe" characters.
	// Useful when referencing the team in [`BranchProtection`](https://www.terraform.io/docs/providers/github/r/branch_protection.html).
	Slug pulumi.StringPtrInput
}

func (TeamState) ElementType

func (TeamState) ElementType() reflect.Type

type TeamSyncGroupMapping

type TeamSyncGroupMapping struct {
	pulumi.CustomResourceState

	Etag pulumi.StringOutput `pulumi:"etag"`
	// An Array of GitHub Identity Provider Groups (or empty []).  Each `group` block consists of the fields documented below.
	// ***
	Groups TeamSyncGroupMappingGroupArrayOutput `pulumi:"groups"`
	// Slug of the team
	TeamSlug pulumi.StringOutput `pulumi:"teamSlug"`
}

This resource allows you to create and manage Identity Provider (IdP) group connections within your GitHub teams. You must have team synchronization enabled for organizations owned by enterprise accounts.

To learn more about team synchronization between IdPs and GitHub, please refer to: https://help.github.com/en/github/setting-up-and-managing-organizations-and-teams/synchronizing-teams-between-your-identity-provider-and-github

## Import

GitHub Team Sync Group Mappings can be imported using the GitHub team `slug` e.g.

```sh

$ pulumi import github:index/teamSyncGroupMapping:TeamSyncGroupMapping example some_team

```

func GetTeamSyncGroupMapping

func GetTeamSyncGroupMapping(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TeamSyncGroupMappingState, opts ...pulumi.ResourceOption) (*TeamSyncGroupMapping, error)

GetTeamSyncGroupMapping gets an existing TeamSyncGroupMapping 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 NewTeamSyncGroupMapping

func NewTeamSyncGroupMapping(ctx *pulumi.Context,
	name string, args *TeamSyncGroupMappingArgs, opts ...pulumi.ResourceOption) (*TeamSyncGroupMapping, error)

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

func (*TeamSyncGroupMapping) ElementType

func (*TeamSyncGroupMapping) ElementType() reflect.Type

func (*TeamSyncGroupMapping) ToTeamSyncGroupMappingOutput

func (i *TeamSyncGroupMapping) ToTeamSyncGroupMappingOutput() TeamSyncGroupMappingOutput

func (*TeamSyncGroupMapping) ToTeamSyncGroupMappingOutputWithContext

func (i *TeamSyncGroupMapping) ToTeamSyncGroupMappingOutputWithContext(ctx context.Context) TeamSyncGroupMappingOutput

type TeamSyncGroupMappingArgs

type TeamSyncGroupMappingArgs struct {
	// An Array of GitHub Identity Provider Groups (or empty []).  Each `group` block consists of the fields documented below.
	// ***
	Groups TeamSyncGroupMappingGroupArrayInput
	// Slug of the team
	TeamSlug pulumi.StringInput
}

The set of arguments for constructing a TeamSyncGroupMapping resource.

func (TeamSyncGroupMappingArgs) ElementType

func (TeamSyncGroupMappingArgs) ElementType() reflect.Type

type TeamSyncGroupMappingArray

type TeamSyncGroupMappingArray []TeamSyncGroupMappingInput

func (TeamSyncGroupMappingArray) ElementType

func (TeamSyncGroupMappingArray) ElementType() reflect.Type

func (TeamSyncGroupMappingArray) ToTeamSyncGroupMappingArrayOutput

func (i TeamSyncGroupMappingArray) ToTeamSyncGroupMappingArrayOutput() TeamSyncGroupMappingArrayOutput

func (TeamSyncGroupMappingArray) ToTeamSyncGroupMappingArrayOutputWithContext

func (i TeamSyncGroupMappingArray) ToTeamSyncGroupMappingArrayOutputWithContext(ctx context.Context) TeamSyncGroupMappingArrayOutput

type TeamSyncGroupMappingArrayInput

type TeamSyncGroupMappingArrayInput interface {
	pulumi.Input

	ToTeamSyncGroupMappingArrayOutput() TeamSyncGroupMappingArrayOutput
	ToTeamSyncGroupMappingArrayOutputWithContext(context.Context) TeamSyncGroupMappingArrayOutput
}

TeamSyncGroupMappingArrayInput is an input type that accepts TeamSyncGroupMappingArray and TeamSyncGroupMappingArrayOutput values. You can construct a concrete instance of `TeamSyncGroupMappingArrayInput` via:

TeamSyncGroupMappingArray{ TeamSyncGroupMappingArgs{...} }

type TeamSyncGroupMappingArrayOutput

type TeamSyncGroupMappingArrayOutput struct{ *pulumi.OutputState }

func (TeamSyncGroupMappingArrayOutput) ElementType

func (TeamSyncGroupMappingArrayOutput) Index

func (TeamSyncGroupMappingArrayOutput) ToTeamSyncGroupMappingArrayOutput

func (o TeamSyncGroupMappingArrayOutput) ToTeamSyncGroupMappingArrayOutput() TeamSyncGroupMappingArrayOutput

func (TeamSyncGroupMappingArrayOutput) ToTeamSyncGroupMappingArrayOutputWithContext

func (o TeamSyncGroupMappingArrayOutput) ToTeamSyncGroupMappingArrayOutputWithContext(ctx context.Context) TeamSyncGroupMappingArrayOutput

type TeamSyncGroupMappingGroup

type TeamSyncGroupMappingGroup struct {
	// The description of the IdP group.
	GroupDescription string `pulumi:"groupDescription"`
	// The ID of the IdP group.
	GroupId string `pulumi:"groupId"`
	// The name of the IdP group.
	GroupName string `pulumi:"groupName"`
}

type TeamSyncGroupMappingGroupArgs

type TeamSyncGroupMappingGroupArgs struct {
	// The description of the IdP group.
	GroupDescription pulumi.StringInput `pulumi:"groupDescription"`
	// The ID of the IdP group.
	GroupId pulumi.StringInput `pulumi:"groupId"`
	// The name of the IdP group.
	GroupName pulumi.StringInput `pulumi:"groupName"`
}

func (TeamSyncGroupMappingGroupArgs) ElementType

func (TeamSyncGroupMappingGroupArgs) ToTeamSyncGroupMappingGroupOutput

func (i TeamSyncGroupMappingGroupArgs) ToTeamSyncGroupMappingGroupOutput() TeamSyncGroupMappingGroupOutput

func (TeamSyncGroupMappingGroupArgs) ToTeamSyncGroupMappingGroupOutputWithContext

func (i TeamSyncGroupMappingGroupArgs) ToTeamSyncGroupMappingGroupOutputWithContext(ctx context.Context) TeamSyncGroupMappingGroupOutput

type TeamSyncGroupMappingGroupArray

type TeamSyncGroupMappingGroupArray []TeamSyncGroupMappingGroupInput

func (TeamSyncGroupMappingGroupArray) ElementType

func (TeamSyncGroupMappingGroupArray) ToTeamSyncGroupMappingGroupArrayOutput

func (i TeamSyncGroupMappingGroupArray) ToTeamSyncGroupMappingGroupArrayOutput() TeamSyncGroupMappingGroupArrayOutput

func (TeamSyncGroupMappingGroupArray) ToTeamSyncGroupMappingGroupArrayOutputWithContext

func (i TeamSyncGroupMappingGroupArray) ToTeamSyncGroupMappingGroupArrayOutputWithContext(ctx context.Context) TeamSyncGroupMappingGroupArrayOutput

type TeamSyncGroupMappingGroupArrayInput

type TeamSyncGroupMappingGroupArrayInput interface {
	pulumi.Input

	ToTeamSyncGroupMappingGroupArrayOutput() TeamSyncGroupMappingGroupArrayOutput
	ToTeamSyncGroupMappingGroupArrayOutputWithContext(context.Context) TeamSyncGroupMappingGroupArrayOutput
}

TeamSyncGroupMappingGroupArrayInput is an input type that accepts TeamSyncGroupMappingGroupArray and TeamSyncGroupMappingGroupArrayOutput values. You can construct a concrete instance of `TeamSyncGroupMappingGroupArrayInput` via:

TeamSyncGroupMappingGroupArray{ TeamSyncGroupMappingGroupArgs{...} }

type TeamSyncGroupMappingGroupArrayOutput

type TeamSyncGroupMappingGroupArrayOutput struct{ *pulumi.OutputState }

func (TeamSyncGroupMappingGroupArrayOutput) ElementType

func (TeamSyncGroupMappingGroupArrayOutput) Index

func (TeamSyncGroupMappingGroupArrayOutput) ToTeamSyncGroupMappingGroupArrayOutput

func (o TeamSyncGroupMappingGroupArrayOutput) ToTeamSyncGroupMappingGroupArrayOutput() TeamSyncGroupMappingGroupArrayOutput

func (TeamSyncGroupMappingGroupArrayOutput) ToTeamSyncGroupMappingGroupArrayOutputWithContext

func (o TeamSyncGroupMappingGroupArrayOutput) ToTeamSyncGroupMappingGroupArrayOutputWithContext(ctx context.Context) TeamSyncGroupMappingGroupArrayOutput

type TeamSyncGroupMappingGroupInput

type TeamSyncGroupMappingGroupInput interface {
	pulumi.Input

	ToTeamSyncGroupMappingGroupOutput() TeamSyncGroupMappingGroupOutput
	ToTeamSyncGroupMappingGroupOutputWithContext(context.Context) TeamSyncGroupMappingGroupOutput
}

TeamSyncGroupMappingGroupInput is an input type that accepts TeamSyncGroupMappingGroupArgs and TeamSyncGroupMappingGroupOutput values. You can construct a concrete instance of `TeamSyncGroupMappingGroupInput` via:

TeamSyncGroupMappingGroupArgs{...}

type TeamSyncGroupMappingGroupOutput

type TeamSyncGroupMappingGroupOutput struct{ *pulumi.OutputState }

func (TeamSyncGroupMappingGroupOutput) ElementType

func (TeamSyncGroupMappingGroupOutput) GroupDescription

The description of the IdP group.

func (TeamSyncGroupMappingGroupOutput) GroupId

The ID of the IdP group.

func (TeamSyncGroupMappingGroupOutput) GroupName

The name of the IdP group.

func (TeamSyncGroupMappingGroupOutput) ToTeamSyncGroupMappingGroupOutput

func (o TeamSyncGroupMappingGroupOutput) ToTeamSyncGroupMappingGroupOutput() TeamSyncGroupMappingGroupOutput

func (TeamSyncGroupMappingGroupOutput) ToTeamSyncGroupMappingGroupOutputWithContext

func (o TeamSyncGroupMappingGroupOutput) ToTeamSyncGroupMappingGroupOutputWithContext(ctx context.Context) TeamSyncGroupMappingGroupOutput

type TeamSyncGroupMappingInput

type TeamSyncGroupMappingInput interface {
	pulumi.Input

	ToTeamSyncGroupMappingOutput() TeamSyncGroupMappingOutput
	ToTeamSyncGroupMappingOutputWithContext(ctx context.Context) TeamSyncGroupMappingOutput
}

type TeamSyncGroupMappingMap

type TeamSyncGroupMappingMap map[string]TeamSyncGroupMappingInput

func (TeamSyncGroupMappingMap) ElementType

func (TeamSyncGroupMappingMap) ElementType() reflect.Type

func (TeamSyncGroupMappingMap) ToTeamSyncGroupMappingMapOutput

func (i TeamSyncGroupMappingMap) ToTeamSyncGroupMappingMapOutput() TeamSyncGroupMappingMapOutput

func (TeamSyncGroupMappingMap) ToTeamSyncGroupMappingMapOutputWithContext

func (i TeamSyncGroupMappingMap) ToTeamSyncGroupMappingMapOutputWithContext(ctx context.Context) TeamSyncGroupMappingMapOutput

type TeamSyncGroupMappingMapInput

type TeamSyncGroupMappingMapInput interface {
	pulumi.Input

	ToTeamSyncGroupMappingMapOutput() TeamSyncGroupMappingMapOutput
	ToTeamSyncGroupMappingMapOutputWithContext(context.Context) TeamSyncGroupMappingMapOutput
}

TeamSyncGroupMappingMapInput is an input type that accepts TeamSyncGroupMappingMap and TeamSyncGroupMappingMapOutput values. You can construct a concrete instance of `TeamSyncGroupMappingMapInput` via:

TeamSyncGroupMappingMap{ "key": TeamSyncGroupMappingArgs{...} }

type TeamSyncGroupMappingMapOutput

type TeamSyncGroupMappingMapOutput struct{ *pulumi.OutputState }

func (TeamSyncGroupMappingMapOutput) ElementType

func (TeamSyncGroupMappingMapOutput) MapIndex

func (TeamSyncGroupMappingMapOutput) ToTeamSyncGroupMappingMapOutput

func (o TeamSyncGroupMappingMapOutput) ToTeamSyncGroupMappingMapOutput() TeamSyncGroupMappingMapOutput

func (TeamSyncGroupMappingMapOutput) ToTeamSyncGroupMappingMapOutputWithContext

func (o TeamSyncGroupMappingMapOutput) ToTeamSyncGroupMappingMapOutputWithContext(ctx context.Context) TeamSyncGroupMappingMapOutput

type TeamSyncGroupMappingOutput

type TeamSyncGroupMappingOutput struct{ *pulumi.OutputState }

func (TeamSyncGroupMappingOutput) ElementType

func (TeamSyncGroupMappingOutput) ElementType() reflect.Type

func (TeamSyncGroupMappingOutput) Etag added in v4.15.0

func (TeamSyncGroupMappingOutput) Groups added in v4.15.0

An Array of GitHub Identity Provider Groups (or empty []). Each `group` block consists of the fields documented below. ***

func (TeamSyncGroupMappingOutput) TeamSlug added in v4.15.0

Slug of the team

func (TeamSyncGroupMappingOutput) ToTeamSyncGroupMappingOutput

func (o TeamSyncGroupMappingOutput) ToTeamSyncGroupMappingOutput() TeamSyncGroupMappingOutput

func (TeamSyncGroupMappingOutput) ToTeamSyncGroupMappingOutputWithContext

func (o TeamSyncGroupMappingOutput) ToTeamSyncGroupMappingOutputWithContext(ctx context.Context) TeamSyncGroupMappingOutput

type TeamSyncGroupMappingState

type TeamSyncGroupMappingState struct {
	Etag pulumi.StringPtrInput
	// An Array of GitHub Identity Provider Groups (or empty []).  Each `group` block consists of the fields documented below.
	// ***
	Groups TeamSyncGroupMappingGroupArrayInput
	// Slug of the team
	TeamSlug pulumi.StringPtrInput
}

func (TeamSyncGroupMappingState) ElementType

func (TeamSyncGroupMappingState) ElementType() reflect.Type

type UserGpgKey

type UserGpgKey struct {
	pulumi.CustomResourceState

	// Your public GPG key, generated in ASCII-armored format.
	// See [Generating a new GPG key](https://help.github.com/articles/generating-a-new-gpg-key/) for help on creating a GPG key.
	ArmoredPublicKey pulumi.StringOutput `pulumi:"armoredPublicKey"`
	Etag             pulumi.StringOutput `pulumi:"etag"`
	// The key ID of the GPG key, e.g. `3262EFF25BA0D270`
	KeyId pulumi.StringOutput `pulumi:"keyId"`
}

Provides a GitHub user's GPG key resource.

This resource allows you to add/remove GPG keys from your user account.

## Example Usage

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.NewUserGpgKey(ctx, "example", &github.UserGpgKeyArgs{
			ArmoredPublicKey: pulumi.String(fmt.Sprintf("-----BEGIN PGP PUBLIC KEY BLOCK-----\n...\n-----END PGP PUBLIC KEY BLOCK-----\n")),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

GPG keys are not importable due to the fact that [API](https://developer.github.com/v3/users/gpg_keys/#gpg-keys) does not return previously uploaded GPG key.

func GetUserGpgKey

func GetUserGpgKey(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *UserGpgKeyState, opts ...pulumi.ResourceOption) (*UserGpgKey, error)

GetUserGpgKey gets an existing UserGpgKey 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 NewUserGpgKey

func NewUserGpgKey(ctx *pulumi.Context,
	name string, args *UserGpgKeyArgs, opts ...pulumi.ResourceOption) (*UserGpgKey, error)

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

func (*UserGpgKey) ElementType

func (*UserGpgKey) ElementType() reflect.Type

func (*UserGpgKey) ToUserGpgKeyOutput

func (i *UserGpgKey) ToUserGpgKeyOutput() UserGpgKeyOutput

func (*UserGpgKey) ToUserGpgKeyOutputWithContext

func (i *UserGpgKey) ToUserGpgKeyOutputWithContext(ctx context.Context) UserGpgKeyOutput

type UserGpgKeyArgs

type UserGpgKeyArgs struct {
	// Your public GPG key, generated in ASCII-armored format.
	// See [Generating a new GPG key](https://help.github.com/articles/generating-a-new-gpg-key/) for help on creating a GPG key.
	ArmoredPublicKey pulumi.StringInput
}

The set of arguments for constructing a UserGpgKey resource.

func (UserGpgKeyArgs) ElementType

func (UserGpgKeyArgs) ElementType() reflect.Type

type UserGpgKeyArray

type UserGpgKeyArray []UserGpgKeyInput

func (UserGpgKeyArray) ElementType

func (UserGpgKeyArray) ElementType() reflect.Type

func (UserGpgKeyArray) ToUserGpgKeyArrayOutput

func (i UserGpgKeyArray) ToUserGpgKeyArrayOutput() UserGpgKeyArrayOutput

func (UserGpgKeyArray) ToUserGpgKeyArrayOutputWithContext

func (i UserGpgKeyArray) ToUserGpgKeyArrayOutputWithContext(ctx context.Context) UserGpgKeyArrayOutput

type UserGpgKeyArrayInput

type UserGpgKeyArrayInput interface {
	pulumi.Input

	ToUserGpgKeyArrayOutput() UserGpgKeyArrayOutput
	ToUserGpgKeyArrayOutputWithContext(context.Context) UserGpgKeyArrayOutput
}

UserGpgKeyArrayInput is an input type that accepts UserGpgKeyArray and UserGpgKeyArrayOutput values. You can construct a concrete instance of `UserGpgKeyArrayInput` via:

UserGpgKeyArray{ UserGpgKeyArgs{...} }

type UserGpgKeyArrayOutput

type UserGpgKeyArrayOutput struct{ *pulumi.OutputState }

func (UserGpgKeyArrayOutput) ElementType

func (UserGpgKeyArrayOutput) ElementType() reflect.Type

func (UserGpgKeyArrayOutput) Index

func (UserGpgKeyArrayOutput) ToUserGpgKeyArrayOutput

func (o UserGpgKeyArrayOutput) ToUserGpgKeyArrayOutput() UserGpgKeyArrayOutput

func (UserGpgKeyArrayOutput) ToUserGpgKeyArrayOutputWithContext

func (o UserGpgKeyArrayOutput) ToUserGpgKeyArrayOutputWithContext(ctx context.Context) UserGpgKeyArrayOutput

type UserGpgKeyInput

type UserGpgKeyInput interface {
	pulumi.Input

	ToUserGpgKeyOutput() UserGpgKeyOutput
	ToUserGpgKeyOutputWithContext(ctx context.Context) UserGpgKeyOutput
}

type UserGpgKeyMap

type UserGpgKeyMap map[string]UserGpgKeyInput

func (UserGpgKeyMap) ElementType

func (UserGpgKeyMap) ElementType() reflect.Type

func (UserGpgKeyMap) ToUserGpgKeyMapOutput

func (i UserGpgKeyMap) ToUserGpgKeyMapOutput() UserGpgKeyMapOutput

func (UserGpgKeyMap) ToUserGpgKeyMapOutputWithContext

func (i UserGpgKeyMap) ToUserGpgKeyMapOutputWithContext(ctx context.Context) UserGpgKeyMapOutput

type UserGpgKeyMapInput

type UserGpgKeyMapInput interface {
	pulumi.Input

	ToUserGpgKeyMapOutput() UserGpgKeyMapOutput
	ToUserGpgKeyMapOutputWithContext(context.Context) UserGpgKeyMapOutput
}

UserGpgKeyMapInput is an input type that accepts UserGpgKeyMap and UserGpgKeyMapOutput values. You can construct a concrete instance of `UserGpgKeyMapInput` via:

UserGpgKeyMap{ "key": UserGpgKeyArgs{...} }

type UserGpgKeyMapOutput

type UserGpgKeyMapOutput struct{ *pulumi.OutputState }

func (UserGpgKeyMapOutput) ElementType

func (UserGpgKeyMapOutput) ElementType() reflect.Type

func (UserGpgKeyMapOutput) MapIndex

func (UserGpgKeyMapOutput) ToUserGpgKeyMapOutput

func (o UserGpgKeyMapOutput) ToUserGpgKeyMapOutput() UserGpgKeyMapOutput

func (UserGpgKeyMapOutput) ToUserGpgKeyMapOutputWithContext

func (o UserGpgKeyMapOutput) ToUserGpgKeyMapOutputWithContext(ctx context.Context) UserGpgKeyMapOutput

type UserGpgKeyOutput

type UserGpgKeyOutput struct{ *pulumi.OutputState }

func (UserGpgKeyOutput) ArmoredPublicKey added in v4.15.0

func (o UserGpgKeyOutput) ArmoredPublicKey() pulumi.StringOutput

Your public GPG key, generated in ASCII-armored format. See [Generating a new GPG key](https://help.github.com/articles/generating-a-new-gpg-key/) for help on creating a GPG key.

func (UserGpgKeyOutput) ElementType

func (UserGpgKeyOutput) ElementType() reflect.Type

func (UserGpgKeyOutput) Etag added in v4.15.0

func (UserGpgKeyOutput) KeyId added in v4.15.0

The key ID of the GPG key, e.g. `3262EFF25BA0D270`

func (UserGpgKeyOutput) ToUserGpgKeyOutput

func (o UserGpgKeyOutput) ToUserGpgKeyOutput() UserGpgKeyOutput

func (UserGpgKeyOutput) ToUserGpgKeyOutputWithContext

func (o UserGpgKeyOutput) ToUserGpgKeyOutputWithContext(ctx context.Context) UserGpgKeyOutput

type UserGpgKeyState

type UserGpgKeyState struct {
	// Your public GPG key, generated in ASCII-armored format.
	// See [Generating a new GPG key](https://help.github.com/articles/generating-a-new-gpg-key/) for help on creating a GPG key.
	ArmoredPublicKey pulumi.StringPtrInput
	Etag             pulumi.StringPtrInput
	// The key ID of the GPG key, e.g. `3262EFF25BA0D270`
	KeyId pulumi.StringPtrInput
}

func (UserGpgKeyState) ElementType

func (UserGpgKeyState) ElementType() reflect.Type

type UserInvitationAccepter

type UserInvitationAccepter struct {
	pulumi.CustomResourceState

	// ID of the invitation to accept
	InvitationId pulumi.StringOutput `pulumi:"invitationId"`
}

Provides a resource to manage GitHub repository collaborator invitations.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleRepository, err := github.NewRepository(ctx, "exampleRepository", nil)
		if err != nil {
			return err
		}
		exampleRepositoryCollaborator, err := github.NewRepositoryCollaborator(ctx, "exampleRepositoryCollaborator", &github.RepositoryCollaboratorArgs{
			Repository: exampleRepository.Name,
			Username:   pulumi.String("example-username"),
			Permission: pulumi.String("push"),
		})
		if err != nil {
			return err
		}
		_, err = github.NewProvider(ctx, "invitee", &github.ProviderArgs{
			Token: pulumi.Any(_var.Invitee_token),
		})
		if err != nil {
			return err
		}
		_, err = github.NewUserInvitationAccepter(ctx, "exampleUserInvitationAccepter", &github.UserInvitationAccepterArgs{
			InvitationId: exampleRepositoryCollaborator.InvitationId,
		}, pulumi.Provider("github.invitee"))
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetUserInvitationAccepter

func GetUserInvitationAccepter(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *UserInvitationAccepterState, opts ...pulumi.ResourceOption) (*UserInvitationAccepter, error)

GetUserInvitationAccepter gets an existing UserInvitationAccepter 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 NewUserInvitationAccepter

func NewUserInvitationAccepter(ctx *pulumi.Context,
	name string, args *UserInvitationAccepterArgs, opts ...pulumi.ResourceOption) (*UserInvitationAccepter, error)

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

func (*UserInvitationAccepter) ElementType

func (*UserInvitationAccepter) ElementType() reflect.Type

func (*UserInvitationAccepter) ToUserInvitationAccepterOutput

func (i *UserInvitationAccepter) ToUserInvitationAccepterOutput() UserInvitationAccepterOutput

func (*UserInvitationAccepter) ToUserInvitationAccepterOutputWithContext

func (i *UserInvitationAccepter) ToUserInvitationAccepterOutputWithContext(ctx context.Context) UserInvitationAccepterOutput

type UserInvitationAccepterArgs

type UserInvitationAccepterArgs struct {
	// ID of the invitation to accept
	InvitationId pulumi.StringInput
}

The set of arguments for constructing a UserInvitationAccepter resource.

func (UserInvitationAccepterArgs) ElementType

func (UserInvitationAccepterArgs) ElementType() reflect.Type

type UserInvitationAccepterArray

type UserInvitationAccepterArray []UserInvitationAccepterInput

func (UserInvitationAccepterArray) ElementType

func (UserInvitationAccepterArray) ToUserInvitationAccepterArrayOutput

func (i UserInvitationAccepterArray) ToUserInvitationAccepterArrayOutput() UserInvitationAccepterArrayOutput

func (UserInvitationAccepterArray) ToUserInvitationAccepterArrayOutputWithContext

func (i UserInvitationAccepterArray) ToUserInvitationAccepterArrayOutputWithContext(ctx context.Context) UserInvitationAccepterArrayOutput

type UserInvitationAccepterArrayInput

type UserInvitationAccepterArrayInput interface {
	pulumi.Input

	ToUserInvitationAccepterArrayOutput() UserInvitationAccepterArrayOutput
	ToUserInvitationAccepterArrayOutputWithContext(context.Context) UserInvitationAccepterArrayOutput
}

UserInvitationAccepterArrayInput is an input type that accepts UserInvitationAccepterArray and UserInvitationAccepterArrayOutput values. You can construct a concrete instance of `UserInvitationAccepterArrayInput` via:

UserInvitationAccepterArray{ UserInvitationAccepterArgs{...} }

type UserInvitationAccepterArrayOutput

type UserInvitationAccepterArrayOutput struct{ *pulumi.OutputState }

func (UserInvitationAccepterArrayOutput) ElementType

func (UserInvitationAccepterArrayOutput) Index

func (UserInvitationAccepterArrayOutput) ToUserInvitationAccepterArrayOutput

func (o UserInvitationAccepterArrayOutput) ToUserInvitationAccepterArrayOutput() UserInvitationAccepterArrayOutput

func (UserInvitationAccepterArrayOutput) ToUserInvitationAccepterArrayOutputWithContext

func (o UserInvitationAccepterArrayOutput) ToUserInvitationAccepterArrayOutputWithContext(ctx context.Context) UserInvitationAccepterArrayOutput

type UserInvitationAccepterInput

type UserInvitationAccepterInput interface {
	pulumi.Input

	ToUserInvitationAccepterOutput() UserInvitationAccepterOutput
	ToUserInvitationAccepterOutputWithContext(ctx context.Context) UserInvitationAccepterOutput
}

type UserInvitationAccepterMap

type UserInvitationAccepterMap map[string]UserInvitationAccepterInput

func (UserInvitationAccepterMap) ElementType

func (UserInvitationAccepterMap) ElementType() reflect.Type

func (UserInvitationAccepterMap) ToUserInvitationAccepterMapOutput

func (i UserInvitationAccepterMap) ToUserInvitationAccepterMapOutput() UserInvitationAccepterMapOutput

func (UserInvitationAccepterMap) ToUserInvitationAccepterMapOutputWithContext

func (i UserInvitationAccepterMap) ToUserInvitationAccepterMapOutputWithContext(ctx context.Context) UserInvitationAccepterMapOutput

type UserInvitationAccepterMapInput

type UserInvitationAccepterMapInput interface {
	pulumi.Input

	ToUserInvitationAccepterMapOutput() UserInvitationAccepterMapOutput
	ToUserInvitationAccepterMapOutputWithContext(context.Context) UserInvitationAccepterMapOutput
}

UserInvitationAccepterMapInput is an input type that accepts UserInvitationAccepterMap and UserInvitationAccepterMapOutput values. You can construct a concrete instance of `UserInvitationAccepterMapInput` via:

UserInvitationAccepterMap{ "key": UserInvitationAccepterArgs{...} }

type UserInvitationAccepterMapOutput

type UserInvitationAccepterMapOutput struct{ *pulumi.OutputState }

func (UserInvitationAccepterMapOutput) ElementType

func (UserInvitationAccepterMapOutput) MapIndex

func (UserInvitationAccepterMapOutput) ToUserInvitationAccepterMapOutput

func (o UserInvitationAccepterMapOutput) ToUserInvitationAccepterMapOutput() UserInvitationAccepterMapOutput

func (UserInvitationAccepterMapOutput) ToUserInvitationAccepterMapOutputWithContext

func (o UserInvitationAccepterMapOutput) ToUserInvitationAccepterMapOutputWithContext(ctx context.Context) UserInvitationAccepterMapOutput

type UserInvitationAccepterOutput

type UserInvitationAccepterOutput struct{ *pulumi.OutputState }

func (UserInvitationAccepterOutput) ElementType

func (UserInvitationAccepterOutput) InvitationId added in v4.15.0

ID of the invitation to accept

func (UserInvitationAccepterOutput) ToUserInvitationAccepterOutput

func (o UserInvitationAccepterOutput) ToUserInvitationAccepterOutput() UserInvitationAccepterOutput

func (UserInvitationAccepterOutput) ToUserInvitationAccepterOutputWithContext

func (o UserInvitationAccepterOutput) ToUserInvitationAccepterOutputWithContext(ctx context.Context) UserInvitationAccepterOutput

type UserInvitationAccepterState

type UserInvitationAccepterState struct {
	// ID of the invitation to accept
	InvitationId pulumi.StringPtrInput
}

func (UserInvitationAccepterState) ElementType

type UserSshKey

type UserSshKey struct {
	pulumi.CustomResourceState

	Etag pulumi.StringOutput `pulumi:"etag"`
	// The public SSH key to add to your GitHub account.
	Key pulumi.StringOutput `pulumi:"key"`
	// A descriptive name for the new key. e.g. `Personal MacBook Air`
	Title pulumi.StringOutput `pulumi:"title"`
	// The URL of the SSH key
	Url pulumi.StringOutput `pulumi:"url"`
}

Provides a GitHub user's SSH key resource.

This resource allows you to add/remove SSH keys from your user account.

## Example Usage

```go package main

import (

"io/ioutil"

"github.com/pulumi/pulumi-github/sdk/v4/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.NewUserSshKey(ctx, "example", &github.UserSshKeyArgs{
			Title: pulumi.String("example title"),
			Key:   readFileOrPanic("~/.ssh/id_rsa.pub"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

SSH keys can be imported using their ID e.g.

```sh

$ pulumi import github:index/userSshKey:UserSshKey example 1234567

```

func GetUserSshKey

func GetUserSshKey(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *UserSshKeyState, opts ...pulumi.ResourceOption) (*UserSshKey, error)

GetUserSshKey gets an existing UserSshKey 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 NewUserSshKey

func NewUserSshKey(ctx *pulumi.Context,
	name string, args *UserSshKeyArgs, opts ...pulumi.ResourceOption) (*UserSshKey, error)

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

func (*UserSshKey) ElementType

func (*UserSshKey) ElementType() reflect.Type

func (*UserSshKey) ToUserSshKeyOutput

func (i *UserSshKey) ToUserSshKeyOutput() UserSshKeyOutput

func (*UserSshKey) ToUserSshKeyOutputWithContext

func (i *UserSshKey) ToUserSshKeyOutputWithContext(ctx context.Context) UserSshKeyOutput

type UserSshKeyArgs

type UserSshKeyArgs struct {
	// The public SSH key to add to your GitHub account.
	Key pulumi.StringInput
	// A descriptive name for the new key. e.g. `Personal MacBook Air`
	Title pulumi.StringInput
}

The set of arguments for constructing a UserSshKey resource.

func (UserSshKeyArgs) ElementType

func (UserSshKeyArgs) ElementType() reflect.Type

type UserSshKeyArray

type UserSshKeyArray []UserSshKeyInput

func (UserSshKeyArray) ElementType

func (UserSshKeyArray) ElementType() reflect.Type

func (UserSshKeyArray) ToUserSshKeyArrayOutput

func (i UserSshKeyArray) ToUserSshKeyArrayOutput() UserSshKeyArrayOutput

func (UserSshKeyArray) ToUserSshKeyArrayOutputWithContext

func (i UserSshKeyArray) ToUserSshKeyArrayOutputWithContext(ctx context.Context) UserSshKeyArrayOutput

type UserSshKeyArrayInput

type UserSshKeyArrayInput interface {
	pulumi.Input

	ToUserSshKeyArrayOutput() UserSshKeyArrayOutput
	ToUserSshKeyArrayOutputWithContext(context.Context) UserSshKeyArrayOutput
}

UserSshKeyArrayInput is an input type that accepts UserSshKeyArray and UserSshKeyArrayOutput values. You can construct a concrete instance of `UserSshKeyArrayInput` via:

UserSshKeyArray{ UserSshKeyArgs{...} }

type UserSshKeyArrayOutput

type UserSshKeyArrayOutput struct{ *pulumi.OutputState }

func (UserSshKeyArrayOutput) ElementType

func (UserSshKeyArrayOutput) ElementType() reflect.Type

func (UserSshKeyArrayOutput) Index

func (UserSshKeyArrayOutput) ToUserSshKeyArrayOutput

func (o UserSshKeyArrayOutput) ToUserSshKeyArrayOutput() UserSshKeyArrayOutput

func (UserSshKeyArrayOutput) ToUserSshKeyArrayOutputWithContext

func (o UserSshKeyArrayOutput) ToUserSshKeyArrayOutputWithContext(ctx context.Context) UserSshKeyArrayOutput

type UserSshKeyInput

type UserSshKeyInput interface {
	pulumi.Input

	ToUserSshKeyOutput() UserSshKeyOutput
	ToUserSshKeyOutputWithContext(ctx context.Context) UserSshKeyOutput
}

type UserSshKeyMap

type UserSshKeyMap map[string]UserSshKeyInput

func (UserSshKeyMap) ElementType

func (UserSshKeyMap) ElementType() reflect.Type

func (UserSshKeyMap) ToUserSshKeyMapOutput

func (i UserSshKeyMap) ToUserSshKeyMapOutput() UserSshKeyMapOutput

func (UserSshKeyMap) ToUserSshKeyMapOutputWithContext

func (i UserSshKeyMap) ToUserSshKeyMapOutputWithContext(ctx context.Context) UserSshKeyMapOutput

type UserSshKeyMapInput

type UserSshKeyMapInput interface {
	pulumi.Input

	ToUserSshKeyMapOutput() UserSshKeyMapOutput
	ToUserSshKeyMapOutputWithContext(context.Context) UserSshKeyMapOutput
}

UserSshKeyMapInput is an input type that accepts UserSshKeyMap and UserSshKeyMapOutput values. You can construct a concrete instance of `UserSshKeyMapInput` via:

UserSshKeyMap{ "key": UserSshKeyArgs{...} }

type UserSshKeyMapOutput

type UserSshKeyMapOutput struct{ *pulumi.OutputState }

func (UserSshKeyMapOutput) ElementType

func (UserSshKeyMapOutput) ElementType() reflect.Type

func (UserSshKeyMapOutput) MapIndex

func (UserSshKeyMapOutput) ToUserSshKeyMapOutput

func (o UserSshKeyMapOutput) ToUserSshKeyMapOutput() UserSshKeyMapOutput

func (UserSshKeyMapOutput) ToUserSshKeyMapOutputWithContext

func (o UserSshKeyMapOutput) ToUserSshKeyMapOutputWithContext(ctx context.Context) UserSshKeyMapOutput

type UserSshKeyOutput

type UserSshKeyOutput struct{ *pulumi.OutputState }

func (UserSshKeyOutput) ElementType

func (UserSshKeyOutput) ElementType() reflect.Type

func (UserSshKeyOutput) Etag added in v4.15.0

func (UserSshKeyOutput) Key added in v4.15.0

The public SSH key to add to your GitHub account.

func (UserSshKeyOutput) Title added in v4.15.0

A descriptive name for the new key. e.g. `Personal MacBook Air`

func (UserSshKeyOutput) ToUserSshKeyOutput

func (o UserSshKeyOutput) ToUserSshKeyOutput() UserSshKeyOutput

func (UserSshKeyOutput) ToUserSshKeyOutputWithContext

func (o UserSshKeyOutput) ToUserSshKeyOutputWithContext(ctx context.Context) UserSshKeyOutput

func (UserSshKeyOutput) Url added in v4.15.0

The URL of the SSH key

type UserSshKeyState

type UserSshKeyState struct {
	Etag pulumi.StringPtrInput
	// The public SSH key to add to your GitHub account.
	Key pulumi.StringPtrInput
	// A descriptive name for the new key. e.g. `Personal MacBook Air`
	Title pulumi.StringPtrInput
	// The URL of the SSH key
	Url pulumi.StringPtrInput
}

func (UserSshKeyState) ElementType

func (UserSshKeyState) ElementType() reflect.Type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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