@pulumi/alicloud 3.27.0 → 3.28.0

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.
Files changed (94) hide show
  1. package/adb/dbcluster.d.ts +1 -1
  2. package/adb/dbcluster.js +1 -1
  3. package/alikafka/instance.d.ts +37 -9
  4. package/alikafka/instance.js +4 -0
  5. package/alikafka/instance.js.map +1 -1
  6. package/apigateway/backend.d.ts +116 -0
  7. package/apigateway/backend.js +93 -0
  8. package/apigateway/backend.js.map +1 -0
  9. package/apigateway/getBackends.d.ts +69 -0
  10. package/apigateway/getBackends.js +44 -0
  11. package/apigateway/getBackends.js.map +1 -0
  12. package/apigateway/index.d.ts +2 -0
  13. package/apigateway/index.js +6 -0
  14. package/apigateway/index.js.map +1 -1
  15. package/cloudstoragegateway/gatewayBlockVolume.d.ts +3 -3
  16. package/cloudstoragegateway/gatewayFileShare.d.ts +3 -3
  17. package/cms/alarm.d.ts +18 -0
  18. package/cms/alarm.js +2 -0
  19. package/cms/alarm.js.map +1 -1
  20. package/cs/nodePool.d.ts +76 -9
  21. package/cs/nodePool.js +47 -0
  22. package/cs/nodePool.js.map +1 -1
  23. package/ddos/bgpIp.d.ts +113 -0
  24. package/ddos/bgpIp.js +94 -0
  25. package/ddos/bgpIp.js.map +1 -0
  26. package/ddos/getDdosBgpIps.d.ts +92 -0
  27. package/ddos/getDdosBgpIps.js +51 -0
  28. package/ddos/getDdosBgpIps.js.map +1 -0
  29. package/ddos/index.d.ts +2 -0
  30. package/ddos/index.js +6 -0
  31. package/ddos/index.js.map +1 -1
  32. package/ecs/autoProvisioningGroup.d.ts +3 -3
  33. package/ecs/disk.d.ts +1 -1
  34. package/ecs/ecsDisk.d.ts +1 -1
  35. package/ecs/ecsInstanceSet.d.ts +3 -3
  36. package/ecs/instance.d.ts +36 -0
  37. package/ecs/instance.js +6 -0
  38. package/ecs/instance.js.map +1 -1
  39. package/fc/functionAsyncInvokeConfig.d.ts +3 -3
  40. package/fc/index.d.ts +1 -0
  41. package/fc/index.js +5 -0
  42. package/fc/index.js.map +1 -1
  43. package/fc/layerVersion.d.ts +177 -0
  44. package/fc/layerVersion.js +100 -0
  45. package/fc/layerVersion.js.map +1 -0
  46. package/package.json +2 -2
  47. package/package.json.dev +2 -2
  48. package/polardb/getGlobalDatabaseNetworks.d.ts +101 -0
  49. package/polardb/getGlobalDatabaseNetworks.js +53 -0
  50. package/polardb/getGlobalDatabaseNetworks.js.map +1 -0
  51. package/polardb/globalDatabaseNetwork.d.ts +117 -0
  52. package/polardb/globalDatabaseNetwork.js +105 -0
  53. package/polardb/globalDatabaseNetwork.js.map +1 -0
  54. package/polardb/index.d.ts +2 -0
  55. package/polardb/index.js +6 -0
  56. package/polardb/index.js.map +1 -1
  57. package/resourcemanager/account.d.ts +18 -0
  58. package/resourcemanager/account.js +2 -0
  59. package/resourcemanager/account.js.map +1 -1
  60. package/resourcemanager/delegatedAdministrator.d.ts +92 -0
  61. package/resourcemanager/delegatedAdministrator.js +89 -0
  62. package/resourcemanager/delegatedAdministrator.js.map +1 -0
  63. package/resourcemanager/getDelegatedAdministrators.d.ts +70 -0
  64. package/resourcemanager/getDelegatedAdministrators.js +46 -0
  65. package/resourcemanager/getDelegatedAdministrators.js.map +1 -0
  66. package/resourcemanager/index.d.ts +2 -0
  67. package/resourcemanager/index.js +6 -0
  68. package/resourcemanager/index.js.map +1 -1
  69. package/types/input.d.ts +221 -41
  70. package/types/output.d.ts +497 -1
  71. package/vod/domain.d.ts +2 -2
  72. package/vpc/getIpv4Gateways.d.ts +94 -0
  73. package/vpc/getIpv4Gateways.js +49 -0
  74. package/vpc/getIpv4Gateways.js.map +1 -0
  75. package/vpc/index.d.ts +2 -0
  76. package/vpc/index.js +6 -0
  77. package/vpc/index.js.map +1 -1
  78. package/vpc/ipv4Gateway.d.ts +124 -0
  79. package/vpc/ipv4Gateway.js +92 -0
  80. package/vpc/ipv4Gateway.js.map +1 -0
  81. package/vpc/natIp.d.ts +7 -1
  82. package/vpc/natIp.js.map +1 -1
  83. package/vpc/subnet.d.ts +4 -0
  84. package/vpc/subnet.js +6 -0
  85. package/vpc/subnet.js.map +1 -1
  86. package/vpn/gatewayVpnAttachment.d.ts +260 -0
  87. package/vpn/gatewayVpnAttachment.js +153 -0
  88. package/vpn/gatewayVpnAttachment.js.map +1 -0
  89. package/vpn/getGatewayVpnAttachments.d.ts +91 -0
  90. package/vpn/getGatewayVpnAttachments.js +50 -0
  91. package/vpn/getGatewayVpnAttachments.js.map +1 -0
  92. package/vpn/index.d.ts +2 -0
  93. package/vpn/index.js +6 -0
  94. package/vpn/index.js.map +1 -1
@@ -0,0 +1,177 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * ## Example Usage
4
+ *
5
+ * Basic Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as alicloud from "@pulumi/alicloud";
10
+ *
11
+ * const example = new alicloud.fc.LayerVersion("example", {
12
+ * compatibleRuntimes: ["nodejs12"],
13
+ * layerName: "your_layer_name",
14
+ * ossBucketName: "your_code_oss_bucket_name",
15
+ * ossObjectName: "your_code_oss_object_name",
16
+ * });
17
+ * ```
18
+ *
19
+ * ## Import
20
+ *
21
+ * Function Compute Layer Version can be imported using the id, e.g.
22
+ *
23
+ * ```sh
24
+ * $ pulumi import alicloud:fc/layerVersion:LayerVersion example my_function
25
+ * ```
26
+ */
27
+ export declare class LayerVersion extends pulumi.CustomResource {
28
+ /**
29
+ * Get an existing LayerVersion resource's state with the given name, ID, and optional extra
30
+ * properties used to qualify the lookup.
31
+ *
32
+ * @param name The _unique_ name of the resulting resource.
33
+ * @param id The _unique_ provider ID of the resource to lookup.
34
+ * @param state Any extra arguments used during the lookup.
35
+ * @param opts Optional settings to control the behavior of the CustomResource.
36
+ */
37
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: LayerVersionState, opts?: pulumi.CustomResourceOptions): LayerVersion;
38
+ /**
39
+ * Returns true if the given object is an instance of LayerVersion. This is designed to work even
40
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
41
+ */
42
+ static isInstance(obj: any): obj is LayerVersion;
43
+ /**
44
+ * The access mode of Layer Version.
45
+ */
46
+ readonly acl: pulumi.Output<string>;
47
+ /**
48
+ * The arn of Layer Version.
49
+ */
50
+ readonly arn: pulumi.Output<string>;
51
+ /**
52
+ * The checksum of the layer code package.
53
+ */
54
+ readonly codeCheckSum: pulumi.Output<string>;
55
+ /**
56
+ * The list of runtime environments that are supported by the layer. Valid values: `nodejs14`, `nodejs12`, `nodejs10`, `nodejs8`, `nodejs6`, `python3.9`, `python3`, `python2.7`, `java11`, `java8`, `php7.2`, `go1`,`dotnetcore2.1`, `custom`.
57
+ */
58
+ readonly compatibleRuntimes: pulumi.Output<string[]>;
59
+ /**
60
+ * The description of the layer version.
61
+ */
62
+ readonly description: pulumi.Output<string | undefined>;
63
+ /**
64
+ * The name of the layer.
65
+ */
66
+ readonly layerName: pulumi.Output<string>;
67
+ /**
68
+ * The name of the OSS bucket that stores the ZIP package of the function code.
69
+ */
70
+ readonly ossBucketName: pulumi.Output<string | undefined>;
71
+ /**
72
+ * The name of the OSS object (ZIP package) that contains the function code.
73
+ */
74
+ readonly ossObjectName: pulumi.Output<string | undefined>;
75
+ /**
76
+ * Whether to retain the old version of a previously deployed Lambda Layer. Default is `false`. When this is not set to `true`, changing any of `compatibleRuntimes`, `description`, `layerName`, `ossBucketName`, `ossObjectName`, or `zipFile` forces deletion of the existing layer version and creation of a new layer version.
77
+ */
78
+ readonly skipDestroy: pulumi.Output<boolean | undefined>;
79
+ /**
80
+ * The version of Layer Version.
81
+ */
82
+ readonly version: pulumi.Output<string>;
83
+ /**
84
+ * The ZIP package of the function code that is encoded in the Base64 format.
85
+ */
86
+ readonly zipFile: pulumi.Output<string | undefined>;
87
+ /**
88
+ * Create a LayerVersion resource with the given unique name, arguments, and options.
89
+ *
90
+ * @param name The _unique_ name of the resource.
91
+ * @param args The arguments to use to populate this resource's properties.
92
+ * @param opts A bag of options that control this resource's behavior.
93
+ */
94
+ constructor(name: string, args: LayerVersionArgs, opts?: pulumi.CustomResourceOptions);
95
+ }
96
+ /**
97
+ * Input properties used for looking up and filtering LayerVersion resources.
98
+ */
99
+ export interface LayerVersionState {
100
+ /**
101
+ * The access mode of Layer Version.
102
+ */
103
+ acl?: pulumi.Input<string>;
104
+ /**
105
+ * The arn of Layer Version.
106
+ */
107
+ arn?: pulumi.Input<string>;
108
+ /**
109
+ * The checksum of the layer code package.
110
+ */
111
+ codeCheckSum?: pulumi.Input<string>;
112
+ /**
113
+ * The list of runtime environments that are supported by the layer. Valid values: `nodejs14`, `nodejs12`, `nodejs10`, `nodejs8`, `nodejs6`, `python3.9`, `python3`, `python2.7`, `java11`, `java8`, `php7.2`, `go1`,`dotnetcore2.1`, `custom`.
114
+ */
115
+ compatibleRuntimes?: pulumi.Input<pulumi.Input<string>[]>;
116
+ /**
117
+ * The description of the layer version.
118
+ */
119
+ description?: pulumi.Input<string>;
120
+ /**
121
+ * The name of the layer.
122
+ */
123
+ layerName?: pulumi.Input<string>;
124
+ /**
125
+ * The name of the OSS bucket that stores the ZIP package of the function code.
126
+ */
127
+ ossBucketName?: pulumi.Input<string>;
128
+ /**
129
+ * The name of the OSS object (ZIP package) that contains the function code.
130
+ */
131
+ ossObjectName?: pulumi.Input<string>;
132
+ /**
133
+ * Whether to retain the old version of a previously deployed Lambda Layer. Default is `false`. When this is not set to `true`, changing any of `compatibleRuntimes`, `description`, `layerName`, `ossBucketName`, `ossObjectName`, or `zipFile` forces deletion of the existing layer version and creation of a new layer version.
134
+ */
135
+ skipDestroy?: pulumi.Input<boolean>;
136
+ /**
137
+ * The version of Layer Version.
138
+ */
139
+ version?: pulumi.Input<string>;
140
+ /**
141
+ * The ZIP package of the function code that is encoded in the Base64 format.
142
+ */
143
+ zipFile?: pulumi.Input<string>;
144
+ }
145
+ /**
146
+ * The set of arguments for constructing a LayerVersion resource.
147
+ */
148
+ export interface LayerVersionArgs {
149
+ /**
150
+ * The list of runtime environments that are supported by the layer. Valid values: `nodejs14`, `nodejs12`, `nodejs10`, `nodejs8`, `nodejs6`, `python3.9`, `python3`, `python2.7`, `java11`, `java8`, `php7.2`, `go1`,`dotnetcore2.1`, `custom`.
151
+ */
152
+ compatibleRuntimes: pulumi.Input<pulumi.Input<string>[]>;
153
+ /**
154
+ * The description of the layer version.
155
+ */
156
+ description?: pulumi.Input<string>;
157
+ /**
158
+ * The name of the layer.
159
+ */
160
+ layerName: pulumi.Input<string>;
161
+ /**
162
+ * The name of the OSS bucket that stores the ZIP package of the function code.
163
+ */
164
+ ossBucketName?: pulumi.Input<string>;
165
+ /**
166
+ * The name of the OSS object (ZIP package) that contains the function code.
167
+ */
168
+ ossObjectName?: pulumi.Input<string>;
169
+ /**
170
+ * Whether to retain the old version of a previously deployed Lambda Layer. Default is `false`. When this is not set to `true`, changing any of `compatibleRuntimes`, `description`, `layerName`, `ossBucketName`, `ossObjectName`, or `zipFile` forces deletion of the existing layer version and creation of a new layer version.
171
+ */
172
+ skipDestroy?: pulumi.Input<boolean>;
173
+ /**
174
+ * The ZIP package of the function code that is encoded in the Base64 format.
175
+ */
176
+ zipFile?: pulumi.Input<string>;
177
+ }
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.LayerVersion = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * ## Example Usage
10
+ *
11
+ * Basic Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as alicloud from "@pulumi/alicloud";
16
+ *
17
+ * const example = new alicloud.fc.LayerVersion("example", {
18
+ * compatibleRuntimes: ["nodejs12"],
19
+ * layerName: "your_layer_name",
20
+ * ossBucketName: "your_code_oss_bucket_name",
21
+ * ossObjectName: "your_code_oss_object_name",
22
+ * });
23
+ * ```
24
+ *
25
+ * ## Import
26
+ *
27
+ * Function Compute Layer Version can be imported using the id, e.g.
28
+ *
29
+ * ```sh
30
+ * $ pulumi import alicloud:fc/layerVersion:LayerVersion example my_function
31
+ * ```
32
+ */
33
+ class LayerVersion extends pulumi.CustomResource {
34
+ constructor(name, argsOrState, opts) {
35
+ let resourceInputs = {};
36
+ opts = opts || {};
37
+ if (opts.id) {
38
+ const state = argsOrState;
39
+ resourceInputs["acl"] = state ? state.acl : undefined;
40
+ resourceInputs["arn"] = state ? state.arn : undefined;
41
+ resourceInputs["codeCheckSum"] = state ? state.codeCheckSum : undefined;
42
+ resourceInputs["compatibleRuntimes"] = state ? state.compatibleRuntimes : undefined;
43
+ resourceInputs["description"] = state ? state.description : undefined;
44
+ resourceInputs["layerName"] = state ? state.layerName : undefined;
45
+ resourceInputs["ossBucketName"] = state ? state.ossBucketName : undefined;
46
+ resourceInputs["ossObjectName"] = state ? state.ossObjectName : undefined;
47
+ resourceInputs["skipDestroy"] = state ? state.skipDestroy : undefined;
48
+ resourceInputs["version"] = state ? state.version : undefined;
49
+ resourceInputs["zipFile"] = state ? state.zipFile : undefined;
50
+ }
51
+ else {
52
+ const args = argsOrState;
53
+ if ((!args || args.compatibleRuntimes === undefined) && !opts.urn) {
54
+ throw new Error("Missing required property 'compatibleRuntimes'");
55
+ }
56
+ if ((!args || args.layerName === undefined) && !opts.urn) {
57
+ throw new Error("Missing required property 'layerName'");
58
+ }
59
+ resourceInputs["compatibleRuntimes"] = args ? args.compatibleRuntimes : undefined;
60
+ resourceInputs["description"] = args ? args.description : undefined;
61
+ resourceInputs["layerName"] = args ? args.layerName : undefined;
62
+ resourceInputs["ossBucketName"] = args ? args.ossBucketName : undefined;
63
+ resourceInputs["ossObjectName"] = args ? args.ossObjectName : undefined;
64
+ resourceInputs["skipDestroy"] = args ? args.skipDestroy : undefined;
65
+ resourceInputs["zipFile"] = args ? args.zipFile : undefined;
66
+ resourceInputs["acl"] = undefined /*out*/;
67
+ resourceInputs["arn"] = undefined /*out*/;
68
+ resourceInputs["codeCheckSum"] = undefined /*out*/;
69
+ resourceInputs["version"] = undefined /*out*/;
70
+ }
71
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
72
+ super(LayerVersion.__pulumiType, name, resourceInputs, opts);
73
+ }
74
+ /**
75
+ * Get an existing LayerVersion resource's state with the given name, ID, and optional extra
76
+ * properties used to qualify the lookup.
77
+ *
78
+ * @param name The _unique_ name of the resulting resource.
79
+ * @param id The _unique_ provider ID of the resource to lookup.
80
+ * @param state Any extra arguments used during the lookup.
81
+ * @param opts Optional settings to control the behavior of the CustomResource.
82
+ */
83
+ static get(name, id, state, opts) {
84
+ return new LayerVersion(name, state, Object.assign(Object.assign({}, opts), { id: id }));
85
+ }
86
+ /**
87
+ * Returns true if the given object is an instance of LayerVersion. This is designed to work even
88
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
89
+ */
90
+ static isInstance(obj) {
91
+ if (obj === undefined || obj === null) {
92
+ return false;
93
+ }
94
+ return obj['__pulumiType'] === LayerVersion.__pulumiType;
95
+ }
96
+ }
97
+ exports.LayerVersion = LayerVersion;
98
+ /** @internal */
99
+ LayerVersion.__pulumiType = 'alicloud:fc/layerVersion:LayerVersion';
100
+ //# sourceMappingURL=layerVersion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layerVersion.js","sourceRoot":"","sources":["../../fc/layerVersion.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IAiFnD,YAAY,IAAY,EAAE,WAAkD,EAAE,IAAmC;QAC7G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,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AC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC1C,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC1C,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACnD,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,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;IAtHD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnE,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,YAAY,CAAC,YAAY,CAAC;IAC7D,CAAC;;AA1BL,oCAwHC;AA1GG,gBAAgB;AACO,yBAAY,GAAG,uCAAuC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/alicloud",
3
- "version": "v3.27.0",
3
+ "version": "v3.28.0",
4
4
  "description": "A Pulumi package for creating and managing AliCloud resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -11,7 +11,7 @@
11
11
  "license": "Apache-2.0",
12
12
  "scripts": {
13
13
  "build": "tsc",
14
- "install": "node scripts/install-pulumi-plugin.js resource alicloud v3.27.0"
14
+ "install": "node scripts/install-pulumi-plugin.js resource alicloud v3.28.0"
15
15
  },
16
16
  "dependencies": {
17
17
  "@pulumi/pulumi": "^3.0.0"
package/package.json.dev CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/alicloud",
3
- "version": "v3.27.0",
3
+ "version": "v3.28.0",
4
4
  "description": "A Pulumi package for creating and managing AliCloud resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -11,7 +11,7 @@
11
11
  "license": "Apache-2.0",
12
12
  "scripts": {
13
13
  "build": "tsc",
14
- "install": "node scripts/install-pulumi-plugin.js resource alicloud v3.27.0"
14
+ "install": "node scripts/install-pulumi-plugin.js resource alicloud v3.28.0"
15
15
  },
16
16
  "dependencies": {
17
17
  "@pulumi/pulumi": "^3.0.0"
@@ -0,0 +1,101 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import { output as outputs } from "../types";
3
+ /**
4
+ * This data source provides the PolarDB Global Database Networks of the current Alibaba Cloud user.
5
+ *
6
+ * > **NOTE:** Available in v1.181.0+.
7
+ *
8
+ * ## Example Usage
9
+ *
10
+ * Basic Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as alicloud from "@pulumi/alicloud";
15
+ *
16
+ * const ids = alicloud.polardb.getGlobalDatabaseNetworks({
17
+ * ids: ["example_id"],
18
+ * });
19
+ * export const polardbGlobalDatabaseNetworkId1 = ids.then(ids => ids.networks?[0]?.id);
20
+ * const description = alicloud.polardb.getGlobalDatabaseNetworks({
21
+ * description: "example_description",
22
+ * });
23
+ * export const polardbGlobalDatabaseNetworkId2 = description.then(description => description.networks?[0]?.id);
24
+ * ```
25
+ */
26
+ export declare function getGlobalDatabaseNetworks(args?: GetGlobalDatabaseNetworksArgs, opts?: pulumi.InvokeOptions): Promise<GetGlobalDatabaseNetworksResult>;
27
+ /**
28
+ * A collection of arguments for invoking getGlobalDatabaseNetworks.
29
+ */
30
+ export interface GetGlobalDatabaseNetworksArgs {
31
+ /**
32
+ * The ID of the PolarDB cluster.
33
+ */
34
+ dbClusterId?: string;
35
+ /**
36
+ * The description of the Global Database Network.
37
+ */
38
+ description?: string;
39
+ /**
40
+ * The ID of the Global Database Network.
41
+ */
42
+ gdnId?: string;
43
+ /**
44
+ * A list of Global Database Network IDs.
45
+ */
46
+ ids?: string[];
47
+ outputFile?: string;
48
+ pageNumber?: number;
49
+ pageSize?: number;
50
+ /**
51
+ * The status of the Global Database Network.
52
+ */
53
+ status?: string;
54
+ }
55
+ /**
56
+ * A collection of values returned by getGlobalDatabaseNetworks.
57
+ */
58
+ export interface GetGlobalDatabaseNetworksResult {
59
+ readonly dbClusterId?: string;
60
+ readonly description?: string;
61
+ readonly gdnId?: string;
62
+ /**
63
+ * The provider-assigned unique ID for this managed resource.
64
+ */
65
+ readonly id: string;
66
+ readonly ids: string[];
67
+ readonly networks: outputs.polardb.GetGlobalDatabaseNetworksNetwork[];
68
+ readonly outputFile?: string;
69
+ readonly pageNumber?: number;
70
+ readonly pageSize?: number;
71
+ readonly status?: string;
72
+ }
73
+ export declare function getGlobalDatabaseNetworksOutput(args?: GetGlobalDatabaseNetworksOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetGlobalDatabaseNetworksResult>;
74
+ /**
75
+ * A collection of arguments for invoking getGlobalDatabaseNetworks.
76
+ */
77
+ export interface GetGlobalDatabaseNetworksOutputArgs {
78
+ /**
79
+ * The ID of the PolarDB cluster.
80
+ */
81
+ dbClusterId?: pulumi.Input<string>;
82
+ /**
83
+ * The description of the Global Database Network.
84
+ */
85
+ description?: pulumi.Input<string>;
86
+ /**
87
+ * The ID of the Global Database Network.
88
+ */
89
+ gdnId?: pulumi.Input<string>;
90
+ /**
91
+ * A list of Global Database Network IDs.
92
+ */
93
+ ids?: pulumi.Input<pulumi.Input<string>[]>;
94
+ outputFile?: pulumi.Input<string>;
95
+ pageNumber?: pulumi.Input<number>;
96
+ pageSize?: pulumi.Input<number>;
97
+ /**
98
+ * The status of the Global Database Network.
99
+ */
100
+ status?: pulumi.Input<string>;
101
+ }
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getGlobalDatabaseNetworksOutput = exports.getGlobalDatabaseNetworks = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * This data source provides the PolarDB Global Database Networks of the current Alibaba Cloud user.
10
+ *
11
+ * > **NOTE:** Available in v1.181.0+.
12
+ *
13
+ * ## Example Usage
14
+ *
15
+ * Basic Usage
16
+ *
17
+ * ```typescript
18
+ * import * as pulumi from "@pulumi/pulumi";
19
+ * import * as alicloud from "@pulumi/alicloud";
20
+ *
21
+ * const ids = alicloud.polardb.getGlobalDatabaseNetworks({
22
+ * ids: ["example_id"],
23
+ * });
24
+ * export const polardbGlobalDatabaseNetworkId1 = ids.then(ids => ids.networks?[0]?.id);
25
+ * const description = alicloud.polardb.getGlobalDatabaseNetworks({
26
+ * description: "example_description",
27
+ * });
28
+ * export const polardbGlobalDatabaseNetworkId2 = description.then(description => description.networks?[0]?.id);
29
+ * ```
30
+ */
31
+ function getGlobalDatabaseNetworks(args, opts) {
32
+ args = args || {};
33
+ if (!opts) {
34
+ opts = {};
35
+ }
36
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
37
+ return pulumi.runtime.invoke("alicloud:polardb/getGlobalDatabaseNetworks:getGlobalDatabaseNetworks", {
38
+ "dbClusterId": args.dbClusterId,
39
+ "description": args.description,
40
+ "gdnId": args.gdnId,
41
+ "ids": args.ids,
42
+ "outputFile": args.outputFile,
43
+ "pageNumber": args.pageNumber,
44
+ "pageSize": args.pageSize,
45
+ "status": args.status,
46
+ }, opts);
47
+ }
48
+ exports.getGlobalDatabaseNetworks = getGlobalDatabaseNetworks;
49
+ function getGlobalDatabaseNetworksOutput(args, opts) {
50
+ return pulumi.output(args).apply(a => getGlobalDatabaseNetworks(a, opts));
51
+ }
52
+ exports.getGlobalDatabaseNetworksOutput = getGlobalDatabaseNetworksOutput;
53
+ //# sourceMappingURL=getGlobalDatabaseNetworks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getGlobalDatabaseNetworks.js","sourceRoot":"","sources":["../../polardb/getGlobalDatabaseNetworks.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAgB,yBAAyB,CAAC,IAAoC,EAAE,IAA2B;IACvG,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sEAAsE,EAAE;QACjG,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,KAAK,EAAE,IAAI,CAAC,GAAG;QACf,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAjBD,8DAiBC;AAkDD,SAAgB,+BAA+B,CAAC,IAA0C,EAAE,IAA2B;IACnH,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,yBAAyB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC7E,CAAC;AAFD,0EAEC"}
@@ -0,0 +1,117 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Provides a PolarDB Global Database Network resource.
4
+ *
5
+ * For information about PolarDB Global Database Network and how to use it, see [What is Global Database Network](https://www.alibabacloud.com/help/en/polardb-for-mysql/latest/createglobaldatabasenetwork).
6
+ *
7
+ * > **NOTE:** Available in v1.181.0+.
8
+ *
9
+ * ## Example Usage
10
+ *
11
+ * Basic Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as alicloud from "@pulumi/alicloud";
16
+ *
17
+ * const defaultNetworks = alicloud.vpc.getNetworks({
18
+ * nameRegex: "default-NODELETING",
19
+ * });
20
+ * const defaultSwitches = defaultNetworks.then(defaultNetworks => alicloud.vpc.getSwitches({
21
+ * vpcId: defaultNetworks.ids?[0],
22
+ * }));
23
+ * const defaultNodeClasses = defaultSwitches.then(defaultSwitches => alicloud.polardb.getNodeClasses({
24
+ * zoneId: defaultSwitches.vswitches?[0]?.zoneId,
25
+ * payType: "PostPaid",
26
+ * dbType: "MySQL",
27
+ * dbVersion: "8.0",
28
+ * }));
29
+ * const defaultCluster = new alicloud.polardb.Cluster("defaultCluster", {
30
+ * dbType: "MySQL",
31
+ * dbVersion: "8.0",
32
+ * payType: "PostPaid",
33
+ * dbNodeClass: defaultNodeClasses.then(defaultNodeClasses => defaultNodeClasses.classes?[0]?.supportedEngines?[0]?.availableResources?[0]?.dbNodeClass),
34
+ * vswitchId: defaultSwitches.then(defaultSwitches => defaultSwitches.ids?[0]),
35
+ * description: "example_value",
36
+ * });
37
+ * const defaultGlobalDatabaseNetwork = new alicloud.polardb.GlobalDatabaseNetwork("defaultGlobalDatabaseNetwork", {
38
+ * dbClusterId: defaultCluster.id,
39
+ * description: "example_value",
40
+ * });
41
+ * ```
42
+ *
43
+ * ## Import
44
+ *
45
+ * PolarDB Global Database Network can be imported using the id, e.g.
46
+ *
47
+ * ```sh
48
+ * $ pulumi import alicloud:polardb/globalDatabaseNetwork:GlobalDatabaseNetwork example <id>
49
+ * ```
50
+ */
51
+ export declare class GlobalDatabaseNetwork extends pulumi.CustomResource {
52
+ /**
53
+ * Get an existing GlobalDatabaseNetwork resource's state with the given name, ID, and optional extra
54
+ * properties used to qualify the lookup.
55
+ *
56
+ * @param name The _unique_ name of the resulting resource.
57
+ * @param id The _unique_ provider ID of the resource to lookup.
58
+ * @param state Any extra arguments used during the lookup.
59
+ * @param opts Optional settings to control the behavior of the CustomResource.
60
+ */
61
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: GlobalDatabaseNetworkState, opts?: pulumi.CustomResourceOptions): GlobalDatabaseNetwork;
62
+ /**
63
+ * Returns true if the given object is an instance of GlobalDatabaseNetwork. This is designed to work even
64
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
65
+ */
66
+ static isInstance(obj: any): obj is GlobalDatabaseNetwork;
67
+ /**
68
+ * The ID of the primary cluster.
69
+ */
70
+ readonly dbClusterId: pulumi.Output<string>;
71
+ /**
72
+ * The description of the Global Database Network.
73
+ */
74
+ readonly description: pulumi.Output<string>;
75
+ /**
76
+ * The status of the Global Database Network.
77
+ */
78
+ readonly status: pulumi.Output<string>;
79
+ /**
80
+ * Create a GlobalDatabaseNetwork resource with the given unique name, arguments, and options.
81
+ *
82
+ * @param name The _unique_ name of the resource.
83
+ * @param args The arguments to use to populate this resource's properties.
84
+ * @param opts A bag of options that control this resource's behavior.
85
+ */
86
+ constructor(name: string, args: GlobalDatabaseNetworkArgs, opts?: pulumi.CustomResourceOptions);
87
+ }
88
+ /**
89
+ * Input properties used for looking up and filtering GlobalDatabaseNetwork resources.
90
+ */
91
+ export interface GlobalDatabaseNetworkState {
92
+ /**
93
+ * The ID of the primary cluster.
94
+ */
95
+ dbClusterId?: pulumi.Input<string>;
96
+ /**
97
+ * The description of the Global Database Network.
98
+ */
99
+ description?: pulumi.Input<string>;
100
+ /**
101
+ * The status of the Global Database Network.
102
+ */
103
+ status?: pulumi.Input<string>;
104
+ }
105
+ /**
106
+ * The set of arguments for constructing a GlobalDatabaseNetwork resource.
107
+ */
108
+ export interface GlobalDatabaseNetworkArgs {
109
+ /**
110
+ * The ID of the primary cluster.
111
+ */
112
+ dbClusterId: pulumi.Input<string>;
113
+ /**
114
+ * The description of the Global Database Network.
115
+ */
116
+ description?: pulumi.Input<string>;
117
+ }