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