pulumi-spotinst 3.83.0a1720524486__py3-none-any.whl → 3.128.0a1767140134__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_spotinst/__init__.py +38 -1
- pulumi_spotinst/_inputs.py +4082 -846
- pulumi_spotinst/_utilities.py +15 -10
- pulumi_spotinst/account.py +171 -0
- pulumi_spotinst/aws/__init__.py +2 -1
- pulumi_spotinst/aws/_inputs.py +7292 -2871
- pulumi_spotinst/aws/account.py +25 -19
- pulumi_spotinst/aws/beanstalk.py +272 -190
- pulumi_spotinst/aws/credentials.py +42 -36
- pulumi_spotinst/aws/elastigroup.py +1321 -1176
- pulumi_spotinst/aws/managed_instance.py +633 -526
- pulumi_spotinst/aws/mr_scalar.py +827 -983
- pulumi_spotinst/aws/ocean.py +764 -570
- pulumi_spotinst/aws/ocean_extended_resource_definition.py +42 -36
- pulumi_spotinst/aws/ocean_launch_spec.py +580 -366
- pulumi_spotinst/aws/outputs.py +3421 -2205
- pulumi_spotinst/aws/suspension.py +51 -45
- pulumi_spotinst/azure/__init__.py +2 -1
- pulumi_spotinst/azure/_inputs.py +1492 -434
- pulumi_spotinst/azure/ocean_np.py +518 -464
- pulumi_spotinst/azure/ocean_np_virtual_node_group.py +479 -408
- pulumi_spotinst/azure/outputs.py +840 -345
- pulumi_spotinst/config/__init__.py +2 -1
- pulumi_spotinst/config/__init__.pyi +7 -2
- pulumi_spotinst/config/vars.py +11 -6
- pulumi_spotinst/credentials_azure.py +423 -0
- pulumi_spotinst/credentials_gcp.py +632 -0
- pulumi_spotinst/data_integration.py +58 -52
- pulumi_spotinst/ecs/__init__.py +2 -1
- pulumi_spotinst/ecs/_inputs.py +1164 -469
- pulumi_spotinst/ecs/ocean.py +711 -446
- pulumi_spotinst/ecs/ocean_launch_spec.py +367 -341
- pulumi_spotinst/ecs/outputs.py +463 -374
- pulumi_spotinst/elastigroup_azure_v3.py +985 -197
- pulumi_spotinst/gcp/__init__.py +2 -1
- pulumi_spotinst/gcp/_inputs.py +1061 -381
- pulumi_spotinst/gcp/elastigroup.py +885 -567
- pulumi_spotinst/gcp/outputs.py +542 -301
- pulumi_spotinst/gke/__init__.py +2 -1
- pulumi_spotinst/gke/_inputs.py +2071 -715
- pulumi_spotinst/gke/elastigroup.py +558 -382
- pulumi_spotinst/gke/ocean_import.py +379 -255
- pulumi_spotinst/gke/ocean_launch_spec.py +501 -384
- pulumi_spotinst/gke/ocean_launch_spec_import.py +42 -36
- pulumi_spotinst/gke/outputs.py +1063 -528
- pulumi_spotinst/health_check.py +116 -70
- pulumi_spotinst/notification_center.py +344 -0
- pulumi_spotinst/ocean_right_sizing_rule.py +515 -95
- pulumi_spotinst/oceancd/__init__.py +2 -1
- pulumi_spotinst/oceancd/_inputs.py +1709 -651
- pulumi_spotinst/oceancd/outputs.py +537 -526
- pulumi_spotinst/oceancd/rollout_spec.py +65 -59
- pulumi_spotinst/oceancd/strategy.py +37 -31
- pulumi_spotinst/oceancd/verification_provider.py +128 -122
- pulumi_spotinst/oceancd/verification_template.py +265 -259
- pulumi_spotinst/organization/__init__.py +2 -1
- pulumi_spotinst/organization/_inputs.py +151 -57
- pulumi_spotinst/organization/outputs.py +51 -46
- pulumi_spotinst/organization/policy.py +76 -70
- pulumi_spotinst/organization/programmatic_user.py +83 -77
- pulumi_spotinst/organization/user.py +126 -120
- pulumi_spotinst/organization/user_group.py +75 -69
- pulumi_spotinst/outputs.py +3005 -832
- pulumi_spotinst/provider.py +66 -40
- pulumi_spotinst/pulumi-plugin.json +1 -1
- pulumi_spotinst/spark/__init__.py +2 -1
- pulumi_spotinst/spark/_inputs.py +290 -81
- pulumi_spotinst/spark/ocean.py +169 -115
- pulumi_spotinst/spark/ocean_virtual_node_group.py +34 -28
- pulumi_spotinst/spark/outputs.py +136 -66
- pulumi_spotinst/stateful_node_azure.py +820 -784
- pulumi_spotinst/subscription.py +93 -87
- {pulumi_spotinst-3.83.0a1720524486.dist-info → pulumi_spotinst-3.128.0a1767140134.dist-info}/METADATA +7 -6
- pulumi_spotinst-3.128.0a1767140134.dist-info/RECORD +77 -0
- {pulumi_spotinst-3.83.0a1720524486.dist-info → pulumi_spotinst-3.128.0a1767140134.dist-info}/WHEEL +1 -1
- pulumi_spotinst-3.83.0a1720524486.dist-info/RECORD +0 -73
- {pulumi_spotinst-3.83.0a1720524486.dist-info → pulumi_spotinst-3.128.0a1767140134.dist-info}/top_level.txt +0 -0
pulumi_spotinst/gcp/outputs.py
CHANGED
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import builtins as _builtins
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
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
|
|
10
15
|
from .. import _utilities
|
|
11
16
|
from . import outputs
|
|
12
17
|
|
|
13
18
|
__all__ = [
|
|
14
19
|
'ElastigroupBackendService',
|
|
20
|
+
'ElastigroupBackendServiceBackendBalancing',
|
|
15
21
|
'ElastigroupBackendServiceNamedPort',
|
|
16
22
|
'ElastigroupDisk',
|
|
17
23
|
'ElastigroupDiskInitializeParam',
|
|
@@ -27,11 +33,13 @@ __all__ = [
|
|
|
27
33
|
'ElastigroupNetworkInterface',
|
|
28
34
|
'ElastigroupNetworkInterfaceAccessConfig',
|
|
29
35
|
'ElastigroupNetworkInterfaceAliasIpRange',
|
|
36
|
+
'ElastigroupRevertToPreemptible',
|
|
30
37
|
'ElastigroupScalingDownPolicy',
|
|
31
38
|
'ElastigroupScalingDownPolicyDimension',
|
|
32
39
|
'ElastigroupScalingUpPolicy',
|
|
33
40
|
'ElastigroupScalingUpPolicyDimension',
|
|
34
41
|
'ElastigroupScheduledTask',
|
|
42
|
+
'ElastigroupShieldedInstanceConfig',
|
|
35
43
|
'ElastigroupSubnet',
|
|
36
44
|
]
|
|
37
45
|
|
|
@@ -42,6 +50,8 @@ class ElastigroupBackendService(dict):
|
|
|
42
50
|
suggest = None
|
|
43
51
|
if key == "serviceName":
|
|
44
52
|
suggest = "service_name"
|
|
53
|
+
elif key == "backendBalancing":
|
|
54
|
+
suggest = "backend_balancing"
|
|
45
55
|
elif key == "locationType":
|
|
46
56
|
suggest = "location_type"
|
|
47
57
|
elif key == "namedPorts":
|
|
@@ -59,17 +69,21 @@ class ElastigroupBackendService(dict):
|
|
|
59
69
|
return super().get(key, default)
|
|
60
70
|
|
|
61
71
|
def __init__(__self__, *,
|
|
62
|
-
service_name: str,
|
|
63
|
-
|
|
72
|
+
service_name: _builtins.str,
|
|
73
|
+
backend_balancing: Optional['outputs.ElastigroupBackendServiceBackendBalancing'] = None,
|
|
74
|
+
location_type: Optional[_builtins.str] = None,
|
|
64
75
|
named_ports: Optional[Sequence['outputs.ElastigroupBackendServiceNamedPort']] = None,
|
|
65
|
-
scheme: Optional[str] = None):
|
|
76
|
+
scheme: Optional[_builtins.str] = None):
|
|
66
77
|
"""
|
|
67
|
-
:param str service_name: The name of the backend service.
|
|
68
|
-
:param
|
|
78
|
+
:param _builtins.str service_name: The name of the backend service.
|
|
79
|
+
:param 'ElastigroupBackendServiceBackendBalancingArgs' backend_balancing: Configure how traffic is distributed across instance groups.
|
|
80
|
+
:param _builtins.str location_type: Sets which location the backend services will be active. Valid values: `regional`, `global`.
|
|
69
81
|
:param Sequence['ElastigroupBackendServiceNamedPortArgs'] named_ports: Describes a named port and a list of ports.
|
|
70
|
-
:param str scheme: Use when `location_type` is "regional". Set the traffic for the backend service to either between the instances in the vpc or to traffic from the internet. Valid values: `INTERNAL`, `EXTERNAL`.
|
|
82
|
+
:param _builtins.str scheme: Use when `location_type` is "regional". Set the traffic for the backend service to either between the instances in the vpc or to traffic from the internet. Valid values: `INTERNAL`, `EXTERNAL`.
|
|
71
83
|
"""
|
|
72
84
|
pulumi.set(__self__, "service_name", service_name)
|
|
85
|
+
if backend_balancing is not None:
|
|
86
|
+
pulumi.set(__self__, "backend_balancing", backend_balancing)
|
|
73
87
|
if location_type is not None:
|
|
74
88
|
pulumi.set(__self__, "location_type", location_type)
|
|
75
89
|
if named_ports is not None:
|
|
@@ -77,23 +91,31 @@ class ElastigroupBackendService(dict):
|
|
|
77
91
|
if scheme is not None:
|
|
78
92
|
pulumi.set(__self__, "scheme", scheme)
|
|
79
93
|
|
|
80
|
-
@property
|
|
94
|
+
@_builtins.property
|
|
81
95
|
@pulumi.getter(name="serviceName")
|
|
82
|
-
def service_name(self) -> str:
|
|
96
|
+
def service_name(self) -> _builtins.str:
|
|
83
97
|
"""
|
|
84
98
|
The name of the backend service.
|
|
85
99
|
"""
|
|
86
100
|
return pulumi.get(self, "service_name")
|
|
87
101
|
|
|
88
|
-
@property
|
|
102
|
+
@_builtins.property
|
|
103
|
+
@pulumi.getter(name="backendBalancing")
|
|
104
|
+
def backend_balancing(self) -> Optional['outputs.ElastigroupBackendServiceBackendBalancing']:
|
|
105
|
+
"""
|
|
106
|
+
Configure how traffic is distributed across instance groups.
|
|
107
|
+
"""
|
|
108
|
+
return pulumi.get(self, "backend_balancing")
|
|
109
|
+
|
|
110
|
+
@_builtins.property
|
|
89
111
|
@pulumi.getter(name="locationType")
|
|
90
|
-
def location_type(self) -> Optional[str]:
|
|
112
|
+
def location_type(self) -> Optional[_builtins.str]:
|
|
91
113
|
"""
|
|
92
114
|
Sets which location the backend services will be active. Valid values: `regional`, `global`.
|
|
93
115
|
"""
|
|
94
116
|
return pulumi.get(self, "location_type")
|
|
95
117
|
|
|
96
|
-
@property
|
|
118
|
+
@_builtins.property
|
|
97
119
|
@pulumi.getter(name="namedPorts")
|
|
98
120
|
def named_ports(self) -> Optional[Sequence['outputs.ElastigroupBackendServiceNamedPort']]:
|
|
99
121
|
"""
|
|
@@ -101,9 +123,9 @@ class ElastigroupBackendService(dict):
|
|
|
101
123
|
"""
|
|
102
124
|
return pulumi.get(self, "named_ports")
|
|
103
125
|
|
|
104
|
-
@property
|
|
126
|
+
@_builtins.property
|
|
105
127
|
@pulumi.getter
|
|
106
|
-
def scheme(self) -> Optional[str]:
|
|
128
|
+
def scheme(self) -> Optional[_builtins.str]:
|
|
107
129
|
"""
|
|
108
130
|
Use when `location_type` is "regional". Set the traffic for the backend service to either between the instances in the vpc or to traffic from the internet. Valid values: `INTERNAL`, `EXTERNAL`.
|
|
109
131
|
"""
|
|
@@ -111,34 +133,84 @@ class ElastigroupBackendService(dict):
|
|
|
111
133
|
|
|
112
134
|
|
|
113
135
|
@pulumi.output_type
|
|
114
|
-
class
|
|
136
|
+
class ElastigroupBackendServiceBackendBalancing(dict):
|
|
137
|
+
@staticmethod
|
|
138
|
+
def __key_warning(key: str):
|
|
139
|
+
suggest = None
|
|
140
|
+
if key == "backendBalancingMode":
|
|
141
|
+
suggest = "backend_balancing_mode"
|
|
142
|
+
elif key == "maxRatePerInstance":
|
|
143
|
+
suggest = "max_rate_per_instance"
|
|
144
|
+
|
|
145
|
+
if suggest:
|
|
146
|
+
pulumi.log.warn(f"Key '{key}' not found in ElastigroupBackendServiceBackendBalancing. Access the value via the '{suggest}' property getter instead.")
|
|
147
|
+
|
|
148
|
+
def __getitem__(self, key: str) -> Any:
|
|
149
|
+
ElastigroupBackendServiceBackendBalancing.__key_warning(key)
|
|
150
|
+
return super().__getitem__(key)
|
|
151
|
+
|
|
152
|
+
def get(self, key: str, default = None) -> Any:
|
|
153
|
+
ElastigroupBackendServiceBackendBalancing.__key_warning(key)
|
|
154
|
+
return super().get(key, default)
|
|
155
|
+
|
|
115
156
|
def __init__(__self__, *,
|
|
116
|
-
|
|
117
|
-
|
|
157
|
+
backend_balancing_mode: Optional[_builtins.str] = None,
|
|
158
|
+
max_rate_per_instance: Optional[_builtins.int] = None):
|
|
118
159
|
"""
|
|
119
|
-
:param str
|
|
120
|
-
:param
|
|
160
|
+
:param _builtins.str backend_balancing_mode: The backend balancing mode. Valid values: `RATE`, `UTILIZATION`.
|
|
161
|
+
:param _builtins.int max_rate_per_instance: If the backendBalancingMode is set to RATE, this field is required.
|
|
121
162
|
|
|
122
163
|
Usage:
|
|
123
164
|
"""
|
|
165
|
+
if backend_balancing_mode is not None:
|
|
166
|
+
pulumi.set(__self__, "backend_balancing_mode", backend_balancing_mode)
|
|
167
|
+
if max_rate_per_instance is not None:
|
|
168
|
+
pulumi.set(__self__, "max_rate_per_instance", max_rate_per_instance)
|
|
169
|
+
|
|
170
|
+
@_builtins.property
|
|
171
|
+
@pulumi.getter(name="backendBalancingMode")
|
|
172
|
+
def backend_balancing_mode(self) -> Optional[_builtins.str]:
|
|
173
|
+
"""
|
|
174
|
+
The backend balancing mode. Valid values: `RATE`, `UTILIZATION`.
|
|
175
|
+
"""
|
|
176
|
+
return pulumi.get(self, "backend_balancing_mode")
|
|
177
|
+
|
|
178
|
+
@_builtins.property
|
|
179
|
+
@pulumi.getter(name="maxRatePerInstance")
|
|
180
|
+
def max_rate_per_instance(self) -> Optional[_builtins.int]:
|
|
181
|
+
"""
|
|
182
|
+
If the backendBalancingMode is set to RATE, this field is required.
|
|
183
|
+
|
|
184
|
+
Usage:
|
|
185
|
+
"""
|
|
186
|
+
return pulumi.get(self, "max_rate_per_instance")
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
@pulumi.output_type
|
|
190
|
+
class ElastigroupBackendServiceNamedPort(dict):
|
|
191
|
+
def __init__(__self__, *,
|
|
192
|
+
name: _builtins.str,
|
|
193
|
+
ports: Sequence[_builtins.str]):
|
|
194
|
+
"""
|
|
195
|
+
:param _builtins.str name: The name of the port.
|
|
196
|
+
:param Sequence[_builtins.str] ports: A list of ports.
|
|
197
|
+
"""
|
|
124
198
|
pulumi.set(__self__, "name", name)
|
|
125
199
|
pulumi.set(__self__, "ports", ports)
|
|
126
200
|
|
|
127
|
-
@property
|
|
201
|
+
@_builtins.property
|
|
128
202
|
@pulumi.getter
|
|
129
|
-
def name(self) -> str:
|
|
203
|
+
def name(self) -> _builtins.str:
|
|
130
204
|
"""
|
|
131
205
|
The name of the port.
|
|
132
206
|
"""
|
|
133
207
|
return pulumi.get(self, "name")
|
|
134
208
|
|
|
135
|
-
@property
|
|
209
|
+
@_builtins.property
|
|
136
210
|
@pulumi.getter
|
|
137
|
-
def ports(self) -> Sequence[str]:
|
|
211
|
+
def ports(self) -> Sequence[_builtins.str]:
|
|
138
212
|
"""
|
|
139
213
|
A list of ports.
|
|
140
|
-
|
|
141
|
-
Usage:
|
|
142
214
|
"""
|
|
143
215
|
return pulumi.get(self, "ports")
|
|
144
216
|
|
|
@@ -167,23 +239,23 @@ class ElastigroupDisk(dict):
|
|
|
167
239
|
return super().get(key, default)
|
|
168
240
|
|
|
169
241
|
def __init__(__self__, *,
|
|
170
|
-
auto_delete: Optional[bool] = None,
|
|
171
|
-
boot: Optional[bool] = None,
|
|
172
|
-
device_name: Optional[str] = None,
|
|
242
|
+
auto_delete: Optional[_builtins.bool] = None,
|
|
243
|
+
boot: Optional[_builtins.bool] = None,
|
|
244
|
+
device_name: Optional[_builtins.str] = None,
|
|
173
245
|
initialize_params: Optional[Sequence['outputs.ElastigroupDiskInitializeParam']] = None,
|
|
174
|
-
interface: Optional[str] = None,
|
|
175
|
-
mode: Optional[str] = None,
|
|
176
|
-
source: Optional[str] = None,
|
|
177
|
-
type: Optional[str] = None):
|
|
178
|
-
"""
|
|
179
|
-
:param bool auto_delete: Specifies whether the disk will be auto-deleted when the instance is deleted.
|
|
180
|
-
:param bool boot: Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
|
|
181
|
-
:param str device_name: Specifies a unique device name of your choice.
|
|
246
|
+
interface: Optional[_builtins.str] = None,
|
|
247
|
+
mode: Optional[_builtins.str] = None,
|
|
248
|
+
source: Optional[_builtins.str] = None,
|
|
249
|
+
type: Optional[_builtins.str] = None):
|
|
250
|
+
"""
|
|
251
|
+
:param _builtins.bool auto_delete: Specifies whether the disk will be auto-deleted when the instance is deleted.
|
|
252
|
+
:param _builtins.bool boot: Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
|
|
253
|
+
:param _builtins.str device_name: Specifies a unique device name of your choice.
|
|
182
254
|
:param Sequence['ElastigroupDiskInitializeParamArgs'] initialize_params: Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance.
|
|
183
|
-
:param str interface: Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.
|
|
184
|
-
:param str mode: The mode in which to attach this disk, either READ_WRITE or READ_ONLY.
|
|
185
|
-
:param str source: Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is only applicable for persistent disks.
|
|
186
|
-
:param str type: Specifies the type of disk, either SCRATCH or PERSISTENT.
|
|
255
|
+
:param _builtins.str interface: Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.
|
|
256
|
+
:param _builtins.str mode: The mode in which to attach this disk, either READ_WRITE or READ_ONLY.
|
|
257
|
+
:param _builtins.str source: Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is only applicable for persistent disks.
|
|
258
|
+
:param _builtins.str type: Specifies the type of disk, either SCRATCH or PERSISTENT.
|
|
187
259
|
"""
|
|
188
260
|
if auto_delete is not None:
|
|
189
261
|
pulumi.set(__self__, "auto_delete", auto_delete)
|
|
@@ -202,31 +274,31 @@ class ElastigroupDisk(dict):
|
|
|
202
274
|
if type is not None:
|
|
203
275
|
pulumi.set(__self__, "type", type)
|
|
204
276
|
|
|
205
|
-
@property
|
|
277
|
+
@_builtins.property
|
|
206
278
|
@pulumi.getter(name="autoDelete")
|
|
207
|
-
def auto_delete(self) -> Optional[bool]:
|
|
279
|
+
def auto_delete(self) -> Optional[_builtins.bool]:
|
|
208
280
|
"""
|
|
209
281
|
Specifies whether the disk will be auto-deleted when the instance is deleted.
|
|
210
282
|
"""
|
|
211
283
|
return pulumi.get(self, "auto_delete")
|
|
212
284
|
|
|
213
|
-
@property
|
|
285
|
+
@_builtins.property
|
|
214
286
|
@pulumi.getter
|
|
215
|
-
def boot(self) -> Optional[bool]:
|
|
287
|
+
def boot(self) -> Optional[_builtins.bool]:
|
|
216
288
|
"""
|
|
217
289
|
Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
|
|
218
290
|
"""
|
|
219
291
|
return pulumi.get(self, "boot")
|
|
220
292
|
|
|
221
|
-
@property
|
|
293
|
+
@_builtins.property
|
|
222
294
|
@pulumi.getter(name="deviceName")
|
|
223
|
-
def device_name(self) -> Optional[str]:
|
|
295
|
+
def device_name(self) -> Optional[_builtins.str]:
|
|
224
296
|
"""
|
|
225
297
|
Specifies a unique device name of your choice.
|
|
226
298
|
"""
|
|
227
299
|
return pulumi.get(self, "device_name")
|
|
228
300
|
|
|
229
|
-
@property
|
|
301
|
+
@_builtins.property
|
|
230
302
|
@pulumi.getter(name="initializeParams")
|
|
231
303
|
def initialize_params(self) -> Optional[Sequence['outputs.ElastigroupDiskInitializeParam']]:
|
|
232
304
|
"""
|
|
@@ -234,33 +306,33 @@ class ElastigroupDisk(dict):
|
|
|
234
306
|
"""
|
|
235
307
|
return pulumi.get(self, "initialize_params")
|
|
236
308
|
|
|
237
|
-
@property
|
|
309
|
+
@_builtins.property
|
|
238
310
|
@pulumi.getter
|
|
239
|
-
def interface(self) -> Optional[str]:
|
|
311
|
+
def interface(self) -> Optional[_builtins.str]:
|
|
240
312
|
"""
|
|
241
313
|
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.
|
|
242
314
|
"""
|
|
243
315
|
return pulumi.get(self, "interface")
|
|
244
316
|
|
|
245
|
-
@property
|
|
317
|
+
@_builtins.property
|
|
246
318
|
@pulumi.getter
|
|
247
|
-
def mode(self) -> Optional[str]:
|
|
319
|
+
def mode(self) -> Optional[_builtins.str]:
|
|
248
320
|
"""
|
|
249
321
|
The mode in which to attach this disk, either READ_WRITE or READ_ONLY.
|
|
250
322
|
"""
|
|
251
323
|
return pulumi.get(self, "mode")
|
|
252
324
|
|
|
253
|
-
@property
|
|
325
|
+
@_builtins.property
|
|
254
326
|
@pulumi.getter
|
|
255
|
-
def source(self) -> Optional[str]:
|
|
327
|
+
def source(self) -> Optional[_builtins.str]:
|
|
256
328
|
"""
|
|
257
329
|
Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is only applicable for persistent disks.
|
|
258
330
|
"""
|
|
259
331
|
return pulumi.get(self, "source")
|
|
260
332
|
|
|
261
|
-
@property
|
|
333
|
+
@_builtins.property
|
|
262
334
|
@pulumi.getter
|
|
263
|
-
def type(self) -> Optional[str]:
|
|
335
|
+
def type(self) -> Optional[_builtins.str]:
|
|
264
336
|
"""
|
|
265
337
|
Specifies the type of disk, either SCRATCH or PERSISTENT.
|
|
266
338
|
"""
|
|
@@ -291,15 +363,15 @@ class ElastigroupDiskInitializeParam(dict):
|
|
|
291
363
|
return super().get(key, default)
|
|
292
364
|
|
|
293
365
|
def __init__(__self__, *,
|
|
294
|
-
source_image: str,
|
|
295
|
-
disk_size_gb: Optional[str] = None,
|
|
296
|
-
disk_type: Optional[str] = None):
|
|
366
|
+
source_image: _builtins.str,
|
|
367
|
+
disk_size_gb: Optional[_builtins.str] = None,
|
|
368
|
+
disk_type: Optional[_builtins.str] = None):
|
|
297
369
|
"""
|
|
298
|
-
:param str source_image: A source image used to create the disk. You can provide a private (custom) image, and Compute Engine will use the corresponding image from your project.
|
|
370
|
+
:param _builtins.str source_image: A source image used to create the disk. You can provide a private (custom) image, and Compute Engine will use the corresponding image from your project.
|
|
299
371
|
|
|
300
372
|
Usage:
|
|
301
|
-
:param str disk_size_gb: Specifies disk size in gigabytes. Must be in increments of 2.
|
|
302
|
-
:param str disk_type: Specifies the disk type to use to create the instance. Valid values: pd-ssd, local-ssd.
|
|
373
|
+
:param _builtins.str disk_size_gb: Specifies disk size in gigabytes. Must be in increments of 2.
|
|
374
|
+
:param _builtins.str disk_type: Specifies the disk type to use to create the instance. Valid values: pd-ssd, local-ssd.
|
|
303
375
|
"""
|
|
304
376
|
pulumi.set(__self__, "source_image", source_image)
|
|
305
377
|
if disk_size_gb is not None:
|
|
@@ -307,9 +379,9 @@ class ElastigroupDiskInitializeParam(dict):
|
|
|
307
379
|
if disk_type is not None:
|
|
308
380
|
pulumi.set(__self__, "disk_type", disk_type)
|
|
309
381
|
|
|
310
|
-
@property
|
|
382
|
+
@_builtins.property
|
|
311
383
|
@pulumi.getter(name="sourceImage")
|
|
312
|
-
def source_image(self) -> str:
|
|
384
|
+
def source_image(self) -> _builtins.str:
|
|
313
385
|
"""
|
|
314
386
|
A source image used to create the disk. You can provide a private (custom) image, and Compute Engine will use the corresponding image from your project.
|
|
315
387
|
|
|
@@ -317,17 +389,17 @@ class ElastigroupDiskInitializeParam(dict):
|
|
|
317
389
|
"""
|
|
318
390
|
return pulumi.get(self, "source_image")
|
|
319
391
|
|
|
320
|
-
@property
|
|
392
|
+
@_builtins.property
|
|
321
393
|
@pulumi.getter(name="diskSizeGb")
|
|
322
|
-
def disk_size_gb(self) -> Optional[str]:
|
|
394
|
+
def disk_size_gb(self) -> Optional[_builtins.str]:
|
|
323
395
|
"""
|
|
324
396
|
Specifies disk size in gigabytes. Must be in increments of 2.
|
|
325
397
|
"""
|
|
326
398
|
return pulumi.get(self, "disk_size_gb")
|
|
327
399
|
|
|
328
|
-
@property
|
|
400
|
+
@_builtins.property
|
|
329
401
|
@pulumi.getter(name="diskType")
|
|
330
|
-
def disk_type(self) -> Optional[str]:
|
|
402
|
+
def disk_type(self) -> Optional[_builtins.str]:
|
|
331
403
|
"""
|
|
332
404
|
Specifies the disk type to use to create the instance. Valid values: pd-ssd, local-ssd.
|
|
333
405
|
"""
|
|
@@ -337,20 +409,20 @@ class ElastigroupDiskInitializeParam(dict):
|
|
|
337
409
|
@pulumi.output_type
|
|
338
410
|
class ElastigroupGpu(dict):
|
|
339
411
|
def __init__(__self__, *,
|
|
340
|
-
count: int,
|
|
341
|
-
type: str):
|
|
412
|
+
count: _builtins.int,
|
|
413
|
+
type: _builtins.str):
|
|
342
414
|
"""
|
|
343
|
-
:param int count: The number of GPUs. Must be 0, 2, 4, 6, 8.
|
|
415
|
+
:param _builtins.int count: The number of GPUs. Must be 0, 2, 4, 6, 8.
|
|
344
416
|
|
|
345
417
|
Usage:
|
|
346
|
-
:param str type: The type of GPU instance. Valid values: `nvidia-tesla-v100`, `nvidia-tesla-p100`, `nvidia-tesla-k80`.
|
|
418
|
+
:param _builtins.str type: The type of GPU instance. Valid values: `nvidia-tesla-v100`, `nvidia-tesla-p100`, `nvidia-tesla-k80`.
|
|
347
419
|
"""
|
|
348
420
|
pulumi.set(__self__, "count", count)
|
|
349
421
|
pulumi.set(__self__, "type", type)
|
|
350
422
|
|
|
351
|
-
@property
|
|
423
|
+
@_builtins.property
|
|
352
424
|
@pulumi.getter
|
|
353
|
-
def count(self) -> int:
|
|
425
|
+
def count(self) -> _builtins.int:
|
|
354
426
|
"""
|
|
355
427
|
The number of GPUs. Must be 0, 2, 4, 6, 8.
|
|
356
428
|
|
|
@@ -358,9 +430,9 @@ class ElastigroupGpu(dict):
|
|
|
358
430
|
"""
|
|
359
431
|
return pulumi.get(self, "count")
|
|
360
432
|
|
|
361
|
-
@property
|
|
433
|
+
@_builtins.property
|
|
362
434
|
@pulumi.getter
|
|
363
|
-
def type(self) -> str:
|
|
435
|
+
def type(self) -> _builtins.str:
|
|
364
436
|
"""
|
|
365
437
|
The type of GPU instance. Valid values: `nvidia-tesla-v100`, `nvidia-tesla-p100`, `nvidia-tesla-k80`.
|
|
366
438
|
"""
|
|
@@ -387,25 +459,25 @@ class ElastigroupInstanceTypesCustom(dict):
|
|
|
387
459
|
return super().get(key, default)
|
|
388
460
|
|
|
389
461
|
def __init__(__self__, *,
|
|
390
|
-
memory_gib: int,
|
|
391
|
-
vcpu: int):
|
|
462
|
+
memory_gib: _builtins.int,
|
|
463
|
+
vcpu: _builtins.int):
|
|
392
464
|
"""
|
|
393
|
-
:param int memory_gib: The memory (in GiB) in the custom instance types. GCP has a number of limitations on accepted memory values.For more information, see the GCP documentation (here.)[https://cloud.google.com/compute/docs/instances/creating-instance-with-custom-machine-type#specifications]
|
|
465
|
+
:param _builtins.int memory_gib: The memory (in GiB) in the custom instance types. GCP has a number of limitations on accepted memory values.For more information, see the GCP documentation (here.)[https://cloud.google.com/compute/docs/instances/creating-instance-with-custom-machine-type#specifications]
|
|
394
466
|
"""
|
|
395
467
|
pulumi.set(__self__, "memory_gib", memory_gib)
|
|
396
468
|
pulumi.set(__self__, "vcpu", vcpu)
|
|
397
469
|
|
|
398
|
-
@property
|
|
470
|
+
@_builtins.property
|
|
399
471
|
@pulumi.getter(name="memoryGib")
|
|
400
|
-
def memory_gib(self) -> int:
|
|
472
|
+
def memory_gib(self) -> _builtins.int:
|
|
401
473
|
"""
|
|
402
474
|
The memory (in GiB) in the custom instance types. GCP has a number of limitations on accepted memory values.For more information, see the GCP documentation (here.)[https://cloud.google.com/compute/docs/instances/creating-instance-with-custom-machine-type#specifications]
|
|
403
475
|
"""
|
|
404
476
|
return pulumi.get(self, "memory_gib")
|
|
405
477
|
|
|
406
|
-
@property
|
|
478
|
+
@_builtins.property
|
|
407
479
|
@pulumi.getter
|
|
408
|
-
def vcpu(self) -> int:
|
|
480
|
+
def vcpu(self) -> _builtins.int:
|
|
409
481
|
return pulumi.get(self, "vcpu")
|
|
410
482
|
|
|
411
483
|
|
|
@@ -431,19 +503,33 @@ class ElastigroupIntegrationDockerSwarm(dict):
|
|
|
431
503
|
return super().get(key, default)
|
|
432
504
|
|
|
433
505
|
def __init__(__self__, *,
|
|
434
|
-
master_host: str,
|
|
435
|
-
master_port: int):
|
|
506
|
+
master_host: _builtins.str,
|
|
507
|
+
master_port: _builtins.int):
|
|
508
|
+
"""
|
|
509
|
+
:param _builtins.str master_host: IP or FQDN of one of your swarm managers.
|
|
510
|
+
:param _builtins.int master_port: Network port used by your swarm.
|
|
511
|
+
|
|
512
|
+
Usage:
|
|
513
|
+
"""
|
|
436
514
|
pulumi.set(__self__, "master_host", master_host)
|
|
437
515
|
pulumi.set(__self__, "master_port", master_port)
|
|
438
516
|
|
|
439
|
-
@property
|
|
517
|
+
@_builtins.property
|
|
440
518
|
@pulumi.getter(name="masterHost")
|
|
441
|
-
def master_host(self) -> str:
|
|
519
|
+
def master_host(self) -> _builtins.str:
|
|
520
|
+
"""
|
|
521
|
+
IP or FQDN of one of your swarm managers.
|
|
522
|
+
"""
|
|
442
523
|
return pulumi.get(self, "master_host")
|
|
443
524
|
|
|
444
|
-
@property
|
|
525
|
+
@_builtins.property
|
|
445
526
|
@pulumi.getter(name="masterPort")
|
|
446
|
-
def master_port(self) -> int:
|
|
527
|
+
def master_port(self) -> _builtins.int:
|
|
528
|
+
"""
|
|
529
|
+
Network port used by your swarm.
|
|
530
|
+
|
|
531
|
+
Usage:
|
|
532
|
+
"""
|
|
447
533
|
return pulumi.get(self, "master_port")
|
|
448
534
|
|
|
449
535
|
|
|
@@ -481,15 +567,15 @@ class ElastigroupIntegrationGke(dict):
|
|
|
481
567
|
return super().get(key, default)
|
|
482
568
|
|
|
483
569
|
def __init__(__self__, *,
|
|
484
|
-
auto_update: Optional[bool] = None,
|
|
485
|
-
autoscale_cooldown: Optional[int] = None,
|
|
570
|
+
auto_update: Optional[_builtins.bool] = None,
|
|
571
|
+
autoscale_cooldown: Optional[_builtins.int] = None,
|
|
486
572
|
autoscale_down: Optional['outputs.ElastigroupIntegrationGkeAutoscaleDown'] = None,
|
|
487
573
|
autoscale_headroom: Optional['outputs.ElastigroupIntegrationGkeAutoscaleHeadroom'] = None,
|
|
488
|
-
autoscale_is_auto_config: Optional[bool] = None,
|
|
489
|
-
autoscale_is_enabled: Optional[bool] = None,
|
|
574
|
+
autoscale_is_auto_config: Optional[_builtins.bool] = None,
|
|
575
|
+
autoscale_is_enabled: Optional[_builtins.bool] = None,
|
|
490
576
|
autoscale_labels: Optional[Sequence['outputs.ElastigroupIntegrationGkeAutoscaleLabel']] = None,
|
|
491
|
-
cluster_id: Optional[str] = None,
|
|
492
|
-
location: Optional[str] = None):
|
|
577
|
+
cluster_id: Optional[_builtins.str] = None,
|
|
578
|
+
location: Optional[_builtins.str] = None):
|
|
493
579
|
if auto_update is not None:
|
|
494
580
|
pulumi.set(__self__, "auto_update", auto_update)
|
|
495
581
|
if autoscale_cooldown is not None:
|
|
@@ -509,49 +595,49 @@ class ElastigroupIntegrationGke(dict):
|
|
|
509
595
|
if location is not None:
|
|
510
596
|
pulumi.set(__self__, "location", location)
|
|
511
597
|
|
|
512
|
-
@property
|
|
598
|
+
@_builtins.property
|
|
513
599
|
@pulumi.getter(name="autoUpdate")
|
|
514
|
-
def auto_update(self) -> Optional[bool]:
|
|
600
|
+
def auto_update(self) -> Optional[_builtins.bool]:
|
|
515
601
|
return pulumi.get(self, "auto_update")
|
|
516
602
|
|
|
517
|
-
@property
|
|
603
|
+
@_builtins.property
|
|
518
604
|
@pulumi.getter(name="autoscaleCooldown")
|
|
519
|
-
def autoscale_cooldown(self) -> Optional[int]:
|
|
605
|
+
def autoscale_cooldown(self) -> Optional[_builtins.int]:
|
|
520
606
|
return pulumi.get(self, "autoscale_cooldown")
|
|
521
607
|
|
|
522
|
-
@property
|
|
608
|
+
@_builtins.property
|
|
523
609
|
@pulumi.getter(name="autoscaleDown")
|
|
524
610
|
def autoscale_down(self) -> Optional['outputs.ElastigroupIntegrationGkeAutoscaleDown']:
|
|
525
611
|
return pulumi.get(self, "autoscale_down")
|
|
526
612
|
|
|
527
|
-
@property
|
|
613
|
+
@_builtins.property
|
|
528
614
|
@pulumi.getter(name="autoscaleHeadroom")
|
|
529
615
|
def autoscale_headroom(self) -> Optional['outputs.ElastigroupIntegrationGkeAutoscaleHeadroom']:
|
|
530
616
|
return pulumi.get(self, "autoscale_headroom")
|
|
531
617
|
|
|
532
|
-
@property
|
|
618
|
+
@_builtins.property
|
|
533
619
|
@pulumi.getter(name="autoscaleIsAutoConfig")
|
|
534
|
-
def autoscale_is_auto_config(self) -> Optional[bool]:
|
|
620
|
+
def autoscale_is_auto_config(self) -> Optional[_builtins.bool]:
|
|
535
621
|
return pulumi.get(self, "autoscale_is_auto_config")
|
|
536
622
|
|
|
537
|
-
@property
|
|
623
|
+
@_builtins.property
|
|
538
624
|
@pulumi.getter(name="autoscaleIsEnabled")
|
|
539
|
-
def autoscale_is_enabled(self) -> Optional[bool]:
|
|
625
|
+
def autoscale_is_enabled(self) -> Optional[_builtins.bool]:
|
|
540
626
|
return pulumi.get(self, "autoscale_is_enabled")
|
|
541
627
|
|
|
542
|
-
@property
|
|
628
|
+
@_builtins.property
|
|
543
629
|
@pulumi.getter(name="autoscaleLabels")
|
|
544
630
|
def autoscale_labels(self) -> Optional[Sequence['outputs.ElastigroupIntegrationGkeAutoscaleLabel']]:
|
|
545
631
|
return pulumi.get(self, "autoscale_labels")
|
|
546
632
|
|
|
547
|
-
@property
|
|
633
|
+
@_builtins.property
|
|
548
634
|
@pulumi.getter(name="clusterId")
|
|
549
|
-
def cluster_id(self) -> Optional[str]:
|
|
635
|
+
def cluster_id(self) -> Optional[_builtins.str]:
|
|
550
636
|
return pulumi.get(self, "cluster_id")
|
|
551
637
|
|
|
552
|
-
@property
|
|
638
|
+
@_builtins.property
|
|
553
639
|
@pulumi.getter
|
|
554
|
-
def location(self) -> Optional[str]:
|
|
640
|
+
def location(self) -> Optional[_builtins.str]:
|
|
555
641
|
return pulumi.get(self, "location")
|
|
556
642
|
|
|
557
643
|
|
|
@@ -575,13 +661,19 @@ class ElastigroupIntegrationGkeAutoscaleDown(dict):
|
|
|
575
661
|
return super().get(key, default)
|
|
576
662
|
|
|
577
663
|
def __init__(__self__, *,
|
|
578
|
-
evaluation_periods: Optional[int] = None):
|
|
664
|
+
evaluation_periods: Optional[_builtins.int] = None):
|
|
665
|
+
"""
|
|
666
|
+
:param _builtins.int evaluation_periods: Number of consecutive periods in which the threshold must be met in order to trigger a scaling action.
|
|
667
|
+
"""
|
|
579
668
|
if evaluation_periods is not None:
|
|
580
669
|
pulumi.set(__self__, "evaluation_periods", evaluation_periods)
|
|
581
670
|
|
|
582
|
-
@property
|
|
671
|
+
@_builtins.property
|
|
583
672
|
@pulumi.getter(name="evaluationPeriods")
|
|
584
|
-
def evaluation_periods(self) -> Optional[int]:
|
|
673
|
+
def evaluation_periods(self) -> Optional[_builtins.int]:
|
|
674
|
+
"""
|
|
675
|
+
Number of consecutive periods in which the threshold must be met in order to trigger a scaling action.
|
|
676
|
+
"""
|
|
585
677
|
return pulumi.get(self, "evaluation_periods")
|
|
586
678
|
|
|
587
679
|
|
|
@@ -609,9 +701,9 @@ class ElastigroupIntegrationGkeAutoscaleHeadroom(dict):
|
|
|
609
701
|
return super().get(key, default)
|
|
610
702
|
|
|
611
703
|
def __init__(__self__, *,
|
|
612
|
-
cpu_per_unit: Optional[int] = None,
|
|
613
|
-
memory_per_unit: Optional[int] = None,
|
|
614
|
-
num_of_units: Optional[int] = None):
|
|
704
|
+
cpu_per_unit: Optional[_builtins.int] = None,
|
|
705
|
+
memory_per_unit: Optional[_builtins.int] = None,
|
|
706
|
+
num_of_units: Optional[_builtins.int] = None):
|
|
615
707
|
if cpu_per_unit is not None:
|
|
616
708
|
pulumi.set(__self__, "cpu_per_unit", cpu_per_unit)
|
|
617
709
|
if memory_per_unit is not None:
|
|
@@ -619,64 +711,64 @@ class ElastigroupIntegrationGkeAutoscaleHeadroom(dict):
|
|
|
619
711
|
if num_of_units is not None:
|
|
620
712
|
pulumi.set(__self__, "num_of_units", num_of_units)
|
|
621
713
|
|
|
622
|
-
@property
|
|
714
|
+
@_builtins.property
|
|
623
715
|
@pulumi.getter(name="cpuPerUnit")
|
|
624
|
-
def cpu_per_unit(self) -> Optional[int]:
|
|
716
|
+
def cpu_per_unit(self) -> Optional[_builtins.int]:
|
|
625
717
|
return pulumi.get(self, "cpu_per_unit")
|
|
626
718
|
|
|
627
|
-
@property
|
|
719
|
+
@_builtins.property
|
|
628
720
|
@pulumi.getter(name="memoryPerUnit")
|
|
629
|
-
def memory_per_unit(self) -> Optional[int]:
|
|
721
|
+
def memory_per_unit(self) -> Optional[_builtins.int]:
|
|
630
722
|
return pulumi.get(self, "memory_per_unit")
|
|
631
723
|
|
|
632
|
-
@property
|
|
724
|
+
@_builtins.property
|
|
633
725
|
@pulumi.getter(name="numOfUnits")
|
|
634
|
-
def num_of_units(self) -> Optional[int]:
|
|
726
|
+
def num_of_units(self) -> Optional[_builtins.int]:
|
|
635
727
|
return pulumi.get(self, "num_of_units")
|
|
636
728
|
|
|
637
729
|
|
|
638
730
|
@pulumi.output_type
|
|
639
731
|
class ElastigroupIntegrationGkeAutoscaleLabel(dict):
|
|
640
732
|
def __init__(__self__, *,
|
|
641
|
-
key: str,
|
|
642
|
-
value: str):
|
|
733
|
+
key: _builtins.str,
|
|
734
|
+
value: _builtins.str):
|
|
643
735
|
pulumi.set(__self__, "key", key)
|
|
644
736
|
pulumi.set(__self__, "value", value)
|
|
645
737
|
|
|
646
|
-
@property
|
|
738
|
+
@_builtins.property
|
|
647
739
|
@pulumi.getter
|
|
648
|
-
def key(self) -> str:
|
|
740
|
+
def key(self) -> _builtins.str:
|
|
649
741
|
return pulumi.get(self, "key")
|
|
650
742
|
|
|
651
|
-
@property
|
|
743
|
+
@_builtins.property
|
|
652
744
|
@pulumi.getter
|
|
653
|
-
def value(self) -> str:
|
|
745
|
+
def value(self) -> _builtins.str:
|
|
654
746
|
return pulumi.get(self, "value")
|
|
655
747
|
|
|
656
748
|
|
|
657
749
|
@pulumi.output_type
|
|
658
750
|
class ElastigroupLabel(dict):
|
|
659
751
|
def __init__(__self__, *,
|
|
660
|
-
key: str,
|
|
661
|
-
value: str):
|
|
752
|
+
key: _builtins.str,
|
|
753
|
+
value: _builtins.str):
|
|
662
754
|
"""
|
|
663
|
-
:param str key: Labels key.
|
|
664
|
-
:param str value: Labels value.
|
|
755
|
+
:param _builtins.str key: Labels key.
|
|
756
|
+
:param _builtins.str value: Labels value.
|
|
665
757
|
"""
|
|
666
758
|
pulumi.set(__self__, "key", key)
|
|
667
759
|
pulumi.set(__self__, "value", value)
|
|
668
760
|
|
|
669
|
-
@property
|
|
761
|
+
@_builtins.property
|
|
670
762
|
@pulumi.getter
|
|
671
|
-
def key(self) -> str:
|
|
763
|
+
def key(self) -> _builtins.str:
|
|
672
764
|
"""
|
|
673
765
|
Labels key.
|
|
674
766
|
"""
|
|
675
767
|
return pulumi.get(self, "key")
|
|
676
768
|
|
|
677
|
-
@property
|
|
769
|
+
@_builtins.property
|
|
678
770
|
@pulumi.getter
|
|
679
|
-
def value(self) -> str:
|
|
771
|
+
def value(self) -> _builtins.str:
|
|
680
772
|
"""
|
|
681
773
|
Labels value.
|
|
682
774
|
"""
|
|
@@ -686,26 +778,26 @@ class ElastigroupLabel(dict):
|
|
|
686
778
|
@pulumi.output_type
|
|
687
779
|
class ElastigroupMetadata(dict):
|
|
688
780
|
def __init__(__self__, *,
|
|
689
|
-
key: str,
|
|
690
|
-
value: str):
|
|
781
|
+
key: _builtins.str,
|
|
782
|
+
value: _builtins.str):
|
|
691
783
|
"""
|
|
692
|
-
:param str key: Metadata key.
|
|
693
|
-
:param str value: Metadata value.
|
|
784
|
+
:param _builtins.str key: Metadata key.
|
|
785
|
+
:param _builtins.str value: Metadata value.
|
|
694
786
|
"""
|
|
695
787
|
pulumi.set(__self__, "key", key)
|
|
696
788
|
pulumi.set(__self__, "value", value)
|
|
697
789
|
|
|
698
|
-
@property
|
|
790
|
+
@_builtins.property
|
|
699
791
|
@pulumi.getter
|
|
700
|
-
def key(self) -> str:
|
|
792
|
+
def key(self) -> _builtins.str:
|
|
701
793
|
"""
|
|
702
794
|
Metadata key.
|
|
703
795
|
"""
|
|
704
796
|
return pulumi.get(self, "key")
|
|
705
797
|
|
|
706
|
-
@property
|
|
798
|
+
@_builtins.property
|
|
707
799
|
@pulumi.getter
|
|
708
|
-
def value(self) -> str:
|
|
800
|
+
def value(self) -> _builtins.str:
|
|
709
801
|
"""
|
|
710
802
|
Metadata value.
|
|
711
803
|
"""
|
|
@@ -734,26 +826,36 @@ class ElastigroupNetworkInterface(dict):
|
|
|
734
826
|
return super().get(key, default)
|
|
735
827
|
|
|
736
828
|
def __init__(__self__, *,
|
|
737
|
-
network: str,
|
|
829
|
+
network: _builtins.str,
|
|
738
830
|
access_configs: Optional[Sequence['outputs.ElastigroupNetworkInterfaceAccessConfig']] = None,
|
|
739
831
|
alias_ip_ranges: Optional[Sequence['outputs.ElastigroupNetworkInterfaceAliasIpRange']] = None):
|
|
832
|
+
"""
|
|
833
|
+
:param _builtins.str network: Network resource for this group.
|
|
834
|
+
:param Sequence['ElastigroupNetworkInterfaceAccessConfigArgs'] access_configs: Array of configurations.
|
|
835
|
+
"""
|
|
740
836
|
pulumi.set(__self__, "network", network)
|
|
741
837
|
if access_configs is not None:
|
|
742
838
|
pulumi.set(__self__, "access_configs", access_configs)
|
|
743
839
|
if alias_ip_ranges is not None:
|
|
744
840
|
pulumi.set(__self__, "alias_ip_ranges", alias_ip_ranges)
|
|
745
841
|
|
|
746
|
-
@property
|
|
842
|
+
@_builtins.property
|
|
747
843
|
@pulumi.getter
|
|
748
|
-
def network(self) -> str:
|
|
844
|
+
def network(self) -> _builtins.str:
|
|
845
|
+
"""
|
|
846
|
+
Network resource for this group.
|
|
847
|
+
"""
|
|
749
848
|
return pulumi.get(self, "network")
|
|
750
849
|
|
|
751
|
-
@property
|
|
850
|
+
@_builtins.property
|
|
752
851
|
@pulumi.getter(name="accessConfigs")
|
|
753
852
|
def access_configs(self) -> Optional[Sequence['outputs.ElastigroupNetworkInterfaceAccessConfig']]:
|
|
853
|
+
"""
|
|
854
|
+
Array of configurations.
|
|
855
|
+
"""
|
|
754
856
|
return pulumi.get(self, "access_configs")
|
|
755
857
|
|
|
756
|
-
@property
|
|
858
|
+
@_builtins.property
|
|
757
859
|
@pulumi.getter(name="aliasIpRanges")
|
|
758
860
|
def alias_ip_ranges(self) -> Optional[Sequence['outputs.ElastigroupNetworkInterfaceAliasIpRange']]:
|
|
759
861
|
return pulumi.get(self, "alias_ip_ranges")
|
|
@@ -762,27 +864,27 @@ class ElastigroupNetworkInterface(dict):
|
|
|
762
864
|
@pulumi.output_type
|
|
763
865
|
class ElastigroupNetworkInterfaceAccessConfig(dict):
|
|
764
866
|
def __init__(__self__, *,
|
|
765
|
-
name: Optional[str] = None,
|
|
766
|
-
type: Optional[str] = None):
|
|
867
|
+
name: Optional[_builtins.str] = None,
|
|
868
|
+
type: Optional[_builtins.str] = None):
|
|
767
869
|
"""
|
|
768
|
-
:param str name: The group name.
|
|
870
|
+
:param _builtins.str name: The group name.
|
|
769
871
|
"""
|
|
770
872
|
if name is not None:
|
|
771
873
|
pulumi.set(__self__, "name", name)
|
|
772
874
|
if type is not None:
|
|
773
875
|
pulumi.set(__self__, "type", type)
|
|
774
876
|
|
|
775
|
-
@property
|
|
877
|
+
@_builtins.property
|
|
776
878
|
@pulumi.getter
|
|
777
|
-
def name(self) -> Optional[str]:
|
|
879
|
+
def name(self) -> Optional[_builtins.str]:
|
|
778
880
|
"""
|
|
779
881
|
The group name.
|
|
780
882
|
"""
|
|
781
883
|
return pulumi.get(self, "name")
|
|
782
884
|
|
|
783
|
-
@property
|
|
885
|
+
@_builtins.property
|
|
784
886
|
@pulumi.getter
|
|
785
|
-
def type(self) -> Optional[str]:
|
|
887
|
+
def type(self) -> Optional[_builtins.str]:
|
|
786
888
|
return pulumi.get(self, "type")
|
|
787
889
|
|
|
788
890
|
|
|
@@ -808,22 +910,57 @@ class ElastigroupNetworkInterfaceAliasIpRange(dict):
|
|
|
808
910
|
return super().get(key, default)
|
|
809
911
|
|
|
810
912
|
def __init__(__self__, *,
|
|
811
|
-
ip_cidr_range: str,
|
|
812
|
-
subnetwork_range_name: str):
|
|
913
|
+
ip_cidr_range: _builtins.str,
|
|
914
|
+
subnetwork_range_name: _builtins.str):
|
|
813
915
|
pulumi.set(__self__, "ip_cidr_range", ip_cidr_range)
|
|
814
916
|
pulumi.set(__self__, "subnetwork_range_name", subnetwork_range_name)
|
|
815
917
|
|
|
816
|
-
@property
|
|
918
|
+
@_builtins.property
|
|
817
919
|
@pulumi.getter(name="ipCidrRange")
|
|
818
|
-
def ip_cidr_range(self) -> str:
|
|
920
|
+
def ip_cidr_range(self) -> _builtins.str:
|
|
819
921
|
return pulumi.get(self, "ip_cidr_range")
|
|
820
922
|
|
|
821
|
-
@property
|
|
923
|
+
@_builtins.property
|
|
822
924
|
@pulumi.getter(name="subnetworkRangeName")
|
|
823
|
-
def subnetwork_range_name(self) -> str:
|
|
925
|
+
def subnetwork_range_name(self) -> _builtins.str:
|
|
824
926
|
return pulumi.get(self, "subnetwork_range_name")
|
|
825
927
|
|
|
826
928
|
|
|
929
|
+
@pulumi.output_type
|
|
930
|
+
class ElastigroupRevertToPreemptible(dict):
|
|
931
|
+
@staticmethod
|
|
932
|
+
def __key_warning(key: str):
|
|
933
|
+
suggest = None
|
|
934
|
+
if key == "performAt":
|
|
935
|
+
suggest = "perform_at"
|
|
936
|
+
|
|
937
|
+
if suggest:
|
|
938
|
+
pulumi.log.warn(f"Key '{key}' not found in ElastigroupRevertToPreemptible. Access the value via the '{suggest}' property getter instead.")
|
|
939
|
+
|
|
940
|
+
def __getitem__(self, key: str) -> Any:
|
|
941
|
+
ElastigroupRevertToPreemptible.__key_warning(key)
|
|
942
|
+
return super().__getitem__(key)
|
|
943
|
+
|
|
944
|
+
def get(self, key: str, default = None) -> Any:
|
|
945
|
+
ElastigroupRevertToPreemptible.__key_warning(key)
|
|
946
|
+
return super().get(key, default)
|
|
947
|
+
|
|
948
|
+
def __init__(__self__, *,
|
|
949
|
+
perform_at: _builtins.str):
|
|
950
|
+
"""
|
|
951
|
+
:param _builtins.str perform_at: Valid values: "always", "never", "timeWindow". Required on strategy.revertToPreemptible object.
|
|
952
|
+
"""
|
|
953
|
+
pulumi.set(__self__, "perform_at", perform_at)
|
|
954
|
+
|
|
955
|
+
@_builtins.property
|
|
956
|
+
@pulumi.getter(name="performAt")
|
|
957
|
+
def perform_at(self) -> _builtins.str:
|
|
958
|
+
"""
|
|
959
|
+
Valid values: "always", "never", "timeWindow". Required on strategy.revertToPreemptible object.
|
|
960
|
+
"""
|
|
961
|
+
return pulumi.get(self, "perform_at")
|
|
962
|
+
|
|
963
|
+
|
|
827
964
|
@pulumi.output_type
|
|
828
965
|
class ElastigroupScalingDownPolicy(dict):
|
|
829
966
|
@staticmethod
|
|
@@ -850,20 +987,34 @@ class ElastigroupScalingDownPolicy(dict):
|
|
|
850
987
|
return super().get(key, default)
|
|
851
988
|
|
|
852
989
|
def __init__(__self__, *,
|
|
853
|
-
metric_name: str,
|
|
854
|
-
namespace: str,
|
|
855
|
-
policy_name: str,
|
|
856
|
-
threshold: float,
|
|
857
|
-
unit: str,
|
|
858
|
-
action_type: Optional[str] = None,
|
|
859
|
-
adjustment: Optional[int] = None,
|
|
860
|
-
cooldown: Optional[int] = None,
|
|
990
|
+
metric_name: _builtins.str,
|
|
991
|
+
namespace: _builtins.str,
|
|
992
|
+
policy_name: _builtins.str,
|
|
993
|
+
threshold: _builtins.float,
|
|
994
|
+
unit: _builtins.str,
|
|
995
|
+
action_type: Optional[_builtins.str] = None,
|
|
996
|
+
adjustment: Optional[_builtins.int] = None,
|
|
997
|
+
cooldown: Optional[_builtins.int] = None,
|
|
861
998
|
dimensions: Optional[Sequence['outputs.ElastigroupScalingDownPolicyDimension']] = None,
|
|
862
|
-
evaluation_periods: Optional[int] = None,
|
|
863
|
-
operator: Optional[str] = None,
|
|
864
|
-
period: Optional[int] = None,
|
|
865
|
-
source: Optional[str] = None,
|
|
866
|
-
statistic: Optional[str] = None):
|
|
999
|
+
evaluation_periods: Optional[_builtins.int] = None,
|
|
1000
|
+
operator: Optional[_builtins.str] = None,
|
|
1001
|
+
period: Optional[_builtins.int] = None,
|
|
1002
|
+
source: Optional[_builtins.str] = None,
|
|
1003
|
+
statistic: Optional[_builtins.str] = None):
|
|
1004
|
+
"""
|
|
1005
|
+
:param _builtins.str metric_name: Metric to monitor. Valid values: "Percentage CPU", "Network In", "Network Out", "Disk Read Bytes", "Disk Write Bytes", "Disk Write Operations/Sec", "Disk Read Operations/Sec".
|
|
1006
|
+
:param _builtins.str policy_name: Name of scaling policy.
|
|
1007
|
+
:param _builtins.float threshold: The value at which the scaling action is triggered.
|
|
1008
|
+
:param _builtins.str action_type: Type of scaling action to take when the scaling policy is triggered. Valid values: "adjustment", "setMinTarget", "updateCapacity", "percentageAdjustment"
|
|
1009
|
+
:param _builtins.int adjustment: Value to which the action type will be adjusted. Required if using "numeric" or "percentageAdjustment" action types.
|
|
1010
|
+
:param _builtins.int cooldown: Time (seconds) to wait after a scaling action before resuming monitoring.
|
|
1011
|
+
:param Sequence['ElastigroupScalingDownPolicyDimensionArgs'] dimensions: A list of dimensions describing qualities of the metric.
|
|
1012
|
+
:param _builtins.int evaluation_periods: Number of consecutive periods in which the threshold must be met in order to trigger a scaling action.
|
|
1013
|
+
:param _builtins.str operator: The operator used to evaluate the threshold against the current metric value. Valid values: "gt" (greater than), "get" (greater-than or equal), "lt" (less than), "lte" (less than or equal).
|
|
1014
|
+
:param _builtins.int period: Amount of time (seconds) for which the threshold must be met in order to trigger the scaling action.
|
|
1015
|
+
:param _builtins.str source: Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is only applicable for persistent disks.
|
|
1016
|
+
:param _builtins.str statistic: Statistic by which to evaluate the selected metric. Valid values: "AVERAGE", "SAMPLE_COUNT", "SUM", "MINIMUM", "MAXIMUM", "PERCENTILE", "COUNT".
|
|
1017
|
+
"""
|
|
867
1018
|
pulumi.set(__self__, "metric_name", metric_name)
|
|
868
1019
|
pulumi.set(__self__, "namespace", namespace)
|
|
869
1020
|
pulumi.set(__self__, "policy_name", policy_name)
|
|
@@ -888,100 +1039,136 @@ class ElastigroupScalingDownPolicy(dict):
|
|
|
888
1039
|
if statistic is not None:
|
|
889
1040
|
pulumi.set(__self__, "statistic", statistic)
|
|
890
1041
|
|
|
891
|
-
@property
|
|
1042
|
+
@_builtins.property
|
|
892
1043
|
@pulumi.getter(name="metricName")
|
|
893
|
-
def metric_name(self) -> str:
|
|
1044
|
+
def metric_name(self) -> _builtins.str:
|
|
1045
|
+
"""
|
|
1046
|
+
Metric to monitor. Valid values: "Percentage CPU", "Network In", "Network Out", "Disk Read Bytes", "Disk Write Bytes", "Disk Write Operations/Sec", "Disk Read Operations/Sec".
|
|
1047
|
+
"""
|
|
894
1048
|
return pulumi.get(self, "metric_name")
|
|
895
1049
|
|
|
896
|
-
@property
|
|
1050
|
+
@_builtins.property
|
|
897
1051
|
@pulumi.getter
|
|
898
|
-
def namespace(self) -> str:
|
|
1052
|
+
def namespace(self) -> _builtins.str:
|
|
899
1053
|
return pulumi.get(self, "namespace")
|
|
900
1054
|
|
|
901
|
-
@property
|
|
1055
|
+
@_builtins.property
|
|
902
1056
|
@pulumi.getter(name="policyName")
|
|
903
|
-
def policy_name(self) -> str:
|
|
1057
|
+
def policy_name(self) -> _builtins.str:
|
|
1058
|
+
"""
|
|
1059
|
+
Name of scaling policy.
|
|
1060
|
+
"""
|
|
904
1061
|
return pulumi.get(self, "policy_name")
|
|
905
1062
|
|
|
906
|
-
@property
|
|
1063
|
+
@_builtins.property
|
|
907
1064
|
@pulumi.getter
|
|
908
|
-
def threshold(self) -> float:
|
|
1065
|
+
def threshold(self) -> _builtins.float:
|
|
1066
|
+
"""
|
|
1067
|
+
The value at which the scaling action is triggered.
|
|
1068
|
+
"""
|
|
909
1069
|
return pulumi.get(self, "threshold")
|
|
910
1070
|
|
|
911
|
-
@property
|
|
1071
|
+
@_builtins.property
|
|
912
1072
|
@pulumi.getter
|
|
913
|
-
def unit(self) -> str:
|
|
1073
|
+
def unit(self) -> _builtins.str:
|
|
914
1074
|
return pulumi.get(self, "unit")
|
|
915
1075
|
|
|
916
|
-
@property
|
|
1076
|
+
@_builtins.property
|
|
917
1077
|
@pulumi.getter(name="actionType")
|
|
918
|
-
def action_type(self) -> Optional[str]:
|
|
1078
|
+
def action_type(self) -> Optional[_builtins.str]:
|
|
1079
|
+
"""
|
|
1080
|
+
Type of scaling action to take when the scaling policy is triggered. Valid values: "adjustment", "setMinTarget", "updateCapacity", "percentageAdjustment"
|
|
1081
|
+
"""
|
|
919
1082
|
return pulumi.get(self, "action_type")
|
|
920
1083
|
|
|
921
|
-
@property
|
|
1084
|
+
@_builtins.property
|
|
922
1085
|
@pulumi.getter
|
|
923
|
-
def adjustment(self) -> Optional[int]:
|
|
1086
|
+
def adjustment(self) -> Optional[_builtins.int]:
|
|
1087
|
+
"""
|
|
1088
|
+
Value to which the action type will be adjusted. Required if using "numeric" or "percentageAdjustment" action types.
|
|
1089
|
+
"""
|
|
924
1090
|
return pulumi.get(self, "adjustment")
|
|
925
1091
|
|
|
926
|
-
@property
|
|
1092
|
+
@_builtins.property
|
|
927
1093
|
@pulumi.getter
|
|
928
|
-
def cooldown(self) -> Optional[int]:
|
|
1094
|
+
def cooldown(self) -> Optional[_builtins.int]:
|
|
1095
|
+
"""
|
|
1096
|
+
Time (seconds) to wait after a scaling action before resuming monitoring.
|
|
1097
|
+
"""
|
|
929
1098
|
return pulumi.get(self, "cooldown")
|
|
930
1099
|
|
|
931
|
-
@property
|
|
1100
|
+
@_builtins.property
|
|
932
1101
|
@pulumi.getter
|
|
933
1102
|
def dimensions(self) -> Optional[Sequence['outputs.ElastigroupScalingDownPolicyDimension']]:
|
|
1103
|
+
"""
|
|
1104
|
+
A list of dimensions describing qualities of the metric.
|
|
1105
|
+
"""
|
|
934
1106
|
return pulumi.get(self, "dimensions")
|
|
935
1107
|
|
|
936
|
-
@property
|
|
1108
|
+
@_builtins.property
|
|
937
1109
|
@pulumi.getter(name="evaluationPeriods")
|
|
938
|
-
def evaluation_periods(self) -> Optional[int]:
|
|
1110
|
+
def evaluation_periods(self) -> Optional[_builtins.int]:
|
|
1111
|
+
"""
|
|
1112
|
+
Number of consecutive periods in which the threshold must be met in order to trigger a scaling action.
|
|
1113
|
+
"""
|
|
939
1114
|
return pulumi.get(self, "evaluation_periods")
|
|
940
1115
|
|
|
941
|
-
@property
|
|
1116
|
+
@_builtins.property
|
|
942
1117
|
@pulumi.getter
|
|
943
|
-
def operator(self) -> Optional[str]:
|
|
1118
|
+
def operator(self) -> Optional[_builtins.str]:
|
|
1119
|
+
"""
|
|
1120
|
+
The operator used to evaluate the threshold against the current metric value. Valid values: "gt" (greater than), "get" (greater-than or equal), "lt" (less than), "lte" (less than or equal).
|
|
1121
|
+
"""
|
|
944
1122
|
return pulumi.get(self, "operator")
|
|
945
1123
|
|
|
946
|
-
@property
|
|
1124
|
+
@_builtins.property
|
|
947
1125
|
@pulumi.getter
|
|
948
|
-
def period(self) -> Optional[int]:
|
|
1126
|
+
def period(self) -> Optional[_builtins.int]:
|
|
1127
|
+
"""
|
|
1128
|
+
Amount of time (seconds) for which the threshold must be met in order to trigger the scaling action.
|
|
1129
|
+
"""
|
|
949
1130
|
return pulumi.get(self, "period")
|
|
950
1131
|
|
|
951
|
-
@property
|
|
1132
|
+
@_builtins.property
|
|
952
1133
|
@pulumi.getter
|
|
953
|
-
def source(self) -> Optional[str]:
|
|
1134
|
+
def source(self) -> Optional[_builtins.str]:
|
|
1135
|
+
"""
|
|
1136
|
+
Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is only applicable for persistent disks.
|
|
1137
|
+
"""
|
|
954
1138
|
return pulumi.get(self, "source")
|
|
955
1139
|
|
|
956
|
-
@property
|
|
1140
|
+
@_builtins.property
|
|
957
1141
|
@pulumi.getter
|
|
958
|
-
def statistic(self) -> Optional[str]:
|
|
1142
|
+
def statistic(self) -> Optional[_builtins.str]:
|
|
1143
|
+
"""
|
|
1144
|
+
Statistic by which to evaluate the selected metric. Valid values: "AVERAGE", "SAMPLE_COUNT", "SUM", "MINIMUM", "MAXIMUM", "PERCENTILE", "COUNT".
|
|
1145
|
+
"""
|
|
959
1146
|
return pulumi.get(self, "statistic")
|
|
960
1147
|
|
|
961
1148
|
|
|
962
1149
|
@pulumi.output_type
|
|
963
1150
|
class ElastigroupScalingDownPolicyDimension(dict):
|
|
964
1151
|
def __init__(__self__, *,
|
|
965
|
-
name: str,
|
|
966
|
-
value: Optional[str] = None):
|
|
1152
|
+
name: _builtins.str,
|
|
1153
|
+
value: Optional[_builtins.str] = None):
|
|
967
1154
|
"""
|
|
968
|
-
:param str name: The group name.
|
|
1155
|
+
:param _builtins.str name: The group name.
|
|
969
1156
|
"""
|
|
970
1157
|
pulumi.set(__self__, "name", name)
|
|
971
1158
|
if value is not None:
|
|
972
1159
|
pulumi.set(__self__, "value", value)
|
|
973
1160
|
|
|
974
|
-
@property
|
|
1161
|
+
@_builtins.property
|
|
975
1162
|
@pulumi.getter
|
|
976
|
-
def name(self) -> str:
|
|
1163
|
+
def name(self) -> _builtins.str:
|
|
977
1164
|
"""
|
|
978
1165
|
The group name.
|
|
979
1166
|
"""
|
|
980
1167
|
return pulumi.get(self, "name")
|
|
981
1168
|
|
|
982
|
-
@property
|
|
1169
|
+
@_builtins.property
|
|
983
1170
|
@pulumi.getter
|
|
984
|
-
def value(self) -> Optional[str]:
|
|
1171
|
+
def value(self) -> Optional[_builtins.str]:
|
|
985
1172
|
return pulumi.get(self, "value")
|
|
986
1173
|
|
|
987
1174
|
|
|
@@ -1011,32 +1198,33 @@ class ElastigroupScalingUpPolicy(dict):
|
|
|
1011
1198
|
return super().get(key, default)
|
|
1012
1199
|
|
|
1013
1200
|
def __init__(__self__, *,
|
|
1014
|
-
metric_name: str,
|
|
1015
|
-
namespace: str,
|
|
1016
|
-
policy_name: str,
|
|
1017
|
-
threshold: float,
|
|
1018
|
-
unit: str,
|
|
1019
|
-
action_type: Optional[str] = None,
|
|
1020
|
-
adjustment: Optional[int] = None,
|
|
1021
|
-
cooldown: Optional[int] = None,
|
|
1201
|
+
metric_name: _builtins.str,
|
|
1202
|
+
namespace: _builtins.str,
|
|
1203
|
+
policy_name: _builtins.str,
|
|
1204
|
+
threshold: _builtins.float,
|
|
1205
|
+
unit: _builtins.str,
|
|
1206
|
+
action_type: Optional[_builtins.str] = None,
|
|
1207
|
+
adjustment: Optional[_builtins.int] = None,
|
|
1208
|
+
cooldown: Optional[_builtins.int] = None,
|
|
1022
1209
|
dimensions: Optional[Sequence['outputs.ElastigroupScalingUpPolicyDimension']] = None,
|
|
1023
|
-
evaluation_periods: Optional[int] = None,
|
|
1024
|
-
operator: Optional[str] = None,
|
|
1025
|
-
period: Optional[int] = None,
|
|
1026
|
-
source: Optional[str] = None,
|
|
1027
|
-
statistic: Optional[str] = None):
|
|
1028
|
-
"""
|
|
1029
|
-
:param str metric_name: Metric to monitor. Valid values: "Percentage CPU", "Network In", "Network Out", "Disk Read Bytes", "Disk Write Bytes", "Disk Write Operations/Sec", "Disk Read Operations/Sec".
|
|
1030
|
-
:param str policy_name: Name of scaling policy.
|
|
1031
|
-
:param float threshold: The value at which the scaling action is triggered.
|
|
1032
|
-
:param str action_type: Type of scaling action to take when the scaling policy is triggered. Valid values: "adjustment", "setMinTarget", "updateCapacity", "percentageAdjustment"
|
|
1033
|
-
:param int adjustment: Value to which the action type will be adjusted. Required if using "numeric" or "percentageAdjustment" action types.
|
|
1034
|
-
:param int cooldown: Time (seconds) to wait after a scaling action before resuming monitoring.
|
|
1210
|
+
evaluation_periods: Optional[_builtins.int] = None,
|
|
1211
|
+
operator: Optional[_builtins.str] = None,
|
|
1212
|
+
period: Optional[_builtins.int] = None,
|
|
1213
|
+
source: Optional[_builtins.str] = None,
|
|
1214
|
+
statistic: Optional[_builtins.str] = None):
|
|
1215
|
+
"""
|
|
1216
|
+
:param _builtins.str metric_name: Metric to monitor. Valid values: "Percentage CPU", "Network In", "Network Out", "Disk Read Bytes", "Disk Write Bytes", "Disk Write Operations/Sec", "Disk Read Operations/Sec".
|
|
1217
|
+
:param _builtins.str policy_name: Name of scaling policy.
|
|
1218
|
+
:param _builtins.float threshold: The value at which the scaling action is triggered.
|
|
1219
|
+
:param _builtins.str action_type: Type of scaling action to take when the scaling policy is triggered. Valid values: "adjustment", "setMinTarget", "updateCapacity", "percentageAdjustment"
|
|
1220
|
+
:param _builtins.int adjustment: Value to which the action type will be adjusted. Required if using "numeric" or "percentageAdjustment" action types.
|
|
1221
|
+
:param _builtins.int cooldown: Time (seconds) to wait after a scaling action before resuming monitoring.
|
|
1035
1222
|
:param Sequence['ElastigroupScalingUpPolicyDimensionArgs'] dimensions: A list of dimensions describing qualities of the metric.
|
|
1036
|
-
:param int evaluation_periods: Number of consecutive periods in which the threshold must be met in order to trigger a scaling action.
|
|
1037
|
-
:param str operator: The operator used to evaluate the threshold against the current metric value. Valid values: "gt" (greater than), "get" (greater-than or equal), "lt" (less than), "lte" (less than or equal).
|
|
1038
|
-
:param int period: Amount of time (seconds) for which the threshold must be met in order to trigger the scaling action.
|
|
1039
|
-
:param str
|
|
1223
|
+
:param _builtins.int evaluation_periods: Number of consecutive periods in which the threshold must be met in order to trigger a scaling action.
|
|
1224
|
+
:param _builtins.str operator: The operator used to evaluate the threshold against the current metric value. Valid values: "gt" (greater than), "get" (greater-than or equal), "lt" (less than), "lte" (less than or equal).
|
|
1225
|
+
:param _builtins.int period: Amount of time (seconds) for which the threshold must be met in order to trigger the scaling action.
|
|
1226
|
+
:param _builtins.str source: Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is only applicable for persistent disks.
|
|
1227
|
+
:param _builtins.str statistic: Statistic by which to evaluate the selected metric. Valid values: "AVERAGE", "SAMPLE_COUNT", "SUM", "MINIMUM", "MAXIMUM", "PERCENTILE", "COUNT".
|
|
1040
1228
|
"""
|
|
1041
1229
|
pulumi.set(__self__, "metric_name", metric_name)
|
|
1042
1230
|
pulumi.set(__self__, "namespace", namespace)
|
|
@@ -1062,65 +1250,65 @@ class ElastigroupScalingUpPolicy(dict):
|
|
|
1062
1250
|
if statistic is not None:
|
|
1063
1251
|
pulumi.set(__self__, "statistic", statistic)
|
|
1064
1252
|
|
|
1065
|
-
@property
|
|
1253
|
+
@_builtins.property
|
|
1066
1254
|
@pulumi.getter(name="metricName")
|
|
1067
|
-
def metric_name(self) -> str:
|
|
1255
|
+
def metric_name(self) -> _builtins.str:
|
|
1068
1256
|
"""
|
|
1069
1257
|
Metric to monitor. Valid values: "Percentage CPU", "Network In", "Network Out", "Disk Read Bytes", "Disk Write Bytes", "Disk Write Operations/Sec", "Disk Read Operations/Sec".
|
|
1070
1258
|
"""
|
|
1071
1259
|
return pulumi.get(self, "metric_name")
|
|
1072
1260
|
|
|
1073
|
-
@property
|
|
1261
|
+
@_builtins.property
|
|
1074
1262
|
@pulumi.getter
|
|
1075
|
-
def namespace(self) -> str:
|
|
1263
|
+
def namespace(self) -> _builtins.str:
|
|
1076
1264
|
return pulumi.get(self, "namespace")
|
|
1077
1265
|
|
|
1078
|
-
@property
|
|
1266
|
+
@_builtins.property
|
|
1079
1267
|
@pulumi.getter(name="policyName")
|
|
1080
|
-
def policy_name(self) -> str:
|
|
1268
|
+
def policy_name(self) -> _builtins.str:
|
|
1081
1269
|
"""
|
|
1082
1270
|
Name of scaling policy.
|
|
1083
1271
|
"""
|
|
1084
1272
|
return pulumi.get(self, "policy_name")
|
|
1085
1273
|
|
|
1086
|
-
@property
|
|
1274
|
+
@_builtins.property
|
|
1087
1275
|
@pulumi.getter
|
|
1088
|
-
def threshold(self) -> float:
|
|
1276
|
+
def threshold(self) -> _builtins.float:
|
|
1089
1277
|
"""
|
|
1090
1278
|
The value at which the scaling action is triggered.
|
|
1091
1279
|
"""
|
|
1092
1280
|
return pulumi.get(self, "threshold")
|
|
1093
1281
|
|
|
1094
|
-
@property
|
|
1282
|
+
@_builtins.property
|
|
1095
1283
|
@pulumi.getter
|
|
1096
|
-
def unit(self) -> str:
|
|
1284
|
+
def unit(self) -> _builtins.str:
|
|
1097
1285
|
return pulumi.get(self, "unit")
|
|
1098
1286
|
|
|
1099
|
-
@property
|
|
1287
|
+
@_builtins.property
|
|
1100
1288
|
@pulumi.getter(name="actionType")
|
|
1101
|
-
def action_type(self) -> Optional[str]:
|
|
1289
|
+
def action_type(self) -> Optional[_builtins.str]:
|
|
1102
1290
|
"""
|
|
1103
1291
|
Type of scaling action to take when the scaling policy is triggered. Valid values: "adjustment", "setMinTarget", "updateCapacity", "percentageAdjustment"
|
|
1104
1292
|
"""
|
|
1105
1293
|
return pulumi.get(self, "action_type")
|
|
1106
1294
|
|
|
1107
|
-
@property
|
|
1295
|
+
@_builtins.property
|
|
1108
1296
|
@pulumi.getter
|
|
1109
|
-
def adjustment(self) -> Optional[int]:
|
|
1297
|
+
def adjustment(self) -> Optional[_builtins.int]:
|
|
1110
1298
|
"""
|
|
1111
1299
|
Value to which the action type will be adjusted. Required if using "numeric" or "percentageAdjustment" action types.
|
|
1112
1300
|
"""
|
|
1113
1301
|
return pulumi.get(self, "adjustment")
|
|
1114
1302
|
|
|
1115
|
-
@property
|
|
1303
|
+
@_builtins.property
|
|
1116
1304
|
@pulumi.getter
|
|
1117
|
-
def cooldown(self) -> Optional[int]:
|
|
1305
|
+
def cooldown(self) -> Optional[_builtins.int]:
|
|
1118
1306
|
"""
|
|
1119
1307
|
Time (seconds) to wait after a scaling action before resuming monitoring.
|
|
1120
1308
|
"""
|
|
1121
1309
|
return pulumi.get(self, "cooldown")
|
|
1122
1310
|
|
|
1123
|
-
@property
|
|
1311
|
+
@_builtins.property
|
|
1124
1312
|
@pulumi.getter
|
|
1125
1313
|
def dimensions(self) -> Optional[Sequence['outputs.ElastigroupScalingUpPolicyDimension']]:
|
|
1126
1314
|
"""
|
|
@@ -1128,38 +1316,41 @@ class ElastigroupScalingUpPolicy(dict):
|
|
|
1128
1316
|
"""
|
|
1129
1317
|
return pulumi.get(self, "dimensions")
|
|
1130
1318
|
|
|
1131
|
-
@property
|
|
1319
|
+
@_builtins.property
|
|
1132
1320
|
@pulumi.getter(name="evaluationPeriods")
|
|
1133
|
-
def evaluation_periods(self) -> Optional[int]:
|
|
1321
|
+
def evaluation_periods(self) -> Optional[_builtins.int]:
|
|
1134
1322
|
"""
|
|
1135
1323
|
Number of consecutive periods in which the threshold must be met in order to trigger a scaling action.
|
|
1136
1324
|
"""
|
|
1137
1325
|
return pulumi.get(self, "evaluation_periods")
|
|
1138
1326
|
|
|
1139
|
-
@property
|
|
1327
|
+
@_builtins.property
|
|
1140
1328
|
@pulumi.getter
|
|
1141
|
-
def operator(self) -> Optional[str]:
|
|
1329
|
+
def operator(self) -> Optional[_builtins.str]:
|
|
1142
1330
|
"""
|
|
1143
1331
|
The operator used to evaluate the threshold against the current metric value. Valid values: "gt" (greater than), "get" (greater-than or equal), "lt" (less than), "lte" (less than or equal).
|
|
1144
1332
|
"""
|
|
1145
1333
|
return pulumi.get(self, "operator")
|
|
1146
1334
|
|
|
1147
|
-
@property
|
|
1335
|
+
@_builtins.property
|
|
1148
1336
|
@pulumi.getter
|
|
1149
|
-
def period(self) -> Optional[int]:
|
|
1337
|
+
def period(self) -> Optional[_builtins.int]:
|
|
1150
1338
|
"""
|
|
1151
1339
|
Amount of time (seconds) for which the threshold must be met in order to trigger the scaling action.
|
|
1152
1340
|
"""
|
|
1153
1341
|
return pulumi.get(self, "period")
|
|
1154
1342
|
|
|
1155
|
-
@property
|
|
1343
|
+
@_builtins.property
|
|
1156
1344
|
@pulumi.getter
|
|
1157
|
-
def source(self) -> Optional[str]:
|
|
1345
|
+
def source(self) -> Optional[_builtins.str]:
|
|
1346
|
+
"""
|
|
1347
|
+
Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is only applicable for persistent disks.
|
|
1348
|
+
"""
|
|
1158
1349
|
return pulumi.get(self, "source")
|
|
1159
1350
|
|
|
1160
|
-
@property
|
|
1351
|
+
@_builtins.property
|
|
1161
1352
|
@pulumi.getter
|
|
1162
|
-
def statistic(self) -> Optional[str]:
|
|
1353
|
+
def statistic(self) -> Optional[_builtins.str]:
|
|
1163
1354
|
"""
|
|
1164
1355
|
Statistic by which to evaluate the selected metric. Valid values: "AVERAGE", "SAMPLE_COUNT", "SUM", "MINIMUM", "MAXIMUM", "PERCENTILE", "COUNT".
|
|
1165
1356
|
"""
|
|
@@ -1169,11 +1360,11 @@ class ElastigroupScalingUpPolicy(dict):
|
|
|
1169
1360
|
@pulumi.output_type
|
|
1170
1361
|
class ElastigroupScalingUpPolicyDimension(dict):
|
|
1171
1362
|
def __init__(__self__, *,
|
|
1172
|
-
name: str,
|
|
1173
|
-
value: Optional[str] = None):
|
|
1363
|
+
name: _builtins.str,
|
|
1364
|
+
value: Optional[_builtins.str] = None):
|
|
1174
1365
|
"""
|
|
1175
|
-
:param str name: The dimension name.
|
|
1176
|
-
:param str value: The dimension value.
|
|
1366
|
+
:param _builtins.str name: The dimension name.
|
|
1367
|
+
:param _builtins.str value: The dimension value.
|
|
1177
1368
|
|
|
1178
1369
|
Usage:
|
|
1179
1370
|
"""
|
|
@@ -1181,17 +1372,17 @@ class ElastigroupScalingUpPolicyDimension(dict):
|
|
|
1181
1372
|
if value is not None:
|
|
1182
1373
|
pulumi.set(__self__, "value", value)
|
|
1183
1374
|
|
|
1184
|
-
@property
|
|
1375
|
+
@_builtins.property
|
|
1185
1376
|
@pulumi.getter
|
|
1186
|
-
def name(self) -> str:
|
|
1377
|
+
def name(self) -> _builtins.str:
|
|
1187
1378
|
"""
|
|
1188
1379
|
The dimension name.
|
|
1189
1380
|
"""
|
|
1190
1381
|
return pulumi.get(self, "name")
|
|
1191
1382
|
|
|
1192
|
-
@property
|
|
1383
|
+
@_builtins.property
|
|
1193
1384
|
@pulumi.getter
|
|
1194
|
-
def value(self) -> Optional[str]:
|
|
1385
|
+
def value(self) -> Optional[_builtins.str]:
|
|
1195
1386
|
"""
|
|
1196
1387
|
The dimension value.
|
|
1197
1388
|
|
|
@@ -1230,21 +1421,21 @@ class ElastigroupScheduledTask(dict):
|
|
|
1230
1421
|
return super().get(key, default)
|
|
1231
1422
|
|
|
1232
1423
|
def __init__(__self__, *,
|
|
1233
|
-
task_type: str,
|
|
1234
|
-
cron_expression: Optional[str] = None,
|
|
1235
|
-
is_enabled: Optional[bool] = None,
|
|
1236
|
-
max_capacity: Optional[str] = None,
|
|
1237
|
-
min_capacity: Optional[str] = None,
|
|
1238
|
-
target_capacity: Optional[str] = None):
|
|
1239
|
-
"""
|
|
1240
|
-
:param str task_type: The task type to run. Valid values: `"setCapacity"`.
|
|
1241
|
-
:param str cron_expression: A valid cron expression. The cron is running in UTC time zone and is in [Unix cron format](https://en.wikipedia.org/wiki/Cron).
|
|
1242
|
-
:param bool is_enabled: Setting the task to being enabled or disabled.
|
|
1243
|
-
:param str max_capacity: The maximum number of instances the group should have.
|
|
1424
|
+
task_type: _builtins.str,
|
|
1425
|
+
cron_expression: Optional[_builtins.str] = None,
|
|
1426
|
+
is_enabled: Optional[_builtins.bool] = None,
|
|
1427
|
+
max_capacity: Optional[_builtins.str] = None,
|
|
1428
|
+
min_capacity: Optional[_builtins.str] = None,
|
|
1429
|
+
target_capacity: Optional[_builtins.str] = None):
|
|
1430
|
+
"""
|
|
1431
|
+
:param _builtins.str task_type: The task type to run. Valid values: `"setCapacity"`.
|
|
1432
|
+
:param _builtins.str cron_expression: A valid cron expression. The cron is running in UTC time zone and is in [Unix cron format](https://en.wikipedia.org/wiki/Cron).
|
|
1433
|
+
:param _builtins.bool is_enabled: Setting the task to being enabled or disabled.
|
|
1434
|
+
:param _builtins.str max_capacity: The maximum number of instances the group should have.
|
|
1244
1435
|
|
|
1245
1436
|
Usage:
|
|
1246
|
-
:param str min_capacity: The minimum number of instances the group should have.
|
|
1247
|
-
:param str target_capacity: The desired number of instances the group should have.
|
|
1437
|
+
:param _builtins.str min_capacity: The minimum number of instances the group should have.
|
|
1438
|
+
:param _builtins.str target_capacity: The desired number of instances the group should have.
|
|
1248
1439
|
"""
|
|
1249
1440
|
pulumi.set(__self__, "task_type", task_type)
|
|
1250
1441
|
if cron_expression is not None:
|
|
@@ -1258,33 +1449,33 @@ class ElastigroupScheduledTask(dict):
|
|
|
1258
1449
|
if target_capacity is not None:
|
|
1259
1450
|
pulumi.set(__self__, "target_capacity", target_capacity)
|
|
1260
1451
|
|
|
1261
|
-
@property
|
|
1452
|
+
@_builtins.property
|
|
1262
1453
|
@pulumi.getter(name="taskType")
|
|
1263
|
-
def task_type(self) -> str:
|
|
1454
|
+
def task_type(self) -> _builtins.str:
|
|
1264
1455
|
"""
|
|
1265
1456
|
The task type to run. Valid values: `"setCapacity"`.
|
|
1266
1457
|
"""
|
|
1267
1458
|
return pulumi.get(self, "task_type")
|
|
1268
1459
|
|
|
1269
|
-
@property
|
|
1460
|
+
@_builtins.property
|
|
1270
1461
|
@pulumi.getter(name="cronExpression")
|
|
1271
|
-
def cron_expression(self) -> Optional[str]:
|
|
1462
|
+
def cron_expression(self) -> Optional[_builtins.str]:
|
|
1272
1463
|
"""
|
|
1273
1464
|
A valid cron expression. The cron is running in UTC time zone and is in [Unix cron format](https://en.wikipedia.org/wiki/Cron).
|
|
1274
1465
|
"""
|
|
1275
1466
|
return pulumi.get(self, "cron_expression")
|
|
1276
1467
|
|
|
1277
|
-
@property
|
|
1468
|
+
@_builtins.property
|
|
1278
1469
|
@pulumi.getter(name="isEnabled")
|
|
1279
|
-
def is_enabled(self) -> Optional[bool]:
|
|
1470
|
+
def is_enabled(self) -> Optional[_builtins.bool]:
|
|
1280
1471
|
"""
|
|
1281
1472
|
Setting the task to being enabled or disabled.
|
|
1282
1473
|
"""
|
|
1283
1474
|
return pulumi.get(self, "is_enabled")
|
|
1284
1475
|
|
|
1285
|
-
@property
|
|
1476
|
+
@_builtins.property
|
|
1286
1477
|
@pulumi.getter(name="maxCapacity")
|
|
1287
|
-
def max_capacity(self) -> Optional[str]:
|
|
1478
|
+
def max_capacity(self) -> Optional[_builtins.str]:
|
|
1288
1479
|
"""
|
|
1289
1480
|
The maximum number of instances the group should have.
|
|
1290
1481
|
|
|
@@ -1292,23 +1483,73 @@ class ElastigroupScheduledTask(dict):
|
|
|
1292
1483
|
"""
|
|
1293
1484
|
return pulumi.get(self, "max_capacity")
|
|
1294
1485
|
|
|
1295
|
-
@property
|
|
1486
|
+
@_builtins.property
|
|
1296
1487
|
@pulumi.getter(name="minCapacity")
|
|
1297
|
-
def min_capacity(self) -> Optional[str]:
|
|
1488
|
+
def min_capacity(self) -> Optional[_builtins.str]:
|
|
1298
1489
|
"""
|
|
1299
1490
|
The minimum number of instances the group should have.
|
|
1300
1491
|
"""
|
|
1301
1492
|
return pulumi.get(self, "min_capacity")
|
|
1302
1493
|
|
|
1303
|
-
@property
|
|
1494
|
+
@_builtins.property
|
|
1304
1495
|
@pulumi.getter(name="targetCapacity")
|
|
1305
|
-
def target_capacity(self) -> Optional[str]:
|
|
1496
|
+
def target_capacity(self) -> Optional[_builtins.str]:
|
|
1306
1497
|
"""
|
|
1307
1498
|
The desired number of instances the group should have.
|
|
1308
1499
|
"""
|
|
1309
1500
|
return pulumi.get(self, "target_capacity")
|
|
1310
1501
|
|
|
1311
1502
|
|
|
1503
|
+
@pulumi.output_type
|
|
1504
|
+
class ElastigroupShieldedInstanceConfig(dict):
|
|
1505
|
+
@staticmethod
|
|
1506
|
+
def __key_warning(key: str):
|
|
1507
|
+
suggest = None
|
|
1508
|
+
if key == "enableIntegrityMonitoring":
|
|
1509
|
+
suggest = "enable_integrity_monitoring"
|
|
1510
|
+
elif key == "enableSecureBoot":
|
|
1511
|
+
suggest = "enable_secure_boot"
|
|
1512
|
+
|
|
1513
|
+
if suggest:
|
|
1514
|
+
pulumi.log.warn(f"Key '{key}' not found in ElastigroupShieldedInstanceConfig. Access the value via the '{suggest}' property getter instead.")
|
|
1515
|
+
|
|
1516
|
+
def __getitem__(self, key: str) -> Any:
|
|
1517
|
+
ElastigroupShieldedInstanceConfig.__key_warning(key)
|
|
1518
|
+
return super().__getitem__(key)
|
|
1519
|
+
|
|
1520
|
+
def get(self, key: str, default = None) -> Any:
|
|
1521
|
+
ElastigroupShieldedInstanceConfig.__key_warning(key)
|
|
1522
|
+
return super().get(key, default)
|
|
1523
|
+
|
|
1524
|
+
def __init__(__self__, *,
|
|
1525
|
+
enable_integrity_monitoring: Optional[_builtins.bool] = None,
|
|
1526
|
+
enable_secure_boot: Optional[_builtins.bool] = None):
|
|
1527
|
+
"""
|
|
1528
|
+
:param _builtins.bool enable_integrity_monitoring: Default: false
|
|
1529
|
+
:param _builtins.bool enable_secure_boot: Default: false
|
|
1530
|
+
"""
|
|
1531
|
+
if enable_integrity_monitoring is not None:
|
|
1532
|
+
pulumi.set(__self__, "enable_integrity_monitoring", enable_integrity_monitoring)
|
|
1533
|
+
if enable_secure_boot is not None:
|
|
1534
|
+
pulumi.set(__self__, "enable_secure_boot", enable_secure_boot)
|
|
1535
|
+
|
|
1536
|
+
@_builtins.property
|
|
1537
|
+
@pulumi.getter(name="enableIntegrityMonitoring")
|
|
1538
|
+
def enable_integrity_monitoring(self) -> Optional[_builtins.bool]:
|
|
1539
|
+
"""
|
|
1540
|
+
Default: false
|
|
1541
|
+
"""
|
|
1542
|
+
return pulumi.get(self, "enable_integrity_monitoring")
|
|
1543
|
+
|
|
1544
|
+
@_builtins.property
|
|
1545
|
+
@pulumi.getter(name="enableSecureBoot")
|
|
1546
|
+
def enable_secure_boot(self) -> Optional[_builtins.bool]:
|
|
1547
|
+
"""
|
|
1548
|
+
Default: false
|
|
1549
|
+
"""
|
|
1550
|
+
return pulumi.get(self, "enable_secure_boot")
|
|
1551
|
+
|
|
1552
|
+
|
|
1312
1553
|
@pulumi.output_type
|
|
1313
1554
|
class ElastigroupSubnet(dict):
|
|
1314
1555
|
@staticmethod
|
|
@@ -1329,26 +1570,26 @@ class ElastigroupSubnet(dict):
|
|
|
1329
1570
|
return super().get(key, default)
|
|
1330
1571
|
|
|
1331
1572
|
def __init__(__self__, *,
|
|
1332
|
-
region: str,
|
|
1333
|
-
subnet_names: Sequence[str]):
|
|
1573
|
+
region: _builtins.str,
|
|
1574
|
+
subnet_names: Sequence[_builtins.str]):
|
|
1334
1575
|
"""
|
|
1335
|
-
:param str region: The region for the group of subnets.
|
|
1336
|
-
:param Sequence[str] subnet_names: The names of the subnets in the region.
|
|
1576
|
+
:param _builtins.str region: The region for the group of subnets.
|
|
1577
|
+
:param Sequence[_builtins.str] subnet_names: The names of the subnets in the region.
|
|
1337
1578
|
"""
|
|
1338
1579
|
pulumi.set(__self__, "region", region)
|
|
1339
1580
|
pulumi.set(__self__, "subnet_names", subnet_names)
|
|
1340
1581
|
|
|
1341
|
-
@property
|
|
1582
|
+
@_builtins.property
|
|
1342
1583
|
@pulumi.getter
|
|
1343
|
-
def region(self) -> str:
|
|
1584
|
+
def region(self) -> _builtins.str:
|
|
1344
1585
|
"""
|
|
1345
1586
|
The region for the group of subnets.
|
|
1346
1587
|
"""
|
|
1347
1588
|
return pulumi.get(self, "region")
|
|
1348
1589
|
|
|
1349
|
-
@property
|
|
1590
|
+
@_builtins.property
|
|
1350
1591
|
@pulumi.getter(name="subnetNames")
|
|
1351
|
-
def subnet_names(self) -> Sequence[str]:
|
|
1592
|
+
def subnet_names(self) -> Sequence[_builtins.str]:
|
|
1352
1593
|
"""
|
|
1353
1594
|
The names of the subnets in the region.
|
|
1354
1595
|
"""
|