@pulumi/alicloud 3.48.0 → 3.49.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.
- package/cms/namespace.d.ts +15 -14
- package/cms/namespace.js +3 -2
- package/cms/namespace.js.map +1 -1
- package/ecs/eipAssociation.d.ts +29 -17
- package/ecs/eipAssociation.js +3 -1
- package/ecs/eipAssociation.js.map +1 -1
- package/ess/eciScalingConfiguration.d.ts +6 -3
- package/ess/eciScalingConfiguration.js.map +1 -1
- package/package.json +1 -1
- package/polardb/clusterEndpoint.d.ts +268 -0
- package/polardb/clusterEndpoint.js +130 -0
- package/polardb/clusterEndpoint.js.map +1 -0
- package/polardb/endpoint.d.ts +129 -30
- package/polardb/endpoint.js +9 -21
- package/polardb/endpoint.js.map +1 -1
- package/polardb/endpointAddress.d.ts +8 -3
- package/polardb/endpointAddress.js +3 -2
- package/polardb/endpointAddress.js.map +1 -1
- package/polardb/index.d.ts +6 -0
- package/polardb/index.js +11 -1
- package/polardb/index.js.map +1 -1
- package/polardb/primaryEndpoint.d.ts +214 -0
- package/polardb/primaryEndpoint.js +122 -0
- package/polardb/primaryEndpoint.js.map +1 -0
|
@@ -0,0 +1,130 @@
|
|
|
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.ClusterEndpoint = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a PolarDB endpoint resource to manage cluster endpoint of PolarDB cluster.
|
|
10
|
+
*
|
|
11
|
+
* > **NOTE:** Available since v1.217.0
|
|
12
|
+
*
|
|
13
|
+
* > **NOTE:** The default cluster endpoint can not be created or deleted manually.
|
|
14
|
+
*
|
|
15
|
+
* ## Example Usage
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as alicloud from "@pulumi/alicloud";
|
|
20
|
+
*
|
|
21
|
+
* const defaultNodeClasses = alicloud.polardb.getNodeClasses({
|
|
22
|
+
* dbType: "MySQL",
|
|
23
|
+
* dbVersion: "8.0",
|
|
24
|
+
* payType: "PostPaid",
|
|
25
|
+
* category: "Normal",
|
|
26
|
+
* });
|
|
27
|
+
* const defaultNetwork = new alicloud.vpc.Network("defaultNetwork", {
|
|
28
|
+
* vpcName: "terraform-example",
|
|
29
|
+
* cidrBlock: "172.16.0.0/16",
|
|
30
|
+
* });
|
|
31
|
+
* const defaultSwitch = new alicloud.vpc.Switch("defaultSwitch", {
|
|
32
|
+
* vpcId: defaultNetwork.id,
|
|
33
|
+
* cidrBlock: "172.16.0.0/24",
|
|
34
|
+
* zoneId: defaultNodeClasses.then(defaultNodeClasses => defaultNodeClasses.classes?.[0]?.zoneId),
|
|
35
|
+
* vswitchName: "terraform-example",
|
|
36
|
+
* });
|
|
37
|
+
* const defaultCluster = new alicloud.polardb.Cluster("defaultCluster", {
|
|
38
|
+
* dbType: "MySQL",
|
|
39
|
+
* dbVersion: "8.0",
|
|
40
|
+
* dbNodeClass: defaultNodeClasses.then(defaultNodeClasses => defaultNodeClasses.classes?.[0]?.supportedEngines?.[0]?.availableResources?.[0]?.dbNodeClass),
|
|
41
|
+
* payType: "PostPaid",
|
|
42
|
+
* vswitchId: defaultSwitch.id,
|
|
43
|
+
* description: "terraform-example",
|
|
44
|
+
* });
|
|
45
|
+
* const defaultClusterEndpoint = new alicloud.polardb.ClusterEndpoint("defaultClusterEndpoint", {dbClusterId: defaultCluster.id});
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* ## Import
|
|
49
|
+
*
|
|
50
|
+
* PolarDB endpoint can be imported using the id, e.g.
|
|
51
|
+
*
|
|
52
|
+
* ```sh
|
|
53
|
+
* $ pulumi import alicloud:polardb/clusterEndpoint:ClusterEndpoint example pc-abc123456:pe-abc123456
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
class ClusterEndpoint extends pulumi.CustomResource {
|
|
57
|
+
/**
|
|
58
|
+
* Get an existing ClusterEndpoint resource's state with the given name, ID, and optional extra
|
|
59
|
+
* properties used to qualify the lookup.
|
|
60
|
+
*
|
|
61
|
+
* @param name The _unique_ name of the resulting resource.
|
|
62
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
63
|
+
* @param state Any extra arguments used during the lookup.
|
|
64
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
65
|
+
*/
|
|
66
|
+
static get(name, id, state, opts) {
|
|
67
|
+
return new ClusterEndpoint(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Returns true if the given object is an instance of ClusterEndpoint. This is designed to work even
|
|
71
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
72
|
+
*/
|
|
73
|
+
static isInstance(obj) {
|
|
74
|
+
if (obj === undefined || obj === null) {
|
|
75
|
+
return false;
|
|
76
|
+
}
|
|
77
|
+
return obj['__pulumiType'] === ClusterEndpoint.__pulumiType;
|
|
78
|
+
}
|
|
79
|
+
constructor(name, argsOrState, opts) {
|
|
80
|
+
let resourceInputs = {};
|
|
81
|
+
opts = opts || {};
|
|
82
|
+
if (opts.id) {
|
|
83
|
+
const state = argsOrState;
|
|
84
|
+
resourceInputs["autoAddNewNodes"] = state ? state.autoAddNewNodes : undefined;
|
|
85
|
+
resourceInputs["connectionPrefix"] = state ? state.connectionPrefix : undefined;
|
|
86
|
+
resourceInputs["dbClusterId"] = state ? state.dbClusterId : undefined;
|
|
87
|
+
resourceInputs["dbEndpointDescription"] = state ? state.dbEndpointDescription : undefined;
|
|
88
|
+
resourceInputs["dbEndpointId"] = state ? state.dbEndpointId : undefined;
|
|
89
|
+
resourceInputs["endpointConfig"] = state ? state.endpointConfig : undefined;
|
|
90
|
+
resourceInputs["endpointType"] = state ? state.endpointType : undefined;
|
|
91
|
+
resourceInputs["netType"] = state ? state.netType : undefined;
|
|
92
|
+
resourceInputs["nodes"] = state ? state.nodes : undefined;
|
|
93
|
+
resourceInputs["port"] = state ? state.port : undefined;
|
|
94
|
+
resourceInputs["readWriteMode"] = state ? state.readWriteMode : undefined;
|
|
95
|
+
resourceInputs["sslAutoRotate"] = state ? state.sslAutoRotate : undefined;
|
|
96
|
+
resourceInputs["sslCertificateUrl"] = state ? state.sslCertificateUrl : undefined;
|
|
97
|
+
resourceInputs["sslConnectionString"] = state ? state.sslConnectionString : undefined;
|
|
98
|
+
resourceInputs["sslEnabled"] = state ? state.sslEnabled : undefined;
|
|
99
|
+
resourceInputs["sslExpireTime"] = state ? state.sslExpireTime : undefined;
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
const args = argsOrState;
|
|
103
|
+
if ((!args || args.dbClusterId === undefined) && !opts.urn) {
|
|
104
|
+
throw new Error("Missing required property 'dbClusterId'");
|
|
105
|
+
}
|
|
106
|
+
resourceInputs["autoAddNewNodes"] = args ? args.autoAddNewNodes : undefined;
|
|
107
|
+
resourceInputs["connectionPrefix"] = args ? args.connectionPrefix : undefined;
|
|
108
|
+
resourceInputs["dbClusterId"] = args ? args.dbClusterId : undefined;
|
|
109
|
+
resourceInputs["dbEndpointDescription"] = args ? args.dbEndpointDescription : undefined;
|
|
110
|
+
resourceInputs["endpointConfig"] = args ? args.endpointConfig : undefined;
|
|
111
|
+
resourceInputs["netType"] = args ? args.netType : undefined;
|
|
112
|
+
resourceInputs["nodes"] = args ? args.nodes : undefined;
|
|
113
|
+
resourceInputs["port"] = args ? args.port : undefined;
|
|
114
|
+
resourceInputs["readWriteMode"] = args ? args.readWriteMode : undefined;
|
|
115
|
+
resourceInputs["sslAutoRotate"] = args ? args.sslAutoRotate : undefined;
|
|
116
|
+
resourceInputs["sslEnabled"] = args ? args.sslEnabled : undefined;
|
|
117
|
+
resourceInputs["dbEndpointId"] = undefined /*out*/;
|
|
118
|
+
resourceInputs["endpointType"] = undefined /*out*/;
|
|
119
|
+
resourceInputs["sslCertificateUrl"] = undefined /*out*/;
|
|
120
|
+
resourceInputs["sslConnectionString"] = undefined /*out*/;
|
|
121
|
+
resourceInputs["sslExpireTime"] = undefined /*out*/;
|
|
122
|
+
}
|
|
123
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
124
|
+
super(ClusterEndpoint.__pulumiType, name, resourceInputs, opts);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
exports.ClusterEndpoint = ClusterEndpoint;
|
|
128
|
+
/** @internal */
|
|
129
|
+
ClusterEndpoint.__pulumiType = 'alicloud:polardb/clusterEndpoint:ClusterEndpoint';
|
|
130
|
+
//# sourceMappingURL=clusterEndpoint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clusterEndpoint.js","sourceRoot":"","sources":["../../polardb/clusterEndpoint.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;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,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,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,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACvD;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;;AApJL,0CAqJC;AAvIG,gBAAgB;AACO,4BAAY,GAAG,kDAAkD,CAAC"}
|
package/polardb/endpoint.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
* Provides a PolarDB endpoint resource to manage endpoint of PolarDB cluster.
|
|
3
|
+
* Provides a PolarDB endpoint resource to manage custom endpoint of PolarDB cluster.
|
|
4
4
|
*
|
|
5
|
-
* > **NOTE:**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* > **NOTE:** Available since v1.80.0.
|
|
6
|
+
* **NOTE:** After v1.80.0 and before v1.121.0, you can only use this resource to manage the custom endpoint. Since v1.121.0, you also can import the primary endpoint and the cluster endpoint, to modify their ssl status and so on.
|
|
7
|
+
* **NOTE:** The primary endpoint and the default cluster endpoint can not be created or deleted manually.
|
|
8
8
|
*
|
|
9
9
|
* ## Example Usage
|
|
10
10
|
*
|
|
@@ -16,6 +16,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
16
16
|
* dbType: "MySQL",
|
|
17
17
|
* dbVersion: "8.0",
|
|
18
18
|
* payType: "PostPaid",
|
|
19
|
+
* category: "Normal",
|
|
19
20
|
* });
|
|
20
21
|
* const defaultNetwork = new alicloud.vpc.Network("defaultNetwork", {
|
|
21
22
|
* vpcName: "terraform-example",
|
|
@@ -40,23 +41,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
40
41
|
* endpointType: "Custom",
|
|
41
42
|
* });
|
|
42
43
|
* ```
|
|
43
|
-
* ## Argument Reference
|
|
44
|
-
*
|
|
45
|
-
* The following arguments are supported:
|
|
46
|
-
*
|
|
47
|
-
* * `dbClusterId` - (Required, ForceNew) The Id of cluster that can run database.
|
|
48
|
-
* * `endpointType` - (Optional, ForceNew) Type of the endpoint. Before v1.121.0, it only can be `Custom`. since v1.121.0, `Custom`, `Cluster`, `Primary` are valid, default to `Custom`. However when creating a new endpoint, it also only can be `Custom`.
|
|
49
|
-
* * `readWriteMode` - (Optional) Read or write mode. Valid values are `ReadWrite`, `ReadOnly`. When creating a new custom endpoint, default to `ReadOnly`.
|
|
50
|
-
* * `nodes` - (Optional) Node id list for endpoint configuration. At least 2 nodes if specified, or if the cluster has more than 3 nodes, read-only endpoint is allowed to mount only one node. Default is all nodes.
|
|
51
|
-
* * `autoAddNewNodes` - (Optional) Whether the new node automatically joins the default cluster address. Valid values are `Enable`, `Disable`. When creating a new custom endpoint, default to `Disable`.
|
|
52
|
-
* * `endpointConfig` - (Optional) The advanced settings of the endpoint of Apsara PolarDB clusters are in JSON format. Including the settings of consistency level, transaction splitting, connection pool, and offload reads from primary node. For more details, see the [description of EndpointConfig in the Request parameters table for details](https://www.alibabacloud.com/help/doc-detail/116593.htm).
|
|
53
|
-
* * `sslEnabled` - (Optional, Available in v1.121.0+) Specifies how to modify the SSL encryption status. Valid values: `Disable`, `Enable`, `Update`.
|
|
54
|
-
* * `netType` - (Optional, Available in v1.121.0+) The network type of the endpoint address.
|
|
55
|
-
* * `sslAutoRotate` - (Available in v1.132.0+) Specifies whether automatic rotation of SSL certificates is enabled. Valid values: `Enable`,`Disable`.
|
|
56
|
-
* * `sslCertificateUrl` - (Available in v1.132.0+) Specifies SSL certificate download link.\
|
|
57
|
-
* **NOTE:** For a PolarDB for MySQL cluster, this parameter is required, and only one connection string in each endpoint can enable the ssl, for other notes, see [Configure SSL encryption](https://www.alibabacloud.com/help/doc-detail/153182.htm).\
|
|
58
|
-
* For a PolarDB for PostgreSQL cluster or a PolarDB-O cluster, this parameter is not required, by default, SSL encryption is enabled for all endpoints.
|
|
59
|
-
* * `dbEndpointDescription` - (Optional, Available in v1.201.0+) The name of the endpoint.
|
|
60
44
|
*
|
|
61
45
|
* ## Import
|
|
62
46
|
*
|
|
@@ -82,32 +66,72 @@ export declare class Endpoint extends pulumi.CustomResource {
|
|
|
82
66
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
83
67
|
*/
|
|
84
68
|
static isInstance(obj: any): obj is Endpoint;
|
|
69
|
+
/**
|
|
70
|
+
* Whether the new node automatically joins the default cluster address. Valid values are `Enable`, `Disable`. When creating a new custom endpoint, default to `Disable`.
|
|
71
|
+
*/
|
|
85
72
|
readonly autoAddNewNodes: pulumi.Output<string>;
|
|
73
|
+
/**
|
|
74
|
+
* Prefix of the specified endpoint. The prefix must be 6 to 30 characters in length, and can contain lowercase letters, digits, and hyphens (-), must start with a letter and end with a digit or letter.
|
|
75
|
+
*/
|
|
76
|
+
readonly connectionPrefix: pulumi.Output<string>;
|
|
77
|
+
/**
|
|
78
|
+
* The Id of cluster that can run database.
|
|
79
|
+
*/
|
|
86
80
|
readonly dbClusterId: pulumi.Output<string>;
|
|
81
|
+
/**
|
|
82
|
+
* The name of the endpoint.
|
|
83
|
+
*/
|
|
87
84
|
readonly dbEndpointDescription: pulumi.Output<string | undefined>;
|
|
88
85
|
/**
|
|
89
|
-
* (Available
|
|
86
|
+
* (Available since v1.161.0) The ID of the cluster endpoint.
|
|
90
87
|
*/
|
|
91
88
|
readonly dbEndpointId: pulumi.Output<string>;
|
|
89
|
+
/**
|
|
90
|
+
* The advanced settings of the endpoint of Apsara PolarDB clusters are in JSON format. Including the settings of consistency level, transaction splitting, connection pool, and offload reads from primary node. For more details, see the [description of EndpointConfig in the Request parameters table for details](https://www.alibabacloud.com/help/doc-detail/116593.htm).
|
|
91
|
+
*/
|
|
92
92
|
readonly endpointConfig: pulumi.Output<{
|
|
93
93
|
[key: string]: any;
|
|
94
94
|
}>;
|
|
95
95
|
/**
|
|
96
|
-
* Type of endpoint.
|
|
96
|
+
* Type of the endpoint. Before v1.121.0, it only can be `Custom`. since v1.121.0, `Custom`, `Cluster`, `Primary` are valid, default to `Custom`. However when creating a new endpoint, it also only can be `Custom`.
|
|
97
97
|
*/
|
|
98
98
|
readonly endpointType: pulumi.Output<string | undefined>;
|
|
99
|
+
/**
|
|
100
|
+
* The network type of the endpoint address.
|
|
101
|
+
*/
|
|
99
102
|
readonly netType: pulumi.Output<string | undefined>;
|
|
103
|
+
/**
|
|
104
|
+
* Node id list for endpoint configuration. At least 2 nodes if specified, or if the cluster has more than 3 nodes, read-only endpoint is allowed to mount only one node. Default is all nodes.
|
|
105
|
+
*/
|
|
100
106
|
readonly nodes: pulumi.Output<string[]>;
|
|
107
|
+
/**
|
|
108
|
+
* Port of the specified endpoint. Valid values: 3000 to 5999.
|
|
109
|
+
*/
|
|
110
|
+
readonly port: pulumi.Output<string>;
|
|
111
|
+
/**
|
|
112
|
+
* Read or write mode. Valid values are `ReadWrite`, `ReadOnly`. When creating a new custom endpoint, default to `ReadOnly`.
|
|
113
|
+
*/
|
|
101
114
|
readonly readWriteMode: pulumi.Output<string>;
|
|
115
|
+
/**
|
|
116
|
+
* Specifies whether automatic rotation of SSL certificates is enabled. Valid values: `Enable`,`Disable`.
|
|
117
|
+
*/
|
|
102
118
|
readonly sslAutoRotate: pulumi.Output<string | undefined>;
|
|
119
|
+
/**
|
|
120
|
+
* Specifies SSL certificate download link.
|
|
121
|
+
* **NOTE:** For a PolarDB for MySQL cluster, this parameter is required, and only one connection string in each endpoint can enable the ssl, for other notes, see [Configure SSL encryption](https://www.alibabacloud.com/help/doc-detail/153182.htm).
|
|
122
|
+
* For a PolarDB for PostgreSQL cluster or a PolarDB-O cluster, this parameter is not required, by default, SSL encryption is enabled for all endpoints.
|
|
123
|
+
*/
|
|
103
124
|
readonly sslCertificateUrl: pulumi.Output<string>;
|
|
104
125
|
/**
|
|
105
|
-
* (Available
|
|
126
|
+
* (Available since v1.121.0) The SSL connection string.
|
|
106
127
|
*/
|
|
107
128
|
readonly sslConnectionString: pulumi.Output<string>;
|
|
129
|
+
/**
|
|
130
|
+
* Specifies how to modify the SSL encryption status. Valid values: `Disable`, `Enable`, `Update`.
|
|
131
|
+
*/
|
|
108
132
|
readonly sslEnabled: pulumi.Output<string | undefined>;
|
|
109
133
|
/**
|
|
110
|
-
* (Available
|
|
134
|
+
* (Available since v1.121.0) The time when the SSL certificate expires. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
|
|
111
135
|
*/
|
|
112
136
|
readonly sslExpireTime: pulumi.Output<string>;
|
|
113
137
|
/**
|
|
@@ -123,32 +147,72 @@ export declare class Endpoint extends pulumi.CustomResource {
|
|
|
123
147
|
* Input properties used for looking up and filtering Endpoint resources.
|
|
124
148
|
*/
|
|
125
149
|
export interface EndpointState {
|
|
150
|
+
/**
|
|
151
|
+
* Whether the new node automatically joins the default cluster address. Valid values are `Enable`, `Disable`. When creating a new custom endpoint, default to `Disable`.
|
|
152
|
+
*/
|
|
126
153
|
autoAddNewNodes?: pulumi.Input<string>;
|
|
154
|
+
/**
|
|
155
|
+
* Prefix of the specified endpoint. The prefix must be 6 to 30 characters in length, and can contain lowercase letters, digits, and hyphens (-), must start with a letter and end with a digit or letter.
|
|
156
|
+
*/
|
|
157
|
+
connectionPrefix?: pulumi.Input<string>;
|
|
158
|
+
/**
|
|
159
|
+
* The Id of cluster that can run database.
|
|
160
|
+
*/
|
|
127
161
|
dbClusterId?: pulumi.Input<string>;
|
|
162
|
+
/**
|
|
163
|
+
* The name of the endpoint.
|
|
164
|
+
*/
|
|
128
165
|
dbEndpointDescription?: pulumi.Input<string>;
|
|
129
166
|
/**
|
|
130
|
-
* (Available
|
|
167
|
+
* (Available since v1.161.0) The ID of the cluster endpoint.
|
|
131
168
|
*/
|
|
132
169
|
dbEndpointId?: pulumi.Input<string>;
|
|
170
|
+
/**
|
|
171
|
+
* The advanced settings of the endpoint of Apsara PolarDB clusters are in JSON format. Including the settings of consistency level, transaction splitting, connection pool, and offload reads from primary node. For more details, see the [description of EndpointConfig in the Request parameters table for details](https://www.alibabacloud.com/help/doc-detail/116593.htm).
|
|
172
|
+
*/
|
|
133
173
|
endpointConfig?: pulumi.Input<{
|
|
134
174
|
[key: string]: any;
|
|
135
175
|
}>;
|
|
136
176
|
/**
|
|
137
|
-
* Type of endpoint.
|
|
177
|
+
* Type of the endpoint. Before v1.121.0, it only can be `Custom`. since v1.121.0, `Custom`, `Cluster`, `Primary` are valid, default to `Custom`. However when creating a new endpoint, it also only can be `Custom`.
|
|
138
178
|
*/
|
|
139
179
|
endpointType?: pulumi.Input<string>;
|
|
180
|
+
/**
|
|
181
|
+
* The network type of the endpoint address.
|
|
182
|
+
*/
|
|
140
183
|
netType?: pulumi.Input<string>;
|
|
184
|
+
/**
|
|
185
|
+
* Node id list for endpoint configuration. At least 2 nodes if specified, or if the cluster has more than 3 nodes, read-only endpoint is allowed to mount only one node. Default is all nodes.
|
|
186
|
+
*/
|
|
141
187
|
nodes?: pulumi.Input<pulumi.Input<string>[]>;
|
|
188
|
+
/**
|
|
189
|
+
* Port of the specified endpoint. Valid values: 3000 to 5999.
|
|
190
|
+
*/
|
|
191
|
+
port?: pulumi.Input<string>;
|
|
192
|
+
/**
|
|
193
|
+
* Read or write mode. Valid values are `ReadWrite`, `ReadOnly`. When creating a new custom endpoint, default to `ReadOnly`.
|
|
194
|
+
*/
|
|
142
195
|
readWriteMode?: pulumi.Input<string>;
|
|
196
|
+
/**
|
|
197
|
+
* Specifies whether automatic rotation of SSL certificates is enabled. Valid values: `Enable`,`Disable`.
|
|
198
|
+
*/
|
|
143
199
|
sslAutoRotate?: pulumi.Input<string>;
|
|
200
|
+
/**
|
|
201
|
+
* Specifies SSL certificate download link.
|
|
202
|
+
* **NOTE:** For a PolarDB for MySQL cluster, this parameter is required, and only one connection string in each endpoint can enable the ssl, for other notes, see [Configure SSL encryption](https://www.alibabacloud.com/help/doc-detail/153182.htm).
|
|
203
|
+
* For a PolarDB for PostgreSQL cluster or a PolarDB-O cluster, this parameter is not required, by default, SSL encryption is enabled for all endpoints.
|
|
204
|
+
*/
|
|
144
205
|
sslCertificateUrl?: pulumi.Input<string>;
|
|
145
206
|
/**
|
|
146
|
-
* (Available
|
|
207
|
+
* (Available since v1.121.0) The SSL connection string.
|
|
147
208
|
*/
|
|
148
209
|
sslConnectionString?: pulumi.Input<string>;
|
|
210
|
+
/**
|
|
211
|
+
* Specifies how to modify the SSL encryption status. Valid values: `Disable`, `Enable`, `Update`.
|
|
212
|
+
*/
|
|
149
213
|
sslEnabled?: pulumi.Input<string>;
|
|
150
214
|
/**
|
|
151
|
-
* (Available
|
|
215
|
+
* (Available since v1.121.0) The time when the SSL certificate expires. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
|
|
152
216
|
*/
|
|
153
217
|
sslExpireTime?: pulumi.Input<string>;
|
|
154
218
|
}
|
|
@@ -156,19 +220,54 @@ export interface EndpointState {
|
|
|
156
220
|
* The set of arguments for constructing a Endpoint resource.
|
|
157
221
|
*/
|
|
158
222
|
export interface EndpointArgs {
|
|
223
|
+
/**
|
|
224
|
+
* Whether the new node automatically joins the default cluster address. Valid values are `Enable`, `Disable`. When creating a new custom endpoint, default to `Disable`.
|
|
225
|
+
*/
|
|
159
226
|
autoAddNewNodes?: pulumi.Input<string>;
|
|
227
|
+
/**
|
|
228
|
+
* Prefix of the specified endpoint. The prefix must be 6 to 30 characters in length, and can contain lowercase letters, digits, and hyphens (-), must start with a letter and end with a digit or letter.
|
|
229
|
+
*/
|
|
230
|
+
connectionPrefix?: pulumi.Input<string>;
|
|
231
|
+
/**
|
|
232
|
+
* The Id of cluster that can run database.
|
|
233
|
+
*/
|
|
160
234
|
dbClusterId: pulumi.Input<string>;
|
|
235
|
+
/**
|
|
236
|
+
* The name of the endpoint.
|
|
237
|
+
*/
|
|
161
238
|
dbEndpointDescription?: pulumi.Input<string>;
|
|
239
|
+
/**
|
|
240
|
+
* The advanced settings of the endpoint of Apsara PolarDB clusters are in JSON format. Including the settings of consistency level, transaction splitting, connection pool, and offload reads from primary node. For more details, see the [description of EndpointConfig in the Request parameters table for details](https://www.alibabacloud.com/help/doc-detail/116593.htm).
|
|
241
|
+
*/
|
|
162
242
|
endpointConfig?: pulumi.Input<{
|
|
163
243
|
[key: string]: any;
|
|
164
244
|
}>;
|
|
165
245
|
/**
|
|
166
|
-
* Type of endpoint.
|
|
246
|
+
* Type of the endpoint. Before v1.121.0, it only can be `Custom`. since v1.121.0, `Custom`, `Cluster`, `Primary` are valid, default to `Custom`. However when creating a new endpoint, it also only can be `Custom`.
|
|
167
247
|
*/
|
|
168
248
|
endpointType?: pulumi.Input<string>;
|
|
249
|
+
/**
|
|
250
|
+
* The network type of the endpoint address.
|
|
251
|
+
*/
|
|
169
252
|
netType?: pulumi.Input<string>;
|
|
253
|
+
/**
|
|
254
|
+
* Node id list for endpoint configuration. At least 2 nodes if specified, or if the cluster has more than 3 nodes, read-only endpoint is allowed to mount only one node. Default is all nodes.
|
|
255
|
+
*/
|
|
170
256
|
nodes?: pulumi.Input<pulumi.Input<string>[]>;
|
|
257
|
+
/**
|
|
258
|
+
* Port of the specified endpoint. Valid values: 3000 to 5999.
|
|
259
|
+
*/
|
|
260
|
+
port?: pulumi.Input<string>;
|
|
261
|
+
/**
|
|
262
|
+
* Read or write mode. Valid values are `ReadWrite`, `ReadOnly`. When creating a new custom endpoint, default to `ReadOnly`.
|
|
263
|
+
*/
|
|
171
264
|
readWriteMode?: pulumi.Input<string>;
|
|
265
|
+
/**
|
|
266
|
+
* Specifies whether automatic rotation of SSL certificates is enabled. Valid values: `Enable`,`Disable`.
|
|
267
|
+
*/
|
|
172
268
|
sslAutoRotate?: pulumi.Input<string>;
|
|
269
|
+
/**
|
|
270
|
+
* Specifies how to modify the SSL encryption status. Valid values: `Disable`, `Enable`, `Update`.
|
|
271
|
+
*/
|
|
173
272
|
sslEnabled?: pulumi.Input<string>;
|
|
174
273
|
}
|
package/polardb/endpoint.js
CHANGED
|
@@ -6,11 +6,11 @@ exports.Endpoint = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
-
* Provides a PolarDB endpoint resource to manage endpoint of PolarDB cluster.
|
|
9
|
+
* Provides a PolarDB endpoint resource to manage custom endpoint of PolarDB cluster.
|
|
10
10
|
*
|
|
11
|
-
* > **NOTE:**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
11
|
+
* > **NOTE:** Available since v1.80.0.
|
|
12
|
+
* **NOTE:** After v1.80.0 and before v1.121.0, you can only use this resource to manage the custom endpoint. Since v1.121.0, you also can import the primary endpoint and the cluster endpoint, to modify their ssl status and so on.
|
|
13
|
+
* **NOTE:** The primary endpoint and the default cluster endpoint can not be created or deleted manually.
|
|
14
14
|
*
|
|
15
15
|
* ## Example Usage
|
|
16
16
|
*
|
|
@@ -22,6 +22,7 @@ const utilities = require("../utilities");
|
|
|
22
22
|
* dbType: "MySQL",
|
|
23
23
|
* dbVersion: "8.0",
|
|
24
24
|
* payType: "PostPaid",
|
|
25
|
+
* category: "Normal",
|
|
25
26
|
* });
|
|
26
27
|
* const defaultNetwork = new alicloud.vpc.Network("defaultNetwork", {
|
|
27
28
|
* vpcName: "terraform-example",
|
|
@@ -46,23 +47,6 @@ const utilities = require("../utilities");
|
|
|
46
47
|
* endpointType: "Custom",
|
|
47
48
|
* });
|
|
48
49
|
* ```
|
|
49
|
-
* ## Argument Reference
|
|
50
|
-
*
|
|
51
|
-
* The following arguments are supported:
|
|
52
|
-
*
|
|
53
|
-
* * `dbClusterId` - (Required, ForceNew) The Id of cluster that can run database.
|
|
54
|
-
* * `endpointType` - (Optional, ForceNew) Type of the endpoint. Before v1.121.0, it only can be `Custom`. since v1.121.0, `Custom`, `Cluster`, `Primary` are valid, default to `Custom`. However when creating a new endpoint, it also only can be `Custom`.
|
|
55
|
-
* * `readWriteMode` - (Optional) Read or write mode. Valid values are `ReadWrite`, `ReadOnly`. When creating a new custom endpoint, default to `ReadOnly`.
|
|
56
|
-
* * `nodes` - (Optional) Node id list for endpoint configuration. At least 2 nodes if specified, or if the cluster has more than 3 nodes, read-only endpoint is allowed to mount only one node. Default is all nodes.
|
|
57
|
-
* * `autoAddNewNodes` - (Optional) Whether the new node automatically joins the default cluster address. Valid values are `Enable`, `Disable`. When creating a new custom endpoint, default to `Disable`.
|
|
58
|
-
* * `endpointConfig` - (Optional) The advanced settings of the endpoint of Apsara PolarDB clusters are in JSON format. Including the settings of consistency level, transaction splitting, connection pool, and offload reads from primary node. For more details, see the [description of EndpointConfig in the Request parameters table for details](https://www.alibabacloud.com/help/doc-detail/116593.htm).
|
|
59
|
-
* * `sslEnabled` - (Optional, Available in v1.121.0+) Specifies how to modify the SSL encryption status. Valid values: `Disable`, `Enable`, `Update`.
|
|
60
|
-
* * `netType` - (Optional, Available in v1.121.0+) The network type of the endpoint address.
|
|
61
|
-
* * `sslAutoRotate` - (Available in v1.132.0+) Specifies whether automatic rotation of SSL certificates is enabled. Valid values: `Enable`,`Disable`.
|
|
62
|
-
* * `sslCertificateUrl` - (Available in v1.132.0+) Specifies SSL certificate download link.\
|
|
63
|
-
* **NOTE:** For a PolarDB for MySQL cluster, this parameter is required, and only one connection string in each endpoint can enable the ssl, for other notes, see [Configure SSL encryption](https://www.alibabacloud.com/help/doc-detail/153182.htm).\
|
|
64
|
-
* For a PolarDB for PostgreSQL cluster or a PolarDB-O cluster, this parameter is not required, by default, SSL encryption is enabled for all endpoints.
|
|
65
|
-
* * `dbEndpointDescription` - (Optional, Available in v1.201.0+) The name of the endpoint.
|
|
66
50
|
*
|
|
67
51
|
* ## Import
|
|
68
52
|
*
|
|
@@ -101,6 +85,7 @@ class Endpoint extends pulumi.CustomResource {
|
|
|
101
85
|
if (opts.id) {
|
|
102
86
|
const state = argsOrState;
|
|
103
87
|
resourceInputs["autoAddNewNodes"] = state ? state.autoAddNewNodes : undefined;
|
|
88
|
+
resourceInputs["connectionPrefix"] = state ? state.connectionPrefix : undefined;
|
|
104
89
|
resourceInputs["dbClusterId"] = state ? state.dbClusterId : undefined;
|
|
105
90
|
resourceInputs["dbEndpointDescription"] = state ? state.dbEndpointDescription : undefined;
|
|
106
91
|
resourceInputs["dbEndpointId"] = state ? state.dbEndpointId : undefined;
|
|
@@ -108,6 +93,7 @@ class Endpoint extends pulumi.CustomResource {
|
|
|
108
93
|
resourceInputs["endpointType"] = state ? state.endpointType : undefined;
|
|
109
94
|
resourceInputs["netType"] = state ? state.netType : undefined;
|
|
110
95
|
resourceInputs["nodes"] = state ? state.nodes : undefined;
|
|
96
|
+
resourceInputs["port"] = state ? state.port : undefined;
|
|
111
97
|
resourceInputs["readWriteMode"] = state ? state.readWriteMode : undefined;
|
|
112
98
|
resourceInputs["sslAutoRotate"] = state ? state.sslAutoRotate : undefined;
|
|
113
99
|
resourceInputs["sslCertificateUrl"] = state ? state.sslCertificateUrl : undefined;
|
|
@@ -121,12 +107,14 @@ class Endpoint extends pulumi.CustomResource {
|
|
|
121
107
|
throw new Error("Missing required property 'dbClusterId'");
|
|
122
108
|
}
|
|
123
109
|
resourceInputs["autoAddNewNodes"] = args ? args.autoAddNewNodes : undefined;
|
|
110
|
+
resourceInputs["connectionPrefix"] = args ? args.connectionPrefix : undefined;
|
|
124
111
|
resourceInputs["dbClusterId"] = args ? args.dbClusterId : undefined;
|
|
125
112
|
resourceInputs["dbEndpointDescription"] = args ? args.dbEndpointDescription : undefined;
|
|
126
113
|
resourceInputs["endpointConfig"] = args ? args.endpointConfig : undefined;
|
|
127
114
|
resourceInputs["endpointType"] = args ? args.endpointType : undefined;
|
|
128
115
|
resourceInputs["netType"] = args ? args.netType : undefined;
|
|
129
116
|
resourceInputs["nodes"] = args ? args.nodes : undefined;
|
|
117
|
+
resourceInputs["port"] = args ? args.port : undefined;
|
|
130
118
|
resourceInputs["readWriteMode"] = args ? args.readWriteMode : undefined;
|
|
131
119
|
resourceInputs["sslAutoRotate"] = args ? args.sslAutoRotate : undefined;
|
|
132
120
|
resourceInputs["sslEnabled"] = args ? args.sslEnabled : undefined;
|
package/polardb/endpoint.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoint.js","sourceRoot":"","sources":["../../polardb/endpoint.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"endpoint.js","sourceRoot":"","sources":["../../polardb/endpoint.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/D,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,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;IA6ED,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwC,CAAC;YACvD,cAAc,CAAC,iBAAiB,CAAC,GAAG,KAAK,CA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AApJL,4BAqJC;AAvIG,gBAAgB;AACO,qBAAY,GAAG,oCAAoC,CAAC"}
|
|
@@ -2,7 +2,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
/**
|
|
3
3
|
* Provides a PolarDB endpoint address resource to allocate an Internet endpoint address string for PolarDB instance.
|
|
4
4
|
*
|
|
5
|
-
* > **NOTE:** Available
|
|
5
|
+
* > **NOTE:** Available since v1.68.0. Each PolarDB instance will allocate a intranet connection string automatically and its prefix is Cluster ID.
|
|
6
6
|
* To avoid unnecessary conflict, please specified a internet connection prefix before applying the resource.
|
|
7
7
|
*
|
|
8
8
|
* ## Example Usage
|
|
@@ -15,6 +15,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
15
15
|
* dbType: "MySQL",
|
|
16
16
|
* dbVersion: "8.0",
|
|
17
17
|
* payType: "PostPaid",
|
|
18
|
+
* category: "Normal",
|
|
18
19
|
* });
|
|
19
20
|
* const defaultNetwork = new alicloud.vpc.Network("defaultNetwork", {
|
|
20
21
|
* vpcName: "terraform-example",
|
|
@@ -94,7 +95,7 @@ export declare class EndpointAddress extends pulumi.CustomResource {
|
|
|
94
95
|
*/
|
|
95
96
|
readonly netType: pulumi.Output<string | undefined>;
|
|
96
97
|
/**
|
|
97
|
-
*
|
|
98
|
+
* Port of the specified endpoint. Valid values: 3000 to 5999.
|
|
98
99
|
*/
|
|
99
100
|
readonly port: pulumi.Output<string>;
|
|
100
101
|
/**
|
|
@@ -135,7 +136,7 @@ export interface EndpointAddressState {
|
|
|
135
136
|
*/
|
|
136
137
|
netType?: pulumi.Input<string>;
|
|
137
138
|
/**
|
|
138
|
-
*
|
|
139
|
+
* Port of the specified endpoint. Valid values: 3000 to 5999.
|
|
139
140
|
*/
|
|
140
141
|
port?: pulumi.Input<string>;
|
|
141
142
|
}
|
|
@@ -159,4 +160,8 @@ export interface EndpointAddressArgs {
|
|
|
159
160
|
* Internet connection net type. Valid value: `Public`. Default to `Public`. Currently supported only `Public`.
|
|
160
161
|
*/
|
|
161
162
|
netType?: pulumi.Input<string>;
|
|
163
|
+
/**
|
|
164
|
+
* Port of the specified endpoint. Valid values: 3000 to 5999.
|
|
165
|
+
*/
|
|
166
|
+
port?: pulumi.Input<string>;
|
|
162
167
|
}
|
|
@@ -8,7 +8,7 @@ const utilities = require("../utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* Provides a PolarDB endpoint address resource to allocate an Internet endpoint address string for PolarDB instance.
|
|
10
10
|
*
|
|
11
|
-
* > **NOTE:** Available
|
|
11
|
+
* > **NOTE:** Available since v1.68.0. Each PolarDB instance will allocate a intranet connection string automatically and its prefix is Cluster ID.
|
|
12
12
|
* To avoid unnecessary conflict, please specified a internet connection prefix before applying the resource.
|
|
13
13
|
*
|
|
14
14
|
* ## Example Usage
|
|
@@ -21,6 +21,7 @@ const utilities = require("../utilities");
|
|
|
21
21
|
* dbType: "MySQL",
|
|
22
22
|
* dbVersion: "8.0",
|
|
23
23
|
* payType: "PostPaid",
|
|
24
|
+
* category: "Normal",
|
|
24
25
|
* });
|
|
25
26
|
* const defaultNetwork = new alicloud.vpc.Network("defaultNetwork", {
|
|
26
27
|
* vpcName: "terraform-example",
|
|
@@ -107,9 +108,9 @@ class EndpointAddress extends pulumi.CustomResource {
|
|
|
107
108
|
resourceInputs["dbClusterId"] = args ? args.dbClusterId : undefined;
|
|
108
109
|
resourceInputs["dbEndpointId"] = args ? args.dbEndpointId : undefined;
|
|
109
110
|
resourceInputs["netType"] = args ? args.netType : undefined;
|
|
111
|
+
resourceInputs["port"] = args ? args.port : undefined;
|
|
110
112
|
resourceInputs["connectionString"] = undefined /*out*/;
|
|
111
113
|
resourceInputs["ipAddress"] = undefined /*out*/;
|
|
112
|
-
resourceInputs["port"] = undefined /*out*/;
|
|
113
114
|
}
|
|
114
115
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
115
116
|
super(EndpointAddress.__pulumiType, name, resourceInputs, opts);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpointAddress.js","sourceRoot":"","sources":["../../polardb/endpointAddress.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"endpointAddress.js","sourceRoot":"","sources":["../../polardb/endpointAddress.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;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,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,eAAe,CAAC,YAAY,CAAC;IAChE,CAAC;IAuCD,YAAY,IAAY,EAAE,WAAwD,EAAE,IAAmC;QACnH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA+C,CAAC;YAC9D,cAAc,CAAC,kBAAkB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChF,cAAc,CAAC,kBAAkB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAA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AAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACvD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;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;;AA/FL,0CAgGC;AAlFG,gBAAgB;AACO,4BAAY,GAAG,kDAAkD,CAAC"}
|
package/polardb/index.d.ts
CHANGED
|
@@ -10,6 +10,9 @@ export declare const BackupPolicy: typeof import("./backupPolicy").BackupPolicy;
|
|
|
10
10
|
export { ClusterArgs, ClusterState } from "./cluster";
|
|
11
11
|
export type Cluster = import("./cluster").Cluster;
|
|
12
12
|
export declare const Cluster: typeof import("./cluster").Cluster;
|
|
13
|
+
export { ClusterEndpointArgs, ClusterEndpointState } from "./clusterEndpoint";
|
|
14
|
+
export type ClusterEndpoint = import("./clusterEndpoint").ClusterEndpoint;
|
|
15
|
+
export declare const ClusterEndpoint: typeof import("./clusterEndpoint").ClusterEndpoint;
|
|
13
16
|
export { DatabaseArgs, DatabaseState } from "./database";
|
|
14
17
|
export type Database = import("./database").Database;
|
|
15
18
|
export declare const Database: typeof import("./database").Database;
|
|
@@ -49,3 +52,6 @@ export declare const GlobalDatabaseNetwork: typeof import("./globalDatabaseNetwo
|
|
|
49
52
|
export { ParameterGroupArgs, ParameterGroupState } from "./parameterGroup";
|
|
50
53
|
export type ParameterGroup = import("./parameterGroup").ParameterGroup;
|
|
51
54
|
export declare const ParameterGroup: typeof import("./parameterGroup").ParameterGroup;
|
|
55
|
+
export { PrimaryEndpointArgs, PrimaryEndpointState } from "./primaryEndpoint";
|
|
56
|
+
export type PrimaryEndpoint = import("./primaryEndpoint").PrimaryEndpoint;
|
|
57
|
+
export declare const PrimaryEndpoint: typeof import("./primaryEndpoint").PrimaryEndpoint;
|