Class Schedule
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.azurenative.automation.Schedule
-
public class Schedule extends com.pulumi.resources.CustomResource
Definition of the schedule. Azure REST API version: 2022-08-08. Prior API version in Azure Native 1.x: 2019-06-01. Other available API versions: 2023-05-15-preview, 2023-11-01. ## Example Usage ### Create or update a schedule ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.azurenative.automation.Schedule; import com.pulumi.azurenative.automation.ScheduleArgs; 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 schedule = new Schedule("schedule", ScheduleArgs.builder() .advancedSchedule() .automationAccountName("myAutomationAccount33") .description("my description of schedule goes here") .expiryTime("2017-04-01T17:28:57.2494819Z") .frequency("Hour") .interval(1) .name("mySchedule") .resourceGroupName("rg") .scheduleName("mySchedule") .startTime("2017-03-27T17:28:57.2494819Z") .build()); } } ``` ## Import An existing resource can be imported using its type token, name, and identifier, e.g. ```sh $ pulumi import azure-native:automation:Schedule mySchedule /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/schedules/{scheduleName} ```
-
-
Constructor Summary
Constructors Constructor Description Schedule(java.lang.String name)
Schedule(java.lang.String name, ScheduleArgs args)
Schedule(java.lang.String name, ScheduleArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.util.Optional<AdvancedScheduleResponse>>
advancedSchedule()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
creationTime()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
description()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
expiryTime()
com.pulumi.core.Output<java.util.Optional<java.lang.Double>>
expiryTimeOffsetMinutes()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
frequency()
static Schedule
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.util.Optional<java.lang.Object>>
interval()
com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>>
isEnabled()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
lastModifiedTime()
com.pulumi.core.Output<java.lang.String>
name()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
nextRun()
com.pulumi.core.Output<java.util.Optional<java.lang.Double>>
nextRunOffsetMinutes()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
startTime()
com.pulumi.core.Output<java.lang.Double>
startTimeOffsetMinutes()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
timeZone()
com.pulumi.core.Output<java.lang.String>
type()
-
-
-
Constructor Detail
-
Schedule
public Schedule(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
Schedule
public Schedule(java.lang.String name, ScheduleArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
Schedule
public Schedule(java.lang.String name, ScheduleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
advancedSchedule
public com.pulumi.core.Output<java.util.Optional<AdvancedScheduleResponse>> advancedSchedule()
- Returns:
- Gets or sets the advanced schedule.
-
creationTime
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> creationTime()
- Returns:
- Gets or sets the creation time.
-
description
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()
- Returns:
- Gets or sets the description.
-
expiryTime
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> expiryTime()
- Returns:
- Gets or sets the end time of the schedule.
-
expiryTimeOffsetMinutes
public com.pulumi.core.Output<java.util.Optional<java.lang.Double>> expiryTimeOffsetMinutes()
- Returns:
- Gets or sets the expiry time's offset in minutes.
-
frequency
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> frequency()
- Returns:
- Gets or sets the frequency of the schedule.
-
interval
public com.pulumi.core.Output<java.util.Optional<java.lang.Object>> interval()
- Returns:
- Gets or sets the interval of the schedule.
-
isEnabled
public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> isEnabled()
- Returns:
- Gets or sets a value indicating whether this schedule is enabled.
-
lastModifiedTime
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> lastModifiedTime()
- Returns:
- Gets or sets the last modified time.
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- The name of the resource
-
nextRun
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> nextRun()
- Returns:
- Gets or sets the next run time of the schedule.
-
nextRunOffsetMinutes
public com.pulumi.core.Output<java.util.Optional<java.lang.Double>> nextRunOffsetMinutes()
- Returns:
- Gets or sets the next run time's offset in minutes.
-
startTime
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> startTime()
- Returns:
- Gets or sets the start time of the schedule.
-
startTimeOffsetMinutes
public com.pulumi.core.Output<java.lang.Double> startTimeOffsetMinutes()
- Returns:
- Gets the start time's offset in minutes.
-
timeZone
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> timeZone()
- Returns:
- Gets or sets the time zone of the schedule.
-
type
public com.pulumi.core.Output<java.lang.String> type()
- Returns:
- The type of the resource.
-
get
public static Schedule get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.options
- Optional settings to control the behavior of the CustomResource.
-
-