AzureDevOps

Pulumi Official
Package maintained by Pulumi
v2.4.0 published on Friday, Apr 22, 2022 by Pulumi

BuildDefinition

Deprecated:

azuredevops.build.BuildDefinition has been deprecated in favor of azuredevops.BuildDefinition

Create a BuildDefinition Resource

new BuildDefinition(name: string, args: BuildDefinitionArgs, opts?: CustomResourceOptions);
@overload
def BuildDefinition(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    agent_pool_name: Optional[str] = None,
                    ci_trigger: Optional[_build.BuildDefinitionCiTriggerArgs] = None,
                    name: Optional[str] = None,
                    path: Optional[str] = None,
                    project_id: Optional[str] = None,
                    pull_request_trigger: Optional[_build.BuildDefinitionPullRequestTriggerArgs] = None,
                    repository: Optional[_build.BuildDefinitionRepositoryArgs] = None,
                    schedules: Optional[Sequence[_build.BuildDefinitionScheduleArgs]] = None,
                    variable_groups: Optional[Sequence[int]] = None,
                    variables: Optional[Sequence[_build.BuildDefinitionVariableArgs]] = None)
@overload
def BuildDefinition(resource_name: str,
                    args: BuildDefinitionArgs,
                    opts: Optional[ResourceOptions] = None)
func NewBuildDefinition(ctx *Context, name string, args BuildDefinitionArgs, opts ...ResourceOption) (*BuildDefinition, error)
public BuildDefinition(string name, BuildDefinitionArgs args, CustomResourceOptions? opts = null)
public BuildDefinition(String name, BuildDefinitionArgs args)
public BuildDefinition(String name, BuildDefinitionArgs args, CustomResourceOptions options)
type: azuredevops:Build:BuildDefinition
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args BuildDefinitionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args BuildDefinitionArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args BuildDefinitionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args BuildDefinitionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args BuildDefinitionArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

BuildDefinition Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The BuildDefinition resource accepts the following input properties:

Outputs

All input properties are implicitly available as output properties. Additionally, the BuildDefinition resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Revision int
Id string

The provider-assigned unique ID for this managed resource.

Revision int
id String

The provider-assigned unique ID for this managed resource.

revision Integer
id string

The provider-assigned unique ID for this managed resource.

revision number
id str

The provider-assigned unique ID for this managed resource.

revision int
id String

The provider-assigned unique ID for this managed resource.

revision Number

Look up an Existing BuildDefinition Resource

Get an existing BuildDefinition resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: BuildDefinitionState, opts?: CustomResourceOptions): BuildDefinition
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        agent_pool_name: Optional[str] = None,
        ci_trigger: Optional[_build.BuildDefinitionCiTriggerArgs] = None,
        name: Optional[str] = None,
        path: Optional[str] = None,
        project_id: Optional[str] = None,
        pull_request_trigger: Optional[_build.BuildDefinitionPullRequestTriggerArgs] = None,
        repository: Optional[_build.BuildDefinitionRepositoryArgs] = None,
        revision: Optional[int] = None,
        schedules: Optional[Sequence[_build.BuildDefinitionScheduleArgs]] = None,
        variable_groups: Optional[Sequence[int]] = None,
        variables: Optional[Sequence[_build.BuildDefinitionVariableArgs]] = None) -> BuildDefinition
func GetBuildDefinition(ctx *Context, name string, id IDInput, state *BuildDefinitionState, opts ...ResourceOption) (*BuildDefinition, error)
public static BuildDefinition Get(string name, Input<string> id, BuildDefinitionState? state, CustomResourceOptions? opts = null)
public static BuildDefinition get(String name, Output<String> id, BuildDefinitionState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:

Supporting Types

BuildDefinitionCiTrigger

BuildDefinitionCiTriggerOverride

BuildDefinitionCiTriggerOverrideBranchFilter

Excludes List<string>
Includes List<string>
Excludes []string
Includes []string
excludes List<String>
includes List<String>
excludes string[]
includes string[]
excludes Sequence[str]
includes Sequence[str]
excludes List<String>
includes List<String>

BuildDefinitionCiTriggerOverridePathFilter

Excludes List<string>
Includes List<string>
Excludes []string
Includes []string
excludes List<String>
includes List<String>
excludes string[]
includes string[]
excludes Sequence[str]
includes Sequence[str]
excludes List<String>
includes List<String>

BuildDefinitionPullRequestTrigger

BuildDefinitionPullRequestTriggerForks

enabled Boolean
shareSecrets Boolean
enabled boolean
shareSecrets boolean
enabled Boolean
shareSecrets Boolean

BuildDefinitionPullRequestTriggerOverride

BuildDefinitionPullRequestTriggerOverrideBranchFilter

Excludes List<string>
Includes List<string>
Excludes []string
Includes []string
excludes List<String>
includes List<String>
excludes string[]
includes string[]
excludes Sequence[str]
includes Sequence[str]
excludes List<String>
includes List<String>

BuildDefinitionPullRequestTriggerOverridePathFilter

Excludes List<string>
Includes List<string>
Excludes []string
Includes []string
excludes List<String>
includes List<String>
excludes string[]
includes string[]
excludes Sequence[str]
includes Sequence[str]
excludes List<String>
includes List<String>

BuildDefinitionRepository

BuildDefinitionSchedule

BuildDefinitionScheduleBranchFilter

Excludes List<string>
Includes List<string>
Excludes []string
Includes []string
excludes List<String>
includes List<String>
excludes string[]
includes string[]
excludes Sequence[str]
includes Sequence[str]
excludes List<String>
includes List<String>

BuildDefinitionVariable

Name string
AllowOverride bool
IsSecret bool
SecretValue string
Value string
Name string
AllowOverride bool
IsSecret bool
SecretValue string
Value string
name String
allowOverride Boolean
isSecret Boolean
secretValue String
value String
name string
allowOverride boolean
isSecret boolean
secretValue string
value string
name String
allowOverride Boolean
isSecret Boolean
secretValue String
value String

Package Details

Repository
https://github.com/pulumi/pulumi-azuredevops
License
Apache-2.0
Notes

This Pulumi package is based on the azuredevops Terraform Provider.