This provider is currently in preview.
published on Thursday, May 21, 2026 by Pulumi
This provider is currently in preview.
published on Thursday, May 21, 2026 by Pulumi
Creates a custom deployment schedule for a stack using Pulumi Deployments. Custom schedules allow you to automate recurring or one-time Pulumi operations on a stack. The request must include exactly one of ‘scheduleCron’ (a cron expression for recurring executions, e.g. ‘0 */4 * * *’ for every 4 hours) or ‘scheduleOnce’ (an ISO 8601 timestamp for a one-time execution). The ‘request’ field contains the deployment configuration that will be executed on each scheduled run, including the Pulumi operation type and any settings overrides. The stack must have deployment settings configured before a schedule can be created.
Create ScheduledDeployment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ScheduledDeployment(name: string, args: ScheduledDeploymentArgs, opts?: CustomResourceOptions);@overload
def ScheduledDeployment(resource_name: str,
args: ScheduledDeploymentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ScheduledDeployment(resource_name: str,
opts: Optional[ResourceOptions] = None,
org_name: Optional[str] = None,
project_name: Optional[str] = None,
stack_name: Optional[str] = None,
request: Optional[Any] = None,
schedule_cron: Optional[str] = None,
schedule_id: Optional[str] = None,
schedule_once: Optional[str] = None)func NewScheduledDeployment(ctx *Context, name string, args ScheduledDeploymentArgs, opts ...ResourceOption) (*ScheduledDeployment, error)public ScheduledDeployment(string name, ScheduledDeploymentArgs args, CustomResourceOptions? opts = null)
public ScheduledDeployment(String name, ScheduledDeploymentArgs args)
public ScheduledDeployment(String name, ScheduledDeploymentArgs args, CustomResourceOptions options)
type: pulumiservice:api/deployments:ScheduledDeployment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "pulumiservice_api_deployments_scheduleddeployment" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ScheduledDeploymentArgs
- 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 ScheduledDeploymentArgs
- 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 ScheduledDeploymentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ScheduledDeploymentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ScheduledDeploymentArgs
- 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 scheduledDeploymentResource = new PulumiService.Api.Deployments.ScheduledDeployment("scheduledDeploymentResource", new()
{
OrgName = "string",
ProjectName = "string",
StackName = "string",
Request = "any",
ScheduleCron = "string",
ScheduleID = "string",
ScheduleOnce = "string",
});
example, err := deployments.NewScheduledDeployment(ctx, "scheduledDeploymentResource", &deployments.ScheduledDeploymentArgs{
OrgName: pulumi.String("string"),
ProjectName: pulumi.String("string"),
StackName: pulumi.String("string"),
Request: pulumi.Any("any"),
ScheduleCron: pulumi.String("string"),
ScheduleID: pulumi.String("string"),
ScheduleOnce: pulumi.String("string"),
})
resource "pulumiservice_api_deployments_scheduleddeployment" "scheduledDeploymentResource" {
org_name = "string"
project_name = "string"
stack_name = "string"
request = "any"
schedule_cron = "string"
schedule_id = "string"
schedule_once = "string"
}
var scheduledDeploymentResource = new ScheduledDeployment("scheduledDeploymentResource", ScheduledDeploymentArgs.builder()
.orgName("string")
.projectName("string")
.stackName("string")
.request("any")
.scheduleCron("string")
.scheduleID("string")
.scheduleOnce("string")
.build());
scheduled_deployment_resource = pulumiservice.api.deployments.ScheduledDeployment("scheduledDeploymentResource",
org_name="string",
project_name="string",
stack_name="string",
request="any",
schedule_cron="string",
schedule_id="string",
schedule_once="string")
const scheduledDeploymentResource = new pulumiservice.api.deployments.ScheduledDeployment("scheduledDeploymentResource", {
orgName: "string",
projectName: "string",
stackName: "string",
request: "any",
scheduleCron: "string",
scheduleID: "string",
scheduleOnce: "string",
});
type: pulumiservice:api/deployments:ScheduledDeployment
properties:
orgName: string
projectName: string
request: any
scheduleCron: string
scheduleID: string
scheduleOnce: string
stackName: string
ScheduledDeployment 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 ScheduledDeployment resource accepts the following input properties:
- Org
Name string - The organization name
- Project
Name string - The project name
- Stack
Name string - The stack name
- Request object
- Deployment request payload to execute when the schedule fires. This has the same shape and semantics as CreateDeploymentRequest used for immediate deployments.
- Schedule
Cron string - Cron expression defining a recurring schedule for this deployment. When set, scheduleOnce must be null. Uses standard 5-field cron syntax (MIN HOUR DOM MON DOW) and is evaluated in UTC.
- Schedule
ID string - The schedule identifier
- Schedule
Once string - Single point-in-time schedule for this deployment. When set, scheduleCron must be null. The value must be an ISO 8601 timestamp with timezone.
- Org
Name string - The organization name
- Project
Name string - The project name
- Stack
Name string - The stack name
- Request interface{}
- Deployment request payload to execute when the schedule fires. This has the same shape and semantics as CreateDeploymentRequest used for immediate deployments.
- Schedule
Cron string - Cron expression defining a recurring schedule for this deployment. When set, scheduleOnce must be null. Uses standard 5-field cron syntax (MIN HOUR DOM MON DOW) and is evaluated in UTC.
- Schedule
ID string - The schedule identifier
- Schedule
Once string - Single point-in-time schedule for this deployment. When set, scheduleCron must be null. The value must be an ISO 8601 timestamp with timezone.
- org_
name string - The organization name
- project_
name string - The project name
- stack_
name string - The stack name
- request any
- Deployment request payload to execute when the schedule fires. This has the same shape and semantics as CreateDeploymentRequest used for immediate deployments.
- schedule_
cron string - Cron expression defining a recurring schedule for this deployment. When set, scheduleOnce must be null. Uses standard 5-field cron syntax (MIN HOUR DOM MON DOW) and is evaluated in UTC.
- schedule_
id string - The schedule identifier
- schedule_
once string - Single point-in-time schedule for this deployment. When set, scheduleCron must be null. The value must be an ISO 8601 timestamp with timezone.
- org
Name String - The organization name
- project
Name String - The project name
- stack
Name String - The stack name
- request Object
- Deployment request payload to execute when the schedule fires. This has the same shape and semantics as CreateDeploymentRequest used for immediate deployments.
- schedule
Cron String - Cron expression defining a recurring schedule for this deployment. When set, scheduleOnce must be null. Uses standard 5-field cron syntax (MIN HOUR DOM MON DOW) and is evaluated in UTC.
- schedule
ID String - The schedule identifier
- schedule
Once String - Single point-in-time schedule for this deployment. When set, scheduleCron must be null. The value must be an ISO 8601 timestamp with timezone.
- org
Name string - The organization name
- project
Name string - The project name
- stack
Name string - The stack name
- request any
- Deployment request payload to execute when the schedule fires. This has the same shape and semantics as CreateDeploymentRequest used for immediate deployments.
- schedule
Cron string - Cron expression defining a recurring schedule for this deployment. When set, scheduleOnce must be null. Uses standard 5-field cron syntax (MIN HOUR DOM MON DOW) and is evaluated in UTC.
- schedule
ID string - The schedule identifier
- schedule
Once string - Single point-in-time schedule for this deployment. When set, scheduleCron must be null. The value must be an ISO 8601 timestamp with timezone.
- org_
name str - The organization name
- project_
name str - The project name
- stack_
name str - The stack name
- request Any
- Deployment request payload to execute when the schedule fires. This has the same shape and semantics as CreateDeploymentRequest used for immediate deployments.
- schedule_
cron str - Cron expression defining a recurring schedule for this deployment. When set, scheduleOnce must be null. Uses standard 5-field cron syntax (MIN HOUR DOM MON DOW) and is evaluated in UTC.
- schedule_
id str - The schedule identifier
- schedule_
once str - Single point-in-time schedule for this deployment. When set, scheduleCron must be null. The value must be an ISO 8601 timestamp with timezone.
- org
Name String - The organization name
- project
Name String - The project name
- stack
Name String - The stack name
- request Any
- Deployment request payload to execute when the schedule fires. This has the same shape and semantics as CreateDeploymentRequest used for immediate deployments.
- schedule
Cron String - Cron expression defining a recurring schedule for this deployment. When set, scheduleOnce must be null. Uses standard 5-field cron syntax (MIN HOUR DOM MON DOW) and is evaluated in UTC.
- schedule
ID String - The schedule identifier
- schedule
Once String - Single point-in-time schedule for this deployment. When set, scheduleCron must be null. The value must be an ISO 8601 timestamp with timezone.
Outputs
All input properties are implicitly available as output properties. Additionally, the ScheduledDeployment resource produces the following output properties:
- Created string
- The timestamp when this scheduled action was created.
- Definition Dictionary<string, object>
- The action definition, which varies based on the action kind.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kind string
- The kind of action to be executed.
- Last
Executed string - The timestamp of the last execution, if any.
- Modified string
- The timestamp when this scheduled action was last modified.
- Next
Execution string - The timestamp of the next scheduled execution.
- Org
ID string - The organization ID that owns this scheduled action.
- Paused bool
- Whether the scheduled action is currently paused.
- Created string
- The timestamp when this scheduled action was created.
- Definition map[string]interface{}
- The action definition, which varies based on the action kind.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kind string
- The kind of action to be executed.
- Last
Executed string - The timestamp of the last execution, if any.
- Modified string
- The timestamp when this scheduled action was last modified.
- Next
Execution string - The timestamp of the next scheduled execution.
- Org
ID string - The organization ID that owns this scheduled action.
- Paused bool
- Whether the scheduled action is currently paused.
- created string
- The timestamp when this scheduled action was created.
- definition map(any)
- The action definition, which varies based on the action kind.
- id string
- The provider-assigned unique ID for this managed resource.
- kind string
- The kind of action to be executed.
- last_
executed string - The timestamp of the last execution, if any.
- modified string
- The timestamp when this scheduled action was last modified.
- next_
execution string - The timestamp of the next scheduled execution.
- org_
id string - The organization ID that owns this scheduled action.
- paused bool
- Whether the scheduled action is currently paused.
- created String
- The timestamp when this scheduled action was created.
- definition Map<String,Object>
- The action definition, which varies based on the action kind.
- id String
- The provider-assigned unique ID for this managed resource.
- kind String
- The kind of action to be executed.
- last
Executed String - The timestamp of the last execution, if any.
- modified String
- The timestamp when this scheduled action was last modified.
- next
Execution String - The timestamp of the next scheduled execution.
- org
ID String - The organization ID that owns this scheduled action.
- paused Boolean
- Whether the scheduled action is currently paused.
- created string
- The timestamp when this scheduled action was created.
- definition {[key: string]: any}
- The action definition, which varies based on the action kind.
- id string
- The provider-assigned unique ID for this managed resource.
- kind string
- The kind of action to be executed.
- last
Executed string - The timestamp of the last execution, if any.
- modified string
- The timestamp when this scheduled action was last modified.
- next
Execution string - The timestamp of the next scheduled execution.
- org
ID string - The organization ID that owns this scheduled action.
- paused boolean
- Whether the scheduled action is currently paused.
- created str
- The timestamp when this scheduled action was created.
- definition Mapping[str, Any]
- The action definition, which varies based on the action kind.
- id str
- The provider-assigned unique ID for this managed resource.
- kind str
- The kind of action to be executed.
- last_
executed str - The timestamp of the last execution, if any.
- modified str
- The timestamp when this scheduled action was last modified.
- next_
execution str - The timestamp of the next scheduled execution.
- org_
id str - The organization ID that owns this scheduled action.
- paused bool
- Whether the scheduled action is currently paused.
- created String
- The timestamp when this scheduled action was created.
- definition Map<Any>
- The action definition, which varies based on the action kind.
- id String
- The provider-assigned unique ID for this managed resource.
- kind String
- The kind of action to be executed.
- last
Executed String - The timestamp of the last execution, if any.
- modified String
- The timestamp when this scheduled action was last modified.
- next
Execution String - The timestamp of the next scheduled execution.
- org
ID String - The organization ID that owns this scheduled action.
- paused Boolean
- Whether the scheduled action is currently paused.
Package Details
- Repository
- pulumiservice pulumi/pulumi-pulumiservice
- License
- Apache-2.0
This provider is currently in preview.
published on Thursday, May 21, 2026 by Pulumi