buildkite

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

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 AgentToken

type AgentToken struct {
	pulumi.CustomResourceState

	// This is the description of the agent token.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The value of the created agent token.
	Token pulumi.StringOutput `pulumi:"token"`
	// The UUID of the token.
	Uuid pulumi.StringOutput `pulumi:"uuid"`
}

## # Resource: agentToken

This resource allows you to create and manage agent tokens.

Buildkite Documentation: https://buildkite.com/docs/agent/v3/tokens

## Example Usage

```go package main

import (

"github.com/grapl-security/pulumi-buildkite/sdk/go/buildkite"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := buildkite.NewAgentToken(ctx, "fleet", &buildkite.AgentTokenArgs{
			Description: pulumi.String("token used by build fleet"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Tokens can be imported using the `GraphQL ID` (not UUID), e.g.

```sh

$ pulumi import buildkite:index/agentToken:AgentToken fleet QWdlbnRUb2tlbi0tLTQzNWNhZDU4LWU4MWQtNDVhZi04NjM3LWIxY2Y4MDcwMjM4ZA==

```

func GetAgentToken

func GetAgentToken(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AgentTokenState, opts ...pulumi.ResourceOption) (*AgentToken, error)

GetAgentToken gets an existing AgentToken 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 NewAgentToken

func NewAgentToken(ctx *pulumi.Context,
	name string, args *AgentTokenArgs, opts ...pulumi.ResourceOption) (*AgentToken, error)

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

func (*AgentToken) ElementType

func (*AgentToken) ElementType() reflect.Type

func (*AgentToken) ToAgentTokenOutput

func (i *AgentToken) ToAgentTokenOutput() AgentTokenOutput

func (*AgentToken) ToAgentTokenOutputWithContext

func (i *AgentToken) ToAgentTokenOutputWithContext(ctx context.Context) AgentTokenOutput

type AgentTokenArgs

type AgentTokenArgs struct {
	// This is the description of the agent token.
	Description pulumi.StringPtrInput
}

The set of arguments for constructing a AgentToken resource.

func (AgentTokenArgs) ElementType

func (AgentTokenArgs) ElementType() reflect.Type

type AgentTokenArray

type AgentTokenArray []AgentTokenInput

func (AgentTokenArray) ElementType

func (AgentTokenArray) ElementType() reflect.Type

func (AgentTokenArray) ToAgentTokenArrayOutput

func (i AgentTokenArray) ToAgentTokenArrayOutput() AgentTokenArrayOutput

func (AgentTokenArray) ToAgentTokenArrayOutputWithContext

func (i AgentTokenArray) ToAgentTokenArrayOutputWithContext(ctx context.Context) AgentTokenArrayOutput

type AgentTokenArrayInput

type AgentTokenArrayInput interface {
	pulumi.Input

	ToAgentTokenArrayOutput() AgentTokenArrayOutput
	ToAgentTokenArrayOutputWithContext(context.Context) AgentTokenArrayOutput
}

AgentTokenArrayInput is an input type that accepts AgentTokenArray and AgentTokenArrayOutput values. You can construct a concrete instance of `AgentTokenArrayInput` via:

AgentTokenArray{ AgentTokenArgs{...} }

type AgentTokenArrayOutput

type AgentTokenArrayOutput struct{ *pulumi.OutputState }

func (AgentTokenArrayOutput) ElementType

func (AgentTokenArrayOutput) ElementType() reflect.Type

func (AgentTokenArrayOutput) Index

func (AgentTokenArrayOutput) ToAgentTokenArrayOutput

func (o AgentTokenArrayOutput) ToAgentTokenArrayOutput() AgentTokenArrayOutput

func (AgentTokenArrayOutput) ToAgentTokenArrayOutputWithContext

func (o AgentTokenArrayOutput) ToAgentTokenArrayOutputWithContext(ctx context.Context) AgentTokenArrayOutput

type AgentTokenInput

type AgentTokenInput interface {
	pulumi.Input

	ToAgentTokenOutput() AgentTokenOutput
	ToAgentTokenOutputWithContext(ctx context.Context) AgentTokenOutput
}

type AgentTokenMap

type AgentTokenMap map[string]AgentTokenInput

func (AgentTokenMap) ElementType

func (AgentTokenMap) ElementType() reflect.Type

func (AgentTokenMap) ToAgentTokenMapOutput

func (i AgentTokenMap) ToAgentTokenMapOutput() AgentTokenMapOutput

func (AgentTokenMap) ToAgentTokenMapOutputWithContext

func (i AgentTokenMap) ToAgentTokenMapOutputWithContext(ctx context.Context) AgentTokenMapOutput

type AgentTokenMapInput

type AgentTokenMapInput interface {
	pulumi.Input

	ToAgentTokenMapOutput() AgentTokenMapOutput
	ToAgentTokenMapOutputWithContext(context.Context) AgentTokenMapOutput
}

AgentTokenMapInput is an input type that accepts AgentTokenMap and AgentTokenMapOutput values. You can construct a concrete instance of `AgentTokenMapInput` via:

AgentTokenMap{ "key": AgentTokenArgs{...} }

type AgentTokenMapOutput

type AgentTokenMapOutput struct{ *pulumi.OutputState }

func (AgentTokenMapOutput) ElementType

func (AgentTokenMapOutput) ElementType() reflect.Type

func (AgentTokenMapOutput) MapIndex

func (AgentTokenMapOutput) ToAgentTokenMapOutput

func (o AgentTokenMapOutput) ToAgentTokenMapOutput() AgentTokenMapOutput

func (AgentTokenMapOutput) ToAgentTokenMapOutputWithContext

func (o AgentTokenMapOutput) ToAgentTokenMapOutputWithContext(ctx context.Context) AgentTokenMapOutput

type AgentTokenOutput

type AgentTokenOutput struct{ *pulumi.OutputState }

func (AgentTokenOutput) Description added in v0.2.0

func (o AgentTokenOutput) Description() pulumi.StringPtrOutput

This is the description of the agent token.

func (AgentTokenOutput) ElementType

func (AgentTokenOutput) ElementType() reflect.Type

func (AgentTokenOutput) ToAgentTokenOutput

func (o AgentTokenOutput) ToAgentTokenOutput() AgentTokenOutput

func (AgentTokenOutput) ToAgentTokenOutputWithContext

func (o AgentTokenOutput) ToAgentTokenOutputWithContext(ctx context.Context) AgentTokenOutput

func (AgentTokenOutput) Token added in v0.2.0

The value of the created agent token.

func (AgentTokenOutput) Uuid added in v0.2.0

The UUID of the token.

type AgentTokenState

type AgentTokenState struct {
	// This is the description of the agent token.
	Description pulumi.StringPtrInput
	// The value of the created agent token.
	Token pulumi.StringPtrInput
	// The UUID of the token.
	Uuid pulumi.StringPtrInput
}

func (AgentTokenState) ElementType

func (AgentTokenState) ElementType() reflect.Type

type GetMetaResult

type GetMetaResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of strings, each one an IP address (x.x.x.x) or CIDR address (x.x.x.x/32) that Buildkite may use to send webhooks and other external requests.
	WebhookIps []string `pulumi:"webhookIps"`
}

A collection of values returned by getMeta.

func GetMeta

func GetMeta(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetMetaResult, error)

type LookupPipelineArgs

type LookupPipelineArgs struct {
	// The slug of the pipeline, available in the URL of the pipeline on buildkite.com
	Slug string `pulumi:"slug"`
}

A collection of arguments for invoking getPipeline.

type LookupPipelineOutputArgs

type LookupPipelineOutputArgs struct {
	// The slug of the pipeline, available in the URL of the pipeline on buildkite.com
	Slug pulumi.StringInput `pulumi:"slug"`
}

A collection of arguments for invoking getPipeline.

func (LookupPipelineOutputArgs) ElementType

func (LookupPipelineOutputArgs) ElementType() reflect.Type

type LookupPipelineResult

type LookupPipelineResult struct {
	// The default branch to prefill when new builds are created or triggered, usually main or master but can be anything.
	DefaultBranch string `pulumi:"defaultBranch"`
	// A description of the pipeline.
	Description string `pulumi:"description"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The name of the pipeline.
	Name string `pulumi:"name"`
	// The git URL of the repository.
	Repository string `pulumi:"repository"`
	Slug       string `pulumi:"slug"`
	// The default branch to prefill when new builds are created or triggered.
	WebhookUrl string `pulumi:"webhookUrl"`
}

A collection of values returned by getPipeline.

func LookupPipeline

func LookupPipeline(ctx *pulumi.Context, args *LookupPipelineArgs, opts ...pulumi.InvokeOption) (*LookupPipelineResult, error)

## # Data Source: pipeline

Use this data source to look up properties on a specific pipeline. This is particularly useful for looking up the webhook URL for each pipeline.

Buildkite Documentation: https://buildkite.com/docs/pipelines

## Example Usage

```go package main

import (

"github.com/grapl-security/pulumi-buildkite/sdk/go/buildkite"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := buildkite.LookupPipeline(ctx, &GetPipelineArgs{
			Slug: "repo2",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupPipelineResultOutput

type LookupPipelineResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getPipeline.

func (LookupPipelineResultOutput) DefaultBranch

The default branch to prefill when new builds are created or triggered, usually main or master but can be anything.

func (LookupPipelineResultOutput) Description

A description of the pipeline.

func (LookupPipelineResultOutput) ElementType

func (LookupPipelineResultOutput) ElementType() reflect.Type

func (LookupPipelineResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (LookupPipelineResultOutput) Name

The name of the pipeline.

func (LookupPipelineResultOutput) Repository

The git URL of the repository.

func (LookupPipelineResultOutput) Slug

func (LookupPipelineResultOutput) ToLookupPipelineResultOutput

func (o LookupPipelineResultOutput) ToLookupPipelineResultOutput() LookupPipelineResultOutput

func (LookupPipelineResultOutput) ToLookupPipelineResultOutputWithContext

func (o LookupPipelineResultOutput) ToLookupPipelineResultOutputWithContext(ctx context.Context) LookupPipelineResultOutput

func (LookupPipelineResultOutput) WebhookUrl

The default branch to prefill when new builds are created or triggered.

type LookupTeamArgs added in v0.2.0

type LookupTeamArgs struct {
	// The slug of the team, available in the URL of the team on buildkite.com
	Slug string `pulumi:"slug"`
}

A collection of arguments for invoking getTeam.

type LookupTeamOutputArgs added in v0.2.0

type LookupTeamOutputArgs struct {
	// The slug of the team, available in the URL of the team on buildkite.com
	Slug pulumi.StringInput `pulumi:"slug"`
}

A collection of arguments for invoking getTeam.

func (LookupTeamOutputArgs) ElementType added in v0.2.0

func (LookupTeamOutputArgs) ElementType() reflect.Type

type LookupTeamResult added in v0.2.0

type LookupTeamResult struct {
	// Default role to assign to a team member
	DefaultMemberRole string `pulumi:"defaultMemberRole"`
	// Whether new org members will be automatically added to this team
	DefaultTeam bool `pulumi:"defaultTeam"`
	// A description of the team
	Description string `pulumi:"description"`
	// The GraphQL ID of the team
	Id string `pulumi:"id"`
	// Whether team members can create new pipelines and add them to the team
	MembersCanCreatePipelines bool `pulumi:"membersCanCreatePipelines"`
	// The name of the team
	Name string `pulumi:"name"`
	// Whether the team is visible to org members outside this team
	Privacy string `pulumi:"privacy"`
	Slug    string `pulumi:"slug"`
	// The UUID of the team
	Uuid string `pulumi:"uuid"`
}

A collection of values returned by getTeam.

func LookupTeam added in v0.2.0

func LookupTeam(ctx *pulumi.Context, args *LookupTeamArgs, opts ...pulumi.InvokeOption) (*LookupTeamResult, error)

## # Data Source: team

Use this data source to look up properties of a team. This can be used to validate that a team exists before setting the team slug on a pipeline.

Buildkite documentation: https://buildkite.com/docs/pipelines/permissions

## Example Usage

```go package main

import (

"github.com/grapl-security/pulumi-buildkite/sdk/go/buildkite"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := buildkite.LookupTeam(ctx, &GetTeamArgs{
			Slug: "my_team",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupTeamResultOutput added in v0.2.0

type LookupTeamResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getTeam.

func LookupTeamOutput added in v0.2.0

func LookupTeamOutput(ctx *pulumi.Context, args LookupTeamOutputArgs, opts ...pulumi.InvokeOption) LookupTeamResultOutput

func (LookupTeamResultOutput) DefaultMemberRole added in v0.2.0

func (o LookupTeamResultOutput) DefaultMemberRole() pulumi.StringOutput

Default role to assign to a team member

func (LookupTeamResultOutput) DefaultTeam added in v0.2.0

func (o LookupTeamResultOutput) DefaultTeam() pulumi.BoolOutput

Whether new org members will be automatically added to this team

func (LookupTeamResultOutput) Description added in v0.2.0

func (o LookupTeamResultOutput) Description() pulumi.StringOutput

A description of the team

func (LookupTeamResultOutput) ElementType added in v0.2.0

func (LookupTeamResultOutput) ElementType() reflect.Type

func (LookupTeamResultOutput) Id added in v0.2.0

The GraphQL ID of the team

func (LookupTeamResultOutput) MembersCanCreatePipelines added in v0.2.0

func (o LookupTeamResultOutput) MembersCanCreatePipelines() pulumi.BoolOutput

Whether team members can create new pipelines and add them to the team

func (LookupTeamResultOutput) Name added in v0.2.0

The name of the team

func (LookupTeamResultOutput) Privacy added in v0.2.0

Whether the team is visible to org members outside this team

func (LookupTeamResultOutput) Slug added in v0.2.0

func (LookupTeamResultOutput) ToLookupTeamResultOutput added in v0.2.0

func (o LookupTeamResultOutput) ToLookupTeamResultOutput() LookupTeamResultOutput

func (LookupTeamResultOutput) ToLookupTeamResultOutputWithContext added in v0.2.0

func (o LookupTeamResultOutput) ToLookupTeamResultOutputWithContext(ctx context.Context) LookupTeamResultOutput

func (LookupTeamResultOutput) Uuid added in v0.2.0

The UUID of the team

type Pipeline

type Pipeline struct {
	pulumi.CustomResourceState

	AllowRebuilds pulumi.BoolOutput `pulumi:"allowRebuilds"`
	// The pipeline's last build status so you can display build status badge.
	BadgeUrl pulumi.StringOutput `pulumi:"badgeUrl"`
	// Limit which branches and tags cause new builds to be created, either via a code push or via the Builds REST API.
	BranchConfiguration pulumi.StringOutput `pulumi:"branchConfiguration"`
	// A boolean to enable automatically cancelling any running builds on the same branch when a new build is created.
	CancelIntermediateBuilds pulumi.BoolOutput `pulumi:"cancelIntermediateBuilds"`
	// Limit which branches build cancelling applies to, for example !master will ensure that the master branch won't have it's builds automatically cancelled.
	CancelIntermediateBuildsBranchFilter pulumi.StringOutput `pulumi:"cancelIntermediateBuildsBranchFilter"`
	// The GraphQL ID of the cluster you want to use for the pipeline.
	ClusterId pulumi.StringOutput `pulumi:"clusterId"`
	// The default branch to prefill when new builds are created or triggered, usually main or master but can be anything.
	DefaultBranch pulumi.StringOutput `pulumi:"defaultBranch"`
	// A description of the pipeline.
	Description pulumi.StringOutput `pulumi:"description"`
	// The name of the pipeline.
	Name pulumi.StringOutput `pulumi:"name"`
	// Source control provider settings for the pipeline. See Provider Settings Configuration below for details.
	ProviderSettings PipelineProviderSettingsOutput `pulumi:"providerSettings"`
	// The git URL of the repository.
	Repository pulumi.StringOutput `pulumi:"repository"`
	// A boolean to enable automatically skipping any unstarted builds on the same branch when a new build is created.
	SkipIntermediateBuilds pulumi.BoolOutput `pulumi:"skipIntermediateBuilds"`
	// Limit which branches build skipping applies to, for example `!master` will ensure that the master branch won't have it's builds automatically skipped.
	SkipIntermediateBuildsBranchFilter pulumi.StringOutput `pulumi:"skipIntermediateBuildsBranchFilter"`
	// The buildkite slug of the team.
	Slug pulumi.StringOutput `pulumi:"slug"`
	// The string YAML steps to run the pipeline.
	Steps pulumi.StringOutput      `pulumi:"steps"`
	Tags  pulumi.StringArrayOutput `pulumi:"tags"`
	// Set team access for the pipeline. Can be specified multiple times for each team. See Teams Configuration below for details.
	Teams PipelineTeamArrayOutput `pulumi:"teams"`
	// The Buildkite webhook URL to configure on the repository to trigger builds on this pipeline.
	WebhookUrl pulumi.StringOutput `pulumi:"webhookUrl"`
}

## # Resource: pipeline

This resource allows you to create and manage pipelines for repositories.

Buildkite Documentation: https://buildkite.com/docs/pipelines

## Example Usage

```go package main

import (

"io/ioutil"

"github.com/grapl-security/pulumi-buildkite/sdk/go/buildkite"
"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 := buildkite.NewPipeline(ctx, "repo2", &buildkite.PipelineArgs{
			Repository: pulumi.String("git@github.com:org/repo2"),
			Steps:      readFileOrPanic("./steps.yml"),
			Teams: PipelineTeamArray{
				&PipelineTeamArgs{
					Slug:        pulumi.String("everyone"),
					AccessLevel: pulumi.String("READ_ONLY"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### With GitHub Provider Settings

```go package main

import (

"io/ioutil"

"github.com/grapl-security/pulumi-buildkite/sdk/go/buildkite"
"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 := buildkite.NewPipeline(ctx, "repo2-deploy", &buildkite.PipelineArgs{
			Repository: pulumi.String("git@github.com:org/repo2"),
			Steps:      readFileOrPanic("./deploy-steps.yml"),
			ProviderSettings: &PipelineProviderSettingsArgs{
				TriggerMode: pulumi.String("none"),
			},
		})
		if err != nil {
			return err
		}
		_, err = buildkite.NewPipeline(ctx, "repo2-release", &buildkite.PipelineArgs{
			Repository: pulumi.String("git@github.com:org/repo2"),
			Steps:      readFileOrPanic("./release-steps.yml"),
			ProviderSettings: &PipelineProviderSettingsArgs{
				BuildBranches:     pulumi.Bool(false),
				BuildTags:         pulumi.Bool(true),
				BuildPullRequests: pulumi.Bool(false),
				TriggerMode:       pulumi.String("code"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Pipelines can be imported using the `GraphQL ID` (not UUID), e.g.

```sh

$ pulumi import buildkite:index/pipeline:Pipeline fleet UGlwZWxpbmUtLS00MzVjYWQ1OC1lODFkLTQ1YWYtODYzNy1iMWNmODA3MDIzOGQ=

```

func GetPipeline

func GetPipeline(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *PipelineState, opts ...pulumi.ResourceOption) (*Pipeline, error)

GetPipeline gets an existing Pipeline 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 NewPipeline

func NewPipeline(ctx *pulumi.Context,
	name string, args *PipelineArgs, opts ...pulumi.ResourceOption) (*Pipeline, error)

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

func (*Pipeline) ElementType

func (*Pipeline) ElementType() reflect.Type

func (*Pipeline) ToPipelineOutput

func (i *Pipeline) ToPipelineOutput() PipelineOutput

func (*Pipeline) ToPipelineOutputWithContext

func (i *Pipeline) ToPipelineOutputWithContext(ctx context.Context) PipelineOutput

type PipelineArgs

type PipelineArgs struct {
	AllowRebuilds pulumi.BoolPtrInput
	// Limit which branches and tags cause new builds to be created, either via a code push or via the Builds REST API.
	BranchConfiguration pulumi.StringPtrInput
	// A boolean to enable automatically cancelling any running builds on the same branch when a new build is created.
	CancelIntermediateBuilds pulumi.BoolPtrInput
	// Limit which branches build cancelling applies to, for example !master will ensure that the master branch won't have it's builds automatically cancelled.
	CancelIntermediateBuildsBranchFilter pulumi.StringPtrInput
	// The GraphQL ID of the cluster you want to use for the pipeline.
	ClusterId pulumi.StringPtrInput
	// The default branch to prefill when new builds are created or triggered, usually main or master but can be anything.
	DefaultBranch pulumi.StringPtrInput
	// A description of the pipeline.
	Description pulumi.StringPtrInput
	// The name of the pipeline.
	Name pulumi.StringPtrInput
	// Source control provider settings for the pipeline. See Provider Settings Configuration below for details.
	ProviderSettings PipelineProviderSettingsPtrInput
	// The git URL of the repository.
	Repository pulumi.StringInput
	// A boolean to enable automatically skipping any unstarted builds on the same branch when a new build is created.
	SkipIntermediateBuilds pulumi.BoolPtrInput
	// Limit which branches build skipping applies to, for example `!master` will ensure that the master branch won't have it's builds automatically skipped.
	SkipIntermediateBuildsBranchFilter pulumi.StringPtrInput
	// The string YAML steps to run the pipeline.
	Steps pulumi.StringInput
	Tags  pulumi.StringArrayInput
	// Set team access for the pipeline. Can be specified multiple times for each team. See Teams Configuration below for details.
	Teams PipelineTeamArrayInput
}

The set of arguments for constructing a Pipeline resource.

func (PipelineArgs) ElementType

func (PipelineArgs) ElementType() reflect.Type

type PipelineArray

type PipelineArray []PipelineInput

func (PipelineArray) ElementType

func (PipelineArray) ElementType() reflect.Type

func (PipelineArray) ToPipelineArrayOutput

func (i PipelineArray) ToPipelineArrayOutput() PipelineArrayOutput

func (PipelineArray) ToPipelineArrayOutputWithContext

func (i PipelineArray) ToPipelineArrayOutputWithContext(ctx context.Context) PipelineArrayOutput

type PipelineArrayInput

type PipelineArrayInput interface {
	pulumi.Input

	ToPipelineArrayOutput() PipelineArrayOutput
	ToPipelineArrayOutputWithContext(context.Context) PipelineArrayOutput
}

PipelineArrayInput is an input type that accepts PipelineArray and PipelineArrayOutput values. You can construct a concrete instance of `PipelineArrayInput` via:

PipelineArray{ PipelineArgs{...} }

type PipelineArrayOutput

type PipelineArrayOutput struct{ *pulumi.OutputState }

func (PipelineArrayOutput) ElementType

func (PipelineArrayOutput) ElementType() reflect.Type

func (PipelineArrayOutput) Index

func (PipelineArrayOutput) ToPipelineArrayOutput

func (o PipelineArrayOutput) ToPipelineArrayOutput() PipelineArrayOutput

func (PipelineArrayOutput) ToPipelineArrayOutputWithContext

func (o PipelineArrayOutput) ToPipelineArrayOutputWithContext(ctx context.Context) PipelineArrayOutput

type PipelineInput

type PipelineInput interface {
	pulumi.Input

	ToPipelineOutput() PipelineOutput
	ToPipelineOutputWithContext(ctx context.Context) PipelineOutput
}

type PipelineMap

type PipelineMap map[string]PipelineInput

func (PipelineMap) ElementType

func (PipelineMap) ElementType() reflect.Type

func (PipelineMap) ToPipelineMapOutput

func (i PipelineMap) ToPipelineMapOutput() PipelineMapOutput

func (PipelineMap) ToPipelineMapOutputWithContext

func (i PipelineMap) ToPipelineMapOutputWithContext(ctx context.Context) PipelineMapOutput

type PipelineMapInput

type PipelineMapInput interface {
	pulumi.Input

	ToPipelineMapOutput() PipelineMapOutput
	ToPipelineMapOutputWithContext(context.Context) PipelineMapOutput
}

PipelineMapInput is an input type that accepts PipelineMap and PipelineMapOutput values. You can construct a concrete instance of `PipelineMapInput` via:

PipelineMap{ "key": PipelineArgs{...} }

type PipelineMapOutput

type PipelineMapOutput struct{ *pulumi.OutputState }

func (PipelineMapOutput) ElementType

func (PipelineMapOutput) ElementType() reflect.Type

func (PipelineMapOutput) MapIndex

func (PipelineMapOutput) ToPipelineMapOutput

func (o PipelineMapOutput) ToPipelineMapOutput() PipelineMapOutput

func (PipelineMapOutput) ToPipelineMapOutputWithContext

func (o PipelineMapOutput) ToPipelineMapOutputWithContext(ctx context.Context) PipelineMapOutput

type PipelineOutput

type PipelineOutput struct{ *pulumi.OutputState }

func (PipelineOutput) AllowRebuilds added in v0.2.0

func (o PipelineOutput) AllowRebuilds() pulumi.BoolOutput

func (PipelineOutput) BadgeUrl added in v0.2.0

func (o PipelineOutput) BadgeUrl() pulumi.StringOutput

The pipeline's last build status so you can display build status badge.

func (PipelineOutput) BranchConfiguration added in v0.2.0

func (o PipelineOutput) BranchConfiguration() pulumi.StringOutput

Limit which branches and tags cause new builds to be created, either via a code push or via the Builds REST API.

func (PipelineOutput) CancelIntermediateBuilds added in v0.2.0

func (o PipelineOutput) CancelIntermediateBuilds() pulumi.BoolOutput

A boolean to enable automatically cancelling any running builds on the same branch when a new build is created.

func (PipelineOutput) CancelIntermediateBuildsBranchFilter added in v0.2.0

func (o PipelineOutput) CancelIntermediateBuildsBranchFilter() pulumi.StringOutput

Limit which branches build cancelling applies to, for example !master will ensure that the master branch won't have it's builds automatically cancelled.

func (PipelineOutput) ClusterId added in v0.2.0

func (o PipelineOutput) ClusterId() pulumi.StringOutput

The GraphQL ID of the cluster you want to use for the pipeline.

func (PipelineOutput) DefaultBranch added in v0.2.0

func (o PipelineOutput) DefaultBranch() pulumi.StringOutput

The default branch to prefill when new builds are created or triggered, usually main or master but can be anything.

func (PipelineOutput) Description added in v0.2.0

func (o PipelineOutput) Description() pulumi.StringOutput

A description of the pipeline.

func (PipelineOutput) ElementType

func (PipelineOutput) ElementType() reflect.Type

func (PipelineOutput) Name added in v0.2.0

The name of the pipeline.

func (PipelineOutput) ProviderSettings added in v0.2.0

func (o PipelineOutput) ProviderSettings() PipelineProviderSettingsOutput

Source control provider settings for the pipeline. See Provider Settings Configuration below for details.

func (PipelineOutput) Repository added in v0.2.0

func (o PipelineOutput) Repository() pulumi.StringOutput

The git URL of the repository.

func (PipelineOutput) SkipIntermediateBuilds added in v0.2.0

func (o PipelineOutput) SkipIntermediateBuilds() pulumi.BoolOutput

A boolean to enable automatically skipping any unstarted builds on the same branch when a new build is created.

func (PipelineOutput) SkipIntermediateBuildsBranchFilter added in v0.2.0

func (o PipelineOutput) SkipIntermediateBuildsBranchFilter() pulumi.StringOutput

Limit which branches build skipping applies to, for example `!master` will ensure that the master branch won't have it's builds automatically skipped.

func (PipelineOutput) Slug added in v0.2.0

The buildkite slug of the team.

func (PipelineOutput) Steps added in v0.2.0

The string YAML steps to run the pipeline.

func (PipelineOutput) Tags added in v0.2.0

func (PipelineOutput) Teams added in v0.2.0

Set team access for the pipeline. Can be specified multiple times for each team. See Teams Configuration below for details.

func (PipelineOutput) ToPipelineOutput

func (o PipelineOutput) ToPipelineOutput() PipelineOutput

func (PipelineOutput) ToPipelineOutputWithContext

func (o PipelineOutput) ToPipelineOutputWithContext(ctx context.Context) PipelineOutput

func (PipelineOutput) WebhookUrl added in v0.2.0

func (o PipelineOutput) WebhookUrl() pulumi.StringOutput

The Buildkite webhook URL to configure on the repository to trigger builds on this pipeline.

type PipelineProviderSettings

type PipelineProviderSettings struct {
	// Whether to create builds when branches are pushed.
	BuildBranches *bool `pulumi:"buildBranches"`
	// Whether to create builds for pull requests from third-party forks.
	BuildPullRequestForks *bool `pulumi:"buildPullRequestForks"`
	// Whether to create builds for pull requests when labels are added or removed.
	BuildPullRequestLabelsChanged  *bool `pulumi:"buildPullRequestLabelsChanged"`
	BuildPullRequestReadyForReview *bool `pulumi:"buildPullRequestReadyForReview"`
	// Whether to create builds for commits that are part of a Pull Request.
	BuildPullRequests *bool `pulumi:"buildPullRequests"`
	// Whether to create builds when tags are pushed.
	BuildTags *bool `pulumi:"buildTags"`
	// A boolean to enable automatically cancelling any running builds for a branch if the branch is deleted.
	CancelDeletedBranchBuilds *bool `pulumi:"cancelDeletedBranchBuilds"`
	// The condition to evaluate when deciding if a build should run. More details available in [the documentation](https://buildkite.com/docs/pipelines/conditionals#conditionals-in-pipelines)
	FilterCondition *string `pulumi:"filterCondition"`
	// [true/false] Whether to filter builds to only run when the condition in `filterCondition` is true
	FilterEnabled *bool `pulumi:"filterEnabled"`
	// Prefix branch names for third-party fork builds to ensure they don't trigger branch conditions. For example, the `master` branch from `some-user` will become `some-user:master`.
	PrefixPullRequestForkBranchNames *bool `pulumi:"prefixPullRequestForkBranchNames"`
	// The status to use for blocked builds. Pending can be used with [required status checks](https://help.github.com/en/articles/enabling-required-status-checks) to prevent merging pull requests with blocked builds.
	PublishBlockedAsPending *bool `pulumi:"publishBlockedAsPending"`
	// Whether to update the status of commits in Bitbucket or GitHub.
	PublishCommitStatus *bool `pulumi:"publishCommitStatus"`
	// Whether to create a separate status for each job in a build, allowing you to see the status of each job directly in Bitbucket or GitHub.
	PublishCommitStatusPerStep *bool `pulumi:"publishCommitStatusPerStep"`
	// The branch filtering pattern. Only pull requests on branches matching this pattern will cause builds to be created.
	PullRequestBranchFilterConfiguration *string `pulumi:"pullRequestBranchFilterConfiguration"`
	// Whether to limit the creation of builds to specific branches or patterns.
	PullRequestBranchFilterEnabled *bool `pulumi:"pullRequestBranchFilterEnabled"`
	// Whether to create a separate status for pull request builds, allowing you to require a passing pull request build in your [required status checks](https://help.github.com/en/articles/enabling-required-status-checks) in GitHub.
	SeparatePullRequestStatuses *bool `pulumi:"separatePullRequestStatuses"`
	// Whether to skip creating a new build for a pull request if an existing build for the commit and branch already exists.
	SkipPullRequestBuildsForExistingCommits *bool `pulumi:"skipPullRequestBuildsForExistingCommits"`
	// What type of event to trigger builds on. Must be one of:
	TriggerMode *string `pulumi:"triggerMode"`
}

type PipelineProviderSettingsArgs

type PipelineProviderSettingsArgs struct {
	// Whether to create builds when branches are pushed.
	BuildBranches pulumi.BoolPtrInput `pulumi:"buildBranches"`
	// Whether to create builds for pull requests from third-party forks.
	BuildPullRequestForks pulumi.BoolPtrInput `pulumi:"buildPullRequestForks"`
	// Whether to create builds for pull requests when labels are added or removed.
	BuildPullRequestLabelsChanged  pulumi.BoolPtrInput `pulumi:"buildPullRequestLabelsChanged"`
	BuildPullRequestReadyForReview pulumi.BoolPtrInput `pulumi:"buildPullRequestReadyForReview"`
	// Whether to create builds for commits that are part of a Pull Request.
	BuildPullRequests pulumi.BoolPtrInput `pulumi:"buildPullRequests"`
	// Whether to create builds when tags are pushed.
	BuildTags pulumi.BoolPtrInput `pulumi:"buildTags"`
	// A boolean to enable automatically cancelling any running builds for a branch if the branch is deleted.
	CancelDeletedBranchBuilds pulumi.BoolPtrInput `pulumi:"cancelDeletedBranchBuilds"`
	// The condition to evaluate when deciding if a build should run. More details available in [the documentation](https://buildkite.com/docs/pipelines/conditionals#conditionals-in-pipelines)
	FilterCondition pulumi.StringPtrInput `pulumi:"filterCondition"`
	// [true/false] Whether to filter builds to only run when the condition in `filterCondition` is true
	FilterEnabled pulumi.BoolPtrInput `pulumi:"filterEnabled"`
	// Prefix branch names for third-party fork builds to ensure they don't trigger branch conditions. For example, the `master` branch from `some-user` will become `some-user:master`.
	PrefixPullRequestForkBranchNames pulumi.BoolPtrInput `pulumi:"prefixPullRequestForkBranchNames"`
	// The status to use for blocked builds. Pending can be used with [required status checks](https://help.github.com/en/articles/enabling-required-status-checks) to prevent merging pull requests with blocked builds.
	PublishBlockedAsPending pulumi.BoolPtrInput `pulumi:"publishBlockedAsPending"`
	// Whether to update the status of commits in Bitbucket or GitHub.
	PublishCommitStatus pulumi.BoolPtrInput `pulumi:"publishCommitStatus"`
	// Whether to create a separate status for each job in a build, allowing you to see the status of each job directly in Bitbucket or GitHub.
	PublishCommitStatusPerStep pulumi.BoolPtrInput `pulumi:"publishCommitStatusPerStep"`
	// The branch filtering pattern. Only pull requests on branches matching this pattern will cause builds to be created.
	PullRequestBranchFilterConfiguration pulumi.StringPtrInput `pulumi:"pullRequestBranchFilterConfiguration"`
	// Whether to limit the creation of builds to specific branches or patterns.
	PullRequestBranchFilterEnabled pulumi.BoolPtrInput `pulumi:"pullRequestBranchFilterEnabled"`
	// Whether to create a separate status for pull request builds, allowing you to require a passing pull request build in your [required status checks](https://help.github.com/en/articles/enabling-required-status-checks) in GitHub.
	SeparatePullRequestStatuses pulumi.BoolPtrInput `pulumi:"separatePullRequestStatuses"`
	// Whether to skip creating a new build for a pull request if an existing build for the commit and branch already exists.
	SkipPullRequestBuildsForExistingCommits pulumi.BoolPtrInput `pulumi:"skipPullRequestBuildsForExistingCommits"`
	// What type of event to trigger builds on. Must be one of:
	TriggerMode pulumi.StringPtrInput `pulumi:"triggerMode"`
}

func (PipelineProviderSettingsArgs) ElementType

func (PipelineProviderSettingsArgs) ToPipelineProviderSettingsOutput

func (i PipelineProviderSettingsArgs) ToPipelineProviderSettingsOutput() PipelineProviderSettingsOutput

func (PipelineProviderSettingsArgs) ToPipelineProviderSettingsOutputWithContext

func (i PipelineProviderSettingsArgs) ToPipelineProviderSettingsOutputWithContext(ctx context.Context) PipelineProviderSettingsOutput

func (PipelineProviderSettingsArgs) ToPipelineProviderSettingsPtrOutput

func (i PipelineProviderSettingsArgs) ToPipelineProviderSettingsPtrOutput() PipelineProviderSettingsPtrOutput

func (PipelineProviderSettingsArgs) ToPipelineProviderSettingsPtrOutputWithContext

func (i PipelineProviderSettingsArgs) ToPipelineProviderSettingsPtrOutputWithContext(ctx context.Context) PipelineProviderSettingsPtrOutput

type PipelineProviderSettingsInput

type PipelineProviderSettingsInput interface {
	pulumi.Input

	ToPipelineProviderSettingsOutput() PipelineProviderSettingsOutput
	ToPipelineProviderSettingsOutputWithContext(context.Context) PipelineProviderSettingsOutput
}

PipelineProviderSettingsInput is an input type that accepts PipelineProviderSettingsArgs and PipelineProviderSettingsOutput values. You can construct a concrete instance of `PipelineProviderSettingsInput` via:

PipelineProviderSettingsArgs{...}

type PipelineProviderSettingsOutput

type PipelineProviderSettingsOutput struct{ *pulumi.OutputState }

func (PipelineProviderSettingsOutput) BuildBranches

Whether to create builds when branches are pushed.

func (PipelineProviderSettingsOutput) BuildPullRequestForks

func (o PipelineProviderSettingsOutput) BuildPullRequestForks() pulumi.BoolPtrOutput

Whether to create builds for pull requests from third-party forks.

func (PipelineProviderSettingsOutput) BuildPullRequestLabelsChanged

func (o PipelineProviderSettingsOutput) BuildPullRequestLabelsChanged() pulumi.BoolPtrOutput

Whether to create builds for pull requests when labels are added or removed.

func (PipelineProviderSettingsOutput) BuildPullRequestReadyForReview

func (o PipelineProviderSettingsOutput) BuildPullRequestReadyForReview() pulumi.BoolPtrOutput

func (PipelineProviderSettingsOutput) BuildPullRequests

func (o PipelineProviderSettingsOutput) BuildPullRequests() pulumi.BoolPtrOutput

Whether to create builds for commits that are part of a Pull Request.

func (PipelineProviderSettingsOutput) BuildTags

Whether to create builds when tags are pushed.

func (PipelineProviderSettingsOutput) CancelDeletedBranchBuilds

func (o PipelineProviderSettingsOutput) CancelDeletedBranchBuilds() pulumi.BoolPtrOutput

A boolean to enable automatically cancelling any running builds for a branch if the branch is deleted.

func (PipelineProviderSettingsOutput) ElementType

func (PipelineProviderSettingsOutput) FilterCondition

The condition to evaluate when deciding if a build should run. More details available in [the documentation](https://buildkite.com/docs/pipelines/conditionals#conditionals-in-pipelines)

func (PipelineProviderSettingsOutput) FilterEnabled

true/false Whether to filter builds to only run when the condition in `filterCondition` is true

func (PipelineProviderSettingsOutput) PrefixPullRequestForkBranchNames

func (o PipelineProviderSettingsOutput) PrefixPullRequestForkBranchNames() pulumi.BoolPtrOutput

Prefix branch names for third-party fork builds to ensure they don't trigger branch conditions. For example, the `master` branch from `some-user` will become `some-user:master`.

func (PipelineProviderSettingsOutput) PublishBlockedAsPending

func (o PipelineProviderSettingsOutput) PublishBlockedAsPending() pulumi.BoolPtrOutput

The status to use for blocked builds. Pending can be used with [required status checks](https://help.github.com/en/articles/enabling-required-status-checks) to prevent merging pull requests with blocked builds.

func (PipelineProviderSettingsOutput) PublishCommitStatus

func (o PipelineProviderSettingsOutput) PublishCommitStatus() pulumi.BoolPtrOutput

Whether to update the status of commits in Bitbucket or GitHub.

func (PipelineProviderSettingsOutput) PublishCommitStatusPerStep

func (o PipelineProviderSettingsOutput) PublishCommitStatusPerStep() pulumi.BoolPtrOutput

Whether to create a separate status for each job in a build, allowing you to see the status of each job directly in Bitbucket or GitHub.

func (PipelineProviderSettingsOutput) PullRequestBranchFilterConfiguration

func (o PipelineProviderSettingsOutput) PullRequestBranchFilterConfiguration() pulumi.StringPtrOutput

The branch filtering pattern. Only pull requests on branches matching this pattern will cause builds to be created.

func (PipelineProviderSettingsOutput) PullRequestBranchFilterEnabled

func (o PipelineProviderSettingsOutput) PullRequestBranchFilterEnabled() pulumi.BoolPtrOutput

Whether to limit the creation of builds to specific branches or patterns.

func (PipelineProviderSettingsOutput) SeparatePullRequestStatuses

func (o PipelineProviderSettingsOutput) SeparatePullRequestStatuses() pulumi.BoolPtrOutput

Whether to create a separate status for pull request builds, allowing you to require a passing pull request build in your [required status checks](https://help.github.com/en/articles/enabling-required-status-checks) in GitHub.

func (PipelineProviderSettingsOutput) SkipPullRequestBuildsForExistingCommits

func (o PipelineProviderSettingsOutput) SkipPullRequestBuildsForExistingCommits() pulumi.BoolPtrOutput

Whether to skip creating a new build for a pull request if an existing build for the commit and branch already exists.

func (PipelineProviderSettingsOutput) ToPipelineProviderSettingsOutput

func (o PipelineProviderSettingsOutput) ToPipelineProviderSettingsOutput() PipelineProviderSettingsOutput

func (PipelineProviderSettingsOutput) ToPipelineProviderSettingsOutputWithContext

func (o PipelineProviderSettingsOutput) ToPipelineProviderSettingsOutputWithContext(ctx context.Context) PipelineProviderSettingsOutput

func (PipelineProviderSettingsOutput) ToPipelineProviderSettingsPtrOutput

func (o PipelineProviderSettingsOutput) ToPipelineProviderSettingsPtrOutput() PipelineProviderSettingsPtrOutput

func (PipelineProviderSettingsOutput) ToPipelineProviderSettingsPtrOutputWithContext

func (o PipelineProviderSettingsOutput) ToPipelineProviderSettingsPtrOutputWithContext(ctx context.Context) PipelineProviderSettingsPtrOutput

func (PipelineProviderSettingsOutput) TriggerMode

What type of event to trigger builds on. Must be one of:

type PipelineProviderSettingsPtrInput

type PipelineProviderSettingsPtrInput interface {
	pulumi.Input

	ToPipelineProviderSettingsPtrOutput() PipelineProviderSettingsPtrOutput
	ToPipelineProviderSettingsPtrOutputWithContext(context.Context) PipelineProviderSettingsPtrOutput
}

PipelineProviderSettingsPtrInput is an input type that accepts PipelineProviderSettingsArgs, PipelineProviderSettingsPtr and PipelineProviderSettingsPtrOutput values. You can construct a concrete instance of `PipelineProviderSettingsPtrInput` via:

        PipelineProviderSettingsArgs{...}

or:

        nil

type PipelineProviderSettingsPtrOutput

type PipelineProviderSettingsPtrOutput struct{ *pulumi.OutputState }

func (PipelineProviderSettingsPtrOutput) BuildBranches

Whether to create builds when branches are pushed.

func (PipelineProviderSettingsPtrOutput) BuildPullRequestForks

func (o PipelineProviderSettingsPtrOutput) BuildPullRequestForks() pulumi.BoolPtrOutput

Whether to create builds for pull requests from third-party forks.

func (PipelineProviderSettingsPtrOutput) BuildPullRequestLabelsChanged

func (o PipelineProviderSettingsPtrOutput) BuildPullRequestLabelsChanged() pulumi.BoolPtrOutput

Whether to create builds for pull requests when labels are added or removed.

func (PipelineProviderSettingsPtrOutput) BuildPullRequestReadyForReview

func (o PipelineProviderSettingsPtrOutput) BuildPullRequestReadyForReview() pulumi.BoolPtrOutput

func (PipelineProviderSettingsPtrOutput) BuildPullRequests

Whether to create builds for commits that are part of a Pull Request.

func (PipelineProviderSettingsPtrOutput) BuildTags

Whether to create builds when tags are pushed.

func (PipelineProviderSettingsPtrOutput) CancelDeletedBranchBuilds

func (o PipelineProviderSettingsPtrOutput) CancelDeletedBranchBuilds() pulumi.BoolPtrOutput

A boolean to enable automatically cancelling any running builds for a branch if the branch is deleted.

func (PipelineProviderSettingsPtrOutput) Elem

func (PipelineProviderSettingsPtrOutput) ElementType

func (PipelineProviderSettingsPtrOutput) FilterCondition

The condition to evaluate when deciding if a build should run. More details available in [the documentation](https://buildkite.com/docs/pipelines/conditionals#conditionals-in-pipelines)

func (PipelineProviderSettingsPtrOutput) FilterEnabled

true/false Whether to filter builds to only run when the condition in `filterCondition` is true

func (PipelineProviderSettingsPtrOutput) PrefixPullRequestForkBranchNames

func (o PipelineProviderSettingsPtrOutput) PrefixPullRequestForkBranchNames() pulumi.BoolPtrOutput

Prefix branch names for third-party fork builds to ensure they don't trigger branch conditions. For example, the `master` branch from `some-user` will become `some-user:master`.

func (PipelineProviderSettingsPtrOutput) PublishBlockedAsPending

func (o PipelineProviderSettingsPtrOutput) PublishBlockedAsPending() pulumi.BoolPtrOutput

The status to use for blocked builds. Pending can be used with [required status checks](https://help.github.com/en/articles/enabling-required-status-checks) to prevent merging pull requests with blocked builds.

func (PipelineProviderSettingsPtrOutput) PublishCommitStatus

func (o PipelineProviderSettingsPtrOutput) PublishCommitStatus() pulumi.BoolPtrOutput

Whether to update the status of commits in Bitbucket or GitHub.

func (PipelineProviderSettingsPtrOutput) PublishCommitStatusPerStep

func (o PipelineProviderSettingsPtrOutput) PublishCommitStatusPerStep() pulumi.BoolPtrOutput

Whether to create a separate status for each job in a build, allowing you to see the status of each job directly in Bitbucket or GitHub.

func (PipelineProviderSettingsPtrOutput) PullRequestBranchFilterConfiguration

func (o PipelineProviderSettingsPtrOutput) PullRequestBranchFilterConfiguration() pulumi.StringPtrOutput

The branch filtering pattern. Only pull requests on branches matching this pattern will cause builds to be created.

func (PipelineProviderSettingsPtrOutput) PullRequestBranchFilterEnabled

func (o PipelineProviderSettingsPtrOutput) PullRequestBranchFilterEnabled() pulumi.BoolPtrOutput

Whether to limit the creation of builds to specific branches or patterns.

func (PipelineProviderSettingsPtrOutput) SeparatePullRequestStatuses

func (o PipelineProviderSettingsPtrOutput) SeparatePullRequestStatuses() pulumi.BoolPtrOutput

Whether to create a separate status for pull request builds, allowing you to require a passing pull request build in your [required status checks](https://help.github.com/en/articles/enabling-required-status-checks) in GitHub.

func (PipelineProviderSettingsPtrOutput) SkipPullRequestBuildsForExistingCommits

func (o PipelineProviderSettingsPtrOutput) SkipPullRequestBuildsForExistingCommits() pulumi.BoolPtrOutput

Whether to skip creating a new build for a pull request if an existing build for the commit and branch already exists.

func (PipelineProviderSettingsPtrOutput) ToPipelineProviderSettingsPtrOutput

func (o PipelineProviderSettingsPtrOutput) ToPipelineProviderSettingsPtrOutput() PipelineProviderSettingsPtrOutput

func (PipelineProviderSettingsPtrOutput) ToPipelineProviderSettingsPtrOutputWithContext

func (o PipelineProviderSettingsPtrOutput) ToPipelineProviderSettingsPtrOutputWithContext(ctx context.Context) PipelineProviderSettingsPtrOutput

func (PipelineProviderSettingsPtrOutput) TriggerMode

What type of event to trigger builds on. Must be one of:

type PipelineSchedule

type PipelineSchedule struct {
	pulumi.CustomResourceState

	// The branch to use for the build.
	Branch pulumi.StringOutput `pulumi:"branch"`
	// The commit ref to use for the build.
	Commit pulumi.StringPtrOutput `pulumi:"commit"`
	// Schedule interval (see [docs](https://buildkite.com/docs/pipelines/scheduled-builds#schedule-intervals)).
	Cronline pulumi.StringOutput `pulumi:"cronline"`
	// Whether the schedule should run.
	Enabled pulumi.BoolPtrOutput `pulumi:"enabled"`
	// A map of environment variables to use for the build.
	Env pulumi.StringMapOutput `pulumi:"env"`
	// Schedule label.
	Label pulumi.StringOutput `pulumi:"label"`
	// The message to use for the build.
	Message    pulumi.StringOutput `pulumi:"message"`
	PipelineId pulumi.StringOutput `pulumi:"pipelineId"`
	// The UUID of the pipeline schedule
	Uuid pulumi.StringOutput `pulumi:"uuid"`
}

## # Resource: pipelineSchedule

This resource allows you to create and manage pipeline schedules.

Buildkite Documentation: https://buildkite.com/docs/pipelines/scheduled-builds

## Example Usage

```go package main

import (

"github.com/grapl-security/pulumi-buildkite/sdk/go/buildkite"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := buildkite.NewPipelineSchedule(ctx, "repo2Nightly", &buildkite.PipelineScheduleArgs{
			PipelineId: pulumi.Any(buildkite_pipeline.Repo2.Id),
			Label:      pulumi.String("Nightly build"),
			Cronline:   pulumi.String("@midnight"),
			Branch:     pulumi.Any(buildkite_pipeline.Repo2.Default_branch),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Pipeline schedules can be imported using a slug (which consists of `$BUILDKITE_ORGANIZATION_SLUG/$BUILDKITE_PIPELINE_SLUG/$PIPELINE_SCHEDULE_UUID`), e.g.

```sh

$ pulumi import buildkite:index/pipelineSchedule:PipelineSchedule test myorg/test/1be3e7c7-1e03-4011-accf-b2d8eec90222

```

func GetPipelineSchedule

func GetPipelineSchedule(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *PipelineScheduleState, opts ...pulumi.ResourceOption) (*PipelineSchedule, error)

GetPipelineSchedule gets an existing PipelineSchedule 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 NewPipelineSchedule

func NewPipelineSchedule(ctx *pulumi.Context,
	name string, args *PipelineScheduleArgs, opts ...pulumi.ResourceOption) (*PipelineSchedule, error)

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

func (*PipelineSchedule) ElementType

func (*PipelineSchedule) ElementType() reflect.Type

func (*PipelineSchedule) ToPipelineScheduleOutput

func (i *PipelineSchedule) ToPipelineScheduleOutput() PipelineScheduleOutput

func (*PipelineSchedule) ToPipelineScheduleOutputWithContext

func (i *PipelineSchedule) ToPipelineScheduleOutputWithContext(ctx context.Context) PipelineScheduleOutput

type PipelineScheduleArgs

type PipelineScheduleArgs struct {
	// The branch to use for the build.
	Branch pulumi.StringInput
	// The commit ref to use for the build.
	Commit pulumi.StringPtrInput
	// Schedule interval (see [docs](https://buildkite.com/docs/pipelines/scheduled-builds#schedule-intervals)).
	Cronline pulumi.StringInput
	// Whether the schedule should run.
	Enabled pulumi.BoolPtrInput
	// A map of environment variables to use for the build.
	Env pulumi.StringMapInput
	// Schedule label.
	Label pulumi.StringInput
	// The message to use for the build.
	Message    pulumi.StringPtrInput
	PipelineId pulumi.StringInput
}

The set of arguments for constructing a PipelineSchedule resource.

func (PipelineScheduleArgs) ElementType

func (PipelineScheduleArgs) ElementType() reflect.Type

type PipelineScheduleArray

type PipelineScheduleArray []PipelineScheduleInput

func (PipelineScheduleArray) ElementType

func (PipelineScheduleArray) ElementType() reflect.Type

func (PipelineScheduleArray) ToPipelineScheduleArrayOutput

func (i PipelineScheduleArray) ToPipelineScheduleArrayOutput() PipelineScheduleArrayOutput

func (PipelineScheduleArray) ToPipelineScheduleArrayOutputWithContext

func (i PipelineScheduleArray) ToPipelineScheduleArrayOutputWithContext(ctx context.Context) PipelineScheduleArrayOutput

type PipelineScheduleArrayInput

type PipelineScheduleArrayInput interface {
	pulumi.Input

	ToPipelineScheduleArrayOutput() PipelineScheduleArrayOutput
	ToPipelineScheduleArrayOutputWithContext(context.Context) PipelineScheduleArrayOutput
}

PipelineScheduleArrayInput is an input type that accepts PipelineScheduleArray and PipelineScheduleArrayOutput values. You can construct a concrete instance of `PipelineScheduleArrayInput` via:

PipelineScheduleArray{ PipelineScheduleArgs{...} }

type PipelineScheduleArrayOutput

type PipelineScheduleArrayOutput struct{ *pulumi.OutputState }

func (PipelineScheduleArrayOutput) ElementType

func (PipelineScheduleArrayOutput) Index

func (PipelineScheduleArrayOutput) ToPipelineScheduleArrayOutput

func (o PipelineScheduleArrayOutput) ToPipelineScheduleArrayOutput() PipelineScheduleArrayOutput

func (PipelineScheduleArrayOutput) ToPipelineScheduleArrayOutputWithContext

func (o PipelineScheduleArrayOutput) ToPipelineScheduleArrayOutputWithContext(ctx context.Context) PipelineScheduleArrayOutput

type PipelineScheduleInput

type PipelineScheduleInput interface {
	pulumi.Input

	ToPipelineScheduleOutput() PipelineScheduleOutput
	ToPipelineScheduleOutputWithContext(ctx context.Context) PipelineScheduleOutput
}

type PipelineScheduleMap

type PipelineScheduleMap map[string]PipelineScheduleInput

func (PipelineScheduleMap) ElementType

func (PipelineScheduleMap) ElementType() reflect.Type

func (PipelineScheduleMap) ToPipelineScheduleMapOutput

func (i PipelineScheduleMap) ToPipelineScheduleMapOutput() PipelineScheduleMapOutput

func (PipelineScheduleMap) ToPipelineScheduleMapOutputWithContext

func (i PipelineScheduleMap) ToPipelineScheduleMapOutputWithContext(ctx context.Context) PipelineScheduleMapOutput

type PipelineScheduleMapInput

type PipelineScheduleMapInput interface {
	pulumi.Input

	ToPipelineScheduleMapOutput() PipelineScheduleMapOutput
	ToPipelineScheduleMapOutputWithContext(context.Context) PipelineScheduleMapOutput
}

PipelineScheduleMapInput is an input type that accepts PipelineScheduleMap and PipelineScheduleMapOutput values. You can construct a concrete instance of `PipelineScheduleMapInput` via:

PipelineScheduleMap{ "key": PipelineScheduleArgs{...} }

type PipelineScheduleMapOutput

type PipelineScheduleMapOutput struct{ *pulumi.OutputState }

func (PipelineScheduleMapOutput) ElementType

func (PipelineScheduleMapOutput) ElementType() reflect.Type

func (PipelineScheduleMapOutput) MapIndex

func (PipelineScheduleMapOutput) ToPipelineScheduleMapOutput

func (o PipelineScheduleMapOutput) ToPipelineScheduleMapOutput() PipelineScheduleMapOutput

func (PipelineScheduleMapOutput) ToPipelineScheduleMapOutputWithContext

func (o PipelineScheduleMapOutput) ToPipelineScheduleMapOutputWithContext(ctx context.Context) PipelineScheduleMapOutput

type PipelineScheduleOutput

type PipelineScheduleOutput struct{ *pulumi.OutputState }

func (PipelineScheduleOutput) Branch added in v0.2.0

The branch to use for the build.

func (PipelineScheduleOutput) Commit added in v0.2.0

The commit ref to use for the build.

func (PipelineScheduleOutput) Cronline added in v0.2.0

Schedule interval (see [docs](https://buildkite.com/docs/pipelines/scheduled-builds#schedule-intervals)).

func (PipelineScheduleOutput) ElementType

func (PipelineScheduleOutput) ElementType() reflect.Type

func (PipelineScheduleOutput) Enabled added in v0.2.0

Whether the schedule should run.

func (PipelineScheduleOutput) Env added in v0.2.0

A map of environment variables to use for the build.

func (PipelineScheduleOutput) Label added in v0.2.0

Schedule label.

func (PipelineScheduleOutput) Message added in v0.2.0

The message to use for the build.

func (PipelineScheduleOutput) PipelineId added in v0.2.0

func (PipelineScheduleOutput) ToPipelineScheduleOutput

func (o PipelineScheduleOutput) ToPipelineScheduleOutput() PipelineScheduleOutput

func (PipelineScheduleOutput) ToPipelineScheduleOutputWithContext

func (o PipelineScheduleOutput) ToPipelineScheduleOutputWithContext(ctx context.Context) PipelineScheduleOutput

func (PipelineScheduleOutput) Uuid added in v0.2.0

The UUID of the pipeline schedule

type PipelineScheduleState

type PipelineScheduleState struct {
	// The branch to use for the build.
	Branch pulumi.StringPtrInput
	// The commit ref to use for the build.
	Commit pulumi.StringPtrInput
	// Schedule interval (see [docs](https://buildkite.com/docs/pipelines/scheduled-builds#schedule-intervals)).
	Cronline pulumi.StringPtrInput
	// Whether the schedule should run.
	Enabled pulumi.BoolPtrInput
	// A map of environment variables to use for the build.
	Env pulumi.StringMapInput
	// Schedule label.
	Label pulumi.StringPtrInput
	// The message to use for the build.
	Message    pulumi.StringPtrInput
	PipelineId pulumi.StringPtrInput
	// The UUID of the pipeline schedule
	Uuid pulumi.StringPtrInput
}

func (PipelineScheduleState) ElementType

func (PipelineScheduleState) ElementType() reflect.Type

type PipelineState

type PipelineState struct {
	AllowRebuilds pulumi.BoolPtrInput
	// The pipeline's last build status so you can display build status badge.
	BadgeUrl pulumi.StringPtrInput
	// Limit which branches and tags cause new builds to be created, either via a code push or via the Builds REST API.
	BranchConfiguration pulumi.StringPtrInput
	// A boolean to enable automatically cancelling any running builds on the same branch when a new build is created.
	CancelIntermediateBuilds pulumi.BoolPtrInput
	// Limit which branches build cancelling applies to, for example !master will ensure that the master branch won't have it's builds automatically cancelled.
	CancelIntermediateBuildsBranchFilter pulumi.StringPtrInput
	// The GraphQL ID of the cluster you want to use for the pipeline.
	ClusterId pulumi.StringPtrInput
	// The default branch to prefill when new builds are created or triggered, usually main or master but can be anything.
	DefaultBranch pulumi.StringPtrInput
	// A description of the pipeline.
	Description pulumi.StringPtrInput
	// The name of the pipeline.
	Name pulumi.StringPtrInput
	// Source control provider settings for the pipeline. See Provider Settings Configuration below for details.
	ProviderSettings PipelineProviderSettingsPtrInput
	// The git URL of the repository.
	Repository pulumi.StringPtrInput
	// A boolean to enable automatically skipping any unstarted builds on the same branch when a new build is created.
	SkipIntermediateBuilds pulumi.BoolPtrInput
	// Limit which branches build skipping applies to, for example `!master` will ensure that the master branch won't have it's builds automatically skipped.
	SkipIntermediateBuildsBranchFilter pulumi.StringPtrInput
	// The buildkite slug of the team.
	Slug pulumi.StringPtrInput
	// The string YAML steps to run the pipeline.
	Steps pulumi.StringPtrInput
	Tags  pulumi.StringArrayInput
	// Set team access for the pipeline. Can be specified multiple times for each team. See Teams Configuration below for details.
	Teams PipelineTeamArrayInput
	// The Buildkite webhook URL to configure on the repository to trigger builds on this pipeline.
	WebhookUrl pulumi.StringPtrInput
}

func (PipelineState) ElementType

func (PipelineState) ElementType() reflect.Type

type PipelineTeam

type PipelineTeam struct {
	// The level of access to grant. Must be one of `READ_ONLY`, `BUILD_AND_READ` or `MANAGE_BUILD_AND_READ`.
	AccessLevel string `pulumi:"accessLevel"`
	// The buildkite slug of the team.
	Slug string `pulumi:"slug"`
}

type PipelineTeamArgs

type PipelineTeamArgs struct {
	// The level of access to grant. Must be one of `READ_ONLY`, `BUILD_AND_READ` or `MANAGE_BUILD_AND_READ`.
	AccessLevel pulumi.StringInput `pulumi:"accessLevel"`
	// The buildkite slug of the team.
	Slug pulumi.StringInput `pulumi:"slug"`
}

func (PipelineTeamArgs) ElementType

func (PipelineTeamArgs) ElementType() reflect.Type

func (PipelineTeamArgs) ToPipelineTeamOutput

func (i PipelineTeamArgs) ToPipelineTeamOutput() PipelineTeamOutput

func (PipelineTeamArgs) ToPipelineTeamOutputWithContext

func (i PipelineTeamArgs) ToPipelineTeamOutputWithContext(ctx context.Context) PipelineTeamOutput

type PipelineTeamArray

type PipelineTeamArray []PipelineTeamInput

func (PipelineTeamArray) ElementType

func (PipelineTeamArray) ElementType() reflect.Type

func (PipelineTeamArray) ToPipelineTeamArrayOutput

func (i PipelineTeamArray) ToPipelineTeamArrayOutput() PipelineTeamArrayOutput

func (PipelineTeamArray) ToPipelineTeamArrayOutputWithContext

func (i PipelineTeamArray) ToPipelineTeamArrayOutputWithContext(ctx context.Context) PipelineTeamArrayOutput

type PipelineTeamArrayInput

type PipelineTeamArrayInput interface {
	pulumi.Input

	ToPipelineTeamArrayOutput() PipelineTeamArrayOutput
	ToPipelineTeamArrayOutputWithContext(context.Context) PipelineTeamArrayOutput
}

PipelineTeamArrayInput is an input type that accepts PipelineTeamArray and PipelineTeamArrayOutput values. You can construct a concrete instance of `PipelineTeamArrayInput` via:

PipelineTeamArray{ PipelineTeamArgs{...} }

type PipelineTeamArrayOutput

type PipelineTeamArrayOutput struct{ *pulumi.OutputState }

func (PipelineTeamArrayOutput) ElementType

func (PipelineTeamArrayOutput) ElementType() reflect.Type

func (PipelineTeamArrayOutput) Index

func (PipelineTeamArrayOutput) ToPipelineTeamArrayOutput

func (o PipelineTeamArrayOutput) ToPipelineTeamArrayOutput() PipelineTeamArrayOutput

func (PipelineTeamArrayOutput) ToPipelineTeamArrayOutputWithContext

func (o PipelineTeamArrayOutput) ToPipelineTeamArrayOutputWithContext(ctx context.Context) PipelineTeamArrayOutput

type PipelineTeamInput

type PipelineTeamInput interface {
	pulumi.Input

	ToPipelineTeamOutput() PipelineTeamOutput
	ToPipelineTeamOutputWithContext(context.Context) PipelineTeamOutput
}

PipelineTeamInput is an input type that accepts PipelineTeamArgs and PipelineTeamOutput values. You can construct a concrete instance of `PipelineTeamInput` via:

PipelineTeamArgs{...}

type PipelineTeamOutput

type PipelineTeamOutput struct{ *pulumi.OutputState }

func (PipelineTeamOutput) AccessLevel

func (o PipelineTeamOutput) AccessLevel() pulumi.StringOutput

The level of access to grant. Must be one of `READ_ONLY`, `BUILD_AND_READ` or `MANAGE_BUILD_AND_READ`.

func (PipelineTeamOutput) ElementType

func (PipelineTeamOutput) ElementType() reflect.Type

func (PipelineTeamOutput) Slug

The buildkite slug of the team.

func (PipelineTeamOutput) ToPipelineTeamOutput

func (o PipelineTeamOutput) ToPipelineTeamOutput() PipelineTeamOutput

func (PipelineTeamOutput) ToPipelineTeamOutputWithContext

func (o PipelineTeamOutput) ToPipelineTeamOutputWithContext(ctx context.Context) PipelineTeamOutput

type Provider

type Provider struct {
	pulumi.ProviderResourceState

	// API token with GraphQL access and `write_pipelines, read_pipelines` scopes
	ApiToken pulumi.StringPtrOutput `pulumi:"apiToken"`
	// Base URL for the GraphQL API to use
	GraphqlUrl pulumi.StringPtrOutput `pulumi:"graphqlUrl"`
	// The Buildkite organization ID
	Organization pulumi.StringPtrOutput `pulumi:"organization"`
	// Base URL for the REST API to use
	RestUrl pulumi.StringPtrOutput `pulumi:"restUrl"`
}

The provider type for the buildkite 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 ProviderArgs

type ProviderArgs struct {
	// API token with GraphQL access and `write_pipelines, read_pipelines` scopes
	ApiToken pulumi.StringPtrInput
	// Base URL for the GraphQL API to use
	GraphqlUrl pulumi.StringPtrInput
	// The Buildkite organization ID
	Organization pulumi.StringPtrInput
	// Base URL for the REST API to use
	RestUrl pulumi.StringPtrInput
}

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) ApiToken added in v0.2.0

func (o ProviderOutput) ApiToken() pulumi.StringPtrOutput

API token with GraphQL access and `write_pipelines, read_pipelines` scopes

func (ProviderOutput) ElementType

func (ProviderOutput) ElementType() reflect.Type

func (ProviderOutput) GraphqlUrl added in v0.2.0

func (o ProviderOutput) GraphqlUrl() pulumi.StringPtrOutput

Base URL for the GraphQL API to use

func (ProviderOutput) Organization added in v0.2.0

func (o ProviderOutput) Organization() pulumi.StringPtrOutput

The Buildkite organization ID

func (ProviderOutput) RestUrl added in v0.2.0

Base URL for the REST API to use

func (ProviderOutput) ToProviderOutput

func (o ProviderOutput) ToProviderOutput() ProviderOutput

func (ProviderOutput) ToProviderOutputWithContext

func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) ProviderOutput

type Team

type Team struct {
	pulumi.CustomResourceState

	// Default role to assign to a team member.
	DefaultMemberRole pulumi.StringOutput `pulumi:"defaultMemberRole"`
	// Whether to assign this team to a user by default.
	DefaultTeam pulumi.BoolOutput `pulumi:"defaultTeam"`
	// The description to assign to the team.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Whether team members can create.
	MembersCanCreatePipelines pulumi.BoolPtrOutput `pulumi:"membersCanCreatePipelines"`
	// The name of the team.
	Name pulumi.StringOutput `pulumi:"name"`
	// The privacy level to set the team too.
	Privacy pulumi.StringOutput `pulumi:"privacy"`
	// The name of the team.
	Slug pulumi.StringOutput `pulumi:"slug"`
	// The UUID for the team.
	Uuid pulumi.StringOutput `pulumi:"uuid"`
}

## # Resource: team

This resource allows you to create and manage teams.

Buildkite Documentation: https://buildkite.com/docs/pipelines/permissions

Note: You must first enable Teams on your organization.

## Example Usage

```go package main

import (

"github.com/grapl-security/pulumi-buildkite/sdk/go/buildkite"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := buildkite.NewTeam(ctx, "team", &buildkite.TeamArgs{
			DefaultMemberRole: pulumi.String("MEMBER"),
			DefaultTeam:       pulumi.Bool(true),
			Privacy:           pulumi.String("VISIBLE"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

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 {
	// Default role to assign to a team member.
	DefaultMemberRole pulumi.StringInput
	// Whether to assign this team to a user by default.
	DefaultTeam pulumi.BoolInput
	// The description to assign to the team.
	Description pulumi.StringPtrInput
	// Whether team members can create.
	MembersCanCreatePipelines pulumi.BoolPtrInput
	// The name of the team.
	Name pulumi.StringPtrInput
	// The privacy level to set the team too.
	Privacy pulumi.StringInput
}

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 TeamMember

type TeamMember struct {
	pulumi.CustomResourceState

	// Either MEMBER or MAINTAINER.
	Role pulumi.StringOutput `pulumi:"role"`
	// The GraphQL ID of the team to add to/remove from.
	TeamId pulumi.StringOutput `pulumi:"teamId"`
	// The GraphQL ID of the user to add/remove.
	UserId pulumi.StringOutput `pulumi:"userId"`
	// The UUID for the team membership.
	Uuid pulumi.StringOutput `pulumi:"uuid"`
}

## # Resource: teamMember

This resource allows manage team membership for existing organization users.

The user must already be part of the organization to which you are managing team membership. This will not invite a new user to the organization.

Buildkite Documentation: https://buildkite.com/docs/pipelines/permissions

Note: You must first enable Teams on your organization.

## Example Usage

```go package main

import (

"github.com/grapl-security/pulumi-buildkite/sdk/go/buildkite"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		team, err := buildkite.NewTeam(ctx, "team", &buildkite.TeamArgs{
			Privacy:           pulumi.String("VISIBLE"),
			DefaultTeam:       pulumi.Bool(true),
			DefaultMemberRole: pulumi.String("MEMBER"),
		})
		if err != nil {
			return err
		}
		_, err = buildkite.NewTeamMember(ctx, "aSmith", &buildkite.TeamMemberArgs{
			Role:   pulumi.String("MEMBER"),
			TeamId: team.ID(),
			UserId: pulumi.String("VXNlci0tLWRlOTdmMjBiLWJkZmMtNGNjOC1hOTcwLTY1ODNiZTk2ZGEyYQ=="),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Team members can be imported using the GraphQL ID of the membership. Note this is different to the ID of the user.

```sh

$ pulumi import buildkite:index/teamMember:TeamMember a_smith VGVhbU1lbWJlci0tLTVlZDEyMmY2LTM2NjQtNDI1MS04YzMwLTc4NjRiMDdiZDQ4Zg==

```

To find the ID of a team member you are trying to import you can use the GraphQL snippet below. A link to this snippet can also be found at https://buildkite.com/user/graphql/console/c6a2cc65-dc59-49df-95c6-7167b68dbd5d. You will need fo fill in the organization slug and search terms for teams and members. Both search terms work on the name of the associated object. graphql query {

organization(slug"") {

teams(first2, search"") {

edges {

node {

members(first2, search"") {

edges {

node {

id

}

}

}

}

}

}

} }

func GetTeamMember

func GetTeamMember(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TeamMemberState, opts ...pulumi.ResourceOption) (*TeamMember, error)

GetTeamMember gets an existing TeamMember 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 NewTeamMember

func NewTeamMember(ctx *pulumi.Context,
	name string, args *TeamMemberArgs, opts ...pulumi.ResourceOption) (*TeamMember, error)

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

func (*TeamMember) ElementType

func (*TeamMember) ElementType() reflect.Type

func (*TeamMember) ToTeamMemberOutput

func (i *TeamMember) ToTeamMemberOutput() TeamMemberOutput

func (*TeamMember) ToTeamMemberOutputWithContext

func (i *TeamMember) ToTeamMemberOutputWithContext(ctx context.Context) TeamMemberOutput

type TeamMemberArgs

type TeamMemberArgs struct {
	// Either MEMBER or MAINTAINER.
	Role pulumi.StringInput
	// The GraphQL ID of the team to add to/remove from.
	TeamId pulumi.StringInput
	// The GraphQL ID of the user to add/remove.
	UserId pulumi.StringInput
}

The set of arguments for constructing a TeamMember resource.

func (TeamMemberArgs) ElementType

func (TeamMemberArgs) ElementType() reflect.Type

type TeamMemberArray

type TeamMemberArray []TeamMemberInput

func (TeamMemberArray) ElementType

func (TeamMemberArray) ElementType() reflect.Type

func (TeamMemberArray) ToTeamMemberArrayOutput

func (i TeamMemberArray) ToTeamMemberArrayOutput() TeamMemberArrayOutput

func (TeamMemberArray) ToTeamMemberArrayOutputWithContext

func (i TeamMemberArray) ToTeamMemberArrayOutputWithContext(ctx context.Context) TeamMemberArrayOutput

type TeamMemberArrayInput

type TeamMemberArrayInput interface {
	pulumi.Input

	ToTeamMemberArrayOutput() TeamMemberArrayOutput
	ToTeamMemberArrayOutputWithContext(context.Context) TeamMemberArrayOutput
}

TeamMemberArrayInput is an input type that accepts TeamMemberArray and TeamMemberArrayOutput values. You can construct a concrete instance of `TeamMemberArrayInput` via:

TeamMemberArray{ TeamMemberArgs{...} }

type TeamMemberArrayOutput

type TeamMemberArrayOutput struct{ *pulumi.OutputState }

func (TeamMemberArrayOutput) ElementType

func (TeamMemberArrayOutput) ElementType() reflect.Type

func (TeamMemberArrayOutput) Index

func (TeamMemberArrayOutput) ToTeamMemberArrayOutput

func (o TeamMemberArrayOutput) ToTeamMemberArrayOutput() TeamMemberArrayOutput

func (TeamMemberArrayOutput) ToTeamMemberArrayOutputWithContext

func (o TeamMemberArrayOutput) ToTeamMemberArrayOutputWithContext(ctx context.Context) TeamMemberArrayOutput

type TeamMemberInput

type TeamMemberInput interface {
	pulumi.Input

	ToTeamMemberOutput() TeamMemberOutput
	ToTeamMemberOutputWithContext(ctx context.Context) TeamMemberOutput
}

type TeamMemberMap

type TeamMemberMap map[string]TeamMemberInput

func (TeamMemberMap) ElementType

func (TeamMemberMap) ElementType() reflect.Type

func (TeamMemberMap) ToTeamMemberMapOutput

func (i TeamMemberMap) ToTeamMemberMapOutput() TeamMemberMapOutput

func (TeamMemberMap) ToTeamMemberMapOutputWithContext

func (i TeamMemberMap) ToTeamMemberMapOutputWithContext(ctx context.Context) TeamMemberMapOutput

type TeamMemberMapInput

type TeamMemberMapInput interface {
	pulumi.Input

	ToTeamMemberMapOutput() TeamMemberMapOutput
	ToTeamMemberMapOutputWithContext(context.Context) TeamMemberMapOutput
}

TeamMemberMapInput is an input type that accepts TeamMemberMap and TeamMemberMapOutput values. You can construct a concrete instance of `TeamMemberMapInput` via:

TeamMemberMap{ "key": TeamMemberArgs{...} }

type TeamMemberMapOutput

type TeamMemberMapOutput struct{ *pulumi.OutputState }

func (TeamMemberMapOutput) ElementType

func (TeamMemberMapOutput) ElementType() reflect.Type

func (TeamMemberMapOutput) MapIndex

func (TeamMemberMapOutput) ToTeamMemberMapOutput

func (o TeamMemberMapOutput) ToTeamMemberMapOutput() TeamMemberMapOutput

func (TeamMemberMapOutput) ToTeamMemberMapOutputWithContext

func (o TeamMemberMapOutput) ToTeamMemberMapOutputWithContext(ctx context.Context) TeamMemberMapOutput

type TeamMemberOutput

type TeamMemberOutput struct{ *pulumi.OutputState }

func (TeamMemberOutput) ElementType

func (TeamMemberOutput) ElementType() reflect.Type

func (TeamMemberOutput) Role added in v0.2.0

Either MEMBER or MAINTAINER.

func (TeamMemberOutput) TeamId added in v0.2.0

The GraphQL ID of the team to add to/remove from.

func (TeamMemberOutput) ToTeamMemberOutput

func (o TeamMemberOutput) ToTeamMemberOutput() TeamMemberOutput

func (TeamMemberOutput) ToTeamMemberOutputWithContext

func (o TeamMemberOutput) ToTeamMemberOutputWithContext(ctx context.Context) TeamMemberOutput

func (TeamMemberOutput) UserId added in v0.2.0

The GraphQL ID of the user to add/remove.

func (TeamMemberOutput) Uuid added in v0.2.0

The UUID for the team membership.

type TeamMemberState

type TeamMemberState struct {
	// Either MEMBER or MAINTAINER.
	Role pulumi.StringPtrInput
	// The GraphQL ID of the team to add to/remove from.
	TeamId pulumi.StringPtrInput
	// The GraphQL ID of the user to add/remove.
	UserId pulumi.StringPtrInput
	// The UUID for the team membership.
	Uuid pulumi.StringPtrInput
}

func (TeamMemberState) ElementType

func (TeamMemberState) ElementType() reflect.Type

type TeamOutput

type TeamOutput struct{ *pulumi.OutputState }

func (TeamOutput) DefaultMemberRole added in v0.2.0

func (o TeamOutput) DefaultMemberRole() pulumi.StringOutput

Default role to assign to a team member.

func (TeamOutput) DefaultTeam added in v0.2.0

func (o TeamOutput) DefaultTeam() pulumi.BoolOutput

Whether to assign this team to a user by default.

func (TeamOutput) Description added in v0.2.0

func (o TeamOutput) Description() pulumi.StringPtrOutput

The description to assign to the team.

func (TeamOutput) ElementType

func (TeamOutput) ElementType() reflect.Type

func (TeamOutput) MembersCanCreatePipelines added in v0.2.0

func (o TeamOutput) MembersCanCreatePipelines() pulumi.BoolPtrOutput

Whether team members can create.

func (TeamOutput) Name added in v0.2.0

func (o TeamOutput) Name() pulumi.StringOutput

The name of the team.

func (TeamOutput) Privacy added in v0.2.0

func (o TeamOutput) Privacy() pulumi.StringOutput

The privacy level to set the team too.

func (TeamOutput) Slug added in v0.2.0

func (o TeamOutput) Slug() pulumi.StringOutput

The name of the team.

func (TeamOutput) ToTeamOutput

func (o TeamOutput) ToTeamOutput() TeamOutput

func (TeamOutput) ToTeamOutputWithContext

func (o TeamOutput) ToTeamOutputWithContext(ctx context.Context) TeamOutput

func (TeamOutput) Uuid added in v0.2.0

func (o TeamOutput) Uuid() pulumi.StringOutput

The UUID for the team.

type TeamState

type TeamState struct {
	// Default role to assign to a team member.
	DefaultMemberRole pulumi.StringPtrInput
	// Whether to assign this team to a user by default.
	DefaultTeam pulumi.BoolPtrInput
	// The description to assign to the team.
	Description pulumi.StringPtrInput
	// Whether team members can create.
	MembersCanCreatePipelines pulumi.BoolPtrInput
	// The name of the team.
	Name pulumi.StringPtrInput
	// The privacy level to set the team too.
	Privacy pulumi.StringPtrInput
	// The name of the team.
	Slug pulumi.StringPtrInput
	// The UUID for the team.
	Uuid pulumi.StringPtrInput
}

func (TeamState) ElementType

func (TeamState) ElementType() reflect.Type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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