@volcengine/pulumi-volcenginecc 0.0.35 → 0.0.38
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/directconnect/gatewayRoute.d.ts +142 -0
- package/directconnect/gatewayRoute.js +96 -0
- package/directconnect/gatewayRoute.js.map +1 -0
- package/directconnect/getGatewayRoute.d.ts +72 -0
- package/directconnect/getGatewayRoute.js +28 -0
- package/directconnect/getGatewayRoute.js.map +1 -0
- package/directconnect/getGatewayRoutes.d.ts +22 -0
- package/directconnect/getGatewayRoutes.js +24 -0
- package/directconnect/getGatewayRoutes.js.map +1 -0
- package/directconnect/getVirtualInterface.d.ts +133 -0
- package/directconnect/getVirtualInterface.js +28 -0
- package/directconnect/getVirtualInterface.js.map +1 -0
- package/directconnect/getVirtualInterfaces.d.ts +22 -0
- package/directconnect/getVirtualInterfaces.js +24 -0
- package/directconnect/getVirtualInterfaces.js.map +1 -0
- package/directconnect/index.d.ts +18 -0
- package/directconnect/index.js +23 -1
- package/directconnect/index.js.map +1 -1
- package/directconnect/virtualInterface.d.ts +336 -0
- package/directconnect/virtualInterface.js +149 -0
- package/directconnect/virtualInterface.js.map +1 -0
- package/gtm/getPool.d.ts +81 -0
- package/gtm/getPool.js +28 -0
- package/gtm/getPool.js.map +1 -0
- package/gtm/getPools.d.ts +22 -0
- package/gtm/getPools.js +24 -0
- package/gtm/getPools.js.map +1 -0
- package/gtm/index.d.ts +9 -0
- package/gtm/index.js +28 -0
- package/gtm/index.js.map +1 -0
- package/gtm/pool.d.ts +154 -0
- package/gtm/pool.js +87 -0
- package/gtm/pool.js.map +1 -0
- package/index.d.ts +2 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/kms/getSecret.d.ts +128 -0
- package/kms/getSecret.js +28 -0
- package/kms/getSecret.js.map +1 -0
- package/kms/getSecrets.d.ts +22 -0
- package/kms/getSecrets.js +24 -0
- package/kms/getSecrets.js.map +1 -0
- package/kms/index.d.ts +9 -0
- package/kms/index.js +12 -1
- package/kms/index.js.map +1 -1
- package/kms/secret.d.ts +289 -0
- package/kms/secret.js +131 -0
- package/kms/secret.js.map +1 -0
- package/package.json +1 -1
- package/privatezone/getPrivateZone.d.ts +85 -0
- package/privatezone/getPrivateZone.js +28 -0
- package/privatezone/getPrivateZone.js.map +1 -0
- package/privatezone/getPrivateZones.d.ts +22 -0
- package/privatezone/getPrivateZones.js +24 -0
- package/privatezone/getPrivateZones.js.map +1 -0
- package/privatezone/index.d.ts +9 -0
- package/privatezone/index.js +12 -1
- package/privatezone/index.js.map +1 -1
- package/privatezone/privateZone.d.ts +153 -0
- package/privatezone/privateZone.js +83 -0
- package/privatezone/privateZone.js.map +1 -0
- package/rdspostgresql/dbEndpoint.d.ts +36 -18
- package/rdspostgresql/dbEndpoint.js +6 -17
- package/rdspostgresql/dbEndpoint.js.map +1 -1
- package/rdspostgresql/getDbEndpoint.d.ts +12 -4
- package/rdspostgresql/getDbEndpoint.js.map +1 -1
- package/tls/alarm.d.ts +215 -0
- package/tls/alarm.js +110 -0
- package/tls/alarm.js.map +1 -0
- package/tls/getAlarm.d.ts +109 -0
- package/tls/getAlarm.js +28 -0
- package/tls/getAlarm.js.map +1 -0
- package/tls/getAlarms.d.ts +22 -0
- package/tls/getAlarms.js +24 -0
- package/tls/getAlarms.js.map +1 -0
- package/tls/index.d.ts +9 -0
- package/tls/index.js +12 -1
- package/tls/index.js.map +1 -1
- package/types/input.d.ts +296 -2
- package/types/output.d.ts +926 -162
- package/vpn/getSslVpnServer.d.ts +109 -0
- package/vpn/getSslVpnServer.js +28 -0
- package/vpn/getSslVpnServer.js.map +1 -0
- package/vpn/getSslVpnServers.d.ts +22 -0
- package/vpn/getSslVpnServers.js +24 -0
- package/vpn/getSslVpnServers.js.map +1 -0
- package/vpn/getVpnGatewayRoute.d.ts +77 -0
- package/vpn/getVpnGatewayRoute.js +28 -0
- package/vpn/getVpnGatewayRoute.js.map +1 -0
- package/vpn/getVpnGatewayRoutes.d.ts +22 -0
- package/vpn/getVpnGatewayRoutes.js +24 -0
- package/vpn/getVpnGatewayRoutes.js.map +1 -0
- package/vpn/index.d.ts +18 -0
- package/vpn/index.js +23 -1
- package/vpn/index.js.map +1 -1
- package/vpn/sslVpnServer.d.ts +263 -0
- package/vpn/sslVpnServer.js +130 -0
- package/vpn/sslVpnServer.js.map +1 -0
- package/vpn/vpnGatewayRoute.d.ts +146 -0
- package/vpn/vpnGatewayRoute.js +98 -0
- package/vpn/vpnGatewayRoute.js.map +1 -0
package/kms/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.KeyRing = exports.Key = exports.getKeysOutput = exports.getKeys = exports.getKeyRingsOutput = exports.getKeyRings = exports.getKeyRingOutput = exports.getKeyRing = exports.getKeyOutput = exports.getKey = void 0;
|
|
5
|
+
exports.Secret = exports.KeyRing = exports.Key = exports.getSecretsOutput = exports.getSecrets = exports.getSecretOutput = exports.getSecret = exports.getKeysOutput = exports.getKeys = exports.getKeyRingsOutput = exports.getKeyRings = exports.getKeyRingOutput = exports.getKeyRing = exports.getKeyOutput = exports.getKey = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
exports.getKey = null;
|
|
@@ -17,10 +17,18 @@ utilities.lazyLoad(exports, ["getKeyRings", "getKeyRingsOutput"], () => require(
|
|
|
17
17
|
exports.getKeys = null;
|
|
18
18
|
exports.getKeysOutput = null;
|
|
19
19
|
utilities.lazyLoad(exports, ["getKeys", "getKeysOutput"], () => require("./getKeys"));
|
|
20
|
+
exports.getSecret = null;
|
|
21
|
+
exports.getSecretOutput = null;
|
|
22
|
+
utilities.lazyLoad(exports, ["getSecret", "getSecretOutput"], () => require("./getSecret"));
|
|
23
|
+
exports.getSecrets = null;
|
|
24
|
+
exports.getSecretsOutput = null;
|
|
25
|
+
utilities.lazyLoad(exports, ["getSecrets", "getSecretsOutput"], () => require("./getSecrets"));
|
|
20
26
|
exports.Key = null;
|
|
21
27
|
utilities.lazyLoad(exports, ["Key"], () => require("./key"));
|
|
22
28
|
exports.KeyRing = null;
|
|
23
29
|
utilities.lazyLoad(exports, ["KeyRing"], () => require("./keyRing"));
|
|
30
|
+
exports.Secret = null;
|
|
31
|
+
utilities.lazyLoad(exports, ["Secret"], () => require("./secret"));
|
|
24
32
|
const _module = {
|
|
25
33
|
version: utilities.getVersion(),
|
|
26
34
|
construct: (name, type, urn) => {
|
|
@@ -29,6 +37,8 @@ const _module = {
|
|
|
29
37
|
return new exports.Key(name, undefined, { urn });
|
|
30
38
|
case "volcenginecc:kms/keyRing:KeyRing":
|
|
31
39
|
return new exports.KeyRing(name, undefined, { urn });
|
|
40
|
+
case "volcenginecc:kms/secret:Secret":
|
|
41
|
+
return new exports.Secret(name, undefined, { urn });
|
|
32
42
|
default:
|
|
33
43
|
throw new Error(`unknown resource type ${type}`);
|
|
34
44
|
}
|
|
@@ -36,4 +46,5 @@ const _module = {
|
|
|
36
46
|
};
|
|
37
47
|
pulumi.runtime.registerResourceModule("volcenginecc", "kms/key", _module);
|
|
38
48
|
pulumi.runtime.registerResourceModule("volcenginecc", "kms/keyRing", _module);
|
|
49
|
+
pulumi.runtime.registerResourceModule("volcenginecc", "kms/secret", _module);
|
|
39
50
|
//# sourceMappingURL=index.js.map
|
package/kms/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../kms/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAI7B,QAAA,MAAM,GAAqC,IAAW,CAAC;AACvD,QAAA,YAAY,GAA2C,IAAW,CAAC;AAChF,SAAS,C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O,CAAC,WAAW,CAAC,CAAC,CAAC;AAIxD,QAAA,MAAM,GAAqC,IAAW,CAAC;AACpE,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;AAGnE,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,0BAA0B;gBAC3B,OAAO,IAAI,WAAG,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACjD,KAAK,kCAAkC;gBACnC,OAAO,IAAI,eAAO,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACrD,KAAK,gCAAgC;gBACjC,OAAO,IAAI,cAAM,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACpD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,cAAc,EAAE,SAAS,EAAE,OAAO,CAAC,CAAA;AACzE,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,cAAc,EAAE,aAAa,EAAE,OAAO,CAAC,CAAA;AAC7E,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,cAAc,EAAE,YAAY,EAAE,OAAO,CAAC,CAAA"}
|
package/kms/secret.d.ts
ADDED
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Credential Manager is a credential management product based on the key management system. It is used to store sensitive credential information required by user business applications, such as AK/SK, account passwords, access keys, database passwords, and certificates. The product provides secure storage, access control, automatic rotation, and auditing capabilities. User business applications can securely and dynamically obtain credential information by integrating the KMS SDK or using the KMS OpenAPI, effectively preventing risks such as information leakage or unintended modification caused by storing sensitive information in plaintext
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
|
|
10
|
+
*
|
|
11
|
+
* const kMSSecretDemo = new volcenginecc.kms.Secret("KMSSecretDemo", {
|
|
12
|
+
* secretName: "secret-ccapi-Generic",
|
|
13
|
+
* versionName: "ccapi-v1",
|
|
14
|
+
* projectName: "default",
|
|
15
|
+
* description: "description test ccapi Generic",
|
|
16
|
+
* secretType: "Generic",
|
|
17
|
+
* encryptionKey: "trn:kms:cn-beijing:********:keyrings/ccapi-text/keys/ccapi-terraform-1101",
|
|
18
|
+
* secretValue: JSON.stringify({
|
|
19
|
+
* key1: "value1",
|
|
20
|
+
* key2: "value2",
|
|
21
|
+
* }),
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* ## Import
|
|
26
|
+
*
|
|
27
|
+
* ```sh
|
|
28
|
+
* $ pulumi import volcenginecc:kms/secret:Secret example "secret_name"
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare class Secret extends pulumi.CustomResource {
|
|
32
|
+
/**
|
|
33
|
+
* Get an existing Secret resource's state with the given name, ID, and optional extra
|
|
34
|
+
* properties used to qualify the lookup.
|
|
35
|
+
*
|
|
36
|
+
* @param name The _unique_ name of the resulting resource.
|
|
37
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
38
|
+
* @param state Any extra arguments used during the lookup.
|
|
39
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
40
|
+
*/
|
|
41
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SecretState, opts?: pulumi.CustomResourceOptions): Secret;
|
|
42
|
+
/**
|
|
43
|
+
* Returns true if the given object is an instance of Secret. This is designed to work even
|
|
44
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
45
|
+
*/
|
|
46
|
+
static isInstance(obj: any): obj is Secret;
|
|
47
|
+
/**
|
|
48
|
+
* Whether to enable automatic rotation. Applies only to credentials of type IAM|RDS|Redis|ECS
|
|
49
|
+
*/
|
|
50
|
+
readonly automaticRotation: pulumi.Output<boolean>;
|
|
51
|
+
/**
|
|
52
|
+
* Credential creation time
|
|
53
|
+
*/
|
|
54
|
+
readonly createdTime: pulumi.Output<number>;
|
|
55
|
+
/**
|
|
56
|
+
* Credential description, length: 0 ~ 8192 characters
|
|
57
|
+
*/
|
|
58
|
+
readonly description: pulumi.Output<string>;
|
|
59
|
+
/**
|
|
60
|
+
* KMS key TRN for encrypting credential value. If not specified, the default key of Credential Manager is used
|
|
61
|
+
*/
|
|
62
|
+
readonly encryptionKey: pulumi.Output<string>;
|
|
63
|
+
/**
|
|
64
|
+
* Credential extension configuration, used to specify properties for non-Generic credentials
|
|
65
|
+
*/
|
|
66
|
+
readonly extendedConfig: pulumi.Output<string>;
|
|
67
|
+
/**
|
|
68
|
+
* Credential last rotation time
|
|
69
|
+
*/
|
|
70
|
+
readonly lastRotationTime: pulumi.Output<string>;
|
|
71
|
+
/**
|
|
72
|
+
* Is managed credential
|
|
73
|
+
*/
|
|
74
|
+
readonly managed: pulumi.Output<boolean>;
|
|
75
|
+
/**
|
|
76
|
+
* Managed Cloud Service
|
|
77
|
+
*/
|
|
78
|
+
readonly owningService: pulumi.Output<string>;
|
|
79
|
+
/**
|
|
80
|
+
* Credential project name. Default value: default
|
|
81
|
+
*/
|
|
82
|
+
readonly projectName: pulumi.Output<string>;
|
|
83
|
+
/**
|
|
84
|
+
* Automatic rotation interval. Range: 1 ~ 365 days. Format: integer[unit], where integer is the duration and unit is the time unit. Unit value: d (days). For example: 7d means a 7-day interval
|
|
85
|
+
*/
|
|
86
|
+
readonly rotationInterval: pulumi.Output<string>;
|
|
87
|
+
/**
|
|
88
|
+
* Automatic rotation interval, unit: seconds
|
|
89
|
+
*/
|
|
90
|
+
readonly rotationIntervalRead: pulumi.Output<number>;
|
|
91
|
+
/**
|
|
92
|
+
* Rotation status: Enable: automatic rotation enabled, Disable: automatic rotation disabled, Rotating: automatic rotation in progress, None: automatic rotation not supported
|
|
93
|
+
*/
|
|
94
|
+
readonly rotationState: pulumi.Output<string>;
|
|
95
|
+
/**
|
|
96
|
+
* Credential Scheduled Deletion Time
|
|
97
|
+
*/
|
|
98
|
+
readonly scheduleDeleteTime: pulumi.Output<string>;
|
|
99
|
+
/**
|
|
100
|
+
* Credential next rotation time
|
|
101
|
+
*/
|
|
102
|
+
readonly scheduleRotationTime: pulumi.Output<string>;
|
|
103
|
+
/**
|
|
104
|
+
* Credential unique identifier, UUID format
|
|
105
|
+
*/
|
|
106
|
+
readonly secretId: pulumi.Output<string>;
|
|
107
|
+
/**
|
|
108
|
+
* Credential name. Valid characters: [a-zA-Z0-9/_+=.@-]
|
|
109
|
+
*/
|
|
110
|
+
readonly secretName: pulumi.Output<string>;
|
|
111
|
+
/**
|
|
112
|
+
* Credential status. Enable: enabled, Disable: disabled, PendingDelete: scheduled for deletion
|
|
113
|
+
*/
|
|
114
|
+
readonly secretState: pulumi.Output<string>;
|
|
115
|
+
/**
|
|
116
|
+
* Credential type. Currently supports Generic|IAM|RDS|Redis|ECS|PGSQL|SQLServer
|
|
117
|
+
*/
|
|
118
|
+
readonly secretType: pulumi.Output<string>;
|
|
119
|
+
/**
|
|
120
|
+
* Credential value. When SecretType is Generic, users can customize it. It is recommended to use JSON key-value pairs
|
|
121
|
+
*/
|
|
122
|
+
readonly secretValue: pulumi.Output<string>;
|
|
123
|
+
/**
|
|
124
|
+
* Credential resource name. Format: trn:kms:${Region}:${AccountID}:secrets/${secret}
|
|
125
|
+
*/
|
|
126
|
+
readonly trn: pulumi.Output<string>;
|
|
127
|
+
/**
|
|
128
|
+
* Credential tenant ID
|
|
129
|
+
*/
|
|
130
|
+
readonly uid: pulumi.Output<string>;
|
|
131
|
+
/**
|
|
132
|
+
* Credential update date
|
|
133
|
+
*/
|
|
134
|
+
readonly updatedTime: pulumi.Output<number>;
|
|
135
|
+
/**
|
|
136
|
+
* Version alias. Valid characters: [a-zA-Z0-9/_+=.@-]
|
|
137
|
+
*/
|
|
138
|
+
readonly versionName: pulumi.Output<string>;
|
|
139
|
+
/**
|
|
140
|
+
* Create a Secret resource with the given unique name, arguments, and options.
|
|
141
|
+
*
|
|
142
|
+
* @param name The _unique_ name of the resource.
|
|
143
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
144
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
145
|
+
*/
|
|
146
|
+
constructor(name: string, args: SecretArgs, opts?: pulumi.CustomResourceOptions);
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Input properties used for looking up and filtering Secret resources.
|
|
150
|
+
*/
|
|
151
|
+
export interface SecretState {
|
|
152
|
+
/**
|
|
153
|
+
* Whether to enable automatic rotation. Applies only to credentials of type IAM|RDS|Redis|ECS
|
|
154
|
+
*/
|
|
155
|
+
automaticRotation?: pulumi.Input<boolean>;
|
|
156
|
+
/**
|
|
157
|
+
* Credential creation time
|
|
158
|
+
*/
|
|
159
|
+
createdTime?: pulumi.Input<number>;
|
|
160
|
+
/**
|
|
161
|
+
* Credential description, length: 0 ~ 8192 characters
|
|
162
|
+
*/
|
|
163
|
+
description?: pulumi.Input<string>;
|
|
164
|
+
/**
|
|
165
|
+
* KMS key TRN for encrypting credential value. If not specified, the default key of Credential Manager is used
|
|
166
|
+
*/
|
|
167
|
+
encryptionKey?: pulumi.Input<string>;
|
|
168
|
+
/**
|
|
169
|
+
* Credential extension configuration, used to specify properties for non-Generic credentials
|
|
170
|
+
*/
|
|
171
|
+
extendedConfig?: pulumi.Input<string>;
|
|
172
|
+
/**
|
|
173
|
+
* Credential last rotation time
|
|
174
|
+
*/
|
|
175
|
+
lastRotationTime?: pulumi.Input<string>;
|
|
176
|
+
/**
|
|
177
|
+
* Is managed credential
|
|
178
|
+
*/
|
|
179
|
+
managed?: pulumi.Input<boolean>;
|
|
180
|
+
/**
|
|
181
|
+
* Managed Cloud Service
|
|
182
|
+
*/
|
|
183
|
+
owningService?: pulumi.Input<string>;
|
|
184
|
+
/**
|
|
185
|
+
* Credential project name. Default value: default
|
|
186
|
+
*/
|
|
187
|
+
projectName?: pulumi.Input<string>;
|
|
188
|
+
/**
|
|
189
|
+
* Automatic rotation interval. Range: 1 ~ 365 days. Format: integer[unit], where integer is the duration and unit is the time unit. Unit value: d (days). For example: 7d means a 7-day interval
|
|
190
|
+
*/
|
|
191
|
+
rotationInterval?: pulumi.Input<string>;
|
|
192
|
+
/**
|
|
193
|
+
* Automatic rotation interval, unit: seconds
|
|
194
|
+
*/
|
|
195
|
+
rotationIntervalRead?: pulumi.Input<number>;
|
|
196
|
+
/**
|
|
197
|
+
* Rotation status: Enable: automatic rotation enabled, Disable: automatic rotation disabled, Rotating: automatic rotation in progress, None: automatic rotation not supported
|
|
198
|
+
*/
|
|
199
|
+
rotationState?: pulumi.Input<string>;
|
|
200
|
+
/**
|
|
201
|
+
* Credential Scheduled Deletion Time
|
|
202
|
+
*/
|
|
203
|
+
scheduleDeleteTime?: pulumi.Input<string>;
|
|
204
|
+
/**
|
|
205
|
+
* Credential next rotation time
|
|
206
|
+
*/
|
|
207
|
+
scheduleRotationTime?: pulumi.Input<string>;
|
|
208
|
+
/**
|
|
209
|
+
* Credential unique identifier, UUID format
|
|
210
|
+
*/
|
|
211
|
+
secretId?: pulumi.Input<string>;
|
|
212
|
+
/**
|
|
213
|
+
* Credential name. Valid characters: [a-zA-Z0-9/_+=.@-]
|
|
214
|
+
*/
|
|
215
|
+
secretName?: pulumi.Input<string>;
|
|
216
|
+
/**
|
|
217
|
+
* Credential status. Enable: enabled, Disable: disabled, PendingDelete: scheduled for deletion
|
|
218
|
+
*/
|
|
219
|
+
secretState?: pulumi.Input<string>;
|
|
220
|
+
/**
|
|
221
|
+
* Credential type. Currently supports Generic|IAM|RDS|Redis|ECS|PGSQL|SQLServer
|
|
222
|
+
*/
|
|
223
|
+
secretType?: pulumi.Input<string>;
|
|
224
|
+
/**
|
|
225
|
+
* Credential value. When SecretType is Generic, users can customize it. It is recommended to use JSON key-value pairs
|
|
226
|
+
*/
|
|
227
|
+
secretValue?: pulumi.Input<string>;
|
|
228
|
+
/**
|
|
229
|
+
* Credential resource name. Format: trn:kms:${Region}:${AccountID}:secrets/${secret}
|
|
230
|
+
*/
|
|
231
|
+
trn?: pulumi.Input<string>;
|
|
232
|
+
/**
|
|
233
|
+
* Credential tenant ID
|
|
234
|
+
*/
|
|
235
|
+
uid?: pulumi.Input<string>;
|
|
236
|
+
/**
|
|
237
|
+
* Credential update date
|
|
238
|
+
*/
|
|
239
|
+
updatedTime?: pulumi.Input<number>;
|
|
240
|
+
/**
|
|
241
|
+
* Version alias. Valid characters: [a-zA-Z0-9/_+=.@-]
|
|
242
|
+
*/
|
|
243
|
+
versionName?: pulumi.Input<string>;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* The set of arguments for constructing a Secret resource.
|
|
247
|
+
*/
|
|
248
|
+
export interface SecretArgs {
|
|
249
|
+
/**
|
|
250
|
+
* Whether to enable automatic rotation. Applies only to credentials of type IAM|RDS|Redis|ECS
|
|
251
|
+
*/
|
|
252
|
+
automaticRotation?: pulumi.Input<boolean>;
|
|
253
|
+
/**
|
|
254
|
+
* Credential description, length: 0 ~ 8192 characters
|
|
255
|
+
*/
|
|
256
|
+
description?: pulumi.Input<string>;
|
|
257
|
+
/**
|
|
258
|
+
* KMS key TRN for encrypting credential value. If not specified, the default key of Credential Manager is used
|
|
259
|
+
*/
|
|
260
|
+
encryptionKey?: pulumi.Input<string>;
|
|
261
|
+
/**
|
|
262
|
+
* Credential extension configuration, used to specify properties for non-Generic credentials
|
|
263
|
+
*/
|
|
264
|
+
extendedConfig?: pulumi.Input<string>;
|
|
265
|
+
/**
|
|
266
|
+
* Credential project name. Default value: default
|
|
267
|
+
*/
|
|
268
|
+
projectName?: pulumi.Input<string>;
|
|
269
|
+
/**
|
|
270
|
+
* Automatic rotation interval. Range: 1 ~ 365 days. Format: integer[unit], where integer is the duration and unit is the time unit. Unit value: d (days). For example: 7d means a 7-day interval
|
|
271
|
+
*/
|
|
272
|
+
rotationInterval?: pulumi.Input<string>;
|
|
273
|
+
/**
|
|
274
|
+
* Credential name. Valid characters: [a-zA-Z0-9/_+=.@-]
|
|
275
|
+
*/
|
|
276
|
+
secretName: pulumi.Input<string>;
|
|
277
|
+
/**
|
|
278
|
+
* Credential type. Currently supports Generic|IAM|RDS|Redis|ECS|PGSQL|SQLServer
|
|
279
|
+
*/
|
|
280
|
+
secretType: pulumi.Input<string>;
|
|
281
|
+
/**
|
|
282
|
+
* Credential value. When SecretType is Generic, users can customize it. It is recommended to use JSON key-value pairs
|
|
283
|
+
*/
|
|
284
|
+
secretValue: pulumi.Input<string>;
|
|
285
|
+
/**
|
|
286
|
+
* Version alias. Valid characters: [a-zA-Z0-9/_+=.@-]
|
|
287
|
+
*/
|
|
288
|
+
versionName?: pulumi.Input<string>;
|
|
289
|
+
}
|
package/kms/secret.js
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
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.Secret = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Credential Manager is a credential management product based on the key management system. It is used to store sensitive credential information required by user business applications, such as AK/SK, account passwords, access keys, database passwords, and certificates. The product provides secure storage, access control, automatic rotation, and auditing capabilities. User business applications can securely and dynamically obtain credential information by integrating the KMS SDK or using the KMS OpenAPI, effectively preventing risks such as information leakage or unintended modification caused by storing sensitive information in plaintext
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
|
|
16
|
+
*
|
|
17
|
+
* const kMSSecretDemo = new volcenginecc.kms.Secret("KMSSecretDemo", {
|
|
18
|
+
* secretName: "secret-ccapi-Generic",
|
|
19
|
+
* versionName: "ccapi-v1",
|
|
20
|
+
* projectName: "default",
|
|
21
|
+
* description: "description test ccapi Generic",
|
|
22
|
+
* secretType: "Generic",
|
|
23
|
+
* encryptionKey: "trn:kms:cn-beijing:********:keyrings/ccapi-text/keys/ccapi-terraform-1101",
|
|
24
|
+
* secretValue: JSON.stringify({
|
|
25
|
+
* key1: "value1",
|
|
26
|
+
* key2: "value2",
|
|
27
|
+
* }),
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* ## Import
|
|
32
|
+
*
|
|
33
|
+
* ```sh
|
|
34
|
+
* $ pulumi import volcenginecc:kms/secret:Secret example "secret_name"
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
class Secret extends pulumi.CustomResource {
|
|
38
|
+
/**
|
|
39
|
+
* Get an existing Secret resource's state with the given name, ID, and optional extra
|
|
40
|
+
* properties used to qualify the lookup.
|
|
41
|
+
*
|
|
42
|
+
* @param name The _unique_ name of the resulting resource.
|
|
43
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
44
|
+
* @param state Any extra arguments used during the lookup.
|
|
45
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
46
|
+
*/
|
|
47
|
+
static get(name, id, state, opts) {
|
|
48
|
+
return new Secret(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Returns true if the given object is an instance of Secret. This is designed to work even
|
|
52
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
53
|
+
*/
|
|
54
|
+
static isInstance(obj) {
|
|
55
|
+
if (obj === undefined || obj === null) {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
return obj['__pulumiType'] === Secret.__pulumiType;
|
|
59
|
+
}
|
|
60
|
+
constructor(name, argsOrState, opts) {
|
|
61
|
+
let resourceInputs = {};
|
|
62
|
+
opts = opts || {};
|
|
63
|
+
if (opts.id) {
|
|
64
|
+
const state = argsOrState;
|
|
65
|
+
resourceInputs["automaticRotation"] = state ? state.automaticRotation : undefined;
|
|
66
|
+
resourceInputs["createdTime"] = state ? state.createdTime : undefined;
|
|
67
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
68
|
+
resourceInputs["encryptionKey"] = state ? state.encryptionKey : undefined;
|
|
69
|
+
resourceInputs["extendedConfig"] = state ? state.extendedConfig : undefined;
|
|
70
|
+
resourceInputs["lastRotationTime"] = state ? state.lastRotationTime : undefined;
|
|
71
|
+
resourceInputs["managed"] = state ? state.managed : undefined;
|
|
72
|
+
resourceInputs["owningService"] = state ? state.owningService : undefined;
|
|
73
|
+
resourceInputs["projectName"] = state ? state.projectName : undefined;
|
|
74
|
+
resourceInputs["rotationInterval"] = state ? state.rotationInterval : undefined;
|
|
75
|
+
resourceInputs["rotationIntervalRead"] = state ? state.rotationIntervalRead : undefined;
|
|
76
|
+
resourceInputs["rotationState"] = state ? state.rotationState : undefined;
|
|
77
|
+
resourceInputs["scheduleDeleteTime"] = state ? state.scheduleDeleteTime : undefined;
|
|
78
|
+
resourceInputs["scheduleRotationTime"] = state ? state.scheduleRotationTime : undefined;
|
|
79
|
+
resourceInputs["secretId"] = state ? state.secretId : undefined;
|
|
80
|
+
resourceInputs["secretName"] = state ? state.secretName : undefined;
|
|
81
|
+
resourceInputs["secretState"] = state ? state.secretState : undefined;
|
|
82
|
+
resourceInputs["secretType"] = state ? state.secretType : undefined;
|
|
83
|
+
resourceInputs["secretValue"] = state ? state.secretValue : undefined;
|
|
84
|
+
resourceInputs["trn"] = state ? state.trn : undefined;
|
|
85
|
+
resourceInputs["uid"] = state ? state.uid : undefined;
|
|
86
|
+
resourceInputs["updatedTime"] = state ? state.updatedTime : undefined;
|
|
87
|
+
resourceInputs["versionName"] = state ? state.versionName : undefined;
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
const args = argsOrState;
|
|
91
|
+
if ((!args || args.secretName === undefined) && !opts.urn) {
|
|
92
|
+
throw new Error("Missing required property 'secretName'");
|
|
93
|
+
}
|
|
94
|
+
if ((!args || args.secretType === undefined) && !opts.urn) {
|
|
95
|
+
throw new Error("Missing required property 'secretType'");
|
|
96
|
+
}
|
|
97
|
+
if ((!args || args.secretValue === undefined) && !opts.urn) {
|
|
98
|
+
throw new Error("Missing required property 'secretValue'");
|
|
99
|
+
}
|
|
100
|
+
resourceInputs["automaticRotation"] = args ? args.automaticRotation : undefined;
|
|
101
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
102
|
+
resourceInputs["encryptionKey"] = args ? args.encryptionKey : undefined;
|
|
103
|
+
resourceInputs["extendedConfig"] = args ? args.extendedConfig : undefined;
|
|
104
|
+
resourceInputs["projectName"] = args ? args.projectName : undefined;
|
|
105
|
+
resourceInputs["rotationInterval"] = args ? args.rotationInterval : undefined;
|
|
106
|
+
resourceInputs["secretName"] = args ? args.secretName : undefined;
|
|
107
|
+
resourceInputs["secretType"] = args ? args.secretType : undefined;
|
|
108
|
+
resourceInputs["secretValue"] = args ? args.secretValue : undefined;
|
|
109
|
+
resourceInputs["versionName"] = args ? args.versionName : undefined;
|
|
110
|
+
resourceInputs["createdTime"] = undefined /*out*/;
|
|
111
|
+
resourceInputs["lastRotationTime"] = undefined /*out*/;
|
|
112
|
+
resourceInputs["managed"] = undefined /*out*/;
|
|
113
|
+
resourceInputs["owningService"] = undefined /*out*/;
|
|
114
|
+
resourceInputs["rotationIntervalRead"] = undefined /*out*/;
|
|
115
|
+
resourceInputs["rotationState"] = undefined /*out*/;
|
|
116
|
+
resourceInputs["scheduleDeleteTime"] = undefined /*out*/;
|
|
117
|
+
resourceInputs["scheduleRotationTime"] = undefined /*out*/;
|
|
118
|
+
resourceInputs["secretId"] = undefined /*out*/;
|
|
119
|
+
resourceInputs["secretState"] = undefined /*out*/;
|
|
120
|
+
resourceInputs["trn"] = undefined /*out*/;
|
|
121
|
+
resourceInputs["uid"] = undefined /*out*/;
|
|
122
|
+
resourceInputs["updatedTime"] = undefined /*out*/;
|
|
123
|
+
}
|
|
124
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
125
|
+
super(Secret.__pulumiType, name, resourceInputs, opts);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
exports.Secret = Secret;
|
|
129
|
+
/** @internal */
|
|
130
|
+
Secret.__pulumiType = 'volcenginecc:kms/secret:Secret';
|
|
131
|
+
//# sourceMappingURL=secret.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secret.js","sourceRoot":"","sources":["../../kms/secret.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAC7C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmB,EAAE,IAAmC;QACjH,OAAO,IAAI,MAAM,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC7D,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,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,CAAC;YAC3D,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC/C,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC1C,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC1C,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACrD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;;AAlML,wBAmMC;AArLG,gBAAgB;AACO,mBAAY,GAAG,gCAAgC,CAAC"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "../types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Data Source schema for Volcengine::PrivateZone::PrivateZone
|
|
5
|
+
*/
|
|
6
|
+
export declare function getPrivateZone(args: GetPrivateZoneArgs, opts?: pulumi.InvokeOptions): Promise<GetPrivateZoneResult>;
|
|
7
|
+
/**
|
|
8
|
+
* A collection of arguments for invoking getPrivateZone.
|
|
9
|
+
*/
|
|
10
|
+
export interface GetPrivateZoneArgs {
|
|
11
|
+
/**
|
|
12
|
+
* Uniquely identifies the resource.
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A collection of values returned by getPrivateZone.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetPrivateZoneResult {
|
|
20
|
+
/**
|
|
21
|
+
* Domain creation time
|
|
22
|
+
*/
|
|
23
|
+
readonly createdAt: string;
|
|
24
|
+
/**
|
|
25
|
+
* Uniquely identifies the resource.
|
|
26
|
+
*/
|
|
27
|
+
readonly id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Most recent operator
|
|
30
|
+
*/
|
|
31
|
+
readonly lastOperator: string;
|
|
32
|
+
/**
|
|
33
|
+
* Enable load balancing: 0 to disable, 1 to enable. Default is 0
|
|
34
|
+
*/
|
|
35
|
+
readonly lineMode: number;
|
|
36
|
+
/**
|
|
37
|
+
* Name of the project the domain belongs to. Default is default
|
|
38
|
+
*/
|
|
39
|
+
readonly projectName: string;
|
|
40
|
+
/**
|
|
41
|
+
* Number of DNS records under the domain name
|
|
42
|
+
*/
|
|
43
|
+
readonly recordCount: number;
|
|
44
|
+
/**
|
|
45
|
+
* Enable recursive resolution: true to enable, false to disable. Default is false
|
|
46
|
+
*/
|
|
47
|
+
readonly recursionMode: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Remarks. Default is an empty string
|
|
50
|
+
*/
|
|
51
|
+
readonly remark: string;
|
|
52
|
+
/**
|
|
53
|
+
* One or more tags associated with the domain. A resource can be associated with up to 50 tags
|
|
54
|
+
*/
|
|
55
|
+
readonly tags: outputs.privatezone.GetPrivateZoneTag[];
|
|
56
|
+
/**
|
|
57
|
+
* Most recent update time of the domain
|
|
58
|
+
*/
|
|
59
|
+
readonly updatedAt: string;
|
|
60
|
+
/**
|
|
61
|
+
* One or more VPCs associated with the domain. Domain resolution is only effective within the associated VPCs
|
|
62
|
+
*/
|
|
63
|
+
readonly vpcs: outputs.privatezone.GetPrivateZoneVpc[];
|
|
64
|
+
/**
|
|
65
|
+
* Unique ID identifying the domain name
|
|
66
|
+
*/
|
|
67
|
+
readonly zid: string;
|
|
68
|
+
/**
|
|
69
|
+
* Domain name, can be a second-level or multi-level domain
|
|
70
|
+
*/
|
|
71
|
+
readonly zoneName: string;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Data Source schema for Volcengine::PrivateZone::PrivateZone
|
|
75
|
+
*/
|
|
76
|
+
export declare function getPrivateZoneOutput(args: GetPrivateZoneOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetPrivateZoneResult>;
|
|
77
|
+
/**
|
|
78
|
+
* A collection of arguments for invoking getPrivateZone.
|
|
79
|
+
*/
|
|
80
|
+
export interface GetPrivateZoneOutputArgs {
|
|
81
|
+
/**
|
|
82
|
+
* Uniquely identifies the resource.
|
|
83
|
+
*/
|
|
84
|
+
id: pulumi.Input<string>;
|
|
85
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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.getPrivateZoneOutput = exports.getPrivateZone = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Data Source schema for Volcengine::PrivateZone::PrivateZone
|
|
10
|
+
*/
|
|
11
|
+
function getPrivateZone(args, opts) {
|
|
12
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
13
|
+
return pulumi.runtime.invoke("volcenginecc:privatezone/getPrivateZone:getPrivateZone", {
|
|
14
|
+
"id": args.id,
|
|
15
|
+
}, opts);
|
|
16
|
+
}
|
|
17
|
+
exports.getPrivateZone = getPrivateZone;
|
|
18
|
+
/**
|
|
19
|
+
* Data Source schema for Volcengine::PrivateZone::PrivateZone
|
|
20
|
+
*/
|
|
21
|
+
function getPrivateZoneOutput(args, opts) {
|
|
22
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
23
|
+
return pulumi.runtime.invokeOutput("volcenginecc:privatezone/getPrivateZone:getPrivateZone", {
|
|
24
|
+
"id": args.id,
|
|
25
|
+
}, opts);
|
|
26
|
+
}
|
|
27
|
+
exports.getPrivateZoneOutput = getPrivateZoneOutput;
|
|
28
|
+
//# sourceMappingURL=getPrivateZone.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPrivateZone.js","sourceRoot":"","sources":["../../privatezone/getPrivateZone.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,cAAc,CAAC,IAAwB,EAAE,IAA2B;IAChF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wDAAwD,EAAE;QACnF,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,wCAKC;AAqED;;GAEG;AACH,SAAgB,oBAAoB,CAAC,IAA8B,EAAE,IAAiC;IAClG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,wDAAwD,EAAE;QACzF,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,oDAKC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Plural Data Source schema for Volcengine::PrivateZone::PrivateZone
|
|
4
|
+
*/
|
|
5
|
+
export declare function getPrivateZones(opts?: pulumi.InvokeOptions): Promise<GetPrivateZonesResult>;
|
|
6
|
+
/**
|
|
7
|
+
* A collection of values returned by getPrivateZones.
|
|
8
|
+
*/
|
|
9
|
+
export interface GetPrivateZonesResult {
|
|
10
|
+
/**
|
|
11
|
+
* Uniquely identifies the data source.
|
|
12
|
+
*/
|
|
13
|
+
readonly id: string;
|
|
14
|
+
/**
|
|
15
|
+
* Set of Resource Identifiers.
|
|
16
|
+
*/
|
|
17
|
+
readonly ids: string[];
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Plural Data Source schema for Volcengine::PrivateZone::PrivateZone
|
|
21
|
+
*/
|
|
22
|
+
export declare function getPrivateZonesOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetPrivateZonesResult>;
|
|
@@ -0,0 +1,24 @@
|
|
|
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.getPrivateZonesOutput = exports.getPrivateZones = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Plural Data Source schema for Volcengine::PrivateZone::PrivateZone
|
|
10
|
+
*/
|
|
11
|
+
function getPrivateZones(opts) {
|
|
12
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
13
|
+
return pulumi.runtime.invoke("volcenginecc:privatezone/getPrivateZones:getPrivateZones", {}, opts);
|
|
14
|
+
}
|
|
15
|
+
exports.getPrivateZones = getPrivateZones;
|
|
16
|
+
/**
|
|
17
|
+
* Plural Data Source schema for Volcengine::PrivateZone::PrivateZone
|
|
18
|
+
*/
|
|
19
|
+
function getPrivateZonesOutput(opts) {
|
|
20
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
21
|
+
return pulumi.runtime.invokeOutput("volcenginecc:privatezone/getPrivateZones:getPrivateZones", {}, opts);
|
|
22
|
+
}
|
|
23
|
+
exports.getPrivateZonesOutput = getPrivateZonesOutput;
|
|
24
|
+
//# sourceMappingURL=getPrivateZones.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPrivateZones.js","sourceRoot":"","sources":["../../privatezone/getPrivateZones.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,eAAe,CAAC,IAA2B;IACvD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0DAA0D,EAAE,EACxF,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,0CAIC;AAeD;;GAEG;AACH,SAAgB,qBAAqB,CAAC,IAAiC;IACnE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,0DAA0D,EAAE,EAC9F,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,sDAIC"}
|