@pulumi/alicloud 3.109.0 → 3.109.1
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.
- package/adb/getZones.d.ts +2 -2
- package/adb/getZones.js +2 -2
- package/arms/integrationExporter.d.ts +1 -1
- package/arms/integrationExporter.js +1 -1
- package/arms/prometheus.d.ts +1 -1
- package/arms/prometheus.js +1 -1
- package/arms/remoteWrite.d.ts +1 -1
- package/arms/remoteWrite.js +1 -1
- package/bastionhost/hostShareKey.d.ts +3 -3
- package/bastionhost/hostShareKey.js +3 -3
- package/cassandra/getZones.d.ts +2 -2
- package/cassandra/getZones.js +2 -2
- package/cddc/dedicatedPropreHost.d.ts +15 -15
- package/cddc/dedicatedPropreHost.js +15 -15
- package/cen/getTransitRouterRouteTablePropagations.d.ts +2 -2
- package/cen/getTransitRouterRouteTablePropagations.js +2 -2
- package/cen/transitRouterRouteEntry.d.ts +1 -1
- package/cen/transitRouterRouteEntry.js +1 -1
- package/cen/vbrHealthCheck.d.ts +1 -1
- package/cen/vbrHealthCheck.js +1 -1
- package/cfg/aggregateCompliancePack.d.ts +1 -1
- package/cfg/aggregateCompliancePack.js +1 -1
- package/cfg/aggregateConfigRule.d.ts +1 -1
- package/cfg/aggregateConfigRule.js +1 -1
- package/cfg/aggregateDelivery.d.ts +1 -1
- package/cfg/aggregateDelivery.js +1 -1
- package/cfg/aggregator.d.ts +1 -1
- package/cfg/aggregator.js +1 -1
- package/cloudfirewall/getNatFirewalls.d.ts +2 -2
- package/cloudfirewall/getNatFirewalls.js +2 -2
- package/cloudsso/accessConfigurationProvisioning.d.ts +6 -6
- package/cloudsso/accessConfigurationProvisioning.js +6 -6
- package/cloudsso/accessManagement.d.ts +6 -6
- package/cloudsso/accessManagement.js +6 -6
- package/cloudsso/group.d.ts +4 -4
- package/cloudsso/group.js +4 -4
- package/cloudsso/user.d.ts +4 -4
- package/cloudsso/user.js +4 -4
- package/cloudsso/userAttachment.d.ts +6 -6
- package/cloudsso/userAttachment.js +6 -6
- package/cloudsso/userProvisioning.d.ts +5 -5
- package/cloudsso/userProvisioning.js +5 -5
- package/cms/alarmContact.d.ts +1 -1
- package/cms/alarmContact.js +1 -1
- package/cr/getNamespaces.d.ts +2 -2
- package/cr/getNamespaces.js +2 -2
- package/cr/getRepos.d.ts +2 -2
- package/cr/getRepos.js +2 -2
- package/cs/getClusterCredential.d.ts +2 -2
- package/cs/getClusterCredential.js +2 -2
- package/cs/getEdgeKubernetesClusters.d.ts +2 -2
- package/cs/getEdgeKubernetesClusters.js +2 -2
- package/cs/getKubernetesClusters.d.ts +2 -2
- package/cs/getKubernetesClusters.js +2 -2
- package/cs/getKubernetesPermission.d.ts +2 -2
- package/cs/getKubernetesPermission.js +2 -2
- package/cs/getManagedKubernetesClusters.d.ts +2 -2
- package/cs/getManagedKubernetesClusters.js +2 -2
- package/cs/getRegistryEnterpriseInstances.d.ts +2 -2
- package/cs/getRegistryEnterpriseInstances.js +2 -2
- package/cs/getRegistryEnterpriseNamespaces.d.ts +2 -2
- package/cs/getRegistryEnterpriseNamespaces.js +2 -2
- package/cs/getRegistryEnterpriseSyncRules.d.ts +2 -2
- package/cs/getRegistryEnterpriseSyncRules.js +2 -2
- package/cs/getServerlessKubernetesClusters.d.ts +2 -2
- package/cs/getServerlessKubernetesClusters.js +2 -2
- package/cs/kubernetes.d.ts +4 -4
- package/cs/kubernetes.js +4 -4
- package/cs/kubernetesAddon.d.ts +1 -1
- package/cs/kubernetesAddon.js +1 -1
- package/dms/getEnterpriseInstances.d.ts +2 -2
- package/dms/getEnterpriseInstances.js +2 -2
- package/dms/getEnterpriseUsers.d.ts +2 -2
- package/dms/getEnterpriseUsers.js +2 -2
- package/dms/getUserTenants.d.ts +2 -2
- package/dms/getUserTenants.js +2 -2
- package/ecp/getInstances.d.ts +10 -10
- package/ecp/getInstances.js +10 -10
- package/ecs/getInstanceTypes.d.ts +2 -2
- package/ecs/getInstanceTypes.js +2 -2
- package/ecs/getKeyPairs.d.ts +2 -2
- package/ecs/getKeyPairs.js +2 -2
- package/ecs/getSecurityGroupRules.d.ts +4 -4
- package/ecs/getSecurityGroupRules.js +4 -4
- package/elasticsearch/getZones.d.ts +2 -2
- package/elasticsearch/getZones.js +2 -2
- package/expressconnect/grantRuleToCen.d.ts +1 -1
- package/expressconnect/grantRuleToCen.js +1 -1
- package/expressconnect/virtualBorderRouter.d.ts +1 -1
- package/expressconnect/virtualBorderRouter.js +1 -1
- package/expressconnect/virtualPhysicalConnection.d.ts +1 -1
- package/expressconnect/virtualPhysicalConnection.js +1 -1
- package/fc/getZones.d.ts +2 -2
- package/fc/getZones.js +2 -2
- package/ga/getDomains.d.ts +4 -4
- package/ga/getDomains.js +4 -4
- package/getZones.d.ts +2 -2
- package/getZones.js +2 -2
- package/gpdb/backupPolicy.d.ts +4 -4
- package/gpdb/backupPolicy.js +4 -4
- package/gpdb/getZones.d.ts +2 -2
- package/gpdb/getZones.js +2 -2
- package/kms/getAliases.d.ts +2 -2
- package/kms/getAliases.js +2 -2
- package/kms/getKeyVersions.d.ts +2 -2
- package/kms/getKeyVersions.js +2 -2
- package/kms/getKeys.d.ts +2 -2
- package/kms/getKeys.js +2 -2
- package/kms/getSecretVersions.d.ts +2 -2
- package/kms/getSecretVersions.js +2 -2
- package/kms/getSecrets.d.ts +2 -2
- package/kms/getSecrets.js +2 -2
- package/kvstore/getConnections.d.ts +2 -2
- package/kvstore/getConnections.js +2 -2
- package/kvstore/getZones.d.ts +2 -2
- package/kvstore/getZones.js +2 -2
- package/mongodb/account.d.ts +1 -1
- package/mongodb/account.js +1 -1
- package/mongodb/auditPolicy.d.ts +1 -1
- package/mongodb/auditPolicy.js +1 -1
- package/mongodb/getZones.d.ts +2 -2
- package/mongodb/getZones.js +2 -2
- package/mongodb/instance.d.ts +1 -1
- package/mongodb/instance.js +1 -1
- package/mongodb/publicNetworkAddress.d.ts +1 -1
- package/mongodb/publicNetworkAddress.js +1 -1
- package/mongodb/replicaSetRole.d.ts +1 -1
- package/mongodb/replicaSetRole.js +1 -1
- package/mongodb/shardingNetworkPublicAddress.d.ts +1 -1
- package/mongodb/shardingNetworkPublicAddress.js +1 -1
- package/mse/getClusters.d.ts +2 -2
- package/mse/getClusters.js +2 -2
- package/mse/getEngineNamespaces.d.ts +2 -2
- package/mse/getEngineNamespaces.js +2 -2
- package/nas/mountTarget.d.ts +2 -2
- package/nas/mountTarget.js +2 -2
- package/ocean/baseInstance.d.ts +3 -3
- package/ocean/baseInstance.js +3 -3
- package/oos/getExecutions.d.ts +2 -2
- package/oos/getExecutions.js +2 -2
- package/oos/getTemplates.d.ts +2 -2
- package/oos/getTemplates.js +2 -2
- package/package.json +2 -2
- package/polardb/cluster.d.ts +3 -3
- package/polardb/cluster.js +3 -3
- package/polardb/getZones.d.ts +2 -2
- package/polardb/getZones.js +2 -2
- package/rds/getCharacterSetNames.d.ts +2 -2
- package/rds/getCharacterSetNames.js +2 -2
- package/rds/getCrossRegions.d.ts +2 -2
- package/rds/getCrossRegions.js +2 -2
- package/redis/backup.d.ts +4 -4
- package/redis/backup.js +4 -4
- package/resourcemanager/resourceDirectory.d.ts +1 -1
- package/resourcemanager/resourceDirectory.js +1 -1
- package/servicemesh/extensionProvider.d.ts +6 -6
- package/servicemesh/extensionProvider.js +6 -6
- package/vpc/bgpGroup.d.ts +1 -1
- package/vpc/bgpGroup.js +1 -1
- package/vpc/bgpNetwork.d.ts +1 -1
- package/vpc/bgpNetwork.js +1 -1
- package/vpc/bgpPeer.d.ts +1 -1
- package/vpc/bgpPeer.js +1 -1
- package/vpn/getGateways.d.ts +8 -8
- package/vpn/getGateways.js +8 -8
- package/waf/instance.d.ts +1 -1
- package/waf/instance.js +1 -1
package/mongodb/instance.js
CHANGED
|
@@ -50,7 +50,7 @@ const utilities = __importStar(require("../utilities"));
|
|
|
50
50
|
* const config = new pulumi.Config();
|
|
51
51
|
* const name = config.get("name") || "terraform-example";
|
|
52
52
|
* const _default = alicloud.mongodb.getZones({});
|
|
53
|
-
* const index = _default.then(_default => _default.zones
|
|
53
|
+
* const index = _default.then(_default => _default.zones.length).then(length => length - 1);
|
|
54
54
|
* const zoneId = _default.then(_default => _default.zones[index].id);
|
|
55
55
|
* const defaultNetwork = new alicloud.vpc.Network("default", {
|
|
56
56
|
* vpcName: name,
|
|
@@ -17,7 +17,7 @@ import * as outputs from "../types/output";
|
|
|
17
17
|
* const config = new pulumi.Config();
|
|
18
18
|
* const name = config.get("name") || "tf-example";
|
|
19
19
|
* const _default = alicloud.mongodb.getZones({});
|
|
20
|
-
* const index = _default.then(_default => _default.zones
|
|
20
|
+
* const index = _default.then(_default => _default.zones.length).then(length => length - 1);
|
|
21
21
|
* const zoneId = _default.then(_default => _default.zones[index].id);
|
|
22
22
|
* const defaultNetwork = new alicloud.vpc.Network("default", {
|
|
23
23
|
* cidrBlock: "10.0.0.0/8",
|
|
@@ -44,7 +44,7 @@ const utilities = __importStar(require("../utilities"));
|
|
|
44
44
|
* const config = new pulumi.Config();
|
|
45
45
|
* const name = config.get("name") || "tf-example";
|
|
46
46
|
* const _default = alicloud.mongodb.getZones({});
|
|
47
|
-
* const index = _default.then(_default => _default.zones
|
|
47
|
+
* const index = _default.then(_default => _default.zones.length).then(length => length - 1);
|
|
48
48
|
* const zoneId = _default.then(_default => _default.zones[index].id);
|
|
49
49
|
* const defaultNetwork = new alicloud.vpc.Network("default", {
|
|
50
50
|
* cidrBlock: "10.0.0.0/8",
|
|
@@ -15,7 +15,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
15
15
|
* const config = new pulumi.Config();
|
|
16
16
|
* const name = config.get("name") || "tf-example";
|
|
17
17
|
* const _default = alicloud.mongodb.getZones({});
|
|
18
|
-
* const index = _default.then(_default => _default.zones
|
|
18
|
+
* const index = _default.then(_default => _default.zones.length).then(length => length - 1);
|
|
19
19
|
* const zoneId = _default.then(_default => _default.zones[index].id);
|
|
20
20
|
* const defaultNetwork = new alicloud.vpc.Network("default", {
|
|
21
21
|
* cidrBlock: "10.0.0.0/8",
|
|
@@ -44,7 +44,7 @@ const utilities = __importStar(require("../utilities"));
|
|
|
44
44
|
* const config = new pulumi.Config();
|
|
45
45
|
* const name = config.get("name") || "tf-example";
|
|
46
46
|
* const _default = alicloud.mongodb.getZones({});
|
|
47
|
-
* const index = _default.then(_default => _default.zones
|
|
47
|
+
* const index = _default.then(_default => _default.zones.length).then(length => length - 1);
|
|
48
48
|
* const zoneId = _default.then(_default => _default.zones[index].id);
|
|
49
49
|
* const defaultNetwork = new alicloud.vpc.Network("default", {
|
|
50
50
|
* cidrBlock: "10.0.0.0/8",
|
|
@@ -21,7 +21,7 @@ import * as outputs from "../types/output";
|
|
|
21
21
|
* const config = new pulumi.Config();
|
|
22
22
|
* const name = config.get("name") || "terraform-example";
|
|
23
23
|
* const _default = alicloud.mongodb.getZones({});
|
|
24
|
-
* const index = _default.then(_default => _default.zones
|
|
24
|
+
* const index = _default.then(_default => _default.zones.length).then(length => length - 1);
|
|
25
25
|
* const zoneId = _default.then(_default => _default.zones[index].id);
|
|
26
26
|
* const defaultNetwork = new alicloud.vpc.Network("default", {
|
|
27
27
|
* vpcName: name,
|
|
@@ -48,7 +48,7 @@ const utilities = __importStar(require("../utilities"));
|
|
|
48
48
|
* const config = new pulumi.Config();
|
|
49
49
|
* const name = config.get("name") || "terraform-example";
|
|
50
50
|
* const _default = alicloud.mongodb.getZones({});
|
|
51
|
-
* const index = _default.then(_default => _default.zones
|
|
51
|
+
* const index = _default.then(_default => _default.zones.length).then(length => length - 1);
|
|
52
52
|
* const zoneId = _default.then(_default => _default.zones[index].id);
|
|
53
53
|
* const defaultNetwork = new alicloud.vpc.Network("default", {
|
|
54
54
|
* vpcName: name,
|
package/mse/getClusters.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ import * as outputs from "../types/output";
|
|
|
38
38
|
* vswitchId: exampleSwitch.id,
|
|
39
39
|
* vpcId: exampleNetwork.id,
|
|
40
40
|
* });
|
|
41
|
-
* // Declare the
|
|
41
|
+
* // Declare the function
|
|
42
42
|
* const exampleGetClusters = alicloud.mse.getClustersOutput({
|
|
43
43
|
* enableDetails: true,
|
|
44
44
|
* ids: [exampleCluster.id],
|
|
@@ -150,7 +150,7 @@ export interface GetClustersResult {
|
|
|
150
150
|
* vswitchId: exampleSwitch.id,
|
|
151
151
|
* vpcId: exampleNetwork.id,
|
|
152
152
|
* });
|
|
153
|
-
* // Declare the
|
|
153
|
+
* // Declare the function
|
|
154
154
|
* const exampleGetClusters = alicloud.mse.getClustersOutput({
|
|
155
155
|
* enableDetails: true,
|
|
156
156
|
* ids: [exampleCluster.id],
|
package/mse/getClusters.js
CHANGED
|
@@ -66,7 +66,7 @@ const utilities = __importStar(require("../utilities"));
|
|
|
66
66
|
* vswitchId: exampleSwitch.id,
|
|
67
67
|
* vpcId: exampleNetwork.id,
|
|
68
68
|
* });
|
|
69
|
-
* // Declare the
|
|
69
|
+
* // Declare the function
|
|
70
70
|
* const exampleGetClusters = alicloud.mse.getClustersOutput({
|
|
71
71
|
* enableDetails: true,
|
|
72
72
|
* ids: [exampleCluster.id],
|
|
@@ -128,7 +128,7 @@ exports.getClusters = getClusters;
|
|
|
128
128
|
* vswitchId: exampleSwitch.id,
|
|
129
129
|
* vpcId: exampleNetwork.id,
|
|
130
130
|
* });
|
|
131
|
-
* // Declare the
|
|
131
|
+
* // Declare the function
|
|
132
132
|
* const exampleGetClusters = alicloud.mse.getClustersOutput({
|
|
133
133
|
* enableDetails: true,
|
|
134
134
|
* ids: [exampleCluster.id],
|
|
@@ -45,7 +45,7 @@ import * as outputs from "../types/output";
|
|
|
45
45
|
* namespaceId: "terraform-example",
|
|
46
46
|
* namespaceDesc: "description",
|
|
47
47
|
* });
|
|
48
|
-
* // Declare the
|
|
48
|
+
* // Declare the function
|
|
49
49
|
* const exampleGetEngineNamespaces = alicloud.mse.getEngineNamespacesOutput({
|
|
50
50
|
* instanceId: exampleEngineNamespace.instanceId,
|
|
51
51
|
* });
|
|
@@ -144,7 +144,7 @@ export interface GetEngineNamespacesResult {
|
|
|
144
144
|
* namespaceId: "terraform-example",
|
|
145
145
|
* namespaceDesc: "description",
|
|
146
146
|
* });
|
|
147
|
-
* // Declare the
|
|
147
|
+
* // Declare the function
|
|
148
148
|
* const exampleGetEngineNamespaces = alicloud.mse.getEngineNamespacesOutput({
|
|
149
149
|
* instanceId: exampleEngineNamespace.instanceId,
|
|
150
150
|
* });
|
|
@@ -73,7 +73,7 @@ const utilities = __importStar(require("../utilities"));
|
|
|
73
73
|
* namespaceId: "terraform-example",
|
|
74
74
|
* namespaceDesc: "description",
|
|
75
75
|
* });
|
|
76
|
-
* // Declare the
|
|
76
|
+
* // Declare the function
|
|
77
77
|
* const exampleGetEngineNamespaces = alicloud.mse.getEngineNamespacesOutput({
|
|
78
78
|
* instanceId: exampleEngineNamespace.instanceId,
|
|
79
79
|
* });
|
|
@@ -138,7 +138,7 @@ exports.getEngineNamespaces = getEngineNamespaces;
|
|
|
138
138
|
* namespaceId: "terraform-example",
|
|
139
139
|
* namespaceDesc: "description",
|
|
140
140
|
* });
|
|
141
|
-
* // Declare the
|
|
141
|
+
* // Declare the function
|
|
142
142
|
* const exampleGetEngineNamespaces = alicloud.mse.getEngineNamespacesOutput({
|
|
143
143
|
* instanceId: exampleEngineNamespace.instanceId,
|
|
144
144
|
* });
|
package/nas/mountTarget.d.ts
CHANGED
|
@@ -19,8 +19,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
19
19
|
* const _default = alicloud.nas.getZones({
|
|
20
20
|
* fileSystemType: "extreme",
|
|
21
21
|
* });
|
|
22
|
-
* const countSize = _default.then(_default => _default.zones
|
|
23
|
-
* const zoneId = pulumi.all([_default, countSize]).apply(([_default, countSize]) =>
|
|
22
|
+
* const countSize = _default.then(_default => _default.zones.length);
|
|
23
|
+
* const zoneId = pulumi.all([_default, countSize, _default.zones[countSize - 1]]).apply(([_default, countSize, obj]) => obj.zoneId);
|
|
24
24
|
* const example = new alicloud.vpc.Network("example", {
|
|
25
25
|
* vpcName: "terraform-example",
|
|
26
26
|
* cidrBlock: "172.17.3.0/24",
|
package/nas/mountTarget.js
CHANGED
|
@@ -48,8 +48,8 @@ const utilities = __importStar(require("../utilities"));
|
|
|
48
48
|
* const _default = alicloud.nas.getZones({
|
|
49
49
|
* fileSystemType: "extreme",
|
|
50
50
|
* });
|
|
51
|
-
* const countSize = _default.then(_default => _default.zones
|
|
52
|
-
* const zoneId = pulumi.all([_default, countSize]).apply(([_default, countSize]) =>
|
|
51
|
+
* const countSize = _default.then(_default => _default.zones.length);
|
|
52
|
+
* const zoneId = pulumi.all([_default, countSize, _default.zones[countSize - 1]]).apply(([_default, countSize, obj]) => obj.zoneId);
|
|
53
53
|
* const example = new alicloud.vpc.Network("example", {
|
|
54
54
|
* vpcName: "terraform-example",
|
|
55
55
|
* cidrBlock: "172.17.3.0/24",
|
package/ocean/baseInstance.d.ts
CHANGED
|
@@ -21,9 +21,9 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
21
21
|
* const defaultBaseInstance = new alicloud.ocean.BaseInstance("default", {
|
|
22
22
|
* resourceGroupId: defaultGetResourceGroups.then(defaultGetResourceGroups => defaultGetResourceGroups.ids?.[0]),
|
|
23
23
|
* zones: [
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
24
|
+
* Promise.all([_default, _default.then(_default => _default.ids.length)]).then(([_default, length]) => _default.ids[length - 2]),
|
|
25
|
+
* Promise.all([_default, _default.then(_default => _default.ids.length)]).then(([_default, length]) => _default.ids[length - 3]),
|
|
26
|
+
* Promise.all([_default, _default.then(_default => _default.ids.length)]).then(([_default, length]) => _default.ids[length - 4]),
|
|
27
27
|
* ],
|
|
28
28
|
* autoRenew: false,
|
|
29
29
|
* diskSize: 100,
|
package/ocean/baseInstance.js
CHANGED
|
@@ -50,9 +50,9 @@ const utilities = __importStar(require("../utilities"));
|
|
|
50
50
|
* const defaultBaseInstance = new alicloud.ocean.BaseInstance("default", {
|
|
51
51
|
* resourceGroupId: defaultGetResourceGroups.then(defaultGetResourceGroups => defaultGetResourceGroups.ids?.[0]),
|
|
52
52
|
* zones: [
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
53
|
+
* Promise.all([_default, _default.then(_default => _default.ids.length)]).then(([_default, length]) => _default.ids[length - 2]),
|
|
54
|
+
* Promise.all([_default, _default.then(_default => _default.ids.length)]).then(([_default, length]) => _default.ids[length - 3]),
|
|
55
|
+
* Promise.all([_default, _default.then(_default => _default.ids.length)]).then(([_default, length]) => _default.ids[length - 4]),
|
|
56
56
|
* ],
|
|
57
57
|
* autoRenew: false,
|
|
58
58
|
* diskSize: 100,
|
package/oos/getExecutions.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import * as outputs from "../types/output";
|
|
|
11
11
|
* import * as pulumi from "@pulumi/pulumi";
|
|
12
12
|
* import * as alicloud from "@pulumi/alicloud";
|
|
13
13
|
*
|
|
14
|
-
* // Declare the
|
|
14
|
+
* // Declare the function
|
|
15
15
|
* const example = alicloud.oos.getExecutions({
|
|
16
16
|
* ids: ["execution_id"],
|
|
17
17
|
* templateName: "name",
|
|
@@ -169,7 +169,7 @@ export interface GetExecutionsResult {
|
|
|
169
169
|
* import * as pulumi from "@pulumi/pulumi";
|
|
170
170
|
* import * as alicloud from "@pulumi/alicloud";
|
|
171
171
|
*
|
|
172
|
-
* // Declare the
|
|
172
|
+
* // Declare the function
|
|
173
173
|
* const example = alicloud.oos.getExecutions({
|
|
174
174
|
* ids: ["execution_id"],
|
|
175
175
|
* templateName: "name",
|
package/oos/getExecutions.js
CHANGED
|
@@ -39,7 +39,7 @@ const utilities = __importStar(require("../utilities"));
|
|
|
39
39
|
* import * as pulumi from "@pulumi/pulumi";
|
|
40
40
|
* import * as alicloud from "@pulumi/alicloud";
|
|
41
41
|
*
|
|
42
|
-
* // Declare the
|
|
42
|
+
* // Declare the function
|
|
43
43
|
* const example = alicloud.oos.getExecutions({
|
|
44
44
|
* ids: ["execution_id"],
|
|
45
45
|
* templateName: "name",
|
|
@@ -83,7 +83,7 @@ exports.getExecutions = getExecutions;
|
|
|
83
83
|
* import * as pulumi from "@pulumi/pulumi";
|
|
84
84
|
* import * as alicloud from "@pulumi/alicloud";
|
|
85
85
|
*
|
|
86
|
-
* // Declare the
|
|
86
|
+
* // Declare the function
|
|
87
87
|
* const example = alicloud.oos.getExecutions({
|
|
88
88
|
* ids: ["execution_id"],
|
|
89
89
|
* templateName: "name",
|
package/oos/getTemplates.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import * as outputs from "../types/output";
|
|
|
11
11
|
* import * as pulumi from "@pulumi/pulumi";
|
|
12
12
|
* import * as alicloud from "@pulumi/alicloud";
|
|
13
13
|
*
|
|
14
|
-
* // Declare the
|
|
14
|
+
* // Declare the function
|
|
15
15
|
* const example = alicloud.oos.getTemplates({
|
|
16
16
|
* nameRegex: "test",
|
|
17
17
|
* tags: {
|
|
@@ -135,7 +135,7 @@ export interface GetTemplatesResult {
|
|
|
135
135
|
* import * as pulumi from "@pulumi/pulumi";
|
|
136
136
|
* import * as alicloud from "@pulumi/alicloud";
|
|
137
137
|
*
|
|
138
|
-
* // Declare the
|
|
138
|
+
* // Declare the function
|
|
139
139
|
* const example = alicloud.oos.getTemplates({
|
|
140
140
|
* nameRegex: "test",
|
|
141
141
|
* tags: {
|
package/oos/getTemplates.js
CHANGED
|
@@ -39,7 +39,7 @@ const utilities = __importStar(require("../utilities"));
|
|
|
39
39
|
* import * as pulumi from "@pulumi/pulumi";
|
|
40
40
|
* import * as alicloud from "@pulumi/alicloud";
|
|
41
41
|
*
|
|
42
|
-
* // Declare the
|
|
42
|
+
* // Declare the function
|
|
43
43
|
* const example = alicloud.oos.getTemplates({
|
|
44
44
|
* nameRegex: "test",
|
|
45
45
|
* tags: {
|
|
@@ -84,7 +84,7 @@ exports.getTemplates = getTemplates;
|
|
|
84
84
|
* import * as pulumi from "@pulumi/pulumi";
|
|
85
85
|
* import * as alicloud from "@pulumi/alicloud";
|
|
86
86
|
*
|
|
87
|
-
* // Declare the
|
|
87
|
+
* // Declare the function
|
|
88
88
|
* const example = alicloud.oos.getTemplates({
|
|
89
89
|
* nameRegex: "test",
|
|
90
90
|
* tags: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/alicloud",
|
|
3
|
-
"version": "3.109.
|
|
3
|
+
"version": "3.109.1",
|
|
4
4
|
"description": "A Pulumi package for creating and managing AliCloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -22,6 +22,6 @@
|
|
|
22
22
|
"pulumi": {
|
|
23
23
|
"resource": true,
|
|
24
24
|
"name": "alicloud",
|
|
25
|
-
"version": "3.109.
|
|
25
|
+
"version": "3.109.1"
|
|
26
26
|
}
|
|
27
27
|
}
|
package/polardb/cluster.d.ts
CHANGED
|
@@ -103,7 +103,7 @@ import * as outputs from "../types/output";
|
|
|
103
103
|
* nameRegex: "AliyunRDSInstanceEncryptionDefaultRole",
|
|
104
104
|
* });
|
|
105
105
|
* const _default: alicloud.ram.Role[] = [];
|
|
106
|
-
* roles.then(roles => roles.roles
|
|
106
|
+
* roles.then(roles => roles.roles.length).apply(length => {
|
|
107
107
|
* for (let range = 0; range < (length > 0 ? 0 : 1); range++) {
|
|
108
108
|
* _default.push(new alicloud.ram.Role(`default-${range}`, {
|
|
109
109
|
* name: "AliyunRDSInstanceEncryptionDefaultRole",
|
|
@@ -127,12 +127,12 @@ import * as outputs from "../types/output";
|
|
|
127
127
|
* }
|
|
128
128
|
* });
|
|
129
129
|
* const defaultPolicyAttachment: alicloud.resourcemanager.PolicyAttachment[] = [];
|
|
130
|
-
* roles.then(roles => roles.roles
|
|
130
|
+
* roles.then(roles => roles.roles.length).apply(length => {
|
|
131
131
|
* for (let range = 0; range < (length > 0 ? 0 : 1); range++) {
|
|
132
132
|
* defaultPolicyAttachment.push(new alicloud.resourcemanager.PolicyAttachment(`default-${range}`, {
|
|
133
133
|
* policyName: "AliyunRDSInstanceEncryptionRolePolicy",
|
|
134
134
|
* policyType: "System",
|
|
135
|
-
* principalName: pulumi.all([roles.then(roles => roles.roles
|
|
135
|
+
* principalName: pulumi.all([roles.then(roles => roles.roles.length), roles, current, _default[0].name]).apply(([length, roles, current, name]) => length > 0 ? `${roles.roles?.[0]?.name}@role.${current.id}.onaliyunservice.com` : `${name}@role.${current.id}.onaliyunservice.com`),
|
|
136
136
|
* principalType: "ServiceRole",
|
|
137
137
|
* resourceGroupId: current.then(current => current.id),
|
|
138
138
|
* }));
|
package/polardb/cluster.js
CHANGED
|
@@ -130,7 +130,7 @@ const utilities = __importStar(require("../utilities"));
|
|
|
130
130
|
* nameRegex: "AliyunRDSInstanceEncryptionDefaultRole",
|
|
131
131
|
* });
|
|
132
132
|
* const _default: alicloud.ram.Role[] = [];
|
|
133
|
-
* roles.then(roles => roles.roles
|
|
133
|
+
* roles.then(roles => roles.roles.length).apply(length => {
|
|
134
134
|
* for (let range = 0; range < (length > 0 ? 0 : 1); range++) {
|
|
135
135
|
* _default.push(new alicloud.ram.Role(`default-${range}`, {
|
|
136
136
|
* name: "AliyunRDSInstanceEncryptionDefaultRole",
|
|
@@ -154,12 +154,12 @@ const utilities = __importStar(require("../utilities"));
|
|
|
154
154
|
* }
|
|
155
155
|
* });
|
|
156
156
|
* const defaultPolicyAttachment: alicloud.resourcemanager.PolicyAttachment[] = [];
|
|
157
|
-
* roles.then(roles => roles.roles
|
|
157
|
+
* roles.then(roles => roles.roles.length).apply(length => {
|
|
158
158
|
* for (let range = 0; range < (length > 0 ? 0 : 1); range++) {
|
|
159
159
|
* defaultPolicyAttachment.push(new alicloud.resourcemanager.PolicyAttachment(`default-${range}`, {
|
|
160
160
|
* policyName: "AliyunRDSInstanceEncryptionRolePolicy",
|
|
161
161
|
* policyType: "System",
|
|
162
|
-
* principalName: pulumi.all([roles.then(roles => roles.roles
|
|
162
|
+
* principalName: pulumi.all([roles.then(roles => roles.roles.length), roles, current, _default[0].name]).apply(([length, roles, current, name]) => length > 0 ? `${roles.roles?.[0]?.name}@role.${current.id}.onaliyunservice.com` : `${name}@role.${current.id}.onaliyunservice.com`),
|
|
163
163
|
* principalType: "ServiceRole",
|
|
164
164
|
* resourceGroupId: current.then(current => current.id),
|
|
165
165
|
* }));
|
package/polardb/getZones.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import * as outputs from "../types/output";
|
|
|
11
11
|
* import * as pulumi from "@pulumi/pulumi";
|
|
12
12
|
* import * as alicloud from "@pulumi/alicloud";
|
|
13
13
|
*
|
|
14
|
-
* // Declare the
|
|
14
|
+
* // Declare the function
|
|
15
15
|
* const zonesIds = alicloud.polardb.getZones({});
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
@@ -59,7 +59,7 @@ export interface GetZonesResult {
|
|
|
59
59
|
* import * as pulumi from "@pulumi/pulumi";
|
|
60
60
|
* import * as alicloud from "@pulumi/alicloud";
|
|
61
61
|
*
|
|
62
|
-
* // Declare the
|
|
62
|
+
* // Declare the function
|
|
63
63
|
* const zonesIds = alicloud.polardb.getZones({});
|
|
64
64
|
* ```
|
|
65
65
|
*/
|
package/polardb/getZones.js
CHANGED
|
@@ -39,7 +39,7 @@ const utilities = __importStar(require("../utilities"));
|
|
|
39
39
|
* import * as pulumi from "@pulumi/pulumi";
|
|
40
40
|
* import * as alicloud from "@pulumi/alicloud";
|
|
41
41
|
*
|
|
42
|
-
* // Declare the
|
|
42
|
+
* // Declare the function
|
|
43
43
|
* const zonesIds = alicloud.polardb.getZones({});
|
|
44
44
|
* ```
|
|
45
45
|
*/
|
|
@@ -63,7 +63,7 @@ exports.getZones = getZones;
|
|
|
63
63
|
* import * as pulumi from "@pulumi/pulumi";
|
|
64
64
|
* import * as alicloud from "@pulumi/alicloud";
|
|
65
65
|
*
|
|
66
|
-
* // Declare the
|
|
66
|
+
* // Declare the function
|
|
67
67
|
* const zonesIds = alicloud.polardb.getZones({});
|
|
68
68
|
* ```
|
|
69
69
|
*/
|
|
@@ -10,7 +10,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
10
10
|
* import * as pulumi from "@pulumi/pulumi";
|
|
11
11
|
* import * as alicloud from "@pulumi/alicloud";
|
|
12
12
|
*
|
|
13
|
-
* // Declare the
|
|
13
|
+
* // Declare the function
|
|
14
14
|
* const names = alicloud.rds.getCharacterSetNames({
|
|
15
15
|
* engine: "MySQL",
|
|
16
16
|
* });
|
|
@@ -51,7 +51,7 @@ export interface GetCharacterSetNamesResult {
|
|
|
51
51
|
* import * as pulumi from "@pulumi/pulumi";
|
|
52
52
|
* import * as alicloud from "@pulumi/alicloud";
|
|
53
53
|
*
|
|
54
|
-
* // Declare the
|
|
54
|
+
* // Declare the function
|
|
55
55
|
* const names = alicloud.rds.getCharacterSetNames({
|
|
56
56
|
* engine: "MySQL",
|
|
57
57
|
* });
|
|
@@ -39,7 +39,7 @@ const utilities = __importStar(require("../utilities"));
|
|
|
39
39
|
* import * as pulumi from "@pulumi/pulumi";
|
|
40
40
|
* import * as alicloud from "@pulumi/alicloud";
|
|
41
41
|
*
|
|
42
|
-
* // Declare the
|
|
42
|
+
* // Declare the function
|
|
43
43
|
* const names = alicloud.rds.getCharacterSetNames({
|
|
44
44
|
* engine: "MySQL",
|
|
45
45
|
* });
|
|
@@ -65,7 +65,7 @@ exports.getCharacterSetNames = getCharacterSetNames;
|
|
|
65
65
|
* import * as pulumi from "@pulumi/pulumi";
|
|
66
66
|
* import * as alicloud from "@pulumi/alicloud";
|
|
67
67
|
*
|
|
68
|
-
* // Declare the
|
|
68
|
+
* // Declare the function
|
|
69
69
|
* const names = alicloud.rds.getCharacterSetNames({
|
|
70
70
|
* engine: "MySQL",
|
|
71
71
|
* });
|
package/rds/getCrossRegions.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import * as outputs from "../types/output";
|
|
|
11
11
|
* import * as pulumi from "@pulumi/pulumi";
|
|
12
12
|
* import * as alicloud from "@pulumi/alicloud";
|
|
13
13
|
*
|
|
14
|
-
* // Declare the
|
|
14
|
+
* // Declare the function
|
|
15
15
|
* const crossRegions = alicloud.rds.getCrossRegions({});
|
|
16
16
|
* export const firstRdsCrossRegions = regions.ids[0];
|
|
17
17
|
* ```
|
|
@@ -52,7 +52,7 @@ export interface GetCrossRegionsResult {
|
|
|
52
52
|
* import * as pulumi from "@pulumi/pulumi";
|
|
53
53
|
* import * as alicloud from "@pulumi/alicloud";
|
|
54
54
|
*
|
|
55
|
-
* // Declare the
|
|
55
|
+
* // Declare the function
|
|
56
56
|
* const crossRegions = alicloud.rds.getCrossRegions({});
|
|
57
57
|
* export const firstRdsCrossRegions = regions.ids[0];
|
|
58
58
|
* ```
|
package/rds/getCrossRegions.js
CHANGED
|
@@ -39,7 +39,7 @@ const utilities = __importStar(require("../utilities"));
|
|
|
39
39
|
* import * as pulumi from "@pulumi/pulumi";
|
|
40
40
|
* import * as alicloud from "@pulumi/alicloud";
|
|
41
41
|
*
|
|
42
|
-
* // Declare the
|
|
42
|
+
* // Declare the function
|
|
43
43
|
* const crossRegions = alicloud.rds.getCrossRegions({});
|
|
44
44
|
* export const firstRdsCrossRegions = regions.ids[0];
|
|
45
45
|
* ```
|
|
@@ -63,7 +63,7 @@ exports.getCrossRegions = getCrossRegions;
|
|
|
63
63
|
* import * as pulumi from "@pulumi/pulumi";
|
|
64
64
|
* import * as alicloud from "@pulumi/alicloud";
|
|
65
65
|
*
|
|
66
|
-
* // Declare the
|
|
66
|
+
* // Declare the function
|
|
67
67
|
* const crossRegions = alicloud.rds.getCrossRegions({});
|
|
68
68
|
* export const firstRdsCrossRegions = regions.ids[0];
|
|
69
69
|
* ```
|
package/redis/backup.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
28
28
|
* vpcId: _default.ids?.[0],
|
|
29
29
|
* }));
|
|
30
30
|
* const vswitch: alicloud.vpc.Switch[] = [];
|
|
31
|
-
* defaultGetSwitches.then(defaultGetSwitches => defaultGetSwitches.ids
|
|
31
|
+
* defaultGetSwitches.then(defaultGetSwitches => defaultGetSwitches.ids.length).apply(length => {
|
|
32
32
|
* for (let range = 0; range < (length > 0 ? 0 : 1); range++) {
|
|
33
33
|
* vswitch.push(new alicloud.vpc.Switch(`vswitch-${range}`, {
|
|
34
34
|
* vpcId: _default.then(_default => _default.ids?.[0]),
|
|
@@ -42,12 +42,12 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
42
42
|
* }));
|
|
43
43
|
* }
|
|
44
44
|
* });
|
|
45
|
-
* const vswitchId =
|
|
45
|
+
* const vswitchId = Promise.all([defaultGetSwitches.then(defaultGetSwitches => defaultGetSwitches.ids.length), defaultGetSwitches, std.concat({
|
|
46
46
|
* input: [
|
|
47
47
|
* vswitch.map(__item => __item.id),
|
|
48
48
|
* [""],
|
|
49
49
|
* ],
|
|
50
|
-
* })]).
|
|
50
|
+
* })]).then(([length, defaultGetSwitches, invoke]) => length > 0 ? defaultGetSwitches.ids?.[0] : invoke.result?.[0]);
|
|
51
51
|
* const defaultInstance = new alicloud.kvstore.Instance("default", {
|
|
52
52
|
* port: 6379,
|
|
53
53
|
* paymentType: "PrePaid",
|
|
@@ -55,7 +55,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
55
55
|
* password: "123456_tf",
|
|
56
56
|
* engineVersion: "5.0",
|
|
57
57
|
* zoneId: zoneId,
|
|
58
|
-
* vswitchId: vswitchId,
|
|
58
|
+
* vswitchId: String(vswitchId),
|
|
59
59
|
* period: "1",
|
|
60
60
|
* instanceClass: "redis.shard.small.2.ce",
|
|
61
61
|
* });
|
package/redis/backup.js
CHANGED
|
@@ -57,7 +57,7 @@ const utilities = __importStar(require("../utilities"));
|
|
|
57
57
|
* vpcId: _default.ids?.[0],
|
|
58
58
|
* }));
|
|
59
59
|
* const vswitch: alicloud.vpc.Switch[] = [];
|
|
60
|
-
* defaultGetSwitches.then(defaultGetSwitches => defaultGetSwitches.ids
|
|
60
|
+
* defaultGetSwitches.then(defaultGetSwitches => defaultGetSwitches.ids.length).apply(length => {
|
|
61
61
|
* for (let range = 0; range < (length > 0 ? 0 : 1); range++) {
|
|
62
62
|
* vswitch.push(new alicloud.vpc.Switch(`vswitch-${range}`, {
|
|
63
63
|
* vpcId: _default.then(_default => _default.ids?.[0]),
|
|
@@ -71,12 +71,12 @@ const utilities = __importStar(require("../utilities"));
|
|
|
71
71
|
* }));
|
|
72
72
|
* }
|
|
73
73
|
* });
|
|
74
|
-
* const vswitchId =
|
|
74
|
+
* const vswitchId = Promise.all([defaultGetSwitches.then(defaultGetSwitches => defaultGetSwitches.ids.length), defaultGetSwitches, std.concat({
|
|
75
75
|
* input: [
|
|
76
76
|
* vswitch.map(__item => __item.id),
|
|
77
77
|
* [""],
|
|
78
78
|
* ],
|
|
79
|
-
* })]).
|
|
79
|
+
* })]).then(([length, defaultGetSwitches, invoke]) => length > 0 ? defaultGetSwitches.ids?.[0] : invoke.result?.[0]);
|
|
80
80
|
* const defaultInstance = new alicloud.kvstore.Instance("default", {
|
|
81
81
|
* port: 6379,
|
|
82
82
|
* paymentType: "PrePaid",
|
|
@@ -84,7 +84,7 @@ const utilities = __importStar(require("../utilities"));
|
|
|
84
84
|
* password: "123456_tf",
|
|
85
85
|
* engineVersion: "5.0",
|
|
86
86
|
* zoneId: zoneId,
|
|
87
|
-
* vswitchId: vswitchId,
|
|
87
|
+
* vswitchId: String(vswitchId),
|
|
88
88
|
* period: "1",
|
|
89
89
|
* instanceClass: "redis.shard.small.2.ce",
|
|
90
90
|
* });
|
|
@@ -16,7 +16,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
16
16
|
*
|
|
17
17
|
* const _default = alicloud.resourcemanager.getResourceDirectories({});
|
|
18
18
|
* const defaultResourceDirectory: alicloud.resourcemanager.ResourceDirectory[] = [];
|
|
19
|
-
* _default.then(_default => _default.directories
|
|
19
|
+
* _default.then(_default => _default.directories.length).apply(length => {
|
|
20
20
|
* for (let range = 0; range < (length > 0 ? 0 : 1); range++) {
|
|
21
21
|
* defaultResourceDirectory.push(new alicloud.resourcemanager.ResourceDirectory(`default-${range}`, {status: "Enabled"}));
|
|
22
22
|
* }
|
|
@@ -45,7 +45,7 @@ const utilities = __importStar(require("../utilities"));
|
|
|
45
45
|
*
|
|
46
46
|
* const _default = alicloud.resourcemanager.getResourceDirectories({});
|
|
47
47
|
* const defaultResourceDirectory: alicloud.resourcemanager.ResourceDirectory[] = [];
|
|
48
|
-
* _default.then(_default => _default.directories
|
|
48
|
+
* _default.then(_default => _default.directories.length).apply(length => {
|
|
49
49
|
* for (let range = 0; range < (length > 0 ? 0 : 1); range++) {
|
|
50
50
|
* defaultResourceDirectory.push(new alicloud.resourcemanager.ResourceDirectory(`default-${range}`, {status: "Enabled"}));
|
|
51
51
|
* }
|
|
@@ -24,19 +24,19 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
24
24
|
* nameRegex: "default-NODELETING",
|
|
25
25
|
* });
|
|
26
26
|
* const defaultNetwork: alicloud.vpc.Network[] = [];
|
|
27
|
-
* defaultGetNetworks.then(defaultGetNetworks => defaultGetNetworks.ids
|
|
27
|
+
* defaultGetNetworks.then(defaultGetNetworks => defaultGetNetworks.ids.length).apply(length => {
|
|
28
28
|
* for (let range = 0; range < (length > 0 ? 0 : 1); range++) {
|
|
29
29
|
* defaultNetwork.push(new alicloud.vpc.Network(`default-${range}`, {}));
|
|
30
30
|
* }
|
|
31
31
|
* });
|
|
32
32
|
* const defaultGetSwitches = alicloud.vpc.getSwitchesOutput({
|
|
33
|
-
* vpcId: pulumi.all([defaultGetNetworks.then(defaultGetNetworks => defaultGetNetworks.ids
|
|
33
|
+
* vpcId: pulumi.all([defaultGetNetworks.then(defaultGetNetworks => defaultGetNetworks.ids.length), defaultGetNetworks, defaultNetwork[0].id]).apply(([length, defaultGetNetworks, id]) => length > 0 ? defaultGetNetworks.ids?.[0] : id),
|
|
34
34
|
* });
|
|
35
35
|
* const defaultSwitch: alicloud.vpc.Switch[] = [];
|
|
36
|
-
* defaultGetSwitches.ids.length.apply(length => {
|
|
36
|
+
* defaultGetSwitches.apply(defaultGetSwitches => defaultGetSwitches.ids.length).apply(length => {
|
|
37
37
|
* for (let range = 0; range < (length > 0 ? 0 : 1); range++) {
|
|
38
38
|
* defaultSwitch.push(new alicloud.vpc.Switch(`default-${range}`, {
|
|
39
|
-
* vpcId: pulumi.all([defaultGetNetworks.then(defaultGetNetworks => defaultGetNetworks.ids
|
|
39
|
+
* vpcId: pulumi.all([defaultGetNetworks.then(defaultGetNetworks => defaultGetNetworks.ids.length), defaultGetNetworks, defaultNetwork[0].id]).apply(([length, defaultGetNetworks, id]) => length > 0 ? defaultGetNetworks.ids?.[0] : id),
|
|
40
40
|
* cidrBlock: defaultGetNetworks.then(defaultGetNetworks => std.cidrsubnet({
|
|
41
41
|
* input: defaultGetNetworks.vpcs?.[0]?.cidrBlock,
|
|
42
42
|
* newbits: 8,
|
|
@@ -51,8 +51,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
51
51
|
* version: "v1.21.6.103-g5ddeaef7-aliyun",
|
|
52
52
|
* edition: "Default",
|
|
53
53
|
* network: {
|
|
54
|
-
* vpcId: pulumi.all([defaultGetNetworks.then(defaultGetNetworks => defaultGetNetworks.ids
|
|
55
|
-
* vswitcheLists: [pulumi.all([defaultGetSwitches.ids.length, defaultGetSwitches, defaultSwitch[0].id]).apply(([length, defaultGetSwitches, id]) => length > 0 ? defaultGetSwitches.ids?.[0] : id)],
|
|
54
|
+
* vpcId: pulumi.all([defaultGetNetworks.then(defaultGetNetworks => defaultGetNetworks.ids.length), defaultGetNetworks, defaultNetwork[0].id]).apply(([length, defaultGetNetworks, id]) => length > 0 ? defaultGetNetworks.ids?.[0] : id),
|
|
55
|
+
* vswitcheLists: [pulumi.all([defaultGetSwitches.apply(defaultGetSwitches => defaultGetSwitches.ids.length), defaultGetSwitches, defaultSwitch[0].id]).apply(([length, defaultGetSwitches, id]) => length > 0 ? defaultGetSwitches.ids?.[0] : id)],
|
|
56
56
|
* },
|
|
57
57
|
* });
|
|
58
58
|
* const defaultExtensionProvider = new alicloud.servicemesh.ExtensionProvider("default", {
|
|
@@ -53,19 +53,19 @@ const utilities = __importStar(require("../utilities"));
|
|
|
53
53
|
* nameRegex: "default-NODELETING",
|
|
54
54
|
* });
|
|
55
55
|
* const defaultNetwork: alicloud.vpc.Network[] = [];
|
|
56
|
-
* defaultGetNetworks.then(defaultGetNetworks => defaultGetNetworks.ids
|
|
56
|
+
* defaultGetNetworks.then(defaultGetNetworks => defaultGetNetworks.ids.length).apply(length => {
|
|
57
57
|
* for (let range = 0; range < (length > 0 ? 0 : 1); range++) {
|
|
58
58
|
* defaultNetwork.push(new alicloud.vpc.Network(`default-${range}`, {}));
|
|
59
59
|
* }
|
|
60
60
|
* });
|
|
61
61
|
* const defaultGetSwitches = alicloud.vpc.getSwitchesOutput({
|
|
62
|
-
* vpcId: pulumi.all([defaultGetNetworks.then(defaultGetNetworks => defaultGetNetworks.ids
|
|
62
|
+
* vpcId: pulumi.all([defaultGetNetworks.then(defaultGetNetworks => defaultGetNetworks.ids.length), defaultGetNetworks, defaultNetwork[0].id]).apply(([length, defaultGetNetworks, id]) => length > 0 ? defaultGetNetworks.ids?.[0] : id),
|
|
63
63
|
* });
|
|
64
64
|
* const defaultSwitch: alicloud.vpc.Switch[] = [];
|
|
65
|
-
* defaultGetSwitches.ids.length.apply(length => {
|
|
65
|
+
* defaultGetSwitches.apply(defaultGetSwitches => defaultGetSwitches.ids.length).apply(length => {
|
|
66
66
|
* for (let range = 0; range < (length > 0 ? 0 : 1); range++) {
|
|
67
67
|
* defaultSwitch.push(new alicloud.vpc.Switch(`default-${range}`, {
|
|
68
|
-
* vpcId: pulumi.all([defaultGetNetworks.then(defaultGetNetworks => defaultGetNetworks.ids
|
|
68
|
+
* vpcId: pulumi.all([defaultGetNetworks.then(defaultGetNetworks => defaultGetNetworks.ids.length), defaultGetNetworks, defaultNetwork[0].id]).apply(([length, defaultGetNetworks, id]) => length > 0 ? defaultGetNetworks.ids?.[0] : id),
|
|
69
69
|
* cidrBlock: defaultGetNetworks.then(defaultGetNetworks => std.cidrsubnet({
|
|
70
70
|
* input: defaultGetNetworks.vpcs?.[0]?.cidrBlock,
|
|
71
71
|
* newbits: 8,
|
|
@@ -80,8 +80,8 @@ const utilities = __importStar(require("../utilities"));
|
|
|
80
80
|
* version: "v1.21.6.103-g5ddeaef7-aliyun",
|
|
81
81
|
* edition: "Default",
|
|
82
82
|
* network: {
|
|
83
|
-
* vpcId: pulumi.all([defaultGetNetworks.then(defaultGetNetworks => defaultGetNetworks.ids
|
|
84
|
-
* vswitcheLists: [pulumi.all([defaultGetSwitches.ids.length, defaultGetSwitches, defaultSwitch[0].id]).apply(([length, defaultGetSwitches, id]) => length > 0 ? defaultGetSwitches.ids?.[0] : id)],
|
|
83
|
+
* vpcId: pulumi.all([defaultGetNetworks.then(defaultGetNetworks => defaultGetNetworks.ids.length), defaultGetNetworks, defaultNetwork[0].id]).apply(([length, defaultGetNetworks, id]) => length > 0 ? defaultGetNetworks.ids?.[0] : id),
|
|
84
|
+
* vswitcheLists: [pulumi.all([defaultGetSwitches.apply(defaultGetSwitches => defaultGetSwitches.ids.length), defaultGetSwitches, defaultSwitch[0].id]).apply(([length, defaultGetSwitches, id]) => length > 0 ? defaultGetSwitches.ids?.[0] : id)],
|
|
85
85
|
* },
|
|
86
86
|
* });
|
|
87
87
|
* const defaultExtensionProvider = new alicloud.servicemesh.ExtensionProvider("default", {
|
package/vpc/bgpGroup.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
30
30
|
* peeringSubnetMask: "255.255.255.252",
|
|
31
31
|
* physicalConnectionId: example.then(example => example.connections?.[0]?.id),
|
|
32
32
|
* virtualBorderRouterName: name,
|
|
33
|
-
* vlanId:
|
|
33
|
+
* vlanId: vlanId.id,
|
|
34
34
|
* minRxInterval: 1000,
|
|
35
35
|
* minTxInterval: 1000,
|
|
36
36
|
* detectMultiplier: 10,
|