import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Trigger resource in Oracle Cloud Infrastructure Devops service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/devops/latest/Trigger * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/devops * * Creates a new trigger. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testTrigger = new oci.devops.Trigger("test_trigger", { * actions: [{ * buildPipelineId: testBuildPipeline.id, * type: triggerActionsType, * filter: { * triggerSource: triggerActionsFilterTriggerSource, * events: triggerActionsFilterEvents, * include: { * baseRef: triggerActionsFilterIncludeBaseRef, * headRef: triggerActionsFilterIncludeHeadRef, * repositoryName: testRepository.name, * }, * }, * }], * projectId: testProject.id, * triggerSource: triggerTriggerSource, * definedTags: { * "foo-namespace.bar-key": "value", * }, * description: triggerDescription, * displayName: triggerDisplayName, * freeformTags: { * "bar-key": "value", * }, * repositoryId: testRepositoryOciArtifactsRepository.id, * }); * ``` * * ## Import * * Triggers can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:DevOps/trigger:Trigger test_trigger "id" * ``` */ export declare class Trigger extends pulumi.CustomResource { /** * Get an existing Trigger resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: TriggerState, opts?: pulumi.CustomResourceOptions): Trigger; /** * Returns true if the given object is an instance of Trigger. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Trigger; /** * (Updatable) The list of actions that are to be performed for this trigger. */ readonly actions: pulumi.Output; /** * The OCID of the compartment that contains the trigger. */ readonly compartmentId: pulumi.Output; /** * (Updatable) The OCID of the connection resource used to get details for triggered events. */ readonly connectionId: pulumi.Output; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"foo-namespace.bar-key": "value"}` */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) Optional description about the trigger. */ readonly description: pulumi.Output; /** * (Updatable) Trigger display name. Avoid entering confidential information. */ readonly displayName: pulumi.Output; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"bar-key": "value"}` */ readonly freeformTags: pulumi.Output<{ [key: string]: 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. */ readonly lifecycleDetails: pulumi.Output; /** * The OCID of the DevOps project to which the trigger belongs to. */ readonly projectId: pulumi.Output; /** * (Updatable) The OCID of the DevOps code repository. */ readonly repositoryId: pulumi.Output; /** * The current state of the trigger. */ readonly state: pulumi.Output; /** * Usage of system tag keys. These predefined keys are scoped to namespaces. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"orcl-cloud.free-tier-retained": "true"}` */ readonly systemTags: pulumi.Output<{ [key: string]: string; }>; /** * The time the trigger was created. Format defined by [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339). */ readonly timeCreated: pulumi.Output; /** * The time the trigger was updated. Format defined by [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339). */ readonly timeUpdated: pulumi.Output; /** * (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 */ readonly triggerSource: pulumi.Output; /** * The endpoint that listens to trigger events. */ readonly triggerUrl: pulumi.Output; /** * Create a Trigger resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: TriggerArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Trigger resources. */ export interface TriggerState { /** * (Updatable) The list of actions that are to be performed for this trigger. */ actions?: pulumi.Input[] | undefined>; /** * The OCID of the compartment that contains the trigger. */ compartmentId?: pulumi.Input; /** * (Updatable) The OCID of the connection resource used to get details for triggered events. */ connectionId?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"foo-namespace.bar-key": "value"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Optional description about the trigger. */ description?: pulumi.Input; /** * (Updatable) Trigger display name. Avoid entering confidential information. */ displayName?: pulumi.Input; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"bar-key": "value"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. */ lifecycleDetails?: pulumi.Input; /** * The OCID of the DevOps project to which the trigger belongs to. */ projectId?: pulumi.Input; /** * (Updatable) The OCID of the DevOps code repository. */ repositoryId?: pulumi.Input; /** * The current state of the trigger. */ state?: pulumi.Input; /** * Usage of system tag keys. These predefined keys are scoped to namespaces. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"orcl-cloud.free-tier-retained": "true"}` */ systemTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The time the trigger was created. Format defined by [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339). */ timeCreated?: pulumi.Input; /** * The time the trigger was updated. Format defined by [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339). */ timeUpdated?: pulumi.Input; /** * (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 */ triggerSource?: pulumi.Input; /** * The endpoint that listens to trigger events. */ triggerUrl?: pulumi.Input; } /** * The set of arguments for constructing a Trigger resource. */ export interface TriggerArgs { /** * (Updatable) The list of actions that are to be performed for this trigger. */ actions: pulumi.Input[]>; /** * (Updatable) The OCID of the connection resource used to get details for triggered events. */ connectionId?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"foo-namespace.bar-key": "value"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Optional description about the trigger. */ description?: pulumi.Input; /** * (Updatable) Trigger display name. Avoid entering confidential information. */ displayName?: pulumi.Input; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"bar-key": "value"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The OCID of the DevOps project to which the trigger belongs to. */ projectId: pulumi.Input; /** * (Updatable) The OCID of the DevOps code repository. */ repositoryId?: pulumi.Input; /** * (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 */ triggerSource: pulumi.Input; } //# sourceMappingURL=trigger.d.ts.map