@pulumi/alicloud 3.65.0 → 3.65.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/alb/loadBalancer.d.ts +1 -1
- package/arms/environment.d.ts +3 -3
- package/arms/getRemoteWrites.d.ts +4 -4
- package/arms/getRemoteWrites.js +4 -4
- package/arms/prometheusAlertRule.d.ts +30 -0
- package/arms/prometheusAlertRule.js +30 -0
- package/arms/prometheusAlertRule.js.map +1 -1
- package/arms/remoteWrite.d.ts +1 -1
- package/arms/remoteWrite.js +1 -1
- package/cen/transitRouterVbrAttachment.d.ts +54 -40
- package/cen/transitRouterVbrAttachment.js +12 -10
- package/cen/transitRouterVbrAttachment.js.map +1 -1
- package/cms/hybridMonitorFcTask.d.ts +14 -13
- package/cms/hybridMonitorFcTask.js +14 -13
- package/cms/hybridMonitorFcTask.js.map +1 -1
- package/cr/chain.d.ts +12 -7
- package/cr/chain.js +12 -7
- package/cr/chain.js.map +1 -1
- package/cr/chartRepository.d.ts +8 -3
- package/cr/chartRepository.js +8 -3
- package/cr/chartRepository.js.map +1 -1
- package/cr/repo.d.ts +4 -4
- package/cr/repo.js +2 -2
- package/cr/vpcEndpointLinkedVpc.d.ts +8 -3
- package/cr/vpcEndpointLinkedVpc.js +8 -3
- package/cr/vpcEndpointLinkedVpc.js.map +1 -1
- package/databasefilesystem/instanceAttachment.d.ts +30 -33
- package/databasefilesystem/instanceAttachment.js +25 -28
- package/databasefilesystem/instanceAttachment.js.map +1 -1
- package/databasefilesystem/snapshot.d.ts +24 -64
- package/databasefilesystem/snapshot.js +9 -49
- package/databasefilesystem/snapshot.js.map +1 -1
- package/ecs/instance.d.ts +3 -3
- package/ess/scalingConfiguration.d.ts +3 -3
- package/fc/trigger.d.ts +109 -68
- package/fc/trigger.js +109 -68
- package/fc/trigger.js.map +1 -1
- package/ga/customRoutingEndpointTrafficPolicy.d.ts +26 -25
- package/ga/customRoutingEndpointTrafficPolicy.js +26 -25
- package/ga/customRoutingEndpointTrafficPolicy.js.map +1 -1
- package/governance/account.d.ts +14 -6
- package/governance/account.js +2 -0
- package/governance/account.js.map +1 -1
- package/gpdb/instance.d.ts +52 -7
- package/gpdb/instance.js +8 -0
- package/gpdb/instance.js.map +1 -1
- package/kms/instance.d.ts +8 -0
- package/kms/instance.js +2 -0
- package/kms/instance.js.map +1 -1
- package/nas/dataFlow.d.ts +3 -3
- package/nas/dataFlow.js +3 -3
- package/nas/fileset.d.ts +3 -3
- package/nas/fileset.js +3 -3
- package/nas/lifecyclePolicy.d.ts +3 -3
- package/nas/lifecyclePolicy.js +3 -3
- package/nas/recycleBin.d.ts +3 -3
- package/nas/recycleBin.js +3 -3
- package/nas/snapshot.d.ts +3 -3
- package/nas/snapshot.js +3 -3
- package/package.json +2 -2
- package/redis/tairInstance.d.ts +346 -30
- package/redis/tairInstance.js +36 -0
- package/redis/tairInstance.js.map +1 -1
- package/threatdetection/honeypotPreset.d.ts +1 -0
- package/threatdetection/honeypotPreset.js +1 -0
- package/threatdetection/honeypotPreset.js.map +1 -1
- package/types/input.d.ts +10 -0
- package/types/output.d.ts +10 -0
- package/vpn/gatewayVcoRoute.d.ts +13 -4
- package/vpn/gatewayVcoRoute.js +13 -4
- package/vpn/gatewayVcoRoute.js.map +1 -1
package/cr/chain.d.ts
CHANGED
|
@@ -15,27 +15,32 @@ import * as outputs from "../types/output";
|
|
|
15
15
|
* ```typescript
|
|
16
16
|
* import * as pulumi from "@pulumi/pulumi";
|
|
17
17
|
* import * as alicloud from "@pulumi/alicloud";
|
|
18
|
+
* import * as random from "@pulumi/random";
|
|
18
19
|
*
|
|
19
20
|
* const config = new pulumi.Config();
|
|
20
21
|
* const name = config.get("name") || "tf-example";
|
|
21
|
-
* const _default = new
|
|
22
|
+
* const _default = new random.index.Integer("default", {
|
|
23
|
+
* min: 100000,
|
|
24
|
+
* max: 999999,
|
|
25
|
+
* });
|
|
26
|
+
* const defaultRegistryEnterpriseInstance = new alicloud.cr.RegistryEnterpriseInstance("default", {
|
|
22
27
|
* paymentType: "Subscription",
|
|
23
28
|
* period: 1,
|
|
24
29
|
* renewPeriod: 0,
|
|
25
30
|
* renewalStatus: "ManualRenewal",
|
|
26
31
|
* instanceType: "Advanced",
|
|
27
|
-
* instanceName: name
|
|
32
|
+
* instanceName: `${name}-${_default.result}`,
|
|
28
33
|
* });
|
|
29
34
|
* const defaultRegistryEnterpriseNamespace = new alicloud.cs.RegistryEnterpriseNamespace("default", {
|
|
30
|
-
* instanceId:
|
|
31
|
-
* name: name
|
|
35
|
+
* instanceId: defaultRegistryEnterpriseInstance.id,
|
|
36
|
+
* name: `${name}-${_default.result}`,
|
|
32
37
|
* autoCreate: false,
|
|
33
38
|
* defaultVisibility: "PUBLIC",
|
|
34
39
|
* });
|
|
35
40
|
* const defaultRegistryEnterpriseRepo = new alicloud.cs.RegistryEnterpriseRepo("default", {
|
|
36
|
-
* instanceId:
|
|
41
|
+
* instanceId: defaultRegistryEnterpriseInstance.id,
|
|
37
42
|
* namespace: defaultRegistryEnterpriseNamespace.name,
|
|
38
|
-
* name: name
|
|
43
|
+
* name: `${name}-${_default.result}`,
|
|
39
44
|
* summary: "this is summary of my new repo",
|
|
40
45
|
* repoType: "PUBLIC",
|
|
41
46
|
* detail: "this is a public repo",
|
|
@@ -149,7 +154,7 @@ import * as outputs from "../types/output";
|
|
|
149
154
|
* },
|
|
150
155
|
* ],
|
|
151
156
|
* }],
|
|
152
|
-
* chainName: name
|
|
157
|
+
* chainName: `${name}-${_default.result}`,
|
|
153
158
|
* description: name,
|
|
154
159
|
* instanceId: defaultRegistryEnterpriseNamespace.instanceId,
|
|
155
160
|
* repoName: defaultRegistryEnterpriseRepo.name,
|
package/cr/chain.js
CHANGED
|
@@ -19,27 +19,32 @@ const utilities = require("../utilities");
|
|
|
19
19
|
* ```typescript
|
|
20
20
|
* import * as pulumi from "@pulumi/pulumi";
|
|
21
21
|
* import * as alicloud from "@pulumi/alicloud";
|
|
22
|
+
* import * as random from "@pulumi/random";
|
|
22
23
|
*
|
|
23
24
|
* const config = new pulumi.Config();
|
|
24
25
|
* const name = config.get("name") || "tf-example";
|
|
25
|
-
* const _default = new
|
|
26
|
+
* const _default = new random.index.Integer("default", {
|
|
27
|
+
* min: 100000,
|
|
28
|
+
* max: 999999,
|
|
29
|
+
* });
|
|
30
|
+
* const defaultRegistryEnterpriseInstance = new alicloud.cr.RegistryEnterpriseInstance("default", {
|
|
26
31
|
* paymentType: "Subscription",
|
|
27
32
|
* period: 1,
|
|
28
33
|
* renewPeriod: 0,
|
|
29
34
|
* renewalStatus: "ManualRenewal",
|
|
30
35
|
* instanceType: "Advanced",
|
|
31
|
-
* instanceName: name
|
|
36
|
+
* instanceName: `${name}-${_default.result}`,
|
|
32
37
|
* });
|
|
33
38
|
* const defaultRegistryEnterpriseNamespace = new alicloud.cs.RegistryEnterpriseNamespace("default", {
|
|
34
|
-
* instanceId:
|
|
35
|
-
* name: name
|
|
39
|
+
* instanceId: defaultRegistryEnterpriseInstance.id,
|
|
40
|
+
* name: `${name}-${_default.result}`,
|
|
36
41
|
* autoCreate: false,
|
|
37
42
|
* defaultVisibility: "PUBLIC",
|
|
38
43
|
* });
|
|
39
44
|
* const defaultRegistryEnterpriseRepo = new alicloud.cs.RegistryEnterpriseRepo("default", {
|
|
40
|
-
* instanceId:
|
|
45
|
+
* instanceId: defaultRegistryEnterpriseInstance.id,
|
|
41
46
|
* namespace: defaultRegistryEnterpriseNamespace.name,
|
|
42
|
-
* name: name
|
|
47
|
+
* name: `${name}-${_default.result}`,
|
|
43
48
|
* summary: "this is summary of my new repo",
|
|
44
49
|
* repoType: "PUBLIC",
|
|
45
50
|
* detail: "this is a public repo",
|
|
@@ -153,7 +158,7 @@ const utilities = require("../utilities");
|
|
|
153
158
|
* },
|
|
154
159
|
* ],
|
|
155
160
|
* }],
|
|
156
|
-
* chainName: name
|
|
161
|
+
* chainName: `${name}-${_default.result}`,
|
|
157
162
|
* description: name,
|
|
158
163
|
* instanceId: defaultRegistryEnterpriseNamespace.instanceId,
|
|
159
164
|
* repoName: defaultRegistryEnterpriseRepo.name,
|
package/cr/chain.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chain.js","sourceRoot":"","sources":["../../cr/chain.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"chain.js","sourceRoot":"","sources":["../../cr/chain.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwKG;AACH,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;IAC5C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkB,EAAE,IAAmC;QAChH,OAAO,IAAI,KAAK,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC5D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,KAAK,CAAC,YAAY,CAAC;IACtD,CAAC;IAuCD,YAAY,IAAY,EAAE,WAAoC,EAAE,IAAmC;QAC/F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAA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IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChF,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACjD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;;AA/FL,sBAgGC;AAlFG,gBAAgB;AACO,kBAAY,GAAG,yBAAyB,CAAC"}
|
package/cr/chartRepository.d.ts
CHANGED
|
@@ -13,25 +13,30 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
13
13
|
* ```typescript
|
|
14
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
15
|
* import * as alicloud from "@pulumi/alicloud";
|
|
16
|
+
* import * as random from "@pulumi/random";
|
|
16
17
|
*
|
|
17
18
|
* const config = new pulumi.Config();
|
|
18
19
|
* const name = config.get("name") || "tf-example";
|
|
20
|
+
* const _default = new random.index.Integer("default", {
|
|
21
|
+
* min: 100000,
|
|
22
|
+
* max: 999999,
|
|
23
|
+
* });
|
|
19
24
|
* const example = new alicloud.cr.RegistryEnterpriseInstance("example", {
|
|
20
25
|
* paymentType: "Subscription",
|
|
21
26
|
* period: 1,
|
|
22
27
|
* renewPeriod: 0,
|
|
23
28
|
* renewalStatus: "ManualRenewal",
|
|
24
29
|
* instanceType: "Advanced",
|
|
25
|
-
* instanceName: name
|
|
30
|
+
* instanceName: `${name}-${_default.result}`,
|
|
26
31
|
* });
|
|
27
32
|
* const exampleChartNamespace = new alicloud.cr.ChartNamespace("example", {
|
|
28
33
|
* instanceId: example.id,
|
|
29
|
-
* namespaceName: name
|
|
34
|
+
* namespaceName: `${name}-${_default.result}`,
|
|
30
35
|
* });
|
|
31
36
|
* const exampleChartRepository = new alicloud.cr.ChartRepository("example", {
|
|
32
37
|
* repoNamespaceName: exampleChartNamespace.namespaceName,
|
|
33
38
|
* instanceId: exampleChartNamespace.instanceId,
|
|
34
|
-
* repoName: name
|
|
39
|
+
* repoName: `${name}-${_default.result}`,
|
|
35
40
|
* });
|
|
36
41
|
* ```
|
|
37
42
|
*
|
package/cr/chartRepository.js
CHANGED
|
@@ -19,25 +19,30 @@ const utilities = require("../utilities");
|
|
|
19
19
|
* ```typescript
|
|
20
20
|
* import * as pulumi from "@pulumi/pulumi";
|
|
21
21
|
* import * as alicloud from "@pulumi/alicloud";
|
|
22
|
+
* import * as random from "@pulumi/random";
|
|
22
23
|
*
|
|
23
24
|
* const config = new pulumi.Config();
|
|
24
25
|
* const name = config.get("name") || "tf-example";
|
|
26
|
+
* const _default = new random.index.Integer("default", {
|
|
27
|
+
* min: 100000,
|
|
28
|
+
* max: 999999,
|
|
29
|
+
* });
|
|
25
30
|
* const example = new alicloud.cr.RegistryEnterpriseInstance("example", {
|
|
26
31
|
* paymentType: "Subscription",
|
|
27
32
|
* period: 1,
|
|
28
33
|
* renewPeriod: 0,
|
|
29
34
|
* renewalStatus: "ManualRenewal",
|
|
30
35
|
* instanceType: "Advanced",
|
|
31
|
-
* instanceName: name
|
|
36
|
+
* instanceName: `${name}-${_default.result}`,
|
|
32
37
|
* });
|
|
33
38
|
* const exampleChartNamespace = new alicloud.cr.ChartNamespace("example", {
|
|
34
39
|
* instanceId: example.id,
|
|
35
|
-
* namespaceName: name
|
|
40
|
+
* namespaceName: `${name}-${_default.result}`,
|
|
36
41
|
* });
|
|
37
42
|
* const exampleChartRepository = new alicloud.cr.ChartRepository("example", {
|
|
38
43
|
* repoNamespaceName: exampleChartNamespace.namespaceName,
|
|
39
44
|
* instanceId: exampleChartNamespace.instanceId,
|
|
40
|
-
* repoName: name
|
|
45
|
+
* repoName: `${name}-${_default.result}`,
|
|
41
46
|
* });
|
|
42
47
|
* ```
|
|
43
48
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chartRepository.js","sourceRoot":"","sources":["../../cr/chartRepository.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"chartRepository.js","sourceRoot":"","sources":["../../cr/chartRepository.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,OAAO,IAAI,eAAe,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACtE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,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C,sCAAsC,CAAC,CAAC;aAC3D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,iBAAiB,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC9D,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;aACpE;YACD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChF,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;SAC/D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AAtFL,0CAuFC;AAzEG,gBAAgB;AACO,4BAAY,GAAG,6CAA6C,CAAC"}
|
package/cr/repo.d.ts
CHANGED
|
@@ -27,8 +27,8 @@ import * as outputs from "../types/output";
|
|
|
27
27
|
* namespace: example.name,
|
|
28
28
|
* name: name,
|
|
29
29
|
* summary: "this is summary of my new repo",
|
|
30
|
-
* repoType: "
|
|
31
|
-
* detail: "this is a
|
|
30
|
+
* repoType: "PRIVATE",
|
|
31
|
+
* detail: "this is a private repo",
|
|
32
32
|
* });
|
|
33
33
|
* ```
|
|
34
34
|
*
|
|
@@ -61,7 +61,7 @@ export declare class Repo extends pulumi.CustomResource {
|
|
|
61
61
|
*/
|
|
62
62
|
readonly detail: pulumi.Output<string | undefined>;
|
|
63
63
|
/**
|
|
64
|
-
* The repository domain list.
|
|
64
|
+
* (Optional) The repository domain list.
|
|
65
65
|
*/
|
|
66
66
|
readonly domainList: pulumi.Output<outputs.cr.RepoDomainList>;
|
|
67
67
|
/**
|
|
@@ -98,7 +98,7 @@ export interface RepoState {
|
|
|
98
98
|
*/
|
|
99
99
|
detail?: pulumi.Input<string>;
|
|
100
100
|
/**
|
|
101
|
-
* The repository domain list.
|
|
101
|
+
* (Optional) The repository domain list.
|
|
102
102
|
*/
|
|
103
103
|
domainList?: pulumi.Input<inputs.cr.RepoDomainList>;
|
|
104
104
|
/**
|
package/cr/repo.js
CHANGED
|
@@ -31,8 +31,8 @@ const utilities = require("../utilities");
|
|
|
31
31
|
* namespace: example.name,
|
|
32
32
|
* name: name,
|
|
33
33
|
* summary: "this is summary of my new repo",
|
|
34
|
-
* repoType: "
|
|
35
|
-
* detail: "this is a
|
|
34
|
+
* repoType: "PRIVATE",
|
|
35
|
+
* detail: "this is a private repo",
|
|
36
36
|
* });
|
|
37
37
|
* ```
|
|
38
38
|
*
|
|
@@ -13,18 +13,23 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
13
13
|
* ```typescript
|
|
14
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
15
|
* import * as alicloud from "@pulumi/alicloud";
|
|
16
|
+
* import * as random from "@pulumi/random";
|
|
16
17
|
*
|
|
17
18
|
* const config = new pulumi.Config();
|
|
18
19
|
* const name = config.get("name") || "tf-example";
|
|
20
|
+
* const defaultInteger = new random.index.Integer("default", {
|
|
21
|
+
* min: 100000,
|
|
22
|
+
* max: 999999,
|
|
23
|
+
* });
|
|
19
24
|
* const default = alicloud.getZones({
|
|
20
25
|
* availableResourceCreation: "VSwitch",
|
|
21
26
|
* });
|
|
22
27
|
* const defaultNetwork = new alicloud.vpc.Network("default", {
|
|
23
|
-
* vpcName: name
|
|
28
|
+
* vpcName: `${name}-${defaultInteger.result}`,
|
|
24
29
|
* cidrBlock: "10.4.0.0/16",
|
|
25
30
|
* });
|
|
26
31
|
* const defaultSwitch = new alicloud.vpc.Switch("default", {
|
|
27
|
-
* vswitchName: name
|
|
32
|
+
* vswitchName: `${name}-${defaultInteger.result}`,
|
|
28
33
|
* cidrBlock: "10.4.0.0/24",
|
|
29
34
|
* vpcId: defaultNetwork.id,
|
|
30
35
|
* zoneId: _default.then(_default => _default.zones?.[0]?.id),
|
|
@@ -35,7 +40,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
35
40
|
* renewPeriod: 0,
|
|
36
41
|
* renewalStatus: "ManualRenewal",
|
|
37
42
|
* instanceType: "Advanced",
|
|
38
|
-
* instanceName: name
|
|
43
|
+
* instanceName: `${name}-${defaultInteger.result}`,
|
|
39
44
|
* });
|
|
40
45
|
* const defaultVpcEndpointLinkedVpc = new alicloud.cr.VpcEndpointLinkedVpc("default", {
|
|
41
46
|
* instanceId: defaultRegistryEnterpriseInstance.id,
|
|
@@ -19,18 +19,23 @@ const utilities = require("../utilities");
|
|
|
19
19
|
* ```typescript
|
|
20
20
|
* import * as pulumi from "@pulumi/pulumi";
|
|
21
21
|
* import * as alicloud from "@pulumi/alicloud";
|
|
22
|
+
* import * as random from "@pulumi/random";
|
|
22
23
|
*
|
|
23
24
|
* const config = new pulumi.Config();
|
|
24
25
|
* const name = config.get("name") || "tf-example";
|
|
26
|
+
* const defaultInteger = new random.index.Integer("default", {
|
|
27
|
+
* min: 100000,
|
|
28
|
+
* max: 999999,
|
|
29
|
+
* });
|
|
25
30
|
* const default = alicloud.getZones({
|
|
26
31
|
* availableResourceCreation: "VSwitch",
|
|
27
32
|
* });
|
|
28
33
|
* const defaultNetwork = new alicloud.vpc.Network("default", {
|
|
29
|
-
* vpcName: name
|
|
34
|
+
* vpcName: `${name}-${defaultInteger.result}`,
|
|
30
35
|
* cidrBlock: "10.4.0.0/16",
|
|
31
36
|
* });
|
|
32
37
|
* const defaultSwitch = new alicloud.vpc.Switch("default", {
|
|
33
|
-
* vswitchName: name
|
|
38
|
+
* vswitchName: `${name}-${defaultInteger.result}`,
|
|
34
39
|
* cidrBlock: "10.4.0.0/24",
|
|
35
40
|
* vpcId: defaultNetwork.id,
|
|
36
41
|
* zoneId: _default.then(_default => _default.zones?.[0]?.id),
|
|
@@ -41,7 +46,7 @@ const utilities = require("../utilities");
|
|
|
41
46
|
* renewPeriod: 0,
|
|
42
47
|
* renewalStatus: "ManualRenewal",
|
|
43
48
|
* instanceType: "Advanced",
|
|
44
|
-
* instanceName: name
|
|
49
|
+
* instanceName: `${name}-${defaultInteger.result}`,
|
|
45
50
|
* });
|
|
46
51
|
* const defaultVpcEndpointLinkedVpc = new alicloud.cr.VpcEndpointLinkedVpc("default", {
|
|
47
52
|
* instanceId: defaultRegistryEnterpriseInstance.id,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vpcEndpointLinkedVpc.js","sourceRoot":"","sources":["../../cr/vpcEndpointLinkedVpc.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"vpcEndpointLinkedVpc.js","sourceRoot":"","sources":["../../cr/vpcEndpointLinkedVpc.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AACH,MAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAC3D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiC,EAAE,IAAmC;Q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C,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAChD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,oBAAoB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;;AAjGL,oDAkGC;AApFG,gBAAgB;AACO,iCAAY,GAAG,uDAAuD,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
* Provides a DBFS Instance Attachment resource.
|
|
3
|
+
* Provides a Database File System (DBFS) Instance Attachment resource.
|
|
4
4
|
*
|
|
5
|
-
* For information about DBFS Instance Attachment and how to use it.
|
|
5
|
+
* For information about Database File System (DBFS) Instance Attachment and how to use it, see [What is Snapshot](https://help.aliyun.com/zh/dbfs/developer-reference/api-dbfs-2020-04-18-attachdbfs).
|
|
6
6
|
*
|
|
7
7
|
* > **NOTE:** Available since v1.156.0.
|
|
8
8
|
*
|
|
@@ -15,53 +15,50 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
15
15
|
* import * as alicloud from "@pulumi/alicloud";
|
|
16
16
|
*
|
|
17
17
|
* const config = new pulumi.Config();
|
|
18
|
-
* const name = config.get("name") || "
|
|
18
|
+
* const name = config.get("name") || "terraform-example";
|
|
19
19
|
* const zoneId = "cn-hangzhou-i";
|
|
20
|
-
* const
|
|
20
|
+
* const default = alicloud.databasefilesystem.getInstances({});
|
|
21
|
+
* const defaultGetInstanceTypes = alicloud.ecs.getInstanceTypes({
|
|
21
22
|
* availabilityZone: zoneId,
|
|
22
23
|
* instanceTypeFamily: "ecs.g7se",
|
|
23
24
|
* });
|
|
24
|
-
* const
|
|
25
|
-
* instanceType:
|
|
26
|
-
* nameRegex: "^
|
|
25
|
+
* const defaultGetImages = defaultGetInstanceTypes.then(defaultGetInstanceTypes => alicloud.ecs.getImages({
|
|
26
|
+
* instanceType: defaultGetInstanceTypes.instanceTypes?.[0]?.id,
|
|
27
|
+
* nameRegex: "^aliyun_2_19",
|
|
27
28
|
* owners: "system",
|
|
28
29
|
* }));
|
|
29
|
-
* const
|
|
30
|
+
* const defaultGetNetworks = alicloud.vpc.getNetworks({
|
|
30
31
|
* nameRegex: "^default-NODELETING$",
|
|
31
32
|
* });
|
|
32
|
-
* const defaultGetSwitches =
|
|
33
|
-
* vpcId:
|
|
33
|
+
* const defaultGetSwitches = defaultGetNetworks.then(defaultGetNetworks => alicloud.vpc.getSwitches({
|
|
34
|
+
* vpcId: defaultGetNetworks.ids?.[0],
|
|
34
35
|
* zoneId: zoneId,
|
|
35
36
|
* }));
|
|
36
|
-
* const
|
|
37
|
+
* const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("default", {
|
|
37
38
|
* name: name,
|
|
38
|
-
* vpcId:
|
|
39
|
+
* vpcId: defaultGetNetworks.then(defaultGetNetworks => defaultGetNetworks.ids?.[0]),
|
|
39
40
|
* });
|
|
40
41
|
* const defaultInstance = new alicloud.ecs.Instance("default", {
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
42
|
+
* imageId: defaultGetImages.then(defaultGetImages => defaultGetImages.images?.[0]?.id),
|
|
43
|
+
* instanceType: defaultGetInstanceTypes.then(defaultGetInstanceTypes => defaultGetInstanceTypes.instanceTypes?.[0]?.id),
|
|
44
|
+
* securityGroups: [defaultSecurityGroup].map(__item => __item.id),
|
|
45
|
+
* internetChargeType: "PayByTraffic",
|
|
46
|
+
* internetMaxBandwidthOut: 10,
|
|
47
|
+
* availabilityZone: defaultGetInstanceTypes.then(defaultGetInstanceTypes => defaultGetInstanceTypes.instanceTypes?.[0]?.availabilityZones?.[0]),
|
|
48
|
+
* instanceChargeType: "PostPaid",
|
|
47
49
|
* systemDiskCategory: "cloud_essd",
|
|
50
|
+
* vswitchId: defaultGetSwitches.then(defaultGetSwitches => defaultGetSwitches.ids?.[0]),
|
|
51
|
+
* instanceName: name,
|
|
48
52
|
* });
|
|
49
|
-
* const
|
|
50
|
-
*
|
|
51
|
-
* zoneId: defaultInstance.availabilityZone,
|
|
52
|
-
* performanceLevel: "PL1",
|
|
53
|
-
* fsName: name,
|
|
54
|
-
* size: 100,
|
|
55
|
-
* });
|
|
56
|
-
* const exampleInstanceAttachment = new alicloud.databasefilesystem.InstanceAttachment("example", {
|
|
53
|
+
* const defaultInstanceAttachment = new alicloud.databasefilesystem.InstanceAttachment("default", {
|
|
54
|
+
* instanceId: _default.then(_default => _default.instances?.[0]?.id),
|
|
57
55
|
* ecsId: defaultInstance.id,
|
|
58
|
-
* instanceId: defaultInstance2.id,
|
|
59
56
|
* });
|
|
60
57
|
* ```
|
|
61
58
|
*
|
|
62
59
|
* ## Import
|
|
63
60
|
*
|
|
64
|
-
* DBFS Instance Attachment can be imported using the id, e.g.
|
|
61
|
+
* Database File System (DBFS) Instance Attachment can be imported using the id, e.g.
|
|
65
62
|
*
|
|
66
63
|
* ```sh
|
|
67
64
|
* $ pulumi import alicloud:databasefilesystem/instanceAttachment:InstanceAttachment example <instance_id>:<ecs_id>
|
|
@@ -88,11 +85,11 @@ export declare class InstanceAttachment extends pulumi.CustomResource {
|
|
|
88
85
|
*/
|
|
89
86
|
readonly ecsId: pulumi.Output<string>;
|
|
90
87
|
/**
|
|
91
|
-
* The ID of the
|
|
88
|
+
* The ID of the Database File System.
|
|
92
89
|
*/
|
|
93
90
|
readonly instanceId: pulumi.Output<string>;
|
|
94
91
|
/**
|
|
95
|
-
* The status of
|
|
92
|
+
* The status of Instance Attachment.
|
|
96
93
|
*/
|
|
97
94
|
readonly status: pulumi.Output<string>;
|
|
98
95
|
/**
|
|
@@ -113,11 +110,11 @@ export interface InstanceAttachmentState {
|
|
|
113
110
|
*/
|
|
114
111
|
ecsId?: pulumi.Input<string>;
|
|
115
112
|
/**
|
|
116
|
-
* The ID of the
|
|
113
|
+
* The ID of the Database File System.
|
|
117
114
|
*/
|
|
118
115
|
instanceId?: pulumi.Input<string>;
|
|
119
116
|
/**
|
|
120
|
-
* The status of
|
|
117
|
+
* The status of Instance Attachment.
|
|
121
118
|
*/
|
|
122
119
|
status?: pulumi.Input<string>;
|
|
123
120
|
}
|
|
@@ -130,7 +127,7 @@ export interface InstanceAttachmentArgs {
|
|
|
130
127
|
*/
|
|
131
128
|
ecsId: pulumi.Input<string>;
|
|
132
129
|
/**
|
|
133
|
-
* The ID of the
|
|
130
|
+
* The ID of the Database File System.
|
|
134
131
|
*/
|
|
135
132
|
instanceId: pulumi.Input<string>;
|
|
136
133
|
}
|
|
@@ -6,9 +6,9 @@ exports.InstanceAttachment = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
-
* Provides a DBFS Instance Attachment resource.
|
|
9
|
+
* Provides a Database File System (DBFS) Instance Attachment resource.
|
|
10
10
|
*
|
|
11
|
-
* For information about DBFS Instance Attachment and how to use it.
|
|
11
|
+
* For information about Database File System (DBFS) Instance Attachment and how to use it, see [What is Snapshot](https://help.aliyun.com/zh/dbfs/developer-reference/api-dbfs-2020-04-18-attachdbfs).
|
|
12
12
|
*
|
|
13
13
|
* > **NOTE:** Available since v1.156.0.
|
|
14
14
|
*
|
|
@@ -21,53 +21,50 @@ const utilities = require("../utilities");
|
|
|
21
21
|
* import * as alicloud from "@pulumi/alicloud";
|
|
22
22
|
*
|
|
23
23
|
* const config = new pulumi.Config();
|
|
24
|
-
* const name = config.get("name") || "
|
|
24
|
+
* const name = config.get("name") || "terraform-example";
|
|
25
25
|
* const zoneId = "cn-hangzhou-i";
|
|
26
|
-
* const
|
|
26
|
+
* const default = alicloud.databasefilesystem.getInstances({});
|
|
27
|
+
* const defaultGetInstanceTypes = alicloud.ecs.getInstanceTypes({
|
|
27
28
|
* availabilityZone: zoneId,
|
|
28
29
|
* instanceTypeFamily: "ecs.g7se",
|
|
29
30
|
* });
|
|
30
|
-
* const
|
|
31
|
-
* instanceType:
|
|
32
|
-
* nameRegex: "^
|
|
31
|
+
* const defaultGetImages = defaultGetInstanceTypes.then(defaultGetInstanceTypes => alicloud.ecs.getImages({
|
|
32
|
+
* instanceType: defaultGetInstanceTypes.instanceTypes?.[0]?.id,
|
|
33
|
+
* nameRegex: "^aliyun_2_19",
|
|
33
34
|
* owners: "system",
|
|
34
35
|
* }));
|
|
35
|
-
* const
|
|
36
|
+
* const defaultGetNetworks = alicloud.vpc.getNetworks({
|
|
36
37
|
* nameRegex: "^default-NODELETING$",
|
|
37
38
|
* });
|
|
38
|
-
* const defaultGetSwitches =
|
|
39
|
-
* vpcId:
|
|
39
|
+
* const defaultGetSwitches = defaultGetNetworks.then(defaultGetNetworks => alicloud.vpc.getSwitches({
|
|
40
|
+
* vpcId: defaultGetNetworks.ids?.[0],
|
|
40
41
|
* zoneId: zoneId,
|
|
41
42
|
* }));
|
|
42
|
-
* const
|
|
43
|
+
* const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("default", {
|
|
43
44
|
* name: name,
|
|
44
|
-
* vpcId:
|
|
45
|
+
* vpcId: defaultGetNetworks.then(defaultGetNetworks => defaultGetNetworks.ids?.[0]),
|
|
45
46
|
* });
|
|
46
47
|
* const defaultInstance = new alicloud.ecs.Instance("default", {
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
48
|
+
* imageId: defaultGetImages.then(defaultGetImages => defaultGetImages.images?.[0]?.id),
|
|
49
|
+
* instanceType: defaultGetInstanceTypes.then(defaultGetInstanceTypes => defaultGetInstanceTypes.instanceTypes?.[0]?.id),
|
|
50
|
+
* securityGroups: [defaultSecurityGroup].map(__item => __item.id),
|
|
51
|
+
* internetChargeType: "PayByTraffic",
|
|
52
|
+
* internetMaxBandwidthOut: 10,
|
|
53
|
+
* availabilityZone: defaultGetInstanceTypes.then(defaultGetInstanceTypes => defaultGetInstanceTypes.instanceTypes?.[0]?.availabilityZones?.[0]),
|
|
54
|
+
* instanceChargeType: "PostPaid",
|
|
53
55
|
* systemDiskCategory: "cloud_essd",
|
|
56
|
+
* vswitchId: defaultGetSwitches.then(defaultGetSwitches => defaultGetSwitches.ids?.[0]),
|
|
57
|
+
* instanceName: name,
|
|
54
58
|
* });
|
|
55
|
-
* const
|
|
56
|
-
*
|
|
57
|
-
* zoneId: defaultInstance.availabilityZone,
|
|
58
|
-
* performanceLevel: "PL1",
|
|
59
|
-
* fsName: name,
|
|
60
|
-
* size: 100,
|
|
61
|
-
* });
|
|
62
|
-
* const exampleInstanceAttachment = new alicloud.databasefilesystem.InstanceAttachment("example", {
|
|
59
|
+
* const defaultInstanceAttachment = new alicloud.databasefilesystem.InstanceAttachment("default", {
|
|
60
|
+
* instanceId: _default.then(_default => _default.instances?.[0]?.id),
|
|
63
61
|
* ecsId: defaultInstance.id,
|
|
64
|
-
* instanceId: defaultInstance2.id,
|
|
65
62
|
* });
|
|
66
63
|
* ```
|
|
67
64
|
*
|
|
68
65
|
* ## Import
|
|
69
66
|
*
|
|
70
|
-
* DBFS Instance Attachment can be imported using the id, e.g.
|
|
67
|
+
* Database File System (DBFS) Instance Attachment can be imported using the id, e.g.
|
|
71
68
|
*
|
|
72
69
|
* ```sh
|
|
73
70
|
* $ pulumi import alicloud:databasefilesystem/instanceAttachment:InstanceAttachment example <instance_id>:<ecs_id>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instanceAttachment.js","sourceRoot":"","sources":["../../databasefilesystem/instanceAttachment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"instanceAttachment.js","sourceRoot":"","sources":["../../databasefilesystem/instanceAttachment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACx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