pulumi-alicloud 3.65.1a1731504533__py3-none-any.whl → 3.66.0a1730783952__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/alb/load_balancer.py +1 -1
- pulumi_alicloud/arms/environment.py +7 -7
- pulumi_alicloud/arms/get_remote_writes.py +4 -4
- pulumi_alicloud/arms/prometheus_alert_rule.py +0 -58
- pulumi_alicloud/arms/remote_write.py +2 -2
- pulumi_alicloud/cen/transit_router_vbr_attachment.py +74 -96
- pulumi_alicloud/cms/hybrid_monitor_fc_task.py +26 -28
- pulumi_alicloud/cr/chain.py +14 -22
- pulumi_alicloud/cr/chart_repository.py +6 -14
- pulumi_alicloud/cr/repo.py +8 -8
- pulumi_alicloud/cr/vpc_endpoint_linked_vpc.py +6 -14
- pulumi_alicloud/databasefilesystem/instance_attachment.py +63 -59
- pulumi_alicloud/databasefilesystem/snapshot.py +109 -53
- pulumi_alicloud/ecs/instance.py +7 -7
- pulumi_alicloud/ess/scaling_configuration.py +7 -7
- pulumi_alicloud/fc/trigger.py +138 -202
- pulumi_alicloud/ga/custom_routing_endpoint_traffic_policy.py +44 -48
- pulumi_alicloud/governance/_inputs.py +0 -54
- pulumi_alicloud/governance/account.py +14 -49
- pulumi_alicloud/governance/outputs.py +0 -51
- pulumi_alicloud/gpdb/instance.py +15 -196
- pulumi_alicloud/kms/instance.py +0 -28
- pulumi_alicloud/nas/data_flow.py +6 -6
- pulumi_alicloud/nas/fileset.py +6 -6
- pulumi_alicloud/nas/lifecycle_policy.py +6 -6
- pulumi_alicloud/nas/recycle_bin.py +6 -6
- pulumi_alicloud/nas/snapshot.py +6 -6
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/redis/tair_instance.py +71 -1102
- pulumi_alicloud/threatdetection/honeypot_preset.py +0 -2
- pulumi_alicloud/vpn/gateway_vco_route.py +8 -28
- {pulumi_alicloud-3.65.1a1731504533.dist-info → pulumi_alicloud-3.66.0a1730783952.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.65.1a1731504533.dist-info → pulumi_alicloud-3.66.0a1730783952.dist-info}/RECORD +35 -35
- {pulumi_alicloud-3.65.1a1731504533.dist-info → pulumi_alicloud-3.66.0a1730783952.dist-info}/WHEEL +1 -1
- {pulumi_alicloud-3.65.1a1731504533.dist-info → pulumi_alicloud-3.66.0a1730783952.dist-info}/top_level.txt +0 -0
pulumi_alicloud/fc/trigger.py
CHANGED
|
@@ -683,7 +683,6 @@ class Trigger(pulumi.CustomResource):
|
|
|
683
683
|
|
|
684
684
|
```python
|
|
685
685
|
import pulumi
|
|
686
|
-
import json
|
|
687
686
|
import pulumi_alicloud as alicloud
|
|
688
687
|
import pulumi_random as random
|
|
689
688
|
|
|
@@ -721,60 +720,43 @@ class Trigger(pulumi.CustomResource):
|
|
|
721
720
|
function=default_function.name,
|
|
722
721
|
name="terraform-example-oss",
|
|
723
722
|
type="eventbridge",
|
|
724
|
-
config
|
|
725
|
-
"triggerEnable":
|
|
726
|
-
"asyncInvocationType":
|
|
727
|
-
"
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
"eventSchema": "CloudEvents",
|
|
735
|
-
},
|
|
736
|
-
},
|
|
737
|
-
"runOptions": {
|
|
738
|
-
"retryStrategy": {
|
|
739
|
-
"PushRetryStrategy": "BACKOFF_RETRY",
|
|
740
|
-
},
|
|
741
|
-
"errorsTolerance": "ALL",
|
|
742
|
-
"mode": "event-driven",
|
|
723
|
+
config=\"\"\" {
|
|
724
|
+
"triggerEnable": false,
|
|
725
|
+
"asyncInvocationType": false,
|
|
726
|
+
"eventRuleFilterPattern": {
|
|
727
|
+
"source":[
|
|
728
|
+
"acs.oss"
|
|
729
|
+
],
|
|
730
|
+
"type":[
|
|
731
|
+
"oss:BucketCreated:PutBucket"
|
|
732
|
+
]
|
|
743
733
|
},
|
|
744
|
-
|
|
734
|
+
"eventSourceConfig": {
|
|
735
|
+
"eventSourceType": "Default"
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
\"\"\")
|
|
745
739
|
mns_trigger = alicloud.fc.Trigger("mns_trigger",
|
|
746
740
|
service=default_service.name,
|
|
747
741
|
function=default_function.name,
|
|
748
742
|
name="terraform-example-mns",
|
|
749
743
|
type="eventbridge",
|
|
750
|
-
config
|
|
751
|
-
"triggerEnable":
|
|
752
|
-
"asyncInvocationType":
|
|
744
|
+
config=\"\"\" {
|
|
745
|
+
"triggerEnable": false,
|
|
746
|
+
"asyncInvocationType": false,
|
|
747
|
+
"eventRuleFilterPattern": "{}",
|
|
753
748
|
"eventSourceConfig": {
|
|
754
749
|
"eventSourceType": "MNS",
|
|
755
750
|
"eventSourceParameters": {
|
|
756
751
|
"sourceMNSParameters": {
|
|
757
|
-
"RegionId":
|
|
752
|
+
"RegionId": "cn-hangzhou",
|
|
758
753
|
"QueueName": "mns-queue",
|
|
759
|
-
"IsBase64Decode":
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
"deliveryOption": {
|
|
766
|
-
"mode": "event-driven",
|
|
767
|
-
"eventSchema": "CloudEvents",
|
|
768
|
-
},
|
|
769
|
-
},
|
|
770
|
-
"runOptions": {
|
|
771
|
-
"retryStrategy": {
|
|
772
|
-
"PushRetryStrategy": "BACKOFF_RETRY",
|
|
773
|
-
},
|
|
774
|
-
"errorsTolerance": "ALL",
|
|
775
|
-
"mode": "event-driven",
|
|
776
|
-
},
|
|
777
|
-
}))
|
|
754
|
+
"IsBase64Decode": true
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
\"\"\")
|
|
778
760
|
default_instance = alicloud.rocketmq.Instance("default",
|
|
779
761
|
instance_name=f"terraform-example-{default_integer['result']}",
|
|
780
762
|
remark="terraform-example")
|
|
@@ -792,38 +774,31 @@ class Trigger(pulumi.CustomResource):
|
|
|
792
774
|
function=default_function.name,
|
|
793
775
|
name="terraform-example-rocketmq",
|
|
794
776
|
type="eventbridge",
|
|
795
|
-
config=pulumi.Output.
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
},
|
|
805
|
-
"eventSourceConfig": {
|
|
777
|
+
config=pulumi.Output.all(
|
|
778
|
+
id=default_instance.id,
|
|
779
|
+
group_name=default_group.group_name,
|
|
780
|
+
topic_name=default_topic.topic_name
|
|
781
|
+
).apply(lambda resolved_outputs: f\"\"\" {{
|
|
782
|
+
"triggerEnable": false,
|
|
783
|
+
"asyncInvocationType": false,
|
|
784
|
+
"eventRuleFilterPattern": "{{}}",
|
|
785
|
+
"eventSourceConfig": {{
|
|
806
786
|
"eventSourceType": "RocketMQ",
|
|
807
|
-
"eventSourceParameters": {
|
|
808
|
-
"sourceRocketMQParameters": {
|
|
809
|
-
"RegionId": default_get_regions.regions[0].id,
|
|
810
|
-
"InstanceId":
|
|
811
|
-
"GroupID":
|
|
812
|
-
"Topic":
|
|
787
|
+
"eventSourceParameters": {{
|
|
788
|
+
"sourceRocketMQParameters": {{
|
|
789
|
+
"RegionId": "{default_get_regions.regions[0].id}",
|
|
790
|
+
"InstanceId": "{resolved_outputs['id']}",
|
|
791
|
+
"GroupID": "{resolved_outputs['group_name']}",
|
|
792
|
+
"Topic": "{resolved_outputs['topic_name']}",
|
|
813
793
|
"Timestamp": 1686296162,
|
|
814
794
|
"Tag": "example-tag",
|
|
815
|
-
"Offset": "CONSUME_FROM_LAST_OFFSET"
|
|
816
|
-
}
|
|
817
|
-
}
|
|
818
|
-
}
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
},
|
|
823
|
-
"errorsTolerance": "ALL",
|
|
824
|
-
"mode": "event-driven",
|
|
825
|
-
},
|
|
826
|
-
}))
|
|
795
|
+
"Offset": "CONSUME_FROM_LAST_OFFSET"
|
|
796
|
+
}}
|
|
797
|
+
}}
|
|
798
|
+
}}
|
|
799
|
+
}}
|
|
800
|
+
\"\"\")
|
|
801
|
+
)
|
|
827
802
|
default_instance2 = alicloud.amqp.Instance("default",
|
|
828
803
|
instance_name=f"terraform-example-{default_integer['result']}",
|
|
829
804
|
instance_type="professional",
|
|
@@ -845,35 +820,28 @@ class Trigger(pulumi.CustomResource):
|
|
|
845
820
|
function=default_function.name,
|
|
846
821
|
name="terraform-example-rabbitmq",
|
|
847
822
|
type="eventbridge",
|
|
848
|
-
config=pulumi.Output.
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
823
|
+
config=pulumi.Output.all(
|
|
824
|
+
id=default_instance2.id,
|
|
825
|
+
virtual_host_name=default_virtual_host.virtual_host_name,
|
|
826
|
+
queue_name=default_queue.queue_name
|
|
827
|
+
).apply(lambda resolved_outputs: f\"\"\" {{
|
|
828
|
+
"triggerEnable": false,
|
|
829
|
+
"asyncInvocationType": false,
|
|
830
|
+
"eventRuleFilterPattern": "{{}}",
|
|
831
|
+
"eventSourceConfig": {{
|
|
853
832
|
"eventSourceType": "RabbitMQ",
|
|
854
|
-
"eventSourceParameters": {
|
|
855
|
-
"sourceRabbitMQParameters": {
|
|
856
|
-
"RegionId": default_get_regions.regions[0].id,
|
|
857
|
-
"InstanceId":
|
|
858
|
-
"VirtualHostName":
|
|
859
|
-
"QueueName":
|
|
860
|
-
}
|
|
861
|
-
}
|
|
862
|
-
}
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
"eventSchema": "CloudEvents",
|
|
867
|
-
},
|
|
868
|
-
},
|
|
869
|
-
"runOptions": {
|
|
870
|
-
"retryStrategy": {
|
|
871
|
-
"PushRetryStrategy": "BACKOFF_RETRY",
|
|
872
|
-
},
|
|
873
|
-
"errorsTolerance": "ALL",
|
|
874
|
-
"mode": "event-driven",
|
|
875
|
-
},
|
|
876
|
-
}))
|
|
833
|
+
"eventSourceParameters": {{
|
|
834
|
+
"sourceRabbitMQParameters": {{
|
|
835
|
+
"RegionId": "{default_get_regions.regions[0].id}",
|
|
836
|
+
"InstanceId": "{resolved_outputs['id']}",
|
|
837
|
+
"VirtualHostName": "{resolved_outputs['virtual_host_name']}",
|
|
838
|
+
"QueueName": "{resolved_outputs['queue_name']}"
|
|
839
|
+
}}
|
|
840
|
+
}}
|
|
841
|
+
}}
|
|
842
|
+
}}
|
|
843
|
+
\"\"\")
|
|
844
|
+
)
|
|
877
845
|
```
|
|
878
846
|
|
|
879
847
|
## Module Support
|
|
@@ -1214,7 +1182,6 @@ class Trigger(pulumi.CustomResource):
|
|
|
1214
1182
|
|
|
1215
1183
|
```python
|
|
1216
1184
|
import pulumi
|
|
1217
|
-
import json
|
|
1218
1185
|
import pulumi_alicloud as alicloud
|
|
1219
1186
|
import pulumi_random as random
|
|
1220
1187
|
|
|
@@ -1252,60 +1219,43 @@ class Trigger(pulumi.CustomResource):
|
|
|
1252
1219
|
function=default_function.name,
|
|
1253
1220
|
name="terraform-example-oss",
|
|
1254
1221
|
type="eventbridge",
|
|
1255
|
-
config
|
|
1256
|
-
"triggerEnable":
|
|
1257
|
-
"asyncInvocationType":
|
|
1258
|
-
"
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
"eventSchema": "CloudEvents",
|
|
1266
|
-
},
|
|
1267
|
-
},
|
|
1268
|
-
"runOptions": {
|
|
1269
|
-
"retryStrategy": {
|
|
1270
|
-
"PushRetryStrategy": "BACKOFF_RETRY",
|
|
1271
|
-
},
|
|
1272
|
-
"errorsTolerance": "ALL",
|
|
1273
|
-
"mode": "event-driven",
|
|
1222
|
+
config=\"\"\" {
|
|
1223
|
+
"triggerEnable": false,
|
|
1224
|
+
"asyncInvocationType": false,
|
|
1225
|
+
"eventRuleFilterPattern": {
|
|
1226
|
+
"source":[
|
|
1227
|
+
"acs.oss"
|
|
1228
|
+
],
|
|
1229
|
+
"type":[
|
|
1230
|
+
"oss:BucketCreated:PutBucket"
|
|
1231
|
+
]
|
|
1274
1232
|
},
|
|
1275
|
-
|
|
1233
|
+
"eventSourceConfig": {
|
|
1234
|
+
"eventSourceType": "Default"
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
\"\"\")
|
|
1276
1238
|
mns_trigger = alicloud.fc.Trigger("mns_trigger",
|
|
1277
1239
|
service=default_service.name,
|
|
1278
1240
|
function=default_function.name,
|
|
1279
1241
|
name="terraform-example-mns",
|
|
1280
1242
|
type="eventbridge",
|
|
1281
|
-
config
|
|
1282
|
-
"triggerEnable":
|
|
1283
|
-
"asyncInvocationType":
|
|
1243
|
+
config=\"\"\" {
|
|
1244
|
+
"triggerEnable": false,
|
|
1245
|
+
"asyncInvocationType": false,
|
|
1246
|
+
"eventRuleFilterPattern": "{}",
|
|
1284
1247
|
"eventSourceConfig": {
|
|
1285
1248
|
"eventSourceType": "MNS",
|
|
1286
1249
|
"eventSourceParameters": {
|
|
1287
1250
|
"sourceMNSParameters": {
|
|
1288
|
-
"RegionId":
|
|
1251
|
+
"RegionId": "cn-hangzhou",
|
|
1289
1252
|
"QueueName": "mns-queue",
|
|
1290
|
-
"IsBase64Decode":
|
|
1291
|
-
}
|
|
1292
|
-
}
|
|
1293
|
-
}
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
"deliveryOption": {
|
|
1297
|
-
"mode": "event-driven",
|
|
1298
|
-
"eventSchema": "CloudEvents",
|
|
1299
|
-
},
|
|
1300
|
-
},
|
|
1301
|
-
"runOptions": {
|
|
1302
|
-
"retryStrategy": {
|
|
1303
|
-
"PushRetryStrategy": "BACKOFF_RETRY",
|
|
1304
|
-
},
|
|
1305
|
-
"errorsTolerance": "ALL",
|
|
1306
|
-
"mode": "event-driven",
|
|
1307
|
-
},
|
|
1308
|
-
}))
|
|
1253
|
+
"IsBase64Decode": true
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
\"\"\")
|
|
1309
1259
|
default_instance = alicloud.rocketmq.Instance("default",
|
|
1310
1260
|
instance_name=f"terraform-example-{default_integer['result']}",
|
|
1311
1261
|
remark="terraform-example")
|
|
@@ -1323,38 +1273,31 @@ class Trigger(pulumi.CustomResource):
|
|
|
1323
1273
|
function=default_function.name,
|
|
1324
1274
|
name="terraform-example-rocketmq",
|
|
1325
1275
|
type="eventbridge",
|
|
1326
|
-
config=pulumi.Output.
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
},
|
|
1336
|
-
"eventSourceConfig": {
|
|
1276
|
+
config=pulumi.Output.all(
|
|
1277
|
+
id=default_instance.id,
|
|
1278
|
+
group_name=default_group.group_name,
|
|
1279
|
+
topic_name=default_topic.topic_name
|
|
1280
|
+
).apply(lambda resolved_outputs: f\"\"\" {{
|
|
1281
|
+
"triggerEnable": false,
|
|
1282
|
+
"asyncInvocationType": false,
|
|
1283
|
+
"eventRuleFilterPattern": "{{}}",
|
|
1284
|
+
"eventSourceConfig": {{
|
|
1337
1285
|
"eventSourceType": "RocketMQ",
|
|
1338
|
-
"eventSourceParameters": {
|
|
1339
|
-
"sourceRocketMQParameters": {
|
|
1340
|
-
"RegionId": default_get_regions.regions[0].id,
|
|
1341
|
-
"InstanceId":
|
|
1342
|
-
"GroupID":
|
|
1343
|
-
"Topic":
|
|
1286
|
+
"eventSourceParameters": {{
|
|
1287
|
+
"sourceRocketMQParameters": {{
|
|
1288
|
+
"RegionId": "{default_get_regions.regions[0].id}",
|
|
1289
|
+
"InstanceId": "{resolved_outputs['id']}",
|
|
1290
|
+
"GroupID": "{resolved_outputs['group_name']}",
|
|
1291
|
+
"Topic": "{resolved_outputs['topic_name']}",
|
|
1344
1292
|
"Timestamp": 1686296162,
|
|
1345
1293
|
"Tag": "example-tag",
|
|
1346
|
-
"Offset": "CONSUME_FROM_LAST_OFFSET"
|
|
1347
|
-
}
|
|
1348
|
-
}
|
|
1349
|
-
}
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
},
|
|
1354
|
-
"errorsTolerance": "ALL",
|
|
1355
|
-
"mode": "event-driven",
|
|
1356
|
-
},
|
|
1357
|
-
}))
|
|
1294
|
+
"Offset": "CONSUME_FROM_LAST_OFFSET"
|
|
1295
|
+
}}
|
|
1296
|
+
}}
|
|
1297
|
+
}}
|
|
1298
|
+
}}
|
|
1299
|
+
\"\"\")
|
|
1300
|
+
)
|
|
1358
1301
|
default_instance2 = alicloud.amqp.Instance("default",
|
|
1359
1302
|
instance_name=f"terraform-example-{default_integer['result']}",
|
|
1360
1303
|
instance_type="professional",
|
|
@@ -1376,35 +1319,28 @@ class Trigger(pulumi.CustomResource):
|
|
|
1376
1319
|
function=default_function.name,
|
|
1377
1320
|
name="terraform-example-rabbitmq",
|
|
1378
1321
|
type="eventbridge",
|
|
1379
|
-
config=pulumi.Output.
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1322
|
+
config=pulumi.Output.all(
|
|
1323
|
+
id=default_instance2.id,
|
|
1324
|
+
virtual_host_name=default_virtual_host.virtual_host_name,
|
|
1325
|
+
queue_name=default_queue.queue_name
|
|
1326
|
+
).apply(lambda resolved_outputs: f\"\"\" {{
|
|
1327
|
+
"triggerEnable": false,
|
|
1328
|
+
"asyncInvocationType": false,
|
|
1329
|
+
"eventRuleFilterPattern": "{{}}",
|
|
1330
|
+
"eventSourceConfig": {{
|
|
1384
1331
|
"eventSourceType": "RabbitMQ",
|
|
1385
|
-
"eventSourceParameters": {
|
|
1386
|
-
"sourceRabbitMQParameters": {
|
|
1387
|
-
"RegionId": default_get_regions.regions[0].id,
|
|
1388
|
-
"InstanceId":
|
|
1389
|
-
"VirtualHostName":
|
|
1390
|
-
"QueueName":
|
|
1391
|
-
}
|
|
1392
|
-
}
|
|
1393
|
-
}
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
"eventSchema": "CloudEvents",
|
|
1398
|
-
},
|
|
1399
|
-
},
|
|
1400
|
-
"runOptions": {
|
|
1401
|
-
"retryStrategy": {
|
|
1402
|
-
"PushRetryStrategy": "BACKOFF_RETRY",
|
|
1403
|
-
},
|
|
1404
|
-
"errorsTolerance": "ALL",
|
|
1405
|
-
"mode": "event-driven",
|
|
1406
|
-
},
|
|
1407
|
-
}))
|
|
1332
|
+
"eventSourceParameters": {{
|
|
1333
|
+
"sourceRabbitMQParameters": {{
|
|
1334
|
+
"RegionId": "{default_get_regions.regions[0].id}",
|
|
1335
|
+
"InstanceId": "{resolved_outputs['id']}",
|
|
1336
|
+
"VirtualHostName": "{resolved_outputs['virtual_host_name']}",
|
|
1337
|
+
"QueueName": "{resolved_outputs['queue_name']}"
|
|
1338
|
+
}}
|
|
1339
|
+
}}
|
|
1340
|
+
}}
|
|
1341
|
+
}}
|
|
1342
|
+
\"\"\")
|
|
1343
|
+
)
|
|
1408
1344
|
```
|
|
1409
1345
|
|
|
1410
1346
|
## Module Support
|
|
@@ -236,20 +236,19 @@ class CustomRoutingEndpointTrafficPolicy(pulumi.CustomResource):
|
|
|
236
236
|
region = config.get("region")
|
|
237
237
|
if region is None:
|
|
238
238
|
region = "cn-hangzhou"
|
|
239
|
-
|
|
240
|
-
if name is None:
|
|
241
|
-
name = "tf-example"
|
|
242
|
-
default = alicloud.get_zones()
|
|
243
|
-
default_get_accelerators = alicloud.ga.get_accelerators(status="active",
|
|
244
|
-
bandwidth_billing_type="BandwidthPackage")
|
|
239
|
+
default = alicloud.get_zones(available_resource_creation="VSwitch")
|
|
245
240
|
default_network = alicloud.vpc.Network("default",
|
|
246
|
-
vpc_name=
|
|
247
|
-
cidr_block="
|
|
241
|
+
vpc_name="terraform-example",
|
|
242
|
+
cidr_block="172.17.3.0/24")
|
|
248
243
|
default_switch = alicloud.vpc.Switch("default",
|
|
249
|
-
vswitch_name=
|
|
244
|
+
vswitch_name="terraform-example",
|
|
245
|
+
cidr_block="172.17.3.0/24",
|
|
250
246
|
vpc_id=default_network.id,
|
|
251
|
-
|
|
252
|
-
|
|
247
|
+
zone_id=default.zones[0].id)
|
|
248
|
+
default_accelerator = alicloud.ga.Accelerator("default",
|
|
249
|
+
duration=1,
|
|
250
|
+
auto_use_coupon=True,
|
|
251
|
+
spec="1")
|
|
253
252
|
default_bandwidth_package = alicloud.ga.BandwidthPackage("default",
|
|
254
253
|
bandwidth=100,
|
|
255
254
|
type="Basic",
|
|
@@ -257,39 +256,38 @@ class CustomRoutingEndpointTrafficPolicy(pulumi.CustomResource):
|
|
|
257
256
|
payment_type="PayAsYouGo",
|
|
258
257
|
billing_type="PayBy95",
|
|
259
258
|
ratio=30)
|
|
260
|
-
default_get_regions = alicloud.get_regions(current=True)
|
|
261
259
|
default_bandwidth_package_attachment = alicloud.ga.BandwidthPackageAttachment("default",
|
|
262
|
-
accelerator_id=
|
|
260
|
+
accelerator_id=default_accelerator.id,
|
|
263
261
|
bandwidth_package_id=default_bandwidth_package.id)
|
|
264
262
|
default_listener = alicloud.ga.Listener("default",
|
|
265
263
|
accelerator_id=default_bandwidth_package_attachment.accelerator_id,
|
|
266
264
|
listener_type="CustomRouting",
|
|
267
265
|
port_ranges=[{
|
|
268
266
|
"from_port": 10000,
|
|
269
|
-
"to_port":
|
|
267
|
+
"to_port": 16000,
|
|
270
268
|
}])
|
|
271
269
|
default_custom_routing_endpoint_group = alicloud.ga.CustomRoutingEndpointGroup("default",
|
|
272
270
|
accelerator_id=default_listener.accelerator_id,
|
|
273
271
|
listener_id=default_listener.id,
|
|
274
|
-
endpoint_group_region=
|
|
275
|
-
custom_routing_endpoint_group_name=
|
|
276
|
-
description=
|
|
272
|
+
endpoint_group_region=region,
|
|
273
|
+
custom_routing_endpoint_group_name="terraform-example",
|
|
274
|
+
description="terraform-example")
|
|
275
|
+
default_custom_routing_endpoint = alicloud.ga.CustomRoutingEndpoint("default",
|
|
276
|
+
endpoint_group_id=default_custom_routing_endpoint_group.id,
|
|
277
|
+
endpoint=default_switch.id,
|
|
278
|
+
type="PrivateSubNet",
|
|
279
|
+
traffic_to_endpoint_policy="AllowCustom")
|
|
277
280
|
default_custom_routing_endpoint_group_destination = alicloud.ga.CustomRoutingEndpointGroupDestination("default",
|
|
278
281
|
endpoint_group_id=default_custom_routing_endpoint_group.id,
|
|
279
282
|
protocols=["TCP"],
|
|
280
283
|
from_port=1,
|
|
281
284
|
to_port=10)
|
|
282
|
-
default_custom_routing_endpoint = alicloud.ga.CustomRoutingEndpoint("default",
|
|
283
|
-
endpoint_group_id=default_custom_routing_endpoint_group_destination.endpoint_group_id,
|
|
284
|
-
endpoint=default_switch.id,
|
|
285
|
-
type="PrivateSubNet",
|
|
286
|
-
traffic_to_endpoint_policy="AllowAll")
|
|
287
285
|
default_custom_routing_endpoint_traffic_policy = alicloud.ga.CustomRoutingEndpointTrafficPolicy("default",
|
|
288
286
|
endpoint_id=default_custom_routing_endpoint.custom_routing_endpoint_id,
|
|
289
|
-
address="
|
|
287
|
+
address="172.17.3.0",
|
|
290
288
|
port_ranges=[{
|
|
291
289
|
"from_port": 1,
|
|
292
|
-
"to_port":
|
|
290
|
+
"to_port": 10,
|
|
293
291
|
}])
|
|
294
292
|
```
|
|
295
293
|
|
|
@@ -332,20 +330,19 @@ class CustomRoutingEndpointTrafficPolicy(pulumi.CustomResource):
|
|
|
332
330
|
region = config.get("region")
|
|
333
331
|
if region is None:
|
|
334
332
|
region = "cn-hangzhou"
|
|
335
|
-
|
|
336
|
-
if name is None:
|
|
337
|
-
name = "tf-example"
|
|
338
|
-
default = alicloud.get_zones()
|
|
339
|
-
default_get_accelerators = alicloud.ga.get_accelerators(status="active",
|
|
340
|
-
bandwidth_billing_type="BandwidthPackage")
|
|
333
|
+
default = alicloud.get_zones(available_resource_creation="VSwitch")
|
|
341
334
|
default_network = alicloud.vpc.Network("default",
|
|
342
|
-
vpc_name=
|
|
343
|
-
cidr_block="
|
|
335
|
+
vpc_name="terraform-example",
|
|
336
|
+
cidr_block="172.17.3.0/24")
|
|
344
337
|
default_switch = alicloud.vpc.Switch("default",
|
|
345
|
-
vswitch_name=
|
|
338
|
+
vswitch_name="terraform-example",
|
|
339
|
+
cidr_block="172.17.3.0/24",
|
|
346
340
|
vpc_id=default_network.id,
|
|
347
|
-
|
|
348
|
-
|
|
341
|
+
zone_id=default.zones[0].id)
|
|
342
|
+
default_accelerator = alicloud.ga.Accelerator("default",
|
|
343
|
+
duration=1,
|
|
344
|
+
auto_use_coupon=True,
|
|
345
|
+
spec="1")
|
|
349
346
|
default_bandwidth_package = alicloud.ga.BandwidthPackage("default",
|
|
350
347
|
bandwidth=100,
|
|
351
348
|
type="Basic",
|
|
@@ -353,39 +350,38 @@ class CustomRoutingEndpointTrafficPolicy(pulumi.CustomResource):
|
|
|
353
350
|
payment_type="PayAsYouGo",
|
|
354
351
|
billing_type="PayBy95",
|
|
355
352
|
ratio=30)
|
|
356
|
-
default_get_regions = alicloud.get_regions(current=True)
|
|
357
353
|
default_bandwidth_package_attachment = alicloud.ga.BandwidthPackageAttachment("default",
|
|
358
|
-
accelerator_id=
|
|
354
|
+
accelerator_id=default_accelerator.id,
|
|
359
355
|
bandwidth_package_id=default_bandwidth_package.id)
|
|
360
356
|
default_listener = alicloud.ga.Listener("default",
|
|
361
357
|
accelerator_id=default_bandwidth_package_attachment.accelerator_id,
|
|
362
358
|
listener_type="CustomRouting",
|
|
363
359
|
port_ranges=[{
|
|
364
360
|
"from_port": 10000,
|
|
365
|
-
"to_port":
|
|
361
|
+
"to_port": 16000,
|
|
366
362
|
}])
|
|
367
363
|
default_custom_routing_endpoint_group = alicloud.ga.CustomRoutingEndpointGroup("default",
|
|
368
364
|
accelerator_id=default_listener.accelerator_id,
|
|
369
365
|
listener_id=default_listener.id,
|
|
370
|
-
endpoint_group_region=
|
|
371
|
-
custom_routing_endpoint_group_name=
|
|
372
|
-
description=
|
|
366
|
+
endpoint_group_region=region,
|
|
367
|
+
custom_routing_endpoint_group_name="terraform-example",
|
|
368
|
+
description="terraform-example")
|
|
369
|
+
default_custom_routing_endpoint = alicloud.ga.CustomRoutingEndpoint("default",
|
|
370
|
+
endpoint_group_id=default_custom_routing_endpoint_group.id,
|
|
371
|
+
endpoint=default_switch.id,
|
|
372
|
+
type="PrivateSubNet",
|
|
373
|
+
traffic_to_endpoint_policy="AllowCustom")
|
|
373
374
|
default_custom_routing_endpoint_group_destination = alicloud.ga.CustomRoutingEndpointGroupDestination("default",
|
|
374
375
|
endpoint_group_id=default_custom_routing_endpoint_group.id,
|
|
375
376
|
protocols=["TCP"],
|
|
376
377
|
from_port=1,
|
|
377
378
|
to_port=10)
|
|
378
|
-
default_custom_routing_endpoint = alicloud.ga.CustomRoutingEndpoint("default",
|
|
379
|
-
endpoint_group_id=default_custom_routing_endpoint_group_destination.endpoint_group_id,
|
|
380
|
-
endpoint=default_switch.id,
|
|
381
|
-
type="PrivateSubNet",
|
|
382
|
-
traffic_to_endpoint_policy="AllowAll")
|
|
383
379
|
default_custom_routing_endpoint_traffic_policy = alicloud.ga.CustomRoutingEndpointTrafficPolicy("default",
|
|
384
380
|
endpoint_id=default_custom_routing_endpoint.custom_routing_endpoint_id,
|
|
385
|
-
address="
|
|
381
|
+
address="172.17.3.0",
|
|
386
382
|
port_ranges=[{
|
|
387
383
|
"from_port": 1,
|
|
388
|
-
"to_port":
|
|
384
|
+
"to_port": 10,
|
|
389
385
|
}])
|
|
390
386
|
```
|
|
391
387
|
|
|
@@ -15,66 +15,12 @@ else:
|
|
|
15
15
|
from .. import _utilities
|
|
16
16
|
|
|
17
17
|
__all__ = [
|
|
18
|
-
'AccountAccountTagArgs',
|
|
19
|
-
'AccountAccountTagArgsDict',
|
|
20
18
|
'BaselineBaselineItemArgs',
|
|
21
19
|
'BaselineBaselineItemArgsDict',
|
|
22
20
|
]
|
|
23
21
|
|
|
24
22
|
MYPY = False
|
|
25
23
|
|
|
26
|
-
if not MYPY:
|
|
27
|
-
class AccountAccountTagArgsDict(TypedDict):
|
|
28
|
-
tag_key: NotRequired[pulumi.Input[str]]
|
|
29
|
-
"""
|
|
30
|
-
The key of the tags
|
|
31
|
-
"""
|
|
32
|
-
tag_value: NotRequired[pulumi.Input[str]]
|
|
33
|
-
"""
|
|
34
|
-
The value of the tags
|
|
35
|
-
"""
|
|
36
|
-
elif False:
|
|
37
|
-
AccountAccountTagArgsDict: TypeAlias = Mapping[str, Any]
|
|
38
|
-
|
|
39
|
-
@pulumi.input_type
|
|
40
|
-
class AccountAccountTagArgs:
|
|
41
|
-
def __init__(__self__, *,
|
|
42
|
-
tag_key: Optional[pulumi.Input[str]] = None,
|
|
43
|
-
tag_value: Optional[pulumi.Input[str]] = None):
|
|
44
|
-
"""
|
|
45
|
-
:param pulumi.Input[str] tag_key: The key of the tags
|
|
46
|
-
:param pulumi.Input[str] tag_value: The value of the tags
|
|
47
|
-
"""
|
|
48
|
-
if tag_key is not None:
|
|
49
|
-
pulumi.set(__self__, "tag_key", tag_key)
|
|
50
|
-
if tag_value is not None:
|
|
51
|
-
pulumi.set(__self__, "tag_value", tag_value)
|
|
52
|
-
|
|
53
|
-
@property
|
|
54
|
-
@pulumi.getter(name="tagKey")
|
|
55
|
-
def tag_key(self) -> Optional[pulumi.Input[str]]:
|
|
56
|
-
"""
|
|
57
|
-
The key of the tags
|
|
58
|
-
"""
|
|
59
|
-
return pulumi.get(self, "tag_key")
|
|
60
|
-
|
|
61
|
-
@tag_key.setter
|
|
62
|
-
def tag_key(self, value: Optional[pulumi.Input[str]]):
|
|
63
|
-
pulumi.set(self, "tag_key", value)
|
|
64
|
-
|
|
65
|
-
@property
|
|
66
|
-
@pulumi.getter(name="tagValue")
|
|
67
|
-
def tag_value(self) -> Optional[pulumi.Input[str]]:
|
|
68
|
-
"""
|
|
69
|
-
The value of the tags
|
|
70
|
-
"""
|
|
71
|
-
return pulumi.get(self, "tag_value")
|
|
72
|
-
|
|
73
|
-
@tag_value.setter
|
|
74
|
-
def tag_value(self, value: Optional[pulumi.Input[str]]):
|
|
75
|
-
pulumi.set(self, "tag_value", value)
|
|
76
|
-
|
|
77
|
-
|
|
78
24
|
if not MYPY:
|
|
79
25
|
class BaselineBaselineItemArgsDict(TypedDict):
|
|
80
26
|
config: NotRequired[pulumi.Input[str]]
|