pulumi-pulumiservice 0.28.0a1736807230__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_pulumiservice/__init__.py +76 -0
- pulumi_pulumiservice/_enums.py +228 -0
- pulumi_pulumiservice/_inputs.py +1143 -0
- pulumi_pulumiservice/_utilities.py +327 -0
- pulumi_pulumiservice/access_token.py +137 -0
- pulumi_pulumiservice/agent_pool.py +235 -0
- pulumi_pulumiservice/config/__init__.py +8 -0
- pulumi_pulumiservice/config/__init__.pyi +18 -0
- pulumi_pulumiservice/config/vars.py +26 -0
- pulumi_pulumiservice/deployment_schedule.py +284 -0
- pulumi_pulumiservice/deployment_settings.py +377 -0
- pulumi_pulumiservice/drift_schedule.py +258 -0
- pulumi_pulumiservice/environment.py +228 -0
- pulumi_pulumiservice/environment_version_tag.py +248 -0
- pulumi_pulumiservice/org_access_token.py +229 -0
- pulumi_pulumiservice/outputs.py +902 -0
- pulumi_pulumiservice/provider.py +95 -0
- pulumi_pulumiservice/pulumi-plugin.json +5 -0
- pulumi_pulumiservice/py.typed +0 -0
- pulumi_pulumiservice/stack.py +214 -0
- pulumi_pulumiservice/stack_tag.py +245 -0
- pulumi_pulumiservice/team.py +300 -0
- pulumi_pulumiservice/team_access_token.py +226 -0
- pulumi_pulumiservice/team_environment_permission.py +213 -0
- pulumi_pulumiservice/team_stack_permission.py +201 -0
- pulumi_pulumiservice/template_source.py +216 -0
- pulumi_pulumiservice/ttl_schedule.py +258 -0
- pulumi_pulumiservice/webhook.py +451 -0
- pulumi_pulumiservice-0.28.0a1736807230.dist-info/METADATA +121 -0
- pulumi_pulumiservice-0.28.0a1736807230.dist-info/RECORD +32 -0
- pulumi_pulumiservice-0.28.0a1736807230.dist-info/WHEEL +5 -0
- pulumi_pulumiservice-0.28.0a1736807230.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
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 sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from . import _utilities
|
|
16
|
+
from . import outputs
|
|
17
|
+
from ._inputs import *
|
|
18
|
+
|
|
19
|
+
__all__ = ['DeploymentSettingsArgs', 'DeploymentSettings']
|
|
20
|
+
|
|
21
|
+
@pulumi.input_type
|
|
22
|
+
class DeploymentSettingsArgs:
|
|
23
|
+
def __init__(__self__, *,
|
|
24
|
+
organization: pulumi.Input[str],
|
|
25
|
+
project: pulumi.Input[str],
|
|
26
|
+
stack: pulumi.Input[str],
|
|
27
|
+
agent_pool_id: Optional[pulumi.Input[str]] = None,
|
|
28
|
+
cache_options: Optional[pulumi.Input['DeploymentSettingsCacheOptionsArgs']] = None,
|
|
29
|
+
executor_context: Optional[pulumi.Input['DeploymentSettingsExecutorContextArgs']] = None,
|
|
30
|
+
github: Optional[pulumi.Input['DeploymentSettingsGithubArgs']] = None,
|
|
31
|
+
operation_context: Optional[pulumi.Input['DeploymentSettingsOperationContextArgs']] = None,
|
|
32
|
+
source_context: Optional[pulumi.Input['DeploymentSettingsSourceContextArgs']] = None):
|
|
33
|
+
"""
|
|
34
|
+
The set of arguments for constructing a DeploymentSettings resource.
|
|
35
|
+
:param pulumi.Input[str] organization: Organization name.
|
|
36
|
+
:param pulumi.Input[str] project: Project name.
|
|
37
|
+
:param pulumi.Input[str] stack: Stack name.
|
|
38
|
+
:param pulumi.Input[str] agent_pool_id: The agent pool identifier to use for the deployment.
|
|
39
|
+
:param pulumi.Input['DeploymentSettingsCacheOptionsArgs'] cache_options: Dependency cache settings for the deployment
|
|
40
|
+
:param pulumi.Input['DeploymentSettingsExecutorContextArgs'] executor_context: Settings related to the deployment executor.
|
|
41
|
+
:param pulumi.Input['DeploymentSettingsGithubArgs'] github: GitHub settings for the deployment.
|
|
42
|
+
:param pulumi.Input['DeploymentSettingsOperationContextArgs'] operation_context: Settings related to the Pulumi operation environment during the deployment.
|
|
43
|
+
:param pulumi.Input['DeploymentSettingsSourceContextArgs'] source_context: Settings related to the source of the deployment.
|
|
44
|
+
"""
|
|
45
|
+
pulumi.set(__self__, "organization", organization)
|
|
46
|
+
pulumi.set(__self__, "project", project)
|
|
47
|
+
pulumi.set(__self__, "stack", stack)
|
|
48
|
+
if agent_pool_id is not None:
|
|
49
|
+
pulumi.set(__self__, "agent_pool_id", agent_pool_id)
|
|
50
|
+
if cache_options is not None:
|
|
51
|
+
pulumi.set(__self__, "cache_options", cache_options)
|
|
52
|
+
if executor_context is not None:
|
|
53
|
+
pulumi.set(__self__, "executor_context", executor_context)
|
|
54
|
+
if github is not None:
|
|
55
|
+
pulumi.set(__self__, "github", github)
|
|
56
|
+
if operation_context is not None:
|
|
57
|
+
pulumi.set(__self__, "operation_context", operation_context)
|
|
58
|
+
if source_context is not None:
|
|
59
|
+
pulumi.set(__self__, "source_context", source_context)
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
@pulumi.getter
|
|
63
|
+
def organization(self) -> pulumi.Input[str]:
|
|
64
|
+
"""
|
|
65
|
+
Organization name.
|
|
66
|
+
"""
|
|
67
|
+
return pulumi.get(self, "organization")
|
|
68
|
+
|
|
69
|
+
@organization.setter
|
|
70
|
+
def organization(self, value: pulumi.Input[str]):
|
|
71
|
+
pulumi.set(self, "organization", value)
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
@pulumi.getter
|
|
75
|
+
def project(self) -> pulumi.Input[str]:
|
|
76
|
+
"""
|
|
77
|
+
Project name.
|
|
78
|
+
"""
|
|
79
|
+
return pulumi.get(self, "project")
|
|
80
|
+
|
|
81
|
+
@project.setter
|
|
82
|
+
def project(self, value: pulumi.Input[str]):
|
|
83
|
+
pulumi.set(self, "project", value)
|
|
84
|
+
|
|
85
|
+
@property
|
|
86
|
+
@pulumi.getter
|
|
87
|
+
def stack(self) -> pulumi.Input[str]:
|
|
88
|
+
"""
|
|
89
|
+
Stack name.
|
|
90
|
+
"""
|
|
91
|
+
return pulumi.get(self, "stack")
|
|
92
|
+
|
|
93
|
+
@stack.setter
|
|
94
|
+
def stack(self, value: pulumi.Input[str]):
|
|
95
|
+
pulumi.set(self, "stack", value)
|
|
96
|
+
|
|
97
|
+
@property
|
|
98
|
+
@pulumi.getter(name="agentPoolId")
|
|
99
|
+
def agent_pool_id(self) -> Optional[pulumi.Input[str]]:
|
|
100
|
+
"""
|
|
101
|
+
The agent pool identifier to use for the deployment.
|
|
102
|
+
"""
|
|
103
|
+
return pulumi.get(self, "agent_pool_id")
|
|
104
|
+
|
|
105
|
+
@agent_pool_id.setter
|
|
106
|
+
def agent_pool_id(self, value: Optional[pulumi.Input[str]]):
|
|
107
|
+
pulumi.set(self, "agent_pool_id", value)
|
|
108
|
+
|
|
109
|
+
@property
|
|
110
|
+
@pulumi.getter(name="cacheOptions")
|
|
111
|
+
def cache_options(self) -> Optional[pulumi.Input['DeploymentSettingsCacheOptionsArgs']]:
|
|
112
|
+
"""
|
|
113
|
+
Dependency cache settings for the deployment
|
|
114
|
+
"""
|
|
115
|
+
return pulumi.get(self, "cache_options")
|
|
116
|
+
|
|
117
|
+
@cache_options.setter
|
|
118
|
+
def cache_options(self, value: Optional[pulumi.Input['DeploymentSettingsCacheOptionsArgs']]):
|
|
119
|
+
pulumi.set(self, "cache_options", value)
|
|
120
|
+
|
|
121
|
+
@property
|
|
122
|
+
@pulumi.getter(name="executorContext")
|
|
123
|
+
def executor_context(self) -> Optional[pulumi.Input['DeploymentSettingsExecutorContextArgs']]:
|
|
124
|
+
"""
|
|
125
|
+
Settings related to the deployment executor.
|
|
126
|
+
"""
|
|
127
|
+
return pulumi.get(self, "executor_context")
|
|
128
|
+
|
|
129
|
+
@executor_context.setter
|
|
130
|
+
def executor_context(self, value: Optional[pulumi.Input['DeploymentSettingsExecutorContextArgs']]):
|
|
131
|
+
pulumi.set(self, "executor_context", value)
|
|
132
|
+
|
|
133
|
+
@property
|
|
134
|
+
@pulumi.getter
|
|
135
|
+
def github(self) -> Optional[pulumi.Input['DeploymentSettingsGithubArgs']]:
|
|
136
|
+
"""
|
|
137
|
+
GitHub settings for the deployment.
|
|
138
|
+
"""
|
|
139
|
+
return pulumi.get(self, "github")
|
|
140
|
+
|
|
141
|
+
@github.setter
|
|
142
|
+
def github(self, value: Optional[pulumi.Input['DeploymentSettingsGithubArgs']]):
|
|
143
|
+
pulumi.set(self, "github", value)
|
|
144
|
+
|
|
145
|
+
@property
|
|
146
|
+
@pulumi.getter(name="operationContext")
|
|
147
|
+
def operation_context(self) -> Optional[pulumi.Input['DeploymentSettingsOperationContextArgs']]:
|
|
148
|
+
"""
|
|
149
|
+
Settings related to the Pulumi operation environment during the deployment.
|
|
150
|
+
"""
|
|
151
|
+
return pulumi.get(self, "operation_context")
|
|
152
|
+
|
|
153
|
+
@operation_context.setter
|
|
154
|
+
def operation_context(self, value: Optional[pulumi.Input['DeploymentSettingsOperationContextArgs']]):
|
|
155
|
+
pulumi.set(self, "operation_context", value)
|
|
156
|
+
|
|
157
|
+
@property
|
|
158
|
+
@pulumi.getter(name="sourceContext")
|
|
159
|
+
def source_context(self) -> Optional[pulumi.Input['DeploymentSettingsSourceContextArgs']]:
|
|
160
|
+
"""
|
|
161
|
+
Settings related to the source of the deployment.
|
|
162
|
+
"""
|
|
163
|
+
return pulumi.get(self, "source_context")
|
|
164
|
+
|
|
165
|
+
@source_context.setter
|
|
166
|
+
def source_context(self, value: Optional[pulumi.Input['DeploymentSettingsSourceContextArgs']]):
|
|
167
|
+
pulumi.set(self, "source_context", value)
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
class DeploymentSettings(pulumi.CustomResource):
|
|
171
|
+
@overload
|
|
172
|
+
def __init__(__self__,
|
|
173
|
+
resource_name: str,
|
|
174
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
175
|
+
agent_pool_id: Optional[pulumi.Input[str]] = None,
|
|
176
|
+
cache_options: Optional[pulumi.Input[Union['DeploymentSettingsCacheOptionsArgs', 'DeploymentSettingsCacheOptionsArgsDict']]] = None,
|
|
177
|
+
executor_context: Optional[pulumi.Input[Union['DeploymentSettingsExecutorContextArgs', 'DeploymentSettingsExecutorContextArgsDict']]] = None,
|
|
178
|
+
github: Optional[pulumi.Input[Union['DeploymentSettingsGithubArgs', 'DeploymentSettingsGithubArgsDict']]] = None,
|
|
179
|
+
operation_context: Optional[pulumi.Input[Union['DeploymentSettingsOperationContextArgs', 'DeploymentSettingsOperationContextArgsDict']]] = None,
|
|
180
|
+
organization: Optional[pulumi.Input[str]] = None,
|
|
181
|
+
project: Optional[pulumi.Input[str]] = None,
|
|
182
|
+
source_context: Optional[pulumi.Input[Union['DeploymentSettingsSourceContextArgs', 'DeploymentSettingsSourceContextArgsDict']]] = None,
|
|
183
|
+
stack: Optional[pulumi.Input[str]] = None,
|
|
184
|
+
__props__=None):
|
|
185
|
+
"""
|
|
186
|
+
Deployment settings configure Pulumi Deployments for a stack.
|
|
187
|
+
|
|
188
|
+
### Import
|
|
189
|
+
|
|
190
|
+
Deployment settings can be imported using the `id`, which for deployment settings is `{org}/{project}/{stack}` e.g.,
|
|
191
|
+
|
|
192
|
+
```sh
|
|
193
|
+
$ pulumi import pulumiservice:index:DeploymentSettings my_settings my-org/my-project/my-stack
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
:param str resource_name: The name of the resource.
|
|
197
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
198
|
+
:param pulumi.Input[str] agent_pool_id: The agent pool identifier to use for the deployment.
|
|
199
|
+
:param pulumi.Input[Union['DeploymentSettingsCacheOptionsArgs', 'DeploymentSettingsCacheOptionsArgsDict']] cache_options: Dependency cache settings for the deployment
|
|
200
|
+
:param pulumi.Input[Union['DeploymentSettingsExecutorContextArgs', 'DeploymentSettingsExecutorContextArgsDict']] executor_context: Settings related to the deployment executor.
|
|
201
|
+
:param pulumi.Input[Union['DeploymentSettingsGithubArgs', 'DeploymentSettingsGithubArgsDict']] github: GitHub settings for the deployment.
|
|
202
|
+
:param pulumi.Input[Union['DeploymentSettingsOperationContextArgs', 'DeploymentSettingsOperationContextArgsDict']] operation_context: Settings related to the Pulumi operation environment during the deployment.
|
|
203
|
+
:param pulumi.Input[str] organization: Organization name.
|
|
204
|
+
:param pulumi.Input[str] project: Project name.
|
|
205
|
+
:param pulumi.Input[Union['DeploymentSettingsSourceContextArgs', 'DeploymentSettingsSourceContextArgsDict']] source_context: Settings related to the source of the deployment.
|
|
206
|
+
:param pulumi.Input[str] stack: Stack name.
|
|
207
|
+
"""
|
|
208
|
+
...
|
|
209
|
+
@overload
|
|
210
|
+
def __init__(__self__,
|
|
211
|
+
resource_name: str,
|
|
212
|
+
args: DeploymentSettingsArgs,
|
|
213
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
214
|
+
"""
|
|
215
|
+
Deployment settings configure Pulumi Deployments for a stack.
|
|
216
|
+
|
|
217
|
+
### Import
|
|
218
|
+
|
|
219
|
+
Deployment settings can be imported using the `id`, which for deployment settings is `{org}/{project}/{stack}` e.g.,
|
|
220
|
+
|
|
221
|
+
```sh
|
|
222
|
+
$ pulumi import pulumiservice:index:DeploymentSettings my_settings my-org/my-project/my-stack
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
:param str resource_name: The name of the resource.
|
|
226
|
+
:param DeploymentSettingsArgs args: The arguments to use to populate this resource's properties.
|
|
227
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
228
|
+
"""
|
|
229
|
+
...
|
|
230
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
231
|
+
resource_args, opts = _utilities.get_resource_args_opts(DeploymentSettingsArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
232
|
+
if resource_args is not None:
|
|
233
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
234
|
+
else:
|
|
235
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
236
|
+
|
|
237
|
+
def _internal_init(__self__,
|
|
238
|
+
resource_name: str,
|
|
239
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
240
|
+
agent_pool_id: Optional[pulumi.Input[str]] = None,
|
|
241
|
+
cache_options: Optional[pulumi.Input[Union['DeploymentSettingsCacheOptionsArgs', 'DeploymentSettingsCacheOptionsArgsDict']]] = None,
|
|
242
|
+
executor_context: Optional[pulumi.Input[Union['DeploymentSettingsExecutorContextArgs', 'DeploymentSettingsExecutorContextArgsDict']]] = None,
|
|
243
|
+
github: Optional[pulumi.Input[Union['DeploymentSettingsGithubArgs', 'DeploymentSettingsGithubArgsDict']]] = None,
|
|
244
|
+
operation_context: Optional[pulumi.Input[Union['DeploymentSettingsOperationContextArgs', 'DeploymentSettingsOperationContextArgsDict']]] = None,
|
|
245
|
+
organization: Optional[pulumi.Input[str]] = None,
|
|
246
|
+
project: Optional[pulumi.Input[str]] = None,
|
|
247
|
+
source_context: Optional[pulumi.Input[Union['DeploymentSettingsSourceContextArgs', 'DeploymentSettingsSourceContextArgsDict']]] = None,
|
|
248
|
+
stack: Optional[pulumi.Input[str]] = None,
|
|
249
|
+
__props__=None):
|
|
250
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
251
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
252
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
253
|
+
if opts.id is None:
|
|
254
|
+
if __props__ is not None:
|
|
255
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
256
|
+
__props__ = DeploymentSettingsArgs.__new__(DeploymentSettingsArgs)
|
|
257
|
+
|
|
258
|
+
__props__.__dict__["agent_pool_id"] = agent_pool_id
|
|
259
|
+
__props__.__dict__["cache_options"] = cache_options
|
|
260
|
+
__props__.__dict__["executor_context"] = executor_context
|
|
261
|
+
__props__.__dict__["github"] = github
|
|
262
|
+
__props__.__dict__["operation_context"] = operation_context
|
|
263
|
+
if organization is None and not opts.urn:
|
|
264
|
+
raise TypeError("Missing required property 'organization'")
|
|
265
|
+
__props__.__dict__["organization"] = organization
|
|
266
|
+
if project is None and not opts.urn:
|
|
267
|
+
raise TypeError("Missing required property 'project'")
|
|
268
|
+
__props__.__dict__["project"] = project
|
|
269
|
+
__props__.__dict__["source_context"] = source_context
|
|
270
|
+
if stack is None and not opts.urn:
|
|
271
|
+
raise TypeError("Missing required property 'stack'")
|
|
272
|
+
__props__.__dict__["stack"] = stack
|
|
273
|
+
super(DeploymentSettings, __self__).__init__(
|
|
274
|
+
'pulumiservice:index:DeploymentSettings',
|
|
275
|
+
resource_name,
|
|
276
|
+
__props__,
|
|
277
|
+
opts)
|
|
278
|
+
|
|
279
|
+
@staticmethod
|
|
280
|
+
def get(resource_name: str,
|
|
281
|
+
id: pulumi.Input[str],
|
|
282
|
+
opts: Optional[pulumi.ResourceOptions] = None) -> 'DeploymentSettings':
|
|
283
|
+
"""
|
|
284
|
+
Get an existing DeploymentSettings resource's state with the given name, id, and optional extra
|
|
285
|
+
properties used to qualify the lookup.
|
|
286
|
+
|
|
287
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
288
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
289
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
290
|
+
"""
|
|
291
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
292
|
+
|
|
293
|
+
__props__ = DeploymentSettingsArgs.__new__(DeploymentSettingsArgs)
|
|
294
|
+
|
|
295
|
+
__props__.__dict__["agent_pool_id"] = None
|
|
296
|
+
__props__.__dict__["cache_options"] = None
|
|
297
|
+
__props__.__dict__["executor_context"] = None
|
|
298
|
+
__props__.__dict__["github"] = None
|
|
299
|
+
__props__.__dict__["operation_context"] = None
|
|
300
|
+
__props__.__dict__["organization"] = None
|
|
301
|
+
__props__.__dict__["project"] = None
|
|
302
|
+
__props__.__dict__["source_context"] = None
|
|
303
|
+
__props__.__dict__["stack"] = None
|
|
304
|
+
return DeploymentSettings(resource_name, opts=opts, __props__=__props__)
|
|
305
|
+
|
|
306
|
+
@property
|
|
307
|
+
@pulumi.getter(name="agentPoolId")
|
|
308
|
+
def agent_pool_id(self) -> pulumi.Output[Optional[str]]:
|
|
309
|
+
"""
|
|
310
|
+
The agent pool identifier to use for the deployment.
|
|
311
|
+
"""
|
|
312
|
+
return pulumi.get(self, "agent_pool_id")
|
|
313
|
+
|
|
314
|
+
@property
|
|
315
|
+
@pulumi.getter(name="cacheOptions")
|
|
316
|
+
def cache_options(self) -> pulumi.Output[Optional['outputs.DeploymentSettingsCacheOptions']]:
|
|
317
|
+
"""
|
|
318
|
+
Dependency cache settings for the deployment
|
|
319
|
+
"""
|
|
320
|
+
return pulumi.get(self, "cache_options")
|
|
321
|
+
|
|
322
|
+
@property
|
|
323
|
+
@pulumi.getter(name="executorContext")
|
|
324
|
+
def executor_context(self) -> pulumi.Output[Optional['outputs.DeploymentSettingsExecutorContext']]:
|
|
325
|
+
"""
|
|
326
|
+
Settings related to the deployment executor.
|
|
327
|
+
"""
|
|
328
|
+
return pulumi.get(self, "executor_context")
|
|
329
|
+
|
|
330
|
+
@property
|
|
331
|
+
@pulumi.getter
|
|
332
|
+
def github(self) -> pulumi.Output[Optional['outputs.DeploymentSettingsGithub']]:
|
|
333
|
+
"""
|
|
334
|
+
GitHub settings for the deployment.
|
|
335
|
+
"""
|
|
336
|
+
return pulumi.get(self, "github")
|
|
337
|
+
|
|
338
|
+
@property
|
|
339
|
+
@pulumi.getter(name="operationContext")
|
|
340
|
+
def operation_context(self) -> pulumi.Output[Optional['outputs.DeploymentSettingsOperationContext']]:
|
|
341
|
+
"""
|
|
342
|
+
Settings related to the Pulumi operation environment during the deployment.
|
|
343
|
+
"""
|
|
344
|
+
return pulumi.get(self, "operation_context")
|
|
345
|
+
|
|
346
|
+
@property
|
|
347
|
+
@pulumi.getter
|
|
348
|
+
def organization(self) -> pulumi.Output[str]:
|
|
349
|
+
"""
|
|
350
|
+
Organization name.
|
|
351
|
+
"""
|
|
352
|
+
return pulumi.get(self, "organization")
|
|
353
|
+
|
|
354
|
+
@property
|
|
355
|
+
@pulumi.getter
|
|
356
|
+
def project(self) -> pulumi.Output[str]:
|
|
357
|
+
"""
|
|
358
|
+
Project name.
|
|
359
|
+
"""
|
|
360
|
+
return pulumi.get(self, "project")
|
|
361
|
+
|
|
362
|
+
@property
|
|
363
|
+
@pulumi.getter(name="sourceContext")
|
|
364
|
+
def source_context(self) -> pulumi.Output[Optional['outputs.DeploymentSettingsSourceContext']]:
|
|
365
|
+
"""
|
|
366
|
+
Settings related to the source of the deployment.
|
|
367
|
+
"""
|
|
368
|
+
return pulumi.get(self, "source_context")
|
|
369
|
+
|
|
370
|
+
@property
|
|
371
|
+
@pulumi.getter
|
|
372
|
+
def stack(self) -> pulumi.Output[str]:
|
|
373
|
+
"""
|
|
374
|
+
Stack name.
|
|
375
|
+
"""
|
|
376
|
+
return pulumi.get(self, "stack")
|
|
377
|
+
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
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 sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from . import _utilities
|
|
16
|
+
|
|
17
|
+
__all__ = ['DriftScheduleArgs', 'DriftSchedule']
|
|
18
|
+
|
|
19
|
+
@pulumi.input_type
|
|
20
|
+
class DriftScheduleArgs:
|
|
21
|
+
def __init__(__self__, *,
|
|
22
|
+
organization: pulumi.Input[str],
|
|
23
|
+
project: pulumi.Input[str],
|
|
24
|
+
schedule_cron: pulumi.Input[str],
|
|
25
|
+
stack: pulumi.Input[str],
|
|
26
|
+
auto_remediate: Optional[pulumi.Input[bool]] = None):
|
|
27
|
+
"""
|
|
28
|
+
The set of arguments for constructing a DriftSchedule resource.
|
|
29
|
+
:param pulumi.Input[str] organization: Organization name.
|
|
30
|
+
:param pulumi.Input[str] project: Project name.
|
|
31
|
+
:param pulumi.Input[str] schedule_cron: Cron expression for when to run drift detection.
|
|
32
|
+
:param pulumi.Input[str] stack: Stack name.
|
|
33
|
+
:param pulumi.Input[bool] auto_remediate: Whether any drift detected should be remediated after a drift run.
|
|
34
|
+
"""
|
|
35
|
+
pulumi.set(__self__, "organization", organization)
|
|
36
|
+
pulumi.set(__self__, "project", project)
|
|
37
|
+
pulumi.set(__self__, "schedule_cron", schedule_cron)
|
|
38
|
+
pulumi.set(__self__, "stack", stack)
|
|
39
|
+
if auto_remediate is None:
|
|
40
|
+
auto_remediate = False
|
|
41
|
+
if auto_remediate is not None:
|
|
42
|
+
pulumi.set(__self__, "auto_remediate", auto_remediate)
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
@pulumi.getter
|
|
46
|
+
def organization(self) -> pulumi.Input[str]:
|
|
47
|
+
"""
|
|
48
|
+
Organization name.
|
|
49
|
+
"""
|
|
50
|
+
return pulumi.get(self, "organization")
|
|
51
|
+
|
|
52
|
+
@organization.setter
|
|
53
|
+
def organization(self, value: pulumi.Input[str]):
|
|
54
|
+
pulumi.set(self, "organization", value)
|
|
55
|
+
|
|
56
|
+
@property
|
|
57
|
+
@pulumi.getter
|
|
58
|
+
def project(self) -> pulumi.Input[str]:
|
|
59
|
+
"""
|
|
60
|
+
Project name.
|
|
61
|
+
"""
|
|
62
|
+
return pulumi.get(self, "project")
|
|
63
|
+
|
|
64
|
+
@project.setter
|
|
65
|
+
def project(self, value: pulumi.Input[str]):
|
|
66
|
+
pulumi.set(self, "project", value)
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
@pulumi.getter(name="scheduleCron")
|
|
70
|
+
def schedule_cron(self) -> pulumi.Input[str]:
|
|
71
|
+
"""
|
|
72
|
+
Cron expression for when to run drift detection.
|
|
73
|
+
"""
|
|
74
|
+
return pulumi.get(self, "schedule_cron")
|
|
75
|
+
|
|
76
|
+
@schedule_cron.setter
|
|
77
|
+
def schedule_cron(self, value: pulumi.Input[str]):
|
|
78
|
+
pulumi.set(self, "schedule_cron", value)
|
|
79
|
+
|
|
80
|
+
@property
|
|
81
|
+
@pulumi.getter
|
|
82
|
+
def stack(self) -> pulumi.Input[str]:
|
|
83
|
+
"""
|
|
84
|
+
Stack name.
|
|
85
|
+
"""
|
|
86
|
+
return pulumi.get(self, "stack")
|
|
87
|
+
|
|
88
|
+
@stack.setter
|
|
89
|
+
def stack(self, value: pulumi.Input[str]):
|
|
90
|
+
pulumi.set(self, "stack", value)
|
|
91
|
+
|
|
92
|
+
@property
|
|
93
|
+
@pulumi.getter(name="autoRemediate")
|
|
94
|
+
def auto_remediate(self) -> Optional[pulumi.Input[bool]]:
|
|
95
|
+
"""
|
|
96
|
+
Whether any drift detected should be remediated after a drift run.
|
|
97
|
+
"""
|
|
98
|
+
return pulumi.get(self, "auto_remediate")
|
|
99
|
+
|
|
100
|
+
@auto_remediate.setter
|
|
101
|
+
def auto_remediate(self, value: Optional[pulumi.Input[bool]]):
|
|
102
|
+
pulumi.set(self, "auto_remediate", value)
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
class DriftSchedule(pulumi.CustomResource):
|
|
106
|
+
@overload
|
|
107
|
+
def __init__(__self__,
|
|
108
|
+
resource_name: str,
|
|
109
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
110
|
+
auto_remediate: Optional[pulumi.Input[bool]] = None,
|
|
111
|
+
organization: Optional[pulumi.Input[str]] = None,
|
|
112
|
+
project: Optional[pulumi.Input[str]] = None,
|
|
113
|
+
schedule_cron: Optional[pulumi.Input[str]] = None,
|
|
114
|
+
stack: Optional[pulumi.Input[str]] = None,
|
|
115
|
+
__props__=None):
|
|
116
|
+
"""
|
|
117
|
+
A cron schedule to run drift detection.
|
|
118
|
+
|
|
119
|
+
:param str resource_name: The name of the resource.
|
|
120
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
121
|
+
:param pulumi.Input[bool] auto_remediate: Whether any drift detected should be remediated after a drift run.
|
|
122
|
+
:param pulumi.Input[str] organization: Organization name.
|
|
123
|
+
:param pulumi.Input[str] project: Project name.
|
|
124
|
+
:param pulumi.Input[str] schedule_cron: Cron expression for when to run drift detection.
|
|
125
|
+
:param pulumi.Input[str] stack: Stack name.
|
|
126
|
+
"""
|
|
127
|
+
...
|
|
128
|
+
@overload
|
|
129
|
+
def __init__(__self__,
|
|
130
|
+
resource_name: str,
|
|
131
|
+
args: DriftScheduleArgs,
|
|
132
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
133
|
+
"""
|
|
134
|
+
A cron schedule to run drift detection.
|
|
135
|
+
|
|
136
|
+
:param str resource_name: The name of the resource.
|
|
137
|
+
:param DriftScheduleArgs args: The arguments to use to populate this resource's properties.
|
|
138
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
139
|
+
"""
|
|
140
|
+
...
|
|
141
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
142
|
+
resource_args, opts = _utilities.get_resource_args_opts(DriftScheduleArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
143
|
+
if resource_args is not None:
|
|
144
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
145
|
+
else:
|
|
146
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
147
|
+
|
|
148
|
+
def _internal_init(__self__,
|
|
149
|
+
resource_name: str,
|
|
150
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
151
|
+
auto_remediate: Optional[pulumi.Input[bool]] = None,
|
|
152
|
+
organization: Optional[pulumi.Input[str]] = None,
|
|
153
|
+
project: Optional[pulumi.Input[str]] = None,
|
|
154
|
+
schedule_cron: Optional[pulumi.Input[str]] = None,
|
|
155
|
+
stack: Optional[pulumi.Input[str]] = None,
|
|
156
|
+
__props__=None):
|
|
157
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
158
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
159
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
160
|
+
if opts.id is None:
|
|
161
|
+
if __props__ is not None:
|
|
162
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
163
|
+
__props__ = DriftScheduleArgs.__new__(DriftScheduleArgs)
|
|
164
|
+
|
|
165
|
+
if auto_remediate is None:
|
|
166
|
+
auto_remediate = False
|
|
167
|
+
__props__.__dict__["auto_remediate"] = auto_remediate
|
|
168
|
+
if organization is None and not opts.urn:
|
|
169
|
+
raise TypeError("Missing required property 'organization'")
|
|
170
|
+
__props__.__dict__["organization"] = organization
|
|
171
|
+
if project is None and not opts.urn:
|
|
172
|
+
raise TypeError("Missing required property 'project'")
|
|
173
|
+
__props__.__dict__["project"] = project
|
|
174
|
+
if schedule_cron is None and not opts.urn:
|
|
175
|
+
raise TypeError("Missing required property 'schedule_cron'")
|
|
176
|
+
__props__.__dict__["schedule_cron"] = schedule_cron
|
|
177
|
+
if stack is None and not opts.urn:
|
|
178
|
+
raise TypeError("Missing required property 'stack'")
|
|
179
|
+
__props__.__dict__["stack"] = stack
|
|
180
|
+
__props__.__dict__["schedule_id"] = None
|
|
181
|
+
super(DriftSchedule, __self__).__init__(
|
|
182
|
+
'pulumiservice:index:DriftSchedule',
|
|
183
|
+
resource_name,
|
|
184
|
+
__props__,
|
|
185
|
+
opts)
|
|
186
|
+
|
|
187
|
+
@staticmethod
|
|
188
|
+
def get(resource_name: str,
|
|
189
|
+
id: pulumi.Input[str],
|
|
190
|
+
opts: Optional[pulumi.ResourceOptions] = None) -> 'DriftSchedule':
|
|
191
|
+
"""
|
|
192
|
+
Get an existing DriftSchedule resource's state with the given name, id, and optional extra
|
|
193
|
+
properties used to qualify the lookup.
|
|
194
|
+
|
|
195
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
196
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
197
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
198
|
+
"""
|
|
199
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
200
|
+
|
|
201
|
+
__props__ = DriftScheduleArgs.__new__(DriftScheduleArgs)
|
|
202
|
+
|
|
203
|
+
__props__.__dict__["auto_remediate"] = None
|
|
204
|
+
__props__.__dict__["organization"] = None
|
|
205
|
+
__props__.__dict__["project"] = None
|
|
206
|
+
__props__.__dict__["schedule_cron"] = None
|
|
207
|
+
__props__.__dict__["schedule_id"] = None
|
|
208
|
+
__props__.__dict__["stack"] = None
|
|
209
|
+
return DriftSchedule(resource_name, opts=opts, __props__=__props__)
|
|
210
|
+
|
|
211
|
+
@property
|
|
212
|
+
@pulumi.getter(name="autoRemediate")
|
|
213
|
+
def auto_remediate(self) -> pulumi.Output[Optional[bool]]:
|
|
214
|
+
"""
|
|
215
|
+
Whether any drift detected should be remediated after a drift run.
|
|
216
|
+
"""
|
|
217
|
+
return pulumi.get(self, "auto_remediate")
|
|
218
|
+
|
|
219
|
+
@property
|
|
220
|
+
@pulumi.getter
|
|
221
|
+
def organization(self) -> pulumi.Output[str]:
|
|
222
|
+
"""
|
|
223
|
+
Organization name.
|
|
224
|
+
"""
|
|
225
|
+
return pulumi.get(self, "organization")
|
|
226
|
+
|
|
227
|
+
@property
|
|
228
|
+
@pulumi.getter
|
|
229
|
+
def project(self) -> pulumi.Output[str]:
|
|
230
|
+
"""
|
|
231
|
+
Project name.
|
|
232
|
+
"""
|
|
233
|
+
return pulumi.get(self, "project")
|
|
234
|
+
|
|
235
|
+
@property
|
|
236
|
+
@pulumi.getter(name="scheduleCron")
|
|
237
|
+
def schedule_cron(self) -> pulumi.Output[str]:
|
|
238
|
+
"""
|
|
239
|
+
Cron expression for when to run drift detection.
|
|
240
|
+
"""
|
|
241
|
+
return pulumi.get(self, "schedule_cron")
|
|
242
|
+
|
|
243
|
+
@property
|
|
244
|
+
@pulumi.getter(name="scheduleId")
|
|
245
|
+
def schedule_id(self) -> pulumi.Output[str]:
|
|
246
|
+
"""
|
|
247
|
+
Schedule ID of the created schedule, assigned by Pulumi Cloud.
|
|
248
|
+
"""
|
|
249
|
+
return pulumi.get(self, "schedule_id")
|
|
250
|
+
|
|
251
|
+
@property
|
|
252
|
+
@pulumi.getter
|
|
253
|
+
def stack(self) -> pulumi.Output[str]:
|
|
254
|
+
"""
|
|
255
|
+
Stack name.
|
|
256
|
+
"""
|
|
257
|
+
return pulumi.get(self, "stack")
|
|
258
|
+
|