1. Packages
  2. Octopusdeploy Provider
  3. API Docs
  4. ProjectScheduledTrigger
octopusdeploy 0.43.0 published on Thursday, Apr 17, 2025 by octopusdeploylabs

octopusdeploy.ProjectScheduledTrigger

Explore with Pulumi AI

octopusdeploy logo
octopusdeploy 0.43.0 published on Thursday, Apr 17, 2025 by octopusdeploylabs

    This resource manages a scheduled trigger for a project or runbook in Octopus Deploy.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as octopusdeploy from "@pulumi/octopusdeploy";
    
    const onceDailyExample = new octopusdeploy.ProjectScheduledTrigger("onceDailyExample", {
        deployNewReleaseAction: {
            destinationEnvironmentId: "environments-123",
        },
        description: "This is a once daily schedule",
        onceDailySchedule: {
            daysOfWeeks: [
                "Tuesday",
                "Wednesday",
                "Monday",
            ],
            startTime: "2024-03-22T09:00:00",
        },
        projectId: "projects-123",
        spaceId: "spaces-123",
    });
    const continuousExample = new octopusdeploy.ProjectScheduledTrigger("continuousExample", {
        continuousDailySchedule: {
            daysOfWeeks: [
                "Monday",
                "Tuesday",
                "Friday",
            ],
            hourInterval: 3,
            interval: "OnceHourly",
            runAfter: "2024-03-22T09:00:00",
            runUntil: "2024-03-29T13:00:00",
        },
        deployNewReleaseAction: {
            destinationEnvironmentId: "environments-123",
        },
        description: "This is a continuous daily schedule",
        projectId: "projects-123",
        spaceId: "spaces-123",
    });
    const deployLatestExample = new octopusdeploy.ProjectScheduledTrigger("deployLatestExample", {
        cronExpressionSchedule: {
            cronExpression: "0 0 06 * * Mon-Fri",
        },
        deployLatestReleaseAction: {
            destinationEnvironmentId: "environments-123",
            shouldRedeploy: true,
            sourceEnvironmentId: "environments-321",
        },
        projectId: "projects-123",
        spaceId: "spaces-123",
    });
    const deployNewExample = new octopusdeploy.ProjectScheduledTrigger("deployNewExample", {
        cronExpressionSchedule: {
            cronExpression: "0 0 06 * * Mon-Fri",
        },
        deployNewReleaseAction: {
            destinationEnvironmentId: "environments-123",
        },
        projectId: "projects-123",
        spaceId: "spaces-123",
    });
    const runbookExample = new octopusdeploy.ProjectScheduledTrigger("runbookExample", {
        cronExpressionSchedule: {
            cronExpression: "0 0 06 * * Mon-Fri",
        },
        description: "This is a Cron schedule",
        projectId: "projects-123",
        runRunbookAction: {
            runbookId: "runbooks-123",
            targetEnvironmentIds: [
                "environments-123",
                "environments-321",
            ],
        },
        spaceId: "spaces-123",
    });
    
    import pulumi
    import pulumi_octopusdeploy as octopusdeploy
    
    once_daily_example = octopusdeploy.ProjectScheduledTrigger("onceDailyExample",
        deploy_new_release_action={
            "destination_environment_id": "environments-123",
        },
        description="This is a once daily schedule",
        once_daily_schedule={
            "days_of_weeks": [
                "Tuesday",
                "Wednesday",
                "Monday",
            ],
            "start_time": "2024-03-22T09:00:00",
        },
        project_id="projects-123",
        space_id="spaces-123")
    continuous_example = octopusdeploy.ProjectScheduledTrigger("continuousExample",
        continuous_daily_schedule={
            "days_of_weeks": [
                "Monday",
                "Tuesday",
                "Friday",
            ],
            "hour_interval": 3,
            "interval": "OnceHourly",
            "run_after": "2024-03-22T09:00:00",
            "run_until": "2024-03-29T13:00:00",
        },
        deploy_new_release_action={
            "destination_environment_id": "environments-123",
        },
        description="This is a continuous daily schedule",
        project_id="projects-123",
        space_id="spaces-123")
    deploy_latest_example = octopusdeploy.ProjectScheduledTrigger("deployLatestExample",
        cron_expression_schedule={
            "cron_expression": "0 0 06 * * Mon-Fri",
        },
        deploy_latest_release_action={
            "destination_environment_id": "environments-123",
            "should_redeploy": True,
            "source_environment_id": "environments-321",
        },
        project_id="projects-123",
        space_id="spaces-123")
    deploy_new_example = octopusdeploy.ProjectScheduledTrigger("deployNewExample",
        cron_expression_schedule={
            "cron_expression": "0 0 06 * * Mon-Fri",
        },
        deploy_new_release_action={
            "destination_environment_id": "environments-123",
        },
        project_id="projects-123",
        space_id="spaces-123")
    runbook_example = octopusdeploy.ProjectScheduledTrigger("runbookExample",
        cron_expression_schedule={
            "cron_expression": "0 0 06 * * Mon-Fri",
        },
        description="This is a Cron schedule",
        project_id="projects-123",
        run_runbook_action={
            "runbook_id": "runbooks-123",
            "target_environment_ids": [
                "environments-123",
                "environments-321",
            ],
        },
        space_id="spaces-123")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/octopusdeploy/octopusdeploy"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := octopusdeploy.NewProjectScheduledTrigger(ctx, "onceDailyExample", &octopusdeploy.ProjectScheduledTriggerArgs{
    			DeployNewReleaseAction: &octopusdeploy.ProjectScheduledTriggerDeployNewReleaseActionArgs{
    				DestinationEnvironmentId: pulumi.String("environments-123"),
    			},
    			Description: pulumi.String("This is a once daily schedule"),
    			OnceDailySchedule: &octopusdeploy.ProjectScheduledTriggerOnceDailyScheduleArgs{
    				DaysOfWeeks: pulumi.StringArray{
    					pulumi.String("Tuesday"),
    					pulumi.String("Wednesday"),
    					pulumi.String("Monday"),
    				},
    				StartTime: pulumi.String("2024-03-22T09:00:00"),
    			},
    			ProjectId: pulumi.String("projects-123"),
    			SpaceId:   pulumi.String("spaces-123"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = octopusdeploy.NewProjectScheduledTrigger(ctx, "continuousExample", &octopusdeploy.ProjectScheduledTriggerArgs{
    			ContinuousDailySchedule: &octopusdeploy.ProjectScheduledTriggerContinuousDailyScheduleArgs{
    				DaysOfWeeks: pulumi.StringArray{
    					pulumi.String("Monday"),
    					pulumi.String("Tuesday"),
    					pulumi.String("Friday"),
    				},
    				HourInterval: pulumi.Float64(3),
    				Interval:     pulumi.String("OnceHourly"),
    				RunAfter:     pulumi.String("2024-03-22T09:00:00"),
    				RunUntil:     pulumi.String("2024-03-29T13:00:00"),
    			},
    			DeployNewReleaseAction: &octopusdeploy.ProjectScheduledTriggerDeployNewReleaseActionArgs{
    				DestinationEnvironmentId: pulumi.String("environments-123"),
    			},
    			Description: pulumi.String("This is a continuous daily schedule"),
    			ProjectId:   pulumi.String("projects-123"),
    			SpaceId:     pulumi.String("spaces-123"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = octopusdeploy.NewProjectScheduledTrigger(ctx, "deployLatestExample", &octopusdeploy.ProjectScheduledTriggerArgs{
    			CronExpressionSchedule: &octopusdeploy.ProjectScheduledTriggerCronExpressionScheduleArgs{
    				CronExpression: pulumi.String("0 0 06 * * Mon-Fri"),
    			},
    			DeployLatestReleaseAction: &octopusdeploy.ProjectScheduledTriggerDeployLatestReleaseActionArgs{
    				DestinationEnvironmentId: pulumi.String("environments-123"),
    				ShouldRedeploy:           pulumi.Bool(true),
    				SourceEnvironmentId:      pulumi.String("environments-321"),
    			},
    			ProjectId: pulumi.String("projects-123"),
    			SpaceId:   pulumi.String("spaces-123"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = octopusdeploy.NewProjectScheduledTrigger(ctx, "deployNewExample", &octopusdeploy.ProjectScheduledTriggerArgs{
    			CronExpressionSchedule: &octopusdeploy.ProjectScheduledTriggerCronExpressionScheduleArgs{
    				CronExpression: pulumi.String("0 0 06 * * Mon-Fri"),
    			},
    			DeployNewReleaseAction: &octopusdeploy.ProjectScheduledTriggerDeployNewReleaseActionArgs{
    				DestinationEnvironmentId: pulumi.String("environments-123"),
    			},
    			ProjectId: pulumi.String("projects-123"),
    			SpaceId:   pulumi.String("spaces-123"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = octopusdeploy.NewProjectScheduledTrigger(ctx, "runbookExample", &octopusdeploy.ProjectScheduledTriggerArgs{
    			CronExpressionSchedule: &octopusdeploy.ProjectScheduledTriggerCronExpressionScheduleArgs{
    				CronExpression: pulumi.String("0 0 06 * * Mon-Fri"),
    			},
    			Description: pulumi.String("This is a Cron schedule"),
    			ProjectId:   pulumi.String("projects-123"),
    			RunRunbookAction: &octopusdeploy.ProjectScheduledTriggerRunRunbookActionArgs{
    				RunbookId: pulumi.String("runbooks-123"),
    				TargetEnvironmentIds: pulumi.StringArray{
    					pulumi.String("environments-123"),
    					pulumi.String("environments-321"),
    				},
    			},
    			SpaceId: pulumi.String("spaces-123"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Octopusdeploy = Pulumi.Octopusdeploy;
    
    return await Deployment.RunAsync(() => 
    {
        var onceDailyExample = new Octopusdeploy.ProjectScheduledTrigger("onceDailyExample", new()
        {
            DeployNewReleaseAction = new Octopusdeploy.Inputs.ProjectScheduledTriggerDeployNewReleaseActionArgs
            {
                DestinationEnvironmentId = "environments-123",
            },
            Description = "This is a once daily schedule",
            OnceDailySchedule = new Octopusdeploy.Inputs.ProjectScheduledTriggerOnceDailyScheduleArgs
            {
                DaysOfWeeks = new[]
                {
                    "Tuesday",
                    "Wednesday",
                    "Monday",
                },
                StartTime = "2024-03-22T09:00:00",
            },
            ProjectId = "projects-123",
            SpaceId = "spaces-123",
        });
    
        var continuousExample = new Octopusdeploy.ProjectScheduledTrigger("continuousExample", new()
        {
            ContinuousDailySchedule = new Octopusdeploy.Inputs.ProjectScheduledTriggerContinuousDailyScheduleArgs
            {
                DaysOfWeeks = new[]
                {
                    "Monday",
                    "Tuesday",
                    "Friday",
                },
                HourInterval = 3,
                Interval = "OnceHourly",
                RunAfter = "2024-03-22T09:00:00",
                RunUntil = "2024-03-29T13:00:00",
            },
            DeployNewReleaseAction = new Octopusdeploy.Inputs.ProjectScheduledTriggerDeployNewReleaseActionArgs
            {
                DestinationEnvironmentId = "environments-123",
            },
            Description = "This is a continuous daily schedule",
            ProjectId = "projects-123",
            SpaceId = "spaces-123",
        });
    
        var deployLatestExample = new Octopusdeploy.ProjectScheduledTrigger("deployLatestExample", new()
        {
            CronExpressionSchedule = new Octopusdeploy.Inputs.ProjectScheduledTriggerCronExpressionScheduleArgs
            {
                CronExpression = "0 0 06 * * Mon-Fri",
            },
            DeployLatestReleaseAction = new Octopusdeploy.Inputs.ProjectScheduledTriggerDeployLatestReleaseActionArgs
            {
                DestinationEnvironmentId = "environments-123",
                ShouldRedeploy = true,
                SourceEnvironmentId = "environments-321",
            },
            ProjectId = "projects-123",
            SpaceId = "spaces-123",
        });
    
        var deployNewExample = new Octopusdeploy.ProjectScheduledTrigger("deployNewExample", new()
        {
            CronExpressionSchedule = new Octopusdeploy.Inputs.ProjectScheduledTriggerCronExpressionScheduleArgs
            {
                CronExpression = "0 0 06 * * Mon-Fri",
            },
            DeployNewReleaseAction = new Octopusdeploy.Inputs.ProjectScheduledTriggerDeployNewReleaseActionArgs
            {
                DestinationEnvironmentId = "environments-123",
            },
            ProjectId = "projects-123",
            SpaceId = "spaces-123",
        });
    
        var runbookExample = new Octopusdeploy.ProjectScheduledTrigger("runbookExample", new()
        {
            CronExpressionSchedule = new Octopusdeploy.Inputs.ProjectScheduledTriggerCronExpressionScheduleArgs
            {
                CronExpression = "0 0 06 * * Mon-Fri",
            },
            Description = "This is a Cron schedule",
            ProjectId = "projects-123",
            RunRunbookAction = new Octopusdeploy.Inputs.ProjectScheduledTriggerRunRunbookActionArgs
            {
                RunbookId = "runbooks-123",
                TargetEnvironmentIds = new[]
                {
                    "environments-123",
                    "environments-321",
                },
            },
            SpaceId = "spaces-123",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.octopusdeploy.ProjectScheduledTrigger;
    import com.pulumi.octopusdeploy.ProjectScheduledTriggerArgs;
    import com.pulumi.octopusdeploy.inputs.ProjectScheduledTriggerDeployNewReleaseActionArgs;
    import com.pulumi.octopusdeploy.inputs.ProjectScheduledTriggerOnceDailyScheduleArgs;
    import com.pulumi.octopusdeploy.inputs.ProjectScheduledTriggerContinuousDailyScheduleArgs;
    import com.pulumi.octopusdeploy.inputs.ProjectScheduledTriggerCronExpressionScheduleArgs;
    import com.pulumi.octopusdeploy.inputs.ProjectScheduledTriggerDeployLatestReleaseActionArgs;
    import com.pulumi.octopusdeploy.inputs.ProjectScheduledTriggerRunRunbookActionArgs;
    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 onceDailyExample = new ProjectScheduledTrigger("onceDailyExample", ProjectScheduledTriggerArgs.builder()
                .deployNewReleaseAction(ProjectScheduledTriggerDeployNewReleaseActionArgs.builder()
                    .destinationEnvironmentId("environments-123")
                    .build())
                .description("This is a once daily schedule")
                .onceDailySchedule(ProjectScheduledTriggerOnceDailyScheduleArgs.builder()
                    .daysOfWeeks(                
                        "Tuesday",
                        "Wednesday",
                        "Monday")
                    .startTime("2024-03-22T09:00:00")
                    .build())
                .projectId("projects-123")
                .spaceId("spaces-123")
                .build());
    
            var continuousExample = new ProjectScheduledTrigger("continuousExample", ProjectScheduledTriggerArgs.builder()
                .continuousDailySchedule(ProjectScheduledTriggerContinuousDailyScheduleArgs.builder()
                    .daysOfWeeks(                
                        "Monday",
                        "Tuesday",
                        "Friday")
                    .hourInterval(3)
                    .interval("OnceHourly")
                    .runAfter("2024-03-22T09:00:00")
                    .runUntil("2024-03-29T13:00:00")
                    .build())
                .deployNewReleaseAction(ProjectScheduledTriggerDeployNewReleaseActionArgs.builder()
                    .destinationEnvironmentId("environments-123")
                    .build())
                .description("This is a continuous daily schedule")
                .projectId("projects-123")
                .spaceId("spaces-123")
                .build());
    
            var deployLatestExample = new ProjectScheduledTrigger("deployLatestExample", ProjectScheduledTriggerArgs.builder()
                .cronExpressionSchedule(ProjectScheduledTriggerCronExpressionScheduleArgs.builder()
                    .cronExpression("0 0 06 * * Mon-Fri")
                    .build())
                .deployLatestReleaseAction(ProjectScheduledTriggerDeployLatestReleaseActionArgs.builder()
                    .destinationEnvironmentId("environments-123")
                    .shouldRedeploy(true)
                    .sourceEnvironmentId("environments-321")
                    .build())
                .projectId("projects-123")
                .spaceId("spaces-123")
                .build());
    
            var deployNewExample = new ProjectScheduledTrigger("deployNewExample", ProjectScheduledTriggerArgs.builder()
                .cronExpressionSchedule(ProjectScheduledTriggerCronExpressionScheduleArgs.builder()
                    .cronExpression("0 0 06 * * Mon-Fri")
                    .build())
                .deployNewReleaseAction(ProjectScheduledTriggerDeployNewReleaseActionArgs.builder()
                    .destinationEnvironmentId("environments-123")
                    .build())
                .projectId("projects-123")
                .spaceId("spaces-123")
                .build());
    
            var runbookExample = new ProjectScheduledTrigger("runbookExample", ProjectScheduledTriggerArgs.builder()
                .cronExpressionSchedule(ProjectScheduledTriggerCronExpressionScheduleArgs.builder()
                    .cronExpression("0 0 06 * * Mon-Fri")
                    .build())
                .description("This is a Cron schedule")
                .projectId("projects-123")
                .runRunbookAction(ProjectScheduledTriggerRunRunbookActionArgs.builder()
                    .runbookId("runbooks-123")
                    .targetEnvironmentIds(                
                        "environments-123",
                        "environments-321")
                    .build())
                .spaceId("spaces-123")
                .build());
    
        }
    }
    
    resources:
      onceDailyExample:
        type: octopusdeploy:ProjectScheduledTrigger
        properties:
          deployNewReleaseAction:
            destinationEnvironmentId: environments-123
          description: This is a once daily schedule
          onceDailySchedule:
            daysOfWeeks:
              - Tuesday
              - Wednesday
              - Monday
            startTime: 2024-03-22T09:00:00
          projectId: projects-123
          spaceId: spaces-123
      continuousExample:
        type: octopusdeploy:ProjectScheduledTrigger
        properties:
          continuousDailySchedule:
            daysOfWeeks:
              - Monday
              - Tuesday
              - Friday
            hourInterval: 3
            interval: OnceHourly
            runAfter: 2024-03-22T09:00:00
            runUntil: 2024-03-29T13:00:00
          deployNewReleaseAction:
            destinationEnvironmentId: environments-123
          description: This is a continuous daily schedule
          projectId: projects-123
          spaceId: spaces-123
      deployLatestExample:
        type: octopusdeploy:ProjectScheduledTrigger
        properties:
          cronExpressionSchedule:
            cronExpression: 0 0 06 * * Mon-Fri
          deployLatestReleaseAction:
            destinationEnvironmentId: environments-123
            shouldRedeploy: true
            sourceEnvironmentId: environments-321
          projectId: projects-123
          spaceId: spaces-123
      deployNewExample:
        type: octopusdeploy:ProjectScheduledTrigger
        properties:
          cronExpressionSchedule:
            cronExpression: 0 0 06 * * Mon-Fri
          deployNewReleaseAction:
            destinationEnvironmentId: environments-123
          projectId: projects-123
          spaceId: spaces-123
      runbookExample:
        type: octopusdeploy:ProjectScheduledTrigger
        properties:
          cronExpressionSchedule:
            cronExpression: 0 0 06 * * Mon-Fri
          description: This is a Cron schedule
          projectId: projects-123
          runRunbookAction:
            runbookId: runbooks-123
            targetEnvironmentIds:
              - environments-123
              - environments-321
          spaceId: spaces-123
    

    Create ProjectScheduledTrigger Resource

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

    Constructor syntax

    new ProjectScheduledTrigger(name: string, args: ProjectScheduledTriggerArgs, opts?: CustomResourceOptions);
    @overload
    def ProjectScheduledTrigger(resource_name: str,
                                args: ProjectScheduledTriggerArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def ProjectScheduledTrigger(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                project_id: Optional[str] = None,
                                space_id: Optional[str] = None,
                                name: Optional[str] = None,
                                once_daily_schedule: Optional[ProjectScheduledTriggerOnceDailyScheduleArgs] = None,
                                deploy_latest_release_action: Optional[ProjectScheduledTriggerDeployLatestReleaseActionArgs] = None,
                                deploy_new_release_action: Optional[ProjectScheduledTriggerDeployNewReleaseActionArgs] = None,
                                description: Optional[str] = None,
                                is_disabled: Optional[bool] = None,
                                channel_id: Optional[str] = None,
                                days_per_month_schedule: Optional[ProjectScheduledTriggerDaysPerMonthScheduleArgs] = None,
                                cron_expression_schedule: Optional[ProjectScheduledTriggerCronExpressionScheduleArgs] = None,
                                project_scheduled_trigger_id: Optional[str] = None,
                                run_runbook_action: Optional[ProjectScheduledTriggerRunRunbookActionArgs] = None,
                                continuous_daily_schedule: Optional[ProjectScheduledTriggerContinuousDailyScheduleArgs] = None,
                                tenant_ids: Optional[Sequence[str]] = None,
                                timezone: Optional[str] = None)
    func NewProjectScheduledTrigger(ctx *Context, name string, args ProjectScheduledTriggerArgs, opts ...ResourceOption) (*ProjectScheduledTrigger, error)
    public ProjectScheduledTrigger(string name, ProjectScheduledTriggerArgs args, CustomResourceOptions? opts = null)
    public ProjectScheduledTrigger(String name, ProjectScheduledTriggerArgs args)
    public ProjectScheduledTrigger(String name, ProjectScheduledTriggerArgs args, CustomResourceOptions options)
    
    type: octopusdeploy:ProjectScheduledTrigger
    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 ProjectScheduledTriggerArgs
    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 ProjectScheduledTriggerArgs
    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 ProjectScheduledTriggerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ProjectScheduledTriggerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ProjectScheduledTriggerArgs
    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 projectScheduledTriggerResource = new Octopusdeploy.ProjectScheduledTrigger("projectScheduledTriggerResource", new()
    {
        ProjectId = "string",
        SpaceId = "string",
        Name = "string",
        OnceDailySchedule = new Octopusdeploy.Inputs.ProjectScheduledTriggerOnceDailyScheduleArgs
        {
            DaysOfWeeks = new[]
            {
                "string",
            },
            StartTime = "string",
        },
        DeployLatestReleaseAction = new Octopusdeploy.Inputs.ProjectScheduledTriggerDeployLatestReleaseActionArgs
        {
            DestinationEnvironmentId = "string",
            SourceEnvironmentId = "string",
            ShouldRedeploy = false,
        },
        DeployNewReleaseAction = new Octopusdeploy.Inputs.ProjectScheduledTriggerDeployNewReleaseActionArgs
        {
            DestinationEnvironmentId = "string",
            GitReference = "string",
        },
        Description = "string",
        IsDisabled = false,
        ChannelId = "string",
        DaysPerMonthSchedule = new Octopusdeploy.Inputs.ProjectScheduledTriggerDaysPerMonthScheduleArgs
        {
            MonthlyScheduleType = "string",
            StartTime = "string",
            DateOfMonth = "string",
            DayNumberOfMonth = "string",
            DayOfWeek = "string",
        },
        CronExpressionSchedule = new Octopusdeploy.Inputs.ProjectScheduledTriggerCronExpressionScheduleArgs
        {
            CronExpression = "string",
        },
        ProjectScheduledTriggerId = "string",
        RunRunbookAction = new Octopusdeploy.Inputs.ProjectScheduledTriggerRunRunbookActionArgs
        {
            RunbookId = "string",
            TargetEnvironmentIds = new[]
            {
                "string",
            },
        },
        ContinuousDailySchedule = new Octopusdeploy.Inputs.ProjectScheduledTriggerContinuousDailyScheduleArgs
        {
            DaysOfWeeks = new[]
            {
                "string",
            },
            Interval = "string",
            RunAfter = "string",
            RunUntil = "string",
            HourInterval = 0,
            MinuteInterval = 0,
        },
        TenantIds = new[]
        {
            "string",
        },
        Timezone = "string",
    });
    
    example, err := octopusdeploy.NewProjectScheduledTrigger(ctx, "projectScheduledTriggerResource", &octopusdeploy.ProjectScheduledTriggerArgs{
    	ProjectId: pulumi.String("string"),
    	SpaceId:   pulumi.String("string"),
    	Name:      pulumi.String("string"),
    	OnceDailySchedule: &octopusdeploy.ProjectScheduledTriggerOnceDailyScheduleArgs{
    		DaysOfWeeks: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		StartTime: pulumi.String("string"),
    	},
    	DeployLatestReleaseAction: &octopusdeploy.ProjectScheduledTriggerDeployLatestReleaseActionArgs{
    		DestinationEnvironmentId: pulumi.String("string"),
    		SourceEnvironmentId:      pulumi.String("string"),
    		ShouldRedeploy:           pulumi.Bool(false),
    	},
    	DeployNewReleaseAction: &octopusdeploy.ProjectScheduledTriggerDeployNewReleaseActionArgs{
    		DestinationEnvironmentId: pulumi.String("string"),
    		GitReference:             pulumi.String("string"),
    	},
    	Description: pulumi.String("string"),
    	IsDisabled:  pulumi.Bool(false),
    	ChannelId:   pulumi.String("string"),
    	DaysPerMonthSchedule: &octopusdeploy.ProjectScheduledTriggerDaysPerMonthScheduleArgs{
    		MonthlyScheduleType: pulumi.String("string"),
    		StartTime:           pulumi.String("string"),
    		DateOfMonth:         pulumi.String("string"),
    		DayNumberOfMonth:    pulumi.String("string"),
    		DayOfWeek:           pulumi.String("string"),
    	},
    	CronExpressionSchedule: &octopusdeploy.ProjectScheduledTriggerCronExpressionScheduleArgs{
    		CronExpression: pulumi.String("string"),
    	},
    	ProjectScheduledTriggerId: pulumi.String("string"),
    	RunRunbookAction: &octopusdeploy.ProjectScheduledTriggerRunRunbookActionArgs{
    		RunbookId: pulumi.String("string"),
    		TargetEnvironmentIds: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	ContinuousDailySchedule: &octopusdeploy.ProjectScheduledTriggerContinuousDailyScheduleArgs{
    		DaysOfWeeks: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		Interval:       pulumi.String("string"),
    		RunAfter:       pulumi.String("string"),
    		RunUntil:       pulumi.String("string"),
    		HourInterval:   pulumi.Float64(0),
    		MinuteInterval: pulumi.Float64(0),
    	},
    	TenantIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Timezone: pulumi.String("string"),
    })
    
    var projectScheduledTriggerResource = new ProjectScheduledTrigger("projectScheduledTriggerResource", ProjectScheduledTriggerArgs.builder()
        .projectId("string")
        .spaceId("string")
        .name("string")
        .onceDailySchedule(ProjectScheduledTriggerOnceDailyScheduleArgs.builder()
            .daysOfWeeks("string")
            .startTime("string")
            .build())
        .deployLatestReleaseAction(ProjectScheduledTriggerDeployLatestReleaseActionArgs.builder()
            .destinationEnvironmentId("string")
            .sourceEnvironmentId("string")
            .shouldRedeploy(false)
            .build())
        .deployNewReleaseAction(ProjectScheduledTriggerDeployNewReleaseActionArgs.builder()
            .destinationEnvironmentId("string")
            .gitReference("string")
            .build())
        .description("string")
        .isDisabled(false)
        .channelId("string")
        .daysPerMonthSchedule(ProjectScheduledTriggerDaysPerMonthScheduleArgs.builder()
            .monthlyScheduleType("string")
            .startTime("string")
            .dateOfMonth("string")
            .dayNumberOfMonth("string")
            .dayOfWeek("string")
            .build())
        .cronExpressionSchedule(ProjectScheduledTriggerCronExpressionScheduleArgs.builder()
            .cronExpression("string")
            .build())
        .projectScheduledTriggerId("string")
        .runRunbookAction(ProjectScheduledTriggerRunRunbookActionArgs.builder()
            .runbookId("string")
            .targetEnvironmentIds("string")
            .build())
        .continuousDailySchedule(ProjectScheduledTriggerContinuousDailyScheduleArgs.builder()
            .daysOfWeeks("string")
            .interval("string")
            .runAfter("string")
            .runUntil("string")
            .hourInterval(0)
            .minuteInterval(0)
            .build())
        .tenantIds("string")
        .timezone("string")
        .build());
    
    project_scheduled_trigger_resource = octopusdeploy.ProjectScheduledTrigger("projectScheduledTriggerResource",
        project_id="string",
        space_id="string",
        name="string",
        once_daily_schedule={
            "days_of_weeks": ["string"],
            "start_time": "string",
        },
        deploy_latest_release_action={
            "destination_environment_id": "string",
            "source_environment_id": "string",
            "should_redeploy": False,
        },
        deploy_new_release_action={
            "destination_environment_id": "string",
            "git_reference": "string",
        },
        description="string",
        is_disabled=False,
        channel_id="string",
        days_per_month_schedule={
            "monthly_schedule_type": "string",
            "start_time": "string",
            "date_of_month": "string",
            "day_number_of_month": "string",
            "day_of_week": "string",
        },
        cron_expression_schedule={
            "cron_expression": "string",
        },
        project_scheduled_trigger_id="string",
        run_runbook_action={
            "runbook_id": "string",
            "target_environment_ids": ["string"],
        },
        continuous_daily_schedule={
            "days_of_weeks": ["string"],
            "interval": "string",
            "run_after": "string",
            "run_until": "string",
            "hour_interval": 0,
            "minute_interval": 0,
        },
        tenant_ids=["string"],
        timezone="string")
    
    const projectScheduledTriggerResource = new octopusdeploy.ProjectScheduledTrigger("projectScheduledTriggerResource", {
        projectId: "string",
        spaceId: "string",
        name: "string",
        onceDailySchedule: {
            daysOfWeeks: ["string"],
            startTime: "string",
        },
        deployLatestReleaseAction: {
            destinationEnvironmentId: "string",
            sourceEnvironmentId: "string",
            shouldRedeploy: false,
        },
        deployNewReleaseAction: {
            destinationEnvironmentId: "string",
            gitReference: "string",
        },
        description: "string",
        isDisabled: false,
        channelId: "string",
        daysPerMonthSchedule: {
            monthlyScheduleType: "string",
            startTime: "string",
            dateOfMonth: "string",
            dayNumberOfMonth: "string",
            dayOfWeek: "string",
        },
        cronExpressionSchedule: {
            cronExpression: "string",
        },
        projectScheduledTriggerId: "string",
        runRunbookAction: {
            runbookId: "string",
            targetEnvironmentIds: ["string"],
        },
        continuousDailySchedule: {
            daysOfWeeks: ["string"],
            interval: "string",
            runAfter: "string",
            runUntil: "string",
            hourInterval: 0,
            minuteInterval: 0,
        },
        tenantIds: ["string"],
        timezone: "string",
    });
    
    type: octopusdeploy:ProjectScheduledTrigger
    properties:
        channelId: string
        continuousDailySchedule:
            daysOfWeeks:
                - string
            hourInterval: 0
            interval: string
            minuteInterval: 0
            runAfter: string
            runUntil: string
        cronExpressionSchedule:
            cronExpression: string
        daysPerMonthSchedule:
            dateOfMonth: string
            dayNumberOfMonth: string
            dayOfWeek: string
            monthlyScheduleType: string
            startTime: string
        deployLatestReleaseAction:
            destinationEnvironmentId: string
            shouldRedeploy: false
            sourceEnvironmentId: string
        deployNewReleaseAction:
            destinationEnvironmentId: string
            gitReference: string
        description: string
        isDisabled: false
        name: string
        onceDailySchedule:
            daysOfWeeks:
                - string
            startTime: string
        projectId: string
        projectScheduledTriggerId: string
        runRunbookAction:
            runbookId: string
            targetEnvironmentIds:
                - string
        spaceId: string
        tenantIds:
            - string
        timezone: string
    

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

    ProjectId string
    The ID of the project to attach the trigger.
    SpaceId string
    The space ID where this trigger's project exists.
    ChannelId string
    The channel ID to use when creating the release. Will use the default channel if left blank.
    ContinuousDailySchedule ProjectScheduledTriggerContinuousDailySchedule
    The daily schedule for the trigger.
    CronExpressionSchedule ProjectScheduledTriggerCronExpressionSchedule
    The cron expression schedule for the trigger.
    DaysPerMonthSchedule ProjectScheduledTriggerDaysPerMonthSchedule
    The daily schedule for the trigger.
    DeployLatestReleaseAction ProjectScheduledTriggerDeployLatestReleaseAction
    Configuration for deploying the latest release. Can not be used with 'deploynewreleaseaction' or 'runrunbook*action'.
    DeployNewReleaseAction ProjectScheduledTriggerDeployNewReleaseAction
    Configuration for deploying a new release. Can not be used with 'deploylatestreleaseaction' or 'runrunbook*action'.
    Description string
    A description of the trigger.
    IsDisabled bool
    Indicates whether the trigger is disabled.
    Name string
    The name of this resource.
    OnceDailySchedule ProjectScheduledTriggerOnceDailySchedule
    The daily schedule for the trigger.
    ProjectScheduledTriggerId string
    The ID of this resource.
    RunRunbookAction ProjectScheduledTriggerRunRunbookAction
    Configuration for running a runbook. Can not be used with 'deploylatestreleaseaction' or 'deploynewreleaseaction'.
    TenantIds List<string>
    The IDs of the tenants to deploy to.
    Timezone string
    The timezone for the trigger.
    ProjectId string
    The ID of the project to attach the trigger.
    SpaceId string
    The space ID where this trigger's project exists.
    ChannelId string
    The channel ID to use when creating the release. Will use the default channel if left blank.
    ContinuousDailySchedule ProjectScheduledTriggerContinuousDailyScheduleArgs
    The daily schedule for the trigger.
    CronExpressionSchedule ProjectScheduledTriggerCronExpressionScheduleArgs
    The cron expression schedule for the trigger.
    DaysPerMonthSchedule ProjectScheduledTriggerDaysPerMonthScheduleArgs
    The daily schedule for the trigger.
    DeployLatestReleaseAction ProjectScheduledTriggerDeployLatestReleaseActionArgs
    Configuration for deploying the latest release. Can not be used with 'deploynewreleaseaction' or 'runrunbook*action'.
    DeployNewReleaseAction ProjectScheduledTriggerDeployNewReleaseActionArgs
    Configuration for deploying a new release. Can not be used with 'deploylatestreleaseaction' or 'runrunbook*action'.
    Description string
    A description of the trigger.
    IsDisabled bool
    Indicates whether the trigger is disabled.
    Name string
    The name of this resource.
    OnceDailySchedule ProjectScheduledTriggerOnceDailyScheduleArgs
    The daily schedule for the trigger.
    ProjectScheduledTriggerId string
    The ID of this resource.
    RunRunbookAction ProjectScheduledTriggerRunRunbookActionArgs
    Configuration for running a runbook. Can not be used with 'deploylatestreleaseaction' or 'deploynewreleaseaction'.
    TenantIds []string
    The IDs of the tenants to deploy to.
    Timezone string
    The timezone for the trigger.
    projectId String
    The ID of the project to attach the trigger.
    spaceId String
    The space ID where this trigger's project exists.
    channelId String
    The channel ID to use when creating the release. Will use the default channel if left blank.
    continuousDailySchedule ProjectScheduledTriggerContinuousDailySchedule
    The daily schedule for the trigger.
    cronExpressionSchedule ProjectScheduledTriggerCronExpressionSchedule
    The cron expression schedule for the trigger.
    daysPerMonthSchedule ProjectScheduledTriggerDaysPerMonthSchedule
    The daily schedule for the trigger.
    deployLatestReleaseAction ProjectScheduledTriggerDeployLatestReleaseAction
    Configuration for deploying the latest release. Can not be used with 'deploynewreleaseaction' or 'runrunbook*action'.
    deployNewReleaseAction ProjectScheduledTriggerDeployNewReleaseAction
    Configuration for deploying a new release. Can not be used with 'deploylatestreleaseaction' or 'runrunbook*action'.
    description String
    A description of the trigger.
    isDisabled Boolean
    Indicates whether the trigger is disabled.
    name String
    The name of this resource.
    onceDailySchedule ProjectScheduledTriggerOnceDailySchedule
    The daily schedule for the trigger.
    projectScheduledTriggerId String
    The ID of this resource.
    runRunbookAction ProjectScheduledTriggerRunRunbookAction
    Configuration for running a runbook. Can not be used with 'deploylatestreleaseaction' or 'deploynewreleaseaction'.
    tenantIds List<String>
    The IDs of the tenants to deploy to.
    timezone String
    The timezone for the trigger.
    projectId string
    The ID of the project to attach the trigger.
    spaceId string
    The space ID where this trigger's project exists.
    channelId string
    The channel ID to use when creating the release. Will use the default channel if left blank.
    continuousDailySchedule ProjectScheduledTriggerContinuousDailySchedule
    The daily schedule for the trigger.
    cronExpressionSchedule ProjectScheduledTriggerCronExpressionSchedule
    The cron expression schedule for the trigger.
    daysPerMonthSchedule ProjectScheduledTriggerDaysPerMonthSchedule
    The daily schedule for the trigger.
    deployLatestReleaseAction ProjectScheduledTriggerDeployLatestReleaseAction
    Configuration for deploying the latest release. Can not be used with 'deploynewreleaseaction' or 'runrunbook*action'.
    deployNewReleaseAction ProjectScheduledTriggerDeployNewReleaseAction
    Configuration for deploying a new release. Can not be used with 'deploylatestreleaseaction' or 'runrunbook*action'.
    description string
    A description of the trigger.
    isDisabled boolean
    Indicates whether the trigger is disabled.
    name string
    The name of this resource.
    onceDailySchedule ProjectScheduledTriggerOnceDailySchedule
    The daily schedule for the trigger.
    projectScheduledTriggerId string
    The ID of this resource.
    runRunbookAction ProjectScheduledTriggerRunRunbookAction
    Configuration for running a runbook. Can not be used with 'deploylatestreleaseaction' or 'deploynewreleaseaction'.
    tenantIds string[]
    The IDs of the tenants to deploy to.
    timezone string
    The timezone for the trigger.
    project_id str
    The ID of the project to attach the trigger.
    space_id str
    The space ID where this trigger's project exists.
    channel_id str
    The channel ID to use when creating the release. Will use the default channel if left blank.
    continuous_daily_schedule ProjectScheduledTriggerContinuousDailyScheduleArgs
    The daily schedule for the trigger.
    cron_expression_schedule ProjectScheduledTriggerCronExpressionScheduleArgs
    The cron expression schedule for the trigger.
    days_per_month_schedule ProjectScheduledTriggerDaysPerMonthScheduleArgs
    The daily schedule for the trigger.
    deploy_latest_release_action ProjectScheduledTriggerDeployLatestReleaseActionArgs
    Configuration for deploying the latest release. Can not be used with 'deploynewreleaseaction' or 'runrunbook*action'.
    deploy_new_release_action ProjectScheduledTriggerDeployNewReleaseActionArgs
    Configuration for deploying a new release. Can not be used with 'deploylatestreleaseaction' or 'runrunbook*action'.
    description str
    A description of the trigger.
    is_disabled bool
    Indicates whether the trigger is disabled.
    name str
    The name of this resource.
    once_daily_schedule ProjectScheduledTriggerOnceDailyScheduleArgs
    The daily schedule for the trigger.
    project_scheduled_trigger_id str
    The ID of this resource.
    run_runbook_action ProjectScheduledTriggerRunRunbookActionArgs
    Configuration for running a runbook. Can not be used with 'deploylatestreleaseaction' or 'deploynewreleaseaction'.
    tenant_ids Sequence[str]
    The IDs of the tenants to deploy to.
    timezone str
    The timezone for the trigger.
    projectId String
    The ID of the project to attach the trigger.
    spaceId String
    The space ID where this trigger's project exists.
    channelId String
    The channel ID to use when creating the release. Will use the default channel if left blank.
    continuousDailySchedule Property Map
    The daily schedule for the trigger.
    cronExpressionSchedule Property Map
    The cron expression schedule for the trigger.
    daysPerMonthSchedule Property Map
    The daily schedule for the trigger.
    deployLatestReleaseAction Property Map
    Configuration for deploying the latest release. Can not be used with 'deploynewreleaseaction' or 'runrunbook*action'.
    deployNewReleaseAction Property Map
    Configuration for deploying a new release. Can not be used with 'deploylatestreleaseaction' or 'runrunbook*action'.
    description String
    A description of the trigger.
    isDisabled Boolean
    Indicates whether the trigger is disabled.
    name String
    The name of this resource.
    onceDailySchedule Property Map
    The daily schedule for the trigger.
    projectScheduledTriggerId String
    The ID of this resource.
    runRunbookAction Property Map
    Configuration for running a runbook. Can not be used with 'deploylatestreleaseaction' or 'deploynewreleaseaction'.
    tenantIds List<String>
    The IDs of the tenants to deploy to.
    timezone String
    The timezone for the trigger.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ProjectScheduledTrigger Resource

    Get an existing ProjectScheduledTrigger 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?: ProjectScheduledTriggerState, opts?: CustomResourceOptions): ProjectScheduledTrigger
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            channel_id: Optional[str] = None,
            continuous_daily_schedule: Optional[ProjectScheduledTriggerContinuousDailyScheduleArgs] = None,
            cron_expression_schedule: Optional[ProjectScheduledTriggerCronExpressionScheduleArgs] = None,
            days_per_month_schedule: Optional[ProjectScheduledTriggerDaysPerMonthScheduleArgs] = None,
            deploy_latest_release_action: Optional[ProjectScheduledTriggerDeployLatestReleaseActionArgs] = None,
            deploy_new_release_action: Optional[ProjectScheduledTriggerDeployNewReleaseActionArgs] = None,
            description: Optional[str] = None,
            is_disabled: Optional[bool] = None,
            name: Optional[str] = None,
            once_daily_schedule: Optional[ProjectScheduledTriggerOnceDailyScheduleArgs] = None,
            project_id: Optional[str] = None,
            project_scheduled_trigger_id: Optional[str] = None,
            run_runbook_action: Optional[ProjectScheduledTriggerRunRunbookActionArgs] = None,
            space_id: Optional[str] = None,
            tenant_ids: Optional[Sequence[str]] = None,
            timezone: Optional[str] = None) -> ProjectScheduledTrigger
    func GetProjectScheduledTrigger(ctx *Context, name string, id IDInput, state *ProjectScheduledTriggerState, opts ...ResourceOption) (*ProjectScheduledTrigger, error)
    public static ProjectScheduledTrigger Get(string name, Input<string> id, ProjectScheduledTriggerState? state, CustomResourceOptions? opts = null)
    public static ProjectScheduledTrigger get(String name, Output<String> id, ProjectScheduledTriggerState state, CustomResourceOptions options)
    resources:  _:    type: octopusdeploy:ProjectScheduledTrigger    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:
    ChannelId string
    The channel ID to use when creating the release. Will use the default channel if left blank.
    ContinuousDailySchedule ProjectScheduledTriggerContinuousDailySchedule
    The daily schedule for the trigger.
    CronExpressionSchedule ProjectScheduledTriggerCronExpressionSchedule
    The cron expression schedule for the trigger.
    DaysPerMonthSchedule ProjectScheduledTriggerDaysPerMonthSchedule
    The daily schedule for the trigger.
    DeployLatestReleaseAction ProjectScheduledTriggerDeployLatestReleaseAction
    Configuration for deploying the latest release. Can not be used with 'deploynewreleaseaction' or 'runrunbook*action'.
    DeployNewReleaseAction ProjectScheduledTriggerDeployNewReleaseAction
    Configuration for deploying a new release. Can not be used with 'deploylatestreleaseaction' or 'runrunbook*action'.
    Description string
    A description of the trigger.
    IsDisabled bool
    Indicates whether the trigger is disabled.
    Name string
    The name of this resource.
    OnceDailySchedule ProjectScheduledTriggerOnceDailySchedule
    The daily schedule for the trigger.
    ProjectId string
    The ID of the project to attach the trigger.
    ProjectScheduledTriggerId string
    The ID of this resource.
    RunRunbookAction ProjectScheduledTriggerRunRunbookAction
    Configuration for running a runbook. Can not be used with 'deploylatestreleaseaction' or 'deploynewreleaseaction'.
    SpaceId string
    The space ID where this trigger's project exists.
    TenantIds List<string>
    The IDs of the tenants to deploy to.
    Timezone string
    The timezone for the trigger.
    ChannelId string
    The channel ID to use when creating the release. Will use the default channel if left blank.
    ContinuousDailySchedule ProjectScheduledTriggerContinuousDailyScheduleArgs
    The daily schedule for the trigger.
    CronExpressionSchedule ProjectScheduledTriggerCronExpressionScheduleArgs
    The cron expression schedule for the trigger.
    DaysPerMonthSchedule ProjectScheduledTriggerDaysPerMonthScheduleArgs
    The daily schedule for the trigger.
    DeployLatestReleaseAction ProjectScheduledTriggerDeployLatestReleaseActionArgs
    Configuration for deploying the latest release. Can not be used with 'deploynewreleaseaction' or 'runrunbook*action'.
    DeployNewReleaseAction ProjectScheduledTriggerDeployNewReleaseActionArgs
    Configuration for deploying a new release. Can not be used with 'deploylatestreleaseaction' or 'runrunbook*action'.
    Description string
    A description of the trigger.
    IsDisabled bool
    Indicates whether the trigger is disabled.
    Name string
    The name of this resource.
    OnceDailySchedule ProjectScheduledTriggerOnceDailyScheduleArgs
    The daily schedule for the trigger.
    ProjectId string
    The ID of the project to attach the trigger.
    ProjectScheduledTriggerId string
    The ID of this resource.
    RunRunbookAction ProjectScheduledTriggerRunRunbookActionArgs
    Configuration for running a runbook. Can not be used with 'deploylatestreleaseaction' or 'deploynewreleaseaction'.
    SpaceId string
    The space ID where this trigger's project exists.
    TenantIds []string
    The IDs of the tenants to deploy to.
    Timezone string
    The timezone for the trigger.
    channelId String
    The channel ID to use when creating the release. Will use the default channel if left blank.
    continuousDailySchedule ProjectScheduledTriggerContinuousDailySchedule
    The daily schedule for the trigger.
    cronExpressionSchedule ProjectScheduledTriggerCronExpressionSchedule
    The cron expression schedule for the trigger.
    daysPerMonthSchedule ProjectScheduledTriggerDaysPerMonthSchedule
    The daily schedule for the trigger.
    deployLatestReleaseAction ProjectScheduledTriggerDeployLatestReleaseAction
    Configuration for deploying the latest release. Can not be used with 'deploynewreleaseaction' or 'runrunbook*action'.
    deployNewReleaseAction ProjectScheduledTriggerDeployNewReleaseAction
    Configuration for deploying a new release. Can not be used with 'deploylatestreleaseaction' or 'runrunbook*action'.
    description String
    A description of the trigger.
    isDisabled Boolean
    Indicates whether the trigger is disabled.
    name String
    The name of this resource.
    onceDailySchedule ProjectScheduledTriggerOnceDailySchedule
    The daily schedule for the trigger.
    projectId String
    The ID of the project to attach the trigger.
    projectScheduledTriggerId String
    The ID of this resource.
    runRunbookAction ProjectScheduledTriggerRunRunbookAction
    Configuration for running a runbook. Can not be used with 'deploylatestreleaseaction' or 'deploynewreleaseaction'.
    spaceId String
    The space ID where this trigger's project exists.
    tenantIds List<String>
    The IDs of the tenants to deploy to.
    timezone String
    The timezone for the trigger.
    channelId string
    The channel ID to use when creating the release. Will use the default channel if left blank.
    continuousDailySchedule ProjectScheduledTriggerContinuousDailySchedule
    The daily schedule for the trigger.
    cronExpressionSchedule ProjectScheduledTriggerCronExpressionSchedule
    The cron expression schedule for the trigger.
    daysPerMonthSchedule ProjectScheduledTriggerDaysPerMonthSchedule
    The daily schedule for the trigger.
    deployLatestReleaseAction ProjectScheduledTriggerDeployLatestReleaseAction
    Configuration for deploying the latest release. Can not be used with 'deploynewreleaseaction' or 'runrunbook*action'.
    deployNewReleaseAction ProjectScheduledTriggerDeployNewReleaseAction
    Configuration for deploying a new release. Can not be used with 'deploylatestreleaseaction' or 'runrunbook*action'.
    description string
    A description of the trigger.
    isDisabled boolean
    Indicates whether the trigger is disabled.
    name string
    The name of this resource.
    onceDailySchedule ProjectScheduledTriggerOnceDailySchedule
    The daily schedule for the trigger.
    projectId string
    The ID of the project to attach the trigger.
    projectScheduledTriggerId string
    The ID of this resource.
    runRunbookAction ProjectScheduledTriggerRunRunbookAction
    Configuration for running a runbook. Can not be used with 'deploylatestreleaseaction' or 'deploynewreleaseaction'.
    spaceId string
    The space ID where this trigger's project exists.
    tenantIds string[]
    The IDs of the tenants to deploy to.
    timezone string
    The timezone for the trigger.
    channel_id str
    The channel ID to use when creating the release. Will use the default channel if left blank.
    continuous_daily_schedule ProjectScheduledTriggerContinuousDailyScheduleArgs
    The daily schedule for the trigger.
    cron_expression_schedule ProjectScheduledTriggerCronExpressionScheduleArgs
    The cron expression schedule for the trigger.
    days_per_month_schedule ProjectScheduledTriggerDaysPerMonthScheduleArgs
    The daily schedule for the trigger.
    deploy_latest_release_action ProjectScheduledTriggerDeployLatestReleaseActionArgs
    Configuration for deploying the latest release. Can not be used with 'deploynewreleaseaction' or 'runrunbook*action'.
    deploy_new_release_action ProjectScheduledTriggerDeployNewReleaseActionArgs
    Configuration for deploying a new release. Can not be used with 'deploylatestreleaseaction' or 'runrunbook*action'.
    description str
    A description of the trigger.
    is_disabled bool
    Indicates whether the trigger is disabled.
    name str
    The name of this resource.
    once_daily_schedule ProjectScheduledTriggerOnceDailyScheduleArgs
    The daily schedule for the trigger.
    project_id str
    The ID of the project to attach the trigger.
    project_scheduled_trigger_id str
    The ID of this resource.
    run_runbook_action ProjectScheduledTriggerRunRunbookActionArgs
    Configuration for running a runbook. Can not be used with 'deploylatestreleaseaction' or 'deploynewreleaseaction'.
    space_id str
    The space ID where this trigger's project exists.
    tenant_ids Sequence[str]
    The IDs of the tenants to deploy to.
    timezone str
    The timezone for the trigger.
    channelId String
    The channel ID to use when creating the release. Will use the default channel if left blank.
    continuousDailySchedule Property Map
    The daily schedule for the trigger.
    cronExpressionSchedule Property Map
    The cron expression schedule for the trigger.
    daysPerMonthSchedule Property Map
    The daily schedule for the trigger.
    deployLatestReleaseAction Property Map
    Configuration for deploying the latest release. Can not be used with 'deploynewreleaseaction' or 'runrunbook*action'.
    deployNewReleaseAction Property Map
    Configuration for deploying a new release. Can not be used with 'deploylatestreleaseaction' or 'runrunbook*action'.
    description String
    A description of the trigger.
    isDisabled Boolean
    Indicates whether the trigger is disabled.
    name String
    The name of this resource.
    onceDailySchedule Property Map
    The daily schedule for the trigger.
    projectId String
    The ID of the project to attach the trigger.
    projectScheduledTriggerId String
    The ID of this resource.
    runRunbookAction Property Map
    Configuration for running a runbook. Can not be used with 'deploylatestreleaseaction' or 'deploynewreleaseaction'.
    spaceId String
    The space ID where this trigger's project exists.
    tenantIds List<String>
    The IDs of the tenants to deploy to.
    timezone String
    The timezone for the trigger.

    Supporting Types

    ProjectScheduledTriggerContinuousDailySchedule, ProjectScheduledTriggerContinuousDailyScheduleArgs

    DaysOfWeeks List<string>
    The days of the week to run the trigger.
    Interval string
    The interval in minutes to run the trigger.
    RunAfter string
    The time of day to start the trigger.
    RunUntil string
    The time of day to end the trigger.
    HourInterval double
    How often to run the trigger in hours. Only used when the interval is set to 'OnceHourly'.
    MinuteInterval double
    How often to run the trigger in minutes. Only used when the interval is set to 'OnceEveryMinute'.
    DaysOfWeeks []string
    The days of the week to run the trigger.
    Interval string
    The interval in minutes to run the trigger.
    RunAfter string
    The time of day to start the trigger.
    RunUntil string
    The time of day to end the trigger.
    HourInterval float64
    How often to run the trigger in hours. Only used when the interval is set to 'OnceHourly'.
    MinuteInterval float64
    How often to run the trigger in minutes. Only used when the interval is set to 'OnceEveryMinute'.
    daysOfWeeks List<String>
    The days of the week to run the trigger.
    interval String
    The interval in minutes to run the trigger.
    runAfter String
    The time of day to start the trigger.
    runUntil String
    The time of day to end the trigger.
    hourInterval Double
    How often to run the trigger in hours. Only used when the interval is set to 'OnceHourly'.
    minuteInterval Double
    How often to run the trigger in minutes. Only used when the interval is set to 'OnceEveryMinute'.
    daysOfWeeks string[]
    The days of the week to run the trigger.
    interval string
    The interval in minutes to run the trigger.
    runAfter string
    The time of day to start the trigger.
    runUntil string
    The time of day to end the trigger.
    hourInterval number
    How often to run the trigger in hours. Only used when the interval is set to 'OnceHourly'.
    minuteInterval number
    How often to run the trigger in minutes. Only used when the interval is set to 'OnceEveryMinute'.
    days_of_weeks Sequence[str]
    The days of the week to run the trigger.
    interval str
    The interval in minutes to run the trigger.
    run_after str
    The time of day to start the trigger.
    run_until str
    The time of day to end the trigger.
    hour_interval float
    How often to run the trigger in hours. Only used when the interval is set to 'OnceHourly'.
    minute_interval float
    How often to run the trigger in minutes. Only used when the interval is set to 'OnceEveryMinute'.
    daysOfWeeks List<String>
    The days of the week to run the trigger.
    interval String
    The interval in minutes to run the trigger.
    runAfter String
    The time of day to start the trigger.
    runUntil String
    The time of day to end the trigger.
    hourInterval Number
    How often to run the trigger in hours. Only used when the interval is set to 'OnceHourly'.
    minuteInterval Number
    How often to run the trigger in minutes. Only used when the interval is set to 'OnceEveryMinute'.

    ProjectScheduledTriggerCronExpressionSchedule, ProjectScheduledTriggerCronExpressionScheduleArgs

    CronExpression string
    The cron expression for the schedule.
    CronExpression string
    The cron expression for the schedule.
    cronExpression String
    The cron expression for the schedule.
    cronExpression string
    The cron expression for the schedule.
    cron_expression str
    The cron expression for the schedule.
    cronExpression String
    The cron expression for the schedule.

    ProjectScheduledTriggerDaysPerMonthSchedule, ProjectScheduledTriggerDaysPerMonthScheduleArgs

    MonthlyScheduleType string
    The type of monthly schedule to run the trigger
    StartTime string
    The time of day to start the trigger.
    DateOfMonth string
    Which date of the month to run the trigger. String number between 1 - 31 Incl. or L for the last day of the month.
    DayNumberOfMonth string
    Which ordinal day of the week to run the trigger on. String number between 1 - 4 Incl. or L for the last occurrence of dayofweek for the month.
    DayOfWeek string
    Which day of the week to run the trigger on. Required when monthlyscheduletype is set to 'DayOfMonth'.
    MonthlyScheduleType string
    The type of monthly schedule to run the trigger
    StartTime string
    The time of day to start the trigger.
    DateOfMonth string
    Which date of the month to run the trigger. String number between 1 - 31 Incl. or L for the last day of the month.
    DayNumberOfMonth string
    Which ordinal day of the week to run the trigger on. String number between 1 - 4 Incl. or L for the last occurrence of dayofweek for the month.
    DayOfWeek string
    Which day of the week to run the trigger on. Required when monthlyscheduletype is set to 'DayOfMonth'.
    monthlyScheduleType String
    The type of monthly schedule to run the trigger
    startTime String
    The time of day to start the trigger.
    dateOfMonth String
    Which date of the month to run the trigger. String number between 1 - 31 Incl. or L for the last day of the month.
    dayNumberOfMonth String
    Which ordinal day of the week to run the trigger on. String number between 1 - 4 Incl. or L for the last occurrence of dayofweek for the month.
    dayOfWeek String
    Which day of the week to run the trigger on. Required when monthlyscheduletype is set to 'DayOfMonth'.
    monthlyScheduleType string
    The type of monthly schedule to run the trigger
    startTime string
    The time of day to start the trigger.
    dateOfMonth string
    Which date of the month to run the trigger. String number between 1 - 31 Incl. or L for the last day of the month.
    dayNumberOfMonth string
    Which ordinal day of the week to run the trigger on. String number between 1 - 4 Incl. or L for the last occurrence of dayofweek for the month.
    dayOfWeek string
    Which day of the week to run the trigger on. Required when monthlyscheduletype is set to 'DayOfMonth'.
    monthly_schedule_type str
    The type of monthly schedule to run the trigger
    start_time str
    The time of day to start the trigger.
    date_of_month str
    Which date of the month to run the trigger. String number between 1 - 31 Incl. or L for the last day of the month.
    day_number_of_month str
    Which ordinal day of the week to run the trigger on. String number between 1 - 4 Incl. or L for the last occurrence of dayofweek for the month.
    day_of_week str
    Which day of the week to run the trigger on. Required when monthlyscheduletype is set to 'DayOfMonth'.
    monthlyScheduleType String
    The type of monthly schedule to run the trigger
    startTime String
    The time of day to start the trigger.
    dateOfMonth String
    Which date of the month to run the trigger. String number between 1 - 31 Incl. or L for the last day of the month.
    dayNumberOfMonth String
    Which ordinal day of the week to run the trigger on. String number between 1 - 4 Incl. or L for the last occurrence of dayofweek for the month.
    dayOfWeek String
    Which day of the week to run the trigger on. Required when monthlyscheduletype is set to 'DayOfMonth'.

    ProjectScheduledTriggerDeployLatestReleaseAction, ProjectScheduledTriggerDeployLatestReleaseActionArgs

    DestinationEnvironmentId string
    The environment ID to deploy the selected release to.
    SourceEnvironmentId string
    The environment ID to use when selecting the release to deploy from.
    ShouldRedeploy bool
    Enable to re-deploy to the deployment targets even if they are already up-to-date with the current deployment.
    DestinationEnvironmentId string
    The environment ID to deploy the selected release to.
    SourceEnvironmentId string
    The environment ID to use when selecting the release to deploy from.
    ShouldRedeploy bool
    Enable to re-deploy to the deployment targets even if they are already up-to-date with the current deployment.
    destinationEnvironmentId String
    The environment ID to deploy the selected release to.
    sourceEnvironmentId String
    The environment ID to use when selecting the release to deploy from.
    shouldRedeploy Boolean
    Enable to re-deploy to the deployment targets even if they are already up-to-date with the current deployment.
    destinationEnvironmentId string
    The environment ID to deploy the selected release to.
    sourceEnvironmentId string
    The environment ID to use when selecting the release to deploy from.
    shouldRedeploy boolean
    Enable to re-deploy to the deployment targets even if they are already up-to-date with the current deployment.
    destination_environment_id str
    The environment ID to deploy the selected release to.
    source_environment_id str
    The environment ID to use when selecting the release to deploy from.
    should_redeploy bool
    Enable to re-deploy to the deployment targets even if they are already up-to-date with the current deployment.
    destinationEnvironmentId String
    The environment ID to deploy the selected release to.
    sourceEnvironmentId String
    The environment ID to use when selecting the release to deploy from.
    shouldRedeploy Boolean
    Enable to re-deploy to the deployment targets even if they are already up-to-date with the current deployment.

    ProjectScheduledTriggerDeployNewReleaseAction, ProjectScheduledTriggerDeployNewReleaseActionArgs

    DestinationEnvironmentId string
    The environment ID to deploy the selected release to.
    GitReference string
    The git reference to use when creating the release. Can be a branch, tag, or commit hash.
    DestinationEnvironmentId string
    The environment ID to deploy the selected release to.
    GitReference string
    The git reference to use when creating the release. Can be a branch, tag, or commit hash.
    destinationEnvironmentId String
    The environment ID to deploy the selected release to.
    gitReference String
    The git reference to use when creating the release. Can be a branch, tag, or commit hash.
    destinationEnvironmentId string
    The environment ID to deploy the selected release to.
    gitReference string
    The git reference to use when creating the release. Can be a branch, tag, or commit hash.
    destination_environment_id str
    The environment ID to deploy the selected release to.
    git_reference str
    The git reference to use when creating the release. Can be a branch, tag, or commit hash.
    destinationEnvironmentId String
    The environment ID to deploy the selected release to.
    gitReference String
    The git reference to use when creating the release. Can be a branch, tag, or commit hash.

    ProjectScheduledTriggerOnceDailySchedule, ProjectScheduledTriggerOnceDailyScheduleArgs

    DaysOfWeeks List<string>
    The days of the week to run the trigger.
    StartTime string
    The time of day to start the trigger.
    DaysOfWeeks []string
    The days of the week to run the trigger.
    StartTime string
    The time of day to start the trigger.
    daysOfWeeks List<String>
    The days of the week to run the trigger.
    startTime String
    The time of day to start the trigger.
    daysOfWeeks string[]
    The days of the week to run the trigger.
    startTime string
    The time of day to start the trigger.
    days_of_weeks Sequence[str]
    The days of the week to run the trigger.
    start_time str
    The time of day to start the trigger.
    daysOfWeeks List<String>
    The days of the week to run the trigger.
    startTime String
    The time of day to start the trigger.

    ProjectScheduledTriggerRunRunbookAction, ProjectScheduledTriggerRunRunbookActionArgs

    RunbookId string
    The ID of the runbook to run.
    TargetEnvironmentIds List<string>
    The IDs of the environments to run the runbook in.
    RunbookId string
    The ID of the runbook to run.
    TargetEnvironmentIds []string
    The IDs of the environments to run the runbook in.
    runbookId String
    The ID of the runbook to run.
    targetEnvironmentIds List<String>
    The IDs of the environments to run the runbook in.
    runbookId string
    The ID of the runbook to run.
    targetEnvironmentIds string[]
    The IDs of the environments to run the runbook in.
    runbook_id str
    The ID of the runbook to run.
    target_environment_ids Sequence[str]
    The IDs of the environments to run the runbook in.
    runbookId String
    The ID of the runbook to run.
    targetEnvironmentIds List<String>
    The IDs of the environments to run the runbook in.

    Import

    $ pulumi import octopusdeploy:index/projectScheduledTrigger:ProjectScheduledTrigger [options] octopusdeploy_project_scheduled_trigger.<name> <trigger-id>
    

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

    Package Details

    Repository
    octopusdeploy octopusdeploylabs/terraform-provider-octopusdeploy
    License
    Notes
    This Pulumi package is based on the octopusdeploy Terraform Provider.
    octopusdeploy logo
    octopusdeploy 0.43.0 published on Thursday, Apr 17, 2025 by octopusdeploylabs