Documentation ¶
Index ¶
- type LookupPipelineArgs
- type LookupPipelineOutputArgs
- type LookupPipelineResult
- type LookupPipelineResultOutput
- func (o LookupPipelineResultOutput) DefaultBranch() pulumi.StringOutput
- func (o LookupPipelineResultOutput) Description() pulumi.StringOutput
- func (LookupPipelineResultOutput) ElementType() reflect.Type
- func (o LookupPipelineResultOutput) Id() pulumi.StringOutput
- func (o LookupPipelineResultOutput) Name() pulumi.StringOutput
- func (o LookupPipelineResultOutput) Repository() pulumi.StringOutput
- func (o LookupPipelineResultOutput) Slug() pulumi.StringOutput
- func (o LookupPipelineResultOutput) ToLookupPipelineResultOutput() LookupPipelineResultOutput
- func (o LookupPipelineResultOutput) ToLookupPipelineResultOutputWithContext(ctx context.Context) LookupPipelineResultOutput
- func (o LookupPipelineResultOutput) WebhookUrl() pulumi.StringOutput
- type Pipeline
- type PipelineArgs
- type PipelineArray
- type PipelineArrayInput
- type PipelineArrayOutput
- type PipelineInput
- type PipelineMap
- type PipelineMapInput
- type PipelineMapOutput
- type PipelineOutput
- func (o PipelineOutput) AllowRebuilds() pulumi.BoolOutput
- func (o PipelineOutput) ArchiveOnDelete() pulumi.BoolOutputdeprecated
- func (o PipelineOutput) BadgeUrl() pulumi.StringOutput
- func (o PipelineOutput) BranchConfiguration() pulumi.StringPtrOutput
- func (o PipelineOutput) CancelIntermediateBuilds() pulumi.BoolOutput
- func (o PipelineOutput) CancelIntermediateBuildsBranchFilter() pulumi.StringOutput
- func (o PipelineOutput) ClusterId() pulumi.StringPtrOutput
- func (o PipelineOutput) DefaultBranch() pulumi.StringOutput
- func (o PipelineOutput) DefaultTimeoutInMinutes() pulumi.IntOutput
- func (o PipelineOutput) DeletionProtection() pulumi.BoolOutputdeprecated
- func (o PipelineOutput) Description() pulumi.StringOutput
- func (PipelineOutput) ElementType() reflect.Type
- func (o PipelineOutput) MaximumTimeoutInMinutes() pulumi.IntOutput
- func (o PipelineOutput) Name() pulumi.StringOutput
- func (o PipelineOutput) ProviderSettings() PipelineProviderSettingsPtrOutput
- func (o PipelineOutput) Repository() pulumi.StringOutput
- func (o PipelineOutput) SkipIntermediateBuilds() pulumi.BoolOutput
- func (o PipelineOutput) SkipIntermediateBuildsBranchFilter() pulumi.StringOutput
- func (o PipelineOutput) Slug() pulumi.StringOutput
- func (o PipelineOutput) Steps() pulumi.StringOutput
- func (o PipelineOutput) Tags() pulumi.StringArrayOutput
- func (o PipelineOutput) Teams() PipelineTeamArrayOutputdeprecated
- func (o PipelineOutput) ToPipelineOutput() PipelineOutput
- func (o PipelineOutput) ToPipelineOutputWithContext(ctx context.Context) PipelineOutput
- func (o PipelineOutput) WebhookUrl() pulumi.StringOutput
- type PipelineProviderSettings
- type PipelineProviderSettingsArgs
- func (PipelineProviderSettingsArgs) ElementType() reflect.Type
- func (i PipelineProviderSettingsArgs) ToPipelineProviderSettingsOutput() PipelineProviderSettingsOutput
- func (i PipelineProviderSettingsArgs) ToPipelineProviderSettingsOutputWithContext(ctx context.Context) PipelineProviderSettingsOutput
- func (i PipelineProviderSettingsArgs) ToPipelineProviderSettingsPtrOutput() PipelineProviderSettingsPtrOutput
- func (i PipelineProviderSettingsArgs) ToPipelineProviderSettingsPtrOutputWithContext(ctx context.Context) PipelineProviderSettingsPtrOutput
- type PipelineProviderSettingsInput
- type PipelineProviderSettingsOutput
- func (o PipelineProviderSettingsOutput) BuildBranches() pulumi.BoolPtrOutput
- func (o PipelineProviderSettingsOutput) BuildPullRequestForks() pulumi.BoolPtrOutput
- func (o PipelineProviderSettingsOutput) BuildPullRequestLabelsChanged() pulumi.BoolPtrOutput
- func (o PipelineProviderSettingsOutput) BuildPullRequestReadyForReview() pulumi.BoolPtrOutput
- func (o PipelineProviderSettingsOutput) BuildPullRequests() pulumi.BoolPtrOutput
- func (o PipelineProviderSettingsOutput) BuildTags() pulumi.BoolPtrOutput
- func (o PipelineProviderSettingsOutput) CancelDeletedBranchBuilds() pulumi.BoolPtrOutput
- func (PipelineProviderSettingsOutput) ElementType() reflect.Type
- func (o PipelineProviderSettingsOutput) FilterCondition() pulumi.StringPtrOutput
- func (o PipelineProviderSettingsOutput) FilterEnabled() pulumi.BoolPtrOutput
- func (o PipelineProviderSettingsOutput) PrefixPullRequestForkBranchNames() pulumi.BoolPtrOutput
- func (o PipelineProviderSettingsOutput) PublishBlockedAsPending() pulumi.BoolPtrOutput
- func (o PipelineProviderSettingsOutput) PublishCommitStatus() pulumi.BoolPtrOutput
- func (o PipelineProviderSettingsOutput) PublishCommitStatusPerStep() pulumi.BoolPtrOutput
- func (o PipelineProviderSettingsOutput) PullRequestBranchFilterConfiguration() pulumi.StringPtrOutput
- func (o PipelineProviderSettingsOutput) PullRequestBranchFilterEnabled() pulumi.BoolPtrOutput
- func (o PipelineProviderSettingsOutput) SeparatePullRequestStatuses() pulumi.BoolPtrOutput
- func (o PipelineProviderSettingsOutput) SkipBuildsForExistingCommits() pulumi.BoolPtrOutput
- func (o PipelineProviderSettingsOutput) SkipPullRequestBuildsForExistingCommits() pulumi.BoolPtrOutput
- func (o PipelineProviderSettingsOutput) ToPipelineProviderSettingsOutput() PipelineProviderSettingsOutput
- func (o PipelineProviderSettingsOutput) ToPipelineProviderSettingsOutputWithContext(ctx context.Context) PipelineProviderSettingsOutput
- func (o PipelineProviderSettingsOutput) ToPipelineProviderSettingsPtrOutput() PipelineProviderSettingsPtrOutput
- func (o PipelineProviderSettingsOutput) ToPipelineProviderSettingsPtrOutputWithContext(ctx context.Context) PipelineProviderSettingsPtrOutput
- func (o PipelineProviderSettingsOutput) TriggerMode() pulumi.StringPtrOutput
- type PipelineProviderSettingsPtrInput
- type PipelineProviderSettingsPtrOutput
- func (o PipelineProviderSettingsPtrOutput) BuildBranches() pulumi.BoolPtrOutput
- func (o PipelineProviderSettingsPtrOutput) BuildPullRequestForks() pulumi.BoolPtrOutput
- func (o PipelineProviderSettingsPtrOutput) BuildPullRequestLabelsChanged() pulumi.BoolPtrOutput
- func (o PipelineProviderSettingsPtrOutput) BuildPullRequestReadyForReview() pulumi.BoolPtrOutput
- func (o PipelineProviderSettingsPtrOutput) BuildPullRequests() pulumi.BoolPtrOutput
- func (o PipelineProviderSettingsPtrOutput) BuildTags() pulumi.BoolPtrOutput
- func (o PipelineProviderSettingsPtrOutput) CancelDeletedBranchBuilds() pulumi.BoolPtrOutput
- func (o PipelineProviderSettingsPtrOutput) Elem() PipelineProviderSettingsOutput
- func (PipelineProviderSettingsPtrOutput) ElementType() reflect.Type
- func (o PipelineProviderSettingsPtrOutput) FilterCondition() pulumi.StringPtrOutput
- func (o PipelineProviderSettingsPtrOutput) FilterEnabled() pulumi.BoolPtrOutput
- func (o PipelineProviderSettingsPtrOutput) PrefixPullRequestForkBranchNames() pulumi.BoolPtrOutput
- func (o PipelineProviderSettingsPtrOutput) PublishBlockedAsPending() pulumi.BoolPtrOutput
- func (o PipelineProviderSettingsPtrOutput) PublishCommitStatus() pulumi.BoolPtrOutput
- func (o PipelineProviderSettingsPtrOutput) PublishCommitStatusPerStep() pulumi.BoolPtrOutput
- func (o PipelineProviderSettingsPtrOutput) PullRequestBranchFilterConfiguration() pulumi.StringPtrOutput
- func (o PipelineProviderSettingsPtrOutput) PullRequestBranchFilterEnabled() pulumi.BoolPtrOutput
- func (o PipelineProviderSettingsPtrOutput) SeparatePullRequestStatuses() pulumi.BoolPtrOutput
- func (o PipelineProviderSettingsPtrOutput) SkipBuildsForExistingCommits() pulumi.BoolPtrOutput
- func (o PipelineProviderSettingsPtrOutput) SkipPullRequestBuildsForExistingCommits() pulumi.BoolPtrOutput
- func (o PipelineProviderSettingsPtrOutput) ToPipelineProviderSettingsPtrOutput() PipelineProviderSettingsPtrOutput
- func (o PipelineProviderSettingsPtrOutput) ToPipelineProviderSettingsPtrOutputWithContext(ctx context.Context) PipelineProviderSettingsPtrOutput
- func (o PipelineProviderSettingsPtrOutput) TriggerMode() pulumi.StringPtrOutput
- type PipelineState
- type PipelineTeam
- type PipelineTeamArgs
- type PipelineTeamArray
- type PipelineTeamArrayInput
- type PipelineTeamArrayOutput
- func (PipelineTeamArrayOutput) ElementType() reflect.Type
- func (o PipelineTeamArrayOutput) Index(i pulumi.IntInput) PipelineTeamOutput
- func (o PipelineTeamArrayOutput) ToPipelineTeamArrayOutput() PipelineTeamArrayOutput
- func (o PipelineTeamArrayOutput) ToPipelineTeamArrayOutputWithContext(ctx context.Context) PipelineTeamArrayOutput
- type PipelineTeamInput
- type PipelineTeamOutput
- func (o PipelineTeamOutput) AccessLevel() pulumi.StringOutput
- func (PipelineTeamOutput) ElementType() reflect.Type
- func (o PipelineTeamOutput) PipelineTeamId() pulumi.StringPtrOutput
- func (o PipelineTeamOutput) Slug() pulumi.StringOutput
- func (o PipelineTeamOutput) TeamId() pulumi.StringPtrOutput
- func (o PipelineTeamOutput) ToPipelineTeamOutput() PipelineTeamOutput
- func (o PipelineTeamOutput) ToPipelineTeamOutputWithContext(ctx context.Context) PipelineTeamOutput
- type Schedule
- type ScheduleArgs
- type ScheduleArray
- type ScheduleArrayInput
- type ScheduleArrayOutput
- type ScheduleInput
- type ScheduleMap
- type ScheduleMapInput
- type ScheduleMapOutput
- type ScheduleOutput
- func (o ScheduleOutput) Branch() pulumi.StringOutput
- func (o ScheduleOutput) Commit() pulumi.StringOutput
- func (o ScheduleOutput) Cronline() pulumi.StringOutput
- func (ScheduleOutput) ElementType() reflect.Type
- func (o ScheduleOutput) Enabled() pulumi.BoolOutput
- func (o ScheduleOutput) Env() pulumi.StringMapOutput
- func (o ScheduleOutput) Label() pulumi.StringOutput
- func (o ScheduleOutput) Message() pulumi.StringPtrOutput
- func (o ScheduleOutput) PipelineId() pulumi.StringOutput
- func (o ScheduleOutput) ToScheduleOutput() ScheduleOutput
- func (o ScheduleOutput) ToScheduleOutputWithContext(ctx context.Context) ScheduleOutput
- func (o ScheduleOutput) Uuid() pulumi.StringOutput
- type ScheduleState
- type Team
- type TeamArgs
- type TeamArray
- type TeamArrayInput
- type TeamArrayOutput
- type TeamInput
- type TeamMap
- type TeamMapInput
- type TeamMapOutput
- type TeamOutput
- func (o TeamOutput) AccessLevel() pulumi.StringOutput
- func (TeamOutput) ElementType() reflect.Type
- func (o TeamOutput) PipelineId() pulumi.StringOutput
- func (o TeamOutput) TeamId() pulumi.StringOutput
- func (o TeamOutput) ToTeamOutput() TeamOutput
- func (o TeamOutput) ToTeamOutputWithContext(ctx context.Context) TeamOutput
- func (o TeamOutput) Uuid() pulumi.StringOutput
- type TeamState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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"` 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 Buildkite webhook URL that triggers builds on this pipeline. 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/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumiverse/pulumi-buildkite/sdk/v2/go/buildkite/Pipeline"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Pipeline.GetPipeline(ctx, &pipeline.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 LookupPipelineOutput ¶
func LookupPipelineOutput(ctx *pulumi.Context, args LookupPipelineOutputArgs, opts ...pulumi.InvokeOption) LookupPipelineResultOutput
func (LookupPipelineResultOutput) DefaultBranch ¶
func (o LookupPipelineResultOutput) DefaultBranch() pulumi.StringOutput
The default branch to prefill when new builds are created or triggered, usually main or master but can be anything.
func (LookupPipelineResultOutput) Description ¶
func (o LookupPipelineResultOutput) Description() pulumi.StringOutput
A description of the pipeline.
func (LookupPipelineResultOutput) ElementType ¶
func (LookupPipelineResultOutput) ElementType() reflect.Type
func (LookupPipelineResultOutput) Id ¶
func (o LookupPipelineResultOutput) Id() pulumi.StringOutput
func (LookupPipelineResultOutput) Name ¶
func (o LookupPipelineResultOutput) Name() pulumi.StringOutput
The name of the pipeline.
func (LookupPipelineResultOutput) Repository ¶
func (o LookupPipelineResultOutput) Repository() pulumi.StringOutput
The git URL of the repository.
func (LookupPipelineResultOutput) Slug ¶
func (o LookupPipelineResultOutput) Slug() pulumi.StringOutput
func (LookupPipelineResultOutput) ToLookupPipelineResultOutput ¶
func (o LookupPipelineResultOutput) ToLookupPipelineResultOutput() LookupPipelineResultOutput
func (LookupPipelineResultOutput) ToLookupPipelineResultOutputWithContext ¶
func (o LookupPipelineResultOutput) ToLookupPipelineResultOutputWithContext(ctx context.Context) LookupPipelineResultOutput
func (LookupPipelineResultOutput) WebhookUrl ¶
func (o LookupPipelineResultOutput) WebhookUrl() pulumi.StringOutput
The Buildkite webhook URL that triggers builds on this pipeline.
type Pipeline ¶
type Pipeline struct { pulumi.CustomResourceState // A boolean on whether or not to allow rebuilds for the pipeline. AllowRebuilds pulumi.BoolOutput `pulumi:"allowRebuilds"` // Deprecated: This attribute has been deprecated and will be removed in v0.27.0. Please use provider configuration `archive_pipeline_on_delete` instead. ArchiveOnDelete pulumi.BoolOutput `pulumi:"archiveOnDelete"` // 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.StringPtrOutput `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 its builds automatically cancelled. CancelIntermediateBuildsBranchFilter pulumi.StringOutput `pulumi:"cancelIntermediateBuildsBranchFilter"` // The GraphQL ID of the cluster you want to use for the pipeline. ClusterId pulumi.StringPtrOutput `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"` // The default timeout for commands in this pipeline, in minutes. DefaultTimeoutInMinutes pulumi.IntOutput `pulumi:"defaultTimeoutInMinutes"` // **DEPRECATED** (Optional) Set to either `true` or `false`. When set to `true`, `destroy` actions on a pipeline will be blocked and fail with a message "Deletion protection is enabled for pipeline: <pipeline name>" // // Deprecated: Deletion protection will be removed in a future release. A similar solution already exists and is supported by Terraform. See https://developer.hashicorp.com/terraform/language/meta-arguments/lifecycle. DeletionProtection pulumi.BoolOutput `pulumi:"deletionProtection"` // A description of the pipeline. Description pulumi.StringOutput `pulumi:"description"` // The maximum timeout for commands in this pipeline, in minutes. MaximumTimeoutInMinutes pulumi.IntOutput `pulumi:"maximumTimeoutInMinutes"` // 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 PipelineProviderSettingsPtrOutput `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 its builds automatically skipped. SkipIntermediateBuildsBranchFilter pulumi.StringOutput `pulumi:"skipIntermediateBuildsBranchFilter"` // The slug of the created pipeline. Slug pulumi.StringOutput `pulumi:"slug"` // The string YAML steps to run the pipeline. Defaults to `buildkite-agent pipeline upload` if not specified. Steps pulumi.StringOutput `pulumi:"steps"` Tags pulumi.StringArrayOutput `pulumi:"tags"` // **DEPRECATED** Set team access for the pipeline. Can be specified multiple times for each team. // // Deprecated: This block is deprecated. Please use `buildkite_pipeline_team` instead. Teams PipelineTeamArrayOutput `pulumi:"teams"` // The Buildkite webhook URL to configure on the repository to trigger builds on this pipeline. WebhookUrl pulumi.StringOutput `pulumi:"webhookUrl"` }
## Import
Pipelines can be imported using the `GraphQL ID` (not UUID), e.g.
```sh
$ pulumi import buildkite:Pipeline/pipeline:Pipeline fleet UGlwZWxpbmUtLS00MzVjYWQ1OC1lODFkLTQ1YWYtODYzNy1iMWNmODA3MDIzOGQ=
```
To find the ID to use, you can use the GraphQL query below. Alternatively, you could use this [pre-saved query](https://buildkite.com/user/graphql/console/04e6ac1d-222e-49f9-8167-4767ab0f5362). graphql query getPipelineId { pipeline(slug"ORGANIZATION_SLUG/PIPELINE_SLUG") { id } }
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) ToPipelineOutput ¶
func (i *Pipeline) ToPipelineOutput() PipelineOutput
func (*Pipeline) ToPipelineOutputWithContext ¶
func (i *Pipeline) ToPipelineOutputWithContext(ctx context.Context) PipelineOutput
type PipelineArgs ¶
type PipelineArgs struct { // A boolean on whether or not to allow rebuilds for the pipeline. AllowRebuilds pulumi.BoolPtrInput // Deprecated: This attribute has been deprecated and will be removed in v0.27.0. Please use provider configuration `archive_pipeline_on_delete` instead. ArchiveOnDelete 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 its 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 // The default timeout for commands in this pipeline, in minutes. DefaultTimeoutInMinutes pulumi.IntPtrInput // **DEPRECATED** (Optional) Set to either `true` or `false`. When set to `true`, `destroy` actions on a pipeline will be blocked and fail with a message "Deletion protection is enabled for pipeline: <pipeline name>" // // Deprecated: Deletion protection will be removed in a future release. A similar solution already exists and is supported by Terraform. See https://developer.hashicorp.com/terraform/language/meta-arguments/lifecycle. DeletionProtection pulumi.BoolPtrInput // A description of the pipeline. Description pulumi.StringPtrInput // The maximum timeout for commands in this pipeline, in minutes. MaximumTimeoutInMinutes pulumi.IntPtrInput // 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 its builds automatically skipped. SkipIntermediateBuildsBranchFilter pulumi.StringPtrInput // The string YAML steps to run the pipeline. Defaults to `buildkite-agent pipeline upload` if not specified. Steps pulumi.StringPtrInput Tags pulumi.StringArrayInput // **DEPRECATED** Set team access for the pipeline. Can be specified multiple times for each team. // // Deprecated: This block is deprecated. Please use `buildkite_pipeline_team` instead. 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 (o PipelineArrayOutput) Index(i pulumi.IntInput) PipelineOutput
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 (o PipelineMapOutput) MapIndex(k pulumi.StringInput) PipelineOutput
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 ¶
func (o PipelineOutput) AllowRebuilds() pulumi.BoolOutput
A boolean on whether or not to allow rebuilds for the pipeline.
func (PipelineOutput) ArchiveOnDelete
deprecated
added in
v2.3.0
func (o PipelineOutput) ArchiveOnDelete() pulumi.BoolOutput
Deprecated: This attribute has been deprecated and will be removed in v0.27.0. Please use provider configuration `archive_pipeline_on_delete` instead.
func (PipelineOutput) BadgeUrl ¶
func (o PipelineOutput) BadgeUrl() pulumi.StringOutput
The pipeline's last build status so you can display build status badge.
func (PipelineOutput) BranchConfiguration ¶
func (o PipelineOutput) BranchConfiguration() pulumi.StringPtrOutput
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 ¶
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 ¶
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 its builds automatically cancelled.
func (PipelineOutput) ClusterId ¶
func (o PipelineOutput) ClusterId() pulumi.StringPtrOutput
The GraphQL ID of the cluster you want to use for the pipeline.
func (PipelineOutput) DefaultBranch ¶
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) DefaultTimeoutInMinutes ¶
func (o PipelineOutput) DefaultTimeoutInMinutes() pulumi.IntOutput
The default timeout for commands in this pipeline, in minutes.
func (PipelineOutput) DeletionProtection
deprecated
func (o PipelineOutput) DeletionProtection() pulumi.BoolOutput
**DEPRECATED** (Optional) Set to either `true` or `false`. When set to `true`, `destroy` actions on a pipeline will be blocked and fail with a message "Deletion protection is enabled for pipeline: <pipeline name>"
Deprecated: Deletion protection will be removed in a future release. A similar solution already exists and is supported by Terraform. See https://developer.hashicorp.com/terraform/language/meta-arguments/lifecycle.
func (PipelineOutput) Description ¶
func (o PipelineOutput) Description() pulumi.StringOutput
A description of the pipeline.
func (PipelineOutput) ElementType ¶
func (PipelineOutput) ElementType() reflect.Type
func (PipelineOutput) MaximumTimeoutInMinutes ¶
func (o PipelineOutput) MaximumTimeoutInMinutes() pulumi.IntOutput
The maximum timeout for commands in this pipeline, in minutes.
func (PipelineOutput) Name ¶
func (o PipelineOutput) Name() pulumi.StringOutput
The name of the pipeline.
func (PipelineOutput) ProviderSettings ¶
func (o PipelineOutput) ProviderSettings() PipelineProviderSettingsPtrOutput
Source control provider settings for the pipeline. See Provider Settings Configuration below for details.
func (PipelineOutput) Repository ¶
func (o PipelineOutput) Repository() pulumi.StringOutput
The git URL of the repository.
func (PipelineOutput) SkipIntermediateBuilds ¶
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 ¶
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 its builds automatically skipped.
func (PipelineOutput) Slug ¶
func (o PipelineOutput) Slug() pulumi.StringOutput
The slug of the created pipeline.
func (PipelineOutput) Steps ¶
func (o PipelineOutput) Steps() pulumi.StringOutput
The string YAML steps to run the pipeline. Defaults to `buildkite-agent pipeline upload` if not specified.
func (PipelineOutput) Tags ¶
func (o PipelineOutput) Tags() pulumi.StringArrayOutput
func (PipelineOutput) Teams
deprecated
func (o PipelineOutput) Teams() PipelineTeamArrayOutput
**DEPRECATED** Set team access for the pipeline. Can be specified multiple times for each team.
Deprecated: This block is deprecated. Please use `buildkite_pipeline_team` instead.
func (PipelineOutput) ToPipelineOutput ¶
func (o PipelineOutput) ToPipelineOutput() PipelineOutput
func (PipelineOutput) ToPipelineOutputWithContext ¶
func (o PipelineOutput) ToPipelineOutputWithContext(ctx context.Context) PipelineOutput
func (PipelineOutput) WebhookUrl ¶
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. // // Properties available for Bitbucket Cloud, GitHub, and GitHub Enterprise: BuildTags *bool `pulumi:"buildTags"` // A boolean to enable automatically cancelling any running builds for a branch if the branch is deleted. // // Additional properties available for GitHub: 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 if an existing build for the commit and branch already exists. SkipBuildsForExistingCommits *bool `pulumi:"skipBuildsForExistingCommits"` // 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. // // Properties available for Bitbucket Cloud, GitHub, and GitHub Enterprise: BuildTags pulumi.BoolPtrInput `pulumi:"buildTags"` // A boolean to enable automatically cancelling any running builds for a branch if the branch is deleted. // // Additional properties available for GitHub: 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 if an existing build for the commit and branch already exists. SkipBuildsForExistingCommits pulumi.BoolPtrInput `pulumi:"skipBuildsForExistingCommits"` // 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) ElementType() reflect.Type
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 ¶
func (o PipelineProviderSettingsOutput) BuildBranches() pulumi.BoolPtrOutput
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 ¶
func (o PipelineProviderSettingsOutput) BuildTags() pulumi.BoolPtrOutput
Whether to create builds when tags are pushed.
Properties available for Bitbucket Cloud, GitHub, and GitHub Enterprise:
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.
Additional properties available for GitHub:
func (PipelineProviderSettingsOutput) ElementType ¶
func (PipelineProviderSettingsOutput) ElementType() reflect.Type
func (PipelineProviderSettingsOutput) FilterCondition ¶
func (o PipelineProviderSettingsOutput) FilterCondition() pulumi.StringPtrOutput
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 ¶
func (o PipelineProviderSettingsOutput) FilterEnabled() pulumi.BoolPtrOutput
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) SkipBuildsForExistingCommits ¶ added in v2.2.0
func (o PipelineProviderSettingsOutput) SkipBuildsForExistingCommits() pulumi.BoolPtrOutput
Whether to skip creating a new build if an existing build for the commit and branch already exists.
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 ¶
func (o PipelineProviderSettingsOutput) TriggerMode() pulumi.StringPtrOutput
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
func PipelineProviderSettingsPtr ¶
func PipelineProviderSettingsPtr(v *PipelineProviderSettingsArgs) PipelineProviderSettingsPtrInput
type PipelineProviderSettingsPtrOutput ¶
type PipelineProviderSettingsPtrOutput struct{ *pulumi.OutputState }
func (PipelineProviderSettingsPtrOutput) BuildBranches ¶
func (o PipelineProviderSettingsPtrOutput) BuildBranches() pulumi.BoolPtrOutput
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 ¶
func (o PipelineProviderSettingsPtrOutput) BuildPullRequests() pulumi.BoolPtrOutput
Whether to create builds for commits that are part of a Pull Request.
func (PipelineProviderSettingsPtrOutput) BuildTags ¶
func (o PipelineProviderSettingsPtrOutput) BuildTags() pulumi.BoolPtrOutput
Whether to create builds when tags are pushed.
Properties available for Bitbucket Cloud, GitHub, and GitHub Enterprise:
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.
Additional properties available for GitHub:
func (PipelineProviderSettingsPtrOutput) Elem ¶
func (o PipelineProviderSettingsPtrOutput) Elem() PipelineProviderSettingsOutput
func (PipelineProviderSettingsPtrOutput) ElementType ¶
func (PipelineProviderSettingsPtrOutput) ElementType() reflect.Type
func (PipelineProviderSettingsPtrOutput) FilterCondition ¶
func (o PipelineProviderSettingsPtrOutput) FilterCondition() pulumi.StringPtrOutput
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 ¶
func (o PipelineProviderSettingsPtrOutput) FilterEnabled() pulumi.BoolPtrOutput
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) SkipBuildsForExistingCommits ¶ added in v2.2.0
func (o PipelineProviderSettingsPtrOutput) SkipBuildsForExistingCommits() pulumi.BoolPtrOutput
Whether to skip creating a new build if an existing build for the commit and branch already exists.
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 ¶
func (o PipelineProviderSettingsPtrOutput) TriggerMode() pulumi.StringPtrOutput
What type of event to trigger builds on. Must be one of:
type PipelineState ¶
type PipelineState struct { // A boolean on whether or not to allow rebuilds for the pipeline. AllowRebuilds pulumi.BoolPtrInput // Deprecated: This attribute has been deprecated and will be removed in v0.27.0. Please use provider configuration `archive_pipeline_on_delete` instead. ArchiveOnDelete 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 its 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 // The default timeout for commands in this pipeline, in minutes. DefaultTimeoutInMinutes pulumi.IntPtrInput // **DEPRECATED** (Optional) Set to either `true` or `false`. When set to `true`, `destroy` actions on a pipeline will be blocked and fail with a message "Deletion protection is enabled for pipeline: <pipeline name>" // // Deprecated: Deletion protection will be removed in a future release. A similar solution already exists and is supported by Terraform. See https://developer.hashicorp.com/terraform/language/meta-arguments/lifecycle. DeletionProtection pulumi.BoolPtrInput // A description of the pipeline. Description pulumi.StringPtrInput // The maximum timeout for commands in this pipeline, in minutes. MaximumTimeoutInMinutes pulumi.IntPtrInput // 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 its builds automatically skipped. SkipIntermediateBuildsBranchFilter pulumi.StringPtrInput // The slug of the created pipeline. Slug pulumi.StringPtrInput // The string YAML steps to run the pipeline. Defaults to `buildkite-agent pipeline upload` if not specified. Steps pulumi.StringPtrInput Tags pulumi.StringArrayInput // **DEPRECATED** Set team access for the pipeline. Can be specified multiple times for each team. // // Deprecated: This block is deprecated. Please use `buildkite_pipeline_team` instead. 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 PipelineTeamArgs ¶
type PipelineTeamArgs struct { AccessLevel pulumi.StringInput `pulumi:"accessLevel"` PipelineTeamId pulumi.StringPtrInput `pulumi:"pipelineTeamId"` // The slug of the created pipeline. Slug pulumi.StringInput `pulumi:"slug"` TeamId pulumi.StringPtrInput `pulumi:"teamId"` }
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 (o PipelineTeamArrayOutput) Index(i pulumi.IntInput) PipelineTeamOutput
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
func (PipelineTeamOutput) ElementType ¶
func (PipelineTeamOutput) ElementType() reflect.Type
func (PipelineTeamOutput) PipelineTeamId ¶ added in v2.3.1
func (o PipelineTeamOutput) PipelineTeamId() pulumi.StringPtrOutput
func (PipelineTeamOutput) Slug ¶
func (o PipelineTeamOutput) Slug() pulumi.StringOutput
The slug of the created pipeline.
func (PipelineTeamOutput) TeamId ¶ added in v2.3.1
func (o PipelineTeamOutput) TeamId() pulumi.StringPtrOutput
func (PipelineTeamOutput) ToPipelineTeamOutput ¶
func (o PipelineTeamOutput) ToPipelineTeamOutput() PipelineTeamOutput
func (PipelineTeamOutput) ToPipelineTeamOutputWithContext ¶
func (o PipelineTeamOutput) ToPipelineTeamOutputWithContext(ctx context.Context) PipelineTeamOutput
type Schedule ¶
type Schedule 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.StringOutput `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.BoolOutput `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.StringPtrOutput `pulumi:"message"` // The ID of the pipeline that this schedule belongs to. 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/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumiverse/pulumi-buildkite/sdk/v2/go/buildkite/Pipeline"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Pipeline.NewSchedule(ctx, "repo2Nightly", &Pipeline.ScheduleArgs{ 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 their `GraphQL ID`, e.g.
```sh
$ pulumi import buildkite:Pipeline/schedule:Schedule test UGlwZWxpgm5Tf2hhZHVsZ35tLWRk4DdmN7c4LTA5M2ItNDM9YS0gMWE0LTAwZDUgYTAxYvRf49==
```
Your pipeline schedules' GraphQL ID can be found with the below GraphQL query below. Alternatively, you could use this [pre-saved query](https://buildkite.com/user/graphql/console/45687b7c-2565-4acb-8a74-750a3647875f), specifying the organisation slug (when known) and the pipeline search term (PIPELINE_SEARCH_TERM). graphql query getPipelineScheduleId { organization(slug"ORGANIZATION_SLUG") { pipelines(first5, search"PIPELINE_SEARCH_TERM") { edges{ node{ name schedules{ edges{
node{
id } } } } } } } }
func GetSchedule ¶
func GetSchedule(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ScheduleState, opts ...pulumi.ResourceOption) (*Schedule, error)
GetSchedule gets an existing Schedule 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 NewSchedule ¶
func NewSchedule(ctx *pulumi.Context, name string, args *ScheduleArgs, opts ...pulumi.ResourceOption) (*Schedule, error)
NewSchedule registers a new resource with the given unique name, arguments, and options.
func (*Schedule) ElementType ¶
func (*Schedule) ToScheduleOutput ¶
func (i *Schedule) ToScheduleOutput() ScheduleOutput
func (*Schedule) ToScheduleOutputWithContext ¶
func (i *Schedule) ToScheduleOutputWithContext(ctx context.Context) ScheduleOutput
type ScheduleArgs ¶
type ScheduleArgs 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 // The ID of the pipeline that this schedule belongs to. PipelineId pulumi.StringInput }
The set of arguments for constructing a Schedule resource.
func (ScheduleArgs) ElementType ¶
func (ScheduleArgs) ElementType() reflect.Type
type ScheduleArray ¶
type ScheduleArray []ScheduleInput
func (ScheduleArray) ElementType ¶
func (ScheduleArray) ElementType() reflect.Type
func (ScheduleArray) ToScheduleArrayOutput ¶
func (i ScheduleArray) ToScheduleArrayOutput() ScheduleArrayOutput
func (ScheduleArray) ToScheduleArrayOutputWithContext ¶
func (i ScheduleArray) ToScheduleArrayOutputWithContext(ctx context.Context) ScheduleArrayOutput
type ScheduleArrayInput ¶
type ScheduleArrayInput interface { pulumi.Input ToScheduleArrayOutput() ScheduleArrayOutput ToScheduleArrayOutputWithContext(context.Context) ScheduleArrayOutput }
ScheduleArrayInput is an input type that accepts ScheduleArray and ScheduleArrayOutput values. You can construct a concrete instance of `ScheduleArrayInput` via:
ScheduleArray{ ScheduleArgs{...} }
type ScheduleArrayOutput ¶
type ScheduleArrayOutput struct{ *pulumi.OutputState }
func (ScheduleArrayOutput) ElementType ¶
func (ScheduleArrayOutput) ElementType() reflect.Type
func (ScheduleArrayOutput) Index ¶
func (o ScheduleArrayOutput) Index(i pulumi.IntInput) ScheduleOutput
func (ScheduleArrayOutput) ToScheduleArrayOutput ¶
func (o ScheduleArrayOutput) ToScheduleArrayOutput() ScheduleArrayOutput
func (ScheduleArrayOutput) ToScheduleArrayOutputWithContext ¶
func (o ScheduleArrayOutput) ToScheduleArrayOutputWithContext(ctx context.Context) ScheduleArrayOutput
type ScheduleInput ¶
type ScheduleInput interface { pulumi.Input ToScheduleOutput() ScheduleOutput ToScheduleOutputWithContext(ctx context.Context) ScheduleOutput }
type ScheduleMap ¶
type ScheduleMap map[string]ScheduleInput
func (ScheduleMap) ElementType ¶
func (ScheduleMap) ElementType() reflect.Type
func (ScheduleMap) ToScheduleMapOutput ¶
func (i ScheduleMap) ToScheduleMapOutput() ScheduleMapOutput
func (ScheduleMap) ToScheduleMapOutputWithContext ¶
func (i ScheduleMap) ToScheduleMapOutputWithContext(ctx context.Context) ScheduleMapOutput
type ScheduleMapInput ¶
type ScheduleMapInput interface { pulumi.Input ToScheduleMapOutput() ScheduleMapOutput ToScheduleMapOutputWithContext(context.Context) ScheduleMapOutput }
ScheduleMapInput is an input type that accepts ScheduleMap and ScheduleMapOutput values. You can construct a concrete instance of `ScheduleMapInput` via:
ScheduleMap{ "key": ScheduleArgs{...} }
type ScheduleMapOutput ¶
type ScheduleMapOutput struct{ *pulumi.OutputState }
func (ScheduleMapOutput) ElementType ¶
func (ScheduleMapOutput) ElementType() reflect.Type
func (ScheduleMapOutput) MapIndex ¶
func (o ScheduleMapOutput) MapIndex(k pulumi.StringInput) ScheduleOutput
func (ScheduleMapOutput) ToScheduleMapOutput ¶
func (o ScheduleMapOutput) ToScheduleMapOutput() ScheduleMapOutput
func (ScheduleMapOutput) ToScheduleMapOutputWithContext ¶
func (o ScheduleMapOutput) ToScheduleMapOutputWithContext(ctx context.Context) ScheduleMapOutput
type ScheduleOutput ¶
type ScheduleOutput struct{ *pulumi.OutputState }
func (ScheduleOutput) Branch ¶
func (o ScheduleOutput) Branch() pulumi.StringOutput
The branch to use for the build.
func (ScheduleOutput) Commit ¶
func (o ScheduleOutput) Commit() pulumi.StringOutput
The commit ref to use for the build.
func (ScheduleOutput) Cronline ¶
func (o ScheduleOutput) Cronline() pulumi.StringOutput
Schedule interval (see [docs](https://buildkite.com/docs/pipelines/scheduled-builds#schedule-intervals)).
func (ScheduleOutput) ElementType ¶
func (ScheduleOutput) ElementType() reflect.Type
func (ScheduleOutput) Enabled ¶
func (o ScheduleOutput) Enabled() pulumi.BoolOutput
Whether the schedule should run.
func (ScheduleOutput) Env ¶
func (o ScheduleOutput) Env() pulumi.StringMapOutput
A map of environment variables to use for the build.
func (ScheduleOutput) Message ¶
func (o ScheduleOutput) Message() pulumi.StringPtrOutput
The message to use for the build.
func (ScheduleOutput) PipelineId ¶
func (o ScheduleOutput) PipelineId() pulumi.StringOutput
The ID of the pipeline that this schedule belongs to.
func (ScheduleOutput) ToScheduleOutput ¶
func (o ScheduleOutput) ToScheduleOutput() ScheduleOutput
func (ScheduleOutput) ToScheduleOutputWithContext ¶
func (o ScheduleOutput) ToScheduleOutputWithContext(ctx context.Context) ScheduleOutput
func (ScheduleOutput) Uuid ¶
func (o ScheduleOutput) Uuid() pulumi.StringOutput
The UUID of the pipeline schedule
type ScheduleState ¶
type ScheduleState 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 // The ID of the pipeline that this schedule belongs to. PipelineId pulumi.StringPtrInput // The UUID of the pipeline schedule Uuid pulumi.StringPtrInput }
func (ScheduleState) ElementType ¶
func (ScheduleState) ElementType() reflect.Type
type Team ¶ added in v2.3.1
type Team struct { pulumi.CustomResourceState // The level of access to grant. Must be one of `READ_ONLY`, `BUILD_AND_READ` or `MANAGE_BUILD_AND_READ`. AccessLevel pulumi.StringOutput `pulumi:"accessLevel"` // The GraphQL ID of the pipeline. PipelineId pulumi.StringOutput `pulumi:"pipelineId"` // The GraphQL ID of the team to add to/remove from. TeamId pulumi.StringOutput `pulumi:"teamId"` // The UUID of the pipeline schedule Uuid pulumi.StringOutput `pulumi:"uuid"` }
## # Resource: pipelineTeam
This resource allows you to create and manage team configuration in a pipeline.
Buildkite Documentation: https://buildkite.com/docs/pipelines/permissions#permissions-with-teams-pipeline-level-permissions
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumiverse/pulumi-buildkite/sdk/v2/go/buildkite/Pipeline"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Pipeline.NewTeam(ctx, "developers", &Pipeline.TeamArgs{ PipelineId: pulumi.Any(buildkite_pipeline.Repo2), TeamId: pulumi.Any(buildkite_team.Test.Id), AccessLevel: pulumi.String("MANAGE_BUILD_AND_READ"), }) if err != nil { return err } return nil }) }
```
## Import
Pipeline teams can be imported using their `GraphQL ID`, e.g.
```sh
$ pulumi import buildkite:Pipeline/team:Team guests VGVhbS0tLWU1YjQyMDQyLTUzN2QtNDZjNi04MjY0LTliZjFkMzkyYjZkNQ==
```
Your pipeline team's GraphQL ID can be found with the below GraphQL query below. graphql query getPipelineTeamId { pipeline(slug"ORGANIZATION_SLUG/PIPELINE_SLUG") { teams(first5, search"PIPELINE_SEARCH_TERM") { edges{ node{ id
}
} } } }
func GetTeam ¶ added in v2.3.1
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 ¶ added in v2.3.1
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 ¶ added in v2.3.1
func (*Team) ToTeamOutput ¶ added in v2.3.1
func (i *Team) ToTeamOutput() TeamOutput
func (*Team) ToTeamOutputWithContext ¶ added in v2.3.1
func (i *Team) ToTeamOutputWithContext(ctx context.Context) TeamOutput
type TeamArgs ¶ added in v2.3.1
type TeamArgs struct { // The level of access to grant. Must be one of `READ_ONLY`, `BUILD_AND_READ` or `MANAGE_BUILD_AND_READ`. AccessLevel pulumi.StringInput // The GraphQL ID of the pipeline. PipelineId pulumi.StringInput // The GraphQL ID of the team to add to/remove from. TeamId pulumi.StringInput }
The set of arguments for constructing a Team resource.
func (TeamArgs) ElementType ¶ added in v2.3.1
type TeamArray ¶ added in v2.3.1
type TeamArray []TeamInput
func (TeamArray) ElementType ¶ added in v2.3.1
func (TeamArray) ToTeamArrayOutput ¶ added in v2.3.1
func (i TeamArray) ToTeamArrayOutput() TeamArrayOutput
func (TeamArray) ToTeamArrayOutputWithContext ¶ added in v2.3.1
func (i TeamArray) ToTeamArrayOutputWithContext(ctx context.Context) TeamArrayOutput
type TeamArrayInput ¶ added in v2.3.1
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 ¶ added in v2.3.1
type TeamArrayOutput struct{ *pulumi.OutputState }
func (TeamArrayOutput) ElementType ¶ added in v2.3.1
func (TeamArrayOutput) ElementType() reflect.Type
func (TeamArrayOutput) Index ¶ added in v2.3.1
func (o TeamArrayOutput) Index(i pulumi.IntInput) TeamOutput
func (TeamArrayOutput) ToTeamArrayOutput ¶ added in v2.3.1
func (o TeamArrayOutput) ToTeamArrayOutput() TeamArrayOutput
func (TeamArrayOutput) ToTeamArrayOutputWithContext ¶ added in v2.3.1
func (o TeamArrayOutput) ToTeamArrayOutputWithContext(ctx context.Context) TeamArrayOutput
type TeamInput ¶ added in v2.3.1
type TeamInput interface { pulumi.Input ToTeamOutput() TeamOutput ToTeamOutputWithContext(ctx context.Context) TeamOutput }
type TeamMap ¶ added in v2.3.1
func (TeamMap) ElementType ¶ added in v2.3.1
func (TeamMap) ToTeamMapOutput ¶ added in v2.3.1
func (i TeamMap) ToTeamMapOutput() TeamMapOutput
func (TeamMap) ToTeamMapOutputWithContext ¶ added in v2.3.1
func (i TeamMap) ToTeamMapOutputWithContext(ctx context.Context) TeamMapOutput
type TeamMapInput ¶ added in v2.3.1
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 ¶ added in v2.3.1
type TeamMapOutput struct{ *pulumi.OutputState }
func (TeamMapOutput) ElementType ¶ added in v2.3.1
func (TeamMapOutput) ElementType() reflect.Type
func (TeamMapOutput) MapIndex ¶ added in v2.3.1
func (o TeamMapOutput) MapIndex(k pulumi.StringInput) TeamOutput
func (TeamMapOutput) ToTeamMapOutput ¶ added in v2.3.1
func (o TeamMapOutput) ToTeamMapOutput() TeamMapOutput
func (TeamMapOutput) ToTeamMapOutputWithContext ¶ added in v2.3.1
func (o TeamMapOutput) ToTeamMapOutputWithContext(ctx context.Context) TeamMapOutput
type TeamOutput ¶ added in v2.3.1
type TeamOutput struct{ *pulumi.OutputState }
func (TeamOutput) AccessLevel ¶ added in v2.3.1
func (o TeamOutput) AccessLevel() pulumi.StringOutput
The level of access to grant. Must be one of `READ_ONLY`, `BUILD_AND_READ` or `MANAGE_BUILD_AND_READ`.
func (TeamOutput) ElementType ¶ added in v2.3.1
func (TeamOutput) ElementType() reflect.Type
func (TeamOutput) PipelineId ¶ added in v2.3.1
func (o TeamOutput) PipelineId() pulumi.StringOutput
The GraphQL ID of the pipeline.
func (TeamOutput) TeamId ¶ added in v2.3.1
func (o TeamOutput) TeamId() pulumi.StringOutput
The GraphQL ID of the team to add to/remove from.
func (TeamOutput) ToTeamOutput ¶ added in v2.3.1
func (o TeamOutput) ToTeamOutput() TeamOutput
func (TeamOutput) ToTeamOutputWithContext ¶ added in v2.3.1
func (o TeamOutput) ToTeamOutputWithContext(ctx context.Context) TeamOutput
func (TeamOutput) Uuid ¶ added in v2.3.1
func (o TeamOutput) Uuid() pulumi.StringOutput
The UUID of the pipeline schedule
type TeamState ¶ added in v2.3.1
type TeamState struct { // The level of access to grant. Must be one of `READ_ONLY`, `BUILD_AND_READ` or `MANAGE_BUILD_AND_READ`. AccessLevel pulumi.StringPtrInput // The GraphQL ID of the pipeline. PipelineId pulumi.StringPtrInput // The GraphQL ID of the team to add to/remove from. TeamId pulumi.StringPtrInput // The UUID of the pipeline schedule Uuid pulumi.StringPtrInput }