1. Packages
  2. Pulumi Cloud (Pulumi Service provider)
  3. API Docs
  4. TtlSchedule

This provider is currently in preview.

Pulumi Cloud v0.29.1 published on Tuesday, Apr 1, 2025 by Pulumi

pulumiservice.TtlSchedule

Explore with Pulumi AI

This provider is currently in preview.

Pulumi Cloud v0.29.1 published on Tuesday, Apr 1, 2025 by Pulumi

A scheduled stack destroy run.

Create TtlSchedule Resource

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

Constructor syntax

new TtlSchedule(name: string, args: TtlScheduleArgs, opts?: CustomResourceOptions);
@overload
def TtlSchedule(resource_name: str,
                args: TtlScheduleArgs,
                opts: Optional[ResourceOptions] = None)

@overload
def TtlSchedule(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                organization: Optional[str] = None,
                project: Optional[str] = None,
                stack: Optional[str] = None,
                timestamp: Optional[str] = None,
                delete_after_destroy: Optional[bool] = None)
func NewTtlSchedule(ctx *Context, name string, args TtlScheduleArgs, opts ...ResourceOption) (*TtlSchedule, error)
public TtlSchedule(string name, TtlScheduleArgs args, CustomResourceOptions? opts = null)
public TtlSchedule(String name, TtlScheduleArgs args)
public TtlSchedule(String name, TtlScheduleArgs args, CustomResourceOptions options)
type: pulumiservice:TtlSchedule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. TtlScheduleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. TtlScheduleArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. TtlScheduleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. TtlScheduleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. TtlScheduleArgs
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 ttlScheduleResource = new PulumiService.TtlSchedule("ttlScheduleResource", new()
{
    Organization = "string",
    Project = "string",
    Stack = "string",
    Timestamp = "string",
    DeleteAfterDestroy = false,
});
Copy
example, err := pulumiservice.NewTtlSchedule(ctx, "ttlScheduleResource", &pulumiservice.TtlScheduleArgs{
	Organization:       pulumi.String("string"),
	Project:            pulumi.String("string"),
	Stack:              pulumi.String("string"),
	Timestamp:          pulumi.String("string"),
	DeleteAfterDestroy: pulumi.Bool(false),
})
Copy
var ttlScheduleResource = new TtlSchedule("ttlScheduleResource", TtlScheduleArgs.builder()
    .organization("string")
    .project("string")
    .stack("string")
    .timestamp("string")
    .deleteAfterDestroy(false)
    .build());
Copy
ttl_schedule_resource = pulumiservice.TtlSchedule("ttlScheduleResource",
    organization="string",
    project="string",
    stack="string",
    timestamp="string",
    delete_after_destroy=False)
Copy
const ttlScheduleResource = new pulumiservice.TtlSchedule("ttlScheduleResource", {
    organization: "string",
    project: "string",
    stack: "string",
    timestamp: "string",
    deleteAfterDestroy: false,
});
Copy
type: pulumiservice:TtlSchedule
properties:
    deleteAfterDestroy: false
    organization: string
    project: string
    stack: string
    timestamp: string
Copy

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

Organization
This property is required.
Changes to this property will trigger replacement.
string
Organization name.
Project
This property is required.
Changes to this property will trigger replacement.
string
Project name.
Stack
This property is required.
Changes to this property will trigger replacement.
string
Stack name.
Timestamp
This property is required.
Changes to this property will trigger replacement.
string
The time at which the schedule should run, in ISO 8601 format. Eg: 2020-01-01T00:00:00Z.
DeleteAfterDestroy bool
True if the stack and all associated history and settings should be deleted.
Organization
This property is required.
Changes to this property will trigger replacement.
string
Organization name.
Project
This property is required.
Changes to this property will trigger replacement.
string
Project name.
Stack
This property is required.
Changes to this property will trigger replacement.
string
Stack name.
Timestamp
This property is required.
Changes to this property will trigger replacement.
string
The time at which the schedule should run, in ISO 8601 format. Eg: 2020-01-01T00:00:00Z.
DeleteAfterDestroy bool
True if the stack and all associated history and settings should be deleted.
organization
This property is required.
Changes to this property will trigger replacement.
String
Organization name.
project
This property is required.
Changes to this property will trigger replacement.
String
Project name.
stack
This property is required.
Changes to this property will trigger replacement.
String
Stack name.
timestamp
This property is required.
Changes to this property will trigger replacement.
String
The time at which the schedule should run, in ISO 8601 format. Eg: 2020-01-01T00:00:00Z.
deleteAfterDestroy Boolean
True if the stack and all associated history and settings should be deleted.
organization
This property is required.
Changes to this property will trigger replacement.
string
Organization name.
project
This property is required.
Changes to this property will trigger replacement.
string
Project name.
stack
This property is required.
Changes to this property will trigger replacement.
string
Stack name.
timestamp
This property is required.
Changes to this property will trigger replacement.
string
The time at which the schedule should run, in ISO 8601 format. Eg: 2020-01-01T00:00:00Z.
deleteAfterDestroy boolean
True if the stack and all associated history and settings should be deleted.
organization
This property is required.
Changes to this property will trigger replacement.
str
Organization name.
project
This property is required.
Changes to this property will trigger replacement.
str
Project name.
stack
This property is required.
Changes to this property will trigger replacement.
str
Stack name.
timestamp
This property is required.
Changes to this property will trigger replacement.
str
The time at which the schedule should run, in ISO 8601 format. Eg: 2020-01-01T00:00:00Z.
delete_after_destroy bool
True if the stack and all associated history and settings should be deleted.
organization
This property is required.
Changes to this property will trigger replacement.
String
Organization name.
project
This property is required.
Changes to this property will trigger replacement.
String
Project name.
stack
This property is required.
Changes to this property will trigger replacement.
String
Stack name.
timestamp
This property is required.
Changes to this property will trigger replacement.
String
The time at which the schedule should run, in ISO 8601 format. Eg: 2020-01-01T00:00:00Z.
deleteAfterDestroy Boolean
True if the stack and all associated history and settings should be deleted.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
ScheduleId string
Schedule ID of the created schedule, assigned by Pulumi Cloud.
Id string
The provider-assigned unique ID for this managed resource.
ScheduleId string
Schedule ID of the created schedule, assigned by Pulumi Cloud.
id String
The provider-assigned unique ID for this managed resource.
scheduleId String
Schedule ID of the created schedule, assigned by Pulumi Cloud.
id string
The provider-assigned unique ID for this managed resource.
scheduleId string
Schedule ID of the created schedule, assigned by Pulumi Cloud.
id str
The provider-assigned unique ID for this managed resource.
schedule_id str
Schedule ID of the created schedule, assigned by Pulumi Cloud.
id String
The provider-assigned unique ID for this managed resource.
scheduleId String
Schedule ID of the created schedule, assigned by Pulumi Cloud.

Package Details

Repository
pulumiservice pulumi/pulumi-pulumiservice
License
Apache-2.0

This provider is currently in preview.

Pulumi Cloud v0.29.1 published on Tuesday, Apr 1, 2025 by Pulumi