1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ResourceScheduler
  5. Schedule
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.ResourceScheduler.Schedule

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    This resource provides the Schedule resource in Oracle Cloud Infrastructure Resource Scheduler service.

    Creates a Schedule

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testSchedule = new oci.resourcescheduler.Schedule("test_schedule", {
        action: scheduleAction,
        compartmentId: compartmentId,
        recurrenceDetails: scheduleRecurrenceDetails,
        recurrenceType: scheduleRecurrenceType,
        definedTags: {
            "Operations.CostCenter": "42",
        },
        description: scheduleDescription,
        displayName: scheduleDisplayName,
        freeformTags: {
            Department: "Finance",
        },
        resourceFilters: [{
            attribute: scheduleResourceFiltersAttribute,
            condition: scheduleResourceFiltersCondition,
            shouldIncludeChildCompartments: scheduleResourceFiltersShouldIncludeChildCompartments,
            values: [{
                namespace: scheduleResourceFiltersValueNamespace,
                tagKey: scheduleResourceFiltersValueTagKey,
                value: scheduleResourceFiltersValueValue,
            }],
        }],
        resources: [{
            id: scheduleResourcesId,
            metadata: scheduleResourcesMetadata,
        }],
        timeEnds: scheduleTimeEnds,
        timeStarts: scheduleTimeStarts,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_schedule = oci.resource_scheduler.Schedule("test_schedule",
        action=schedule_action,
        compartment_id=compartment_id,
        recurrence_details=schedule_recurrence_details,
        recurrence_type=schedule_recurrence_type,
        defined_tags={
            "Operations.CostCenter": "42",
        },
        description=schedule_description,
        display_name=schedule_display_name,
        freeform_tags={
            "Department": "Finance",
        },
        resource_filters=[{
            "attribute": schedule_resource_filters_attribute,
            "condition": schedule_resource_filters_condition,
            "should_include_child_compartments": schedule_resource_filters_should_include_child_compartments,
            "values": [{
                "namespace": schedule_resource_filters_value_namespace,
                "tag_key": schedule_resource_filters_value_tag_key,
                "value": schedule_resource_filters_value_value,
            }],
        }],
        resources=[{
            "id": schedule_resources_id,
            "metadata": schedule_resources_metadata,
        }],
        time_ends=schedule_time_ends,
        time_starts=schedule_time_starts)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/ResourceScheduler"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ResourceScheduler.NewSchedule(ctx, "test_schedule", &ResourceScheduler.ScheduleArgs{
    			Action:            pulumi.Any(scheduleAction),
    			CompartmentId:     pulumi.Any(compartmentId),
    			RecurrenceDetails: pulumi.Any(scheduleRecurrenceDetails),
    			RecurrenceType:    pulumi.Any(scheduleRecurrenceType),
    			DefinedTags: pulumi.StringMap{
    				"Operations.CostCenter": pulumi.String("42"),
    			},
    			Description: pulumi.Any(scheduleDescription),
    			DisplayName: pulumi.Any(scheduleDisplayName),
    			FreeformTags: pulumi.StringMap{
    				"Department": pulumi.String("Finance"),
    			},
    			ResourceFilters: resourcescheduler.ScheduleResourceFilterArray{
    				&resourcescheduler.ScheduleResourceFilterArgs{
    					Attribute:                      pulumi.Any(scheduleResourceFiltersAttribute),
    					Condition:                      pulumi.Any(scheduleResourceFiltersCondition),
    					ShouldIncludeChildCompartments: pulumi.Any(scheduleResourceFiltersShouldIncludeChildCompartments),
    					Values: resourcescheduler.ScheduleResourceFilterValueArray{
    						&resourcescheduler.ScheduleResourceFilterValueArgs{
    							Namespace: pulumi.Any(scheduleResourceFiltersValueNamespace),
    							TagKey:    pulumi.Any(scheduleResourceFiltersValueTagKey),
    							Value:     pulumi.Any(scheduleResourceFiltersValueValue),
    						},
    					},
    				},
    			},
    			Resources: resourcescheduler.ScheduleResourceArray{
    				&resourcescheduler.ScheduleResourceArgs{
    					Id:       pulumi.Any(scheduleResourcesId),
    					Metadata: pulumi.Any(scheduleResourcesMetadata),
    				},
    			},
    			TimeEnds:   pulumi.Any(scheduleTimeEnds),
    			TimeStarts: pulumi.Any(scheduleTimeStarts),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testSchedule = new Oci.ResourceScheduler.Schedule("test_schedule", new()
        {
            Action = scheduleAction,
            CompartmentId = compartmentId,
            RecurrenceDetails = scheduleRecurrenceDetails,
            RecurrenceType = scheduleRecurrenceType,
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            Description = scheduleDescription,
            DisplayName = scheduleDisplayName,
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
            ResourceFilters = new[]
            {
                new Oci.ResourceScheduler.Inputs.ScheduleResourceFilterArgs
                {
                    Attribute = scheduleResourceFiltersAttribute,
                    Condition = scheduleResourceFiltersCondition,
                    ShouldIncludeChildCompartments = scheduleResourceFiltersShouldIncludeChildCompartments,
                    Values = new[]
                    {
                        new Oci.ResourceScheduler.Inputs.ScheduleResourceFilterValueArgs
                        {
                            Namespace = scheduleResourceFiltersValueNamespace,
                            TagKey = scheduleResourceFiltersValueTagKey,
                            Value = scheduleResourceFiltersValueValue,
                        },
                    },
                },
            },
            Resources = new[]
            {
                new Oci.ResourceScheduler.Inputs.ScheduleResourceArgs
                {
                    Id = scheduleResourcesId,
                    Metadata = scheduleResourcesMetadata,
                },
            },
            TimeEnds = scheduleTimeEnds,
            TimeStarts = scheduleTimeStarts,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.ResourceScheduler.Schedule;
    import com.pulumi.oci.ResourceScheduler.ScheduleArgs;
    import com.pulumi.oci.ResourceScheduler.inputs.ScheduleResourceFilterArgs;
    import com.pulumi.oci.ResourceScheduler.inputs.ScheduleResourceArgs;
    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 testSchedule = new Schedule("testSchedule", ScheduleArgs.builder()
                .action(scheduleAction)
                .compartmentId(compartmentId)
                .recurrenceDetails(scheduleRecurrenceDetails)
                .recurrenceType(scheduleRecurrenceType)
                .definedTags(Map.of("Operations.CostCenter", "42"))
                .description(scheduleDescription)
                .displayName(scheduleDisplayName)
                .freeformTags(Map.of("Department", "Finance"))
                .resourceFilters(ScheduleResourceFilterArgs.builder()
                    .attribute(scheduleResourceFiltersAttribute)
                    .condition(scheduleResourceFiltersCondition)
                    .shouldIncludeChildCompartments(scheduleResourceFiltersShouldIncludeChildCompartments)
                    .values(ScheduleResourceFilterValueArgs.builder()
                        .namespace(scheduleResourceFiltersValueNamespace)
                        .tagKey(scheduleResourceFiltersValueTagKey)
                        .value(scheduleResourceFiltersValueValue)
                        .build())
                    .build())
                .resources(ScheduleResourceArgs.builder()
                    .id(scheduleResourcesId)
                    .metadata(scheduleResourcesMetadata)
                    .build())
                .timeEnds(scheduleTimeEnds)
                .timeStarts(scheduleTimeStarts)
                .build());
    
        }
    }
    
    resources:
      testSchedule:
        type: oci:ResourceScheduler:Schedule
        name: test_schedule
        properties:
          action: ${scheduleAction}
          compartmentId: ${compartmentId}
          recurrenceDetails: ${scheduleRecurrenceDetails}
          recurrenceType: ${scheduleRecurrenceType}
          definedTags:
            Operations.CostCenter: '42'
          description: ${scheduleDescription}
          displayName: ${scheduleDisplayName}
          freeformTags:
            Department: Finance
          resourceFilters:
            - attribute: ${scheduleResourceFiltersAttribute}
              condition: ${scheduleResourceFiltersCondition}
              shouldIncludeChildCompartments: ${scheduleResourceFiltersShouldIncludeChildCompartments}
              values:
                - namespace: ${scheduleResourceFiltersValueNamespace}
                  tagKey: ${scheduleResourceFiltersValueTagKey}
                  value: ${scheduleResourceFiltersValueValue}
          resources:
            - id: ${scheduleResourcesId}
              metadata: ${scheduleResourcesMetadata}
          timeEnds: ${scheduleTimeEnds}
          timeStarts: ${scheduleTimeStarts}
    

    Create Schedule Resource

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

    Constructor syntax

    new Schedule(name: string, args: ScheduleArgs, opts?: CustomResourceOptions);
    @overload
    def Schedule(resource_name: str,
                 args: ScheduleArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def Schedule(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 recurrence_details: Optional[str] = None,
                 compartment_id: Optional[str] = None,
                 recurrence_type: Optional[str] = None,
                 action: Optional[str] = None,
                 description: Optional[str] = None,
                 freeform_tags: Optional[Mapping[str, str]] = None,
                 display_name: Optional[str] = None,
                 defined_tags: Optional[Mapping[str, str]] = None,
                 resource_filters: Optional[Sequence[_resourcescheduler.ScheduleResourceFilterArgs]] = None,
                 resources: Optional[Sequence[_resourcescheduler.ScheduleResourceArgs]] = None,
                 state: Optional[str] = None,
                 time_ends: Optional[str] = None,
                 time_starts: Optional[str] = None)
    func NewSchedule(ctx *Context, name string, args ScheduleArgs, opts ...ResourceOption) (*Schedule, error)
    public Schedule(string name, ScheduleArgs args, CustomResourceOptions? opts = null)
    public Schedule(String name, ScheduleArgs args)
    public Schedule(String name, ScheduleArgs args, CustomResourceOptions options)
    
    type: oci:ResourceScheduler:Schedule
    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 ScheduleArgs
    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 ScheduleArgs
    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 ScheduleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ScheduleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ScheduleArgs
    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 ociScheduleResource = new Oci.ResourceScheduler.Schedule("ociScheduleResource", new()
    {
        RecurrenceDetails = "string",
        CompartmentId = "string",
        RecurrenceType = "string",
        Action = "string",
        Description = "string",
        FreeformTags = 
        {
            { "string", "string" },
        },
        DisplayName = "string",
        DefinedTags = 
        {
            { "string", "string" },
        },
        ResourceFilters = new[]
        {
            new Oci.ResourceScheduler.Inputs.ScheduleResourceFilterArgs
            {
                Attribute = "string",
                Condition = "string",
                ShouldIncludeChildCompartments = false,
                Values = new[]
                {
                    new Oci.ResourceScheduler.Inputs.ScheduleResourceFilterValueArgs
                    {
                        Namespace = "string",
                        TagKey = "string",
                        Value = "string",
                    },
                },
            },
        },
        Resources = new[]
        {
            new Oci.ResourceScheduler.Inputs.ScheduleResourceArgs
            {
                Id = "string",
                Metadata = 
                {
                    { "string", "string" },
                },
            },
        },
        State = "string",
        TimeEnds = "string",
        TimeStarts = "string",
    });
    
    example, err := ResourceScheduler.NewSchedule(ctx, "ociScheduleResource", &ResourceScheduler.ScheduleArgs{
    	RecurrenceDetails: pulumi.String("string"),
    	CompartmentId:     pulumi.String("string"),
    	RecurrenceType:    pulumi.String("string"),
    	Action:            pulumi.String("string"),
    	Description:       pulumi.String("string"),
    	FreeformTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	DisplayName: pulumi.String("string"),
    	DefinedTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	ResourceFilters: resourcescheduler.ScheduleResourceFilterArray{
    		&resourcescheduler.ScheduleResourceFilterArgs{
    			Attribute:                      pulumi.String("string"),
    			Condition:                      pulumi.String("string"),
    			ShouldIncludeChildCompartments: pulumi.Bool(false),
    			Values: resourcescheduler.ScheduleResourceFilterValueArray{
    				&resourcescheduler.ScheduleResourceFilterValueArgs{
    					Namespace: pulumi.String("string"),
    					TagKey:    pulumi.String("string"),
    					Value:     pulumi.String("string"),
    				},
    			},
    		},
    	},
    	Resources: resourcescheduler.ScheduleResourceArray{
    		&resourcescheduler.ScheduleResourceArgs{
    			Id: pulumi.String("string"),
    			Metadata: pulumi.StringMap{
    				"string": pulumi.String("string"),
    			},
    		},
    	},
    	State:      pulumi.String("string"),
    	TimeEnds:   pulumi.String("string"),
    	TimeStarts: pulumi.String("string"),
    })
    
    var ociScheduleResource = new Schedule("ociScheduleResource", ScheduleArgs.builder()
        .recurrenceDetails("string")
        .compartmentId("string")
        .recurrenceType("string")
        .action("string")
        .description("string")
        .freeformTags(Map.of("string", "string"))
        .displayName("string")
        .definedTags(Map.of("string", "string"))
        .resourceFilters(ScheduleResourceFilterArgs.builder()
            .attribute("string")
            .condition("string")
            .shouldIncludeChildCompartments(false)
            .values(ScheduleResourceFilterValueArgs.builder()
                .namespace("string")
                .tagKey("string")
                .value("string")
                .build())
            .build())
        .resources(ScheduleResourceArgs.builder()
            .id("string")
            .metadata(Map.of("string", "string"))
            .build())
        .state("string")
        .timeEnds("string")
        .timeStarts("string")
        .build());
    
    oci_schedule_resource = oci.resource_scheduler.Schedule("ociScheduleResource",
        recurrence_details="string",
        compartment_id="string",
        recurrence_type="string",
        action="string",
        description="string",
        freeform_tags={
            "string": "string",
        },
        display_name="string",
        defined_tags={
            "string": "string",
        },
        resource_filters=[oci.resource_scheduler.ScheduleResourceFilterArgs(
            attribute="string",
            condition="string",
            should_include_child_compartments=False,
            values=[oci.resource_scheduler.ScheduleResourceFilterValueArgs(
                namespace="string",
                tag_key="string",
                value="string",
            )],
        )],
        resources=[oci.resource_scheduler.ScheduleResourceArgs(
            id="string",
            metadata={
                "string": "string",
            },
        )],
        state="string",
        time_ends="string",
        time_starts="string")
    
    const ociScheduleResource = new oci.resourcescheduler.Schedule("ociScheduleResource", {
        recurrenceDetails: "string",
        compartmentId: "string",
        recurrenceType: "string",
        action: "string",
        description: "string",
        freeformTags: {
            string: "string",
        },
        displayName: "string",
        definedTags: {
            string: "string",
        },
        resourceFilters: [{
            attribute: "string",
            condition: "string",
            shouldIncludeChildCompartments: false,
            values: [{
                namespace: "string",
                tagKey: "string",
                value: "string",
            }],
        }],
        resources: [{
            id: "string",
            metadata: {
                string: "string",
            },
        }],
        state: "string",
        timeEnds: "string",
        timeStarts: "string",
    });
    
    type: oci:ResourceScheduler:Schedule
    properties:
        action: string
        compartmentId: string
        definedTags:
            string: string
        description: string
        displayName: string
        freeformTags:
            string: string
        recurrenceDetails: string
        recurrenceType: string
        resourceFilters:
            - attribute: string
              condition: string
              shouldIncludeChildCompartments: false
              values:
                - namespace: string
                  tagKey: string
                  value: string
        resources:
            - id: string
              metadata:
                string: string
        state: string
        timeEnds: string
        timeStarts: string
    

    Schedule Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Schedule resource accepts the following input properties:

    Action string
    (Updatable) This is the action that will be executed by the schedule.
    CompartmentId string
    The OCID of the compartment in which the schedule is created
    RecurrenceDetails string
    (Updatable) This is the frequency of recurrence of a schedule. The frequency field can either conform to RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value specified by the recurrenceType field.
    RecurrenceType string
    (Updatable) Type of recurrence of a schedule
    DefinedTags Dictionary<string, string>
    (Updatable) These are defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    Description string
    (Updatable) This is the description of the schedule.
    DisplayName string
    (Updatable) This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable.
    FreeformTags Dictionary<string, string>
    (Updatable) These are free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    ResourceFilters List<ScheduleResourceFilter>
    (Updatable) This is a list of resources filters. The schedule will be applied to resources matching all of them.
    Resources List<ScheduleResource>
    (Updatable) This is the list of resources to which the scheduled operation is applied.
    State string

    (Updatable) The target state for the Schedule. Could be set to ACTIVE or INACTIVE.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    TimeEnds string
    (Updatable) This is the date and time the schedule ends, in the format defined by RFC 3339 Example: 2016-08-25T21:10:29.600Z
    TimeStarts string
    (Updatable) This is the date and time the schedule starts, in the format defined by RFC 3339 Example: 2016-08-25T21:10:29.600Z
    Action string
    (Updatable) This is the action that will be executed by the schedule.
    CompartmentId string
    The OCID of the compartment in which the schedule is created
    RecurrenceDetails string
    (Updatable) This is the frequency of recurrence of a schedule. The frequency field can either conform to RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value specified by the recurrenceType field.
    RecurrenceType string
    (Updatable) Type of recurrence of a schedule
    DefinedTags map[string]string
    (Updatable) These are defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    Description string
    (Updatable) This is the description of the schedule.
    DisplayName string
    (Updatable) This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable.
    FreeformTags map[string]string
    (Updatable) These are free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    ResourceFilters []ScheduleResourceFilterArgs
    (Updatable) This is a list of resources filters. The schedule will be applied to resources matching all of them.
    Resources []ScheduleResourceArgs
    (Updatable) This is the list of resources to which the scheduled operation is applied.
    State string

    (Updatable) The target state for the Schedule. Could be set to ACTIVE or INACTIVE.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    TimeEnds string
    (Updatable) This is the date and time the schedule ends, in the format defined by RFC 3339 Example: 2016-08-25T21:10:29.600Z
    TimeStarts string
    (Updatable) This is the date and time the schedule starts, in the format defined by RFC 3339 Example: 2016-08-25T21:10:29.600Z
    action String
    (Updatable) This is the action that will be executed by the schedule.
    compartmentId String
    The OCID of the compartment in which the schedule is created
    recurrenceDetails String
    (Updatable) This is the frequency of recurrence of a schedule. The frequency field can either conform to RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value specified by the recurrenceType field.
    recurrenceType String
    (Updatable) Type of recurrence of a schedule
    definedTags Map<String,String>
    (Updatable) These are defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description String
    (Updatable) This is the description of the schedule.
    displayName String
    (Updatable) This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable.
    freeformTags Map<String,String>
    (Updatable) These are free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    resourceFilters List<ScheduleResourceFilter>
    (Updatable) This is a list of resources filters. The schedule will be applied to resources matching all of them.
    resources List<ScheduleResource>
    (Updatable) This is the list of resources to which the scheduled operation is applied.
    state String

    (Updatable) The target state for the Schedule. Could be set to ACTIVE or INACTIVE.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    timeEnds String
    (Updatable) This is the date and time the schedule ends, in the format defined by RFC 3339 Example: 2016-08-25T21:10:29.600Z
    timeStarts String
    (Updatable) This is the date and time the schedule starts, in the format defined by RFC 3339 Example: 2016-08-25T21:10:29.600Z
    action string
    (Updatable) This is the action that will be executed by the schedule.
    compartmentId string
    The OCID of the compartment in which the schedule is created
    recurrenceDetails string
    (Updatable) This is the frequency of recurrence of a schedule. The frequency field can either conform to RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value specified by the recurrenceType field.
    recurrenceType string
    (Updatable) Type of recurrence of a schedule
    definedTags {[key: string]: string}
    (Updatable) These are defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description string
    (Updatable) This is the description of the schedule.
    displayName string
    (Updatable) This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable.
    freeformTags {[key: string]: string}
    (Updatable) These are free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    resourceFilters ScheduleResourceFilter[]
    (Updatable) This is a list of resources filters. The schedule will be applied to resources matching all of them.
    resources ScheduleResource[]
    (Updatable) This is the list of resources to which the scheduled operation is applied.
    state string

    (Updatable) The target state for the Schedule. Could be set to ACTIVE or INACTIVE.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    timeEnds string
    (Updatable) This is the date and time the schedule ends, in the format defined by RFC 3339 Example: 2016-08-25T21:10:29.600Z
    timeStarts string
    (Updatable) This is the date and time the schedule starts, in the format defined by RFC 3339 Example: 2016-08-25T21:10:29.600Z
    action str
    (Updatable) This is the action that will be executed by the schedule.
    compartment_id str
    The OCID of the compartment in which the schedule is created
    recurrence_details str
    (Updatable) This is the frequency of recurrence of a schedule. The frequency field can either conform to RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value specified by the recurrenceType field.
    recurrence_type str
    (Updatable) Type of recurrence of a schedule
    defined_tags Mapping[str, str]
    (Updatable) These are defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description str
    (Updatable) This is the description of the schedule.
    display_name str
    (Updatable) This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable.
    freeform_tags Mapping[str, str]
    (Updatable) These are free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    resource_filters Sequence[resourcescheduler.ScheduleResourceFilterArgs]
    (Updatable) This is a list of resources filters. The schedule will be applied to resources matching all of them.
    resources Sequence[resourcescheduler.ScheduleResourceArgs]
    (Updatable) This is the list of resources to which the scheduled operation is applied.
    state str

    (Updatable) The target state for the Schedule. Could be set to ACTIVE or INACTIVE.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    time_ends str
    (Updatable) This is the date and time the schedule ends, in the format defined by RFC 3339 Example: 2016-08-25T21:10:29.600Z
    time_starts str
    (Updatable) This is the date and time the schedule starts, in the format defined by RFC 3339 Example: 2016-08-25T21:10:29.600Z
    action String
    (Updatable) This is the action that will be executed by the schedule.
    compartmentId String
    The OCID of the compartment in which the schedule is created
    recurrenceDetails String
    (Updatable) This is the frequency of recurrence of a schedule. The frequency field can either conform to RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value specified by the recurrenceType field.
    recurrenceType String
    (Updatable) Type of recurrence of a schedule
    definedTags Map<String>
    (Updatable) These are defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description String
    (Updatable) This is the description of the schedule.
    displayName String
    (Updatable) This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable.
    freeformTags Map<String>
    (Updatable) These are free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    resourceFilters List<Property Map>
    (Updatable) This is a list of resources filters. The schedule will be applied to resources matching all of them.
    resources List<Property Map>
    (Updatable) This is the list of resources to which the scheduled operation is applied.
    state String

    (Updatable) The target state for the Schedule. Could be set to ACTIVE or INACTIVE.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    timeEnds String
    (Updatable) This is the date and time the schedule ends, in the format defined by RFC 3339 Example: 2016-08-25T21:10:29.600Z
    timeStarts String
    (Updatable) This is the date and time the schedule starts, in the format defined by RFC 3339 Example: 2016-08-25T21:10:29.600Z

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    SystemTags Dictionary<string, string>
    These are system tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    This is the date and time the schedule was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeLastRun string
    This is the date and time the schedule runs last time, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeNextRun string
    This is the date and time the schedule run the next time, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    This is the date and time the schedule was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    Id string
    The provider-assigned unique ID for this managed resource.
    SystemTags map[string]string
    These are system tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    This is the date and time the schedule was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeLastRun string
    This is the date and time the schedule runs last time, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeNextRun string
    This is the date and time the schedule run the next time, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    This is the date and time the schedule was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    id String
    The provider-assigned unique ID for this managed resource.
    systemTags Map<String,String>
    These are system tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    This is the date and time the schedule was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeLastRun String
    This is the date and time the schedule runs last time, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeNextRun String
    This is the date and time the schedule run the next time, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    This is the date and time the schedule was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    id string
    The provider-assigned unique ID for this managed resource.
    systemTags {[key: string]: string}
    These are system tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    This is the date and time the schedule was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeLastRun string
    This is the date and time the schedule runs last time, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeNextRun string
    This is the date and time the schedule run the next time, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated string
    This is the date and time the schedule was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    id str
    The provider-assigned unique ID for this managed resource.
    system_tags Mapping[str, str]
    These are system tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    This is the date and time the schedule was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    time_last_run str
    This is the date and time the schedule runs last time, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    time_next_run str
    This is the date and time the schedule run the next time, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    time_updated str
    This is the date and time the schedule was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    id String
    The provider-assigned unique ID for this managed resource.
    systemTags Map<String>
    These are system tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    This is the date and time the schedule was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeLastRun String
    This is the date and time the schedule runs last time, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeNextRun String
    This is the date and time the schedule run the next time, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    This is the date and time the schedule was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z

    Look up Existing Schedule Resource

    Get an existing Schedule 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?: ScheduleState, opts?: CustomResourceOptions): Schedule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[str] = None,
            compartment_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, str]] = None,
            description: Optional[str] = None,
            display_name: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, str]] = None,
            recurrence_details: Optional[str] = None,
            recurrence_type: Optional[str] = None,
            resource_filters: Optional[Sequence[_resourcescheduler.ScheduleResourceFilterArgs]] = None,
            resources: Optional[Sequence[_resourcescheduler.ScheduleResourceArgs]] = None,
            state: Optional[str] = None,
            system_tags: Optional[Mapping[str, str]] = None,
            time_created: Optional[str] = None,
            time_ends: Optional[str] = None,
            time_last_run: Optional[str] = None,
            time_next_run: Optional[str] = None,
            time_starts: Optional[str] = None,
            time_updated: Optional[str] = None) -> Schedule
    func GetSchedule(ctx *Context, name string, id IDInput, state *ScheduleState, opts ...ResourceOption) (*Schedule, error)
    public static Schedule Get(string name, Input<string> id, ScheduleState? state, CustomResourceOptions? opts = null)
    public static Schedule get(String name, Output<String> id, ScheduleState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Action string
    (Updatable) This is the action that will be executed by the schedule.
    CompartmentId string
    The OCID of the compartment in which the schedule is created
    DefinedTags Dictionary<string, string>
    (Updatable) These are defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    Description string
    (Updatable) This is the description of the schedule.
    DisplayName string
    (Updatable) This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable.
    FreeformTags Dictionary<string, string>
    (Updatable) These are free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    RecurrenceDetails string
    (Updatable) This is the frequency of recurrence of a schedule. The frequency field can either conform to RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value specified by the recurrenceType field.
    RecurrenceType string
    (Updatable) Type of recurrence of a schedule
    ResourceFilters List<ScheduleResourceFilter>
    (Updatable) This is a list of resources filters. The schedule will be applied to resources matching all of them.
    Resources List<ScheduleResource>
    (Updatable) This is the list of resources to which the scheduled operation is applied.
    State string

    (Updatable) The target state for the Schedule. Could be set to ACTIVE or INACTIVE.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    SystemTags Dictionary<string, string>
    These are system tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    This is the date and time the schedule was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeEnds string
    (Updatable) This is the date and time the schedule ends, in the format defined by RFC 3339 Example: 2016-08-25T21:10:29.600Z
    TimeLastRun string
    This is the date and time the schedule runs last time, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeNextRun string
    This is the date and time the schedule run the next time, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeStarts string
    (Updatable) This is the date and time the schedule starts, in the format defined by RFC 3339 Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    This is the date and time the schedule was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    Action string
    (Updatable) This is the action that will be executed by the schedule.
    CompartmentId string
    The OCID of the compartment in which the schedule is created
    DefinedTags map[string]string
    (Updatable) These are defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    Description string
    (Updatable) This is the description of the schedule.
    DisplayName string
    (Updatable) This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable.
    FreeformTags map[string]string
    (Updatable) These are free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    RecurrenceDetails string
    (Updatable) This is the frequency of recurrence of a schedule. The frequency field can either conform to RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value specified by the recurrenceType field.
    RecurrenceType string
    (Updatable) Type of recurrence of a schedule
    ResourceFilters []ScheduleResourceFilterArgs
    (Updatable) This is a list of resources filters. The schedule will be applied to resources matching all of them.
    Resources []ScheduleResourceArgs
    (Updatable) This is the list of resources to which the scheduled operation is applied.
    State string

    (Updatable) The target state for the Schedule. Could be set to ACTIVE or INACTIVE.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    SystemTags map[string]string
    These are system tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    This is the date and time the schedule was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeEnds string
    (Updatable) This is the date and time the schedule ends, in the format defined by RFC 3339 Example: 2016-08-25T21:10:29.600Z
    TimeLastRun string
    This is the date and time the schedule runs last time, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeNextRun string
    This is the date and time the schedule run the next time, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeStarts string
    (Updatable) This is the date and time the schedule starts, in the format defined by RFC 3339 Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    This is the date and time the schedule was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    action String
    (Updatable) This is the action that will be executed by the schedule.
    compartmentId String
    The OCID of the compartment in which the schedule is created
    definedTags Map<String,String>
    (Updatable) These are defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description String
    (Updatable) This is the description of the schedule.
    displayName String
    (Updatable) This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable.
    freeformTags Map<String,String>
    (Updatable) These are free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    recurrenceDetails String
    (Updatable) This is the frequency of recurrence of a schedule. The frequency field can either conform to RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value specified by the recurrenceType field.
    recurrenceType String
    (Updatable) Type of recurrence of a schedule
    resourceFilters List<ScheduleResourceFilter>
    (Updatable) This is a list of resources filters. The schedule will be applied to resources matching all of them.
    resources List<ScheduleResource>
    (Updatable) This is the list of resources to which the scheduled operation is applied.
    state String

    (Updatable) The target state for the Schedule. Could be set to ACTIVE or INACTIVE.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    systemTags Map<String,String>
    These are system tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    This is the date and time the schedule was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeEnds String
    (Updatable) This is the date and time the schedule ends, in the format defined by RFC 3339 Example: 2016-08-25T21:10:29.600Z
    timeLastRun String
    This is the date and time the schedule runs last time, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeNextRun String
    This is the date and time the schedule run the next time, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeStarts String
    (Updatable) This is the date and time the schedule starts, in the format defined by RFC 3339 Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    This is the date and time the schedule was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    action string
    (Updatable) This is the action that will be executed by the schedule.
    compartmentId string
    The OCID of the compartment in which the schedule is created
    definedTags {[key: string]: string}
    (Updatable) These are defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description string
    (Updatable) This is the description of the schedule.
    displayName string
    (Updatable) This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable.
    freeformTags {[key: string]: string}
    (Updatable) These are free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    recurrenceDetails string
    (Updatable) This is the frequency of recurrence of a schedule. The frequency field can either conform to RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value specified by the recurrenceType field.
    recurrenceType string
    (Updatable) Type of recurrence of a schedule
    resourceFilters ScheduleResourceFilter[]
    (Updatable) This is a list of resources filters. The schedule will be applied to resources matching all of them.
    resources ScheduleResource[]
    (Updatable) This is the list of resources to which the scheduled operation is applied.
    state string

    (Updatable) The target state for the Schedule. Could be set to ACTIVE or INACTIVE.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    systemTags {[key: string]: string}
    These are system tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    This is the date and time the schedule was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeEnds string
    (Updatable) This is the date and time the schedule ends, in the format defined by RFC 3339 Example: 2016-08-25T21:10:29.600Z
    timeLastRun string
    This is the date and time the schedule runs last time, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeNextRun string
    This is the date and time the schedule run the next time, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeStarts string
    (Updatable) This is the date and time the schedule starts, in the format defined by RFC 3339 Example: 2016-08-25T21:10:29.600Z
    timeUpdated string
    This is the date and time the schedule was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    action str
    (Updatable) This is the action that will be executed by the schedule.
    compartment_id str
    The OCID of the compartment in which the schedule is created
    defined_tags Mapping[str, str]
    (Updatable) These are defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description str
    (Updatable) This is the description of the schedule.
    display_name str
    (Updatable) This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable.
    freeform_tags Mapping[str, str]
    (Updatable) These are free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    recurrence_details str
    (Updatable) This is the frequency of recurrence of a schedule. The frequency field can either conform to RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value specified by the recurrenceType field.
    recurrence_type str
    (Updatable) Type of recurrence of a schedule
    resource_filters Sequence[resourcescheduler.ScheduleResourceFilterArgs]
    (Updatable) This is a list of resources filters. The schedule will be applied to resources matching all of them.
    resources Sequence[resourcescheduler.ScheduleResourceArgs]
    (Updatable) This is the list of resources to which the scheduled operation is applied.
    state str

    (Updatable) The target state for the Schedule. Could be set to ACTIVE or INACTIVE.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    system_tags Mapping[str, str]
    These are system tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    This is the date and time the schedule was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    time_ends str
    (Updatable) This is the date and time the schedule ends, in the format defined by RFC 3339 Example: 2016-08-25T21:10:29.600Z
    time_last_run str
    This is the date and time the schedule runs last time, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    time_next_run str
    This is the date and time the schedule run the next time, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    time_starts str
    (Updatable) This is the date and time the schedule starts, in the format defined by RFC 3339 Example: 2016-08-25T21:10:29.600Z
    time_updated str
    This is the date and time the schedule was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    action String
    (Updatable) This is the action that will be executed by the schedule.
    compartmentId String
    The OCID of the compartment in which the schedule is created
    definedTags Map<String>
    (Updatable) These are defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description String
    (Updatable) This is the description of the schedule.
    displayName String
    (Updatable) This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable.
    freeformTags Map<String>
    (Updatable) These are free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    recurrenceDetails String
    (Updatable) This is the frequency of recurrence of a schedule. The frequency field can either conform to RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value specified by the recurrenceType field.
    recurrenceType String
    (Updatable) Type of recurrence of a schedule
    resourceFilters List<Property Map>
    (Updatable) This is a list of resources filters. The schedule will be applied to resources matching all of them.
    resources List<Property Map>
    (Updatable) This is the list of resources to which the scheduled operation is applied.
    state String

    (Updatable) The target state for the Schedule. Could be set to ACTIVE or INACTIVE.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    systemTags Map<String>
    These are system tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    This is the date and time the schedule was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeEnds String
    (Updatable) This is the date and time the schedule ends, in the format defined by RFC 3339 Example: 2016-08-25T21:10:29.600Z
    timeLastRun String
    This is the date and time the schedule runs last time, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeNextRun String
    This is the date and time the schedule run the next time, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeStarts String
    (Updatable) This is the date and time the schedule starts, in the format defined by RFC 3339 Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    This is the date and time the schedule was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z

    Supporting Types

    ScheduleResource, ScheduleResourceArgs

    Id string
    (Updatable) This is the resource OCID.
    Metadata Dictionary<string, string>

    (Updatable) This is additional information that helps to identity the resource for the schedule.

    { "id": "<OCID_of_bucket>" "metadata": { "namespaceName": "sampleNamespace", "bucketName": "sampleBucket" } }

    Id string
    (Updatable) This is the resource OCID.
    Metadata map[string]string

    (Updatable) This is additional information that helps to identity the resource for the schedule.

    { "id": "<OCID_of_bucket>" "metadata": { "namespaceName": "sampleNamespace", "bucketName": "sampleBucket" } }

    id String
    (Updatable) This is the resource OCID.
    metadata Map<String,String>

    (Updatable) This is additional information that helps to identity the resource for the schedule.

    { "id": "<OCID_of_bucket>" "metadata": { "namespaceName": "sampleNamespace", "bucketName": "sampleBucket" } }

    id string
    (Updatable) This is the resource OCID.
    metadata {[key: string]: string}

    (Updatable) This is additional information that helps to identity the resource for the schedule.

    { "id": "<OCID_of_bucket>" "metadata": { "namespaceName": "sampleNamespace", "bucketName": "sampleBucket" } }

    id str
    (Updatable) This is the resource OCID.
    metadata Mapping[str, str]

    (Updatable) This is additional information that helps to identity the resource for the schedule.

    { "id": "<OCID_of_bucket>" "metadata": { "namespaceName": "sampleNamespace", "bucketName": "sampleBucket" } }

    id String
    (Updatable) This is the resource OCID.
    metadata Map<String>

    (Updatable) This is additional information that helps to identity the resource for the schedule.

    { "id": "<OCID_of_bucket>" "metadata": { "namespaceName": "sampleNamespace", "bucketName": "sampleBucket" } }

    ScheduleResourceFilter, ScheduleResourceFilterArgs

    Attribute string
    (Updatable) This is the resource attribute on which the threshold is defined.
    Condition string
    (Updatable) This is the condition for the filter in comparison to its creation time.
    ShouldIncludeChildCompartments bool
    (Updatable) This sets whether to include child compartments.
    Values List<ScheduleResourceFilterValue>
    (Updatable) This is a collection of resource lifecycle state values.
    Attribute string
    (Updatable) This is the resource attribute on which the threshold is defined.
    Condition string
    (Updatable) This is the condition for the filter in comparison to its creation time.
    ShouldIncludeChildCompartments bool
    (Updatable) This sets whether to include child compartments.
    Values []ScheduleResourceFilterValue
    (Updatable) This is a collection of resource lifecycle state values.
    attribute String
    (Updatable) This is the resource attribute on which the threshold is defined.
    condition String
    (Updatable) This is the condition for the filter in comparison to its creation time.
    shouldIncludeChildCompartments Boolean
    (Updatable) This sets whether to include child compartments.
    values List<ScheduleResourceFilterValue>
    (Updatable) This is a collection of resource lifecycle state values.
    attribute string
    (Updatable) This is the resource attribute on which the threshold is defined.
    condition string
    (Updatable) This is the condition for the filter in comparison to its creation time.
    shouldIncludeChildCompartments boolean
    (Updatable) This sets whether to include child compartments.
    values ScheduleResourceFilterValue[]
    (Updatable) This is a collection of resource lifecycle state values.
    attribute str
    (Updatable) This is the resource attribute on which the threshold is defined.
    condition str
    (Updatable) This is the condition for the filter in comparison to its creation time.
    should_include_child_compartments bool
    (Updatable) This sets whether to include child compartments.
    values Sequence[resourcescheduler.ScheduleResourceFilterValue]
    (Updatable) This is a collection of resource lifecycle state values.
    attribute String
    (Updatable) This is the resource attribute on which the threshold is defined.
    condition String
    (Updatable) This is the condition for the filter in comparison to its creation time.
    shouldIncludeChildCompartments Boolean
    (Updatable) This sets whether to include child compartments.
    values List<Property Map>
    (Updatable) This is a collection of resource lifecycle state values.

    ScheduleResourceFilterValue, ScheduleResourceFilterValueArgs

    Namespace string
    (Updatable) This is the namespace of the defined tag.
    TagKey string
    (Updatable) This is the key of the defined tag.
    Value string
    (Updatable) This is the value of the defined tag.
    Namespace string
    (Updatable) This is the namespace of the defined tag.
    TagKey string
    (Updatable) This is the key of the defined tag.
    Value string
    (Updatable) This is the value of the defined tag.
    namespace String
    (Updatable) This is the namespace of the defined tag.
    tagKey String
    (Updatable) This is the key of the defined tag.
    value String
    (Updatable) This is the value of the defined tag.
    namespace string
    (Updatable) This is the namespace of the defined tag.
    tagKey string
    (Updatable) This is the key of the defined tag.
    value string
    (Updatable) This is the value of the defined tag.
    namespace str
    (Updatable) This is the namespace of the defined tag.
    tag_key str
    (Updatable) This is the key of the defined tag.
    value str
    (Updatable) This is the value of the defined tag.
    namespace String
    (Updatable) This is the namespace of the defined tag.
    tagKey String
    (Updatable) This is the key of the defined tag.
    value String
    (Updatable) This is the value of the defined tag.

    Import

    Schedules can be imported using the id, e.g.

    $ pulumi import oci:ResourceScheduler/schedule:Schedule test_schedule "id"
    

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

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi