pulumi-oci 2.0.0a1719867547__py3-none-any.whl → 2.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_oci/__init__.py +43 -0
- pulumi_oci/database/__init__.py +11 -0
- pulumi_oci/database/_inputs.py +607 -0
- pulumi_oci/database/db_node.py +28 -0
- pulumi_oci/database/exadb_vm_cluster.py +1761 -0
- pulumi_oci/database/exascale_db_storage_vault.py +787 -0
- pulumi_oci/database/get_backups.py +22 -5
- pulumi_oci/database/get_db_node.py +14 -1
- pulumi_oci/database/get_db_nodes.py +2 -2
- pulumi_oci/database/get_exadb_vm_cluster.py +614 -0
- pulumi_oci/database/get_exadb_vm_cluster_update.py +226 -0
- pulumi_oci/database/get_exadb_vm_cluster_update_history_entries.py +153 -0
- pulumi_oci/database/get_exadb_vm_cluster_update_history_entry.py +226 -0
- pulumi_oci/database/get_exadb_vm_cluster_updates.py +173 -0
- pulumi_oci/database/get_exadb_vm_clusters.py +196 -0
- pulumi_oci/database/get_exascale_db_storage_vault.py +301 -0
- pulumi_oci/database/get_exascale_db_storage_vaults.py +176 -0
- pulumi_oci/database/get_gi_version_minor_versions.py +221 -0
- pulumi_oci/database/get_gi_versions.py +22 -5
- pulumi_oci/database/outputs.py +2050 -0
- pulumi_oci/database/pluggable_database.py +7 -7
- pulumi_oci/databasemigration/__init__.py +6 -0
- pulumi_oci/databasemigration/_inputs.py +1577 -0
- pulumi_oci/databasemigration/connection.py +2019 -0
- pulumi_oci/databasemigration/get_connection.py +616 -0
- pulumi_oci/databasemigration/get_connections.py +225 -0
- pulumi_oci/databasemigration/get_job_advisor_report.py +2 -10
- pulumi_oci/databasemigration/get_migration.py +427 -0
- pulumi_oci/databasemigration/get_migration_object_types.py +24 -13
- pulumi_oci/databasemigration/get_migrations.py +407 -0
- pulumi_oci/databasemigration/job.py +16 -20
- pulumi_oci/databasemigration/migration.py +1471 -0
- pulumi_oci/databasemigration/outputs.py +4301 -73
- pulumi_oci/filestorage/_inputs.py +10 -18
- pulumi_oci/filestorage/export.py +28 -7
- pulumi_oci/filestorage/file_system.py +159 -35
- pulumi_oci/filestorage/outputs.py +55 -34
- pulumi_oci/generativeai/_inputs.py +50 -2
- pulumi_oci/generativeai/dedicated_ai_cluster.py +30 -2
- pulumi_oci/generativeai/endpoint.py +2 -2
- pulumi_oci/generativeai/get_dedicated_ai_cluster.py +2 -47
- pulumi_oci/generativeai/get_dedicated_ai_clusters.py +2 -14
- pulumi_oci/generativeai/get_endpoint.py +2 -26
- pulumi_oci/generativeai/get_endpoints.py +2 -8
- pulumi_oci/generativeai/get_model.py +2 -38
- pulumi_oci/generativeai/get_models.py +2 -8
- pulumi_oci/generativeai/model.py +2 -2
- pulumi_oci/generativeai/outputs.py +86 -310
- pulumi_oci/pulumi-plugin.json +1 -1
- pulumi_oci/resourcescheduler/__init__.py +12 -0
- pulumi_oci/resourcescheduler/_inputs.py +224 -0
- pulumi_oci/resourcescheduler/get_schedule.py +340 -0
- pulumi_oci/resourcescheduler/get_schedules.py +193 -0
- pulumi_oci/resourcescheduler/outputs.py +687 -0
- pulumi_oci/resourcescheduler/schedule.py +977 -0
- {pulumi_oci-2.0.0a1719867547.dist-info → pulumi_oci-2.1.0.dist-info}/METADATA +1 -1
- {pulumi_oci-2.0.0a1719867547.dist-info → pulumi_oci-2.1.0.dist-info}/RECORD +59 -36
- {pulumi_oci-2.0.0a1719867547.dist-info → pulumi_oci-2.1.0.dist-info}/WHEEL +0 -0
- {pulumi_oci-2.0.0a1719867547.dist-info → pulumi_oci-2.1.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,977 @@
|
|
1
|
+
# coding=utf-8
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
+
|
5
|
+
import copy
|
6
|
+
import warnings
|
7
|
+
import pulumi
|
8
|
+
import pulumi.runtime
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
10
|
+
from .. import _utilities
|
11
|
+
from . import outputs
|
12
|
+
from ._inputs import *
|
13
|
+
|
14
|
+
__all__ = ['ScheduleArgs', 'Schedule']
|
15
|
+
|
16
|
+
@pulumi.input_type
|
17
|
+
class ScheduleArgs:
|
18
|
+
def __init__(__self__, *,
|
19
|
+
action: pulumi.Input[str],
|
20
|
+
compartment_id: pulumi.Input[str],
|
21
|
+
recurrence_details: pulumi.Input[str],
|
22
|
+
recurrence_type: pulumi.Input[str],
|
23
|
+
defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
|
24
|
+
description: Optional[pulumi.Input[str]] = None,
|
25
|
+
display_name: Optional[pulumi.Input[str]] = None,
|
26
|
+
freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
|
27
|
+
resource_filters: Optional[pulumi.Input[Sequence[pulumi.Input['ScheduleResourceFilterArgs']]]] = None,
|
28
|
+
resources: Optional[pulumi.Input[Sequence[pulumi.Input['ScheduleResourceArgs']]]] = None,
|
29
|
+
state: Optional[pulumi.Input[str]] = None,
|
30
|
+
time_ends: Optional[pulumi.Input[str]] = None,
|
31
|
+
time_starts: Optional[pulumi.Input[str]] = None):
|
32
|
+
"""
|
33
|
+
The set of arguments for constructing a Schedule resource.
|
34
|
+
:param pulumi.Input[str] action: (Updatable) This is the action that will be executed by the schedule.
|
35
|
+
:param pulumi.Input[str] compartment_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which the schedule is created
|
36
|
+
:param pulumi.Input[str] recurrence_details: (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.
|
37
|
+
:param pulumi.Input[str] recurrence_type: (Updatable) Type of recurrence of a schedule
|
38
|
+
:param pulumi.Input[Mapping[str, Any]] defined_tags: (Updatable) These are defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
|
39
|
+
:param pulumi.Input[str] description: (Updatable) This is the description of the schedule.
|
40
|
+
:param pulumi.Input[str] display_name: (Updatable) This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable.
|
41
|
+
:param pulumi.Input[Mapping[str, Any]] freeform_tags: (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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
|
42
|
+
:param pulumi.Input[Sequence[pulumi.Input['ScheduleResourceFilterArgs']]] resource_filters: (Updatable) This is a list of resources filters. The schedule will be applied to resources matching all of them.
|
43
|
+
:param pulumi.Input[Sequence[pulumi.Input['ScheduleResourceArgs']]] resources: (Updatable) This is the list of resources to which the scheduled operation is applied.
|
44
|
+
:param pulumi.Input[str] state: (Updatable) The target state for the Schedule. Could be set to `ACTIVE` or `INACTIVE`.
|
45
|
+
|
46
|
+
|
47
|
+
** IMPORTANT **
|
48
|
+
Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
|
49
|
+
:param pulumi.Input[str] time_ends: (Updatable) This is the date and time the schedule ends, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339) Example: `2016-08-25T21:10:29.600Z`
|
50
|
+
:param pulumi.Input[str] time_starts: (Updatable) This is the date and time the schedule starts, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339) Example: `2016-08-25T21:10:29.600Z`
|
51
|
+
"""
|
52
|
+
pulumi.set(__self__, "action", action)
|
53
|
+
pulumi.set(__self__, "compartment_id", compartment_id)
|
54
|
+
pulumi.set(__self__, "recurrence_details", recurrence_details)
|
55
|
+
pulumi.set(__self__, "recurrence_type", recurrence_type)
|
56
|
+
if defined_tags is not None:
|
57
|
+
pulumi.set(__self__, "defined_tags", defined_tags)
|
58
|
+
if description is not None:
|
59
|
+
pulumi.set(__self__, "description", description)
|
60
|
+
if display_name is not None:
|
61
|
+
pulumi.set(__self__, "display_name", display_name)
|
62
|
+
if freeform_tags is not None:
|
63
|
+
pulumi.set(__self__, "freeform_tags", freeform_tags)
|
64
|
+
if resource_filters is not None:
|
65
|
+
pulumi.set(__self__, "resource_filters", resource_filters)
|
66
|
+
if resources is not None:
|
67
|
+
pulumi.set(__self__, "resources", resources)
|
68
|
+
if state is not None:
|
69
|
+
pulumi.set(__self__, "state", state)
|
70
|
+
if time_ends is not None:
|
71
|
+
pulumi.set(__self__, "time_ends", time_ends)
|
72
|
+
if time_starts is not None:
|
73
|
+
pulumi.set(__self__, "time_starts", time_starts)
|
74
|
+
|
75
|
+
@property
|
76
|
+
@pulumi.getter
|
77
|
+
def action(self) -> pulumi.Input[str]:
|
78
|
+
"""
|
79
|
+
(Updatable) This is the action that will be executed by the schedule.
|
80
|
+
"""
|
81
|
+
return pulumi.get(self, "action")
|
82
|
+
|
83
|
+
@action.setter
|
84
|
+
def action(self, value: pulumi.Input[str]):
|
85
|
+
pulumi.set(self, "action", value)
|
86
|
+
|
87
|
+
@property
|
88
|
+
@pulumi.getter(name="compartmentId")
|
89
|
+
def compartment_id(self) -> pulumi.Input[str]:
|
90
|
+
"""
|
91
|
+
The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which the schedule is created
|
92
|
+
"""
|
93
|
+
return pulumi.get(self, "compartment_id")
|
94
|
+
|
95
|
+
@compartment_id.setter
|
96
|
+
def compartment_id(self, value: pulumi.Input[str]):
|
97
|
+
pulumi.set(self, "compartment_id", value)
|
98
|
+
|
99
|
+
@property
|
100
|
+
@pulumi.getter(name="recurrenceDetails")
|
101
|
+
def recurrence_details(self) -> pulumi.Input[str]:
|
102
|
+
"""
|
103
|
+
(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.
|
104
|
+
"""
|
105
|
+
return pulumi.get(self, "recurrence_details")
|
106
|
+
|
107
|
+
@recurrence_details.setter
|
108
|
+
def recurrence_details(self, value: pulumi.Input[str]):
|
109
|
+
pulumi.set(self, "recurrence_details", value)
|
110
|
+
|
111
|
+
@property
|
112
|
+
@pulumi.getter(name="recurrenceType")
|
113
|
+
def recurrence_type(self) -> pulumi.Input[str]:
|
114
|
+
"""
|
115
|
+
(Updatable) Type of recurrence of a schedule
|
116
|
+
"""
|
117
|
+
return pulumi.get(self, "recurrence_type")
|
118
|
+
|
119
|
+
@recurrence_type.setter
|
120
|
+
def recurrence_type(self, value: pulumi.Input[str]):
|
121
|
+
pulumi.set(self, "recurrence_type", value)
|
122
|
+
|
123
|
+
@property
|
124
|
+
@pulumi.getter(name="definedTags")
|
125
|
+
def defined_tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
|
126
|
+
"""
|
127
|
+
(Updatable) These are defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
|
128
|
+
"""
|
129
|
+
return pulumi.get(self, "defined_tags")
|
130
|
+
|
131
|
+
@defined_tags.setter
|
132
|
+
def defined_tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
|
133
|
+
pulumi.set(self, "defined_tags", value)
|
134
|
+
|
135
|
+
@property
|
136
|
+
@pulumi.getter
|
137
|
+
def description(self) -> Optional[pulumi.Input[str]]:
|
138
|
+
"""
|
139
|
+
(Updatable) This is the description of the schedule.
|
140
|
+
"""
|
141
|
+
return pulumi.get(self, "description")
|
142
|
+
|
143
|
+
@description.setter
|
144
|
+
def description(self, value: Optional[pulumi.Input[str]]):
|
145
|
+
pulumi.set(self, "description", value)
|
146
|
+
|
147
|
+
@property
|
148
|
+
@pulumi.getter(name="displayName")
|
149
|
+
def display_name(self) -> Optional[pulumi.Input[str]]:
|
150
|
+
"""
|
151
|
+
(Updatable) This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable.
|
152
|
+
"""
|
153
|
+
return pulumi.get(self, "display_name")
|
154
|
+
|
155
|
+
@display_name.setter
|
156
|
+
def display_name(self, value: Optional[pulumi.Input[str]]):
|
157
|
+
pulumi.set(self, "display_name", value)
|
158
|
+
|
159
|
+
@property
|
160
|
+
@pulumi.getter(name="freeformTags")
|
161
|
+
def freeform_tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
|
162
|
+
"""
|
163
|
+
(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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
|
164
|
+
"""
|
165
|
+
return pulumi.get(self, "freeform_tags")
|
166
|
+
|
167
|
+
@freeform_tags.setter
|
168
|
+
def freeform_tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
|
169
|
+
pulumi.set(self, "freeform_tags", value)
|
170
|
+
|
171
|
+
@property
|
172
|
+
@pulumi.getter(name="resourceFilters")
|
173
|
+
def resource_filters(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ScheduleResourceFilterArgs']]]]:
|
174
|
+
"""
|
175
|
+
(Updatable) This is a list of resources filters. The schedule will be applied to resources matching all of them.
|
176
|
+
"""
|
177
|
+
return pulumi.get(self, "resource_filters")
|
178
|
+
|
179
|
+
@resource_filters.setter
|
180
|
+
def resource_filters(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ScheduleResourceFilterArgs']]]]):
|
181
|
+
pulumi.set(self, "resource_filters", value)
|
182
|
+
|
183
|
+
@property
|
184
|
+
@pulumi.getter
|
185
|
+
def resources(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ScheduleResourceArgs']]]]:
|
186
|
+
"""
|
187
|
+
(Updatable) This is the list of resources to which the scheduled operation is applied.
|
188
|
+
"""
|
189
|
+
return pulumi.get(self, "resources")
|
190
|
+
|
191
|
+
@resources.setter
|
192
|
+
def resources(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ScheduleResourceArgs']]]]):
|
193
|
+
pulumi.set(self, "resources", value)
|
194
|
+
|
195
|
+
@property
|
196
|
+
@pulumi.getter
|
197
|
+
def state(self) -> Optional[pulumi.Input[str]]:
|
198
|
+
"""
|
199
|
+
(Updatable) The target state for the Schedule. Could be set to `ACTIVE` or `INACTIVE`.
|
200
|
+
|
201
|
+
|
202
|
+
** IMPORTANT **
|
203
|
+
Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
|
204
|
+
"""
|
205
|
+
return pulumi.get(self, "state")
|
206
|
+
|
207
|
+
@state.setter
|
208
|
+
def state(self, value: Optional[pulumi.Input[str]]):
|
209
|
+
pulumi.set(self, "state", value)
|
210
|
+
|
211
|
+
@property
|
212
|
+
@pulumi.getter(name="timeEnds")
|
213
|
+
def time_ends(self) -> Optional[pulumi.Input[str]]:
|
214
|
+
"""
|
215
|
+
(Updatable) This is the date and time the schedule ends, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339) Example: `2016-08-25T21:10:29.600Z`
|
216
|
+
"""
|
217
|
+
return pulumi.get(self, "time_ends")
|
218
|
+
|
219
|
+
@time_ends.setter
|
220
|
+
def time_ends(self, value: Optional[pulumi.Input[str]]):
|
221
|
+
pulumi.set(self, "time_ends", value)
|
222
|
+
|
223
|
+
@property
|
224
|
+
@pulumi.getter(name="timeStarts")
|
225
|
+
def time_starts(self) -> Optional[pulumi.Input[str]]:
|
226
|
+
"""
|
227
|
+
(Updatable) This is the date and time the schedule starts, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339) Example: `2016-08-25T21:10:29.600Z`
|
228
|
+
"""
|
229
|
+
return pulumi.get(self, "time_starts")
|
230
|
+
|
231
|
+
@time_starts.setter
|
232
|
+
def time_starts(self, value: Optional[pulumi.Input[str]]):
|
233
|
+
pulumi.set(self, "time_starts", value)
|
234
|
+
|
235
|
+
|
236
|
+
@pulumi.input_type
|
237
|
+
class _ScheduleState:
|
238
|
+
def __init__(__self__, *,
|
239
|
+
action: Optional[pulumi.Input[str]] = None,
|
240
|
+
compartment_id: Optional[pulumi.Input[str]] = None,
|
241
|
+
defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
|
242
|
+
description: Optional[pulumi.Input[str]] = None,
|
243
|
+
display_name: Optional[pulumi.Input[str]] = None,
|
244
|
+
freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
|
245
|
+
recurrence_details: Optional[pulumi.Input[str]] = None,
|
246
|
+
recurrence_type: Optional[pulumi.Input[str]] = None,
|
247
|
+
resource_filters: Optional[pulumi.Input[Sequence[pulumi.Input['ScheduleResourceFilterArgs']]]] = None,
|
248
|
+
resources: Optional[pulumi.Input[Sequence[pulumi.Input['ScheduleResourceArgs']]]] = None,
|
249
|
+
state: Optional[pulumi.Input[str]] = None,
|
250
|
+
system_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
|
251
|
+
time_created: Optional[pulumi.Input[str]] = None,
|
252
|
+
time_ends: Optional[pulumi.Input[str]] = None,
|
253
|
+
time_last_run: Optional[pulumi.Input[str]] = None,
|
254
|
+
time_next_run: Optional[pulumi.Input[str]] = None,
|
255
|
+
time_starts: Optional[pulumi.Input[str]] = None,
|
256
|
+
time_updated: Optional[pulumi.Input[str]] = None):
|
257
|
+
"""
|
258
|
+
Input properties used for looking up and filtering Schedule resources.
|
259
|
+
:param pulumi.Input[str] action: (Updatable) This is the action that will be executed by the schedule.
|
260
|
+
:param pulumi.Input[str] compartment_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which the schedule is created
|
261
|
+
:param pulumi.Input[Mapping[str, Any]] defined_tags: (Updatable) These are defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
|
262
|
+
:param pulumi.Input[str] description: (Updatable) This is the description of the schedule.
|
263
|
+
:param pulumi.Input[str] display_name: (Updatable) This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable.
|
264
|
+
:param pulumi.Input[Mapping[str, Any]] freeform_tags: (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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
|
265
|
+
:param pulumi.Input[str] recurrence_details: (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.
|
266
|
+
:param pulumi.Input[str] recurrence_type: (Updatable) Type of recurrence of a schedule
|
267
|
+
:param pulumi.Input[Sequence[pulumi.Input['ScheduleResourceFilterArgs']]] resource_filters: (Updatable) This is a list of resources filters. The schedule will be applied to resources matching all of them.
|
268
|
+
:param pulumi.Input[Sequence[pulumi.Input['ScheduleResourceArgs']]] resources: (Updatable) This is the list of resources to which the scheduled operation is applied.
|
269
|
+
:param pulumi.Input[str] state: (Updatable) The target state for the Schedule. Could be set to `ACTIVE` or `INACTIVE`.
|
270
|
+
|
271
|
+
|
272
|
+
** IMPORTANT **
|
273
|
+
Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
|
274
|
+
:param pulumi.Input[Mapping[str, Any]] system_tags: These are system tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}`
|
275
|
+
:param pulumi.Input[str] time_created: This is the date and time the schedule was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`
|
276
|
+
:param pulumi.Input[str] time_ends: (Updatable) This is the date and time the schedule ends, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339) Example: `2016-08-25T21:10:29.600Z`
|
277
|
+
:param pulumi.Input[str] time_last_run: This is the date and time the schedule runs last time, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`
|
278
|
+
:param pulumi.Input[str] time_next_run: This is the date and time the schedule run the next time, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`
|
279
|
+
:param pulumi.Input[str] time_starts: (Updatable) This is the date and time the schedule starts, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339) Example: `2016-08-25T21:10:29.600Z`
|
280
|
+
:param pulumi.Input[str] time_updated: This is the date and time the schedule was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`
|
281
|
+
"""
|
282
|
+
if action is not None:
|
283
|
+
pulumi.set(__self__, "action", action)
|
284
|
+
if compartment_id is not None:
|
285
|
+
pulumi.set(__self__, "compartment_id", compartment_id)
|
286
|
+
if defined_tags is not None:
|
287
|
+
pulumi.set(__self__, "defined_tags", defined_tags)
|
288
|
+
if description is not None:
|
289
|
+
pulumi.set(__self__, "description", description)
|
290
|
+
if display_name is not None:
|
291
|
+
pulumi.set(__self__, "display_name", display_name)
|
292
|
+
if freeform_tags is not None:
|
293
|
+
pulumi.set(__self__, "freeform_tags", freeform_tags)
|
294
|
+
if recurrence_details is not None:
|
295
|
+
pulumi.set(__self__, "recurrence_details", recurrence_details)
|
296
|
+
if recurrence_type is not None:
|
297
|
+
pulumi.set(__self__, "recurrence_type", recurrence_type)
|
298
|
+
if resource_filters is not None:
|
299
|
+
pulumi.set(__self__, "resource_filters", resource_filters)
|
300
|
+
if resources is not None:
|
301
|
+
pulumi.set(__self__, "resources", resources)
|
302
|
+
if state is not None:
|
303
|
+
pulumi.set(__self__, "state", state)
|
304
|
+
if system_tags is not None:
|
305
|
+
pulumi.set(__self__, "system_tags", system_tags)
|
306
|
+
if time_created is not None:
|
307
|
+
pulumi.set(__self__, "time_created", time_created)
|
308
|
+
if time_ends is not None:
|
309
|
+
pulumi.set(__self__, "time_ends", time_ends)
|
310
|
+
if time_last_run is not None:
|
311
|
+
pulumi.set(__self__, "time_last_run", time_last_run)
|
312
|
+
if time_next_run is not None:
|
313
|
+
pulumi.set(__self__, "time_next_run", time_next_run)
|
314
|
+
if time_starts is not None:
|
315
|
+
pulumi.set(__self__, "time_starts", time_starts)
|
316
|
+
if time_updated is not None:
|
317
|
+
pulumi.set(__self__, "time_updated", time_updated)
|
318
|
+
|
319
|
+
@property
|
320
|
+
@pulumi.getter
|
321
|
+
def action(self) -> Optional[pulumi.Input[str]]:
|
322
|
+
"""
|
323
|
+
(Updatable) This is the action that will be executed by the schedule.
|
324
|
+
"""
|
325
|
+
return pulumi.get(self, "action")
|
326
|
+
|
327
|
+
@action.setter
|
328
|
+
def action(self, value: Optional[pulumi.Input[str]]):
|
329
|
+
pulumi.set(self, "action", value)
|
330
|
+
|
331
|
+
@property
|
332
|
+
@pulumi.getter(name="compartmentId")
|
333
|
+
def compartment_id(self) -> Optional[pulumi.Input[str]]:
|
334
|
+
"""
|
335
|
+
The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which the schedule is created
|
336
|
+
"""
|
337
|
+
return pulumi.get(self, "compartment_id")
|
338
|
+
|
339
|
+
@compartment_id.setter
|
340
|
+
def compartment_id(self, value: Optional[pulumi.Input[str]]):
|
341
|
+
pulumi.set(self, "compartment_id", value)
|
342
|
+
|
343
|
+
@property
|
344
|
+
@pulumi.getter(name="definedTags")
|
345
|
+
def defined_tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
|
346
|
+
"""
|
347
|
+
(Updatable) These are defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
|
348
|
+
"""
|
349
|
+
return pulumi.get(self, "defined_tags")
|
350
|
+
|
351
|
+
@defined_tags.setter
|
352
|
+
def defined_tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
|
353
|
+
pulumi.set(self, "defined_tags", value)
|
354
|
+
|
355
|
+
@property
|
356
|
+
@pulumi.getter
|
357
|
+
def description(self) -> Optional[pulumi.Input[str]]:
|
358
|
+
"""
|
359
|
+
(Updatable) This is the description of the schedule.
|
360
|
+
"""
|
361
|
+
return pulumi.get(self, "description")
|
362
|
+
|
363
|
+
@description.setter
|
364
|
+
def description(self, value: Optional[pulumi.Input[str]]):
|
365
|
+
pulumi.set(self, "description", value)
|
366
|
+
|
367
|
+
@property
|
368
|
+
@pulumi.getter(name="displayName")
|
369
|
+
def display_name(self) -> Optional[pulumi.Input[str]]:
|
370
|
+
"""
|
371
|
+
(Updatable) This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable.
|
372
|
+
"""
|
373
|
+
return pulumi.get(self, "display_name")
|
374
|
+
|
375
|
+
@display_name.setter
|
376
|
+
def display_name(self, value: Optional[pulumi.Input[str]]):
|
377
|
+
pulumi.set(self, "display_name", value)
|
378
|
+
|
379
|
+
@property
|
380
|
+
@pulumi.getter(name="freeformTags")
|
381
|
+
def freeform_tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
|
382
|
+
"""
|
383
|
+
(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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
|
384
|
+
"""
|
385
|
+
return pulumi.get(self, "freeform_tags")
|
386
|
+
|
387
|
+
@freeform_tags.setter
|
388
|
+
def freeform_tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
|
389
|
+
pulumi.set(self, "freeform_tags", value)
|
390
|
+
|
391
|
+
@property
|
392
|
+
@pulumi.getter(name="recurrenceDetails")
|
393
|
+
def recurrence_details(self) -> Optional[pulumi.Input[str]]:
|
394
|
+
"""
|
395
|
+
(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.
|
396
|
+
"""
|
397
|
+
return pulumi.get(self, "recurrence_details")
|
398
|
+
|
399
|
+
@recurrence_details.setter
|
400
|
+
def recurrence_details(self, value: Optional[pulumi.Input[str]]):
|
401
|
+
pulumi.set(self, "recurrence_details", value)
|
402
|
+
|
403
|
+
@property
|
404
|
+
@pulumi.getter(name="recurrenceType")
|
405
|
+
def recurrence_type(self) -> Optional[pulumi.Input[str]]:
|
406
|
+
"""
|
407
|
+
(Updatable) Type of recurrence of a schedule
|
408
|
+
"""
|
409
|
+
return pulumi.get(self, "recurrence_type")
|
410
|
+
|
411
|
+
@recurrence_type.setter
|
412
|
+
def recurrence_type(self, value: Optional[pulumi.Input[str]]):
|
413
|
+
pulumi.set(self, "recurrence_type", value)
|
414
|
+
|
415
|
+
@property
|
416
|
+
@pulumi.getter(name="resourceFilters")
|
417
|
+
def resource_filters(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ScheduleResourceFilterArgs']]]]:
|
418
|
+
"""
|
419
|
+
(Updatable) This is a list of resources filters. The schedule will be applied to resources matching all of them.
|
420
|
+
"""
|
421
|
+
return pulumi.get(self, "resource_filters")
|
422
|
+
|
423
|
+
@resource_filters.setter
|
424
|
+
def resource_filters(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ScheduleResourceFilterArgs']]]]):
|
425
|
+
pulumi.set(self, "resource_filters", value)
|
426
|
+
|
427
|
+
@property
|
428
|
+
@pulumi.getter
|
429
|
+
def resources(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ScheduleResourceArgs']]]]:
|
430
|
+
"""
|
431
|
+
(Updatable) This is the list of resources to which the scheduled operation is applied.
|
432
|
+
"""
|
433
|
+
return pulumi.get(self, "resources")
|
434
|
+
|
435
|
+
@resources.setter
|
436
|
+
def resources(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ScheduleResourceArgs']]]]):
|
437
|
+
pulumi.set(self, "resources", value)
|
438
|
+
|
439
|
+
@property
|
440
|
+
@pulumi.getter
|
441
|
+
def state(self) -> Optional[pulumi.Input[str]]:
|
442
|
+
"""
|
443
|
+
(Updatable) The target state for the Schedule. Could be set to `ACTIVE` or `INACTIVE`.
|
444
|
+
|
445
|
+
|
446
|
+
** IMPORTANT **
|
447
|
+
Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
|
448
|
+
"""
|
449
|
+
return pulumi.get(self, "state")
|
450
|
+
|
451
|
+
@state.setter
|
452
|
+
def state(self, value: Optional[pulumi.Input[str]]):
|
453
|
+
pulumi.set(self, "state", value)
|
454
|
+
|
455
|
+
@property
|
456
|
+
@pulumi.getter(name="systemTags")
|
457
|
+
def system_tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
|
458
|
+
"""
|
459
|
+
These are system tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}`
|
460
|
+
"""
|
461
|
+
return pulumi.get(self, "system_tags")
|
462
|
+
|
463
|
+
@system_tags.setter
|
464
|
+
def system_tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
|
465
|
+
pulumi.set(self, "system_tags", value)
|
466
|
+
|
467
|
+
@property
|
468
|
+
@pulumi.getter(name="timeCreated")
|
469
|
+
def time_created(self) -> Optional[pulumi.Input[str]]:
|
470
|
+
"""
|
471
|
+
This is the date and time the schedule was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`
|
472
|
+
"""
|
473
|
+
return pulumi.get(self, "time_created")
|
474
|
+
|
475
|
+
@time_created.setter
|
476
|
+
def time_created(self, value: Optional[pulumi.Input[str]]):
|
477
|
+
pulumi.set(self, "time_created", value)
|
478
|
+
|
479
|
+
@property
|
480
|
+
@pulumi.getter(name="timeEnds")
|
481
|
+
def time_ends(self) -> Optional[pulumi.Input[str]]:
|
482
|
+
"""
|
483
|
+
(Updatable) This is the date and time the schedule ends, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339) Example: `2016-08-25T21:10:29.600Z`
|
484
|
+
"""
|
485
|
+
return pulumi.get(self, "time_ends")
|
486
|
+
|
487
|
+
@time_ends.setter
|
488
|
+
def time_ends(self, value: Optional[pulumi.Input[str]]):
|
489
|
+
pulumi.set(self, "time_ends", value)
|
490
|
+
|
491
|
+
@property
|
492
|
+
@pulumi.getter(name="timeLastRun")
|
493
|
+
def time_last_run(self) -> Optional[pulumi.Input[str]]:
|
494
|
+
"""
|
495
|
+
This is the date and time the schedule runs last time, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`
|
496
|
+
"""
|
497
|
+
return pulumi.get(self, "time_last_run")
|
498
|
+
|
499
|
+
@time_last_run.setter
|
500
|
+
def time_last_run(self, value: Optional[pulumi.Input[str]]):
|
501
|
+
pulumi.set(self, "time_last_run", value)
|
502
|
+
|
503
|
+
@property
|
504
|
+
@pulumi.getter(name="timeNextRun")
|
505
|
+
def time_next_run(self) -> Optional[pulumi.Input[str]]:
|
506
|
+
"""
|
507
|
+
This is the date and time the schedule run the next time, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`
|
508
|
+
"""
|
509
|
+
return pulumi.get(self, "time_next_run")
|
510
|
+
|
511
|
+
@time_next_run.setter
|
512
|
+
def time_next_run(self, value: Optional[pulumi.Input[str]]):
|
513
|
+
pulumi.set(self, "time_next_run", value)
|
514
|
+
|
515
|
+
@property
|
516
|
+
@pulumi.getter(name="timeStarts")
|
517
|
+
def time_starts(self) -> Optional[pulumi.Input[str]]:
|
518
|
+
"""
|
519
|
+
(Updatable) This is the date and time the schedule starts, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339) Example: `2016-08-25T21:10:29.600Z`
|
520
|
+
"""
|
521
|
+
return pulumi.get(self, "time_starts")
|
522
|
+
|
523
|
+
@time_starts.setter
|
524
|
+
def time_starts(self, value: Optional[pulumi.Input[str]]):
|
525
|
+
pulumi.set(self, "time_starts", value)
|
526
|
+
|
527
|
+
@property
|
528
|
+
@pulumi.getter(name="timeUpdated")
|
529
|
+
def time_updated(self) -> Optional[pulumi.Input[str]]:
|
530
|
+
"""
|
531
|
+
This is the date and time the schedule was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`
|
532
|
+
"""
|
533
|
+
return pulumi.get(self, "time_updated")
|
534
|
+
|
535
|
+
@time_updated.setter
|
536
|
+
def time_updated(self, value: Optional[pulumi.Input[str]]):
|
537
|
+
pulumi.set(self, "time_updated", value)
|
538
|
+
|
539
|
+
|
540
|
+
class Schedule(pulumi.CustomResource):
|
541
|
+
@overload
|
542
|
+
def __init__(__self__,
|
543
|
+
resource_name: str,
|
544
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
545
|
+
action: Optional[pulumi.Input[str]] = None,
|
546
|
+
compartment_id: Optional[pulumi.Input[str]] = None,
|
547
|
+
defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
|
548
|
+
description: Optional[pulumi.Input[str]] = None,
|
549
|
+
display_name: Optional[pulumi.Input[str]] = None,
|
550
|
+
freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
|
551
|
+
recurrence_details: Optional[pulumi.Input[str]] = None,
|
552
|
+
recurrence_type: Optional[pulumi.Input[str]] = None,
|
553
|
+
resource_filters: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScheduleResourceFilterArgs']]]]] = None,
|
554
|
+
resources: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScheduleResourceArgs']]]]] = None,
|
555
|
+
state: Optional[pulumi.Input[str]] = None,
|
556
|
+
time_ends: Optional[pulumi.Input[str]] = None,
|
557
|
+
time_starts: Optional[pulumi.Input[str]] = None,
|
558
|
+
__props__=None):
|
559
|
+
"""
|
560
|
+
This resource provides the Schedule resource in Oracle Cloud Infrastructure Resource Scheduler service.
|
561
|
+
|
562
|
+
Creates a Schedule
|
563
|
+
|
564
|
+
## Example Usage
|
565
|
+
|
566
|
+
```python
|
567
|
+
import pulumi
|
568
|
+
import pulumi_oci as oci
|
569
|
+
|
570
|
+
test_schedule = oci.resource_scheduler.Schedule("test_schedule",
|
571
|
+
action=schedule_action,
|
572
|
+
compartment_id=compartment_id,
|
573
|
+
recurrence_details=schedule_recurrence_details,
|
574
|
+
recurrence_type=schedule_recurrence_type,
|
575
|
+
defined_tags={
|
576
|
+
"Operations.CostCenter": "42",
|
577
|
+
},
|
578
|
+
description=schedule_description,
|
579
|
+
display_name=schedule_display_name,
|
580
|
+
freeform_tags={
|
581
|
+
"Department": "Finance",
|
582
|
+
},
|
583
|
+
resource_filters=[oci.resource_scheduler.ScheduleResourceFilterArgs(
|
584
|
+
attribute=schedule_resource_filters_attribute,
|
585
|
+
condition=schedule_resource_filters_condition,
|
586
|
+
should_include_child_compartments=schedule_resource_filters_should_include_child_compartments,
|
587
|
+
values=[oci.resource_scheduler.ScheduleResourceFilterValueArgs(
|
588
|
+
namespace=schedule_resource_filters_value_namespace,
|
589
|
+
tag_key=schedule_resource_filters_value_tag_key,
|
590
|
+
value=schedule_resource_filters_value_value,
|
591
|
+
)],
|
592
|
+
)],
|
593
|
+
resources=[oci.resource_scheduler.ScheduleResourceArgs(
|
594
|
+
id=schedule_resources_id,
|
595
|
+
metadata=schedule_resources_metadata,
|
596
|
+
)],
|
597
|
+
time_ends=schedule_time_ends,
|
598
|
+
time_starts=schedule_time_starts)
|
599
|
+
```
|
600
|
+
|
601
|
+
## Import
|
602
|
+
|
603
|
+
Schedules can be imported using the `id`, e.g.
|
604
|
+
|
605
|
+
```sh
|
606
|
+
$ pulumi import oci:ResourceScheduler/schedule:Schedule test_schedule "id"
|
607
|
+
```
|
608
|
+
|
609
|
+
:param str resource_name: The name of the resource.
|
610
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
611
|
+
:param pulumi.Input[str] action: (Updatable) This is the action that will be executed by the schedule.
|
612
|
+
:param pulumi.Input[str] compartment_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which the schedule is created
|
613
|
+
:param pulumi.Input[Mapping[str, Any]] defined_tags: (Updatable) These are defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
|
614
|
+
:param pulumi.Input[str] description: (Updatable) This is the description of the schedule.
|
615
|
+
:param pulumi.Input[str] display_name: (Updatable) This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable.
|
616
|
+
:param pulumi.Input[Mapping[str, Any]] freeform_tags: (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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
|
617
|
+
:param pulumi.Input[str] recurrence_details: (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.
|
618
|
+
:param pulumi.Input[str] recurrence_type: (Updatable) Type of recurrence of a schedule
|
619
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScheduleResourceFilterArgs']]]] resource_filters: (Updatable) This is a list of resources filters. The schedule will be applied to resources matching all of them.
|
620
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScheduleResourceArgs']]]] resources: (Updatable) This is the list of resources to which the scheduled operation is applied.
|
621
|
+
:param pulumi.Input[str] state: (Updatable) The target state for the Schedule. Could be set to `ACTIVE` or `INACTIVE`.
|
622
|
+
|
623
|
+
|
624
|
+
** IMPORTANT **
|
625
|
+
Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
|
626
|
+
:param pulumi.Input[str] time_ends: (Updatable) This is the date and time the schedule ends, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339) Example: `2016-08-25T21:10:29.600Z`
|
627
|
+
:param pulumi.Input[str] time_starts: (Updatable) This is the date and time the schedule starts, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339) Example: `2016-08-25T21:10:29.600Z`
|
628
|
+
"""
|
629
|
+
...
|
630
|
+
@overload
|
631
|
+
def __init__(__self__,
|
632
|
+
resource_name: str,
|
633
|
+
args: ScheduleArgs,
|
634
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
635
|
+
"""
|
636
|
+
This resource provides the Schedule resource in Oracle Cloud Infrastructure Resource Scheduler service.
|
637
|
+
|
638
|
+
Creates a Schedule
|
639
|
+
|
640
|
+
## Example Usage
|
641
|
+
|
642
|
+
```python
|
643
|
+
import pulumi
|
644
|
+
import pulumi_oci as oci
|
645
|
+
|
646
|
+
test_schedule = oci.resource_scheduler.Schedule("test_schedule",
|
647
|
+
action=schedule_action,
|
648
|
+
compartment_id=compartment_id,
|
649
|
+
recurrence_details=schedule_recurrence_details,
|
650
|
+
recurrence_type=schedule_recurrence_type,
|
651
|
+
defined_tags={
|
652
|
+
"Operations.CostCenter": "42",
|
653
|
+
},
|
654
|
+
description=schedule_description,
|
655
|
+
display_name=schedule_display_name,
|
656
|
+
freeform_tags={
|
657
|
+
"Department": "Finance",
|
658
|
+
},
|
659
|
+
resource_filters=[oci.resource_scheduler.ScheduleResourceFilterArgs(
|
660
|
+
attribute=schedule_resource_filters_attribute,
|
661
|
+
condition=schedule_resource_filters_condition,
|
662
|
+
should_include_child_compartments=schedule_resource_filters_should_include_child_compartments,
|
663
|
+
values=[oci.resource_scheduler.ScheduleResourceFilterValueArgs(
|
664
|
+
namespace=schedule_resource_filters_value_namespace,
|
665
|
+
tag_key=schedule_resource_filters_value_tag_key,
|
666
|
+
value=schedule_resource_filters_value_value,
|
667
|
+
)],
|
668
|
+
)],
|
669
|
+
resources=[oci.resource_scheduler.ScheduleResourceArgs(
|
670
|
+
id=schedule_resources_id,
|
671
|
+
metadata=schedule_resources_metadata,
|
672
|
+
)],
|
673
|
+
time_ends=schedule_time_ends,
|
674
|
+
time_starts=schedule_time_starts)
|
675
|
+
```
|
676
|
+
|
677
|
+
## Import
|
678
|
+
|
679
|
+
Schedules can be imported using the `id`, e.g.
|
680
|
+
|
681
|
+
```sh
|
682
|
+
$ pulumi import oci:ResourceScheduler/schedule:Schedule test_schedule "id"
|
683
|
+
```
|
684
|
+
|
685
|
+
:param str resource_name: The name of the resource.
|
686
|
+
:param ScheduleArgs args: The arguments to use to populate this resource's properties.
|
687
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
688
|
+
"""
|
689
|
+
...
|
690
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
691
|
+
resource_args, opts = _utilities.get_resource_args_opts(ScheduleArgs, pulumi.ResourceOptions, *args, **kwargs)
|
692
|
+
if resource_args is not None:
|
693
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
694
|
+
else:
|
695
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
696
|
+
|
697
|
+
def _internal_init(__self__,
|
698
|
+
resource_name: str,
|
699
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
700
|
+
action: Optional[pulumi.Input[str]] = None,
|
701
|
+
compartment_id: Optional[pulumi.Input[str]] = None,
|
702
|
+
defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
|
703
|
+
description: Optional[pulumi.Input[str]] = None,
|
704
|
+
display_name: Optional[pulumi.Input[str]] = None,
|
705
|
+
freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
|
706
|
+
recurrence_details: Optional[pulumi.Input[str]] = None,
|
707
|
+
recurrence_type: Optional[pulumi.Input[str]] = None,
|
708
|
+
resource_filters: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScheduleResourceFilterArgs']]]]] = None,
|
709
|
+
resources: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScheduleResourceArgs']]]]] = None,
|
710
|
+
state: Optional[pulumi.Input[str]] = None,
|
711
|
+
time_ends: Optional[pulumi.Input[str]] = None,
|
712
|
+
time_starts: Optional[pulumi.Input[str]] = None,
|
713
|
+
__props__=None):
|
714
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
715
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
716
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
717
|
+
if opts.id is None:
|
718
|
+
if __props__ is not None:
|
719
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
720
|
+
__props__ = ScheduleArgs.__new__(ScheduleArgs)
|
721
|
+
|
722
|
+
if action is None and not opts.urn:
|
723
|
+
raise TypeError("Missing required property 'action'")
|
724
|
+
__props__.__dict__["action"] = action
|
725
|
+
if compartment_id is None and not opts.urn:
|
726
|
+
raise TypeError("Missing required property 'compartment_id'")
|
727
|
+
__props__.__dict__["compartment_id"] = compartment_id
|
728
|
+
__props__.__dict__["defined_tags"] = defined_tags
|
729
|
+
__props__.__dict__["description"] = description
|
730
|
+
__props__.__dict__["display_name"] = display_name
|
731
|
+
__props__.__dict__["freeform_tags"] = freeform_tags
|
732
|
+
if recurrence_details is None and not opts.urn:
|
733
|
+
raise TypeError("Missing required property 'recurrence_details'")
|
734
|
+
__props__.__dict__["recurrence_details"] = recurrence_details
|
735
|
+
if recurrence_type is None and not opts.urn:
|
736
|
+
raise TypeError("Missing required property 'recurrence_type'")
|
737
|
+
__props__.__dict__["recurrence_type"] = recurrence_type
|
738
|
+
__props__.__dict__["resource_filters"] = resource_filters
|
739
|
+
__props__.__dict__["resources"] = resources
|
740
|
+
__props__.__dict__["state"] = state
|
741
|
+
__props__.__dict__["time_ends"] = time_ends
|
742
|
+
__props__.__dict__["time_starts"] = time_starts
|
743
|
+
__props__.__dict__["system_tags"] = None
|
744
|
+
__props__.__dict__["time_created"] = None
|
745
|
+
__props__.__dict__["time_last_run"] = None
|
746
|
+
__props__.__dict__["time_next_run"] = None
|
747
|
+
__props__.__dict__["time_updated"] = None
|
748
|
+
super(Schedule, __self__).__init__(
|
749
|
+
'oci:ResourceScheduler/schedule:Schedule',
|
750
|
+
resource_name,
|
751
|
+
__props__,
|
752
|
+
opts)
|
753
|
+
|
754
|
+
@staticmethod
|
755
|
+
def get(resource_name: str,
|
756
|
+
id: pulumi.Input[str],
|
757
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
758
|
+
action: Optional[pulumi.Input[str]] = None,
|
759
|
+
compartment_id: Optional[pulumi.Input[str]] = None,
|
760
|
+
defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
|
761
|
+
description: Optional[pulumi.Input[str]] = None,
|
762
|
+
display_name: Optional[pulumi.Input[str]] = None,
|
763
|
+
freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
|
764
|
+
recurrence_details: Optional[pulumi.Input[str]] = None,
|
765
|
+
recurrence_type: Optional[pulumi.Input[str]] = None,
|
766
|
+
resource_filters: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScheduleResourceFilterArgs']]]]] = None,
|
767
|
+
resources: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScheduleResourceArgs']]]]] = None,
|
768
|
+
state: Optional[pulumi.Input[str]] = None,
|
769
|
+
system_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
|
770
|
+
time_created: Optional[pulumi.Input[str]] = None,
|
771
|
+
time_ends: Optional[pulumi.Input[str]] = None,
|
772
|
+
time_last_run: Optional[pulumi.Input[str]] = None,
|
773
|
+
time_next_run: Optional[pulumi.Input[str]] = None,
|
774
|
+
time_starts: Optional[pulumi.Input[str]] = None,
|
775
|
+
time_updated: Optional[pulumi.Input[str]] = None) -> 'Schedule':
|
776
|
+
"""
|
777
|
+
Get an existing Schedule resource's state with the given name, id, and optional extra
|
778
|
+
properties used to qualify the lookup.
|
779
|
+
|
780
|
+
:param str resource_name: The unique name of the resulting resource.
|
781
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
782
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
783
|
+
:param pulumi.Input[str] action: (Updatable) This is the action that will be executed by the schedule.
|
784
|
+
:param pulumi.Input[str] compartment_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which the schedule is created
|
785
|
+
:param pulumi.Input[Mapping[str, Any]] defined_tags: (Updatable) These are defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
|
786
|
+
:param pulumi.Input[str] description: (Updatable) This is the description of the schedule.
|
787
|
+
:param pulumi.Input[str] display_name: (Updatable) This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable.
|
788
|
+
:param pulumi.Input[Mapping[str, Any]] freeform_tags: (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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
|
789
|
+
:param pulumi.Input[str] recurrence_details: (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.
|
790
|
+
:param pulumi.Input[str] recurrence_type: (Updatable) Type of recurrence of a schedule
|
791
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScheduleResourceFilterArgs']]]] resource_filters: (Updatable) This is a list of resources filters. The schedule will be applied to resources matching all of them.
|
792
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScheduleResourceArgs']]]] resources: (Updatable) This is the list of resources to which the scheduled operation is applied.
|
793
|
+
:param pulumi.Input[str] state: (Updatable) The target state for the Schedule. Could be set to `ACTIVE` or `INACTIVE`.
|
794
|
+
|
795
|
+
|
796
|
+
** IMPORTANT **
|
797
|
+
Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
|
798
|
+
:param pulumi.Input[Mapping[str, Any]] system_tags: These are system tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}`
|
799
|
+
:param pulumi.Input[str] time_created: This is the date and time the schedule was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`
|
800
|
+
:param pulumi.Input[str] time_ends: (Updatable) This is the date and time the schedule ends, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339) Example: `2016-08-25T21:10:29.600Z`
|
801
|
+
:param pulumi.Input[str] time_last_run: This is the date and time the schedule runs last time, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`
|
802
|
+
:param pulumi.Input[str] time_next_run: This is the date and time the schedule run the next time, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`
|
803
|
+
:param pulumi.Input[str] time_starts: (Updatable) This is the date and time the schedule starts, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339) Example: `2016-08-25T21:10:29.600Z`
|
804
|
+
:param pulumi.Input[str] time_updated: This is the date and time the schedule was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`
|
805
|
+
"""
|
806
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
807
|
+
|
808
|
+
__props__ = _ScheduleState.__new__(_ScheduleState)
|
809
|
+
|
810
|
+
__props__.__dict__["action"] = action
|
811
|
+
__props__.__dict__["compartment_id"] = compartment_id
|
812
|
+
__props__.__dict__["defined_tags"] = defined_tags
|
813
|
+
__props__.__dict__["description"] = description
|
814
|
+
__props__.__dict__["display_name"] = display_name
|
815
|
+
__props__.__dict__["freeform_tags"] = freeform_tags
|
816
|
+
__props__.__dict__["recurrence_details"] = recurrence_details
|
817
|
+
__props__.__dict__["recurrence_type"] = recurrence_type
|
818
|
+
__props__.__dict__["resource_filters"] = resource_filters
|
819
|
+
__props__.__dict__["resources"] = resources
|
820
|
+
__props__.__dict__["state"] = state
|
821
|
+
__props__.__dict__["system_tags"] = system_tags
|
822
|
+
__props__.__dict__["time_created"] = time_created
|
823
|
+
__props__.__dict__["time_ends"] = time_ends
|
824
|
+
__props__.__dict__["time_last_run"] = time_last_run
|
825
|
+
__props__.__dict__["time_next_run"] = time_next_run
|
826
|
+
__props__.__dict__["time_starts"] = time_starts
|
827
|
+
__props__.__dict__["time_updated"] = time_updated
|
828
|
+
return Schedule(resource_name, opts=opts, __props__=__props__)
|
829
|
+
|
830
|
+
@property
|
831
|
+
@pulumi.getter
|
832
|
+
def action(self) -> pulumi.Output[str]:
|
833
|
+
"""
|
834
|
+
(Updatable) This is the action that will be executed by the schedule.
|
835
|
+
"""
|
836
|
+
return pulumi.get(self, "action")
|
837
|
+
|
838
|
+
@property
|
839
|
+
@pulumi.getter(name="compartmentId")
|
840
|
+
def compartment_id(self) -> pulumi.Output[str]:
|
841
|
+
"""
|
842
|
+
The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which the schedule is created
|
843
|
+
"""
|
844
|
+
return pulumi.get(self, "compartment_id")
|
845
|
+
|
846
|
+
@property
|
847
|
+
@pulumi.getter(name="definedTags")
|
848
|
+
def defined_tags(self) -> pulumi.Output[Mapping[str, Any]]:
|
849
|
+
"""
|
850
|
+
(Updatable) These are defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
|
851
|
+
"""
|
852
|
+
return pulumi.get(self, "defined_tags")
|
853
|
+
|
854
|
+
@property
|
855
|
+
@pulumi.getter
|
856
|
+
def description(self) -> pulumi.Output[str]:
|
857
|
+
"""
|
858
|
+
(Updatable) This is the description of the schedule.
|
859
|
+
"""
|
860
|
+
return pulumi.get(self, "description")
|
861
|
+
|
862
|
+
@property
|
863
|
+
@pulumi.getter(name="displayName")
|
864
|
+
def display_name(self) -> pulumi.Output[str]:
|
865
|
+
"""
|
866
|
+
(Updatable) This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable.
|
867
|
+
"""
|
868
|
+
return pulumi.get(self, "display_name")
|
869
|
+
|
870
|
+
@property
|
871
|
+
@pulumi.getter(name="freeformTags")
|
872
|
+
def freeform_tags(self) -> pulumi.Output[Mapping[str, Any]]:
|
873
|
+
"""
|
874
|
+
(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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
|
875
|
+
"""
|
876
|
+
return pulumi.get(self, "freeform_tags")
|
877
|
+
|
878
|
+
@property
|
879
|
+
@pulumi.getter(name="recurrenceDetails")
|
880
|
+
def recurrence_details(self) -> pulumi.Output[str]:
|
881
|
+
"""
|
882
|
+
(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.
|
883
|
+
"""
|
884
|
+
return pulumi.get(self, "recurrence_details")
|
885
|
+
|
886
|
+
@property
|
887
|
+
@pulumi.getter(name="recurrenceType")
|
888
|
+
def recurrence_type(self) -> pulumi.Output[str]:
|
889
|
+
"""
|
890
|
+
(Updatable) Type of recurrence of a schedule
|
891
|
+
"""
|
892
|
+
return pulumi.get(self, "recurrence_type")
|
893
|
+
|
894
|
+
@property
|
895
|
+
@pulumi.getter(name="resourceFilters")
|
896
|
+
def resource_filters(self) -> pulumi.Output[Sequence['outputs.ScheduleResourceFilter']]:
|
897
|
+
"""
|
898
|
+
(Updatable) This is a list of resources filters. The schedule will be applied to resources matching all of them.
|
899
|
+
"""
|
900
|
+
return pulumi.get(self, "resource_filters")
|
901
|
+
|
902
|
+
@property
|
903
|
+
@pulumi.getter
|
904
|
+
def resources(self) -> pulumi.Output[Sequence['outputs.ScheduleResource']]:
|
905
|
+
"""
|
906
|
+
(Updatable) This is the list of resources to which the scheduled operation is applied.
|
907
|
+
"""
|
908
|
+
return pulumi.get(self, "resources")
|
909
|
+
|
910
|
+
@property
|
911
|
+
@pulumi.getter
|
912
|
+
def state(self) -> pulumi.Output[str]:
|
913
|
+
"""
|
914
|
+
(Updatable) The target state for the Schedule. Could be set to `ACTIVE` or `INACTIVE`.
|
915
|
+
|
916
|
+
|
917
|
+
** IMPORTANT **
|
918
|
+
Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
|
919
|
+
"""
|
920
|
+
return pulumi.get(self, "state")
|
921
|
+
|
922
|
+
@property
|
923
|
+
@pulumi.getter(name="systemTags")
|
924
|
+
def system_tags(self) -> pulumi.Output[Mapping[str, Any]]:
|
925
|
+
"""
|
926
|
+
These are system tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}`
|
927
|
+
"""
|
928
|
+
return pulumi.get(self, "system_tags")
|
929
|
+
|
930
|
+
@property
|
931
|
+
@pulumi.getter(name="timeCreated")
|
932
|
+
def time_created(self) -> pulumi.Output[str]:
|
933
|
+
"""
|
934
|
+
This is the date and time the schedule was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`
|
935
|
+
"""
|
936
|
+
return pulumi.get(self, "time_created")
|
937
|
+
|
938
|
+
@property
|
939
|
+
@pulumi.getter(name="timeEnds")
|
940
|
+
def time_ends(self) -> pulumi.Output[str]:
|
941
|
+
"""
|
942
|
+
(Updatable) This is the date and time the schedule ends, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339) Example: `2016-08-25T21:10:29.600Z`
|
943
|
+
"""
|
944
|
+
return pulumi.get(self, "time_ends")
|
945
|
+
|
946
|
+
@property
|
947
|
+
@pulumi.getter(name="timeLastRun")
|
948
|
+
def time_last_run(self) -> pulumi.Output[str]:
|
949
|
+
"""
|
950
|
+
This is the date and time the schedule runs last time, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`
|
951
|
+
"""
|
952
|
+
return pulumi.get(self, "time_last_run")
|
953
|
+
|
954
|
+
@property
|
955
|
+
@pulumi.getter(name="timeNextRun")
|
956
|
+
def time_next_run(self) -> pulumi.Output[str]:
|
957
|
+
"""
|
958
|
+
This is the date and time the schedule run the next time, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`
|
959
|
+
"""
|
960
|
+
return pulumi.get(self, "time_next_run")
|
961
|
+
|
962
|
+
@property
|
963
|
+
@pulumi.getter(name="timeStarts")
|
964
|
+
def time_starts(self) -> pulumi.Output[str]:
|
965
|
+
"""
|
966
|
+
(Updatable) This is the date and time the schedule starts, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339) Example: `2016-08-25T21:10:29.600Z`
|
967
|
+
"""
|
968
|
+
return pulumi.get(self, "time_starts")
|
969
|
+
|
970
|
+
@property
|
971
|
+
@pulumi.getter(name="timeUpdated")
|
972
|
+
def time_updated(self) -> pulumi.Output[str]:
|
973
|
+
"""
|
974
|
+
This is the date and time the schedule was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`
|
975
|
+
"""
|
976
|
+
return pulumi.get(self, "time_updated")
|
977
|
+
|