1. Packages
  2. Ibm Provider
  3. API Docs
  4. CdTektonPipelineDefinition
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.CdTektonPipelineDefinition

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Create, update, and delete cd_tekton_pipeline_definitions with this resource.

    Example Usage

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.CdTektonPipelineDefinition;
    import com.pulumi.ibm.CdTektonPipelineDefinitionArgs;
    import com.pulumi.ibm.inputs.CdTektonPipelineDefinitionSourceArgs;
    import com.pulumi.ibm.inputs.CdTektonPipelineDefinitionSourcePropertiesArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var cdTektonPipelineDefinitionInstance = new CdTektonPipelineDefinition("cdTektonPipelineDefinitionInstance", CdTektonPipelineDefinitionArgs.builder()
                .pipelineId("94619026-912b-4d92-8f51-6c74f0692d90")
                .source(CdTektonPipelineDefinitionSourceArgs.builder()
                    .properties(CdTektonPipelineDefinitionSourcePropertiesArgs.builder()
                        .branch("branch")
                        .path("path")
                        .tag("tag")
                        .tool(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
                        .url("url")
                        .build())
                    .type("git")
                    .build())
                .build());
    
        }
    }
    
    resources:
      cdTektonPipelineDefinitionInstance:
        type: ibm:CdTektonPipelineDefinition
        properties:
          pipelineId: 94619026-912b-4d92-8f51-6c74f0692d90
          source:
            properties:
              branch: branch
              path: path
              tag: tag
              tool:
                - id: id
              url: url
            type: git
    

    Create CdTektonPipelineDefinition Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CdTektonPipelineDefinition(name: string, args: CdTektonPipelineDefinitionArgs, opts?: CustomResourceOptions);
    @overload
    def CdTektonPipelineDefinition(resource_name: str,
                                   args: CdTektonPipelineDefinitionInitArgs,
                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def CdTektonPipelineDefinition(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   pipeline_id: Optional[str] = None,
                                   source: Optional[CdTektonPipelineDefinitionSourceArgs] = None,
                                   cd_tekton_pipeline_definition_id: Optional[str] = None)
    func NewCdTektonPipelineDefinition(ctx *Context, name string, args CdTektonPipelineDefinitionArgs, opts ...ResourceOption) (*CdTektonPipelineDefinition, error)
    public CdTektonPipelineDefinition(string name, CdTektonPipelineDefinitionArgs args, CustomResourceOptions? opts = null)
    public CdTektonPipelineDefinition(String name, CdTektonPipelineDefinitionArgs args)
    public CdTektonPipelineDefinition(String name, CdTektonPipelineDefinitionArgs args, CustomResourceOptions options)
    
    type: ibm:CdTektonPipelineDefinition
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args CdTektonPipelineDefinitionArgs
    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 CdTektonPipelineDefinitionInitArgs
    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 CdTektonPipelineDefinitionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CdTektonPipelineDefinitionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CdTektonPipelineDefinitionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var cdTektonPipelineDefinitionResource = new Ibm.CdTektonPipelineDefinition("cdTektonPipelineDefinitionResource", new()
    {
        PipelineId = "string",
        Source = new Ibm.Inputs.CdTektonPipelineDefinitionSourceArgs
        {
            Properties = new Ibm.Inputs.CdTektonPipelineDefinitionSourcePropertiesArgs
            {
                Path = "string",
                Url = "string",
                Branch = "string",
                Tag = "string",
                Tools = new[]
                {
                    new Ibm.Inputs.CdTektonPipelineDefinitionSourcePropertiesToolArgs
                    {
                        Id = "string",
                    },
                },
            },
            Type = "string",
        },
        CdTektonPipelineDefinitionId = "string",
    });
    
    example, err := ibm.NewCdTektonPipelineDefinition(ctx, "cdTektonPipelineDefinitionResource", &ibm.CdTektonPipelineDefinitionArgs{
    	PipelineId: pulumi.String("string"),
    	Source: &ibm.CdTektonPipelineDefinitionSourceArgs{
    		Properties: &ibm.CdTektonPipelineDefinitionSourcePropertiesArgs{
    			Path:   pulumi.String("string"),
    			Url:    pulumi.String("string"),
    			Branch: pulumi.String("string"),
    			Tag:    pulumi.String("string"),
    			Tools: ibm.CdTektonPipelineDefinitionSourcePropertiesToolArray{
    				&ibm.CdTektonPipelineDefinitionSourcePropertiesToolArgs{
    					Id: pulumi.String("string"),
    				},
    			},
    		},
    		Type: pulumi.String("string"),
    	},
    	CdTektonPipelineDefinitionId: pulumi.String("string"),
    })
    
    var cdTektonPipelineDefinitionResource = new CdTektonPipelineDefinition("cdTektonPipelineDefinitionResource", CdTektonPipelineDefinitionArgs.builder()
        .pipelineId("string")
        .source(CdTektonPipelineDefinitionSourceArgs.builder()
            .properties(CdTektonPipelineDefinitionSourcePropertiesArgs.builder()
                .path("string")
                .url("string")
                .branch("string")
                .tag("string")
                .tools(CdTektonPipelineDefinitionSourcePropertiesToolArgs.builder()
                    .id("string")
                    .build())
                .build())
            .type("string")
            .build())
        .cdTektonPipelineDefinitionId("string")
        .build());
    
    cd_tekton_pipeline_definition_resource = ibm.CdTektonPipelineDefinition("cdTektonPipelineDefinitionResource",
        pipeline_id="string",
        source={
            "properties": {
                "path": "string",
                "url": "string",
                "branch": "string",
                "tag": "string",
                "tools": [{
                    "id": "string",
                }],
            },
            "type": "string",
        },
        cd_tekton_pipeline_definition_id="string")
    
    const cdTektonPipelineDefinitionResource = new ibm.CdTektonPipelineDefinition("cdTektonPipelineDefinitionResource", {
        pipelineId: "string",
        source: {
            properties: {
                path: "string",
                url: "string",
                branch: "string",
                tag: "string",
                tools: [{
                    id: "string",
                }],
            },
            type: "string",
        },
        cdTektonPipelineDefinitionId: "string",
    });
    
    type: ibm:CdTektonPipelineDefinition
    properties:
        cdTektonPipelineDefinitionId: string
        pipelineId: string
        source:
            properties:
                branch: string
                path: string
                tag: string
                tools:
                    - id: string
                url: string
            type: string
    

    CdTektonPipelineDefinition Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The CdTektonPipelineDefinition resource accepts the following input properties:

    PipelineId string
    The Tekton pipeline ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    Source CdTektonPipelineDefinitionSource
    Source repository containing the Tekton pipeline definition. Nested schema for source:
    CdTektonPipelineDefinitionId string
    The unique identifier of the cd_tekton_pipeline_definition.
    PipelineId string
    The Tekton pipeline ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    Source CdTektonPipelineDefinitionSourceArgs
    Source repository containing the Tekton pipeline definition. Nested schema for source:
    CdTektonPipelineDefinitionId string
    The unique identifier of the cd_tekton_pipeline_definition.
    pipelineId String
    The Tekton pipeline ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    source CdTektonPipelineDefinitionSource
    Source repository containing the Tekton pipeline definition. Nested schema for source:
    cdTektonPipelineDefinitionId String
    The unique identifier of the cd_tekton_pipeline_definition.
    pipelineId string
    The Tekton pipeline ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    source CdTektonPipelineDefinitionSource
    Source repository containing the Tekton pipeline definition. Nested schema for source:
    cdTektonPipelineDefinitionId string
    The unique identifier of the cd_tekton_pipeline_definition.
    pipeline_id str
    The Tekton pipeline ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    source CdTektonPipelineDefinitionSourceArgs
    Source repository containing the Tekton pipeline definition. Nested schema for source:
    cd_tekton_pipeline_definition_id str
    The unique identifier of the cd_tekton_pipeline_definition.
    pipelineId String
    The Tekton pipeline ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    source Property Map
    Source repository containing the Tekton pipeline definition. Nested schema for source:
    cdTektonPipelineDefinitionId String
    The unique identifier of the cd_tekton_pipeline_definition.

    Outputs

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

    DefinitionId string
    (String) The aggregated definition ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    Href string
    (String) API URL for interacting with the definition.

    • Constraints: The maximum length is 2048 characters. The minimum length is 10 characters. The value must match regular expression /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    Id string
    The provider-assigned unique ID for this managed resource.
    DefinitionId string
    (String) The aggregated definition ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    Href string
    (String) API URL for interacting with the definition.

    • Constraints: The maximum length is 2048 characters. The minimum length is 10 characters. The value must match regular expression /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    Id string
    The provider-assigned unique ID for this managed resource.
    definitionId String
    (String) The aggregated definition ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    href String
    (String) API URL for interacting with the definition.

    • Constraints: The maximum length is 2048 characters. The minimum length is 10 characters. The value must match regular expression /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    id String
    The provider-assigned unique ID for this managed resource.
    definitionId string
    (String) The aggregated definition ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    href string
    (String) API URL for interacting with the definition.

    • Constraints: The maximum length is 2048 characters. The minimum length is 10 characters. The value must match regular expression /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    id string
    The provider-assigned unique ID for this managed resource.
    definition_id str
    (String) The aggregated definition ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    href str
    (String) API URL for interacting with the definition.

    • Constraints: The maximum length is 2048 characters. The minimum length is 10 characters. The value must match regular expression /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    id str
    The provider-assigned unique ID for this managed resource.
    definitionId String
    (String) The aggregated definition ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    href String
    (String) API URL for interacting with the definition.

    • Constraints: The maximum length is 2048 characters. The minimum length is 10 characters. The value must match regular expression /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing CdTektonPipelineDefinition Resource

    Get an existing CdTektonPipelineDefinition 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?: CdTektonPipelineDefinitionState, opts?: CustomResourceOptions): CdTektonPipelineDefinition
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cd_tekton_pipeline_definition_id: Optional[str] = None,
            definition_id: Optional[str] = None,
            href: Optional[str] = None,
            pipeline_id: Optional[str] = None,
            source: Optional[CdTektonPipelineDefinitionSourceArgs] = None) -> CdTektonPipelineDefinition
    func GetCdTektonPipelineDefinition(ctx *Context, name string, id IDInput, state *CdTektonPipelineDefinitionState, opts ...ResourceOption) (*CdTektonPipelineDefinition, error)
    public static CdTektonPipelineDefinition Get(string name, Input<string> id, CdTektonPipelineDefinitionState? state, CustomResourceOptions? opts = null)
    public static CdTektonPipelineDefinition get(String name, Output<String> id, CdTektonPipelineDefinitionState state, CustomResourceOptions options)
    resources:  _:    type: ibm:CdTektonPipelineDefinition    get:      id: ${id}
    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:
    CdTektonPipelineDefinitionId string
    The unique identifier of the cd_tekton_pipeline_definition.
    DefinitionId string
    (String) The aggregated definition ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    Href string
    (String) API URL for interacting with the definition.

    • Constraints: The maximum length is 2048 characters. The minimum length is 10 characters. The value must match regular expression /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    PipelineId string
    The Tekton pipeline ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    Source CdTektonPipelineDefinitionSource
    Source repository containing the Tekton pipeline definition. Nested schema for source:
    CdTektonPipelineDefinitionId string
    The unique identifier of the cd_tekton_pipeline_definition.
    DefinitionId string
    (String) The aggregated definition ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    Href string
    (String) API URL for interacting with the definition.

    • Constraints: The maximum length is 2048 characters. The minimum length is 10 characters. The value must match regular expression /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    PipelineId string
    The Tekton pipeline ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    Source CdTektonPipelineDefinitionSourceArgs
    Source repository containing the Tekton pipeline definition. Nested schema for source:
    cdTektonPipelineDefinitionId String
    The unique identifier of the cd_tekton_pipeline_definition.
    definitionId String
    (String) The aggregated definition ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    href String
    (String) API URL for interacting with the definition.

    • Constraints: The maximum length is 2048 characters. The minimum length is 10 characters. The value must match regular expression /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    pipelineId String
    The Tekton pipeline ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    source CdTektonPipelineDefinitionSource
    Source repository containing the Tekton pipeline definition. Nested schema for source:
    cdTektonPipelineDefinitionId string
    The unique identifier of the cd_tekton_pipeline_definition.
    definitionId string
    (String) The aggregated definition ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    href string
    (String) API URL for interacting with the definition.

    • Constraints: The maximum length is 2048 characters. The minimum length is 10 characters. The value must match regular expression /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    pipelineId string
    The Tekton pipeline ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    source CdTektonPipelineDefinitionSource
    Source repository containing the Tekton pipeline definition. Nested schema for source:
    cd_tekton_pipeline_definition_id str
    The unique identifier of the cd_tekton_pipeline_definition.
    definition_id str
    (String) The aggregated definition ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    href str
    (String) API URL for interacting with the definition.

    • Constraints: The maximum length is 2048 characters. The minimum length is 10 characters. The value must match regular expression /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    pipeline_id str
    The Tekton pipeline ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    source CdTektonPipelineDefinitionSourceArgs
    Source repository containing the Tekton pipeline definition. Nested schema for source:
    cdTektonPipelineDefinitionId String
    The unique identifier of the cd_tekton_pipeline_definition.
    definitionId String
    (String) The aggregated definition ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    href String
    (String) API URL for interacting with the definition.

    • Constraints: The maximum length is 2048 characters. The minimum length is 10 characters. The value must match regular expression /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    pipelineId String
    The Tekton pipeline ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    source Property Map
    Source repository containing the Tekton pipeline definition. Nested schema for source:

    Supporting Types

    CdTektonPipelineDefinitionSource, CdTektonPipelineDefinitionSourceArgs

    Properties CdTektonPipelineDefinitionSourceProperties
    Properties of the source, which define the URL of the repository and a branch or tag. Nested schema for properties:
    Type string
    The only supported source type is "git", indicating that the source is a git repository.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^git$/.
    Properties CdTektonPipelineDefinitionSourceProperties
    Properties of the source, which define the URL of the repository and a branch or tag. Nested schema for properties:
    Type string
    The only supported source type is "git", indicating that the source is a git repository.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^git$/.
    properties CdTektonPipelineDefinitionSourceProperties
    Properties of the source, which define the URL of the repository and a branch or tag. Nested schema for properties:
    type String
    The only supported source type is "git", indicating that the source is a git repository.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^git$/.
    properties CdTektonPipelineDefinitionSourceProperties
    Properties of the source, which define the URL of the repository and a branch or tag. Nested schema for properties:
    type string
    The only supported source type is "git", indicating that the source is a git repository.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^git$/.
    properties CdTektonPipelineDefinitionSourceProperties
    Properties of the source, which define the URL of the repository and a branch or tag. Nested schema for properties:
    type str
    The only supported source type is "git", indicating that the source is a git repository.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^git$/.
    properties Property Map
    Properties of the source, which define the URL of the repository and a branch or tag. Nested schema for properties:
    type String
    The only supported source type is "git", indicating that the source is a git repository.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^git$/.

    CdTektonPipelineDefinitionSourceProperties, CdTektonPipelineDefinitionSourcePropertiesArgs

    Path string
    The path to the definition's YAML files.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[-0-9a-zA-Z_.]{1,253}$/.
    Url string
    URL of the definition repository.

    • Constraints: The maximum length is 2048 characters. The minimum length is 10 characters. The value must match regular expression /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    Branch string
    A branch from the repo, specify one of branch or tag only.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[-0-9a-zA-Z_.]{1,253}$/.
    Tag string
    A tag from the repo, specify one of branch or tag only.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[-0-9a-zA-Z_]{1,253}$/.
    Tools List<CdTektonPipelineDefinitionSourcePropertiesTool>
    Reference to the repository tool in the parent toolchain. Nested schema for tool:
    Path string
    The path to the definition's YAML files.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[-0-9a-zA-Z_.]{1,253}$/.
    Url string
    URL of the definition repository.

    • Constraints: The maximum length is 2048 characters. The minimum length is 10 characters. The value must match regular expression /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    Branch string
    A branch from the repo, specify one of branch or tag only.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[-0-9a-zA-Z_.]{1,253}$/.
    Tag string
    A tag from the repo, specify one of branch or tag only.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[-0-9a-zA-Z_]{1,253}$/.
    Tools []CdTektonPipelineDefinitionSourcePropertiesTool
    Reference to the repository tool in the parent toolchain. Nested schema for tool:
    path String
    The path to the definition's YAML files.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[-0-9a-zA-Z_.]{1,253}$/.
    url String
    URL of the definition repository.

    • Constraints: The maximum length is 2048 characters. The minimum length is 10 characters. The value must match regular expression /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    branch String
    A branch from the repo, specify one of branch or tag only.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[-0-9a-zA-Z_.]{1,253}$/.
    tag String
    A tag from the repo, specify one of branch or tag only.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[-0-9a-zA-Z_]{1,253}$/.
    tools List<CdTektonPipelineDefinitionSourcePropertiesTool>
    Reference to the repository tool in the parent toolchain. Nested schema for tool:
    path string
    The path to the definition's YAML files.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[-0-9a-zA-Z_.]{1,253}$/.
    url string
    URL of the definition repository.

    • Constraints: The maximum length is 2048 characters. The minimum length is 10 characters. The value must match regular expression /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    branch string
    A branch from the repo, specify one of branch or tag only.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[-0-9a-zA-Z_.]{1,253}$/.
    tag string
    A tag from the repo, specify one of branch or tag only.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[-0-9a-zA-Z_]{1,253}$/.
    tools CdTektonPipelineDefinitionSourcePropertiesTool[]
    Reference to the repository tool in the parent toolchain. Nested schema for tool:
    path str
    The path to the definition's YAML files.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[-0-9a-zA-Z_.]{1,253}$/.
    url str
    URL of the definition repository.

    • Constraints: The maximum length is 2048 characters. The minimum length is 10 characters. The value must match regular expression /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    branch str
    A branch from the repo, specify one of branch or tag only.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[-0-9a-zA-Z_.]{1,253}$/.
    tag str
    A tag from the repo, specify one of branch or tag only.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[-0-9a-zA-Z_]{1,253}$/.
    tools Sequence[CdTektonPipelineDefinitionSourcePropertiesTool]
    Reference to the repository tool in the parent toolchain. Nested schema for tool:
    path String
    The path to the definition's YAML files.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[-0-9a-zA-Z_.]{1,253}$/.
    url String
    URL of the definition repository.

    • Constraints: The maximum length is 2048 characters. The minimum length is 10 characters. The value must match regular expression /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    branch String
    A branch from the repo, specify one of branch or tag only.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[-0-9a-zA-Z_.]{1,253}$/.
    tag String
    A tag from the repo, specify one of branch or tag only.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[-0-9a-zA-Z_]{1,253}$/.
    tools List<Property Map>
    Reference to the repository tool in the parent toolchain. Nested schema for tool:

    CdTektonPipelineDefinitionSourcePropertiesTool, CdTektonPipelineDefinitionSourcePropertiesToolArgs

    Id string
    ID of the repository tool instance in the parent toolchain.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    Id string
    ID of the repository tool instance in the parent toolchain.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    id String
    ID of the repository tool instance in the parent toolchain.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    id string
    ID of the repository tool instance in the parent toolchain.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    id str
    ID of the repository tool instance in the parent toolchain.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    id String
    ID of the repository tool instance in the parent toolchain.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.

    Import

    You can import the ibm_cd_tekton_pipeline_definition resource by using id.

    The id property can be formed from pipeline_id, and definition_id in the following format:

    
    <pipeline_id>/<definition_id>
    
    
    • pipeline_id: A string in the format 94619026-912b-4d92-8f51-6c74f0692d90. The Tekton pipeline ID.

    • definition_id: A string. The aggregated definition ID.

    Syntax

    
    ```sh
    $ pulumi import ibm:index/cdTektonPipelineDefinition:CdTektonPipelineDefinition cd_tekton_pipeline_definition <pipeline_id>/<definition_id>
    ```
    
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud