octopusdeploy.ProjectScheduledTrigger
Explore with Pulumi AI
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:
- Project
Id string - The ID of the project to attach the trigger.
- Space
Id string - The space ID where this trigger's project exists.
- Channel
Id string - The channel ID to use when creating the release. Will use the default channel if left blank.
- Continuous
Daily ProjectSchedule Scheduled Trigger Continuous Daily Schedule - The daily schedule for the trigger.
- Cron
Expression ProjectSchedule Scheduled Trigger Cron Expression Schedule - The cron expression schedule for the trigger.
- Days
Per ProjectMonth Schedule Scheduled Trigger Days Per Month Schedule - The daily schedule for the trigger.
- Deploy
Latest ProjectRelease Action Scheduled Trigger Deploy Latest Release Action - Configuration for deploying the latest release. Can not be used with 'deploynewreleaseaction' or 'runrunbook*action'.
- Deploy
New ProjectRelease Action Scheduled Trigger Deploy New Release Action - Configuration for deploying a new release. Can not be used with 'deploylatestreleaseaction' or 'runrunbook*action'.
- Description string
- A description of the trigger.
- Is
Disabled bool - Indicates whether the trigger is disabled.
- Name string
- The name of this resource.
- Once
Daily ProjectSchedule Scheduled Trigger Once Daily Schedule - The daily schedule for the trigger.
- Project
Scheduled stringTrigger Id - The ID of this resource.
- Run
Runbook ProjectAction Scheduled Trigger Run Runbook Action - Configuration for running a runbook. Can not be used with 'deploylatestreleaseaction' or 'deploynewreleaseaction'.
- Tenant
Ids List<string> - The IDs of the tenants to deploy to.
- Timezone string
- The timezone for the trigger.
- Project
Id string - The ID of the project to attach the trigger.
- Space
Id string - The space ID where this trigger's project exists.
- Channel
Id string - The channel ID to use when creating the release. Will use the default channel if left blank.
- Continuous
Daily ProjectSchedule Scheduled Trigger Continuous Daily Schedule Args - The daily schedule for the trigger.
- Cron
Expression ProjectSchedule Scheduled Trigger Cron Expression Schedule Args - The cron expression schedule for the trigger.
- Days
Per ProjectMonth Schedule Scheduled Trigger Days Per Month Schedule Args - The daily schedule for the trigger.
- Deploy
Latest ProjectRelease Action Scheduled Trigger Deploy Latest Release Action Args - Configuration for deploying the latest release. Can not be used with 'deploynewreleaseaction' or 'runrunbook*action'.
- Deploy
New ProjectRelease Action Scheduled Trigger Deploy New Release Action Args - Configuration for deploying a new release. Can not be used with 'deploylatestreleaseaction' or 'runrunbook*action'.
- Description string
- A description of the trigger.
- Is
Disabled bool - Indicates whether the trigger is disabled.
- Name string
- The name of this resource.
- Once
Daily ProjectSchedule Scheduled Trigger Once Daily Schedule Args - The daily schedule for the trigger.
- Project
Scheduled stringTrigger Id - The ID of this resource.
- Run
Runbook ProjectAction Scheduled Trigger Run Runbook Action Args - Configuration for running a runbook. Can not be used with 'deploylatestreleaseaction' or 'deploynewreleaseaction'.
- Tenant
Ids []string - The IDs of the tenants to deploy to.
- Timezone string
- The timezone for the trigger.
- project
Id String - The ID of the project to attach the trigger.
- space
Id String - The space ID where this trigger's project exists.
- channel
Id String - The channel ID to use when creating the release. Will use the default channel if left blank.
- continuous
Daily ProjectSchedule Scheduled Trigger Continuous Daily Schedule - The daily schedule for the trigger.
- cron
Expression ProjectSchedule Scheduled Trigger Cron Expression Schedule - The cron expression schedule for the trigger.
- days
Per ProjectMonth Schedule Scheduled Trigger Days Per Month Schedule - The daily schedule for the trigger.
- deploy
Latest ProjectRelease Action Scheduled Trigger Deploy Latest Release Action - Configuration for deploying the latest release. Can not be used with 'deploynewreleaseaction' or 'runrunbook*action'.
- deploy
New ProjectRelease Action Scheduled Trigger Deploy New Release Action - Configuration for deploying a new release. Can not be used with 'deploylatestreleaseaction' or 'runrunbook*action'.
- description String
- A description of the trigger.
- is
Disabled Boolean - Indicates whether the trigger is disabled.
- name String
- The name of this resource.
- once
Daily ProjectSchedule Scheduled Trigger Once Daily Schedule - The daily schedule for the trigger.
- project
Scheduled StringTrigger Id - The ID of this resource.
- run
Runbook ProjectAction Scheduled Trigger Run Runbook Action - Configuration for running a runbook. Can not be used with 'deploylatestreleaseaction' or 'deploynewreleaseaction'.
- tenant
Ids List<String> - The IDs of the tenants to deploy to.
- timezone String
- The timezone for the trigger.
- project
Id string - The ID of the project to attach the trigger.
- space
Id string - The space ID where this trigger's project exists.
- channel
Id string - The channel ID to use when creating the release. Will use the default channel if left blank.
- continuous
Daily ProjectSchedule Scheduled Trigger Continuous Daily Schedule - The daily schedule for the trigger.
- cron
Expression ProjectSchedule Scheduled Trigger Cron Expression Schedule - The cron expression schedule for the trigger.
- days
Per ProjectMonth Schedule Scheduled Trigger Days Per Month Schedule - The daily schedule for the trigger.
- deploy
Latest ProjectRelease Action Scheduled Trigger Deploy Latest Release Action - Configuration for deploying the latest release. Can not be used with 'deploynewreleaseaction' or 'runrunbook*action'.
- deploy
New ProjectRelease Action Scheduled Trigger Deploy New Release Action - Configuration for deploying a new release. Can not be used with 'deploylatestreleaseaction' or 'runrunbook*action'.
- description string
- A description of the trigger.
- is
Disabled boolean - Indicates whether the trigger is disabled.
- name string
- The name of this resource.
- once
Daily ProjectSchedule Scheduled Trigger Once Daily Schedule - The daily schedule for the trigger.
- project
Scheduled stringTrigger Id - The ID of this resource.
- run
Runbook ProjectAction Scheduled Trigger Run Runbook Action - Configuration for running a runbook. Can not be used with 'deploylatestreleaseaction' or 'deploynewreleaseaction'.
- tenant
Ids 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_ Projectschedule Scheduled Trigger Continuous Daily Schedule Args - The daily schedule for the trigger.
- cron_
expression_ Projectschedule Scheduled Trigger Cron Expression Schedule Args - The cron expression schedule for the trigger.
- days_
per_ Projectmonth_ schedule Scheduled Trigger Days Per Month Schedule Args - The daily schedule for the trigger.
- deploy_
latest_ Projectrelease_ action Scheduled Trigger Deploy Latest Release Action Args - Configuration for deploying the latest release. Can not be used with 'deploynewreleaseaction' or 'runrunbook*action'.
- deploy_
new_ Projectrelease_ action Scheduled Trigger Deploy New Release Action Args - 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_ Projectschedule Scheduled Trigger Once Daily Schedule Args - The daily schedule for the trigger.
- project_
scheduled_ strtrigger_ id - The ID of this resource.
- run_
runbook_ Projectaction Scheduled Trigger Run Runbook Action Args - 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.
- project
Id String - The ID of the project to attach the trigger.
- space
Id String - The space ID where this trigger's project exists.
- channel
Id String - The channel ID to use when creating the release. Will use the default channel if left blank.
- continuous
Daily Property MapSchedule - The daily schedule for the trigger.
- cron
Expression Property MapSchedule - The cron expression schedule for the trigger.
- days
Per Property MapMonth Schedule - The daily schedule for the trigger.
- deploy
Latest Property MapRelease Action - Configuration for deploying the latest release. Can not be used with 'deploynewreleaseaction' or 'runrunbook*action'.
- deploy
New Property MapRelease Action - Configuration for deploying a new release. Can not be used with 'deploylatestreleaseaction' or 'runrunbook*action'.
- description String
- A description of the trigger.
- is
Disabled Boolean - Indicates whether the trigger is disabled.
- name String
- The name of this resource.
- once
Daily Property MapSchedule - The daily schedule for the trigger.
- project
Scheduled StringTrigger Id - The ID of this resource.
- run
Runbook Property MapAction - Configuration for running a runbook. Can not be used with 'deploylatestreleaseaction' or 'deploynewreleaseaction'.
- tenant
Ids 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.
- Channel
Id string - The channel ID to use when creating the release. Will use the default channel if left blank.
- Continuous
Daily ProjectSchedule Scheduled Trigger Continuous Daily Schedule - The daily schedule for the trigger.
- Cron
Expression ProjectSchedule Scheduled Trigger Cron Expression Schedule - The cron expression schedule for the trigger.
- Days
Per ProjectMonth Schedule Scheduled Trigger Days Per Month Schedule - The daily schedule for the trigger.
- Deploy
Latest ProjectRelease Action Scheduled Trigger Deploy Latest Release Action - Configuration for deploying the latest release. Can not be used with 'deploynewreleaseaction' or 'runrunbook*action'.
- Deploy
New ProjectRelease Action Scheduled Trigger Deploy New Release Action - Configuration for deploying a new release. Can not be used with 'deploylatestreleaseaction' or 'runrunbook*action'.
- Description string
- A description of the trigger.
- Is
Disabled bool - Indicates whether the trigger is disabled.
- Name string
- The name of this resource.
- Once
Daily ProjectSchedule Scheduled Trigger Once Daily Schedule - The daily schedule for the trigger.
- Project
Id string - The ID of the project to attach the trigger.
- Project
Scheduled stringTrigger Id - The ID of this resource.
- Run
Runbook ProjectAction Scheduled Trigger Run Runbook Action - Configuration for running a runbook. Can not be used with 'deploylatestreleaseaction' or 'deploynewreleaseaction'.
- Space
Id string - The space ID where this trigger's project exists.
- Tenant
Ids List<string> - The IDs of the tenants to deploy to.
- Timezone string
- The timezone for the trigger.
- Channel
Id string - The channel ID to use when creating the release. Will use the default channel if left blank.
- Continuous
Daily ProjectSchedule Scheduled Trigger Continuous Daily Schedule Args - The daily schedule for the trigger.
- Cron
Expression ProjectSchedule Scheduled Trigger Cron Expression Schedule Args - The cron expression schedule for the trigger.
- Days
Per ProjectMonth Schedule Scheduled Trigger Days Per Month Schedule Args - The daily schedule for the trigger.
- Deploy
Latest ProjectRelease Action Scheduled Trigger Deploy Latest Release Action Args - Configuration for deploying the latest release. Can not be used with 'deploynewreleaseaction' or 'runrunbook*action'.
- Deploy
New ProjectRelease Action Scheduled Trigger Deploy New Release Action Args - Configuration for deploying a new release. Can not be used with 'deploylatestreleaseaction' or 'runrunbook*action'.
- Description string
- A description of the trigger.
- Is
Disabled bool - Indicates whether the trigger is disabled.
- Name string
- The name of this resource.
- Once
Daily ProjectSchedule Scheduled Trigger Once Daily Schedule Args - The daily schedule for the trigger.
- Project
Id string - The ID of the project to attach the trigger.
- Project
Scheduled stringTrigger Id - The ID of this resource.
- Run
Runbook ProjectAction Scheduled Trigger Run Runbook Action Args - Configuration for running a runbook. Can not be used with 'deploylatestreleaseaction' or 'deploynewreleaseaction'.
- Space
Id string - The space ID where this trigger's project exists.
- Tenant
Ids []string - The IDs of the tenants to deploy to.
- Timezone string
- The timezone for the trigger.
- channel
Id String - The channel ID to use when creating the release. Will use the default channel if left blank.
- continuous
Daily ProjectSchedule Scheduled Trigger Continuous Daily Schedule - The daily schedule for the trigger.
- cron
Expression ProjectSchedule Scheduled Trigger Cron Expression Schedule - The cron expression schedule for the trigger.
- days
Per ProjectMonth Schedule Scheduled Trigger Days Per Month Schedule - The daily schedule for the trigger.
- deploy
Latest ProjectRelease Action Scheduled Trigger Deploy Latest Release Action - Configuration for deploying the latest release. Can not be used with 'deploynewreleaseaction' or 'runrunbook*action'.
- deploy
New ProjectRelease Action Scheduled Trigger Deploy New Release Action - Configuration for deploying a new release. Can not be used with 'deploylatestreleaseaction' or 'runrunbook*action'.
- description String
- A description of the trigger.
- is
Disabled Boolean - Indicates whether the trigger is disabled.
- name String
- The name of this resource.
- once
Daily ProjectSchedule Scheduled Trigger Once Daily Schedule - The daily schedule for the trigger.
- project
Id String - The ID of the project to attach the trigger.
- project
Scheduled StringTrigger Id - The ID of this resource.
- run
Runbook ProjectAction Scheduled Trigger Run Runbook Action - Configuration for running a runbook. Can not be used with 'deploylatestreleaseaction' or 'deploynewreleaseaction'.
- space
Id String - The space ID where this trigger's project exists.
- tenant
Ids List<String> - The IDs of the tenants to deploy to.
- timezone String
- The timezone for the trigger.
- channel
Id string - The channel ID to use when creating the release. Will use the default channel if left blank.
- continuous
Daily ProjectSchedule Scheduled Trigger Continuous Daily Schedule - The daily schedule for the trigger.
- cron
Expression ProjectSchedule Scheduled Trigger Cron Expression Schedule - The cron expression schedule for the trigger.
- days
Per ProjectMonth Schedule Scheduled Trigger Days Per Month Schedule - The daily schedule for the trigger.
- deploy
Latest ProjectRelease Action Scheduled Trigger Deploy Latest Release Action - Configuration for deploying the latest release. Can not be used with 'deploynewreleaseaction' or 'runrunbook*action'.
- deploy
New ProjectRelease Action Scheduled Trigger Deploy New Release Action - Configuration for deploying a new release. Can not be used with 'deploylatestreleaseaction' or 'runrunbook*action'.
- description string
- A description of the trigger.
- is
Disabled boolean - Indicates whether the trigger is disabled.
- name string
- The name of this resource.
- once
Daily ProjectSchedule Scheduled Trigger Once Daily Schedule - The daily schedule for the trigger.
- project
Id string - The ID of the project to attach the trigger.
- project
Scheduled stringTrigger Id - The ID of this resource.
- run
Runbook ProjectAction Scheduled Trigger Run Runbook Action - Configuration for running a runbook. Can not be used with 'deploylatestreleaseaction' or 'deploynewreleaseaction'.
- space
Id string - The space ID where this trigger's project exists.
- tenant
Ids 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_ Projectschedule Scheduled Trigger Continuous Daily Schedule Args - The daily schedule for the trigger.
- cron_
expression_ Projectschedule Scheduled Trigger Cron Expression Schedule Args - The cron expression schedule for the trigger.
- days_
per_ Projectmonth_ schedule Scheduled Trigger Days Per Month Schedule Args - The daily schedule for the trigger.
- deploy_
latest_ Projectrelease_ action Scheduled Trigger Deploy Latest Release Action Args - Configuration for deploying the latest release. Can not be used with 'deploynewreleaseaction' or 'runrunbook*action'.
- deploy_
new_ Projectrelease_ action Scheduled Trigger Deploy New Release Action Args - 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_ Projectschedule Scheduled Trigger Once Daily Schedule Args - The daily schedule for the trigger.
- project_
id str - The ID of the project to attach the trigger.
- project_
scheduled_ strtrigger_ id - The ID of this resource.
- run_
runbook_ Projectaction Scheduled Trigger Run Runbook Action Args - 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.
- channel
Id String - The channel ID to use when creating the release. Will use the default channel if left blank.
- continuous
Daily Property MapSchedule - The daily schedule for the trigger.
- cron
Expression Property MapSchedule - The cron expression schedule for the trigger.
- days
Per Property MapMonth Schedule - The daily schedule for the trigger.
- deploy
Latest Property MapRelease Action - Configuration for deploying the latest release. Can not be used with 'deploynewreleaseaction' or 'runrunbook*action'.
- deploy
New Property MapRelease Action - Configuration for deploying a new release. Can not be used with 'deploylatestreleaseaction' or 'runrunbook*action'.
- description String
- A description of the trigger.
- is
Disabled Boolean - Indicates whether the trigger is disabled.
- name String
- The name of this resource.
- once
Daily Property MapSchedule - The daily schedule for the trigger.
- project
Id String - The ID of the project to attach the trigger.
- project
Scheduled StringTrigger Id - The ID of this resource.
- run
Runbook Property MapAction - Configuration for running a runbook. Can not be used with 'deploylatestreleaseaction' or 'deploynewreleaseaction'.
- space
Id String - The space ID where this trigger's project exists.
- tenant
Ids List<String> - The IDs of the tenants to deploy to.
- timezone String
- The timezone for the trigger.
Supporting Types
ProjectScheduledTriggerContinuousDailySchedule, ProjectScheduledTriggerContinuousDailyScheduleArgs
- Days
Of List<string>Weeks - The days of the week to run the trigger.
- Interval string
- The interval in minutes to run the trigger.
- Run
After string - The time of day to start the trigger.
- Run
Until string - The time of day to end the trigger.
- Hour
Interval double - How often to run the trigger in hours. Only used when the interval is set to 'OnceHourly'.
- Minute
Interval double - How often to run the trigger in minutes. Only used when the interval is set to 'OnceEveryMinute'.
- Days
Of []stringWeeks - The days of the week to run the trigger.
- Interval string
- The interval in minutes to run the trigger.
- Run
After string - The time of day to start the trigger.
- Run
Until string - The time of day to end the trigger.
- Hour
Interval float64 - How often to run the trigger in hours. Only used when the interval is set to 'OnceHourly'.
- Minute
Interval float64 - How often to run the trigger in minutes. Only used when the interval is set to 'OnceEveryMinute'.
- days
Of List<String>Weeks - The days of the week to run the trigger.
- interval String
- The interval in minutes to run the trigger.
- run
After String - The time of day to start the trigger.
- run
Until String - The time of day to end the trigger.
- hour
Interval Double - How often to run the trigger in hours. Only used when the interval is set to 'OnceHourly'.
- minute
Interval Double - How often to run the trigger in minutes. Only used when the interval is set to 'OnceEveryMinute'.
- days
Of string[]Weeks - The days of the week to run the trigger.
- interval string
- The interval in minutes to run the trigger.
- run
After string - The time of day to start the trigger.
- run
Until string - The time of day to end the trigger.
- hour
Interval number - How often to run the trigger in hours. Only used when the interval is set to 'OnceHourly'.
- minute
Interval number - How often to run the trigger in minutes. Only used when the interval is set to 'OnceEveryMinute'.
- days_
of_ Sequence[str]weeks - 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'.
- days
Of List<String>Weeks - The days of the week to run the trigger.
- interval String
- The interval in minutes to run the trigger.
- run
After String - The time of day to start the trigger.
- run
Until String - The time of day to end the trigger.
- hour
Interval Number - How often to run the trigger in hours. Only used when the interval is set to 'OnceHourly'.
- minute
Interval Number - How often to run the trigger in minutes. Only used when the interval is set to 'OnceEveryMinute'.
ProjectScheduledTriggerCronExpressionSchedule, ProjectScheduledTriggerCronExpressionScheduleArgs
- Cron
Expression string - The cron expression for the schedule.
- Cron
Expression string - The cron expression for the schedule.
- cron
Expression String - The cron expression for the schedule.
- cron
Expression string - The cron expression for the schedule.
- cron_
expression str - The cron expression for the schedule.
- cron
Expression String - The cron expression for the schedule.
ProjectScheduledTriggerDaysPerMonthSchedule, ProjectScheduledTriggerDaysPerMonthScheduleArgs
- Monthly
Schedule stringType - The type of monthly schedule to run the trigger
- Start
Time string - The time of day to start the trigger.
- Date
Of stringMonth - 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 stringOf Month - 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 stringWeek - Which day of the week to run the trigger on. Required when monthlyscheduletype is set to 'DayOfMonth'.
- Monthly
Schedule stringType - The type of monthly schedule to run the trigger
- Start
Time string - The time of day to start the trigger.
- Date
Of stringMonth - 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 stringOf Month - 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 stringWeek - Which day of the week to run the trigger on. Required when monthlyscheduletype is set to 'DayOfMonth'.
- monthly
Schedule StringType - The type of monthly schedule to run the trigger
- start
Time String - The time of day to start the trigger.
- date
Of StringMonth - 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 StringOf Month - 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 StringWeek - Which day of the week to run the trigger on. Required when monthlyscheduletype is set to 'DayOfMonth'.
- monthly
Schedule stringType - The type of monthly schedule to run the trigger
- start
Time string - The time of day to start the trigger.
- date
Of stringMonth - 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 stringOf Month - 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 stringWeek - Which day of the week to run the trigger on. Required when monthlyscheduletype is set to 'DayOfMonth'.
- monthly_
schedule_ strtype - The type of monthly schedule to run the trigger
- start_
time str - The time of day to start the trigger.
- date_
of_ strmonth - 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_ strof_ month - 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_ strweek - Which day of the week to run the trigger on. Required when monthlyscheduletype is set to 'DayOfMonth'.
- monthly
Schedule StringType - The type of monthly schedule to run the trigger
- start
Time String - The time of day to start the trigger.
- date
Of StringMonth - 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 StringOf Month - 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 StringWeek - Which day of the week to run the trigger on. Required when monthlyscheduletype is set to 'DayOfMonth'.
ProjectScheduledTriggerDeployLatestReleaseAction, ProjectScheduledTriggerDeployLatestReleaseActionArgs
- Destination
Environment stringId - The environment ID to deploy the selected release to.
- Source
Environment stringId - 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.
- Destination
Environment stringId - The environment ID to deploy the selected release to.
- Source
Environment stringId - 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.
- destination
Environment StringId - The environment ID to deploy the selected release to.
- source
Environment StringId - The environment ID to use when selecting the release to deploy from.
- should
Redeploy Boolean - Enable to re-deploy to the deployment targets even if they are already up-to-date with the current deployment.
- destination
Environment stringId - The environment ID to deploy the selected release to.
- source
Environment stringId - The environment ID to use when selecting the release to deploy from.
- should
Redeploy boolean - Enable to re-deploy to the deployment targets even if they are already up-to-date with the current deployment.
- destination_
environment_ strid - The environment ID to deploy the selected release to.
- source_
environment_ strid - 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.
- destination
Environment StringId - The environment ID to deploy the selected release to.
- source
Environment StringId - The environment ID to use when selecting the release to deploy from.
- should
Redeploy Boolean - Enable to re-deploy to the deployment targets even if they are already up-to-date with the current deployment.
ProjectScheduledTriggerDeployNewReleaseAction, ProjectScheduledTriggerDeployNewReleaseActionArgs
- Destination
Environment stringId - The environment ID to deploy the selected release to.
- Git
Reference string - The git reference to use when creating the release. Can be a branch, tag, or commit hash.
- Destination
Environment stringId - The environment ID to deploy the selected release to.
- Git
Reference string - The git reference to use when creating the release. Can be a branch, tag, or commit hash.
- destination
Environment StringId - The environment ID to deploy the selected release to.
- git
Reference String - The git reference to use when creating the release. Can be a branch, tag, or commit hash.
- destination
Environment stringId - The environment ID to deploy the selected release to.
- git
Reference string - The git reference to use when creating the release. Can be a branch, tag, or commit hash.
- destination_
environment_ strid - 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.
- destination
Environment StringId - The environment ID to deploy the selected release to.
- git
Reference String - The git reference to use when creating the release. Can be a branch, tag, or commit hash.
ProjectScheduledTriggerOnceDailySchedule, ProjectScheduledTriggerOnceDailyScheduleArgs
- Days
Of List<string>Weeks - The days of the week to run the trigger.
- Start
Time string - The time of day to start the trigger.
- Days
Of []stringWeeks - The days of the week to run the trigger.
- Start
Time string - The time of day to start the trigger.
- days
Of List<String>Weeks - The days of the week to run the trigger.
- start
Time String - The time of day to start the trigger.
- days
Of string[]Weeks - The days of the week to run the trigger.
- start
Time string - The time of day to start the trigger.
- days_
of_ Sequence[str]weeks - The days of the week to run the trigger.
- start_
time str - The time of day to start the trigger.
- days
Of List<String>Weeks - The days of the week to run the trigger.
- start
Time String - The time of day to start the trigger.
ProjectScheduledTriggerRunRunbookAction, ProjectScheduledTriggerRunRunbookActionArgs
- Runbook
Id string - The ID of the runbook to run.
- Target
Environment List<string>Ids - The IDs of the environments to run the runbook in.
- Runbook
Id string - The ID of the runbook to run.
- Target
Environment []stringIds - The IDs of the environments to run the runbook in.
- runbook
Id String - The ID of the runbook to run.
- target
Environment List<String>Ids - The IDs of the environments to run the runbook in.
- runbook
Id string - The ID of the runbook to run.
- target
Environment string[]Ids - The IDs of the environments to run the runbook in.
- runbook_
id str - The ID of the runbook to run.
- target_
environment_ Sequence[str]ids - The IDs of the environments to run the runbook in.
- runbook
Id String - The ID of the runbook to run.
- target
Environment List<String>Ids - 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.