@volcengine/pulumi-volcenginecc 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +373 -0
- package/README.md +77 -0
- package/alb/certificate.d.ts +197 -0
- package/alb/certificate.js +109 -0
- package/alb/certificate.js.map +1 -0
- package/alb/getCertificate.d.ts +93 -0
- package/alb/getCertificate.js +28 -0
- package/alb/getCertificate.js.map +1 -0
- package/alb/getCertificates.d.ts +22 -0
- package/alb/getCertificates.js +24 -0
- package/alb/getCertificates.js.map +1 -0
- package/alb/index.d.ts +9 -0
- package/alb/index.js +28 -0
- package/alb/index.js.map +1 -0
- package/ark/endpoint.d.ts +230 -0
- package/ark/endpoint.js +102 -0
- package/ark/endpoint.js.map +1 -0
- package/ark/getEndpoint.d.ts +117 -0
- package/ark/getEndpoint.js +28 -0
- package/ark/getEndpoint.js.map +1 -0
- package/ark/getEndpoints.d.ts +22 -0
- package/ark/getEndpoints.js +24 -0
- package/ark/getEndpoints.js.map +1 -0
- package/ark/index.d.ts +9 -0
- package/ark/index.js +28 -0
- package/ark/index.js.map +1 -0
- package/clb/clb.d.ts +512 -0
- package/clb/clb.js +148 -0
- package/clb/clb.js.map +1 -0
- package/clb/getClb.d.ts +221 -0
- package/clb/getClb.js +28 -0
- package/clb/getClb.js.map +1 -0
- package/clb/getClbs.d.ts +22 -0
- package/clb/getClbs.js +24 -0
- package/clb/getClbs.js.map +1 -0
- package/clb/getNlb.d.ts +141 -0
- package/clb/getNlb.js +28 -0
- package/clb/getNlb.js.map +1 -0
- package/clb/getNlbListener.d.ts +109 -0
- package/clb/getNlbListener.js +28 -0
- package/clb/getNlbListener.js.map +1 -0
- package/clb/getNlbListeners.d.ts +22 -0
- package/clb/getNlbListeners.js +24 -0
- package/clb/getNlbListeners.js.map +1 -0
- package/clb/getNlbServerGroup.d.ts +145 -0
- package/clb/getNlbServerGroup.js +28 -0
- package/clb/getNlbServerGroup.js.map +1 -0
- package/clb/getNlbServerGroups.d.ts +22 -0
- package/clb/getNlbServerGroups.js +24 -0
- package/clb/getNlbServerGroups.js.map +1 -0
- package/clb/getNlbs.d.ts +22 -0
- package/clb/getNlbs.js +24 -0
- package/clb/getNlbs.js.map +1 -0
- package/clb/getServerGroup.d.ts +85 -0
- package/clb/getServerGroup.js +28 -0
- package/clb/getServerGroup.js.map +1 -0
- package/clb/getServerGroups.d.ts +22 -0
- package/clb/getServerGroups.js +24 -0
- package/clb/getServerGroups.js.map +1 -0
- package/clb/index.d.ts +45 -0
- package/clb/index.js +72 -0
- package/clb/index.js.map +1 -0
- package/clb/nlb.d.ts +297 -0
- package/clb/nlb.js +120 -0
- package/clb/nlb.js.map +1 -0
- package/clb/nlbListener.d.ts +251 -0
- package/clb/nlbListener.js +126 -0
- package/clb/nlbListener.js.map +1 -0
- package/clb/nlbServerGroup.d.ts +337 -0
- package/clb/nlbServerGroup.js +116 -0
- package/clb/nlbServerGroup.js.map +1 -0
- package/clb/serverGroup.d.ts +151 -0
- package/clb/serverGroup.js +83 -0
- package/clb/serverGroup.js.map +1 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +21 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +37 -0
- package/config/vars.js +62 -0
- package/config/vars.js.map +1 -0
- package/cr/getRepositories.d.ts +22 -0
- package/cr/getRepositories.js +24 -0
- package/cr/getRepositories.js.map +1 -0
- package/cr/getRepository.d.ts +64 -0
- package/cr/getRepository.js +28 -0
- package/cr/getRepository.js.map +1 -0
- package/cr/index.d.ts +9 -0
- package/cr/index.js +28 -0
- package/cr/index.js.map +1 -0
- package/cr/repository.d.ts +136 -0
- package/cr/repository.js +94 -0
- package/cr/repository.js.map +1 -0
- package/ecs/command.d.ts +213 -0
- package/ecs/command.js +99 -0
- package/ecs/command.js.map +1 -0
- package/ecs/getCommand.d.ts +105 -0
- package/ecs/getCommand.js +28 -0
- package/ecs/getCommand.js.map +1 -0
- package/ecs/getCommands.d.ts +22 -0
- package/ecs/getCommands.js +24 -0
- package/ecs/getCommands.js.map +1 -0
- package/ecs/getHpcCluster.d.ts +64 -0
- package/ecs/getHpcCluster.js +28 -0
- package/ecs/getHpcCluster.js.map +1 -0
- package/ecs/getHpcClusters.d.ts +22 -0
- package/ecs/getHpcClusters.js +24 -0
- package/ecs/getHpcClusters.js.map +1 -0
- package/ecs/getImage.d.ts +157 -0
- package/ecs/getImage.js +28 -0
- package/ecs/getImage.js.map +1 -0
- package/ecs/getImages.d.ts +22 -0
- package/ecs/getImages.js +24 -0
- package/ecs/getImages.js.map +1 -0
- package/ecs/getInvocation.d.ts +143 -0
- package/ecs/getInvocation.js +28 -0
- package/ecs/getInvocation.js.map +1 -0
- package/ecs/getInvocations.d.ts +22 -0
- package/ecs/getInvocations.js +24 -0
- package/ecs/getInvocations.js.map +1 -0
- package/ecs/getKeypair.d.ts +81 -0
- package/ecs/getKeypair.js +28 -0
- package/ecs/getKeypair.js.map +1 -0
- package/ecs/getKeypairs.d.ts +22 -0
- package/ecs/getKeypairs.js +24 -0
- package/ecs/getKeypairs.js.map +1 -0
- package/ecs/hpcCluster.d.ts +134 -0
- package/ecs/hpcCluster.js +89 -0
- package/ecs/hpcCluster.js.map +1 -0
- package/ecs/image.d.ts +332 -0
- package/ecs/image.js +119 -0
- package/ecs/image.js.map +1 -0
- package/ecs/index.d.ts +45 -0
- package/ecs/index.js +72 -0
- package/ecs/index.js.map +1 -0
- package/ecs/invocation.d.ts +338 -0
- package/ecs/invocation.js +149 -0
- package/ecs/invocation.js.map +1 -0
- package/ecs/keypair.d.ts +171 -0
- package/ecs/keypair.js +98 -0
- package/ecs/keypair.js.map +1 -0
- package/filenas/getInstance.d.ts +109 -0
- package/filenas/getInstance.js +28 -0
- package/filenas/getInstance.js.map +1 -0
- package/filenas/getInstances.d.ts +22 -0
- package/filenas/getInstances.js +24 -0
- package/filenas/getInstances.js.map +1 -0
- package/filenas/index.d.ts +9 -0
- package/filenas/index.js +28 -0
- package/filenas/index.js.map +1 -0
- package/filenas/instance.d.ts +256 -0
- package/filenas/instance.js +125 -0
- package/filenas/instance.js.map +1 -0
- package/iam/accesskey.d.ts +136 -0
- package/iam/accesskey.js +81 -0
- package/iam/accesskey.js.map +1 -0
- package/iam/getAccesskey.d.ts +72 -0
- package/iam/getAccesskey.js +28 -0
- package/iam/getAccesskey.js.map +1 -0
- package/iam/getAccesskeys.d.ts +22 -0
- package/iam/getAccesskeys.js +24 -0
- package/iam/getAccesskeys.js.map +1 -0
- package/iam/getGroup.d.ts +73 -0
- package/iam/getGroup.js +28 -0
- package/iam/getGroup.js.map +1 -0
- package/iam/getGroups.d.ts +22 -0
- package/iam/getGroups.js +24 -0
- package/iam/getGroups.js.map +1 -0
- package/iam/getPolicies.d.ts +22 -0
- package/iam/getPolicies.js +24 -0
- package/iam/getPolicies.js.map +1 -0
- package/iam/getPolicy.d.ts +89 -0
- package/iam/getPolicy.js +28 -0
- package/iam/getPolicy.js.map +1 -0
- package/iam/getRole.d.ts +79 -0
- package/iam/getRole.js +28 -0
- package/iam/getRole.js.map +1 -0
- package/iam/getRoles.d.ts +22 -0
- package/iam/getRoles.js +24 -0
- package/iam/getRoles.js.map +1 -0
- package/iam/getUser.d.ts +97 -0
- package/iam/getUser.js +28 -0
- package/iam/getUser.js.map +1 -0
- package/iam/getUsers.d.ts +22 -0
- package/iam/getUsers.js +24 -0
- package/iam/getUsers.js.map +1 -0
- package/iam/group.d.ts +121 -0
- package/iam/group.js +77 -0
- package/iam/group.js.map +1 -0
- package/iam/index.d.ts +45 -0
- package/iam/index.js +72 -0
- package/iam/index.js.map +1 -0
- package/iam/policy.d.ts +156 -0
- package/iam/policy.js +91 -0
- package/iam/policy.js.map +1 -0
- package/iam/role.d.ts +185 -0
- package/iam/role.js +115 -0
- package/iam/role.js.map +1 -0
- package/iam/user.d.ts +189 -0
- package/iam/user.js +89 -0
- package/iam/user.js.map +1 -0
- package/index.d.ts +16 -0
- package/index.js +63 -0
- package/index.js.map +1 -0
- package/package.json +29 -0
- package/provider.d.ts +102 -0
- package/provider.js +61 -0
- package/provider.js.map +1 -0
- package/storageebs/getVolume.d.ts +153 -0
- package/storageebs/getVolume.js +28 -0
- package/storageebs/getVolume.js.map +1 -0
- package/storageebs/getVolumes.d.ts +22 -0
- package/storageebs/getVolumes.js +24 -0
- package/storageebs/getVolumes.js.map +1 -0
- package/storageebs/index.d.ts +9 -0
- package/storageebs/index.js +28 -0
- package/storageebs/index.js.map +1 -0
- package/storageebs/volume.d.ts +345 -0
- package/storageebs/volume.js +140 -0
- package/storageebs/volume.js.map +1 -0
- package/tos/bucket.d.ts +172 -0
- package/tos/bucket.js +87 -0
- package/tos/bucket.js.map +1 -0
- package/tos/getBucket.d.ts +90 -0
- package/tos/getBucket.js +28 -0
- package/tos/getBucket.js.map +1 -0
- package/tos/getBuckets.d.ts +22 -0
- package/tos/getBuckets.js +24 -0
- package/tos/getBuckets.js.map +1 -0
- package/tos/index.d.ts +9 -0
- package/tos/index.js +28 -0
- package/tos/index.js.map +1 -0
- package/transitrouter/getTransitRouter.d.ts +97 -0
- package/transitrouter/getTransitRouter.js +28 -0
- package/transitrouter/getTransitRouter.js.map +1 -0
- package/transitrouter/getTransitRouters.d.ts +22 -0
- package/transitrouter/getTransitRouters.js +24 -0
- package/transitrouter/getTransitRouters.js.map +1 -0
- package/transitrouter/index.d.ts +9 -0
- package/transitrouter/index.js +28 -0
- package/transitrouter/index.js.map +1 -0
- package/transitrouter/transitRouter.d.ts +194 -0
- package/transitrouter/transitRouter.js +104 -0
- package/transitrouter/transitRouter.js.map +1 -0
- package/types/index.d.ts +3 -0
- package/types/index.js +11 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +1581 -0
- package/types/input.js +5 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +3321 -0
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/utilities.d.ts +8 -0
- package/utilities.js +101 -0
- package/utilities.js.map +1 -0
- package/vmp/getWorkspace.d.ts +109 -0
- package/vmp/getWorkspace.js +28 -0
- package/vmp/getWorkspace.js.map +1 -0
- package/vmp/getWorkspaces.d.ts +22 -0
- package/vmp/getWorkspaces.js +24 -0
- package/vmp/getWorkspaces.js.map +1 -0
- package/vmp/index.d.ts +9 -0
- package/vmp/index.js +28 -0
- package/vmp/index.js.map +1 -0
- package/vmp/workspace.d.ts +235 -0
- package/vmp/workspace.js +119 -0
- package/vmp/workspace.js.map +1 -0
- package/vpc/bandwidthPackage.d.ts +257 -0
- package/vpc/bandwidthPackage.js +103 -0
- package/vpc/bandwidthPackage.js.map +1 -0
- package/vpc/eip.d.ts +415 -0
- package/vpc/eip.js +150 -0
- package/vpc/eip.js.map +1 -0
- package/vpc/eni.d.ts +289 -0
- package/vpc/eni.js +106 -0
- package/vpc/eni.js.map +1 -0
- package/vpc/getBandwidthPackage.d.ts +125 -0
- package/vpc/getBandwidthPackage.js +28 -0
- package/vpc/getBandwidthPackage.js.map +1 -0
- package/vpc/getBandwidthPackages.d.ts +22 -0
- package/vpc/getBandwidthPackages.js +24 -0
- package/vpc/getBandwidthPackages.js.map +1 -0
- package/vpc/getEip.d.ts +169 -0
- package/vpc/getEip.js +28 -0
- package/vpc/getEip.js.map +1 -0
- package/vpc/getEips.d.ts +22 -0
- package/vpc/getEips.js +24 -0
- package/vpc/getEips.js.map +1 -0
- package/vpc/getEni.d.ts +134 -0
- package/vpc/getEni.js +28 -0
- package/vpc/getEni.js.map +1 -0
- package/vpc/getEnis.d.ts +22 -0
- package/vpc/getEnis.js +24 -0
- package/vpc/getEnis.js.map +1 -0
- package/vpc/getRouteTable.d.ts +105 -0
- package/vpc/getRouteTable.js +28 -0
- package/vpc/getRouteTable.js.map +1 -0
- package/vpc/getRouteTables.d.ts +22 -0
- package/vpc/getRouteTables.js +24 -0
- package/vpc/getRouteTables.js.map +1 -0
- package/vpc/getSecurityGroup.d.ts +82 -0
- package/vpc/getSecurityGroup.js +28 -0
- package/vpc/getSecurityGroup.js.map +1 -0
- package/vpc/getSecurityGroups.d.ts +22 -0
- package/vpc/getSecurityGroups.js +24 -0
- package/vpc/getSecurityGroups.js.map +1 -0
- package/vpc/getSubnet.d.ts +110 -0
- package/vpc/getSubnet.js +28 -0
- package/vpc/getSubnet.js.map +1 -0
- package/vpc/getSubnets.d.ts +22 -0
- package/vpc/getSubnets.js +24 -0
- package/vpc/getSubnets.js.map +1 -0
- package/vpc/getVpc.d.ts +129 -0
- package/vpc/getVpc.js +28 -0
- package/vpc/getVpc.js.map +1 -0
- package/vpc/getVpcs.d.ts +22 -0
- package/vpc/getVpcs.js +24 -0
- package/vpc/getVpcs.js.map +1 -0
- package/vpc/index.d.ts +63 -0
- package/vpc/index.js +94 -0
- package/vpc/index.js.map +1 -0
- package/vpc/routeTable.d.ts +203 -0
- package/vpc/routeTable.js +93 -0
- package/vpc/routeTable.js.map +1 -0
- package/vpc/securityGroup.d.ts +144 -0
- package/vpc/securityGroup.js +83 -0
- package/vpc/securityGroup.js.map +1 -0
- package/vpc/subnet.d.ts +241 -0
- package/vpc/subnet.js +122 -0
- package/vpc/subnet.js.map +1 -0
- package/vpc/vpc.d.ts +277 -0
- package/vpc/vpc.js +102 -0
- package/vpc/vpc.js.map +1 -0
package/types/output.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
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
|
+
//# sourceMappingURL=output.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output.js","sourceRoot":"","sources":["../../types/output.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF"}
|
package/utilities.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
export declare function getEnv(...vars: string[]): string | undefined;
|
|
3
|
+
export declare function getEnvBoolean(...vars: string[]): boolean | undefined;
|
|
4
|
+
export declare function getEnvNumber(...vars: string[]): number | undefined;
|
|
5
|
+
export declare function getVersion(): string;
|
|
6
|
+
export declare function callAsync<T>(tok: string, props: pulumi.Inputs, res?: pulumi.Resource, opts?: {
|
|
7
|
+
property?: string;
|
|
8
|
+
}): Promise<T>;
|
package/utilities.js
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.callAsync = exports.lazyLoad = exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
|
|
15
|
+
const runtime = require("@pulumi/pulumi/runtime");
|
|
16
|
+
function getEnv(...vars) {
|
|
17
|
+
for (const v of vars) {
|
|
18
|
+
const value = process.env[v];
|
|
19
|
+
if (value) {
|
|
20
|
+
return value;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
exports.getEnv = getEnv;
|
|
26
|
+
function getEnvBoolean(...vars) {
|
|
27
|
+
const s = getEnv(...vars);
|
|
28
|
+
if (s !== undefined) {
|
|
29
|
+
// NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what
|
|
30
|
+
// Terraform uses internally when parsing boolean values.
|
|
31
|
+
if (["1", "t", "T", "true", "TRUE", "True"].find(v => v === s) !== undefined) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
if (["0", "f", "F", "false", "FALSE", "False"].find(v => v === s) !== undefined) {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
exports.getEnvBoolean = getEnvBoolean;
|
|
41
|
+
function getEnvNumber(...vars) {
|
|
42
|
+
const s = getEnv(...vars);
|
|
43
|
+
if (s !== undefined) {
|
|
44
|
+
const f = parseFloat(s);
|
|
45
|
+
if (!isNaN(f)) {
|
|
46
|
+
return f;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
exports.getEnvNumber = getEnvNumber;
|
|
52
|
+
function getVersion() {
|
|
53
|
+
let version = require('./package.json').version;
|
|
54
|
+
// Node allows for the version to be prefixed by a "v", while semver doesn't.
|
|
55
|
+
// If there is a v, strip it off.
|
|
56
|
+
if (version.indexOf('v') === 0) {
|
|
57
|
+
version = version.slice(1);
|
|
58
|
+
}
|
|
59
|
+
return version;
|
|
60
|
+
}
|
|
61
|
+
exports.getVersion = getVersion;
|
|
62
|
+
/** @internal */
|
|
63
|
+
function resourceOptsDefaults() {
|
|
64
|
+
return { version: getVersion(), pluginDownloadURL: "github://api.github.com/volcengine" };
|
|
65
|
+
}
|
|
66
|
+
exports.resourceOptsDefaults = resourceOptsDefaults;
|
|
67
|
+
/** @internal */
|
|
68
|
+
function lazyLoad(exports, props, loadModule) {
|
|
69
|
+
for (let property of props) {
|
|
70
|
+
Object.defineProperty(exports, property, {
|
|
71
|
+
enumerable: true,
|
|
72
|
+
get: function () {
|
|
73
|
+
return loadModule()[property];
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.lazyLoad = lazyLoad;
|
|
79
|
+
function callAsync(tok, props, res, opts) {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
+
const o = runtime.call(tok, props, res);
|
|
82
|
+
const value = yield o.promise(true /*withUnknowns*/);
|
|
83
|
+
const isKnown = yield o.isKnown;
|
|
84
|
+
const isSecret = yield o.isSecret;
|
|
85
|
+
const problem = !isKnown ? "an unknown value"
|
|
86
|
+
: isSecret ? "a secret value"
|
|
87
|
+
: undefined;
|
|
88
|
+
// Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
|
|
89
|
+
if (problem) {
|
|
90
|
+
throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
|
|
91
|
+
"This is an error in the provider, please report this to the provider developer.");
|
|
92
|
+
}
|
|
93
|
+
// Extract a single property if requested.
|
|
94
|
+
if (opts && opts.property) {
|
|
95
|
+
return value[opts.property];
|
|
96
|
+
}
|
|
97
|
+
return value;
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
exports.callAsync = callAsync;
|
|
101
|
+
//# sourceMappingURL=utilities.js.map
|
package/utilities.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;AAGjF,kDAAkD;AAGlD,SAAgB,MAAM,CAAC,GAAG,IAAc;IACpC,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE;QAClB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC7B,IAAI,KAAK,EAAE;YACP,OAAO,KAAK,CAAC;SAChB;KACJ;IACD,OAAO,SAAS,CAAC;AACrB,CAAC;AARD,wBAQC;AAED,SAA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/B;QACD,OAAO,KAAK,CAAC;IACjB,CAAC;CAAA;AAxBD,8BAwBC"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "../types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Data Source schema for Volcengine::VMP::Workspace
|
|
5
|
+
*/
|
|
6
|
+
export declare function getWorkspace(args: GetWorkspaceArgs, opts?: pulumi.InvokeOptions): Promise<GetWorkspaceResult>;
|
|
7
|
+
/**
|
|
8
|
+
* A collection of arguments for invoking getWorkspace.
|
|
9
|
+
*/
|
|
10
|
+
export interface GetWorkspaceArgs {
|
|
11
|
+
/**
|
|
12
|
+
* Uniquely identifies the resource.
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A collection of values returned by getWorkspace.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetWorkspaceResult {
|
|
20
|
+
/**
|
|
21
|
+
* 工作区创建时间,RFC3339 格式。
|
|
22
|
+
*/
|
|
23
|
+
readonly createTime: string;
|
|
24
|
+
/**
|
|
25
|
+
* 是否开启工作区删除保护,true:开启,false:关闭。
|
|
26
|
+
*/
|
|
27
|
+
readonly deleteProtectionEnabled: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* 工作区描述信息,字符串形式,长度限制为 0~200。
|
|
30
|
+
*/
|
|
31
|
+
readonly description: string;
|
|
32
|
+
/**
|
|
33
|
+
* Uniquely identifies the resource.
|
|
34
|
+
*/
|
|
35
|
+
readonly id: string;
|
|
36
|
+
/**
|
|
37
|
+
* 工作区规格详情。
|
|
38
|
+
*/
|
|
39
|
+
readonly instanceType: outputs.vmp.GetWorkspaceInstanceType;
|
|
40
|
+
/**
|
|
41
|
+
* 工作区规格,vmp.standard.15d:15 天存储时长工作区。vmp.standard.30d:30 天存储时长工作区。vmp.standard.90d:90 天存储时长工作区。vmp.standard.180d:180 天存储时长工作区。vmp.standard.1y:1 年存储时长工作区。
|
|
42
|
+
*/
|
|
43
|
+
readonly instanceTypeId: string;
|
|
44
|
+
/**
|
|
45
|
+
* 工作区名称,字符串形式,长度限制为 1~100。
|
|
46
|
+
*/
|
|
47
|
+
readonly name: string;
|
|
48
|
+
/**
|
|
49
|
+
* 工作区预期欠费回收时间,RFC3339 格式。
|
|
50
|
+
*/
|
|
51
|
+
readonly overdueReclaimTime: string;
|
|
52
|
+
/**
|
|
53
|
+
* 工作区 BasicAuth 密码。
|
|
54
|
+
*/
|
|
55
|
+
readonly password: string;
|
|
56
|
+
/**
|
|
57
|
+
* 项目名称。
|
|
58
|
+
*/
|
|
59
|
+
readonly projectName: string;
|
|
60
|
+
/**
|
|
61
|
+
* 工作区 Push Gateway URL 地址。
|
|
62
|
+
*/
|
|
63
|
+
readonly prometheusPushIntranetEndpoint: string;
|
|
64
|
+
/**
|
|
65
|
+
* 工作区 Query URL 地址。
|
|
66
|
+
*/
|
|
67
|
+
readonly prometheusQueryIntranetEndpoint: string;
|
|
68
|
+
/**
|
|
69
|
+
* 工作区 RemoteWrite URL 地址。
|
|
70
|
+
*/
|
|
71
|
+
readonly prometheusWriteIntranetEndpoint: string;
|
|
72
|
+
/**
|
|
73
|
+
* 工作区配额详情。
|
|
74
|
+
*/
|
|
75
|
+
readonly quota: outputs.vmp.GetWorkspaceQuota;
|
|
76
|
+
/**
|
|
77
|
+
* 工作区状态,取值:Creating:创建中 Active:正常 Updating:更新中 Deleting:删除中 OverdueShutted:欠费关停 Resuming:恢复中 Error:错误。
|
|
78
|
+
*/
|
|
79
|
+
readonly status: string;
|
|
80
|
+
/**
|
|
81
|
+
* 工作区标签。
|
|
82
|
+
*/
|
|
83
|
+
readonly tags: outputs.vmp.GetWorkspaceTag[];
|
|
84
|
+
/**
|
|
85
|
+
* 工作区用量。
|
|
86
|
+
*/
|
|
87
|
+
readonly usage: outputs.vmp.GetWorkspaceUsage;
|
|
88
|
+
/**
|
|
89
|
+
* 工作区 BasicAuth 用户名。
|
|
90
|
+
*/
|
|
91
|
+
readonly username: string;
|
|
92
|
+
/**
|
|
93
|
+
* 工作区Id。
|
|
94
|
+
*/
|
|
95
|
+
readonly workspaceId: string;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Data Source schema for Volcengine::VMP::Workspace
|
|
99
|
+
*/
|
|
100
|
+
export declare function getWorkspaceOutput(args: GetWorkspaceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetWorkspaceResult>;
|
|
101
|
+
/**
|
|
102
|
+
* A collection of arguments for invoking getWorkspace.
|
|
103
|
+
*/
|
|
104
|
+
export interface GetWorkspaceOutputArgs {
|
|
105
|
+
/**
|
|
106
|
+
* Uniquely identifies the resource.
|
|
107
|
+
*/
|
|
108
|
+
id: pulumi.Input<string>;
|
|
109
|
+
}
|
|
@@ -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.getWorkspaceOutput = exports.getWorkspace = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Data Source schema for Volcengine::VMP::Workspace
|
|
10
|
+
*/
|
|
11
|
+
function getWorkspace(args, opts) {
|
|
12
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
13
|
+
return pulumi.runtime.invoke("volcenginecc:vmp/getWorkspace:getWorkspace", {
|
|
14
|
+
"id": args.id,
|
|
15
|
+
}, opts);
|
|
16
|
+
}
|
|
17
|
+
exports.getWorkspace = getWorkspace;
|
|
18
|
+
/**
|
|
19
|
+
* Data Source schema for Volcengine::VMP::Workspace
|
|
20
|
+
*/
|
|
21
|
+
function getWorkspaceOutput(args, opts) {
|
|
22
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
23
|
+
return pulumi.runtime.invokeOutput("volcenginecc:vmp/getWorkspace:getWorkspace", {
|
|
24
|
+
"id": args.id,
|
|
25
|
+
}, opts);
|
|
26
|
+
}
|
|
27
|
+
exports.getWorkspaceOutput = getWorkspaceOutput;
|
|
28
|
+
//# sourceMappingURL=getWorkspace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getWorkspace.js","sourceRoot":"","sources":["../../vmp/getWorkspace.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAC5E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4CAA4C,EAAE;QACvE,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,oCAKC;AA6FD;;GAEG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAAiC;IAC9F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,4CAA4C,EAAE;QAC7E,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,gDAKC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Plural Data Source schema for Volcengine::VMP::Workspace
|
|
4
|
+
*/
|
|
5
|
+
export declare function getWorkspaces(opts?: pulumi.InvokeOptions): Promise<GetWorkspacesResult>;
|
|
6
|
+
/**
|
|
7
|
+
* A collection of values returned by getWorkspaces.
|
|
8
|
+
*/
|
|
9
|
+
export interface GetWorkspacesResult {
|
|
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::VMP::Workspace
|
|
21
|
+
*/
|
|
22
|
+
export declare function getWorkspacesOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetWorkspacesResult>;
|
|
@@ -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.getWorkspacesOutput = exports.getWorkspaces = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Plural Data Source schema for Volcengine::VMP::Workspace
|
|
10
|
+
*/
|
|
11
|
+
function getWorkspaces(opts) {
|
|
12
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
13
|
+
return pulumi.runtime.invoke("volcenginecc:vmp/getWorkspaces:getWorkspaces", {}, opts);
|
|
14
|
+
}
|
|
15
|
+
exports.getWorkspaces = getWorkspaces;
|
|
16
|
+
/**
|
|
17
|
+
* Plural Data Source schema for Volcengine::VMP::Workspace
|
|
18
|
+
*/
|
|
19
|
+
function getWorkspacesOutput(opts) {
|
|
20
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
21
|
+
return pulumi.runtime.invokeOutput("volcenginecc:vmp/getWorkspaces:getWorkspaces", {}, opts);
|
|
22
|
+
}
|
|
23
|
+
exports.getWorkspacesOutput = getWorkspacesOutput;
|
|
24
|
+
//# sourceMappingURL=getWorkspaces.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getWorkspaces.js","sourceRoot":"","sources":["../../vmp/getWorkspaces.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,aAAa,CAAC,IAA2B;IACrD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8CAA8C,EAAE,EAC5E,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,sCAIC;AAeD;;GAEG;AACH,SAAgB,mBAAmB,CAAC,IAAiC;IACjE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,8CAA8C,EAAE,EAClF,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,kDAIC"}
|
package/vmp/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { GetWorkspaceArgs, GetWorkspaceResult, GetWorkspaceOutputArgs } from "./getWorkspace";
|
|
2
|
+
export declare const getWorkspace: typeof import("./getWorkspace").getWorkspace;
|
|
3
|
+
export declare const getWorkspaceOutput: typeof import("./getWorkspace").getWorkspaceOutput;
|
|
4
|
+
export { GetWorkspacesResult } from "./getWorkspaces";
|
|
5
|
+
export declare const getWorkspaces: typeof import("./getWorkspaces").getWorkspaces;
|
|
6
|
+
export declare const getWorkspacesOutput: typeof import("./getWorkspaces").getWorkspacesOutput;
|
|
7
|
+
export { WorkspaceArgs, WorkspaceState } from "./workspace";
|
|
8
|
+
export type Workspace = import("./workspace").Workspace;
|
|
9
|
+
export declare const Workspace: typeof import("./workspace").Workspace;
|
package/vmp/index.js
ADDED
|
@@ -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.Workspace = exports.getWorkspacesOutput = exports.getWorkspaces = exports.getWorkspaceOutput = exports.getWorkspace = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
exports.getWorkspace = null;
|
|
9
|
+
exports.getWorkspaceOutput = null;
|
|
10
|
+
utilities.lazyLoad(exports, ["getWorkspace", "getWorkspaceOutput"], () => require("./getWorkspace"));
|
|
11
|
+
exports.getWorkspaces = null;
|
|
12
|
+
exports.getWorkspacesOutput = null;
|
|
13
|
+
utilities.lazyLoad(exports, ["getWorkspaces", "getWorkspacesOutput"], () => require("./getWorkspaces"));
|
|
14
|
+
exports.Workspace = null;
|
|
15
|
+
utilities.lazyLoad(exports, ["Workspace"], () => require("./workspace"));
|
|
16
|
+
const _module = {
|
|
17
|
+
version: utilities.getVersion(),
|
|
18
|
+
construct: (name, type, urn) => {
|
|
19
|
+
switch (type) {
|
|
20
|
+
case "volcenginecc:vmp/workspace:Workspace":
|
|
21
|
+
return new exports.Workspace(name, undefined, { urn });
|
|
22
|
+
default:
|
|
23
|
+
throw new Error(`unknown resource type ${type}`);
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
pulumi.runtime.registerResourceModule("volcenginecc", "vmp/workspace", _module);
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
package/vmp/index.js.map
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
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* 工作区(Workspace)是 VMP 服务中采集数据和规则的抽象整合,为用户提供物理隔离或逻辑隔离的 Prometheus 能力。在 VMP 服务中可创建不同的工作区,不同工作区中的数据彼此隔离。
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
|
|
12
|
+
*
|
|
13
|
+
* const workspaceDemo = new volcenginecc.vmp.Workspace("WorkspaceDemo", {
|
|
14
|
+
* username: "WorkspaceDemo",
|
|
15
|
+
* password: "***********",
|
|
16
|
+
* name: "WorkspaceDemo",
|
|
17
|
+
* description: "WorkspaceDemo",
|
|
18
|
+
* deleteProtectionEnabled: false,
|
|
19
|
+
* instanceTypeId: "vmp.standard.xxx",
|
|
20
|
+
* projectName: "default",
|
|
21
|
+
* tags: [{
|
|
22
|
+
* key: "env",
|
|
23
|
+
* value: "test",
|
|
24
|
+
* }],
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* ## Import
|
|
29
|
+
*
|
|
30
|
+
* ```sh
|
|
31
|
+
* $ pulumi import volcenginecc:vmp/workspace:Workspace example "workspace_id"
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare class Workspace extends pulumi.CustomResource {
|
|
35
|
+
/**
|
|
36
|
+
* Get an existing Workspace resource's state with the given name, ID, and optional extra
|
|
37
|
+
* properties used to qualify the lookup.
|
|
38
|
+
*
|
|
39
|
+
* @param name The _unique_ name of the resulting resource.
|
|
40
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
41
|
+
* @param state Any extra arguments used during the lookup.
|
|
42
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
43
|
+
*/
|
|
44
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: WorkspaceState, opts?: pulumi.CustomResourceOptions): Workspace;
|
|
45
|
+
/**
|
|
46
|
+
* Returns true if the given object is an instance of Workspace. This is designed to work even
|
|
47
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
48
|
+
*/
|
|
49
|
+
static isInstance(obj: any): obj is Workspace;
|
|
50
|
+
/**
|
|
51
|
+
* 工作区创建时间,RFC3339 格式。
|
|
52
|
+
*/
|
|
53
|
+
readonly createTime: pulumi.Output<string>;
|
|
54
|
+
/**
|
|
55
|
+
* 是否开启工作区删除保护,true:开启,false:关闭。
|
|
56
|
+
*/
|
|
57
|
+
readonly deleteProtectionEnabled: pulumi.Output<boolean>;
|
|
58
|
+
/**
|
|
59
|
+
* 工作区描述信息,字符串形式,长度限制为 0~200。
|
|
60
|
+
*/
|
|
61
|
+
readonly description: pulumi.Output<string>;
|
|
62
|
+
/**
|
|
63
|
+
* 工作区规格详情。
|
|
64
|
+
*/
|
|
65
|
+
readonly instanceType: pulumi.Output<outputs.vmp.WorkspaceInstanceType>;
|
|
66
|
+
/**
|
|
67
|
+
* 工作区规格,vmp.standard.15d:15 天存储时长工作区。vmp.standard.30d:30 天存储时长工作区。vmp.standard.90d:90 天存储时长工作区。vmp.standard.180d:180 天存储时长工作区。vmp.standard.1y:1 年存储时长工作区。
|
|
68
|
+
*/
|
|
69
|
+
readonly instanceTypeId: pulumi.Output<string>;
|
|
70
|
+
/**
|
|
71
|
+
* 工作区名称,字符串形式,长度限制为 1~100。
|
|
72
|
+
*/
|
|
73
|
+
readonly name: pulumi.Output<string>;
|
|
74
|
+
/**
|
|
75
|
+
* 工作区预期欠费回收时间,RFC3339 格式。
|
|
76
|
+
*/
|
|
77
|
+
readonly overdueReclaimTime: pulumi.Output<string>;
|
|
78
|
+
/**
|
|
79
|
+
* 工作区 BasicAuth 密码。
|
|
80
|
+
*/
|
|
81
|
+
readonly password: pulumi.Output<string>;
|
|
82
|
+
/**
|
|
83
|
+
* 项目名称。
|
|
84
|
+
*/
|
|
85
|
+
readonly projectName: pulumi.Output<string>;
|
|
86
|
+
/**
|
|
87
|
+
* 工作区 Push Gateway URL 地址。
|
|
88
|
+
*/
|
|
89
|
+
readonly prometheusPushIntranetEndpoint: pulumi.Output<string>;
|
|
90
|
+
/**
|
|
91
|
+
* 工作区 Query URL 地址。
|
|
92
|
+
*/
|
|
93
|
+
readonly prometheusQueryIntranetEndpoint: pulumi.Output<string>;
|
|
94
|
+
/**
|
|
95
|
+
* 工作区 RemoteWrite URL 地址。
|
|
96
|
+
*/
|
|
97
|
+
readonly prometheusWriteIntranetEndpoint: pulumi.Output<string>;
|
|
98
|
+
/**
|
|
99
|
+
* 工作区配额详情。
|
|
100
|
+
*/
|
|
101
|
+
readonly quota: pulumi.Output<outputs.vmp.WorkspaceQuota>;
|
|
102
|
+
/**
|
|
103
|
+
* 工作区状态,取值:Creating:创建中 Active:正常 Updating:更新中 Deleting:删除中 OverdueShutted:欠费关停 Resuming:恢复中 Error:错误。
|
|
104
|
+
*/
|
|
105
|
+
readonly status: pulumi.Output<string>;
|
|
106
|
+
readonly tags: pulumi.Output<outputs.vmp.WorkspaceTag[]>;
|
|
107
|
+
/**
|
|
108
|
+
* 工作区用量。
|
|
109
|
+
*/
|
|
110
|
+
readonly usage: pulumi.Output<outputs.vmp.WorkspaceUsage>;
|
|
111
|
+
/**
|
|
112
|
+
* 工作区 BasicAuth 用户名。
|
|
113
|
+
*/
|
|
114
|
+
readonly username: pulumi.Output<string>;
|
|
115
|
+
/**
|
|
116
|
+
* 工作区Id。
|
|
117
|
+
*/
|
|
118
|
+
readonly workspaceId: pulumi.Output<string>;
|
|
119
|
+
/**
|
|
120
|
+
* Create a Workspace resource with the given unique name, arguments, and options.
|
|
121
|
+
*
|
|
122
|
+
* @param name The _unique_ name of the resource.
|
|
123
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
124
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
125
|
+
*/
|
|
126
|
+
constructor(name: string, args: WorkspaceArgs, opts?: pulumi.CustomResourceOptions);
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Input properties used for looking up and filtering Workspace resources.
|
|
130
|
+
*/
|
|
131
|
+
export interface WorkspaceState {
|
|
132
|
+
/**
|
|
133
|
+
* 工作区创建时间,RFC3339 格式。
|
|
134
|
+
*/
|
|
135
|
+
createTime?: pulumi.Input<string>;
|
|
136
|
+
/**
|
|
137
|
+
* 是否开启工作区删除保护,true:开启,false:关闭。
|
|
138
|
+
*/
|
|
139
|
+
deleteProtectionEnabled?: pulumi.Input<boolean>;
|
|
140
|
+
/**
|
|
141
|
+
* 工作区描述信息,字符串形式,长度限制为 0~200。
|
|
142
|
+
*/
|
|
143
|
+
description?: pulumi.Input<string>;
|
|
144
|
+
/**
|
|
145
|
+
* 工作区规格详情。
|
|
146
|
+
*/
|
|
147
|
+
instanceType?: pulumi.Input<inputs.vmp.WorkspaceInstanceType>;
|
|
148
|
+
/**
|
|
149
|
+
* 工作区规格,vmp.standard.15d:15 天存储时长工作区。vmp.standard.30d:30 天存储时长工作区。vmp.standard.90d:90 天存储时长工作区。vmp.standard.180d:180 天存储时长工作区。vmp.standard.1y:1 年存储时长工作区。
|
|
150
|
+
*/
|
|
151
|
+
instanceTypeId?: pulumi.Input<string>;
|
|
152
|
+
/**
|
|
153
|
+
* 工作区名称,字符串形式,长度限制为 1~100。
|
|
154
|
+
*/
|
|
155
|
+
name?: pulumi.Input<string>;
|
|
156
|
+
/**
|
|
157
|
+
* 工作区预期欠费回收时间,RFC3339 格式。
|
|
158
|
+
*/
|
|
159
|
+
overdueReclaimTime?: pulumi.Input<string>;
|
|
160
|
+
/**
|
|
161
|
+
* 工作区 BasicAuth 密码。
|
|
162
|
+
*/
|
|
163
|
+
password?: pulumi.Input<string>;
|
|
164
|
+
/**
|
|
165
|
+
* 项目名称。
|
|
166
|
+
*/
|
|
167
|
+
projectName?: pulumi.Input<string>;
|
|
168
|
+
/**
|
|
169
|
+
* 工作区 Push Gateway URL 地址。
|
|
170
|
+
*/
|
|
171
|
+
prometheusPushIntranetEndpoint?: pulumi.Input<string>;
|
|
172
|
+
/**
|
|
173
|
+
* 工作区 Query URL 地址。
|
|
174
|
+
*/
|
|
175
|
+
prometheusQueryIntranetEndpoint?: pulumi.Input<string>;
|
|
176
|
+
/**
|
|
177
|
+
* 工作区 RemoteWrite URL 地址。
|
|
178
|
+
*/
|
|
179
|
+
prometheusWriteIntranetEndpoint?: pulumi.Input<string>;
|
|
180
|
+
/**
|
|
181
|
+
* 工作区配额详情。
|
|
182
|
+
*/
|
|
183
|
+
quota?: pulumi.Input<inputs.vmp.WorkspaceQuota>;
|
|
184
|
+
/**
|
|
185
|
+
* 工作区状态,取值:Creating:创建中 Active:正常 Updating:更新中 Deleting:删除中 OverdueShutted:欠费关停 Resuming:恢复中 Error:错误。
|
|
186
|
+
*/
|
|
187
|
+
status?: pulumi.Input<string>;
|
|
188
|
+
tags?: pulumi.Input<pulumi.Input<inputs.vmp.WorkspaceTag>[]>;
|
|
189
|
+
/**
|
|
190
|
+
* 工作区用量。
|
|
191
|
+
*/
|
|
192
|
+
usage?: pulumi.Input<inputs.vmp.WorkspaceUsage>;
|
|
193
|
+
/**
|
|
194
|
+
* 工作区 BasicAuth 用户名。
|
|
195
|
+
*/
|
|
196
|
+
username?: pulumi.Input<string>;
|
|
197
|
+
/**
|
|
198
|
+
* 工作区Id。
|
|
199
|
+
*/
|
|
200
|
+
workspaceId?: pulumi.Input<string>;
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* The set of arguments for constructing a Workspace resource.
|
|
204
|
+
*/
|
|
205
|
+
export interface WorkspaceArgs {
|
|
206
|
+
/**
|
|
207
|
+
* 是否开启工作区删除保护,true:开启,false:关闭。
|
|
208
|
+
*/
|
|
209
|
+
deleteProtectionEnabled?: pulumi.Input<boolean>;
|
|
210
|
+
/**
|
|
211
|
+
* 工作区描述信息,字符串形式,长度限制为 0~200。
|
|
212
|
+
*/
|
|
213
|
+
description?: pulumi.Input<string>;
|
|
214
|
+
/**
|
|
215
|
+
* 工作区规格,vmp.standard.15d:15 天存储时长工作区。vmp.standard.30d:30 天存储时长工作区。vmp.standard.90d:90 天存储时长工作区。vmp.standard.180d:180 天存储时长工作区。vmp.standard.1y:1 年存储时长工作区。
|
|
216
|
+
*/
|
|
217
|
+
instanceTypeId: pulumi.Input<string>;
|
|
218
|
+
/**
|
|
219
|
+
* 工作区名称,字符串形式,长度限制为 1~100。
|
|
220
|
+
*/
|
|
221
|
+
name: pulumi.Input<string>;
|
|
222
|
+
/**
|
|
223
|
+
* 工作区 BasicAuth 密码。
|
|
224
|
+
*/
|
|
225
|
+
password?: pulumi.Input<string>;
|
|
226
|
+
/**
|
|
227
|
+
* 项目名称。
|
|
228
|
+
*/
|
|
229
|
+
projectName?: pulumi.Input<string>;
|
|
230
|
+
tags?: pulumi.Input<pulumi.Input<inputs.vmp.WorkspaceTag>[]>;
|
|
231
|
+
/**
|
|
232
|
+
* 工作区 BasicAuth 用户名。
|
|
233
|
+
*/
|
|
234
|
+
username?: pulumi.Input<string>;
|
|
235
|
+
}
|