1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. SchedulingPolicy
Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi

oci.Database.SchedulingPolicy

Explore with Pulumi AI

This resource provides the Scheduling Policy resource in Oracle Cloud Infrastructure Database service.

Creates a Scheduling Policy resource.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testSchedulingPolicy = new oci.database.SchedulingPolicy("test_scheduling_policy", {
    cadence: schedulingPolicyCadence,
    compartmentId: compartmentId,
    displayName: schedulingPolicyDisplayName,
    cadenceStartMonth: {
        name: schedulingPolicyCadenceStartMonthName,
    },
    definedTags: schedulingPolicyDefinedTags,
    freeformTags: {
        Department: "Finance",
    },
});
Copy
import pulumi
import pulumi_oci as oci

test_scheduling_policy = oci.database.SchedulingPolicy("test_scheduling_policy",
    cadence=scheduling_policy_cadence,
    compartment_id=compartment_id,
    display_name=scheduling_policy_display_name,
    cadence_start_month={
        "name": scheduling_policy_cadence_start_month_name,
    },
    defined_tags=scheduling_policy_defined_tags,
    freeform_tags={
        "Department": "Finance",
    })
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/database"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := database.NewSchedulingPolicy(ctx, "test_scheduling_policy", &database.SchedulingPolicyArgs{
			Cadence:       pulumi.Any(schedulingPolicyCadence),
			CompartmentId: pulumi.Any(compartmentId),
			DisplayName:   pulumi.Any(schedulingPolicyDisplayName),
			CadenceStartMonth: &database.SchedulingPolicyCadenceStartMonthArgs{
				Name: pulumi.Any(schedulingPolicyCadenceStartMonthName),
			},
			DefinedTags: pulumi.Any(schedulingPolicyDefinedTags),
			FreeformTags: pulumi.StringMap{
				"Department": pulumi.String("Finance"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testSchedulingPolicy = new Oci.Database.SchedulingPolicy("test_scheduling_policy", new()
    {
        Cadence = schedulingPolicyCadence,
        CompartmentId = compartmentId,
        DisplayName = schedulingPolicyDisplayName,
        CadenceStartMonth = new Oci.Database.Inputs.SchedulingPolicyCadenceStartMonthArgs
        {
            Name = schedulingPolicyCadenceStartMonthName,
        },
        DefinedTags = schedulingPolicyDefinedTags,
        FreeformTags = 
        {
            { "Department", "Finance" },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Database.SchedulingPolicy;
import com.pulumi.oci.Database.SchedulingPolicyArgs;
import com.pulumi.oci.Database.inputs.SchedulingPolicyCadenceStartMonthArgs;
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 testSchedulingPolicy = new SchedulingPolicy("testSchedulingPolicy", SchedulingPolicyArgs.builder()
            .cadence(schedulingPolicyCadence)
            .compartmentId(compartmentId)
            .displayName(schedulingPolicyDisplayName)
            .cadenceStartMonth(SchedulingPolicyCadenceStartMonthArgs.builder()
                .name(schedulingPolicyCadenceStartMonthName)
                .build())
            .definedTags(schedulingPolicyDefinedTags)
            .freeformTags(Map.of("Department", "Finance"))
            .build());

    }
}
Copy
resources:
  testSchedulingPolicy:
    type: oci:Database:SchedulingPolicy
    name: test_scheduling_policy
    properties:
      cadence: ${schedulingPolicyCadence}
      compartmentId: ${compartmentId}
      displayName: ${schedulingPolicyDisplayName}
      cadenceStartMonth:
        name: ${schedulingPolicyCadenceStartMonthName}
      definedTags: ${schedulingPolicyDefinedTags}
      freeformTags:
        Department: Finance
Copy

Create SchedulingPolicy Resource

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

Constructor syntax

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

@overload
def SchedulingPolicy(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     cadence: Optional[str] = None,
                     compartment_id: Optional[str] = None,
                     display_name: Optional[str] = None,
                     cadence_start_month: Optional[_database.SchedulingPolicyCadenceStartMonthArgs] = None,
                     defined_tags: Optional[Mapping[str, str]] = None,
                     freeform_tags: Optional[Mapping[str, str]] = None)
func NewSchedulingPolicy(ctx *Context, name string, args SchedulingPolicyArgs, opts ...ResourceOption) (*SchedulingPolicy, error)
public SchedulingPolicy(string name, SchedulingPolicyArgs args, CustomResourceOptions? opts = null)
public SchedulingPolicy(String name, SchedulingPolicyArgs args)
public SchedulingPolicy(String name, SchedulingPolicyArgs args, CustomResourceOptions options)
type: oci:Database:SchedulingPolicy
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. SchedulingPolicyArgs
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. SchedulingPolicyArgs
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. SchedulingPolicyArgs
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. SchedulingPolicyArgs
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. SchedulingPolicyArgs
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 schedulingPolicyResource = new Oci.Database.SchedulingPolicy("schedulingPolicyResource", new()
{
    Cadence = "string",
    CompartmentId = "string",
    DisplayName = "string",
    CadenceStartMonth = new Oci.Database.Inputs.SchedulingPolicyCadenceStartMonthArgs
    {
        Name = "string",
    },
    DefinedTags = 
    {
        { "string", "string" },
    },
    FreeformTags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := database.NewSchedulingPolicy(ctx, "schedulingPolicyResource", &database.SchedulingPolicyArgs{
	Cadence:       pulumi.String("string"),
	CompartmentId: pulumi.String("string"),
	DisplayName:   pulumi.String("string"),
	CadenceStartMonth: &database.SchedulingPolicyCadenceStartMonthArgs{
		Name: pulumi.String("string"),
	},
	DefinedTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	FreeformTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
Copy
var schedulingPolicyResource = new SchedulingPolicy("schedulingPolicyResource", SchedulingPolicyArgs.builder()
    .cadence("string")
    .compartmentId("string")
    .displayName("string")
    .cadenceStartMonth(SchedulingPolicyCadenceStartMonthArgs.builder()
        .name("string")
        .build())
    .definedTags(Map.of("string", "string"))
    .freeformTags(Map.of("string", "string"))
    .build());
Copy
scheduling_policy_resource = oci.database.SchedulingPolicy("schedulingPolicyResource",
    cadence="string",
    compartment_id="string",
    display_name="string",
    cadence_start_month={
        "name": "string",
    },
    defined_tags={
        "string": "string",
    },
    freeform_tags={
        "string": "string",
    })
Copy
const schedulingPolicyResource = new oci.database.SchedulingPolicy("schedulingPolicyResource", {
    cadence: "string",
    compartmentId: "string",
    displayName: "string",
    cadenceStartMonth: {
        name: "string",
    },
    definedTags: {
        string: "string",
    },
    freeformTags: {
        string: "string",
    },
});
Copy
type: oci:Database:SchedulingPolicy
properties:
    cadence: string
    cadenceStartMonth:
        name: string
    compartmentId: string
    definedTags:
        string: string
    displayName: string
    freeformTags:
        string: string
Copy

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

Cadence This property is required. string
(Updatable) The cadence period.
CompartmentId This property is required. string
(Updatable) The OCID of the compartment.
DisplayName This property is required. string
(Updatable) The user-friendly name for the Scheduling Policy. The name does not need to be unique.
CadenceStartMonth SchedulingPolicyCadenceStartMonth
(Updatable) Start of the month to be followed during the cadence period.
DefinedTags Dictionary<string, string>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
FreeformTags Dictionary<string, string>

(Updatable) 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"}

** 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

Cadence This property is required. string
(Updatable) The cadence period.
CompartmentId This property is required. string
(Updatable) The OCID of the compartment.
DisplayName This property is required. string
(Updatable) The user-friendly name for the Scheduling Policy. The name does not need to be unique.
CadenceStartMonth SchedulingPolicyCadenceStartMonthArgs
(Updatable) Start of the month to be followed during the cadence period.
DefinedTags map[string]string
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
FreeformTags map[string]string

(Updatable) 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"}

** 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

cadence This property is required. String
(Updatable) The cadence period.
compartmentId This property is required. String
(Updatable) The OCID of the compartment.
displayName This property is required. String
(Updatable) The user-friendly name for the Scheduling Policy. The name does not need to be unique.
cadenceStartMonth SchedulingPolicyCadenceStartMonth
(Updatable) Start of the month to be followed during the cadence period.
definedTags Map<String,String>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
freeformTags Map<String,String>

(Updatable) 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"}

** 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

cadence This property is required. string
(Updatable) The cadence period.
compartmentId This property is required. string
(Updatable) The OCID of the compartment.
displayName This property is required. string
(Updatable) The user-friendly name for the Scheduling Policy. The name does not need to be unique.
cadenceStartMonth SchedulingPolicyCadenceStartMonth
(Updatable) Start of the month to be followed during the cadence period.
definedTags {[key: string]: string}
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
freeformTags {[key: string]: string}

(Updatable) 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"}

** 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

cadence This property is required. str
(Updatable) The cadence period.
compartment_id This property is required. str
(Updatable) The OCID of the compartment.
display_name This property is required. str
(Updatable) The user-friendly name for the Scheduling Policy. The name does not need to be unique.
cadence_start_month database.SchedulingPolicyCadenceStartMonthArgs
(Updatable) Start of the month to be followed during the cadence period.
defined_tags Mapping[str, str]
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
freeform_tags Mapping[str, str]

(Updatable) 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"}

** 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

cadence This property is required. String
(Updatable) The cadence period.
compartmentId This property is required. String
(Updatable) The OCID of the compartment.
displayName This property is required. String
(Updatable) The user-friendly name for the Scheduling Policy. The name does not need to be unique.
cadenceStartMonth Property Map
(Updatable) Start of the month to be followed during the cadence period.
definedTags Map<String>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
freeformTags Map<String>

(Updatable) 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"}

** 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

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
LifecycleDetails string
Additional information about the current lifecycle state.
State string
The current state of the Scheduling Policy. Valid states are CREATING, NEEDS_ATTENTION, ACTIVE, UPDATING, FAILED, DELETING and DELETED.
TimeCreated string
The date and time the Scheduling Policy was created.
TimeNextWindowStarts string
The date and time of the next scheduling window associated with the schedulingPolicy is planned to start.
TimeUpdated string
The last date and time that the Scheduling Policy was updated.
Id string
The provider-assigned unique ID for this managed resource.
LifecycleDetails string
Additional information about the current lifecycle state.
State string
The current state of the Scheduling Policy. Valid states are CREATING, NEEDS_ATTENTION, ACTIVE, UPDATING, FAILED, DELETING and DELETED.
TimeCreated string
The date and time the Scheduling Policy was created.
TimeNextWindowStarts string
The date and time of the next scheduling window associated with the schedulingPolicy is planned to start.
TimeUpdated string
The last date and time that the Scheduling Policy was updated.
id String
The provider-assigned unique ID for this managed resource.
lifecycleDetails String
Additional information about the current lifecycle state.
state String
The current state of the Scheduling Policy. Valid states are CREATING, NEEDS_ATTENTION, ACTIVE, UPDATING, FAILED, DELETING and DELETED.
timeCreated String
The date and time the Scheduling Policy was created.
timeNextWindowStarts String
The date and time of the next scheduling window associated with the schedulingPolicy is planned to start.
timeUpdated String
The last date and time that the Scheduling Policy was updated.
id string
The provider-assigned unique ID for this managed resource.
lifecycleDetails string
Additional information about the current lifecycle state.
state string
The current state of the Scheduling Policy. Valid states are CREATING, NEEDS_ATTENTION, ACTIVE, UPDATING, FAILED, DELETING and DELETED.
timeCreated string
The date and time the Scheduling Policy was created.
timeNextWindowStarts string
The date and time of the next scheduling window associated with the schedulingPolicy is planned to start.
timeUpdated string
The last date and time that the Scheduling Policy was updated.
id str
The provider-assigned unique ID for this managed resource.
lifecycle_details str
Additional information about the current lifecycle state.
state str
The current state of the Scheduling Policy. Valid states are CREATING, NEEDS_ATTENTION, ACTIVE, UPDATING, FAILED, DELETING and DELETED.
time_created str
The date and time the Scheduling Policy was created.
time_next_window_starts str
The date and time of the next scheduling window associated with the schedulingPolicy is planned to start.
time_updated str
The last date and time that the Scheduling Policy was updated.
id String
The provider-assigned unique ID for this managed resource.
lifecycleDetails String
Additional information about the current lifecycle state.
state String
The current state of the Scheduling Policy. Valid states are CREATING, NEEDS_ATTENTION, ACTIVE, UPDATING, FAILED, DELETING and DELETED.
timeCreated String
The date and time the Scheduling Policy was created.
timeNextWindowStarts String
The date and time of the next scheduling window associated with the schedulingPolicy is planned to start.
timeUpdated String
The last date and time that the Scheduling Policy was updated.

Look up Existing SchedulingPolicy Resource

Get an existing SchedulingPolicy 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?: SchedulingPolicyState, opts?: CustomResourceOptions): SchedulingPolicy
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cadence: Optional[str] = None,
        cadence_start_month: Optional[_database.SchedulingPolicyCadenceStartMonthArgs] = None,
        compartment_id: Optional[str] = None,
        defined_tags: Optional[Mapping[str, str]] = None,
        display_name: Optional[str] = None,
        freeform_tags: Optional[Mapping[str, str]] = None,
        lifecycle_details: Optional[str] = None,
        state: Optional[str] = None,
        time_created: Optional[str] = None,
        time_next_window_starts: Optional[str] = None,
        time_updated: Optional[str] = None) -> SchedulingPolicy
func GetSchedulingPolicy(ctx *Context, name string, id IDInput, state *SchedulingPolicyState, opts ...ResourceOption) (*SchedulingPolicy, error)
public static SchedulingPolicy Get(string name, Input<string> id, SchedulingPolicyState? state, CustomResourceOptions? opts = null)
public static SchedulingPolicy get(String name, Output<String> id, SchedulingPolicyState state, CustomResourceOptions options)
resources:  _:    type: oci:Database:SchedulingPolicy    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Cadence string
(Updatable) The cadence period.
CadenceStartMonth SchedulingPolicyCadenceStartMonth
(Updatable) Start of the month to be followed during the cadence period.
CompartmentId string
(Updatable) The OCID of the compartment.
DefinedTags Dictionary<string, string>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
DisplayName string
(Updatable) The user-friendly name for the Scheduling Policy. The name does not need to be unique.
FreeformTags Dictionary<string, string>

(Updatable) 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"}

** 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

LifecycleDetails string
Additional information about the current lifecycle state.
State string
The current state of the Scheduling Policy. Valid states are CREATING, NEEDS_ATTENTION, ACTIVE, UPDATING, FAILED, DELETING and DELETED.
TimeCreated string
The date and time the Scheduling Policy was created.
TimeNextWindowStarts string
The date and time of the next scheduling window associated with the schedulingPolicy is planned to start.
TimeUpdated string
The last date and time that the Scheduling Policy was updated.
Cadence string
(Updatable) The cadence period.
CadenceStartMonth SchedulingPolicyCadenceStartMonthArgs
(Updatable) Start of the month to be followed during the cadence period.
CompartmentId string
(Updatable) The OCID of the compartment.
DefinedTags map[string]string
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
DisplayName string
(Updatable) The user-friendly name for the Scheduling Policy. The name does not need to be unique.
FreeformTags map[string]string

(Updatable) 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"}

** 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

LifecycleDetails string
Additional information about the current lifecycle state.
State string
The current state of the Scheduling Policy. Valid states are CREATING, NEEDS_ATTENTION, ACTIVE, UPDATING, FAILED, DELETING and DELETED.
TimeCreated string
The date and time the Scheduling Policy was created.
TimeNextWindowStarts string
The date and time of the next scheduling window associated with the schedulingPolicy is planned to start.
TimeUpdated string
The last date and time that the Scheduling Policy was updated.
cadence String
(Updatable) The cadence period.
cadenceStartMonth SchedulingPolicyCadenceStartMonth
(Updatable) Start of the month to be followed during the cadence period.
compartmentId String
(Updatable) The OCID of the compartment.
definedTags Map<String,String>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
displayName String
(Updatable) The user-friendly name for the Scheduling Policy. The name does not need to be unique.
freeformTags Map<String,String>

(Updatable) 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"}

** 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

lifecycleDetails String
Additional information about the current lifecycle state.
state String
The current state of the Scheduling Policy. Valid states are CREATING, NEEDS_ATTENTION, ACTIVE, UPDATING, FAILED, DELETING and DELETED.
timeCreated String
The date and time the Scheduling Policy was created.
timeNextWindowStarts String
The date and time of the next scheduling window associated with the schedulingPolicy is planned to start.
timeUpdated String
The last date and time that the Scheduling Policy was updated.
cadence string
(Updatable) The cadence period.
cadenceStartMonth SchedulingPolicyCadenceStartMonth
(Updatable) Start of the month to be followed during the cadence period.
compartmentId string
(Updatable) The OCID of the compartment.
definedTags {[key: string]: string}
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
displayName string
(Updatable) The user-friendly name for the Scheduling Policy. The name does not need to be unique.
freeformTags {[key: string]: string}

(Updatable) 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"}

** 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

lifecycleDetails string
Additional information about the current lifecycle state.
state string
The current state of the Scheduling Policy. Valid states are CREATING, NEEDS_ATTENTION, ACTIVE, UPDATING, FAILED, DELETING and DELETED.
timeCreated string
The date and time the Scheduling Policy was created.
timeNextWindowStarts string
The date and time of the next scheduling window associated with the schedulingPolicy is planned to start.
timeUpdated string
The last date and time that the Scheduling Policy was updated.
cadence str
(Updatable) The cadence period.
cadence_start_month database.SchedulingPolicyCadenceStartMonthArgs
(Updatable) Start of the month to be followed during the cadence period.
compartment_id str
(Updatable) The OCID of the compartment.
defined_tags Mapping[str, str]
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
display_name str
(Updatable) The user-friendly name for the Scheduling Policy. The name does not need to be unique.
freeform_tags Mapping[str, str]

(Updatable) 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"}

** 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

lifecycle_details str
Additional information about the current lifecycle state.
state str
The current state of the Scheduling Policy. Valid states are CREATING, NEEDS_ATTENTION, ACTIVE, UPDATING, FAILED, DELETING and DELETED.
time_created str
The date and time the Scheduling Policy was created.
time_next_window_starts str
The date and time of the next scheduling window associated with the schedulingPolicy is planned to start.
time_updated str
The last date and time that the Scheduling Policy was updated.
cadence String
(Updatable) The cadence period.
cadenceStartMonth Property Map
(Updatable) Start of the month to be followed during the cadence period.
compartmentId String
(Updatable) The OCID of the compartment.
definedTags Map<String>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
displayName String
(Updatable) The user-friendly name for the Scheduling Policy. The name does not need to be unique.
freeformTags Map<String>

(Updatable) 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"}

** 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

lifecycleDetails String
Additional information about the current lifecycle state.
state String
The current state of the Scheduling Policy. Valid states are CREATING, NEEDS_ATTENTION, ACTIVE, UPDATING, FAILED, DELETING and DELETED.
timeCreated String
The date and time the Scheduling Policy was created.
timeNextWindowStarts String
The date and time of the next scheduling window associated with the schedulingPolicy is planned to start.
timeUpdated String
The last date and time that the Scheduling Policy was updated.

Supporting Types

SchedulingPolicyCadenceStartMonth
, SchedulingPolicyCadenceStartMonthArgs

Name This property is required. string
(Updatable) Name of the month of the year.
Name This property is required. string
(Updatable) Name of the month of the year.
name This property is required. String
(Updatable) Name of the month of the year.
name This property is required. string
(Updatable) Name of the month of the year.
name This property is required. str
(Updatable) Name of the month of the year.
name This property is required. String
(Updatable) Name of the month of the year.

Import

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

$ pulumi import oci:Database/schedulingPolicy:SchedulingPolicy test_scheduling_policy "id"
Copy

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.