oci.CloudMigrations.ReplicationSchedule
Explore with Pulumi AI
This resource provides the Replication Schedule resource in Oracle Cloud Infrastructure Cloud Migrations service.
Creates a replication schedule.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testReplicationSchedule = new oci.cloudmigrations.ReplicationSchedule("test_replication_schedule", {
compartmentId: compartmentId,
displayName: replicationScheduleDisplayName,
executionRecurrences: replicationScheduleExecutionRecurrences,
definedTags: {
"foo-namespace.bar-key": "value",
},
freeformTags: {
"bar-key": "value",
},
});
import pulumi
import pulumi_oci as oci
test_replication_schedule = oci.cloud_migrations.ReplicationSchedule("test_replication_schedule",
compartment_id=compartment_id,
display_name=replication_schedule_display_name,
execution_recurrences=replication_schedule_execution_recurrences,
defined_tags={
"foo-namespace.bar-key": "value",
},
freeform_tags={
"bar-key": "value",
})
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/CloudMigrations"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := CloudMigrations.NewReplicationSchedule(ctx, "test_replication_schedule", &CloudMigrations.ReplicationScheduleArgs{
CompartmentId: pulumi.Any(compartmentId),
DisplayName: pulumi.Any(replicationScheduleDisplayName),
ExecutionRecurrences: pulumi.Any(replicationScheduleExecutionRecurrences),
DefinedTags: pulumi.StringMap{
"foo-namespace.bar-key": pulumi.String("value"),
},
FreeformTags: pulumi.StringMap{
"bar-key": pulumi.String("value"),
},
})
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 testReplicationSchedule = new Oci.CloudMigrations.ReplicationSchedule("test_replication_schedule", new()
{
CompartmentId = compartmentId,
DisplayName = replicationScheduleDisplayName,
ExecutionRecurrences = replicationScheduleExecutionRecurrences,
DefinedTags =
{
{ "foo-namespace.bar-key", "value" },
},
FreeformTags =
{
{ "bar-key", "value" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.CloudMigrations.ReplicationSchedule;
import com.pulumi.oci.CloudMigrations.ReplicationScheduleArgs;
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 testReplicationSchedule = new ReplicationSchedule("testReplicationSchedule", ReplicationScheduleArgs.builder()
.compartmentId(compartmentId)
.displayName(replicationScheduleDisplayName)
.executionRecurrences(replicationScheduleExecutionRecurrences)
.definedTags(Map.of("foo-namespace.bar-key", "value"))
.freeformTags(Map.of("bar-key", "value"))
.build());
}
}
resources:
testReplicationSchedule:
type: oci:CloudMigrations:ReplicationSchedule
name: test_replication_schedule
properties:
compartmentId: ${compartmentId}
displayName: ${replicationScheduleDisplayName}
executionRecurrences: ${replicationScheduleExecutionRecurrences}
definedTags:
foo-namespace.bar-key: value
freeformTags:
bar-key: value
Create ReplicationSchedule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ReplicationSchedule(name: string, args: ReplicationScheduleArgs, opts?: CustomResourceOptions);
@overload
def ReplicationSchedule(resource_name: str,
args: ReplicationScheduleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ReplicationSchedule(resource_name: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
execution_recurrences: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
freeform_tags: Optional[Mapping[str, str]] = None)
func NewReplicationSchedule(ctx *Context, name string, args ReplicationScheduleArgs, opts ...ResourceOption) (*ReplicationSchedule, error)
public ReplicationSchedule(string name, ReplicationScheduleArgs args, CustomResourceOptions? opts = null)
public ReplicationSchedule(String name, ReplicationScheduleArgs args)
public ReplicationSchedule(String name, ReplicationScheduleArgs args, CustomResourceOptions options)
type: oci:CloudMigrations:ReplicationSchedule
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 ReplicationScheduleArgs
- 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 ReplicationScheduleArgs
- 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 ReplicationScheduleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ReplicationScheduleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ReplicationScheduleArgs
- 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 replicationScheduleResource = new Oci.CloudMigrations.ReplicationSchedule("replicationScheduleResource", new()
{
CompartmentId = "string",
DisplayName = "string",
ExecutionRecurrences = "string",
DefinedTags =
{
{ "string", "string" },
},
FreeformTags =
{
{ "string", "string" },
},
});
example, err := CloudMigrations.NewReplicationSchedule(ctx, "replicationScheduleResource", &CloudMigrations.ReplicationScheduleArgs{
CompartmentId: pulumi.String("string"),
DisplayName: pulumi.String("string"),
ExecutionRecurrences: pulumi.String("string"),
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var replicationScheduleResource = new ReplicationSchedule("replicationScheduleResource", ReplicationScheduleArgs.builder()
.compartmentId("string")
.displayName("string")
.executionRecurrences("string")
.definedTags(Map.of("string", "string"))
.freeformTags(Map.of("string", "string"))
.build());
replication_schedule_resource = oci.cloud_migrations.ReplicationSchedule("replicationScheduleResource",
compartment_id="string",
display_name="string",
execution_recurrences="string",
defined_tags={
"string": "string",
},
freeform_tags={
"string": "string",
})
const replicationScheduleResource = new oci.cloudmigrations.ReplicationSchedule("replicationScheduleResource", {
compartmentId: "string",
displayName: "string",
executionRecurrences: "string",
definedTags: {
string: "string",
},
freeformTags: {
string: "string",
},
});
type: oci:CloudMigrations:ReplicationSchedule
properties:
compartmentId: string
definedTags:
string: string
displayName: string
executionRecurrences: string
freeformTags:
string: string
ReplicationSchedule 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 ReplicationSchedule resource accepts the following input properties:
- Compartment
Id string - (Updatable) The OCID of the compartment in which the replication schedule should be created.
- Display
Name string - (Updatable) A user-friendly name for a replication schedule. Does not have to be unique, and is mutable. Avoid entering confidential information.
- Execution
Recurrences string - (Updatable) Recurrence specification for replication schedule execution.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Dictionary<string, string>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility. Example:
{"bar-key": "value"}
** 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
- Compartment
Id string - (Updatable) The OCID of the compartment in which the replication schedule should be created.
- Display
Name string - (Updatable) A user-friendly name for a replication schedule. Does not have to be unique, and is mutable. Avoid entering confidential information.
- Execution
Recurrences string - (Updatable) Recurrence specification for replication schedule execution.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- map[string]string
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility. Example:
{"bar-key": "value"}
** 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
- compartment
Id String - (Updatable) The OCID of the compartment in which the replication schedule should be created.
- display
Name String - (Updatable) A user-friendly name for a replication schedule. Does not have to be unique, and is mutable. Avoid entering confidential information.
- execution
Recurrences String - (Updatable) Recurrence specification for replication schedule execution.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Map<String,String>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility. Example:
{"bar-key": "value"}
** 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
- compartment
Id string - (Updatable) The OCID of the compartment in which the replication schedule should be created.
- display
Name string - (Updatable) A user-friendly name for a replication schedule. Does not have to be unique, and is mutable. Avoid entering confidential information.
- execution
Recurrences string - (Updatable) Recurrence specification for replication schedule execution.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- {[key: string]: string}
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility. Example:
{"bar-key": "value"}
** 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
- compartment_
id str - (Updatable) The OCID of the compartment in which the replication schedule should be created.
- display_
name str - (Updatable) A user-friendly name for a replication schedule. Does not have to be unique, and is mutable. Avoid entering confidential information.
- execution_
recurrences str - (Updatable) Recurrence specification for replication schedule execution.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Mapping[str, str]
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility. Example:
{"bar-key": "value"}
** 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
- compartment
Id String - (Updatable) The OCID of the compartment in which the replication schedule should be created.
- display
Name String - (Updatable) A user-friendly name for a replication schedule. Does not have to be unique, and is mutable. Avoid entering confidential information.
- execution
Recurrences String - (Updatable) Recurrence specification for replication schedule execution.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Map<String>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility. Example:
{"bar-key": "value"}
** 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 ReplicationSchedule resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string - The detailed state of the replication schedule.
- State string
- Current state of the replication schedule.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time when the replication schedule was created in RFC3339 format.
- Time
Updated string - The time when the replication schedule was last updated in RFC3339 format.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string - The detailed state of the replication schedule.
- State string
- Current state of the replication schedule.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time when the replication schedule was created in RFC3339 format.
- Time
Updated string - The time when the replication schedule was last updated in RFC3339 format.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details String - The detailed state of the replication schedule.
- state String
- Current state of the replication schedule.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time when the replication schedule was created in RFC3339 format.
- time
Updated String - The time when the replication schedule was last updated in RFC3339 format.
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details string - The detailed state of the replication schedule.
- state string
- Current state of the replication schedule.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The time when the replication schedule was created in RFC3339 format.
- time
Updated string - The time when the replication schedule was last updated in RFC3339 format.
- id str
- The provider-assigned unique ID for this managed resource.
- lifecycle_
details str - The detailed state of the replication schedule.
- state str
- Current state of the replication schedule.
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str - The time when the replication schedule was created in RFC3339 format.
- time_
updated str - The time when the replication schedule was last updated in RFC3339 format.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details String - The detailed state of the replication schedule.
- state String
- Current state of the replication schedule.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time when the replication schedule was created in RFC3339 format.
- time
Updated String - The time when the replication schedule was last updated in RFC3339 format.
Look up Existing ReplicationSchedule Resource
Get an existing ReplicationSchedule 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?: ReplicationScheduleState, opts?: CustomResourceOptions): ReplicationSchedule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
display_name: Optional[str] = None,
execution_recurrences: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
lifecycle_details: Optional[str] = None,
state: Optional[str] = None,
system_tags: Optional[Mapping[str, str]] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None) -> ReplicationSchedule
func GetReplicationSchedule(ctx *Context, name string, id IDInput, state *ReplicationScheduleState, opts ...ResourceOption) (*ReplicationSchedule, error)
public static ReplicationSchedule Get(string name, Input<string> id, ReplicationScheduleState? state, CustomResourceOptions? opts = null)
public static ReplicationSchedule get(String name, Output<String> id, ReplicationScheduleState 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.
- Compartment
Id string - (Updatable) The OCID of the compartment in which the replication schedule should be created.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string - (Updatable) A user-friendly name for a replication schedule. Does not have to be unique, and is mutable. Avoid entering confidential information.
- Execution
Recurrences string - (Updatable) Recurrence specification for replication schedule execution.
- Dictionary<string, string>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility. Example:
{"bar-key": "value"}
** 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 string - The detailed state of the replication schedule.
- State string
- Current state of the replication schedule.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time when the replication schedule was created in RFC3339 format.
- Time
Updated string - The time when the replication schedule was last updated in RFC3339 format.
- Compartment
Id string - (Updatable) The OCID of the compartment in which the replication schedule should be created.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string - (Updatable) A user-friendly name for a replication schedule. Does not have to be unique, and is mutable. Avoid entering confidential information.
- Execution
Recurrences string - (Updatable) Recurrence specification for replication schedule execution.
- map[string]string
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility. Example:
{"bar-key": "value"}
** 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 string - The detailed state of the replication schedule.
- State string
- Current state of the replication schedule.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time when the replication schedule was created in RFC3339 format.
- Time
Updated string - The time when the replication schedule was last updated in RFC3339 format.
- compartment
Id String - (Updatable) The OCID of the compartment in which the replication schedule should be created.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String - (Updatable) A user-friendly name for a replication schedule. Does not have to be unique, and is mutable. Avoid entering confidential information.
- execution
Recurrences String - (Updatable) Recurrence specification for replication schedule execution.
- Map<String,String>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility. Example:
{"bar-key": "value"}
** 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 String - The detailed state of the replication schedule.
- state String
- Current state of the replication schedule.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time when the replication schedule was created in RFC3339 format.
- time
Updated String - The time when the replication schedule was last updated in RFC3339 format.
- compartment
Id string - (Updatable) The OCID of the compartment in which the replication schedule should be created.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name string - (Updatable) A user-friendly name for a replication schedule. Does not have to be unique, and is mutable. Avoid entering confidential information.
- execution
Recurrences string - (Updatable) Recurrence specification for replication schedule execution.
- {[key: string]: string}
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility. Example:
{"bar-key": "value"}
** 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 string - The detailed state of the replication schedule.
- state string
- Current state of the replication schedule.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The time when the replication schedule was created in RFC3339 format.
- time
Updated string - The time when the replication schedule was last updated in RFC3339 format.
- compartment_
id str - (Updatable) The OCID of the compartment in which the replication schedule should be created.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display_
name str - (Updatable) A user-friendly name for a replication schedule. Does not have to be unique, and is mutable. Avoid entering confidential information.
- execution_
recurrences str - (Updatable) Recurrence specification for replication schedule execution.
- Mapping[str, str]
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility. Example:
{"bar-key": "value"}
** 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 - The detailed state of the replication schedule.
- state str
- Current state of the replication schedule.
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str - The time when the replication schedule was created in RFC3339 format.
- time_
updated str - The time when the replication schedule was last updated in RFC3339 format.
- compartment
Id String - (Updatable) The OCID of the compartment in which the replication schedule should be created.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String - (Updatable) A user-friendly name for a replication schedule. Does not have to be unique, and is mutable. Avoid entering confidential information.
- execution
Recurrences String - (Updatable) Recurrence specification for replication schedule execution.
- Map<String>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility. Example:
{"bar-key": "value"}
** 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 String - The detailed state of the replication schedule.
- state String
- Current state of the replication schedule.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time when the replication schedule was created in RFC3339 format.
- time
Updated String - The time when the replication schedule was last updated in RFC3339 format.
Import
ReplicationSchedules can be imported using the id
, e.g.
$ pulumi import oci:CloudMigrations/replicationSchedule:ReplicationSchedule test_replication_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.