@volcengine/pulumi-volcenginecc 0.0.15 → 0.0.20
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/README.md +2 -2
- package/ecs/getInvocation.d.ts +6 -0
- package/ecs/getInvocation.js.map +1 -1
- package/filenas/getSnapshot.d.ts +92 -0
- package/filenas/getSnapshot.js +28 -0
- package/filenas/getSnapshot.js.map +1 -0
- package/filenas/getSnapshots.d.ts +22 -0
- package/filenas/getSnapshots.js +24 -0
- package/filenas/getSnapshots.js.map +1 -0
- package/filenas/index.d.ts +9 -0
- package/filenas/index.js +12 -1
- package/filenas/index.js.map +1 -1
- package/filenas/snapshot.d.ts +182 -0
- package/filenas/snapshot.js +103 -0
- package/filenas/snapshot.js.map +1 -0
- package/iam/policy.d.ts +0 -4
- package/iam/policy.js +1 -1
- package/iam/policy.js.map +1 -1
- package/index.d.ts +2 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/rdsmysql/database.d.ts +6 -0
- package/rdsmysql/database.js.map +1 -1
- package/rdsmysql/getDatabase.d.ts +3 -0
- package/rdsmysql/getDatabase.js.map +1 -1
- package/transitrouter/getTransitRouter.d.ts +0 -4
- package/transitrouter/getTransitRouter.js.map +1 -1
- package/transitrouter/transitRouter.d.ts +0 -12
- package/transitrouter/transitRouter.js +0 -2
- package/transitrouter/transitRouter.js.map +1 -1
- package/types/input.d.ts +32 -10
- package/types/output.d.ts +62 -16
- package/vpn/getVpnGateway.d.ts +165 -0
- package/vpn/getVpnGateway.js +28 -0
- package/vpn/getVpnGateway.js.map +1 -0
- package/vpn/getVpnGateways.d.ts +22 -0
- package/vpn/getVpnGateways.js +24 -0
- package/vpn/getVpnGateways.js.map +1 -0
- package/vpn/index.d.ts +9 -0
- package/vpn/index.js +28 -0
- package/vpn/index.js.map +1 -0
- package/vpn/vpnGateway.d.ts +389 -0
- package/vpn/vpnGateway.js +152 -0
- package/vpn/vpnGateway.js.map +1 -0
package/README.md
CHANGED
|
@@ -12,11 +12,11 @@ This package is available in many languages in the standard packaging formats.
|
|
|
12
12
|
|
|
13
13
|
To use from JavaScript or TypeScript in Node.js, install using either `npm`:
|
|
14
14
|
|
|
15
|
-
$ npm install @
|
|
15
|
+
$ npm install @volcengine/pulumi-volcenginecc
|
|
16
16
|
|
|
17
17
|
or `yarn`:
|
|
18
18
|
|
|
19
|
-
$ yarn add @
|
|
19
|
+
$ yarn add @volcengine/pulumi-volcenginecc
|
|
20
20
|
|
|
21
21
|
### Python
|
|
22
22
|
|
package/ecs/getInvocation.d.ts
CHANGED
|
@@ -89,6 +89,9 @@ export interface GetInvocationResult {
|
|
|
89
89
|
* 执行时间。
|
|
90
90
|
*/
|
|
91
91
|
readonly launchTime: string;
|
|
92
|
+
/**
|
|
93
|
+
* 任务触发时的命令自定义参数定义。
|
|
94
|
+
*/
|
|
92
95
|
readonly parameterDefinitions: outputs.ecs.GetInvocationParameterDefinition[];
|
|
93
96
|
/**
|
|
94
97
|
* 命令中包含自定义参数时,需通过本参数传入自定义参数的键值对。自定义参数个数范围为0~60。Key不允许为空字符串,最多支持64个字符。Value允许为空字符串。自定义参数与原始命令内容在Base64编码后,综合长度不能超过16KB。设置的自定义参数名集合必须为创建命令时定义的参数集的子集。对于未传入的参数,使用默认值代替。
|
|
@@ -110,6 +113,9 @@ export interface GetInvocationResult {
|
|
|
110
113
|
* 任务开始时间。
|
|
111
114
|
*/
|
|
112
115
|
readonly startTime: string;
|
|
116
|
+
/**
|
|
117
|
+
* 标签键值对。
|
|
118
|
+
*/
|
|
113
119
|
readonly tags: outputs.ecs.GetInvocationTag[];
|
|
114
120
|
/**
|
|
115
121
|
* 创建的命令在ECS实例中执行时最大的超时时间,单位为秒。默认值:60。可选范围为:30~86400。
|
package/ecs/getInvocation.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getInvocation.js","sourceRoot":"","sources":["../../ecs/getInvocation.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,aAAa,CAAC,IAAuB,EAAE,IAA2B;IAC9E,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;QACzE,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,sCAKC;
|
|
1
|
+
{"version":3,"file":"getInvocation.js","sourceRoot":"","sources":["../../ecs/getInvocation.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,aAAa,CAAC,IAAuB,EAAE,IAA2B;IAC9E,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;QACzE,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,sCAKC;AAqID;;GAEG;AACH,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAAiC;IAChG,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;QAC/E,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,kDAKC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Data Source schema for Volcengine::FileNAS::Snapshot
|
|
4
|
+
*/
|
|
5
|
+
export declare function getSnapshot(args: GetSnapshotArgs, opts?: pulumi.InvokeOptions): Promise<GetSnapshotResult>;
|
|
6
|
+
/**
|
|
7
|
+
* A collection of arguments for invoking getSnapshot.
|
|
8
|
+
*/
|
|
9
|
+
export interface GetSnapshotArgs {
|
|
10
|
+
/**
|
|
11
|
+
* Uniquely identifies the resource.
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* A collection of values returned by getSnapshot.
|
|
17
|
+
*/
|
|
18
|
+
export interface GetSnapshotResult {
|
|
19
|
+
/**
|
|
20
|
+
* 快照创建时间。
|
|
21
|
+
*/
|
|
22
|
+
readonly createdTime: string;
|
|
23
|
+
/**
|
|
24
|
+
* 快照描述信息。
|
|
25
|
+
*/
|
|
26
|
+
readonly description: string;
|
|
27
|
+
/**
|
|
28
|
+
* 文件系统 ID。
|
|
29
|
+
*/
|
|
30
|
+
readonly fileSystemId: string;
|
|
31
|
+
/**
|
|
32
|
+
* 文件系统名称。
|
|
33
|
+
*/
|
|
34
|
+
readonly fileSystemName: string;
|
|
35
|
+
/**
|
|
36
|
+
* Uniquely identifies the resource.
|
|
37
|
+
*/
|
|
38
|
+
readonly id: string;
|
|
39
|
+
/**
|
|
40
|
+
* 是否加密,当前仅支持false,即不加密。
|
|
41
|
+
*/
|
|
42
|
+
readonly isEncrypt: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* 快照创建进度。
|
|
45
|
+
*/
|
|
46
|
+
readonly progress: string;
|
|
47
|
+
/**
|
|
48
|
+
* 快照保留时间,默认为2147483647,即永久保留。
|
|
49
|
+
*/
|
|
50
|
+
readonly retentionDays: number;
|
|
51
|
+
/**
|
|
52
|
+
* 快照 ID。
|
|
53
|
+
*/
|
|
54
|
+
readonly snapshotId: string;
|
|
55
|
+
/**
|
|
56
|
+
* 快照名称。
|
|
57
|
+
*/
|
|
58
|
+
readonly snapshotName: string;
|
|
59
|
+
/**
|
|
60
|
+
* 快照类型,默认为Manual,即手动快照。
|
|
61
|
+
*/
|
|
62
|
+
readonly snapshotType: string;
|
|
63
|
+
/**
|
|
64
|
+
* 文件系统容量,单位为 GiB。
|
|
65
|
+
*/
|
|
66
|
+
readonly sourceSize: number;
|
|
67
|
+
/**
|
|
68
|
+
* 文件系统版本。
|
|
69
|
+
*/
|
|
70
|
+
readonly sourceVersion: string;
|
|
71
|
+
/**
|
|
72
|
+
* 快照状态。说明如下:Progressing:正在创建。Accomplished:创建成功。Failed:创建失败。
|
|
73
|
+
*/
|
|
74
|
+
readonly status: string;
|
|
75
|
+
/**
|
|
76
|
+
* 可用区 ID。
|
|
77
|
+
*/
|
|
78
|
+
readonly zoneId: string;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Data Source schema for Volcengine::FileNAS::Snapshot
|
|
82
|
+
*/
|
|
83
|
+
export declare function getSnapshotOutput(args: GetSnapshotOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSnapshotResult>;
|
|
84
|
+
/**
|
|
85
|
+
* A collection of arguments for invoking getSnapshot.
|
|
86
|
+
*/
|
|
87
|
+
export interface GetSnapshotOutputArgs {
|
|
88
|
+
/**
|
|
89
|
+
* Uniquely identifies the resource.
|
|
90
|
+
*/
|
|
91
|
+
id: pulumi.Input<string>;
|
|
92
|
+
}
|
|
@@ -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.getSnapshotOutput = exports.getSnapshot = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Data Source schema for Volcengine::FileNAS::Snapshot
|
|
10
|
+
*/
|
|
11
|
+
function getSnapshot(args, opts) {
|
|
12
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
13
|
+
return pulumi.runtime.invoke("volcenginecc:filenas/getSnapshot:getSnapshot", {
|
|
14
|
+
"id": args.id,
|
|
15
|
+
}, opts);
|
|
16
|
+
}
|
|
17
|
+
exports.getSnapshot = getSnapshot;
|
|
18
|
+
/**
|
|
19
|
+
* Data Source schema for Volcengine::FileNAS::Snapshot
|
|
20
|
+
*/
|
|
21
|
+
function getSnapshotOutput(args, opts) {
|
|
22
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
23
|
+
return pulumi.runtime.invokeOutput("volcenginecc:filenas/getSnapshot:getSnapshot", {
|
|
24
|
+
"id": args.id,
|
|
25
|
+
}, opts);
|
|
26
|
+
}
|
|
27
|
+
exports.getSnapshotOutput = getSnapshotOutput;
|
|
28
|
+
//# sourceMappingURL=getSnapshot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSnapshot.js","sourceRoot":"","sources":["../../filenas/getSnapshot.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,WAAW,CAAC,IAAqB,EAAE,IAA2B;IAC1E,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;QACzE,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,kCAKC;AA6ED;;GAEG;AACH,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAAiC;IAC5F,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;QAC/E,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,8CAKC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Plural Data Source schema for Volcengine::FileNAS::Snapshot
|
|
4
|
+
*/
|
|
5
|
+
export declare function getSnapshots(opts?: pulumi.InvokeOptions): Promise<GetSnapshotsResult>;
|
|
6
|
+
/**
|
|
7
|
+
* A collection of values returned by getSnapshots.
|
|
8
|
+
*/
|
|
9
|
+
export interface GetSnapshotsResult {
|
|
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::FileNAS::Snapshot
|
|
21
|
+
*/
|
|
22
|
+
export declare function getSnapshotsOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSnapshotsResult>;
|
|
@@ -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.getSnapshotsOutput = exports.getSnapshots = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Plural Data Source schema for Volcengine::FileNAS::Snapshot
|
|
10
|
+
*/
|
|
11
|
+
function getSnapshots(opts) {
|
|
12
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
13
|
+
return pulumi.runtime.invoke("volcenginecc:filenas/getSnapshots:getSnapshots", {}, opts);
|
|
14
|
+
}
|
|
15
|
+
exports.getSnapshots = getSnapshots;
|
|
16
|
+
/**
|
|
17
|
+
* Plural Data Source schema for Volcengine::FileNAS::Snapshot
|
|
18
|
+
*/
|
|
19
|
+
function getSnapshotsOutput(opts) {
|
|
20
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
21
|
+
return pulumi.runtime.invokeOutput("volcenginecc:filenas/getSnapshots:getSnapshots", {}, opts);
|
|
22
|
+
}
|
|
23
|
+
exports.getSnapshotsOutput = getSnapshotsOutput;
|
|
24
|
+
//# sourceMappingURL=getSnapshots.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSnapshots.js","sourceRoot":"","sources":["../../filenas/getSnapshots.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,YAAY,CAAC,IAA2B;IACpD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gDAAgD,EAAE,EAC9E,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,oCAIC;AAeD;;GAEG;AACH,SAAgB,kBAAkB,CAAC,IAAiC;IAChE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,gDAAgD,EAAE,EACpF,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,gDAIC"}
|
package/filenas/index.d.ts
CHANGED
|
@@ -4,6 +4,15 @@ export declare const getInstanceOutput: typeof import("./getInstance").getInstan
|
|
|
4
4
|
export { GetInstancesResult } from "./getInstances";
|
|
5
5
|
export declare const getInstances: typeof import("./getInstances").getInstances;
|
|
6
6
|
export declare const getInstancesOutput: typeof import("./getInstances").getInstancesOutput;
|
|
7
|
+
export { GetSnapshotArgs, GetSnapshotResult, GetSnapshotOutputArgs } from "./getSnapshot";
|
|
8
|
+
export declare const getSnapshot: typeof import("./getSnapshot").getSnapshot;
|
|
9
|
+
export declare const getSnapshotOutput: typeof import("./getSnapshot").getSnapshotOutput;
|
|
10
|
+
export { GetSnapshotsResult } from "./getSnapshots";
|
|
11
|
+
export declare const getSnapshots: typeof import("./getSnapshots").getSnapshots;
|
|
12
|
+
export declare const getSnapshotsOutput: typeof import("./getSnapshots").getSnapshotsOutput;
|
|
7
13
|
export { InstanceArgs, InstanceState } from "./instance";
|
|
8
14
|
export type Instance = import("./instance").Instance;
|
|
9
15
|
export declare const Instance: typeof import("./instance").Instance;
|
|
16
|
+
export { SnapshotArgs, SnapshotState } from "./snapshot";
|
|
17
|
+
export type Snapshot = import("./snapshot").Snapshot;
|
|
18
|
+
export declare const Snapshot: typeof import("./snapshot").Snapshot;
|
package/filenas/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.Instance = exports.getInstancesOutput = exports.getInstances = exports.getInstanceOutput = exports.getInstance = void 0;
|
|
5
|
+
exports.Snapshot = exports.Instance = exports.getSnapshotsOutput = exports.getSnapshots = exports.getSnapshotOutput = exports.getSnapshot = exports.getInstancesOutput = exports.getInstances = exports.getInstanceOutput = exports.getInstance = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
exports.getInstance = null;
|
|
@@ -11,18 +11,29 @@ utilities.lazyLoad(exports, ["getInstance", "getInstanceOutput"], () => require(
|
|
|
11
11
|
exports.getInstances = null;
|
|
12
12
|
exports.getInstancesOutput = null;
|
|
13
13
|
utilities.lazyLoad(exports, ["getInstances", "getInstancesOutput"], () => require("./getInstances"));
|
|
14
|
+
exports.getSnapshot = null;
|
|
15
|
+
exports.getSnapshotOutput = null;
|
|
16
|
+
utilities.lazyLoad(exports, ["getSnapshot", "getSnapshotOutput"], () => require("./getSnapshot"));
|
|
17
|
+
exports.getSnapshots = null;
|
|
18
|
+
exports.getSnapshotsOutput = null;
|
|
19
|
+
utilities.lazyLoad(exports, ["getSnapshots", "getSnapshotsOutput"], () => require("./getSnapshots"));
|
|
14
20
|
exports.Instance = null;
|
|
15
21
|
utilities.lazyLoad(exports, ["Instance"], () => require("./instance"));
|
|
22
|
+
exports.Snapshot = null;
|
|
23
|
+
utilities.lazyLoad(exports, ["Snapshot"], () => require("./snapshot"));
|
|
16
24
|
const _module = {
|
|
17
25
|
version: utilities.getVersion(),
|
|
18
26
|
construct: (name, type, urn) => {
|
|
19
27
|
switch (type) {
|
|
20
28
|
case "volcenginecc:filenas/instance:Instance":
|
|
21
29
|
return new exports.Instance(name, undefined, { urn });
|
|
30
|
+
case "volcenginecc:filenas/snapshot:Snapshot":
|
|
31
|
+
return new exports.Snapshot(name, undefined, { urn });
|
|
22
32
|
default:
|
|
23
33
|
throw new Error(`unknown resource type ${type}`);
|
|
24
34
|
}
|
|
25
35
|
},
|
|
26
36
|
};
|
|
27
37
|
pulumi.runtime.registerResourceModule("volcenginecc", "filenas/instance", _module);
|
|
38
|
+
pulumi.runtime.registerResourceModule("volcenginecc", "filenas/snapshot", _module);
|
|
28
39
|
//# sourceMappingURL=index.js.map
|
package/filenas/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../filenas/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAI7B,QAAA,WAAW,GAA+C,IAAW,CAAC;AACtE,QAAA,iBAAiB,GAAqD,IAAW,CAAC;AAC/F,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,aAAa,EAAC,mBAAmB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC;AAGpF,QAAA,YAAY,GAAiD,IAAW,CAAC;AACzE,QAAA,kBAAkB,GAAuD,IAAW,CAAC;AAClG,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,cAAc,EAAC,oBAAoB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC;AAIvF,QAAA,QAAQ,GAAyC,IAAW,CAAC;AAC1E,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC;AAGvE,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,wCAAwC;gBACzC,OAAO,IAAI,gBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACtD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,cAAc,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../filenas/index.ts"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O,CAAC,YAAY,CAAC,CAAC,CAAC;AAGvE,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,wCAAwC;gBACzC,OAAO,IAAI,gBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACtD,KAAK,wCAAwC;gBACzC,OAAO,IAAI,gBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACtD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,cAAc,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAA;AAClF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,cAAc,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAA"}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* 快照是一种备份方式,每个快照都是文件存储在某个时间点的备份。当数据丢失或故障时,您可以通过快照恢复文件存储数据,找回丢失的数据。
|
|
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 fileNASSnapshotDemo = new volcenginecc.filenas.Snapshot("FileNASSnapshotDemo", {
|
|
12
|
+
* fileSystemId: "enas-apse1a059****",
|
|
13
|
+
* snapshotName: "FileNASSnapshotDemo",
|
|
14
|
+
* description: "FileNASSnapshotDemo description",
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* ## Import
|
|
19
|
+
*
|
|
20
|
+
* ```sh
|
|
21
|
+
* $ pulumi import volcenginecc:filenas/snapshot:Snapshot example "snapshot_id"
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export declare class Snapshot extends pulumi.CustomResource {
|
|
25
|
+
/**
|
|
26
|
+
* Get an existing Snapshot resource's state with the given name, ID, and optional extra
|
|
27
|
+
* properties used to qualify the lookup.
|
|
28
|
+
*
|
|
29
|
+
* @param name The _unique_ name of the resulting resource.
|
|
30
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
31
|
+
* @param state Any extra arguments used during the lookup.
|
|
32
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
33
|
+
*/
|
|
34
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SnapshotState, opts?: pulumi.CustomResourceOptions): Snapshot;
|
|
35
|
+
/**
|
|
36
|
+
* Returns true if the given object is an instance of Snapshot. This is designed to work even
|
|
37
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
38
|
+
*/
|
|
39
|
+
static isInstance(obj: any): obj is Snapshot;
|
|
40
|
+
/**
|
|
41
|
+
* 快照创建时间。
|
|
42
|
+
*/
|
|
43
|
+
readonly createdTime: pulumi.Output<string>;
|
|
44
|
+
/**
|
|
45
|
+
* 快照描述信息。
|
|
46
|
+
*/
|
|
47
|
+
readonly description: pulumi.Output<string>;
|
|
48
|
+
/**
|
|
49
|
+
* 文件系统 ID。
|
|
50
|
+
*/
|
|
51
|
+
readonly fileSystemId: pulumi.Output<string>;
|
|
52
|
+
/**
|
|
53
|
+
* 文件系统名称。
|
|
54
|
+
*/
|
|
55
|
+
readonly fileSystemName: pulumi.Output<string>;
|
|
56
|
+
/**
|
|
57
|
+
* 是否加密,当前仅支持false,即不加密。
|
|
58
|
+
*/
|
|
59
|
+
readonly isEncrypt: pulumi.Output<boolean>;
|
|
60
|
+
/**
|
|
61
|
+
* 快照创建进度。
|
|
62
|
+
*/
|
|
63
|
+
readonly progress: pulumi.Output<string>;
|
|
64
|
+
/**
|
|
65
|
+
* 快照保留时间,默认为2147483647,即永久保留。
|
|
66
|
+
*/
|
|
67
|
+
readonly retentionDays: pulumi.Output<number>;
|
|
68
|
+
/**
|
|
69
|
+
* 快照 ID。
|
|
70
|
+
*/
|
|
71
|
+
readonly snapshotId: pulumi.Output<string>;
|
|
72
|
+
/**
|
|
73
|
+
* 快照名称。
|
|
74
|
+
*/
|
|
75
|
+
readonly snapshotName: pulumi.Output<string>;
|
|
76
|
+
/**
|
|
77
|
+
* 快照类型,默认为Manual,即手动快照。
|
|
78
|
+
*/
|
|
79
|
+
readonly snapshotType: pulumi.Output<string>;
|
|
80
|
+
/**
|
|
81
|
+
* 文件系统容量,单位为 GiB。
|
|
82
|
+
*/
|
|
83
|
+
readonly sourceSize: pulumi.Output<number>;
|
|
84
|
+
/**
|
|
85
|
+
* 文件系统版本。
|
|
86
|
+
*/
|
|
87
|
+
readonly sourceVersion: pulumi.Output<string>;
|
|
88
|
+
/**
|
|
89
|
+
* 快照状态。说明如下:Progressing:正在创建。Accomplished:创建成功。Failed:创建失败。
|
|
90
|
+
*/
|
|
91
|
+
readonly status: pulumi.Output<string>;
|
|
92
|
+
/**
|
|
93
|
+
* 可用区 ID。
|
|
94
|
+
*/
|
|
95
|
+
readonly zoneId: pulumi.Output<string>;
|
|
96
|
+
/**
|
|
97
|
+
* Create a Snapshot resource with the given unique name, arguments, and options.
|
|
98
|
+
*
|
|
99
|
+
* @param name The _unique_ name of the resource.
|
|
100
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
101
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
102
|
+
*/
|
|
103
|
+
constructor(name: string, args: SnapshotArgs, opts?: pulumi.CustomResourceOptions);
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Input properties used for looking up and filtering Snapshot resources.
|
|
107
|
+
*/
|
|
108
|
+
export interface SnapshotState {
|
|
109
|
+
/**
|
|
110
|
+
* 快照创建时间。
|
|
111
|
+
*/
|
|
112
|
+
createdTime?: pulumi.Input<string>;
|
|
113
|
+
/**
|
|
114
|
+
* 快照描述信息。
|
|
115
|
+
*/
|
|
116
|
+
description?: pulumi.Input<string>;
|
|
117
|
+
/**
|
|
118
|
+
* 文件系统 ID。
|
|
119
|
+
*/
|
|
120
|
+
fileSystemId?: pulumi.Input<string>;
|
|
121
|
+
/**
|
|
122
|
+
* 文件系统名称。
|
|
123
|
+
*/
|
|
124
|
+
fileSystemName?: pulumi.Input<string>;
|
|
125
|
+
/**
|
|
126
|
+
* 是否加密,当前仅支持false,即不加密。
|
|
127
|
+
*/
|
|
128
|
+
isEncrypt?: pulumi.Input<boolean>;
|
|
129
|
+
/**
|
|
130
|
+
* 快照创建进度。
|
|
131
|
+
*/
|
|
132
|
+
progress?: pulumi.Input<string>;
|
|
133
|
+
/**
|
|
134
|
+
* 快照保留时间,默认为2147483647,即永久保留。
|
|
135
|
+
*/
|
|
136
|
+
retentionDays?: pulumi.Input<number>;
|
|
137
|
+
/**
|
|
138
|
+
* 快照 ID。
|
|
139
|
+
*/
|
|
140
|
+
snapshotId?: pulumi.Input<string>;
|
|
141
|
+
/**
|
|
142
|
+
* 快照名称。
|
|
143
|
+
*/
|
|
144
|
+
snapshotName?: pulumi.Input<string>;
|
|
145
|
+
/**
|
|
146
|
+
* 快照类型,默认为Manual,即手动快照。
|
|
147
|
+
*/
|
|
148
|
+
snapshotType?: pulumi.Input<string>;
|
|
149
|
+
/**
|
|
150
|
+
* 文件系统容量,单位为 GiB。
|
|
151
|
+
*/
|
|
152
|
+
sourceSize?: pulumi.Input<number>;
|
|
153
|
+
/**
|
|
154
|
+
* 文件系统版本。
|
|
155
|
+
*/
|
|
156
|
+
sourceVersion?: pulumi.Input<string>;
|
|
157
|
+
/**
|
|
158
|
+
* 快照状态。说明如下:Progressing:正在创建。Accomplished:创建成功。Failed:创建失败。
|
|
159
|
+
*/
|
|
160
|
+
status?: pulumi.Input<string>;
|
|
161
|
+
/**
|
|
162
|
+
* 可用区 ID。
|
|
163
|
+
*/
|
|
164
|
+
zoneId?: pulumi.Input<string>;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* The set of arguments for constructing a Snapshot resource.
|
|
168
|
+
*/
|
|
169
|
+
export interface SnapshotArgs {
|
|
170
|
+
/**
|
|
171
|
+
* 快照描述信息。
|
|
172
|
+
*/
|
|
173
|
+
description?: pulumi.Input<string>;
|
|
174
|
+
/**
|
|
175
|
+
* 文件系统 ID。
|
|
176
|
+
*/
|
|
177
|
+
fileSystemId: pulumi.Input<string>;
|
|
178
|
+
/**
|
|
179
|
+
* 快照名称。
|
|
180
|
+
*/
|
|
181
|
+
snapshotName: pulumi.Input<string>;
|
|
182
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
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.Snapshot = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* 快照是一种备份方式,每个快照都是文件存储在某个时间点的备份。当数据丢失或故障时,您可以通过快照恢复文件存储数据,找回丢失的数据。
|
|
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 fileNASSnapshotDemo = new volcenginecc.filenas.Snapshot("FileNASSnapshotDemo", {
|
|
18
|
+
* fileSystemId: "enas-apse1a059****",
|
|
19
|
+
* snapshotName: "FileNASSnapshotDemo",
|
|
20
|
+
* description: "FileNASSnapshotDemo description",
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* ## Import
|
|
25
|
+
*
|
|
26
|
+
* ```sh
|
|
27
|
+
* $ pulumi import volcenginecc:filenas/snapshot:Snapshot example "snapshot_id"
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
class Snapshot extends pulumi.CustomResource {
|
|
31
|
+
/**
|
|
32
|
+
* Get an existing Snapshot resource's state with the given name, ID, and optional extra
|
|
33
|
+
* properties used to qualify the lookup.
|
|
34
|
+
*
|
|
35
|
+
* @param name The _unique_ name of the resulting resource.
|
|
36
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
37
|
+
* @param state Any extra arguments used during the lookup.
|
|
38
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
39
|
+
*/
|
|
40
|
+
static get(name, id, state, opts) {
|
|
41
|
+
return new Snapshot(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Returns true if the given object is an instance of Snapshot. This is designed to work even
|
|
45
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
46
|
+
*/
|
|
47
|
+
static isInstance(obj) {
|
|
48
|
+
if (obj === undefined || obj === null) {
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
return obj['__pulumiType'] === Snapshot.__pulumiType;
|
|
52
|
+
}
|
|
53
|
+
constructor(name, argsOrState, opts) {
|
|
54
|
+
let resourceInputs = {};
|
|
55
|
+
opts = opts || {};
|
|
56
|
+
if (opts.id) {
|
|
57
|
+
const state = argsOrState;
|
|
58
|
+
resourceInputs["createdTime"] = state ? state.createdTime : undefined;
|
|
59
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
60
|
+
resourceInputs["fileSystemId"] = state ? state.fileSystemId : undefined;
|
|
61
|
+
resourceInputs["fileSystemName"] = state ? state.fileSystemName : undefined;
|
|
62
|
+
resourceInputs["isEncrypt"] = state ? state.isEncrypt : undefined;
|
|
63
|
+
resourceInputs["progress"] = state ? state.progress : undefined;
|
|
64
|
+
resourceInputs["retentionDays"] = state ? state.retentionDays : undefined;
|
|
65
|
+
resourceInputs["snapshotId"] = state ? state.snapshotId : undefined;
|
|
66
|
+
resourceInputs["snapshotName"] = state ? state.snapshotName : undefined;
|
|
67
|
+
resourceInputs["snapshotType"] = state ? state.snapshotType : undefined;
|
|
68
|
+
resourceInputs["sourceSize"] = state ? state.sourceSize : undefined;
|
|
69
|
+
resourceInputs["sourceVersion"] = state ? state.sourceVersion : undefined;
|
|
70
|
+
resourceInputs["status"] = state ? state.status : undefined;
|
|
71
|
+
resourceInputs["zoneId"] = state ? state.zoneId : undefined;
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
const args = argsOrState;
|
|
75
|
+
if ((!args || args.fileSystemId === undefined) && !opts.urn) {
|
|
76
|
+
throw new Error("Missing required property 'fileSystemId'");
|
|
77
|
+
}
|
|
78
|
+
if ((!args || args.snapshotName === undefined) && !opts.urn) {
|
|
79
|
+
throw new Error("Missing required property 'snapshotName'");
|
|
80
|
+
}
|
|
81
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
82
|
+
resourceInputs["fileSystemId"] = args ? args.fileSystemId : undefined;
|
|
83
|
+
resourceInputs["snapshotName"] = args ? args.snapshotName : undefined;
|
|
84
|
+
resourceInputs["createdTime"] = undefined /*out*/;
|
|
85
|
+
resourceInputs["fileSystemName"] = undefined /*out*/;
|
|
86
|
+
resourceInputs["isEncrypt"] = undefined /*out*/;
|
|
87
|
+
resourceInputs["progress"] = undefined /*out*/;
|
|
88
|
+
resourceInputs["retentionDays"] = undefined /*out*/;
|
|
89
|
+
resourceInputs["snapshotId"] = undefined /*out*/;
|
|
90
|
+
resourceInputs["snapshotType"] = undefined /*out*/;
|
|
91
|
+
resourceInputs["sourceSize"] = undefined /*out*/;
|
|
92
|
+
resourceInputs["sourceVersion"] = undefined /*out*/;
|
|
93
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
94
|
+
resourceInputs["zoneId"] = undefined /*out*/;
|
|
95
|
+
}
|
|
96
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
97
|
+
super(Snapshot.__pulumiType, name, resourceInputs, opts);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.Snapshot = Snapshot;
|
|
101
|
+
/** @internal */
|
|
102
|
+
Snapshot.__pulumiType = 'volcenginecc:filenas/snapshot:Snapshot';
|
|
103
|
+
//# sourceMappingURL=snapshot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snapshot.js","sourceRoot":"","sources":["../../filenas/snapshot.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;GAqBG;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;IAmED,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GA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AAG,SAAS,CAAC,OAAO,CAAC;YAC/C,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACpD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACnD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACpD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,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;;AAzIL,4BA0IC;AA5HG,gBAAgB;AACO,qBAAY,GAAG,wCAAwC,CAAC"}
|
package/iam/policy.d.ts
CHANGED
|
@@ -130,10 +130,6 @@ export interface PolicyState {
|
|
|
130
130
|
* The set of arguments for constructing a Policy resource.
|
|
131
131
|
*/
|
|
132
132
|
export interface PolicyArgs {
|
|
133
|
-
/**
|
|
134
|
-
* 系统预设策略所属的分类,通常为服务代码,对于自定义策略该字段不会返回值。
|
|
135
|
-
*/
|
|
136
|
-
category?: pulumi.Input<string>;
|
|
137
133
|
/**
|
|
138
134
|
* 策略描述,长度不超过128。
|
|
139
135
|
*/
|
package/iam/policy.js
CHANGED
|
@@ -67,7 +67,6 @@ class Policy extends pulumi.CustomResource {
|
|
|
67
67
|
if ((!args || args.policyType === undefined) && !opts.urn) {
|
|
68
68
|
throw new Error("Missing required property 'policyType'");
|
|
69
69
|
}
|
|
70
|
-
resourceInputs["category"] = args ? args.category : undefined;
|
|
71
70
|
resourceInputs["description"] = args ? args.description : undefined;
|
|
72
71
|
resourceInputs["policyDocument"] = args ? args.policyDocument : undefined;
|
|
73
72
|
resourceInputs["policyName"] = args ? args.policyName : undefined;
|
|
@@ -76,6 +75,7 @@ class Policy extends pulumi.CustomResource {
|
|
|
76
75
|
resourceInputs["policyUserGroups"] = args ? args.policyUserGroups : undefined;
|
|
77
76
|
resourceInputs["policyUsers"] = args ? args.policyUsers : undefined;
|
|
78
77
|
resourceInputs["attachmentCount"] = undefined /*out*/;
|
|
78
|
+
resourceInputs["category"] = undefined /*out*/;
|
|
79
79
|
resourceInputs["createdTime"] = undefined /*out*/;
|
|
80
80
|
resourceInputs["isServiceRolePolicy"] = undefined /*out*/;
|
|
81
81
|
resourceInputs["policyTrn"] = undefined /*out*/;
|
package/iam/policy.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"policy.js","sourceRoot":"","sources":["../../iam/policy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;GAQG;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,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,MAAM,CAAC,YAAY,CAAC;IACvD,CAAC;IAsDD,YAAY,IAAY,EAAE,WAAsC,EAAE,IAAmC;QACjG,IAAI,cA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E,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;;AA7HL,wBA8HC;AAhHG,gBAAgB;AACO,mBAAY,GAAG,gCAAgC,CAAC"}
|
package/index.d.ts
CHANGED
|
@@ -43,5 +43,6 @@ import * as vepfs from "./vepfs";
|
|
|
43
43
|
import * as vke from "./vke";
|
|
44
44
|
import * as vmp from "./vmp";
|
|
45
45
|
import * as vpc from "./vpc";
|
|
46
|
+
import * as vpn from "./vpn";
|
|
46
47
|
import * as waf from "./waf";
|
|
47
|
-
export { alb, apig, ark, autoscaling, bmq, cbr, cdn, cen, clb, cloudidentity, cloudmonitor, config, cr, directconnect, dns, ecs, escloud, filenas, fwcenter, hbase, iam, kafka, kms, mongodb, natgateway, organization, privatelink, privatezone, rabbitmq, rdsmssql, rdsmysql, redis, rocketmq, storageebs, tls, tos, transitrouter, types, vedbm, vefaas, vepfs, vke, vmp, vpc, waf, };
|
|
48
|
+
export { alb, apig, ark, autoscaling, bmq, cbr, cdn, cen, clb, cloudidentity, cloudmonitor, config, cr, directconnect, dns, ecs, escloud, filenas, fwcenter, hbase, iam, kafka, kms, mongodb, natgateway, organization, privatelink, privatezone, rabbitmq, rdsmssql, rdsmysql, redis, rocketmq, storageebs, tls, tos, transitrouter, types, vedbm, vefaas, vepfs, vke, vmp, vpc, vpn, waf, };
|