@volcengine/pulumi-volcenginecc 0.0.30 → 0.0.32
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/cen/bandwidthPackage.d.ts +320 -0
- package/cen/bandwidthPackage.js +134 -0
- package/cen/bandwidthPackage.js.map +1 -0
- package/cen/getBandwidthPackage.d.ts +137 -0
- package/cen/getBandwidthPackage.js +28 -0
- package/cen/getBandwidthPackage.js.map +1 -0
- package/cen/getBandwidthPackages.d.ts +22 -0
- package/cen/getBandwidthPackages.js +24 -0
- package/cen/getBandwidthPackages.js.map +1 -0
- package/cen/getInterRegionBandwidth.d.ts +72 -0
- package/cen/getInterRegionBandwidth.js +28 -0
- package/cen/getInterRegionBandwidth.js.map +1 -0
- package/cen/getInterRegionBandwidths.d.ts +22 -0
- package/cen/getInterRegionBandwidths.js +24 -0
- package/cen/getInterRegionBandwidths.js.map +1 -0
- package/cen/getRouteEntries.d.ts +22 -0
- package/cen/getRouteEntries.js +24 -0
- package/cen/getRouteEntries.js.map +1 -0
- package/cen/getRouteEntry.d.ts +72 -0
- package/cen/getRouteEntry.js +28 -0
- package/cen/getRouteEntry.js.map +1 -0
- package/cen/getServiceRouteEntries.d.ts +22 -0
- package/cen/getServiceRouteEntries.js +24 -0
- package/cen/getServiceRouteEntries.js.map +1 -0
- package/cen/getServiceRouteEntry.d.ts +73 -0
- package/cen/getServiceRouteEntry.js +28 -0
- package/cen/getServiceRouteEntry.js.map +1 -0
- package/cen/index.d.ts +36 -0
- package/cen/index.js +45 -1
- package/cen/index.js.map +1 -1
- package/cen/interRegionBandwidth.d.ts +152 -0
- package/cen/interRegionBandwidth.js +101 -0
- package/cen/interRegionBandwidth.js.map +1 -0
- package/cen/routeEntry.d.ts +152 -0
- package/cen/routeEntry.js +104 -0
- package/cen/routeEntry.js.map +1 -0
- package/cen/serviceRouteEntry.d.ts +138 -0
- package/cen/serviceRouteEntry.js +83 -0
- package/cen/serviceRouteEntry.js.map +1 -0
- package/clb/clb.d.ts +8 -0
- package/clb/clb.js +2 -0
- package/clb/clb.js.map +1 -1
- package/clb/getClb.d.ts +4 -0
- package/clb/getClb.js.map +1 -1
- package/clb/getListener.d.ts +4 -0
- package/clb/getListener.js.map +1 -1
- package/clb/listener.d.ts +3 -0
- package/clb/listener.js +2 -0
- package/clb/listener.js.map +1 -1
- package/iam/accesskey.d.ts +2 -2
- package/iam/accesskey.js +2 -2
- package/iam/accesskey.js.map +1 -1
- package/mongodb/getInstance.d.ts +1 -1
- package/mongodb/getSslState.d.ts +56 -0
- package/mongodb/getSslState.js +28 -0
- package/mongodb/getSslState.js.map +1 -0
- package/mongodb/getSslStates.d.ts +22 -0
- package/mongodb/getSslStates.js +24 -0
- package/mongodb/getSslStates.js.map +1 -0
- package/mongodb/index.d.ts +9 -0
- package/mongodb/index.js +12 -1
- package/mongodb/index.js.map +1 -1
- package/mongodb/instance.d.ts +3 -3
- package/mongodb/sslState.d.ts +105 -0
- package/mongodb/sslState.js +81 -0
- package/mongodb/sslState.js.map +1 -0
- package/package.json +1 -1
- package/privatelink/endpointService.d.ts +15 -3
- package/privatelink/endpointService.js +2 -0
- package/privatelink/endpointService.js.map +1 -1
- package/privatelink/getEndpointService.d.ts +5 -1
- package/privatelink/getEndpointService.js.map +1 -1
- package/privatelink/getVpcEndpoint.d.ts +137 -0
- package/privatelink/getVpcEndpoint.js +28 -0
- package/privatelink/getVpcEndpoint.js.map +1 -0
- package/privatelink/getVpcEndpointConnection.d.ts +89 -0
- package/privatelink/getVpcEndpointConnection.js +28 -0
- package/privatelink/getVpcEndpointConnection.js.map +1 -0
- package/privatelink/getVpcEndpointConnections.d.ts +22 -0
- package/privatelink/getVpcEndpointConnections.js +24 -0
- package/privatelink/getVpcEndpointConnections.js.map +1 -0
- package/privatelink/getVpcEndpoints.d.ts +22 -0
- package/privatelink/getVpcEndpoints.js +24 -0
- package/privatelink/getVpcEndpoints.js.map +1 -0
- package/privatelink/index.d.ts +18 -0
- package/privatelink/index.js +23 -1
- package/privatelink/index.js.map +1 -1
- package/privatelink/vpcEndpoint.d.ts +277 -0
- package/privatelink/vpcEndpoint.js +106 -0
- package/privatelink/vpcEndpoint.js.map +1 -0
- package/privatelink/vpcEndpointConnection.d.ts +156 -0
- package/privatelink/vpcEndpointConnection.js +88 -0
- package/privatelink/vpcEndpointConnection.js.map +1 -0
- package/rabbitmq/allowList.d.ts +151 -0
- package/rabbitmq/allowList.js +100 -0
- package/rabbitmq/allowList.js.map +1 -0
- package/rabbitmq/getAllowList.d.ts +73 -0
- package/rabbitmq/getAllowList.js +28 -0
- package/rabbitmq/getAllowList.js.map +1 -0
- package/rabbitmq/getAllowLists.d.ts +22 -0
- package/rabbitmq/getAllowLists.js +24 -0
- package/rabbitmq/getAllowLists.js.map +1 -0
- package/rabbitmq/index.d.ts +9 -0
- package/rabbitmq/index.js +12 -1
- package/rabbitmq/index.js.map +1 -1
- package/rdspostgresql/getInstance.d.ts +153 -0
- package/rdspostgresql/getInstance.js +28 -0
- package/rdspostgresql/getInstance.js.map +1 -0
- package/rdspostgresql/getInstances.d.ts +22 -0
- package/rdspostgresql/getInstances.js +24 -0
- package/rdspostgresql/getInstances.js.map +1 -0
- package/rdspostgresql/index.d.ts +9 -0
- package/rdspostgresql/index.js +12 -1
- package/rdspostgresql/index.js.map +1 -1
- package/rdspostgresql/instance.d.ts +303 -0
- package/rdspostgresql/instance.js +132 -0
- package/rdspostgresql/instance.js.map +1 -0
- package/redis/allowList.d.ts +148 -0
- package/redis/allowList.js +78 -0
- package/redis/allowList.js.map +1 -0
- package/redis/getAllowList.d.ts +81 -0
- package/redis/getAllowList.js +28 -0
- package/redis/getAllowList.js.map +1 -0
- package/redis/getAllowLists.d.ts +22 -0
- package/redis/getAllowLists.js +24 -0
- package/redis/getAllowLists.js.map +1 -0
- package/redis/index.d.ts +9 -0
- package/redis/index.js +12 -1
- package/redis/index.js.map +1 -1
- package/storageebs/getSnapshotGroup.d.ts +81 -0
- package/storageebs/getSnapshotGroup.js +28 -0
- package/storageebs/getSnapshotGroup.js.map +1 -0
- package/storageebs/getSnapshotGroups.d.ts +22 -0
- package/storageebs/getSnapshotGroups.js +24 -0
- package/storageebs/getSnapshotGroups.js.map +1 -0
- package/storageebs/index.d.ts +9 -0
- package/storageebs/index.js +12 -1
- package/storageebs/index.js.map +1 -1
- package/storageebs/snapshotGroup.d.ts +168 -0
- package/storageebs/snapshotGroup.js +105 -0
- package/storageebs/snapshotGroup.js.map +1 -0
- package/tls/alarmNotifyGroup.d.ts +113 -0
- package/tls/alarmNotifyGroup.js +75 -0
- package/tls/alarmNotifyGroup.js.map +1 -0
- package/tls/consumerGroup.d.ts +128 -0
- package/tls/consumerGroup.js +98 -0
- package/tls/consumerGroup.js.map +1 -0
- package/tls/getAlarmNotifyGroup.d.ts +69 -0
- package/tls/getAlarmNotifyGroup.js +28 -0
- package/tls/getAlarmNotifyGroup.js.map +1 -0
- package/tls/getAlarmNotifyGroups.d.ts +22 -0
- package/tls/getAlarmNotifyGroups.js +24 -0
- package/tls/getAlarmNotifyGroups.js.map +1 -0
- package/tls/getConsumerGroup.d.ts +60 -0
- package/tls/getConsumerGroup.js +28 -0
- package/tls/getConsumerGroup.js.map +1 -0
- package/tls/getConsumerGroups.d.ts +22 -0
- package/tls/getConsumerGroups.js +24 -0
- package/tls/getConsumerGroups.js.map +1 -0
- package/tls/getImportTask.d.ts +89 -0
- package/tls/getImportTask.js +28 -0
- package/tls/getImportTask.js.map +1 -0
- package/tls/getImportTasks.d.ts +22 -0
- package/tls/getImportTasks.js +24 -0
- package/tls/getImportTasks.js.map +1 -0
- package/tls/getRule.d.ts +109 -0
- package/tls/getRule.js +28 -0
- package/tls/getRule.js.map +1 -0
- package/tls/getRules.d.ts +22 -0
- package/tls/getRules.js +24 -0
- package/tls/getRules.js.map +1 -0
- package/tls/getShipper.d.ts +101 -0
- package/tls/getShipper.js +28 -0
- package/tls/getShipper.js.map +1 -0
- package/tls/getShippers.d.ts +22 -0
- package/tls/getShippers.js +24 -0
- package/tls/getShippers.js.map +1 -0
- package/tls/importTask.d.ts +183 -0
- package/tls/importTask.js +97 -0
- package/tls/importTask.js.map +1 -0
- package/tls/index.d.ts +45 -0
- package/tls/index.js +56 -1
- package/tls/index.js.map +1 -1
- package/tls/rule.d.ts +221 -0
- package/tls/rule.js +98 -0
- package/tls/rule.js.map +1 -0
- package/tls/shipper.d.ts +211 -0
- package/tls/shipper.js +97 -0
- package/tls/shipper.js.map +1 -0
- package/tos/bucketEncryption.d.ts +94 -0
- package/tos/bucketEncryption.js +78 -0
- package/tos/bucketEncryption.js.map +1 -0
- package/tos/bucketInventory.d.ts +155 -0
- package/tos/bucketInventory.js +95 -0
- package/tos/bucketInventory.js.map +1 -0
- package/tos/getBucketEncryption.d.ts +48 -0
- package/tos/getBucketEncryption.js +28 -0
- package/tos/getBucketEncryption.js.map +1 -0
- package/tos/getBucketEncryptions.d.ts +22 -0
- package/tos/getBucketEncryptions.js +24 -0
- package/tos/getBucketEncryptions.js.map +1 -0
- package/tos/getBucketInventories.d.ts +22 -0
- package/tos/getBucketInventories.js +24 -0
- package/tos/getBucketInventories.js.map +1 -0
- package/tos/getBucketInventory.d.ts +73 -0
- package/tos/getBucketInventory.js +28 -0
- package/tos/getBucketInventory.js.map +1 -0
- package/tos/index.d.ts +18 -0
- package/tos/index.js +23 -1
- package/tos/index.js.map +1 -1
- package/types/input.d.ts +1804 -186
- package/types/output.d.ts +3846 -591
- package/vedbm/endpoint.d.ts +247 -0
- package/vedbm/endpoint.js +93 -0
- package/vedbm/endpoint.js.map +1 -0
- package/vedbm/getEndpoint.d.ts +105 -0
- package/vedbm/getEndpoint.js +28 -0
- package/vedbm/getEndpoint.js.map +1 -0
- package/vedbm/getEndpoints.d.ts +22 -0
- package/vedbm/getEndpoints.js +24 -0
- package/vedbm/getEndpoints.js.map +1 -0
- package/vedbm/index.d.ts +9 -0
- package/vedbm/index.js +12 -1
- package/vedbm/index.js.map +1 -1
- package/vefaas/getRelease.d.ts +120 -0
- package/vefaas/getRelease.js +28 -0
- package/vefaas/getRelease.js.map +1 -0
- package/vefaas/getReleases.d.ts +22 -0
- package/vefaas/getReleases.js +24 -0
- package/vefaas/getReleases.js.map +1 -0
- package/vefaas/index.d.ts +9 -0
- package/vefaas/index.js +12 -1
- package/vefaas/index.js.map +1 -1
- package/vefaas/release.d.ts +253 -0
- package/vefaas/release.js +120 -0
- package/vefaas/release.js.map +1 -0
- package/vepfs/getMountService.d.ts +93 -0
- package/vepfs/getMountService.js +28 -0
- package/vepfs/getMountService.js.map +1 -0
- package/vepfs/getMountServices.d.ts +22 -0
- package/vepfs/getMountServices.js +24 -0
- package/vepfs/getMountServices.js.map +1 -0
- package/vepfs/index.d.ts +9 -0
- package/vepfs/index.js +12 -1
- package/vepfs/index.js.map +1 -1
- package/vepfs/mountService.d.ts +172 -0
- package/vepfs/mountService.js +99 -0
- package/vepfs/mountService.js.map +1 -0
- package/vke/getKubeconfig.d.ts +72 -0
- package/vke/getKubeconfig.js +28 -0
- package/vke/getKubeconfig.js.map +1 -0
- package/vke/getKubeconfigs.d.ts +22 -0
- package/vke/getKubeconfigs.js +24 -0
- package/vke/getKubeconfigs.js.map +1 -0
- package/vke/index.d.ts +9 -0
- package/vke/index.js +12 -1
- package/vke/index.js.map +1 -1
- package/vke/kubeconfig.d.ts +142 -0
- package/vke/kubeconfig.js +93 -0
- package/vke/kubeconfig.js.map +1 -0
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Cloud database instance management
|
|
6
|
+
*
|
|
7
|
+
* ## Import
|
|
8
|
+
*
|
|
9
|
+
* ```sh
|
|
10
|
+
* $ pulumi import volcenginecc:rdspostgresql/instance:Instance example "instance_id"
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export declare class Instance extends pulumi.CustomResource {
|
|
14
|
+
/**
|
|
15
|
+
* Get an existing Instance resource's state with the given name, ID, and optional extra
|
|
16
|
+
* properties used to qualify the lookup.
|
|
17
|
+
*
|
|
18
|
+
* @param name The _unique_ name of the resulting resource.
|
|
19
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
20
|
+
* @param state Any extra arguments used during the lookup.
|
|
21
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
22
|
+
*/
|
|
23
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: InstanceState, opts?: pulumi.CustomResourceOptions): Instance;
|
|
24
|
+
/**
|
|
25
|
+
* Returns true if the given object is an instance of Instance. This is designed to work even
|
|
26
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
27
|
+
*/
|
|
28
|
+
static isInstance(obj: any): obj is Instance;
|
|
29
|
+
/**
|
|
30
|
+
* Allowlist ID. To bind multiple allowlists, separate allowlist IDs with commas (,). An instance can bind up to 100 allowlists.
|
|
31
|
+
*/
|
|
32
|
+
readonly allowListIds: pulumi.Output<string[]>;
|
|
33
|
+
/**
|
|
34
|
+
* Payment method
|
|
35
|
+
*/
|
|
36
|
+
readonly chargeDetail: pulumi.Output<outputs.rdspostgresql.InstanceChargeDetail>;
|
|
37
|
+
/**
|
|
38
|
+
* Instance creation time
|
|
39
|
+
*/
|
|
40
|
+
readonly createTime: pulumi.Output<string>;
|
|
41
|
+
/**
|
|
42
|
+
* Synchronization mode. Value: Async (asynchronous synchronization)
|
|
43
|
+
*/
|
|
44
|
+
readonly dataSyncMode: pulumi.Output<string>;
|
|
45
|
+
/**
|
|
46
|
+
* Compatible version
|
|
47
|
+
*/
|
|
48
|
+
readonly dbEngineVersion: pulumi.Output<string>;
|
|
49
|
+
readonly endpoints: pulumi.Output<outputs.rdspostgresql.InstanceEndpoint[]>;
|
|
50
|
+
/**
|
|
51
|
+
* Instance ID
|
|
52
|
+
*/
|
|
53
|
+
readonly instanceId: pulumi.Output<string>;
|
|
54
|
+
/**
|
|
55
|
+
* Instance name
|
|
56
|
+
*/
|
|
57
|
+
readonly instanceName: pulumi.Output<string>;
|
|
58
|
+
/**
|
|
59
|
+
* Instance status
|
|
60
|
+
*/
|
|
61
|
+
readonly instanceStatus: pulumi.Output<string>;
|
|
62
|
+
/**
|
|
63
|
+
* Instance type. Value: HA (high availability edition)
|
|
64
|
+
*/
|
|
65
|
+
readonly instanceType: pulumi.Output<string>;
|
|
66
|
+
/**
|
|
67
|
+
* Instance maintenance window
|
|
68
|
+
*/
|
|
69
|
+
readonly maintenanceWindow: pulumi.Output<outputs.rdspostgresql.InstanceMaintenanceWindow>;
|
|
70
|
+
/**
|
|
71
|
+
* Memory size, unit: GB
|
|
72
|
+
*/
|
|
73
|
+
readonly memory: pulumi.Output<number>;
|
|
74
|
+
readonly nodeInfos: pulumi.Output<outputs.rdspostgresql.InstanceNodeInfo[]>;
|
|
75
|
+
/**
|
|
76
|
+
* Number of nodes
|
|
77
|
+
*/
|
|
78
|
+
readonly nodeNumber: pulumi.Output<number>;
|
|
79
|
+
/**
|
|
80
|
+
* Primary node specification
|
|
81
|
+
*/
|
|
82
|
+
readonly nodeSpec: pulumi.Output<string>;
|
|
83
|
+
/**
|
|
84
|
+
* Project. Default value: default project
|
|
85
|
+
*/
|
|
86
|
+
readonly projectName: pulumi.Output<string>;
|
|
87
|
+
/**
|
|
88
|
+
* Data file space used by the primary node. Unit: Byte
|
|
89
|
+
*/
|
|
90
|
+
readonly storageDataUse: pulumi.Output<number>;
|
|
91
|
+
/**
|
|
92
|
+
* Log file space used by the primary node. Unit: Byte
|
|
93
|
+
*/
|
|
94
|
+
readonly storageLogUse: pulumi.Output<number>;
|
|
95
|
+
/**
|
|
96
|
+
* Instance storage space. Value range: [20, 3000], unit: GB, increment: 10GB. Default value is 100
|
|
97
|
+
*/
|
|
98
|
+
readonly storageSpace: pulumi.Output<number>;
|
|
99
|
+
/**
|
|
100
|
+
* Temporary file space used by the primary node. Unit: Byte
|
|
101
|
+
*/
|
|
102
|
+
readonly storageTempUse: pulumi.Output<number>;
|
|
103
|
+
/**
|
|
104
|
+
* Instance storage type, fixed value LocalSSD (local SSD disk)
|
|
105
|
+
*/
|
|
106
|
+
readonly storageType: pulumi.Output<string>;
|
|
107
|
+
/**
|
|
108
|
+
* Used storage space of the instance. Unit: Byte
|
|
109
|
+
*/
|
|
110
|
+
readonly storageUse: pulumi.Output<number>;
|
|
111
|
+
/**
|
|
112
|
+
* Used WAL file space of the instance's primary node. Unit: Byte
|
|
113
|
+
*/
|
|
114
|
+
readonly storageWalUse: pulumi.Output<number>;
|
|
115
|
+
/**
|
|
116
|
+
* Subnet ID
|
|
117
|
+
*/
|
|
118
|
+
readonly subnetId: pulumi.Output<string>;
|
|
119
|
+
readonly tags: pulumi.Output<outputs.rdspostgresql.InstanceTag[]>;
|
|
120
|
+
/**
|
|
121
|
+
* Instance update time
|
|
122
|
+
*/
|
|
123
|
+
readonly updateTime: pulumi.Output<string>;
|
|
124
|
+
/**
|
|
125
|
+
* CPU size. For example: 1 means 1U
|
|
126
|
+
*/
|
|
127
|
+
readonly vcpu: pulumi.Output<number>;
|
|
128
|
+
/**
|
|
129
|
+
* Use this parameter to specify the private network for the instance
|
|
130
|
+
*/
|
|
131
|
+
readonly vpcId: pulumi.Output<string>;
|
|
132
|
+
/**
|
|
133
|
+
* Availability zone ID
|
|
134
|
+
*/
|
|
135
|
+
readonly zoneId: pulumi.Output<string>;
|
|
136
|
+
/**
|
|
137
|
+
* Create a Instance resource with the given unique name, arguments, and options.
|
|
138
|
+
*
|
|
139
|
+
* @param name The _unique_ name of the resource.
|
|
140
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
141
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
142
|
+
*/
|
|
143
|
+
constructor(name: string, args: InstanceArgs, opts?: pulumi.CustomResourceOptions);
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Input properties used for looking up and filtering Instance resources.
|
|
147
|
+
*/
|
|
148
|
+
export interface InstanceState {
|
|
149
|
+
/**
|
|
150
|
+
* Allowlist ID. To bind multiple allowlists, separate allowlist IDs with commas (,). An instance can bind up to 100 allowlists.
|
|
151
|
+
*/
|
|
152
|
+
allowListIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
153
|
+
/**
|
|
154
|
+
* Payment method
|
|
155
|
+
*/
|
|
156
|
+
chargeDetail?: pulumi.Input<inputs.rdspostgresql.InstanceChargeDetail>;
|
|
157
|
+
/**
|
|
158
|
+
* Instance creation time
|
|
159
|
+
*/
|
|
160
|
+
createTime?: pulumi.Input<string>;
|
|
161
|
+
/**
|
|
162
|
+
* Synchronization mode. Value: Async (asynchronous synchronization)
|
|
163
|
+
*/
|
|
164
|
+
dataSyncMode?: pulumi.Input<string>;
|
|
165
|
+
/**
|
|
166
|
+
* Compatible version
|
|
167
|
+
*/
|
|
168
|
+
dbEngineVersion?: pulumi.Input<string>;
|
|
169
|
+
endpoints?: pulumi.Input<pulumi.Input<inputs.rdspostgresql.InstanceEndpoint>[]>;
|
|
170
|
+
/**
|
|
171
|
+
* Instance ID
|
|
172
|
+
*/
|
|
173
|
+
instanceId?: pulumi.Input<string>;
|
|
174
|
+
/**
|
|
175
|
+
* Instance name
|
|
176
|
+
*/
|
|
177
|
+
instanceName?: pulumi.Input<string>;
|
|
178
|
+
/**
|
|
179
|
+
* Instance status
|
|
180
|
+
*/
|
|
181
|
+
instanceStatus?: pulumi.Input<string>;
|
|
182
|
+
/**
|
|
183
|
+
* Instance type. Value: HA (high availability edition)
|
|
184
|
+
*/
|
|
185
|
+
instanceType?: pulumi.Input<string>;
|
|
186
|
+
/**
|
|
187
|
+
* Instance maintenance window
|
|
188
|
+
*/
|
|
189
|
+
maintenanceWindow?: pulumi.Input<inputs.rdspostgresql.InstanceMaintenanceWindow>;
|
|
190
|
+
/**
|
|
191
|
+
* Memory size, unit: GB
|
|
192
|
+
*/
|
|
193
|
+
memory?: pulumi.Input<number>;
|
|
194
|
+
nodeInfos?: pulumi.Input<pulumi.Input<inputs.rdspostgresql.InstanceNodeInfo>[]>;
|
|
195
|
+
/**
|
|
196
|
+
* Number of nodes
|
|
197
|
+
*/
|
|
198
|
+
nodeNumber?: pulumi.Input<number>;
|
|
199
|
+
/**
|
|
200
|
+
* Primary node specification
|
|
201
|
+
*/
|
|
202
|
+
nodeSpec?: pulumi.Input<string>;
|
|
203
|
+
/**
|
|
204
|
+
* Project. Default value: default project
|
|
205
|
+
*/
|
|
206
|
+
projectName?: pulumi.Input<string>;
|
|
207
|
+
/**
|
|
208
|
+
* Data file space used by the primary node. Unit: Byte
|
|
209
|
+
*/
|
|
210
|
+
storageDataUse?: pulumi.Input<number>;
|
|
211
|
+
/**
|
|
212
|
+
* Log file space used by the primary node. Unit: Byte
|
|
213
|
+
*/
|
|
214
|
+
storageLogUse?: pulumi.Input<number>;
|
|
215
|
+
/**
|
|
216
|
+
* Instance storage space. Value range: [20, 3000], unit: GB, increment: 10GB. Default value is 100
|
|
217
|
+
*/
|
|
218
|
+
storageSpace?: pulumi.Input<number>;
|
|
219
|
+
/**
|
|
220
|
+
* Temporary file space used by the primary node. Unit: Byte
|
|
221
|
+
*/
|
|
222
|
+
storageTempUse?: pulumi.Input<number>;
|
|
223
|
+
/**
|
|
224
|
+
* Instance storage type, fixed value LocalSSD (local SSD disk)
|
|
225
|
+
*/
|
|
226
|
+
storageType?: pulumi.Input<string>;
|
|
227
|
+
/**
|
|
228
|
+
* Used storage space of the instance. Unit: Byte
|
|
229
|
+
*/
|
|
230
|
+
storageUse?: pulumi.Input<number>;
|
|
231
|
+
/**
|
|
232
|
+
* Used WAL file space of the instance's primary node. Unit: Byte
|
|
233
|
+
*/
|
|
234
|
+
storageWalUse?: pulumi.Input<number>;
|
|
235
|
+
/**
|
|
236
|
+
* Subnet ID
|
|
237
|
+
*/
|
|
238
|
+
subnetId?: pulumi.Input<string>;
|
|
239
|
+
tags?: pulumi.Input<pulumi.Input<inputs.rdspostgresql.InstanceTag>[]>;
|
|
240
|
+
/**
|
|
241
|
+
* Instance update time
|
|
242
|
+
*/
|
|
243
|
+
updateTime?: pulumi.Input<string>;
|
|
244
|
+
/**
|
|
245
|
+
* CPU size. For example: 1 means 1U
|
|
246
|
+
*/
|
|
247
|
+
vcpu?: pulumi.Input<number>;
|
|
248
|
+
/**
|
|
249
|
+
* Use this parameter to specify the private network for the instance
|
|
250
|
+
*/
|
|
251
|
+
vpcId?: pulumi.Input<string>;
|
|
252
|
+
/**
|
|
253
|
+
* Availability zone ID
|
|
254
|
+
*/
|
|
255
|
+
zoneId?: pulumi.Input<string>;
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* The set of arguments for constructing a Instance resource.
|
|
259
|
+
*/
|
|
260
|
+
export interface InstanceArgs {
|
|
261
|
+
/**
|
|
262
|
+
* Allowlist ID. To bind multiple allowlists, separate allowlist IDs with commas (,). An instance can bind up to 100 allowlists.
|
|
263
|
+
*/
|
|
264
|
+
allowListIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
265
|
+
/**
|
|
266
|
+
* Payment method
|
|
267
|
+
*/
|
|
268
|
+
chargeDetail: pulumi.Input<inputs.rdspostgresql.InstanceChargeDetail>;
|
|
269
|
+
/**
|
|
270
|
+
* Compatible version
|
|
271
|
+
*/
|
|
272
|
+
dbEngineVersion: pulumi.Input<string>;
|
|
273
|
+
/**
|
|
274
|
+
* Instance name
|
|
275
|
+
*/
|
|
276
|
+
instanceName?: pulumi.Input<string>;
|
|
277
|
+
/**
|
|
278
|
+
* Instance maintenance window
|
|
279
|
+
*/
|
|
280
|
+
maintenanceWindow?: pulumi.Input<inputs.rdspostgresql.InstanceMaintenanceWindow>;
|
|
281
|
+
nodeInfos: pulumi.Input<pulumi.Input<inputs.rdspostgresql.InstanceNodeInfo>[]>;
|
|
282
|
+
/**
|
|
283
|
+
* Project. Default value: default project
|
|
284
|
+
*/
|
|
285
|
+
projectName?: pulumi.Input<string>;
|
|
286
|
+
/**
|
|
287
|
+
* Instance storage space. Value range: [20, 3000], unit: GB, increment: 10GB. Default value is 100
|
|
288
|
+
*/
|
|
289
|
+
storageSpace?: pulumi.Input<number>;
|
|
290
|
+
/**
|
|
291
|
+
* Instance storage type, fixed value LocalSSD (local SSD disk)
|
|
292
|
+
*/
|
|
293
|
+
storageType: pulumi.Input<string>;
|
|
294
|
+
/**
|
|
295
|
+
* Subnet ID
|
|
296
|
+
*/
|
|
297
|
+
subnetId: pulumi.Input<string>;
|
|
298
|
+
tags?: pulumi.Input<pulumi.Input<inputs.rdspostgresql.InstanceTag>[]>;
|
|
299
|
+
/**
|
|
300
|
+
* Use this parameter to specify the private network for the instance
|
|
301
|
+
*/
|
|
302
|
+
vpcId: pulumi.Input<string>;
|
|
303
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
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.Instance = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Cloud database instance management
|
|
10
|
+
*
|
|
11
|
+
* ## Import
|
|
12
|
+
*
|
|
13
|
+
* ```sh
|
|
14
|
+
* $ pulumi import volcenginecc:rdspostgresql/instance:Instance example "instance_id"
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
class Instance extends pulumi.CustomResource {
|
|
18
|
+
/**
|
|
19
|
+
* Get an existing Instance resource's state with the given name, ID, and optional extra
|
|
20
|
+
* properties used to qualify the lookup.
|
|
21
|
+
*
|
|
22
|
+
* @param name The _unique_ name of the resulting resource.
|
|
23
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
24
|
+
* @param state Any extra arguments used during the lookup.
|
|
25
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
26
|
+
*/
|
|
27
|
+
static get(name, id, state, opts) {
|
|
28
|
+
return new Instance(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Returns true if the given object is an instance of Instance. This is designed to work even
|
|
32
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
33
|
+
*/
|
|
34
|
+
static isInstance(obj) {
|
|
35
|
+
if (obj === undefined || obj === null) {
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
return obj['__pulumiType'] === Instance.__pulumiType;
|
|
39
|
+
}
|
|
40
|
+
constructor(name, argsOrState, opts) {
|
|
41
|
+
let resourceInputs = {};
|
|
42
|
+
opts = opts || {};
|
|
43
|
+
if (opts.id) {
|
|
44
|
+
const state = argsOrState;
|
|
45
|
+
resourceInputs["allowListIds"] = state ? state.allowListIds : undefined;
|
|
46
|
+
resourceInputs["chargeDetail"] = state ? state.chargeDetail : undefined;
|
|
47
|
+
resourceInputs["createTime"] = state ? state.createTime : undefined;
|
|
48
|
+
resourceInputs["dataSyncMode"] = state ? state.dataSyncMode : undefined;
|
|
49
|
+
resourceInputs["dbEngineVersion"] = state ? state.dbEngineVersion : undefined;
|
|
50
|
+
resourceInputs["endpoints"] = state ? state.endpoints : undefined;
|
|
51
|
+
resourceInputs["instanceId"] = state ? state.instanceId : undefined;
|
|
52
|
+
resourceInputs["instanceName"] = state ? state.instanceName : undefined;
|
|
53
|
+
resourceInputs["instanceStatus"] = state ? state.instanceStatus : undefined;
|
|
54
|
+
resourceInputs["instanceType"] = state ? state.instanceType : undefined;
|
|
55
|
+
resourceInputs["maintenanceWindow"] = state ? state.maintenanceWindow : undefined;
|
|
56
|
+
resourceInputs["memory"] = state ? state.memory : undefined;
|
|
57
|
+
resourceInputs["nodeInfos"] = state ? state.nodeInfos : undefined;
|
|
58
|
+
resourceInputs["nodeNumber"] = state ? state.nodeNumber : undefined;
|
|
59
|
+
resourceInputs["nodeSpec"] = state ? state.nodeSpec : undefined;
|
|
60
|
+
resourceInputs["projectName"] = state ? state.projectName : undefined;
|
|
61
|
+
resourceInputs["storageDataUse"] = state ? state.storageDataUse : undefined;
|
|
62
|
+
resourceInputs["storageLogUse"] = state ? state.storageLogUse : undefined;
|
|
63
|
+
resourceInputs["storageSpace"] = state ? state.storageSpace : undefined;
|
|
64
|
+
resourceInputs["storageTempUse"] = state ? state.storageTempUse : undefined;
|
|
65
|
+
resourceInputs["storageType"] = state ? state.storageType : undefined;
|
|
66
|
+
resourceInputs["storageUse"] = state ? state.storageUse : undefined;
|
|
67
|
+
resourceInputs["storageWalUse"] = state ? state.storageWalUse : undefined;
|
|
68
|
+
resourceInputs["subnetId"] = state ? state.subnetId : undefined;
|
|
69
|
+
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
70
|
+
resourceInputs["updateTime"] = state ? state.updateTime : undefined;
|
|
71
|
+
resourceInputs["vcpu"] = state ? state.vcpu : undefined;
|
|
72
|
+
resourceInputs["vpcId"] = state ? state.vpcId : undefined;
|
|
73
|
+
resourceInputs["zoneId"] = state ? state.zoneId : undefined;
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
const args = argsOrState;
|
|
77
|
+
if ((!args || args.chargeDetail === undefined) && !opts.urn) {
|
|
78
|
+
throw new Error("Missing required property 'chargeDetail'");
|
|
79
|
+
}
|
|
80
|
+
if ((!args || args.dbEngineVersion === undefined) && !opts.urn) {
|
|
81
|
+
throw new Error("Missing required property 'dbEngineVersion'");
|
|
82
|
+
}
|
|
83
|
+
if ((!args || args.nodeInfos === undefined) && !opts.urn) {
|
|
84
|
+
throw new Error("Missing required property 'nodeInfos'");
|
|
85
|
+
}
|
|
86
|
+
if ((!args || args.storageType === undefined) && !opts.urn) {
|
|
87
|
+
throw new Error("Missing required property 'storageType'");
|
|
88
|
+
}
|
|
89
|
+
if ((!args || args.subnetId === undefined) && !opts.urn) {
|
|
90
|
+
throw new Error("Missing required property 'subnetId'");
|
|
91
|
+
}
|
|
92
|
+
if ((!args || args.vpcId === undefined) && !opts.urn) {
|
|
93
|
+
throw new Error("Missing required property 'vpcId'");
|
|
94
|
+
}
|
|
95
|
+
resourceInputs["allowListIds"] = args ? args.allowListIds : undefined;
|
|
96
|
+
resourceInputs["chargeDetail"] = args ? args.chargeDetail : undefined;
|
|
97
|
+
resourceInputs["dbEngineVersion"] = args ? args.dbEngineVersion : undefined;
|
|
98
|
+
resourceInputs["instanceName"] = args ? args.instanceName : undefined;
|
|
99
|
+
resourceInputs["maintenanceWindow"] = args ? args.maintenanceWindow : undefined;
|
|
100
|
+
resourceInputs["nodeInfos"] = args ? args.nodeInfos : undefined;
|
|
101
|
+
resourceInputs["projectName"] = args ? args.projectName : undefined;
|
|
102
|
+
resourceInputs["storageSpace"] = args ? args.storageSpace : undefined;
|
|
103
|
+
resourceInputs["storageType"] = args ? args.storageType : undefined;
|
|
104
|
+
resourceInputs["subnetId"] = args ? args.subnetId : undefined;
|
|
105
|
+
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
106
|
+
resourceInputs["vpcId"] = args ? args.vpcId : undefined;
|
|
107
|
+
resourceInputs["createTime"] = undefined /*out*/;
|
|
108
|
+
resourceInputs["dataSyncMode"] = undefined /*out*/;
|
|
109
|
+
resourceInputs["endpoints"] = undefined /*out*/;
|
|
110
|
+
resourceInputs["instanceId"] = undefined /*out*/;
|
|
111
|
+
resourceInputs["instanceStatus"] = undefined /*out*/;
|
|
112
|
+
resourceInputs["instanceType"] = undefined /*out*/;
|
|
113
|
+
resourceInputs["memory"] = undefined /*out*/;
|
|
114
|
+
resourceInputs["nodeNumber"] = undefined /*out*/;
|
|
115
|
+
resourceInputs["nodeSpec"] = undefined /*out*/;
|
|
116
|
+
resourceInputs["storageDataUse"] = undefined /*out*/;
|
|
117
|
+
resourceInputs["storageLogUse"] = undefined /*out*/;
|
|
118
|
+
resourceInputs["storageTempUse"] = undefined /*out*/;
|
|
119
|
+
resourceInputs["storageUse"] = undefined /*out*/;
|
|
120
|
+
resourceInputs["storageWalUse"] = undefined /*out*/;
|
|
121
|
+
resourceInputs["updateTime"] = undefined /*out*/;
|
|
122
|
+
resourceInputs["vcpu"] = undefined /*out*/;
|
|
123
|
+
resourceInputs["zoneId"] = undefined /*out*/;
|
|
124
|
+
}
|
|
125
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
126
|
+
super(Instance.__pulumiType, name, resourceInputs, opts);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
exports.Instance = Instance;
|
|
130
|
+
/** @internal */
|
|
131
|
+
Instance.__pulumiType = 'volcenginecc:rdspostgresql/instance:Instance';
|
|
132
|
+
//# sourceMappingURL=instance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instance.js","sourceRoot":"","sources":["../../rdspostgresql/instance.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;GAQG;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;IAsHD,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QA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gBAAgB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACrD,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACpD,cAAc,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACrD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACpD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,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,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AAtOL,4BAuOC;AAzNG,gBAAgB;AACO,qBAAY,GAAG,8CAA8C,CAAC"}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* After a Redis cache database instance is created, you can set an allowlist for the instance to permit devices to access it.
|
|
6
|
+
*
|
|
7
|
+
* ## Import
|
|
8
|
+
*
|
|
9
|
+
* ```sh
|
|
10
|
+
* $ pulumi import volcenginecc:redis/allowList:AllowList example "allow_list_id"
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export declare class AllowList extends pulumi.CustomResource {
|
|
14
|
+
/**
|
|
15
|
+
* Get an existing AllowList resource's state with the given name, ID, and optional extra
|
|
16
|
+
* properties used to qualify the lookup.
|
|
17
|
+
*
|
|
18
|
+
* @param name The _unique_ name of the resulting resource.
|
|
19
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
20
|
+
* @param state Any extra arguments used during the lookup.
|
|
21
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
22
|
+
*/
|
|
23
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AllowListState, opts?: pulumi.CustomResourceOptions): AllowList;
|
|
24
|
+
/**
|
|
25
|
+
* Returns true if the given object is an instance of AllowList. This is designed to work even
|
|
26
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
27
|
+
*/
|
|
28
|
+
static isInstance(obj: any): obj is AllowList;
|
|
29
|
+
/**
|
|
30
|
+
* Enter an IP address or an address range in CIDR format. Note: The AllowList and SecurityGroupBindInfos parameters cannot both be empty. Duplicate addresses are not allowed. Separate multiple addresses with commas (,). Setting 0.0.0.0/0 allows access from all addresses. Setting 127.0.0.1 denies access from all addresses. Setting both 0.0.0.0/0 and 127.0.0.1 allows access from all addresses. Setting CIDR 192.168.1.0/24 allows access from IP addresses within that subnet. Setting 192.168.1.1 allows access only from that IP address.
|
|
31
|
+
*/
|
|
32
|
+
readonly allowList: pulumi.Output<string>;
|
|
33
|
+
/**
|
|
34
|
+
* Type of allowlist. The value range is as follows: Ordinary (default): ordinary allowlist. Default: default allowlist. Note: Each account can set at most one default allowlist per region. When a new default allowlist is set, it automatically replaces the original default allowlist, and the original default allowlist becomes a non-default allowlist. For more details, see Constraints and Limitations
|
|
35
|
+
*/
|
|
36
|
+
readonly allowListCategory: pulumi.Output<string>;
|
|
37
|
+
/**
|
|
38
|
+
* Allowlist remarks. The length cannot exceed 200 characters. Note: If this parameter is not set, the remarks for the new allowlist will be empty by default
|
|
39
|
+
*/
|
|
40
|
+
readonly allowListDesc: pulumi.Output<string>;
|
|
41
|
+
/**
|
|
42
|
+
* Allowlist ID.
|
|
43
|
+
*/
|
|
44
|
+
readonly allowListId: pulumi.Output<string>;
|
|
45
|
+
/**
|
|
46
|
+
* Number of IP addresses in the allowlist
|
|
47
|
+
*/
|
|
48
|
+
readonly allowListIpNum: pulumi.Output<number>;
|
|
49
|
+
/**
|
|
50
|
+
* Allowlist name. The name must meet the following requirements: Cannot start with a digit or hyphen (-). Can only contain Chinese characters, letters, digits, underscores (_), and hyphens (-). Length must be 1–128 characters
|
|
51
|
+
*/
|
|
52
|
+
readonly allowListName: pulumi.Output<string>;
|
|
53
|
+
/**
|
|
54
|
+
* Total number of instances bound to the allowlist
|
|
55
|
+
*/
|
|
56
|
+
readonly associatedInstanceNum: pulumi.Output<number>;
|
|
57
|
+
readonly associatedInstances: pulumi.Output<outputs.redis.AllowListAssociatedInstance[]>;
|
|
58
|
+
/**
|
|
59
|
+
* List of instance IDs bound to the current allowlist
|
|
60
|
+
*/
|
|
61
|
+
readonly instanceIds: pulumi.Output<string[]>;
|
|
62
|
+
/**
|
|
63
|
+
* Project name associated with the allowlist
|
|
64
|
+
*/
|
|
65
|
+
readonly projectName: pulumi.Output<string>;
|
|
66
|
+
readonly securityGroupBindInfos: pulumi.Output<outputs.redis.AllowListSecurityGroupBindInfo[]>;
|
|
67
|
+
/**
|
|
68
|
+
* Create a AllowList resource with the given unique name, arguments, and options.
|
|
69
|
+
*
|
|
70
|
+
* @param name The _unique_ name of the resource.
|
|
71
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
72
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
73
|
+
*/
|
|
74
|
+
constructor(name: string, args?: AllowListArgs, opts?: pulumi.CustomResourceOptions);
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Input properties used for looking up and filtering AllowList resources.
|
|
78
|
+
*/
|
|
79
|
+
export interface AllowListState {
|
|
80
|
+
/**
|
|
81
|
+
* Enter an IP address or an address range in CIDR format. Note: The AllowList and SecurityGroupBindInfos parameters cannot both be empty. Duplicate addresses are not allowed. Separate multiple addresses with commas (,). Setting 0.0.0.0/0 allows access from all addresses. Setting 127.0.0.1 denies access from all addresses. Setting both 0.0.0.0/0 and 127.0.0.1 allows access from all addresses. Setting CIDR 192.168.1.0/24 allows access from IP addresses within that subnet. Setting 192.168.1.1 allows access only from that IP address.
|
|
82
|
+
*/
|
|
83
|
+
allowList?: pulumi.Input<string>;
|
|
84
|
+
/**
|
|
85
|
+
* Type of allowlist. The value range is as follows: Ordinary (default): ordinary allowlist. Default: default allowlist. Note: Each account can set at most one default allowlist per region. When a new default allowlist is set, it automatically replaces the original default allowlist, and the original default allowlist becomes a non-default allowlist. For more details, see Constraints and Limitations
|
|
86
|
+
*/
|
|
87
|
+
allowListCategory?: pulumi.Input<string>;
|
|
88
|
+
/**
|
|
89
|
+
* Allowlist remarks. The length cannot exceed 200 characters. Note: If this parameter is not set, the remarks for the new allowlist will be empty by default
|
|
90
|
+
*/
|
|
91
|
+
allowListDesc?: pulumi.Input<string>;
|
|
92
|
+
/**
|
|
93
|
+
* Allowlist ID.
|
|
94
|
+
*/
|
|
95
|
+
allowListId?: pulumi.Input<string>;
|
|
96
|
+
/**
|
|
97
|
+
* Number of IP addresses in the allowlist
|
|
98
|
+
*/
|
|
99
|
+
allowListIpNum?: pulumi.Input<number>;
|
|
100
|
+
/**
|
|
101
|
+
* Allowlist name. The name must meet the following requirements: Cannot start with a digit or hyphen (-). Can only contain Chinese characters, letters, digits, underscores (_), and hyphens (-). Length must be 1–128 characters
|
|
102
|
+
*/
|
|
103
|
+
allowListName?: pulumi.Input<string>;
|
|
104
|
+
/**
|
|
105
|
+
* Total number of instances bound to the allowlist
|
|
106
|
+
*/
|
|
107
|
+
associatedInstanceNum?: pulumi.Input<number>;
|
|
108
|
+
associatedInstances?: pulumi.Input<pulumi.Input<inputs.redis.AllowListAssociatedInstance>[]>;
|
|
109
|
+
/**
|
|
110
|
+
* List of instance IDs bound to the current allowlist
|
|
111
|
+
*/
|
|
112
|
+
instanceIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
113
|
+
/**
|
|
114
|
+
* Project name associated with the allowlist
|
|
115
|
+
*/
|
|
116
|
+
projectName?: pulumi.Input<string>;
|
|
117
|
+
securityGroupBindInfos?: pulumi.Input<pulumi.Input<inputs.redis.AllowListSecurityGroupBindInfo>[]>;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* The set of arguments for constructing a AllowList resource.
|
|
121
|
+
*/
|
|
122
|
+
export interface AllowListArgs {
|
|
123
|
+
/**
|
|
124
|
+
* Enter an IP address or an address range in CIDR format. Note: The AllowList and SecurityGroupBindInfos parameters cannot both be empty. Duplicate addresses are not allowed. Separate multiple addresses with commas (,). Setting 0.0.0.0/0 allows access from all addresses. Setting 127.0.0.1 denies access from all addresses. Setting both 0.0.0.0/0 and 127.0.0.1 allows access from all addresses. Setting CIDR 192.168.1.0/24 allows access from IP addresses within that subnet. Setting 192.168.1.1 allows access only from that IP address.
|
|
125
|
+
*/
|
|
126
|
+
allowList?: pulumi.Input<string>;
|
|
127
|
+
/**
|
|
128
|
+
* Type of allowlist. The value range is as follows: Ordinary (default): ordinary allowlist. Default: default allowlist. Note: Each account can set at most one default allowlist per region. When a new default allowlist is set, it automatically replaces the original default allowlist, and the original default allowlist becomes a non-default allowlist. For more details, see Constraints and Limitations
|
|
129
|
+
*/
|
|
130
|
+
allowListCategory?: pulumi.Input<string>;
|
|
131
|
+
/**
|
|
132
|
+
* Allowlist remarks. The length cannot exceed 200 characters. Note: If this parameter is not set, the remarks for the new allowlist will be empty by default
|
|
133
|
+
*/
|
|
134
|
+
allowListDesc?: pulumi.Input<string>;
|
|
135
|
+
/**
|
|
136
|
+
* Allowlist name. The name must meet the following requirements: Cannot start with a digit or hyphen (-). Can only contain Chinese characters, letters, digits, underscores (_), and hyphens (-). Length must be 1–128 characters
|
|
137
|
+
*/
|
|
138
|
+
allowListName?: pulumi.Input<string>;
|
|
139
|
+
/**
|
|
140
|
+
* List of instance IDs bound to the current allowlist
|
|
141
|
+
*/
|
|
142
|
+
instanceIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
143
|
+
/**
|
|
144
|
+
* Project name associated with the allowlist
|
|
145
|
+
*/
|
|
146
|
+
projectName?: pulumi.Input<string>;
|
|
147
|
+
securityGroupBindInfos?: pulumi.Input<pulumi.Input<inputs.redis.AllowListSecurityGroupBindInfo>[]>;
|
|
148
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
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.AllowList = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* After a Redis cache database instance is created, you can set an allowlist for the instance to permit devices to access it.
|
|
10
|
+
*
|
|
11
|
+
* ## Import
|
|
12
|
+
*
|
|
13
|
+
* ```sh
|
|
14
|
+
* $ pulumi import volcenginecc:redis/allowList:AllowList example "allow_list_id"
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
class AllowList extends pulumi.CustomResource {
|
|
18
|
+
/**
|
|
19
|
+
* Get an existing AllowList resource's state with the given name, ID, and optional extra
|
|
20
|
+
* properties used to qualify the lookup.
|
|
21
|
+
*
|
|
22
|
+
* @param name The _unique_ name of the resulting resource.
|
|
23
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
24
|
+
* @param state Any extra arguments used during the lookup.
|
|
25
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
26
|
+
*/
|
|
27
|
+
static get(name, id, state, opts) {
|
|
28
|
+
return new AllowList(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Returns true if the given object is an instance of AllowList. This is designed to work even
|
|
32
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
33
|
+
*/
|
|
34
|
+
static isInstance(obj) {
|
|
35
|
+
if (obj === undefined || obj === null) {
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
return obj['__pulumiType'] === AllowList.__pulumiType;
|
|
39
|
+
}
|
|
40
|
+
constructor(name, argsOrState, opts) {
|
|
41
|
+
let resourceInputs = {};
|
|
42
|
+
opts = opts || {};
|
|
43
|
+
if (opts.id) {
|
|
44
|
+
const state = argsOrState;
|
|
45
|
+
resourceInputs["allowList"] = state ? state.allowList : undefined;
|
|
46
|
+
resourceInputs["allowListCategory"] = state ? state.allowListCategory : undefined;
|
|
47
|
+
resourceInputs["allowListDesc"] = state ? state.allowListDesc : undefined;
|
|
48
|
+
resourceInputs["allowListId"] = state ? state.allowListId : undefined;
|
|
49
|
+
resourceInputs["allowListIpNum"] = state ? state.allowListIpNum : undefined;
|
|
50
|
+
resourceInputs["allowListName"] = state ? state.allowListName : undefined;
|
|
51
|
+
resourceInputs["associatedInstanceNum"] = state ? state.associatedInstanceNum : undefined;
|
|
52
|
+
resourceInputs["associatedInstances"] = state ? state.associatedInstances : undefined;
|
|
53
|
+
resourceInputs["instanceIds"] = state ? state.instanceIds : undefined;
|
|
54
|
+
resourceInputs["projectName"] = state ? state.projectName : undefined;
|
|
55
|
+
resourceInputs["securityGroupBindInfos"] = state ? state.securityGroupBindInfos : undefined;
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
const args = argsOrState;
|
|
59
|
+
resourceInputs["allowList"] = args ? args.allowList : undefined;
|
|
60
|
+
resourceInputs["allowListCategory"] = args ? args.allowListCategory : undefined;
|
|
61
|
+
resourceInputs["allowListDesc"] = args ? args.allowListDesc : undefined;
|
|
62
|
+
resourceInputs["allowListName"] = args ? args.allowListName : undefined;
|
|
63
|
+
resourceInputs["instanceIds"] = args ? args.instanceIds : undefined;
|
|
64
|
+
resourceInputs["projectName"] = args ? args.projectName : undefined;
|
|
65
|
+
resourceInputs["securityGroupBindInfos"] = args ? args.securityGroupBindInfos : undefined;
|
|
66
|
+
resourceInputs["allowListId"] = undefined /*out*/;
|
|
67
|
+
resourceInputs["allowListIpNum"] = undefined /*out*/;
|
|
68
|
+
resourceInputs["associatedInstanceNum"] = undefined /*out*/;
|
|
69
|
+
resourceInputs["associatedInstances"] = undefined /*out*/;
|
|
70
|
+
}
|
|
71
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
72
|
+
super(AllowList.__pulumiType, name, resourceInputs, opts);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
exports.AllowList = AllowList;
|
|
76
|
+
/** @internal */
|
|
77
|
+
AllowList.__pulumiType = 'volcenginecc:redis/allowList:AllowList';
|
|
78
|
+
//# sourceMappingURL=allowList.js.map
|