1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DevOps
  5. Trigger
Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi

oci.DevOps.Trigger

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi

    This resource provides the Trigger resource in Oracle Cloud Infrastructure Devops service.

    Creates a new trigger.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testTrigger = new oci.devops.Trigger("testTrigger", {
        actions: [{
            buildPipelineId: oci_devops_build_pipeline.test_build_pipeline.id,
            type: _var.trigger_actions_type,
            filter: {
                triggerSource: _var.trigger_actions_filter_trigger_source,
                events: _var.trigger_actions_filter_events,
                include: {
                    baseRef: _var.trigger_actions_filter_include_base_ref,
                    headRef: _var.trigger_actions_filter_include_head_ref,
                    repositoryName: oci_devops_repository.test_repository.name,
                },
            },
        }],
        projectId: oci_devops_project.test_project.id,
        triggerSource: _var.trigger_trigger_source,
        definedTags: {
            "foo-namespace.bar-key": "value",
        },
        description: _var.trigger_description,
        displayName: _var.trigger_display_name,
        freeformTags: {
            "bar-key": "value",
        },
        repositoryId: oci_artifacts_repository.test_repository.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_trigger = oci.dev_ops.Trigger("testTrigger",
        actions=[oci.dev_ops.TriggerActionArgs(
            build_pipeline_id=oci_devops_build_pipeline["test_build_pipeline"]["id"],
            type=var["trigger_actions_type"],
            filter=oci.dev_ops.TriggerActionFilterArgs(
                trigger_source=var["trigger_actions_filter_trigger_source"],
                events=var["trigger_actions_filter_events"],
                include=oci.dev_ops.TriggerActionFilterIncludeArgs(
                    base_ref=var["trigger_actions_filter_include_base_ref"],
                    head_ref=var["trigger_actions_filter_include_head_ref"],
                    repository_name=oci_devops_repository["test_repository"]["name"],
                ),
            ),
        )],
        project_id=oci_devops_project["test_project"]["id"],
        trigger_source=var["trigger_trigger_source"],
        defined_tags={
            "foo-namespace.bar-key": "value",
        },
        description=var["trigger_description"],
        display_name=var["trigger_display_name"],
        freeform_tags={
            "bar-key": "value",
        },
        repository_id=oci_artifacts_repository["test_repository"]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/DevOps"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := DevOps.NewTrigger(ctx, "testTrigger", &DevOps.TriggerArgs{
    			Actions: devops.TriggerActionArray{
    				&devops.TriggerActionArgs{
    					BuildPipelineId: pulumi.Any(oci_devops_build_pipeline.Test_build_pipeline.Id),
    					Type:            pulumi.Any(_var.Trigger_actions_type),
    					Filter: &devops.TriggerActionFilterArgs{
    						TriggerSource: pulumi.Any(_var.Trigger_actions_filter_trigger_source),
    						Events:        pulumi.Any(_var.Trigger_actions_filter_events),
    						Include: &devops.TriggerActionFilterIncludeArgs{
    							BaseRef:        pulumi.Any(_var.Trigger_actions_filter_include_base_ref),
    							HeadRef:        pulumi.Any(_var.Trigger_actions_filter_include_head_ref),
    							RepositoryName: pulumi.Any(oci_devops_repository.Test_repository.Name),
    						},
    					},
    				},
    			},
    			ProjectId:     pulumi.Any(oci_devops_project.Test_project.Id),
    			TriggerSource: pulumi.Any(_var.Trigger_trigger_source),
    			DefinedTags: pulumi.Map{
    				"foo-namespace.bar-key": pulumi.Any("value"),
    			},
    			Description: pulumi.Any(_var.Trigger_description),
    			DisplayName: pulumi.Any(_var.Trigger_display_name),
    			FreeformTags: pulumi.Map{
    				"bar-key": pulumi.Any("value"),
    			},
    			RepositoryId: pulumi.Any(oci_artifacts_repository.Test_repository.Id),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testTrigger = new Oci.DevOps.Trigger("testTrigger", new()
        {
            Actions = new[]
            {
                new Oci.DevOps.Inputs.TriggerActionArgs
                {
                    BuildPipelineId = oci_devops_build_pipeline.Test_build_pipeline.Id,
                    Type = @var.Trigger_actions_type,
                    Filter = new Oci.DevOps.Inputs.TriggerActionFilterArgs
                    {
                        TriggerSource = @var.Trigger_actions_filter_trigger_source,
                        Events = @var.Trigger_actions_filter_events,
                        Include = new Oci.DevOps.Inputs.TriggerActionFilterIncludeArgs
                        {
                            BaseRef = @var.Trigger_actions_filter_include_base_ref,
                            HeadRef = @var.Trigger_actions_filter_include_head_ref,
                            RepositoryName = oci_devops_repository.Test_repository.Name,
                        },
                    },
                },
            },
            ProjectId = oci_devops_project.Test_project.Id,
            TriggerSource = @var.Trigger_trigger_source,
            DefinedTags = 
            {
                { "foo-namespace.bar-key", "value" },
            },
            Description = @var.Trigger_description,
            DisplayName = @var.Trigger_display_name,
            FreeformTags = 
            {
                { "bar-key", "value" },
            },
            RepositoryId = oci_artifacts_repository.Test_repository.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.DevOps.Trigger;
    import com.pulumi.oci.DevOps.TriggerArgs;
    import com.pulumi.oci.DevOps.inputs.TriggerActionArgs;
    import com.pulumi.oci.DevOps.inputs.TriggerActionFilterArgs;
    import com.pulumi.oci.DevOps.inputs.TriggerActionFilterIncludeArgs;
    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 testTrigger = new Trigger("testTrigger", TriggerArgs.builder()        
                .actions(TriggerActionArgs.builder()
                    .buildPipelineId(oci_devops_build_pipeline.test_build_pipeline().id())
                    .type(var_.trigger_actions_type())
                    .filter(TriggerActionFilterArgs.builder()
                        .triggerSource(var_.trigger_actions_filter_trigger_source())
                        .events(var_.trigger_actions_filter_events())
                        .include(TriggerActionFilterIncludeArgs.builder()
                            .baseRef(var_.trigger_actions_filter_include_base_ref())
                            .headRef(var_.trigger_actions_filter_include_head_ref())
                            .repositoryName(oci_devops_repository.test_repository().name())
                            .build())
                        .build())
                    .build())
                .projectId(oci_devops_project.test_project().id())
                .triggerSource(var_.trigger_trigger_source())
                .definedTags(Map.of("foo-namespace.bar-key", "value"))
                .description(var_.trigger_description())
                .displayName(var_.trigger_display_name())
                .freeformTags(Map.of("bar-key", "value"))
                .repositoryId(oci_artifacts_repository.test_repository().id())
                .build());
    
        }
    }
    
    resources:
      testTrigger:
        type: oci:DevOps:Trigger
        properties:
          #Required
          actions:
            - buildPipelineId: ${oci_devops_build_pipeline.test_build_pipeline.id}
              type: ${var.trigger_actions_type}
              filter:
                triggerSource: ${var.trigger_actions_filter_trigger_source}
                events: ${var.trigger_actions_filter_events}
                include:
                  baseRef: ${var.trigger_actions_filter_include_base_ref}
                  headRef: ${var.trigger_actions_filter_include_head_ref}
                  repositoryName: ${oci_devops_repository.test_repository.name}
          projectId: ${oci_devops_project.test_project.id}
          triggerSource: ${var.trigger_trigger_source}
          #Optional
          definedTags:
            foo-namespace.bar-key: value
          description: ${var.trigger_description}
          displayName: ${var.trigger_display_name}
          freeformTags:
            bar-key: value
          repositoryId: ${oci_artifacts_repository.test_repository.id}
    

    Create Trigger Resource

    new Trigger(name: string, args: TriggerArgs, opts?: CustomResourceOptions);
    @overload
    def Trigger(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                actions: Optional[Sequence[_devops.TriggerActionArgs]] = None,
                connection_id: Optional[str] = None,
                defined_tags: Optional[Mapping[str, Any]] = None,
                description: Optional[str] = None,
                display_name: Optional[str] = None,
                freeform_tags: Optional[Mapping[str, Any]] = None,
                project_id: Optional[str] = None,
                repository_id: Optional[str] = None,
                trigger_source: Optional[str] = None)
    @overload
    def Trigger(resource_name: str,
                args: TriggerArgs,
                opts: Optional[ResourceOptions] = None)
    func NewTrigger(ctx *Context, name string, args TriggerArgs, opts ...ResourceOption) (*Trigger, error)
    public Trigger(string name, TriggerArgs args, CustomResourceOptions? opts = null)
    public Trigger(String name, TriggerArgs args)
    public Trigger(String name, TriggerArgs args, CustomResourceOptions options)
    
    type: oci:DevOps:Trigger
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args TriggerArgs
    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 TriggerArgs
    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 TriggerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TriggerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TriggerArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Trigger 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 Trigger resource accepts the following input properties:

    Actions List<TriggerAction>
    (Updatable) The list of actions that are to be performed for this trigger.
    ProjectId string
    The OCID of the DevOps project to which the trigger belongs to.
    TriggerSource string

    (Updatable) Source of the trigger. Allowed values are, GITHUB, GITLAB, BITBUCKET_CLOUD, VBS and DEVOPS_CODE_REPOSITORY.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    ConnectionId string
    (Updatable) The OCID of the connection resource used to get details for triggered events.
    DefinedTags Dictionary<string, object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
    Description string
    (Updatable) Optional description about the trigger.
    DisplayName string
    (Updatable) Trigger display name. Avoid entering confidential information.
    FreeformTags Dictionary<string, object>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
    RepositoryId string
    (Updatable) The OCID of the DevOps code repository.
    Actions []TriggerActionArgs
    (Updatable) The list of actions that are to be performed for this trigger.
    ProjectId string
    The OCID of the DevOps project to which the trigger belongs to.
    TriggerSource string

    (Updatable) Source of the trigger. Allowed values are, GITHUB, GITLAB, BITBUCKET_CLOUD, VBS and DEVOPS_CODE_REPOSITORY.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    ConnectionId string
    (Updatable) The OCID of the connection resource used to get details for triggered events.
    DefinedTags map[string]interface{}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
    Description string
    (Updatable) Optional description about the trigger.
    DisplayName string
    (Updatable) Trigger display name. Avoid entering confidential information.
    FreeformTags map[string]interface{}
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
    RepositoryId string
    (Updatable) The OCID of the DevOps code repository.
    actions List<TriggerAction>
    (Updatable) The list of actions that are to be performed for this trigger.
    projectId String
    The OCID of the DevOps project to which the trigger belongs to.
    triggerSource String

    (Updatable) Source of the trigger. Allowed values are, GITHUB, GITLAB, BITBUCKET_CLOUD, VBS and DEVOPS_CODE_REPOSITORY.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    connectionId String
    (Updatable) The OCID of the connection resource used to get details for triggered events.
    definedTags Map<String,Object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
    description String
    (Updatable) Optional description about the trigger.
    displayName String
    (Updatable) Trigger display name. Avoid entering confidential information.
    freeformTags Map<String,Object>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
    repositoryId String
    (Updatable) The OCID of the DevOps code repository.
    actions TriggerAction[]
    (Updatable) The list of actions that are to be performed for this trigger.
    projectId string
    The OCID of the DevOps project to which the trigger belongs to.
    triggerSource string

    (Updatable) Source of the trigger. Allowed values are, GITHUB, GITLAB, BITBUCKET_CLOUD, VBS and DEVOPS_CODE_REPOSITORY.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    connectionId string
    (Updatable) The OCID of the connection resource used to get details for triggered events.
    definedTags {[key: string]: any}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
    description string
    (Updatable) Optional description about the trigger.
    displayName string
    (Updatable) Trigger display name. Avoid entering confidential information.
    freeformTags {[key: string]: any}
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
    repositoryId string
    (Updatable) The OCID of the DevOps code repository.
    actions TriggerActionArgs]
    (Updatable) The list of actions that are to be performed for this trigger.
    project_id str
    The OCID of the DevOps project to which the trigger belongs to.
    trigger_source str

    (Updatable) Source of the trigger. Allowed values are, GITHUB, GITLAB, BITBUCKET_CLOUD, VBS and DEVOPS_CODE_REPOSITORY.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    connection_id str
    (Updatable) The OCID of the connection resource used to get details for triggered events.
    defined_tags Mapping[str, Any]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
    description str
    (Updatable) Optional description about the trigger.
    display_name str
    (Updatable) Trigger display name. Avoid entering confidential information.
    freeform_tags Mapping[str, Any]
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
    repository_id str
    (Updatable) The OCID of the DevOps code repository.
    actions List<Property Map>
    (Updatable) The list of actions that are to be performed for this trigger.
    projectId String
    The OCID of the DevOps project to which the trigger belongs to.
    triggerSource String

    (Updatable) Source of the trigger. Allowed values are, GITHUB, GITLAB, BITBUCKET_CLOUD, VBS and DEVOPS_CODE_REPOSITORY.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    connectionId String
    (Updatable) The OCID of the connection resource used to get details for triggered events.
    definedTags Map<Any>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
    description String
    (Updatable) Optional description about the trigger.
    displayName String
    (Updatable) Trigger display name. Avoid entering confidential information.
    freeformTags Map<Any>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
    repositoryId String
    (Updatable) The OCID of the DevOps code repository.

    Outputs

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

    CompartmentId string
    The OCID of the compartment that contains the trigger.
    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    State string
    The current state of the trigger.
    SystemTags Dictionary<string, object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time the trigger was created. Format defined by RFC3339.
    TimeUpdated string
    The time the trigger was updated. Format defined by RFC3339.
    TriggerUrl string
    The endpoint that listens to trigger events.
    CompartmentId string
    The OCID of the compartment that contains the trigger.
    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    State string
    The current state of the trigger.
    SystemTags map[string]interface{}
    Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time the trigger was created. Format defined by RFC3339.
    TimeUpdated string
    The time the trigger was updated. Format defined by RFC3339.
    TriggerUrl string
    The endpoint that listens to trigger events.
    compartmentId String
    The OCID of the compartment that contains the trigger.
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails String
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    state String
    The current state of the trigger.
    systemTags Map<String,Object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time the trigger was created. Format defined by RFC3339.
    timeUpdated String
    The time the trigger was updated. Format defined by RFC3339.
    triggerUrl String
    The endpoint that listens to trigger events.
    compartmentId string
    The OCID of the compartment that contains the trigger.
    id string
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    state string
    The current state of the trigger.
    systemTags {[key: string]: any}
    Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The time the trigger was created. Format defined by RFC3339.
    timeUpdated string
    The time the trigger was updated. Format defined by RFC3339.
    triggerUrl string
    The endpoint that listens to trigger events.
    compartment_id str
    The OCID of the compartment that contains the trigger.
    id str
    The provider-assigned unique ID for this managed resource.
    lifecycle_details str
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    state str
    The current state of the trigger.
    system_tags Mapping[str, Any]
    Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The time the trigger was created. Format defined by RFC3339.
    time_updated str
    The time the trigger was updated. Format defined by RFC3339.
    trigger_url str
    The endpoint that listens to trigger events.
    compartmentId String
    The OCID of the compartment that contains the trigger.
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails String
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    state String
    The current state of the trigger.
    systemTags Map<Any>
    Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time the trigger was created. Format defined by RFC3339.
    timeUpdated String
    The time the trigger was updated. Format defined by RFC3339.
    triggerUrl String
    The endpoint that listens to trigger events.

    Look up Existing Trigger Resource

    Get an existing Trigger 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?: TriggerState, opts?: CustomResourceOptions): Trigger
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            actions: Optional[Sequence[_devops.TriggerActionArgs]] = None,
            compartment_id: Optional[str] = None,
            connection_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, Any]] = None,
            description: Optional[str] = None,
            display_name: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, Any]] = None,
            lifecycle_details: Optional[str] = None,
            project_id: Optional[str] = None,
            repository_id: Optional[str] = None,
            state: Optional[str] = None,
            system_tags: Optional[Mapping[str, Any]] = None,
            time_created: Optional[str] = None,
            time_updated: Optional[str] = None,
            trigger_source: Optional[str] = None,
            trigger_url: Optional[str] = None) -> Trigger
    func GetTrigger(ctx *Context, name string, id IDInput, state *TriggerState, opts ...ResourceOption) (*Trigger, error)
    public static Trigger Get(string name, Input<string> id, TriggerState? state, CustomResourceOptions? opts = null)
    public static Trigger get(String name, Output<String> id, TriggerState 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:
    Actions List<TriggerAction>
    (Updatable) The list of actions that are to be performed for this trigger.
    CompartmentId string
    The OCID of the compartment that contains the trigger.
    ConnectionId string
    (Updatable) The OCID of the connection resource used to get details for triggered events.
    DefinedTags Dictionary<string, object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
    Description string
    (Updatable) Optional description about the trigger.
    DisplayName string
    (Updatable) Trigger display name. Avoid entering confidential information.
    FreeformTags Dictionary<string, object>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
    LifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    ProjectId string
    The OCID of the DevOps project to which the trigger belongs to.
    RepositoryId string
    (Updatable) The OCID of the DevOps code repository.
    State string
    The current state of the trigger.
    SystemTags Dictionary<string, object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time the trigger was created. Format defined by RFC3339.
    TimeUpdated string
    The time the trigger was updated. Format defined by RFC3339.
    TriggerSource string

    (Updatable) Source of the trigger. Allowed values are, GITHUB, GITLAB, BITBUCKET_CLOUD, VBS and DEVOPS_CODE_REPOSITORY.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    TriggerUrl string
    The endpoint that listens to trigger events.
    Actions []TriggerActionArgs
    (Updatable) The list of actions that are to be performed for this trigger.
    CompartmentId string
    The OCID of the compartment that contains the trigger.
    ConnectionId string
    (Updatable) The OCID of the connection resource used to get details for triggered events.
    DefinedTags map[string]interface{}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
    Description string
    (Updatable) Optional description about the trigger.
    DisplayName string
    (Updatable) Trigger display name. Avoid entering confidential information.
    FreeformTags map[string]interface{}
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
    LifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    ProjectId string
    The OCID of the DevOps project to which the trigger belongs to.
    RepositoryId string
    (Updatable) The OCID of the DevOps code repository.
    State string
    The current state of the trigger.
    SystemTags map[string]interface{}
    Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time the trigger was created. Format defined by RFC3339.
    TimeUpdated string
    The time the trigger was updated. Format defined by RFC3339.
    TriggerSource string

    (Updatable) Source of the trigger. Allowed values are, GITHUB, GITLAB, BITBUCKET_CLOUD, VBS and DEVOPS_CODE_REPOSITORY.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    TriggerUrl string
    The endpoint that listens to trigger events.
    actions List<TriggerAction>
    (Updatable) The list of actions that are to be performed for this trigger.
    compartmentId String
    The OCID of the compartment that contains the trigger.
    connectionId String
    (Updatable) The OCID of the connection resource used to get details for triggered events.
    definedTags Map<String,Object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
    description String
    (Updatable) Optional description about the trigger.
    displayName String
    (Updatable) Trigger display name. Avoid entering confidential information.
    freeformTags Map<String,Object>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
    lifecycleDetails String
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    projectId String
    The OCID of the DevOps project to which the trigger belongs to.
    repositoryId String
    (Updatable) The OCID of the DevOps code repository.
    state String
    The current state of the trigger.
    systemTags Map<String,Object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time the trigger was created. Format defined by RFC3339.
    timeUpdated String
    The time the trigger was updated. Format defined by RFC3339.
    triggerSource String

    (Updatable) Source of the trigger. Allowed values are, GITHUB, GITLAB, BITBUCKET_CLOUD, VBS and DEVOPS_CODE_REPOSITORY.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    triggerUrl String
    The endpoint that listens to trigger events.
    actions TriggerAction[]
    (Updatable) The list of actions that are to be performed for this trigger.
    compartmentId string
    The OCID of the compartment that contains the trigger.
    connectionId string
    (Updatable) The OCID of the connection resource used to get details for triggered events.
    definedTags {[key: string]: any}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
    description string
    (Updatable) Optional description about the trigger.
    displayName string
    (Updatable) Trigger display name. Avoid entering confidential information.
    freeformTags {[key: string]: any}
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
    lifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    projectId string
    The OCID of the DevOps project to which the trigger belongs to.
    repositoryId string
    (Updatable) The OCID of the DevOps code repository.
    state string
    The current state of the trigger.
    systemTags {[key: string]: any}
    Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The time the trigger was created. Format defined by RFC3339.
    timeUpdated string
    The time the trigger was updated. Format defined by RFC3339.
    triggerSource string

    (Updatable) Source of the trigger. Allowed values are, GITHUB, GITLAB, BITBUCKET_CLOUD, VBS and DEVOPS_CODE_REPOSITORY.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    triggerUrl string
    The endpoint that listens to trigger events.
    actions TriggerActionArgs]
    (Updatable) The list of actions that are to be performed for this trigger.
    compartment_id str
    The OCID of the compartment that contains the trigger.
    connection_id str
    (Updatable) The OCID of the connection resource used to get details for triggered events.
    defined_tags Mapping[str, Any]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
    description str
    (Updatable) Optional description about the trigger.
    display_name str
    (Updatable) Trigger display name. Avoid entering confidential information.
    freeform_tags Mapping[str, Any]
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
    lifecycle_details str
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    project_id str
    The OCID of the DevOps project to which the trigger belongs to.
    repository_id str
    (Updatable) The OCID of the DevOps code repository.
    state str
    The current state of the trigger.
    system_tags Mapping[str, Any]
    Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The time the trigger was created. Format defined by RFC3339.
    time_updated str
    The time the trigger was updated. Format defined by RFC3339.
    trigger_source str

    (Updatable) Source of the trigger. Allowed values are, GITHUB, GITLAB, BITBUCKET_CLOUD, VBS and DEVOPS_CODE_REPOSITORY.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    trigger_url str
    The endpoint that listens to trigger events.
    actions List<Property Map>
    (Updatable) The list of actions that are to be performed for this trigger.
    compartmentId String
    The OCID of the compartment that contains the trigger.
    connectionId String
    (Updatable) The OCID of the connection resource used to get details for triggered events.
    definedTags Map<Any>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
    description String
    (Updatable) Optional description about the trigger.
    displayName String
    (Updatable) Trigger display name. Avoid entering confidential information.
    freeformTags Map<Any>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
    lifecycleDetails String
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    projectId String
    The OCID of the DevOps project to which the trigger belongs to.
    repositoryId String
    (Updatable) The OCID of the DevOps code repository.
    state String
    The current state of the trigger.
    systemTags Map<Any>
    Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time the trigger was created. Format defined by RFC3339.
    timeUpdated String
    The time the trigger was updated. Format defined by RFC3339.
    triggerSource String

    (Updatable) Source of the trigger. Allowed values are, GITHUB, GITLAB, BITBUCKET_CLOUD, VBS and DEVOPS_CODE_REPOSITORY.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    triggerUrl String
    The endpoint that listens to trigger events.

    Supporting Types

    TriggerAction, TriggerActionArgs

    BuildPipelineId string
    (Updatable) The OCID of the build pipeline to be triggered.
    Type string
    (Updatable) The type of action that will be taken. Allowed value is TRIGGER_BUILD_PIPELINE.
    Filter TriggerActionFilter
    (Updatable) The filters for the trigger.
    BuildPipelineId string
    (Updatable) The OCID of the build pipeline to be triggered.
    Type string
    (Updatable) The type of action that will be taken. Allowed value is TRIGGER_BUILD_PIPELINE.
    Filter TriggerActionFilter
    (Updatable) The filters for the trigger.
    buildPipelineId String
    (Updatable) The OCID of the build pipeline to be triggered.
    type String
    (Updatable) The type of action that will be taken. Allowed value is TRIGGER_BUILD_PIPELINE.
    filter TriggerActionFilter
    (Updatable) The filters for the trigger.
    buildPipelineId string
    (Updatable) The OCID of the build pipeline to be triggered.
    type string
    (Updatable) The type of action that will be taken. Allowed value is TRIGGER_BUILD_PIPELINE.
    filter TriggerActionFilter
    (Updatable) The filters for the trigger.
    build_pipeline_id str
    (Updatable) The OCID of the build pipeline to be triggered.
    type str
    (Updatable) The type of action that will be taken. Allowed value is TRIGGER_BUILD_PIPELINE.
    filter TriggerActionFilter
    (Updatable) The filters for the trigger.
    buildPipelineId String
    (Updatable) The OCID of the build pipeline to be triggered.
    type String
    (Updatable) The type of action that will be taken. Allowed value is TRIGGER_BUILD_PIPELINE.
    filter Property Map
    (Updatable) The filters for the trigger.

    TriggerActionFilter, TriggerActionFilterArgs

    TriggerSource string

    (Updatable) Source of the trigger. Allowed values are, GITHUB, GITLAB, BITBUCKET_CLOUD, VBS and DEVOPS_CODE_REPOSITORY.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Events List<string>
    (Updatable) The events, for example, PUSH, PULL_REQUEST_MERGE.
    Exclude TriggerActionFilterExclude
    (Updatable) Attributes to filter GitLab self-hosted server events. File filter criteria - Changes only affecting excluded files will not invoke a build. if both include and exclude filter are used then exclusion filter will be applied on the result set of inclusion filter.
    Include TriggerActionFilterInclude
    (Updatable) Attributes to filter GitLab self-hosted server events.
    TriggerSource string

    (Updatable) Source of the trigger. Allowed values are, GITHUB, GITLAB, BITBUCKET_CLOUD, VBS and DEVOPS_CODE_REPOSITORY.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Events []string
    (Updatable) The events, for example, PUSH, PULL_REQUEST_MERGE.
    Exclude TriggerActionFilterExclude
    (Updatable) Attributes to filter GitLab self-hosted server events. File filter criteria - Changes only affecting excluded files will not invoke a build. if both include and exclude filter are used then exclusion filter will be applied on the result set of inclusion filter.
    Include TriggerActionFilterInclude
    (Updatable) Attributes to filter GitLab self-hosted server events.
    triggerSource String

    (Updatable) Source of the trigger. Allowed values are, GITHUB, GITLAB, BITBUCKET_CLOUD, VBS and DEVOPS_CODE_REPOSITORY.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    events List<String>
    (Updatable) The events, for example, PUSH, PULL_REQUEST_MERGE.
    exclude TriggerActionFilterExclude
    (Updatable) Attributes to filter GitLab self-hosted server events. File filter criteria - Changes only affecting excluded files will not invoke a build. if both include and exclude filter are used then exclusion filter will be applied on the result set of inclusion filter.
    include TriggerActionFilterInclude
    (Updatable) Attributes to filter GitLab self-hosted server events.
    triggerSource string

    (Updatable) Source of the trigger. Allowed values are, GITHUB, GITLAB, BITBUCKET_CLOUD, VBS and DEVOPS_CODE_REPOSITORY.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    events string[]
    (Updatable) The events, for example, PUSH, PULL_REQUEST_MERGE.
    exclude TriggerActionFilterExclude
    (Updatable) Attributes to filter GitLab self-hosted server events. File filter criteria - Changes only affecting excluded files will not invoke a build. if both include and exclude filter are used then exclusion filter will be applied on the result set of inclusion filter.
    include TriggerActionFilterInclude
    (Updatable) Attributes to filter GitLab self-hosted server events.
    trigger_source str

    (Updatable) Source of the trigger. Allowed values are, GITHUB, GITLAB, BITBUCKET_CLOUD, VBS and DEVOPS_CODE_REPOSITORY.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    events Sequence[str]
    (Updatable) The events, for example, PUSH, PULL_REQUEST_MERGE.
    exclude TriggerActionFilterExclude
    (Updatable) Attributes to filter GitLab self-hosted server events. File filter criteria - Changes only affecting excluded files will not invoke a build. if both include and exclude filter are used then exclusion filter will be applied on the result set of inclusion filter.
    include TriggerActionFilterInclude
    (Updatable) Attributes to filter GitLab self-hosted server events.
    triggerSource String

    (Updatable) Source of the trigger. Allowed values are, GITHUB, GITLAB, BITBUCKET_CLOUD, VBS and DEVOPS_CODE_REPOSITORY.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    events List<String>
    (Updatable) The events, for example, PUSH, PULL_REQUEST_MERGE.
    exclude Property Map
    (Updatable) Attributes to filter GitLab self-hosted server events. File filter criteria - Changes only affecting excluded files will not invoke a build. if both include and exclude filter are used then exclusion filter will be applied on the result set of inclusion filter.
    include Property Map
    (Updatable) Attributes to filter GitLab self-hosted server events.

    TriggerActionFilterExclude, TriggerActionFilterExcludeArgs

    FileFilter TriggerActionFilterExcludeFileFilter
    (Updatable) Attributes to support include/exclude files for triggering build runs.
    FileFilter TriggerActionFilterExcludeFileFilter
    (Updatable) Attributes to support include/exclude files for triggering build runs.
    fileFilter TriggerActionFilterExcludeFileFilter
    (Updatable) Attributes to support include/exclude files for triggering build runs.
    fileFilter TriggerActionFilterExcludeFileFilter
    (Updatable) Attributes to support include/exclude files for triggering build runs.
    file_filter TriggerActionFilterExcludeFileFilter
    (Updatable) Attributes to support include/exclude files for triggering build runs.
    fileFilter Property Map
    (Updatable) Attributes to support include/exclude files for triggering build runs.

    TriggerActionFilterExcludeFileFilter, TriggerActionFilterExcludeFileFilterArgs

    FilePaths List<string>
    (Updatable) The file paths/glob pattern for files.
    FilePaths []string
    (Updatable) The file paths/glob pattern for files.
    filePaths List<String>
    (Updatable) The file paths/glob pattern for files.
    filePaths string[]
    (Updatable) The file paths/glob pattern for files.
    file_paths Sequence[str]
    (Updatable) The file paths/glob pattern for files.
    filePaths List<String>
    (Updatable) The file paths/glob pattern for files.

    TriggerActionFilterInclude, TriggerActionFilterIncludeArgs

    BaseRef string
    (Updatable) The target branch for pull requests; not applicable for push requests.
    FileFilter TriggerActionFilterIncludeFileFilter
    (Updatable) Attributes to support include/exclude files for triggering build runs.
    HeadRef string
    (Updatable) Branch for push event; source branch for pull requests.
    RepositoryName string
    (Updatable) The repository name for trigger events.
    BaseRef string
    (Updatable) The target branch for pull requests; not applicable for push requests.
    FileFilter TriggerActionFilterIncludeFileFilter
    (Updatable) Attributes to support include/exclude files for triggering build runs.
    HeadRef string
    (Updatable) Branch for push event; source branch for pull requests.
    RepositoryName string
    (Updatable) The repository name for trigger events.
    baseRef String
    (Updatable) The target branch for pull requests; not applicable for push requests.
    fileFilter TriggerActionFilterIncludeFileFilter
    (Updatable) Attributes to support include/exclude files for triggering build runs.
    headRef String
    (Updatable) Branch for push event; source branch for pull requests.
    repositoryName String
    (Updatable) The repository name for trigger events.
    baseRef string
    (Updatable) The target branch for pull requests; not applicable for push requests.
    fileFilter TriggerActionFilterIncludeFileFilter
    (Updatable) Attributes to support include/exclude files for triggering build runs.
    headRef string
    (Updatable) Branch for push event; source branch for pull requests.
    repositoryName string
    (Updatable) The repository name for trigger events.
    base_ref str
    (Updatable) The target branch for pull requests; not applicable for push requests.
    file_filter TriggerActionFilterIncludeFileFilter
    (Updatable) Attributes to support include/exclude files for triggering build runs.
    head_ref str
    (Updatable) Branch for push event; source branch for pull requests.
    repository_name str
    (Updatable) The repository name for trigger events.
    baseRef String
    (Updatable) The target branch for pull requests; not applicable for push requests.
    fileFilter Property Map
    (Updatable) Attributes to support include/exclude files for triggering build runs.
    headRef String
    (Updatable) Branch for push event; source branch for pull requests.
    repositoryName String
    (Updatable) The repository name for trigger events.

    TriggerActionFilterIncludeFileFilter, TriggerActionFilterIncludeFileFilterArgs

    FilePaths List<string>
    (Updatable) The file paths/glob pattern for files.
    FilePaths []string
    (Updatable) The file paths/glob pattern for files.
    filePaths List<String>
    (Updatable) The file paths/glob pattern for files.
    filePaths string[]
    (Updatable) The file paths/glob pattern for files.
    file_paths Sequence[str]
    (Updatable) The file paths/glob pattern for files.
    filePaths List<String>
    (Updatable) The file paths/glob pattern for files.

    Import

    Triggers can be imported using the id, e.g.

    $ pulumi import oci:DevOps/trigger:Trigger test_trigger "id"
    

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi