@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
|
@@ -61,7 +61,7 @@ const utilities = __importStar(require("../utilities"));
|
|
|
61
61
|
* peeringSubnetMask: "255.255.255.252",
|
|
62
62
|
* physicalConnectionId: _default.then(_default => _default.connections?.[0]?.id),
|
|
63
63
|
* virtualBorderRouterName: name,
|
|
64
|
-
* vlanId:
|
|
64
|
+
* vlanId: defaultInteger.id,
|
|
65
65
|
* minRxInterval: 1000,
|
|
66
66
|
* minTxInterval: 1000,
|
|
67
67
|
* detectMultiplier: 10,
|
|
@@ -31,7 +31,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
31
31
|
* orderMode: "PayByPhysicalConnectionOwner",
|
|
32
32
|
* parentPhysicalConnectionId: example.then(example => example.ids?.[0]),
|
|
33
33
|
* spec: "50M",
|
|
34
|
-
* vlanId:
|
|
34
|
+
* vlanId: vlanId.id,
|
|
35
35
|
* vpconnAliUid: _default.then(_default => _default.id),
|
|
36
36
|
* });
|
|
37
37
|
* ```
|
|
@@ -60,7 +60,7 @@ const utilities = __importStar(require("../utilities"));
|
|
|
60
60
|
* orderMode: "PayByPhysicalConnectionOwner",
|
|
61
61
|
* parentPhysicalConnectionId: example.then(example => example.ids?.[0]),
|
|
62
62
|
* spec: "50M",
|
|
63
|
-
* vlanId:
|
|
63
|
+
* vlanId: vlanId.id,
|
|
64
64
|
* vpconnAliUid: _default.then(_default => _default.id),
|
|
65
65
|
* });
|
|
66
66
|
* ```
|
package/fc/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.fc.getZones({});
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
@@ -54,7 +54,7 @@ export interface GetZonesResult {
|
|
|
54
54
|
* import * as pulumi from "@pulumi/pulumi";
|
|
55
55
|
* import * as alicloud from "@pulumi/alicloud";
|
|
56
56
|
*
|
|
57
|
-
* // Declare the
|
|
57
|
+
* // Declare the function
|
|
58
58
|
* const zonesIds = alicloud.fc.getZones({});
|
|
59
59
|
* ```
|
|
60
60
|
*/
|
package/fc/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.fc.getZones({});
|
|
44
44
|
* ```
|
|
45
45
|
*/
|
|
@@ -62,7 +62,7 @@ exports.getZones = getZones;
|
|
|
62
62
|
* import * as pulumi from "@pulumi/pulumi";
|
|
63
63
|
* import * as alicloud from "@pulumi/alicloud";
|
|
64
64
|
*
|
|
65
|
-
* // Declare the
|
|
65
|
+
* // Declare the function
|
|
66
66
|
* const zonesIds = alicloud.fc.getZones({});
|
|
67
67
|
* ```
|
|
68
68
|
*/
|
package/ga/getDomains.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ import * as outputs from "../types/output";
|
|
|
15
15
|
* status: "active",
|
|
16
16
|
* });
|
|
17
17
|
* const defaultAccelerator: alicloud.ga.Accelerator[] = [];
|
|
18
|
-
* _default.then(_default => _default.accelerators
|
|
18
|
+
* _default.then(_default => _default.accelerators.length).apply(length => {
|
|
19
19
|
* for (let range = 0; range < (length > 0 ? 0 : 1); range++) {
|
|
20
20
|
* defaultAccelerator.push(new alicloud.ga.Accelerator(`default-${range}`, {
|
|
21
21
|
* duration: 1,
|
|
@@ -24,7 +24,7 @@ import * as outputs from "../types/output";
|
|
|
24
24
|
* }));
|
|
25
25
|
* }
|
|
26
26
|
* });
|
|
27
|
-
* const acceleratorId = pulumi.all([_default.then(_default => _default.accelerators
|
|
27
|
+
* const acceleratorId = pulumi.all([_default.then(_default => _default.accelerators.length), _default, defaultAccelerator[0].id]).apply(([length, _default, id]) => length > 0 ? _default.accelerators?.[0]?.id : id);
|
|
28
28
|
* const defaultGetDomains = alicloud.ga.getDomains({
|
|
29
29
|
* acceleratorId: acceleratorIdLocals,
|
|
30
30
|
* domain: "your_domain",
|
|
@@ -104,7 +104,7 @@ export interface GetDomainsResult {
|
|
|
104
104
|
* status: "active",
|
|
105
105
|
* });
|
|
106
106
|
* const defaultAccelerator: alicloud.ga.Accelerator[] = [];
|
|
107
|
-
* _default.then(_default => _default.accelerators
|
|
107
|
+
* _default.then(_default => _default.accelerators.length).apply(length => {
|
|
108
108
|
* for (let range = 0; range < (length > 0 ? 0 : 1); range++) {
|
|
109
109
|
* defaultAccelerator.push(new alicloud.ga.Accelerator(`default-${range}`, {
|
|
110
110
|
* duration: 1,
|
|
@@ -113,7 +113,7 @@ export interface GetDomainsResult {
|
|
|
113
113
|
* }));
|
|
114
114
|
* }
|
|
115
115
|
* });
|
|
116
|
-
* const acceleratorId = pulumi.all([_default.then(_default => _default.accelerators
|
|
116
|
+
* const acceleratorId = pulumi.all([_default.then(_default => _default.accelerators.length), _default, defaultAccelerator[0].id]).apply(([length, _default, id]) => length > 0 ? _default.accelerators?.[0]?.id : id);
|
|
117
117
|
* const defaultGetDomains = alicloud.ga.getDomains({
|
|
118
118
|
* acceleratorId: acceleratorIdLocals,
|
|
119
119
|
* domain: "your_domain",
|
package/ga/getDomains.js
CHANGED
|
@@ -43,7 +43,7 @@ const utilities = __importStar(require("../utilities"));
|
|
|
43
43
|
* status: "active",
|
|
44
44
|
* });
|
|
45
45
|
* const defaultAccelerator: alicloud.ga.Accelerator[] = [];
|
|
46
|
-
* _default.then(_default => _default.accelerators
|
|
46
|
+
* _default.then(_default => _default.accelerators.length).apply(length => {
|
|
47
47
|
* for (let range = 0; range < (length > 0 ? 0 : 1); range++) {
|
|
48
48
|
* defaultAccelerator.push(new alicloud.ga.Accelerator(`default-${range}`, {
|
|
49
49
|
* duration: 1,
|
|
@@ -52,7 +52,7 @@ const utilities = __importStar(require("../utilities"));
|
|
|
52
52
|
* }));
|
|
53
53
|
* }
|
|
54
54
|
* });
|
|
55
|
-
* const acceleratorId = pulumi.all([_default.then(_default => _default.accelerators
|
|
55
|
+
* const acceleratorId = pulumi.all([_default.then(_default => _default.accelerators.length), _default, defaultAccelerator[0].id]).apply(([length, _default, id]) => length > 0 ? _default.accelerators?.[0]?.id : id);
|
|
56
56
|
* const defaultGetDomains = alicloud.ga.getDomains({
|
|
57
57
|
* acceleratorId: acceleratorIdLocals,
|
|
58
58
|
* domain: "your_domain",
|
|
@@ -89,7 +89,7 @@ exports.getDomains = getDomains;
|
|
|
89
89
|
* status: "active",
|
|
90
90
|
* });
|
|
91
91
|
* const defaultAccelerator: alicloud.ga.Accelerator[] = [];
|
|
92
|
-
* _default.then(_default => _default.accelerators
|
|
92
|
+
* _default.then(_default => _default.accelerators.length).apply(length => {
|
|
93
93
|
* for (let range = 0; range < (length > 0 ? 0 : 1); range++) {
|
|
94
94
|
* defaultAccelerator.push(new alicloud.ga.Accelerator(`default-${range}`, {
|
|
95
95
|
* duration: 1,
|
|
@@ -98,7 +98,7 @@ exports.getDomains = getDomains;
|
|
|
98
98
|
* }));
|
|
99
99
|
* }
|
|
100
100
|
* });
|
|
101
|
-
* const acceleratorId = pulumi.all([_default.then(_default => _default.accelerators
|
|
101
|
+
* const acceleratorId = pulumi.all([_default.then(_default => _default.accelerators.length), _default, defaultAccelerator[0].id]).apply(([length, _default, id]) => length > 0 ? _default.accelerators?.[0]?.id : id);
|
|
102
102
|
* const defaultGetDomains = alicloud.ga.getDomains({
|
|
103
103
|
* acceleratorId: acceleratorIdLocals,
|
|
104
104
|
* domain: "your_domain",
|
package/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 zonesDs = alicloud.getZones({
|
|
16
16
|
* availableInstanceType: "ecs.n4.large",
|
|
17
17
|
* availableDiskCategory: "cloud_ssd",
|
|
@@ -116,7 +116,7 @@ export interface GetZonesResult {
|
|
|
116
116
|
* import * as pulumi from "@pulumi/pulumi";
|
|
117
117
|
* import * as alicloud from "@pulumi/alicloud";
|
|
118
118
|
*
|
|
119
|
-
* // Declare the
|
|
119
|
+
* // Declare the function
|
|
120
120
|
* const zonesDs = alicloud.getZones({
|
|
121
121
|
* availableInstanceType: "ecs.n4.large",
|
|
122
122
|
* availableDiskCategory: "cloud_ssd",
|
package/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 zonesDs = alicloud.getZones({
|
|
44
44
|
* availableInstanceType: "ecs.n4.large",
|
|
45
45
|
* availableDiskCategory: "cloud_ssd",
|
|
@@ -75,7 +75,7 @@ exports.getZones = getZones;
|
|
|
75
75
|
* import * as pulumi from "@pulumi/pulumi";
|
|
76
76
|
* import * as alicloud from "@pulumi/alicloud";
|
|
77
77
|
*
|
|
78
|
-
* // Declare the
|
|
78
|
+
* // Declare the function
|
|
79
79
|
* const zonesDs = alicloud.getZones({
|
|
80
80
|
* availableInstanceType: "ecs.n4.large",
|
|
81
81
|
* availableDiskCategory: "cloud_ssd",
|
package/gpdb/backupPolicy.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
26
26
|
* zoneId: _default.ids?.[0],
|
|
27
27
|
* }));
|
|
28
28
|
* const vswitch: alicloud.vpc.Switch[] = [];
|
|
29
|
-
* defaultGetSwitches.then(defaultGetSwitches => defaultGetSwitches.ids
|
|
29
|
+
* defaultGetSwitches.then(defaultGetSwitches => defaultGetSwitches.ids.length).apply(length => {
|
|
30
30
|
* for (let range = 0; range < (length > 0 ? 0 : 1); range++) {
|
|
31
31
|
* vswitch.push(new alicloud.vpc.Switch(`vswitch-${range}`, {
|
|
32
32
|
* vpcId: defaultGetNetworks.then(defaultGetNetworks => defaultGetNetworks.ids?.[0]),
|
|
@@ -40,12 +40,12 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
40
40
|
* }));
|
|
41
41
|
* }
|
|
42
42
|
* });
|
|
43
|
-
* const vswitchId =
|
|
43
|
+
* const vswitchId = Promise.all([defaultGetSwitches.then(defaultGetSwitches => defaultGetSwitches.ids.length), defaultGetSwitches, std.concat({
|
|
44
44
|
* input: [
|
|
45
45
|
* vswitch.map(__item => __item.id),
|
|
46
46
|
* [""],
|
|
47
47
|
* ],
|
|
48
|
-
* })]).
|
|
48
|
+
* })]).then(([length, defaultGetSwitches, invoke]) => length > 0 ? defaultGetSwitches.ids?.[0] : invoke.result?.[0]);
|
|
49
49
|
* const defaultInstance = new alicloud.gpdb.Instance("default", {
|
|
50
50
|
* dbInstanceCategory: "HighAvailability",
|
|
51
51
|
* dbInstanceClass: "gpdb.group.segsdx1",
|
|
@@ -61,7 +61,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
61
61
|
* segNodeNum: 4,
|
|
62
62
|
* storageSize: 50,
|
|
63
63
|
* vpcId: defaultGetNetworks.then(defaultGetNetworks => defaultGetNetworks.ids?.[0]),
|
|
64
|
-
* vswitchId: vswitchId,
|
|
64
|
+
* vswitchId: String(vswitchId),
|
|
65
65
|
* ipWhitelists: [{
|
|
66
66
|
* securityIpList: "127.0.0.1",
|
|
67
67
|
* }],
|
package/gpdb/backupPolicy.js
CHANGED
|
@@ -55,7 +55,7 @@ const utilities = __importStar(require("../utilities"));
|
|
|
55
55
|
* zoneId: _default.ids?.[0],
|
|
56
56
|
* }));
|
|
57
57
|
* const vswitch: alicloud.vpc.Switch[] = [];
|
|
58
|
-
* defaultGetSwitches.then(defaultGetSwitches => defaultGetSwitches.ids
|
|
58
|
+
* defaultGetSwitches.then(defaultGetSwitches => defaultGetSwitches.ids.length).apply(length => {
|
|
59
59
|
* for (let range = 0; range < (length > 0 ? 0 : 1); range++) {
|
|
60
60
|
* vswitch.push(new alicloud.vpc.Switch(`vswitch-${range}`, {
|
|
61
61
|
* vpcId: defaultGetNetworks.then(defaultGetNetworks => defaultGetNetworks.ids?.[0]),
|
|
@@ -69,12 +69,12 @@ const utilities = __importStar(require("../utilities"));
|
|
|
69
69
|
* }));
|
|
70
70
|
* }
|
|
71
71
|
* });
|
|
72
|
-
* const vswitchId =
|
|
72
|
+
* const vswitchId = Promise.all([defaultGetSwitches.then(defaultGetSwitches => defaultGetSwitches.ids.length), defaultGetSwitches, std.concat({
|
|
73
73
|
* input: [
|
|
74
74
|
* vswitch.map(__item => __item.id),
|
|
75
75
|
* [""],
|
|
76
76
|
* ],
|
|
77
|
-
* })]).
|
|
77
|
+
* })]).then(([length, defaultGetSwitches, invoke]) => length > 0 ? defaultGetSwitches.ids?.[0] : invoke.result?.[0]);
|
|
78
78
|
* const defaultInstance = new alicloud.gpdb.Instance("default", {
|
|
79
79
|
* dbInstanceCategory: "HighAvailability",
|
|
80
80
|
* dbInstanceClass: "gpdb.group.segsdx1",
|
|
@@ -90,7 +90,7 @@ const utilities = __importStar(require("../utilities"));
|
|
|
90
90
|
* segNodeNum: 4,
|
|
91
91
|
* storageSize: 50,
|
|
92
92
|
* vpcId: defaultGetNetworks.then(defaultGetNetworks => defaultGetNetworks.ids?.[0]),
|
|
93
|
-
* vswitchId: vswitchId,
|
|
93
|
+
* vswitchId: String(vswitchId),
|
|
94
94
|
* ipWhitelists: [{
|
|
95
95
|
* securityIpList: "127.0.0.1",
|
|
96
96
|
* }],
|
package/gpdb/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.gpdb.getZones({});
|
|
16
16
|
* // Create an Gpdb instance with the first matched zone
|
|
17
17
|
* const hbase = new alicloud.hbase.Instance("hbase", {availabilityZone: zonesIds.then(zonesIds => zonesIds.zones?.[0]?.id)});
|
|
@@ -61,7 +61,7 @@ export interface GetZonesResult {
|
|
|
61
61
|
* import * as pulumi from "@pulumi/pulumi";
|
|
62
62
|
* import * as alicloud from "@pulumi/alicloud";
|
|
63
63
|
*
|
|
64
|
-
* // Declare the
|
|
64
|
+
* // Declare the function
|
|
65
65
|
* const zonesIds = alicloud.gpdb.getZones({});
|
|
66
66
|
* // Create an Gpdb instance with the first matched zone
|
|
67
67
|
* const hbase = new alicloud.hbase.Instance("hbase", {availabilityZone: zonesIds.then(zonesIds => zonesIds.zones?.[0]?.id)});
|
package/gpdb/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.gpdb.getZones({});
|
|
44
44
|
* // Create an Gpdb instance with the first matched zone
|
|
45
45
|
* const hbase = new alicloud.hbase.Instance("hbase", {availabilityZone: zonesIds.then(zonesIds => zonesIds.zones?.[0]?.id)});
|
|
@@ -65,7 +65,7 @@ exports.getZones = getZones;
|
|
|
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 zonesIds = alicloud.gpdb.getZones({});
|
|
70
70
|
* // Create an Gpdb instance with the first matched zone
|
|
71
71
|
* const hbase = new alicloud.hbase.Instance("hbase", {availabilityZone: zonesIds.then(zonesIds => zonesIds.zones?.[0]?.id)});
|
package/kms/getAliases.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 kmsAliases = alicloud.kms.getAliases({
|
|
16
16
|
* ids: ["d89e8a53-b708-41aa-8c67-6873axxx"],
|
|
17
17
|
* nameRegex: "alias/tf-example",
|
|
@@ -71,7 +71,7 @@ export interface GetAliasesResult {
|
|
|
71
71
|
* import * as pulumi from "@pulumi/pulumi";
|
|
72
72
|
* import * as alicloud from "@pulumi/alicloud";
|
|
73
73
|
*
|
|
74
|
-
* // Declare the
|
|
74
|
+
* // Declare the function
|
|
75
75
|
* const kmsAliases = alicloud.kms.getAliases({
|
|
76
76
|
* ids: ["d89e8a53-b708-41aa-8c67-6873axxx"],
|
|
77
77
|
* nameRegex: "alias/tf-example",
|
package/kms/getAliases.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 kmsAliases = alicloud.kms.getAliases({
|
|
44
44
|
* ids: ["d89e8a53-b708-41aa-8c67-6873axxx"],
|
|
45
45
|
* nameRegex: "alias/tf-example",
|
|
@@ -68,7 +68,7 @@ exports.getAliases = getAliases;
|
|
|
68
68
|
* import * as pulumi from "@pulumi/pulumi";
|
|
69
69
|
* import * as alicloud from "@pulumi/alicloud";
|
|
70
70
|
*
|
|
71
|
-
* // Declare the
|
|
71
|
+
* // Declare the function
|
|
72
72
|
* const kmsAliases = alicloud.kms.getAliases({
|
|
73
73
|
* ids: ["d89e8a53-b708-41aa-8c67-6873axxx"],
|
|
74
74
|
* nameRegex: "alias/tf-example",
|
package/kms/getKeyVersions.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 alicloudKmsKeyVersionsDs = alicloud.kms.getKeyVersions({
|
|
16
16
|
* keyId: "08438c-b4d5-4d05-928c-07b7xxxx",
|
|
17
17
|
* ids: ["d89e8a53-b708-41aa-8c67-6873axxx"],
|
|
@@ -70,7 +70,7 @@ export interface GetKeyVersionsResult {
|
|
|
70
70
|
* import * as pulumi from "@pulumi/pulumi";
|
|
71
71
|
* import * as alicloud from "@pulumi/alicloud";
|
|
72
72
|
*
|
|
73
|
-
* // Declare the
|
|
73
|
+
* // Declare the function
|
|
74
74
|
* const alicloudKmsKeyVersionsDs = alicloud.kms.getKeyVersions({
|
|
75
75
|
* keyId: "08438c-b4d5-4d05-928c-07b7xxxx",
|
|
76
76
|
* ids: ["d89e8a53-b708-41aa-8c67-6873axxx"],
|
package/kms/getKeyVersions.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 alicloudKmsKeyVersionsDs = alicloud.kms.getKeyVersions({
|
|
44
44
|
* keyId: "08438c-b4d5-4d05-928c-07b7xxxx",
|
|
45
45
|
* ids: ["d89e8a53-b708-41aa-8c67-6873axxx"],
|
|
@@ -67,7 +67,7 @@ exports.getKeyVersions = getKeyVersions;
|
|
|
67
67
|
* import * as pulumi from "@pulumi/pulumi";
|
|
68
68
|
* import * as alicloud from "@pulumi/alicloud";
|
|
69
69
|
*
|
|
70
|
-
* // Declare the
|
|
70
|
+
* // Declare the function
|
|
71
71
|
* const alicloudKmsKeyVersionsDs = alicloud.kms.getKeyVersions({
|
|
72
72
|
* keyId: "08438c-b4d5-4d05-928c-07b7xxxx",
|
|
73
73
|
* ids: ["d89e8a53-b708-41aa-8c67-6873axxx"],
|
package/kms/getKeys.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ import * as outputs from "../types/output";
|
|
|
13
13
|
* import * as pulumi from "@pulumi/pulumi";
|
|
14
14
|
* import * as alicloud from "@pulumi/alicloud";
|
|
15
15
|
*
|
|
16
|
-
* // Declare the
|
|
16
|
+
* // Declare the function
|
|
17
17
|
* const kmsKeysDs = alicloud.kms.getKeys({
|
|
18
18
|
* descriptionRegex: "Hello KMS",
|
|
19
19
|
* outputFile: "kms_keys.json",
|
|
@@ -90,7 +90,7 @@ export interface GetKeysResult {
|
|
|
90
90
|
* import * as pulumi from "@pulumi/pulumi";
|
|
91
91
|
* import * as alicloud from "@pulumi/alicloud";
|
|
92
92
|
*
|
|
93
|
-
* // Declare the
|
|
93
|
+
* // Declare the function
|
|
94
94
|
* const kmsKeysDs = alicloud.kms.getKeys({
|
|
95
95
|
* descriptionRegex: "Hello KMS",
|
|
96
96
|
* outputFile: "kms_keys.json",
|
package/kms/getKeys.js
CHANGED
|
@@ -41,7 +41,7 @@ const utilities = __importStar(require("../utilities"));
|
|
|
41
41
|
* import * as pulumi from "@pulumi/pulumi";
|
|
42
42
|
* import * as alicloud from "@pulumi/alicloud";
|
|
43
43
|
*
|
|
44
|
-
* // Declare the
|
|
44
|
+
* // Declare the function
|
|
45
45
|
* const kmsKeysDs = alicloud.kms.getKeys({
|
|
46
46
|
* descriptionRegex: "Hello KMS",
|
|
47
47
|
* outputFile: "kms_keys.json",
|
|
@@ -75,7 +75,7 @@ exports.getKeys = getKeys;
|
|
|
75
75
|
* import * as pulumi from "@pulumi/pulumi";
|
|
76
76
|
* import * as alicloud from "@pulumi/alicloud";
|
|
77
77
|
*
|
|
78
|
-
* // Declare the
|
|
78
|
+
* // Declare the function
|
|
79
79
|
* const kmsKeysDs = alicloud.kms.getKeys({
|
|
80
80
|
* descriptionRegex: "Hello KMS",
|
|
81
81
|
* outputFile: "kms_keys.json",
|
|
@@ -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 kmsSecretVersionsDs = alicloud.kms.getSecretVersions({
|
|
16
16
|
* secretName: "secret_name",
|
|
17
17
|
* enableDetails: true,
|
|
@@ -85,7 +85,7 @@ export interface GetSecretVersionsResult {
|
|
|
85
85
|
* import * as pulumi from "@pulumi/pulumi";
|
|
86
86
|
* import * as alicloud from "@pulumi/alicloud";
|
|
87
87
|
*
|
|
88
|
-
* // Declare the
|
|
88
|
+
* // Declare the function
|
|
89
89
|
* const kmsSecretVersionsDs = alicloud.kms.getSecretVersions({
|
|
90
90
|
* secretName: "secret_name",
|
|
91
91
|
* enableDetails: true,
|
package/kms/getSecretVersions.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 kmsSecretVersionsDs = alicloud.kms.getSecretVersions({
|
|
44
44
|
* secretName: "secret_name",
|
|
45
45
|
* enableDetails: true,
|
|
@@ -70,7 +70,7 @@ exports.getSecretVersions = getSecretVersions;
|
|
|
70
70
|
* import * as pulumi from "@pulumi/pulumi";
|
|
71
71
|
* import * as alicloud from "@pulumi/alicloud";
|
|
72
72
|
*
|
|
73
|
-
* // Declare the
|
|
73
|
+
* // Declare the function
|
|
74
74
|
* const kmsSecretVersionsDs = alicloud.kms.getSecretVersions({
|
|
75
75
|
* secretName: "secret_name",
|
|
76
76
|
* enableDetails: true,
|
package/kms/getSecrets.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 kmsSecretsDs = alicloud.kms.getSecrets({
|
|
16
16
|
* fetchTags: true,
|
|
17
17
|
* nameRegex: "name_regex",
|
|
@@ -103,7 +103,7 @@ export interface GetSecretsResult {
|
|
|
103
103
|
* import * as pulumi from "@pulumi/pulumi";
|
|
104
104
|
* import * as alicloud from "@pulumi/alicloud";
|
|
105
105
|
*
|
|
106
|
-
* // Declare the
|
|
106
|
+
* // Declare the function
|
|
107
107
|
* const kmsSecretsDs = alicloud.kms.getSecrets({
|
|
108
108
|
* fetchTags: true,
|
|
109
109
|
* nameRegex: "name_regex",
|
package/kms/getSecrets.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 kmsSecretsDs = alicloud.kms.getSecrets({
|
|
44
44
|
* fetchTags: true,
|
|
45
45
|
* nameRegex: "name_regex",
|
|
@@ -76,7 +76,7 @@ exports.getSecrets = getSecrets;
|
|
|
76
76
|
* import * as pulumi from "@pulumi/pulumi";
|
|
77
77
|
* import * as alicloud from "@pulumi/alicloud";
|
|
78
78
|
*
|
|
79
|
-
* // Declare the
|
|
79
|
+
* // Declare the function
|
|
80
80
|
* const kmsSecretsDs = alicloud.kms.getSecrets({
|
|
81
81
|
* fetchTags: true,
|
|
82
82
|
* nameRegex: "name_regex",
|
|
@@ -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.kvstore.getConnections({
|
|
16
16
|
* ids: "r-wer123456",
|
|
17
17
|
* });
|
|
@@ -61,7 +61,7 @@ export interface GetConnectionsResult {
|
|
|
61
61
|
* import * as pulumi from "@pulumi/pulumi";
|
|
62
62
|
* import * as alicloud from "@pulumi/alicloud";
|
|
63
63
|
*
|
|
64
|
-
* // Declare the
|
|
64
|
+
* // Declare the function
|
|
65
65
|
* const example = alicloud.kvstore.getConnections({
|
|
66
66
|
* ids: "r-wer123456",
|
|
67
67
|
* });
|
|
@@ -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.kvstore.getConnections({
|
|
44
44
|
* ids: "r-wer123456",
|
|
45
45
|
* });
|
|
@@ -65,7 +65,7 @@ exports.getConnections = getConnections;
|
|
|
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 example = alicloud.kvstore.getConnections({
|
|
70
70
|
* ids: "r-wer123456",
|
|
71
71
|
* });
|
package/kvstore/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.kvstore.getZones({
|
|
16
16
|
* instanceChargeType: "PostPaid",
|
|
17
17
|
* });
|
|
@@ -74,7 +74,7 @@ export interface GetZonesResult {
|
|
|
74
74
|
* import * as pulumi from "@pulumi/pulumi";
|
|
75
75
|
* import * as alicloud from "@pulumi/alicloud";
|
|
76
76
|
*
|
|
77
|
-
* // Declare the
|
|
77
|
+
* // Declare the function
|
|
78
78
|
* const zonesIds = alicloud.kvstore.getZones({
|
|
79
79
|
* instanceChargeType: "PostPaid",
|
|
80
80
|
* });
|
package/kvstore/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.kvstore.getZones({
|
|
44
44
|
* instanceChargeType: "PostPaid",
|
|
45
45
|
* });
|
|
@@ -68,7 +68,7 @@ exports.getZones = getZones;
|
|
|
68
68
|
* import * as pulumi from "@pulumi/pulumi";
|
|
69
69
|
* import * as alicloud from "@pulumi/alicloud";
|
|
70
70
|
*
|
|
71
|
-
* // Declare the
|
|
71
|
+
* // Declare the function
|
|
72
72
|
* const zonesIds = alicloud.kvstore.getZones({
|
|
73
73
|
* instanceChargeType: "PostPaid",
|
|
74
74
|
* });
|
package/mongodb/account.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
17
17
|
* const config = new pulumi.Config();
|
|
18
18
|
* const name = config.get("name") || "terraform-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
|
* vpcName: name,
|
package/mongodb/account.js
CHANGED
|
@@ -46,7 +46,7 @@ const utilities = __importStar(require("../utilities"));
|
|
|
46
46
|
* const config = new pulumi.Config();
|
|
47
47
|
* const name = config.get("name") || "terraform-example";
|
|
48
48
|
* const _default = alicloud.mongodb.getZones({});
|
|
49
|
-
* const index = _default.then(_default => _default.zones
|
|
49
|
+
* const index = _default.then(_default => _default.zones.length).then(length => length - 1);
|
|
50
50
|
* const zoneId = _default.then(_default => _default.zones[index].id);
|
|
51
51
|
* const defaultNetwork = new alicloud.vpc.Network("default", {
|
|
52
52
|
* vpcName: name,
|
package/mongodb/auditPolicy.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
17
17
|
* const config = new pulumi.Config();
|
|
18
18
|
* const name = config.get("name") || "terraform-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
|
* vpcName: name,
|
package/mongodb/auditPolicy.js
CHANGED
|
@@ -46,7 +46,7 @@ const utilities = __importStar(require("../utilities"));
|
|
|
46
46
|
* const config = new pulumi.Config();
|
|
47
47
|
* const name = config.get("name") || "terraform-example";
|
|
48
48
|
* const _default = alicloud.mongodb.getZones({});
|
|
49
|
-
* const index = _default.then(_default => _default.zones
|
|
49
|
+
* const index = _default.then(_default => _default.zones.length).then(length => length - 1);
|
|
50
50
|
* const zoneId = _default.then(_default => _default.zones[index].id);
|
|
51
51
|
* const defaultNetwork = new alicloud.vpc.Network("default", {
|
|
52
52
|
* vpcName: name,
|
package/mongodb/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.mongodb.getZones({});
|
|
16
16
|
* // Create an mongoDB instance with the first matched zone
|
|
17
17
|
* const mongodb = new alicloud.mongodb.Instance("mongodb", {zoneId: zonesIds.then(zonesIds => zonesIds.zones?.[0]?.id)});
|
|
@@ -61,7 +61,7 @@ export interface GetZonesResult {
|
|
|
61
61
|
* import * as pulumi from "@pulumi/pulumi";
|
|
62
62
|
* import * as alicloud from "@pulumi/alicloud";
|
|
63
63
|
*
|
|
64
|
-
* // Declare the
|
|
64
|
+
* // Declare the function
|
|
65
65
|
* const zonesIds = alicloud.mongodb.getZones({});
|
|
66
66
|
* // Create an mongoDB instance with the first matched zone
|
|
67
67
|
* const mongodb = new alicloud.mongodb.Instance("mongodb", {zoneId: zonesIds.then(zonesIds => zonesIds.zones?.[0]?.id)});
|
package/mongodb/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.mongodb.getZones({});
|
|
44
44
|
* // Create an mongoDB instance with the first matched zone
|
|
45
45
|
* const mongodb = new alicloud.mongodb.Instance("mongodb", {zoneId: zonesIds.then(zonesIds => zonesIds.zones?.[0]?.id)});
|
|
@@ -65,7 +65,7 @@ exports.getZones = getZones;
|
|
|
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 zonesIds = alicloud.mongodb.getZones({});
|
|
70
70
|
* // Create an mongoDB instance with the first matched zone
|
|
71
71
|
* const mongodb = new alicloud.mongodb.Instance("mongodb", {zoneId: zonesIds.then(zonesIds => zonesIds.zones?.[0]?.id)});
|
package/mongodb/instance.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ import * as outputs from "../types/output";
|
|
|
23
23
|
* const config = new pulumi.Config();
|
|
24
24
|
* const name = config.get("name") || "terraform-example";
|
|
25
25
|
* const _default = alicloud.mongodb.getZones({});
|
|
26
|
-
* const index = _default.then(_default => _default.zones
|
|
26
|
+
* const index = _default.then(_default => _default.zones.length).then(length => length - 1);
|
|
27
27
|
* const zoneId = _default.then(_default => _default.zones[index].id);
|
|
28
28
|
* const defaultNetwork = new alicloud.vpc.Network("default", {
|
|
29
29
|
* vpcName: name,
|