pulumi-alicloud 3.70.0__py3-none-any.whl → 3.70.0a1733793116__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.
Potentially problematic release.
This version of pulumi-alicloud might be problematic. Click here for more details.
- pulumi_alicloud/__init__.py +0 -27
- pulumi_alicloud/arms/_inputs.py +0 -185
- pulumi_alicloud/arms/dispatch_rule.py +1 -70
- pulumi_alicloud/arms/get_dispatch_rules.py +2 -2
- pulumi_alicloud/arms/get_prometheis.py +2 -2
- pulumi_alicloud/arms/get_remote_writes.py +2 -2
- pulumi_alicloud/arms/outputs.py +11 -258
- pulumi_alicloud/cen/private_zone.py +69 -73
- pulumi_alicloud/cen/transit_router_multicast_domain_peer_member.py +2 -2
- pulumi_alicloud/cfg/rule.py +2 -2
- pulumi_alicloud/ess/_inputs.py +0 -54
- pulumi_alicloud/ess/outputs.py +0 -51
- pulumi_alicloud/ess/scaling_configuration.py +0 -47
- pulumi_alicloud/ess/scaling_group.py +0 -47
- pulumi_alicloud/fc/v3_trigger.py +0 -96
- pulumi_alicloud/kms/_inputs.py +5 -5
- pulumi_alicloud/kms/outputs.py +3 -3
- pulumi_alicloud/nas/access_group.py +2 -10
- pulumi_alicloud/nas/access_point.py +2 -10
- pulumi_alicloud/nas/fileset.py +2 -2
- pulumi_alicloud/oos/execution.py +10 -18
- pulumi_alicloud/oos/template.py +6 -14
- pulumi_alicloud/pai/__init__.py +0 -1
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/rdc/get_organizations.py +2 -12
- pulumi_alicloud/rdc/organization.py +2 -6
- pulumi_alicloud/vpc/__init__.py +0 -1
- {pulumi_alicloud-3.70.0.dist-info → pulumi_alicloud-3.70.0a1733793116.dist-info}/METADATA +3 -3
- {pulumi_alicloud-3.70.0.dist-info → pulumi_alicloud-3.70.0a1733793116.dist-info}/RECORD +31 -35
- pulumi_alicloud/live/__init__.py +0 -8
- pulumi_alicloud/live/caster.py +0 -1343
- pulumi_alicloud/pai/service.py +0 -501
- pulumi_alicloud/vpc/ipam_ipam_pool_allocation.py +0 -545
- {pulumi_alicloud-3.70.0.dist-info → pulumi_alicloud-3.70.0a1733793116.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.70.0.dist-info → pulumi_alicloud-3.70.0a1733793116.dist-info}/top_level.txt +0 -0
pulumi_alicloud/cfg/rule.py
CHANGED
|
@@ -821,7 +821,7 @@ class Rule(pulumi.CustomResource):
|
|
|
821
821
|
rule_name="contains-tag",
|
|
822
822
|
input_parameters={
|
|
823
823
|
"key1": "value1",
|
|
824
|
-
"key2": "
|
|
824
|
+
"key2": "key2",
|
|
825
825
|
})
|
|
826
826
|
```
|
|
827
827
|
|
|
@@ -893,7 +893,7 @@ class Rule(pulumi.CustomResource):
|
|
|
893
893
|
rule_name="contains-tag",
|
|
894
894
|
input_parameters={
|
|
895
895
|
"key1": "value1",
|
|
896
|
-
"key2": "
|
|
896
|
+
"key2": "key2",
|
|
897
897
|
})
|
|
898
898
|
```
|
|
899
899
|
|
pulumi_alicloud/ess/_inputs.py
CHANGED
|
@@ -47,8 +47,6 @@ __all__ = [
|
|
|
47
47
|
'EciScalingConfigurationVolumeArgsDict',
|
|
48
48
|
'EciScalingConfigurationVolumeConfigFileVolumeConfigFileToPathArgs',
|
|
49
49
|
'EciScalingConfigurationVolumeConfigFileVolumeConfigFileToPathArgsDict',
|
|
50
|
-
'ScalingConfigurationCustomPriorityArgs',
|
|
51
|
-
'ScalingConfigurationCustomPriorityArgsDict',
|
|
52
50
|
'ScalingConfigurationDataDiskArgs',
|
|
53
51
|
'ScalingConfigurationDataDiskArgsDict',
|
|
54
52
|
'ScalingConfigurationInstancePatternInfoArgs',
|
|
@@ -2392,58 +2390,6 @@ class EciScalingConfigurationVolumeConfigFileVolumeConfigFileToPathArgs:
|
|
|
2392
2390
|
pulumi.set(self, "path", value)
|
|
2393
2391
|
|
|
2394
2392
|
|
|
2395
|
-
if not MYPY:
|
|
2396
|
-
class ScalingConfigurationCustomPriorityArgsDict(TypedDict):
|
|
2397
|
-
instance_type: NotRequired[pulumi.Input[str]]
|
|
2398
|
-
"""
|
|
2399
|
-
This parameter takes effect only if you set Scaling Policy to Priority Policy and the instance type specified by CustomPriorities.N.InstanceType is contained in the scaling configuration.
|
|
2400
|
-
"""
|
|
2401
|
-
vswitch_id: NotRequired[pulumi.Input[str]]
|
|
2402
|
-
"""
|
|
2403
|
-
This parameter takes effect only if you set Scaling Policy to Priority Policy and the vSwitch specified by CustomPriorities.N.VswitchId is included in the vSwitch list of your scaling group.
|
|
2404
|
-
"""
|
|
2405
|
-
elif False:
|
|
2406
|
-
ScalingConfigurationCustomPriorityArgsDict: TypeAlias = Mapping[str, Any]
|
|
2407
|
-
|
|
2408
|
-
@pulumi.input_type
|
|
2409
|
-
class ScalingConfigurationCustomPriorityArgs:
|
|
2410
|
-
def __init__(__self__, *,
|
|
2411
|
-
instance_type: Optional[pulumi.Input[str]] = None,
|
|
2412
|
-
vswitch_id: Optional[pulumi.Input[str]] = None):
|
|
2413
|
-
"""
|
|
2414
|
-
:param pulumi.Input[str] instance_type: This parameter takes effect only if you set Scaling Policy to Priority Policy and the instance type specified by CustomPriorities.N.InstanceType is contained in the scaling configuration.
|
|
2415
|
-
:param pulumi.Input[str] vswitch_id: This parameter takes effect only if you set Scaling Policy to Priority Policy and the vSwitch specified by CustomPriorities.N.VswitchId is included in the vSwitch list of your scaling group.
|
|
2416
|
-
"""
|
|
2417
|
-
if instance_type is not None:
|
|
2418
|
-
pulumi.set(__self__, "instance_type", instance_type)
|
|
2419
|
-
if vswitch_id is not None:
|
|
2420
|
-
pulumi.set(__self__, "vswitch_id", vswitch_id)
|
|
2421
|
-
|
|
2422
|
-
@property
|
|
2423
|
-
@pulumi.getter(name="instanceType")
|
|
2424
|
-
def instance_type(self) -> Optional[pulumi.Input[str]]:
|
|
2425
|
-
"""
|
|
2426
|
-
This parameter takes effect only if you set Scaling Policy to Priority Policy and the instance type specified by CustomPriorities.N.InstanceType is contained in the scaling configuration.
|
|
2427
|
-
"""
|
|
2428
|
-
return pulumi.get(self, "instance_type")
|
|
2429
|
-
|
|
2430
|
-
@instance_type.setter
|
|
2431
|
-
def instance_type(self, value: Optional[pulumi.Input[str]]):
|
|
2432
|
-
pulumi.set(self, "instance_type", value)
|
|
2433
|
-
|
|
2434
|
-
@property
|
|
2435
|
-
@pulumi.getter(name="vswitchId")
|
|
2436
|
-
def vswitch_id(self) -> Optional[pulumi.Input[str]]:
|
|
2437
|
-
"""
|
|
2438
|
-
This parameter takes effect only if you set Scaling Policy to Priority Policy and the vSwitch specified by CustomPriorities.N.VswitchId is included in the vSwitch list of your scaling group.
|
|
2439
|
-
"""
|
|
2440
|
-
return pulumi.get(self, "vswitch_id")
|
|
2441
|
-
|
|
2442
|
-
@vswitch_id.setter
|
|
2443
|
-
def vswitch_id(self, value: Optional[pulumi.Input[str]]):
|
|
2444
|
-
pulumi.set(self, "vswitch_id", value)
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
2393
|
if not MYPY:
|
|
2448
2394
|
class ScalingConfigurationDataDiskArgsDict(TypedDict):
|
|
2449
2395
|
auto_snapshot_policy_id: NotRequired[pulumi.Input[str]]
|
pulumi_alicloud/ess/outputs.py
CHANGED
|
@@ -32,7 +32,6 @@ __all__ = [
|
|
|
32
32
|
'EciScalingConfigurationSecurityContextSysctl',
|
|
33
33
|
'EciScalingConfigurationVolume',
|
|
34
34
|
'EciScalingConfigurationVolumeConfigFileVolumeConfigFileToPath',
|
|
35
|
-
'ScalingConfigurationCustomPriority',
|
|
36
35
|
'ScalingConfigurationDataDisk',
|
|
37
36
|
'ScalingConfigurationInstancePatternInfo',
|
|
38
37
|
'ScalingConfigurationInstanceTypeOverride',
|
|
@@ -1710,56 +1709,6 @@ class EciScalingConfigurationVolumeConfigFileVolumeConfigFileToPath(dict):
|
|
|
1710
1709
|
return pulumi.get(self, "path")
|
|
1711
1710
|
|
|
1712
1711
|
|
|
1713
|
-
@pulumi.output_type
|
|
1714
|
-
class ScalingConfigurationCustomPriority(dict):
|
|
1715
|
-
@staticmethod
|
|
1716
|
-
def __key_warning(key: str):
|
|
1717
|
-
suggest = None
|
|
1718
|
-
if key == "instanceType":
|
|
1719
|
-
suggest = "instance_type"
|
|
1720
|
-
elif key == "vswitchId":
|
|
1721
|
-
suggest = "vswitch_id"
|
|
1722
|
-
|
|
1723
|
-
if suggest:
|
|
1724
|
-
pulumi.log.warn(f"Key '{key}' not found in ScalingConfigurationCustomPriority. Access the value via the '{suggest}' property getter instead.")
|
|
1725
|
-
|
|
1726
|
-
def __getitem__(self, key: str) -> Any:
|
|
1727
|
-
ScalingConfigurationCustomPriority.__key_warning(key)
|
|
1728
|
-
return super().__getitem__(key)
|
|
1729
|
-
|
|
1730
|
-
def get(self, key: str, default = None) -> Any:
|
|
1731
|
-
ScalingConfigurationCustomPriority.__key_warning(key)
|
|
1732
|
-
return super().get(key, default)
|
|
1733
|
-
|
|
1734
|
-
def __init__(__self__, *,
|
|
1735
|
-
instance_type: Optional[str] = None,
|
|
1736
|
-
vswitch_id: Optional[str] = None):
|
|
1737
|
-
"""
|
|
1738
|
-
:param str instance_type: This parameter takes effect only if you set Scaling Policy to Priority Policy and the instance type specified by CustomPriorities.N.InstanceType is contained in the scaling configuration.
|
|
1739
|
-
:param str vswitch_id: This parameter takes effect only if you set Scaling Policy to Priority Policy and the vSwitch specified by CustomPriorities.N.VswitchId is included in the vSwitch list of your scaling group.
|
|
1740
|
-
"""
|
|
1741
|
-
if instance_type is not None:
|
|
1742
|
-
pulumi.set(__self__, "instance_type", instance_type)
|
|
1743
|
-
if vswitch_id is not None:
|
|
1744
|
-
pulumi.set(__self__, "vswitch_id", vswitch_id)
|
|
1745
|
-
|
|
1746
|
-
@property
|
|
1747
|
-
@pulumi.getter(name="instanceType")
|
|
1748
|
-
def instance_type(self) -> Optional[str]:
|
|
1749
|
-
"""
|
|
1750
|
-
This parameter takes effect only if you set Scaling Policy to Priority Policy and the instance type specified by CustomPriorities.N.InstanceType is contained in the scaling configuration.
|
|
1751
|
-
"""
|
|
1752
|
-
return pulumi.get(self, "instance_type")
|
|
1753
|
-
|
|
1754
|
-
@property
|
|
1755
|
-
@pulumi.getter(name="vswitchId")
|
|
1756
|
-
def vswitch_id(self) -> Optional[str]:
|
|
1757
|
-
"""
|
|
1758
|
-
This parameter takes effect only if you set Scaling Policy to Priority Policy and the vSwitch specified by CustomPriorities.N.VswitchId is included in the vSwitch list of your scaling group.
|
|
1759
|
-
"""
|
|
1760
|
-
return pulumi.get(self, "vswitch_id")
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
1712
|
@pulumi.output_type
|
|
1764
1713
|
class ScalingConfigurationDataDisk(dict):
|
|
1765
1714
|
@staticmethod
|
|
@@ -24,7 +24,6 @@ class ScalingConfigurationArgs:
|
|
|
24
24
|
scaling_group_id: pulumi.Input[str],
|
|
25
25
|
active: Optional[pulumi.Input[bool]] = None,
|
|
26
26
|
credit_specification: Optional[pulumi.Input[str]] = None,
|
|
27
|
-
custom_priorities: Optional[pulumi.Input[Sequence[pulumi.Input['ScalingConfigurationCustomPriorityArgs']]]] = None,
|
|
28
27
|
data_disks: Optional[pulumi.Input[Sequence[pulumi.Input['ScalingConfigurationDataDiskArgs']]]] = None,
|
|
29
28
|
deletion_protection: Optional[pulumi.Input[bool]] = None,
|
|
30
29
|
enable: Optional[pulumi.Input[bool]] = None,
|
|
@@ -79,7 +78,6 @@ class ScalingConfigurationArgs:
|
|
|
79
78
|
:param pulumi.Input[str] scaling_group_id: ID of the scaling group of a scaling configuration.
|
|
80
79
|
:param pulumi.Input[bool] active: Whether active current scaling configuration in the specified scaling group. Default to `false`.
|
|
81
80
|
:param pulumi.Input[str] credit_specification: Performance mode of the t5 burstable instance. Valid values: 'Standard', 'Unlimited'.
|
|
82
|
-
:param pulumi.Input[Sequence[pulumi.Input['ScalingConfigurationCustomPriorityArgs']]] custom_priorities: You can use CustomPriorities to specify the priority of a custom ECS instance type + vSwitch combination. See `custom_priorities` below for details.
|
|
83
81
|
:param pulumi.Input[Sequence[pulumi.Input['ScalingConfigurationDataDiskArgs']]] data_disks: DataDisk mappings to attach to ecs instance. See `data_disk` below for details.
|
|
84
82
|
:param pulumi.Input[bool] deletion_protection: Specifies whether to enable the Release Protection feature for ECS instances. This parameter is applicable to only pay-as-you-go instances. You can use this parameter to specify whether an ECS instance can be directly released by using the ECS console or calling the DeleteInstance operation. Valid values: true, false. Default value: false.
|
|
85
83
|
:param pulumi.Input[bool] enable: Whether enable the specified scaling group(make it active) to which the current scaling configuration belongs.
|
|
@@ -151,8 +149,6 @@ class ScalingConfigurationArgs:
|
|
|
151
149
|
pulumi.set(__self__, "active", active)
|
|
152
150
|
if credit_specification is not None:
|
|
153
151
|
pulumi.set(__self__, "credit_specification", credit_specification)
|
|
154
|
-
if custom_priorities is not None:
|
|
155
|
-
pulumi.set(__self__, "custom_priorities", custom_priorities)
|
|
156
152
|
if data_disks is not None:
|
|
157
153
|
pulumi.set(__self__, "data_disks", data_disks)
|
|
158
154
|
if deletion_protection is not None:
|
|
@@ -294,18 +290,6 @@ class ScalingConfigurationArgs:
|
|
|
294
290
|
def credit_specification(self, value: Optional[pulumi.Input[str]]):
|
|
295
291
|
pulumi.set(self, "credit_specification", value)
|
|
296
292
|
|
|
297
|
-
@property
|
|
298
|
-
@pulumi.getter(name="customPriorities")
|
|
299
|
-
def custom_priorities(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ScalingConfigurationCustomPriorityArgs']]]]:
|
|
300
|
-
"""
|
|
301
|
-
You can use CustomPriorities to specify the priority of a custom ECS instance type + vSwitch combination. See `custom_priorities` below for details.
|
|
302
|
-
"""
|
|
303
|
-
return pulumi.get(self, "custom_priorities")
|
|
304
|
-
|
|
305
|
-
@custom_priorities.setter
|
|
306
|
-
def custom_priorities(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ScalingConfigurationCustomPriorityArgs']]]]):
|
|
307
|
-
pulumi.set(self, "custom_priorities", value)
|
|
308
|
-
|
|
309
293
|
@property
|
|
310
294
|
@pulumi.getter(name="dataDisks")
|
|
311
295
|
def data_disks(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ScalingConfigurationDataDiskArgs']]]]:
|
|
@@ -918,7 +902,6 @@ class _ScalingConfigurationState:
|
|
|
918
902
|
def __init__(__self__, *,
|
|
919
903
|
active: Optional[pulumi.Input[bool]] = None,
|
|
920
904
|
credit_specification: Optional[pulumi.Input[str]] = None,
|
|
921
|
-
custom_priorities: Optional[pulumi.Input[Sequence[pulumi.Input['ScalingConfigurationCustomPriorityArgs']]]] = None,
|
|
922
905
|
data_disks: Optional[pulumi.Input[Sequence[pulumi.Input['ScalingConfigurationDataDiskArgs']]]] = None,
|
|
923
906
|
deletion_protection: Optional[pulumi.Input[bool]] = None,
|
|
924
907
|
enable: Optional[pulumi.Input[bool]] = None,
|
|
@@ -973,7 +956,6 @@ class _ScalingConfigurationState:
|
|
|
973
956
|
Input properties used for looking up and filtering ScalingConfiguration resources.
|
|
974
957
|
:param pulumi.Input[bool] active: Whether active current scaling configuration in the specified scaling group. Default to `false`.
|
|
975
958
|
:param pulumi.Input[str] credit_specification: Performance mode of the t5 burstable instance. Valid values: 'Standard', 'Unlimited'.
|
|
976
|
-
:param pulumi.Input[Sequence[pulumi.Input['ScalingConfigurationCustomPriorityArgs']]] custom_priorities: You can use CustomPriorities to specify the priority of a custom ECS instance type + vSwitch combination. See `custom_priorities` below for details.
|
|
977
959
|
:param pulumi.Input[Sequence[pulumi.Input['ScalingConfigurationDataDiskArgs']]] data_disks: DataDisk mappings to attach to ecs instance. See `data_disk` below for details.
|
|
978
960
|
:param pulumi.Input[bool] deletion_protection: Specifies whether to enable the Release Protection feature for ECS instances. This parameter is applicable to only pay-as-you-go instances. You can use this parameter to specify whether an ECS instance can be directly released by using the ECS console or calling the DeleteInstance operation. Valid values: true, false. Default value: false.
|
|
979
961
|
:param pulumi.Input[bool] enable: Whether enable the specified scaling group(make it active) to which the current scaling configuration belongs.
|
|
@@ -1045,8 +1027,6 @@ class _ScalingConfigurationState:
|
|
|
1045
1027
|
pulumi.set(__self__, "active", active)
|
|
1046
1028
|
if credit_specification is not None:
|
|
1047
1029
|
pulumi.set(__self__, "credit_specification", credit_specification)
|
|
1048
|
-
if custom_priorities is not None:
|
|
1049
|
-
pulumi.set(__self__, "custom_priorities", custom_priorities)
|
|
1050
1030
|
if data_disks is not None:
|
|
1051
1031
|
pulumi.set(__self__, "data_disks", data_disks)
|
|
1052
1032
|
if deletion_protection is not None:
|
|
@@ -1178,18 +1158,6 @@ class _ScalingConfigurationState:
|
|
|
1178
1158
|
def credit_specification(self, value: Optional[pulumi.Input[str]]):
|
|
1179
1159
|
pulumi.set(self, "credit_specification", value)
|
|
1180
1160
|
|
|
1181
|
-
@property
|
|
1182
|
-
@pulumi.getter(name="customPriorities")
|
|
1183
|
-
def custom_priorities(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ScalingConfigurationCustomPriorityArgs']]]]:
|
|
1184
|
-
"""
|
|
1185
|
-
You can use CustomPriorities to specify the priority of a custom ECS instance type + vSwitch combination. See `custom_priorities` below for details.
|
|
1186
|
-
"""
|
|
1187
|
-
return pulumi.get(self, "custom_priorities")
|
|
1188
|
-
|
|
1189
|
-
@custom_priorities.setter
|
|
1190
|
-
def custom_priorities(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ScalingConfigurationCustomPriorityArgs']]]]):
|
|
1191
|
-
pulumi.set(self, "custom_priorities", value)
|
|
1192
|
-
|
|
1193
1161
|
@property
|
|
1194
1162
|
@pulumi.getter(name="dataDisks")
|
|
1195
1163
|
def data_disks(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ScalingConfigurationDataDiskArgs']]]]:
|
|
@@ -1816,7 +1784,6 @@ class ScalingConfiguration(pulumi.CustomResource):
|
|
|
1816
1784
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
1817
1785
|
active: Optional[pulumi.Input[bool]] = None,
|
|
1818
1786
|
credit_specification: Optional[pulumi.Input[str]] = None,
|
|
1819
|
-
custom_priorities: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ScalingConfigurationCustomPriorityArgs', 'ScalingConfigurationCustomPriorityArgsDict']]]]] = None,
|
|
1820
1787
|
data_disks: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ScalingConfigurationDataDiskArgs', 'ScalingConfigurationDataDiskArgsDict']]]]] = None,
|
|
1821
1788
|
deletion_protection: Optional[pulumi.Input[bool]] = None,
|
|
1822
1789
|
enable: Optional[pulumi.Input[bool]] = None,
|
|
@@ -1953,7 +1920,6 @@ class ScalingConfiguration(pulumi.CustomResource):
|
|
|
1953
1920
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
1954
1921
|
:param pulumi.Input[bool] active: Whether active current scaling configuration in the specified scaling group. Default to `false`.
|
|
1955
1922
|
:param pulumi.Input[str] credit_specification: Performance mode of the t5 burstable instance. Valid values: 'Standard', 'Unlimited'.
|
|
1956
|
-
:param pulumi.Input[Sequence[pulumi.Input[Union['ScalingConfigurationCustomPriorityArgs', 'ScalingConfigurationCustomPriorityArgsDict']]]] custom_priorities: You can use CustomPriorities to specify the priority of a custom ECS instance type + vSwitch combination. See `custom_priorities` below for details.
|
|
1957
1923
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ScalingConfigurationDataDiskArgs', 'ScalingConfigurationDataDiskArgsDict']]]] data_disks: DataDisk mappings to attach to ecs instance. See `data_disk` below for details.
|
|
1958
1924
|
:param pulumi.Input[bool] deletion_protection: Specifies whether to enable the Release Protection feature for ECS instances. This parameter is applicable to only pay-as-you-go instances. You can use this parameter to specify whether an ECS instance can be directly released by using the ECS console or calling the DeleteInstance operation. Valid values: true, false. Default value: false.
|
|
1959
1925
|
:param pulumi.Input[bool] enable: Whether enable the specified scaling group(make it active) to which the current scaling configuration belongs.
|
|
@@ -2125,7 +2091,6 @@ class ScalingConfiguration(pulumi.CustomResource):
|
|
|
2125
2091
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
2126
2092
|
active: Optional[pulumi.Input[bool]] = None,
|
|
2127
2093
|
credit_specification: Optional[pulumi.Input[str]] = None,
|
|
2128
|
-
custom_priorities: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ScalingConfigurationCustomPriorityArgs', 'ScalingConfigurationCustomPriorityArgsDict']]]]] = None,
|
|
2129
2094
|
data_disks: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ScalingConfigurationDataDiskArgs', 'ScalingConfigurationDataDiskArgsDict']]]]] = None,
|
|
2130
2095
|
deletion_protection: Optional[pulumi.Input[bool]] = None,
|
|
2131
2096
|
enable: Optional[pulumi.Input[bool]] = None,
|
|
@@ -2187,7 +2152,6 @@ class ScalingConfiguration(pulumi.CustomResource):
|
|
|
2187
2152
|
|
|
2188
2153
|
__props__.__dict__["active"] = active
|
|
2189
2154
|
__props__.__dict__["credit_specification"] = credit_specification
|
|
2190
|
-
__props__.__dict__["custom_priorities"] = custom_priorities
|
|
2191
2155
|
__props__.__dict__["data_disks"] = data_disks
|
|
2192
2156
|
__props__.__dict__["deletion_protection"] = deletion_protection
|
|
2193
2157
|
__props__.__dict__["enable"] = enable
|
|
@@ -2252,7 +2216,6 @@ class ScalingConfiguration(pulumi.CustomResource):
|
|
|
2252
2216
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
2253
2217
|
active: Optional[pulumi.Input[bool]] = None,
|
|
2254
2218
|
credit_specification: Optional[pulumi.Input[str]] = None,
|
|
2255
|
-
custom_priorities: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ScalingConfigurationCustomPriorityArgs', 'ScalingConfigurationCustomPriorityArgsDict']]]]] = None,
|
|
2256
2219
|
data_disks: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ScalingConfigurationDataDiskArgs', 'ScalingConfigurationDataDiskArgsDict']]]]] = None,
|
|
2257
2220
|
deletion_protection: Optional[pulumi.Input[bool]] = None,
|
|
2258
2221
|
enable: Optional[pulumi.Input[bool]] = None,
|
|
@@ -2312,7 +2275,6 @@ class ScalingConfiguration(pulumi.CustomResource):
|
|
|
2312
2275
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
2313
2276
|
:param pulumi.Input[bool] active: Whether active current scaling configuration in the specified scaling group. Default to `false`.
|
|
2314
2277
|
:param pulumi.Input[str] credit_specification: Performance mode of the t5 burstable instance. Valid values: 'Standard', 'Unlimited'.
|
|
2315
|
-
:param pulumi.Input[Sequence[pulumi.Input[Union['ScalingConfigurationCustomPriorityArgs', 'ScalingConfigurationCustomPriorityArgsDict']]]] custom_priorities: You can use CustomPriorities to specify the priority of a custom ECS instance type + vSwitch combination. See `custom_priorities` below for details.
|
|
2316
2278
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ScalingConfigurationDataDiskArgs', 'ScalingConfigurationDataDiskArgsDict']]]] data_disks: DataDisk mappings to attach to ecs instance. See `data_disk` below for details.
|
|
2317
2279
|
:param pulumi.Input[bool] deletion_protection: Specifies whether to enable the Release Protection feature for ECS instances. This parameter is applicable to only pay-as-you-go instances. You can use this parameter to specify whether an ECS instance can be directly released by using the ECS console or calling the DeleteInstance operation. Valid values: true, false. Default value: false.
|
|
2318
2280
|
:param pulumi.Input[bool] enable: Whether enable the specified scaling group(make it active) to which the current scaling configuration belongs.
|
|
@@ -2386,7 +2348,6 @@ class ScalingConfiguration(pulumi.CustomResource):
|
|
|
2386
2348
|
|
|
2387
2349
|
__props__.__dict__["active"] = active
|
|
2388
2350
|
__props__.__dict__["credit_specification"] = credit_specification
|
|
2389
|
-
__props__.__dict__["custom_priorities"] = custom_priorities
|
|
2390
2351
|
__props__.__dict__["data_disks"] = data_disks
|
|
2391
2352
|
__props__.__dict__["deletion_protection"] = deletion_protection
|
|
2392
2353
|
__props__.__dict__["enable"] = enable
|
|
@@ -2455,14 +2416,6 @@ class ScalingConfiguration(pulumi.CustomResource):
|
|
|
2455
2416
|
"""
|
|
2456
2417
|
return pulumi.get(self, "credit_specification")
|
|
2457
2418
|
|
|
2458
|
-
@property
|
|
2459
|
-
@pulumi.getter(name="customPriorities")
|
|
2460
|
-
def custom_priorities(self) -> pulumi.Output[Optional[Sequence['outputs.ScalingConfigurationCustomPriority']]]:
|
|
2461
|
-
"""
|
|
2462
|
-
You can use CustomPriorities to specify the priority of a custom ECS instance type + vSwitch combination. See `custom_priorities` below for details.
|
|
2463
|
-
"""
|
|
2464
|
-
return pulumi.get(self, "custom_priorities")
|
|
2465
|
-
|
|
2466
2419
|
@property
|
|
2467
2420
|
@pulumi.getter(name="dataDisks")
|
|
2468
2421
|
def data_disks(self) -> pulumi.Output[Optional[Sequence['outputs.ScalingConfigurationDataDisk']]]:
|
|
@@ -51,7 +51,6 @@ class ScalingGroupArgs:
|
|
|
51
51
|
spot_allocation_strategy: Optional[pulumi.Input[str]] = None,
|
|
52
52
|
spot_instance_pools: Optional[pulumi.Input[int]] = None,
|
|
53
53
|
spot_instance_remedy: Optional[pulumi.Input[bool]] = None,
|
|
54
|
-
stop_instance_timeout: Optional[pulumi.Input[int]] = None,
|
|
55
54
|
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
56
55
|
vswitch_id: Optional[pulumi.Input[str]] = None,
|
|
57
56
|
vswitch_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
@@ -100,7 +99,6 @@ class ScalingGroupArgs:
|
|
|
100
99
|
:param pulumi.Input[str] spot_allocation_strategy: The allocation policy of preemptible instances. You can use this parameter to individually specify the allocation policy for preemptible instances. This parameter takes effect only if you set MultiAZPolicy to COMPOSABLE.
|
|
101
100
|
:param pulumi.Input[int] spot_instance_pools: The number of Spot pools to use to allocate your Spot capacity. The Spot pools is composed of instance types of lowest price.
|
|
102
101
|
:param pulumi.Input[bool] spot_instance_remedy: Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.
|
|
103
|
-
:param pulumi.Input[int] stop_instance_timeout: The period of time required by the ECS instance to enter the Stopped state. Unit: seconds. Valid values: 30 to 240.
|
|
104
102
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource.
|
|
105
103
|
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
|
|
106
104
|
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
|
|
@@ -165,8 +163,6 @@ class ScalingGroupArgs:
|
|
|
165
163
|
pulumi.set(__self__, "spot_instance_pools", spot_instance_pools)
|
|
166
164
|
if spot_instance_remedy is not None:
|
|
167
165
|
pulumi.set(__self__, "spot_instance_remedy", spot_instance_remedy)
|
|
168
|
-
if stop_instance_timeout is not None:
|
|
169
|
-
pulumi.set(__self__, "stop_instance_timeout", stop_instance_timeout)
|
|
170
166
|
if tags is not None:
|
|
171
167
|
pulumi.set(__self__, "tags", tags)
|
|
172
168
|
if vswitch_id is not None:
|
|
@@ -550,18 +546,6 @@ class ScalingGroupArgs:
|
|
|
550
546
|
def spot_instance_remedy(self, value: Optional[pulumi.Input[bool]]):
|
|
551
547
|
pulumi.set(self, "spot_instance_remedy", value)
|
|
552
548
|
|
|
553
|
-
@property
|
|
554
|
-
@pulumi.getter(name="stopInstanceTimeout")
|
|
555
|
-
def stop_instance_timeout(self) -> Optional[pulumi.Input[int]]:
|
|
556
|
-
"""
|
|
557
|
-
The period of time required by the ECS instance to enter the Stopped state. Unit: seconds. Valid values: 30 to 240.
|
|
558
|
-
"""
|
|
559
|
-
return pulumi.get(self, "stop_instance_timeout")
|
|
560
|
-
|
|
561
|
-
@stop_instance_timeout.setter
|
|
562
|
-
def stop_instance_timeout(self, value: Optional[pulumi.Input[int]]):
|
|
563
|
-
pulumi.set(self, "stop_instance_timeout", value)
|
|
564
|
-
|
|
565
549
|
@property
|
|
566
550
|
@pulumi.getter
|
|
567
551
|
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
@@ -635,7 +619,6 @@ class _ScalingGroupState:
|
|
|
635
619
|
spot_allocation_strategy: Optional[pulumi.Input[str]] = None,
|
|
636
620
|
spot_instance_pools: Optional[pulumi.Input[int]] = None,
|
|
637
621
|
spot_instance_remedy: Optional[pulumi.Input[bool]] = None,
|
|
638
|
-
stop_instance_timeout: Optional[pulumi.Input[int]] = None,
|
|
639
622
|
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
640
623
|
vswitch_id: Optional[pulumi.Input[str]] = None,
|
|
641
624
|
vswitch_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
@@ -684,7 +667,6 @@ class _ScalingGroupState:
|
|
|
684
667
|
:param pulumi.Input[str] spot_allocation_strategy: The allocation policy of preemptible instances. You can use this parameter to individually specify the allocation policy for preemptible instances. This parameter takes effect only if you set MultiAZPolicy to COMPOSABLE.
|
|
685
668
|
:param pulumi.Input[int] spot_instance_pools: The number of Spot pools to use to allocate your Spot capacity. The Spot pools is composed of instance types of lowest price.
|
|
686
669
|
:param pulumi.Input[bool] spot_instance_remedy: Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.
|
|
687
|
-
:param pulumi.Input[int] stop_instance_timeout: The period of time required by the ECS instance to enter the Stopped state. Unit: seconds. Valid values: 30 to 240.
|
|
688
670
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource.
|
|
689
671
|
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
|
|
690
672
|
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
|
|
@@ -751,8 +733,6 @@ class _ScalingGroupState:
|
|
|
751
733
|
pulumi.set(__self__, "spot_instance_pools", spot_instance_pools)
|
|
752
734
|
if spot_instance_remedy is not None:
|
|
753
735
|
pulumi.set(__self__, "spot_instance_remedy", spot_instance_remedy)
|
|
754
|
-
if stop_instance_timeout is not None:
|
|
755
|
-
pulumi.set(__self__, "stop_instance_timeout", stop_instance_timeout)
|
|
756
736
|
if tags is not None:
|
|
757
737
|
pulumi.set(__self__, "tags", tags)
|
|
758
738
|
if vswitch_id is not None:
|
|
@@ -1136,18 +1116,6 @@ class _ScalingGroupState:
|
|
|
1136
1116
|
def spot_instance_remedy(self, value: Optional[pulumi.Input[bool]]):
|
|
1137
1117
|
pulumi.set(self, "spot_instance_remedy", value)
|
|
1138
1118
|
|
|
1139
|
-
@property
|
|
1140
|
-
@pulumi.getter(name="stopInstanceTimeout")
|
|
1141
|
-
def stop_instance_timeout(self) -> Optional[pulumi.Input[int]]:
|
|
1142
|
-
"""
|
|
1143
|
-
The period of time required by the ECS instance to enter the Stopped state. Unit: seconds. Valid values: 30 to 240.
|
|
1144
|
-
"""
|
|
1145
|
-
return pulumi.get(self, "stop_instance_timeout")
|
|
1146
|
-
|
|
1147
|
-
@stop_instance_timeout.setter
|
|
1148
|
-
def stop_instance_timeout(self, value: Optional[pulumi.Input[int]]):
|
|
1149
|
-
pulumi.set(self, "stop_instance_timeout", value)
|
|
1150
|
-
|
|
1151
1119
|
@property
|
|
1152
1120
|
@pulumi.getter
|
|
1153
1121
|
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
@@ -1223,7 +1191,6 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
1223
1191
|
spot_allocation_strategy: Optional[pulumi.Input[str]] = None,
|
|
1224
1192
|
spot_instance_pools: Optional[pulumi.Input[int]] = None,
|
|
1225
1193
|
spot_instance_remedy: Optional[pulumi.Input[bool]] = None,
|
|
1226
|
-
stop_instance_timeout: Optional[pulumi.Input[int]] = None,
|
|
1227
1194
|
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
1228
1195
|
vswitch_id: Optional[pulumi.Input[str]] = None,
|
|
1229
1196
|
vswitch_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
@@ -1360,7 +1327,6 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
1360
1327
|
:param pulumi.Input[str] spot_allocation_strategy: The allocation policy of preemptible instances. You can use this parameter to individually specify the allocation policy for preemptible instances. This parameter takes effect only if you set MultiAZPolicy to COMPOSABLE.
|
|
1361
1328
|
:param pulumi.Input[int] spot_instance_pools: The number of Spot pools to use to allocate your Spot capacity. The Spot pools is composed of instance types of lowest price.
|
|
1362
1329
|
:param pulumi.Input[bool] spot_instance_remedy: Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.
|
|
1363
|
-
:param pulumi.Input[int] stop_instance_timeout: The period of time required by the ECS instance to enter the Stopped state. Unit: seconds. Valid values: 30 to 240.
|
|
1364
1330
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource.
|
|
1365
1331
|
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
|
|
1366
1332
|
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
|
|
@@ -1505,7 +1471,6 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
1505
1471
|
spot_allocation_strategy: Optional[pulumi.Input[str]] = None,
|
|
1506
1472
|
spot_instance_pools: Optional[pulumi.Input[int]] = None,
|
|
1507
1473
|
spot_instance_remedy: Optional[pulumi.Input[bool]] = None,
|
|
1508
|
-
stop_instance_timeout: Optional[pulumi.Input[int]] = None,
|
|
1509
1474
|
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
1510
1475
|
vswitch_id: Optional[pulumi.Input[str]] = None,
|
|
1511
1476
|
vswitch_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
@@ -1552,7 +1517,6 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
1552
1517
|
__props__.__dict__["spot_allocation_strategy"] = spot_allocation_strategy
|
|
1553
1518
|
__props__.__dict__["spot_instance_pools"] = spot_instance_pools
|
|
1554
1519
|
__props__.__dict__["spot_instance_remedy"] = spot_instance_remedy
|
|
1555
|
-
__props__.__dict__["stop_instance_timeout"] = stop_instance_timeout
|
|
1556
1520
|
__props__.__dict__["tags"] = tags
|
|
1557
1521
|
__props__.__dict__["vswitch_id"] = vswitch_id
|
|
1558
1522
|
__props__.__dict__["vswitch_ids"] = vswitch_ids
|
|
@@ -1596,7 +1560,6 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
1596
1560
|
spot_allocation_strategy: Optional[pulumi.Input[str]] = None,
|
|
1597
1561
|
spot_instance_pools: Optional[pulumi.Input[int]] = None,
|
|
1598
1562
|
spot_instance_remedy: Optional[pulumi.Input[bool]] = None,
|
|
1599
|
-
stop_instance_timeout: Optional[pulumi.Input[int]] = None,
|
|
1600
1563
|
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
1601
1564
|
vswitch_id: Optional[pulumi.Input[str]] = None,
|
|
1602
1565
|
vswitch_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None) -> 'ScalingGroup':
|
|
@@ -1650,7 +1613,6 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
1650
1613
|
:param pulumi.Input[str] spot_allocation_strategy: The allocation policy of preemptible instances. You can use this parameter to individually specify the allocation policy for preemptible instances. This parameter takes effect only if you set MultiAZPolicy to COMPOSABLE.
|
|
1651
1614
|
:param pulumi.Input[int] spot_instance_pools: The number of Spot pools to use to allocate your Spot capacity. The Spot pools is composed of instance types of lowest price.
|
|
1652
1615
|
:param pulumi.Input[bool] spot_instance_remedy: Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.
|
|
1653
|
-
:param pulumi.Input[int] stop_instance_timeout: The period of time required by the ECS instance to enter the Stopped state. Unit: seconds. Valid values: 30 to 240.
|
|
1654
1616
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource.
|
|
1655
1617
|
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
|
|
1656
1618
|
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
|
|
@@ -1691,7 +1653,6 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
1691
1653
|
__props__.__dict__["spot_allocation_strategy"] = spot_allocation_strategy
|
|
1692
1654
|
__props__.__dict__["spot_instance_pools"] = spot_instance_pools
|
|
1693
1655
|
__props__.__dict__["spot_instance_remedy"] = spot_instance_remedy
|
|
1694
|
-
__props__.__dict__["stop_instance_timeout"] = stop_instance_timeout
|
|
1695
1656
|
__props__.__dict__["tags"] = tags
|
|
1696
1657
|
__props__.__dict__["vswitch_id"] = vswitch_id
|
|
1697
1658
|
__props__.__dict__["vswitch_ids"] = vswitch_ids
|
|
@@ -1950,14 +1911,6 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
1950
1911
|
"""
|
|
1951
1912
|
return pulumi.get(self, "spot_instance_remedy")
|
|
1952
1913
|
|
|
1953
|
-
@property
|
|
1954
|
-
@pulumi.getter(name="stopInstanceTimeout")
|
|
1955
|
-
def stop_instance_timeout(self) -> pulumi.Output[Optional[int]]:
|
|
1956
|
-
"""
|
|
1957
|
-
The period of time required by the ECS instance to enter the Stopped state. Unit: seconds. Valid values: 30 to 240.
|
|
1958
|
-
"""
|
|
1959
|
-
return pulumi.get(self, "stop_instance_timeout")
|
|
1960
|
-
|
|
1961
1914
|
@property
|
|
1962
1915
|
@pulumi.getter
|
|
1963
1916
|
def tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
pulumi_alicloud/fc/v3_trigger.py
CHANGED
|
@@ -457,54 +457,6 @@ class V3Trigger(pulumi.CustomResource):
|
|
|
457
457
|
function_name=function.function_name)
|
|
458
458
|
```
|
|
459
459
|
|
|
460
|
-
HTTP Trigger
|
|
461
|
-
|
|
462
|
-
```python
|
|
463
|
-
import pulumi
|
|
464
|
-
import json
|
|
465
|
-
import pulumi_alicloud as alicloud
|
|
466
|
-
|
|
467
|
-
config = pulumi.Config()
|
|
468
|
-
name = config.get("name")
|
|
469
|
-
if name is None:
|
|
470
|
-
name = "terraform-example"
|
|
471
|
-
function_name = config.get("functionName")
|
|
472
|
-
if function_name is None:
|
|
473
|
-
function_name = "TerraformTriggerResourceAPI"
|
|
474
|
-
trigger_name = config.get("triggerName")
|
|
475
|
-
if trigger_name is None:
|
|
476
|
-
trigger_name = "TerraformTrigger_HTTP"
|
|
477
|
-
function = alicloud.fc.V3Function("function",
|
|
478
|
-
memory_size=512,
|
|
479
|
-
cpu=0.5,
|
|
480
|
-
handler="index.Handler",
|
|
481
|
-
code={
|
|
482
|
-
"zip_file": "UEsDBBQACAAIAAAAAAAAAAAAAAAAAAAAAAAIAAAAaW5kZXgucHmEkEFKxEAQRfd9ig9ZTCJOooIwDMwNXLqXnnQlaalUhU5lRj2KZ/FOXkESGR114bJ/P/7jV4b1xRq1hijtFpM1682cuNgPmgysbRulPT0fRxXnMtwrSPyeCdYRokSLnuMLJTTkbUqEvDMbxm1VdcRD6Tk+T1LW2ldB66knsYdA5iNX17ebm6tN2VnPhcswMPmREPuBacb+CiapLarAj9gT6/H97dVlCNScY3mtYvRkxdZlwDKDEnanPWVLdrdkeXEGlFEazVdfPVHaVeHc3N15CUwppwOJXeK7HshAB8NuOU7J6sP4SRXuH/EvbUfMiqMmDqv5M5FNSfAj/wgAAP//UEsHCPl//NYAAQAArwEAAFBLAQIUABQACAAIAAAAAAD5f/zWAAEAAK8BAAAIAAAAAAAAAAAAAAAAAAAAAABpbmRleC5weVBLBQYAAAAAAQABADYAAAA2AQAAAAA=",
|
|
483
|
-
},
|
|
484
|
-
function_name=name,
|
|
485
|
-
runtime="python3.9",
|
|
486
|
-
disk_size=512,
|
|
487
|
-
log_config={
|
|
488
|
-
"log_begin_rule": "None",
|
|
489
|
-
})
|
|
490
|
-
current = alicloud.get_account()
|
|
491
|
-
default = alicloud.fc.V3Trigger("default",
|
|
492
|
-
trigger_type="http",
|
|
493
|
-
trigger_name=name,
|
|
494
|
-
description="create",
|
|
495
|
-
qualifier="LATEST",
|
|
496
|
-
trigger_config=json.dumps({
|
|
497
|
-
"authType": "anonymous",
|
|
498
|
-
"methods": [
|
|
499
|
-
"GET",
|
|
500
|
-
"POST",
|
|
501
|
-
],
|
|
502
|
-
}),
|
|
503
|
-
function_name=function.function_name)
|
|
504
|
-
pulumi.export("outputCalicloudFcv3TriggerInternet", alicloud_fcv3_trigger["default"]["httpTrigger"][0]["urlInternet"])
|
|
505
|
-
pulumi.export("outputCalicloudFcv3TriggerIntranet", alicloud_fcv3_trigger["default"]["httpTrigger"][0]["urlIntranet"])
|
|
506
|
-
```
|
|
507
|
-
|
|
508
460
|
## Import
|
|
509
461
|
|
|
510
462
|
FCV3 Trigger can be imported using the id, e.g.
|
|
@@ -590,54 +542,6 @@ class V3Trigger(pulumi.CustomResource):
|
|
|
590
542
|
function_name=function.function_name)
|
|
591
543
|
```
|
|
592
544
|
|
|
593
|
-
HTTP Trigger
|
|
594
|
-
|
|
595
|
-
```python
|
|
596
|
-
import pulumi
|
|
597
|
-
import json
|
|
598
|
-
import pulumi_alicloud as alicloud
|
|
599
|
-
|
|
600
|
-
config = pulumi.Config()
|
|
601
|
-
name = config.get("name")
|
|
602
|
-
if name is None:
|
|
603
|
-
name = "terraform-example"
|
|
604
|
-
function_name = config.get("functionName")
|
|
605
|
-
if function_name is None:
|
|
606
|
-
function_name = "TerraformTriggerResourceAPI"
|
|
607
|
-
trigger_name = config.get("triggerName")
|
|
608
|
-
if trigger_name is None:
|
|
609
|
-
trigger_name = "TerraformTrigger_HTTP"
|
|
610
|
-
function = alicloud.fc.V3Function("function",
|
|
611
|
-
memory_size=512,
|
|
612
|
-
cpu=0.5,
|
|
613
|
-
handler="index.Handler",
|
|
614
|
-
code={
|
|
615
|
-
"zip_file": "UEsDBBQACAAIAAAAAAAAAAAAAAAAAAAAAAAIAAAAaW5kZXgucHmEkEFKxEAQRfd9ig9ZTCJOooIwDMwNXLqXnnQlaalUhU5lRj2KZ/FOXkESGR114bJ/P/7jV4b1xRq1hijtFpM1682cuNgPmgysbRulPT0fRxXnMtwrSPyeCdYRokSLnuMLJTTkbUqEvDMbxm1VdcRD6Tk+T1LW2ldB66knsYdA5iNX17ebm6tN2VnPhcswMPmREPuBacb+CiapLarAj9gT6/H97dVlCNScY3mtYvRkxdZlwDKDEnanPWVLdrdkeXEGlFEazVdfPVHaVeHc3N15CUwppwOJXeK7HshAB8NuOU7J6sP4SRXuH/EvbUfMiqMmDqv5M5FNSfAj/wgAAP//UEsHCPl//NYAAQAArwEAAFBLAQIUABQACAAIAAAAAAD5f/zWAAEAAK8BAAAIAAAAAAAAAAAAAAAAAAAAAABpbmRleC5weVBLBQYAAAAAAQABADYAAAA2AQAAAAA=",
|
|
616
|
-
},
|
|
617
|
-
function_name=name,
|
|
618
|
-
runtime="python3.9",
|
|
619
|
-
disk_size=512,
|
|
620
|
-
log_config={
|
|
621
|
-
"log_begin_rule": "None",
|
|
622
|
-
})
|
|
623
|
-
current = alicloud.get_account()
|
|
624
|
-
default = alicloud.fc.V3Trigger("default",
|
|
625
|
-
trigger_type="http",
|
|
626
|
-
trigger_name=name,
|
|
627
|
-
description="create",
|
|
628
|
-
qualifier="LATEST",
|
|
629
|
-
trigger_config=json.dumps({
|
|
630
|
-
"authType": "anonymous",
|
|
631
|
-
"methods": [
|
|
632
|
-
"GET",
|
|
633
|
-
"POST",
|
|
634
|
-
],
|
|
635
|
-
}),
|
|
636
|
-
function_name=function.function_name)
|
|
637
|
-
pulumi.export("outputCalicloudFcv3TriggerInternet", alicloud_fcv3_trigger["default"]["httpTrigger"][0]["urlInternet"])
|
|
638
|
-
pulumi.export("outputCalicloudFcv3TriggerIntranet", alicloud_fcv3_trigger["default"]["httpTrigger"][0]["urlIntranet"])
|
|
639
|
-
```
|
|
640
|
-
|
|
641
545
|
## Import
|
|
642
546
|
|
|
643
547
|
FCV3 Trigger can be imported using the id, e.g.
|
pulumi_alicloud/kms/_inputs.py
CHANGED
|
@@ -31,7 +31,7 @@ if not MYPY:
|
|
|
31
31
|
"""
|
|
32
32
|
VPC ID.
|
|
33
33
|
"""
|
|
34
|
-
vpc_owner_id: NotRequired[pulumi.Input[
|
|
34
|
+
vpc_owner_id: NotRequired[pulumi.Input[int]]
|
|
35
35
|
"""
|
|
36
36
|
VPC owner root user ID.
|
|
37
37
|
"""
|
|
@@ -47,12 +47,12 @@ class InstanceBindVpcArgs:
|
|
|
47
47
|
def __init__(__self__, *,
|
|
48
48
|
region_id: Optional[pulumi.Input[str]] = None,
|
|
49
49
|
vpc_id: Optional[pulumi.Input[str]] = None,
|
|
50
|
-
vpc_owner_id: Optional[pulumi.Input[
|
|
50
|
+
vpc_owner_id: Optional[pulumi.Input[int]] = None,
|
|
51
51
|
vswitch_id: Optional[pulumi.Input[str]] = None):
|
|
52
52
|
"""
|
|
53
53
|
:param pulumi.Input[str] region_id: region id.
|
|
54
54
|
:param pulumi.Input[str] vpc_id: VPC ID.
|
|
55
|
-
:param pulumi.Input[
|
|
55
|
+
:param pulumi.Input[int] vpc_owner_id: VPC owner root user ID.
|
|
56
56
|
:param pulumi.Input[str] vswitch_id: vswitch id.
|
|
57
57
|
"""
|
|
58
58
|
if region_id is not None:
|
|
@@ -90,14 +90,14 @@ class InstanceBindVpcArgs:
|
|
|
90
90
|
|
|
91
91
|
@property
|
|
92
92
|
@pulumi.getter(name="vpcOwnerId")
|
|
93
|
-
def vpc_owner_id(self) -> Optional[pulumi.Input[
|
|
93
|
+
def vpc_owner_id(self) -> Optional[pulumi.Input[int]]:
|
|
94
94
|
"""
|
|
95
95
|
VPC owner root user ID.
|
|
96
96
|
"""
|
|
97
97
|
return pulumi.get(self, "vpc_owner_id")
|
|
98
98
|
|
|
99
99
|
@vpc_owner_id.setter
|
|
100
|
-
def vpc_owner_id(self, value: Optional[pulumi.Input[
|
|
100
|
+
def vpc_owner_id(self, value: Optional[pulumi.Input[int]]):
|
|
101
101
|
pulumi.set(self, "vpc_owner_id", value)
|
|
102
102
|
|
|
103
103
|
@property
|
pulumi_alicloud/kms/outputs.py
CHANGED
|
@@ -51,12 +51,12 @@ class InstanceBindVpc(dict):
|
|
|
51
51
|
def __init__(__self__, *,
|
|
52
52
|
region_id: Optional[str] = None,
|
|
53
53
|
vpc_id: Optional[str] = None,
|
|
54
|
-
vpc_owner_id: Optional[
|
|
54
|
+
vpc_owner_id: Optional[int] = None,
|
|
55
55
|
vswitch_id: Optional[str] = None):
|
|
56
56
|
"""
|
|
57
57
|
:param str region_id: region id.
|
|
58
58
|
:param str vpc_id: VPC ID.
|
|
59
|
-
:param
|
|
59
|
+
:param int vpc_owner_id: VPC owner root user ID.
|
|
60
60
|
:param str vswitch_id: vswitch id.
|
|
61
61
|
"""
|
|
62
62
|
if region_id is not None:
|
|
@@ -86,7 +86,7 @@ class InstanceBindVpc(dict):
|
|
|
86
86
|
|
|
87
87
|
@property
|
|
88
88
|
@pulumi.getter(name="vpcOwnerId")
|
|
89
|
-
def vpc_owner_id(self) -> Optional[
|
|
89
|
+
def vpc_owner_id(self) -> Optional[int]:
|
|
90
90
|
"""
|
|
91
91
|
VPC owner root user ID.
|
|
92
92
|
"""
|