@byteplus/pulumi-bytepluscc 0.0.8 → 0.0.11
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/alb/acl.d.ts +152 -0
- package/alb/acl.js +98 -0
- package/alb/acl.js.map +1 -0
- package/alb/getAcl.d.ts +81 -0
- package/alb/getAcl.js +28 -0
- package/alb/getAcl.js.map +1 -0
- package/alb/getAcls.d.ts +22 -0
- package/alb/getAcls.js +24 -0
- package/alb/getAcls.js.map +1 -0
- package/alb/getLoadBalancer.d.ts +153 -0
- package/alb/getLoadBalancer.js +28 -0
- package/alb/getLoadBalancer.js.map +1 -0
- package/alb/getLoadBalancers.d.ts +22 -0
- package/alb/getLoadBalancers.js +24 -0
- package/alb/getLoadBalancers.js.map +1 -0
- package/alb/getServerGroup.d.ts +109 -0
- package/alb/getServerGroup.js +28 -0
- package/alb/getServerGroup.js.map +1 -0
- package/alb/getServerGroups.d.ts +22 -0
- package/alb/getServerGroups.js +24 -0
- package/alb/getServerGroups.js.map +1 -0
- package/alb/index.d.ts +27 -0
- package/alb/index.js +34 -1
- package/alb/index.js.map +1 -1
- package/alb/loadBalancer.d.ts +341 -0
- package/alb/loadBalancer.js +120 -0
- package/alb/loadBalancer.js.map +1 -0
- package/alb/serverGroup.d.ts +219 -0
- package/alb/serverGroup.js +95 -0
- package/alb/serverGroup.js.map +1 -0
- package/autoscaling/getScalingConfiguration.d.ts +4 -1
- package/autoscaling/getScalingConfiguration.js.map +1 -1
- package/autoscaling/scalingConfiguration.d.ts +3 -3
- package/cdn/getShareConfig.d.ts +1 -1
- package/cdn/shareConfig.d.ts +3 -3
- package/cdn/shareConfig.js +2 -2
- package/cdn/shareConfig.js.map +1 -1
- package/clb/acl.d.ts +166 -0
- package/clb/acl.js +107 -0
- package/clb/acl.js.map +1 -0
- package/clb/certificate.d.ts +187 -0
- package/clb/certificate.js +109 -0
- package/clb/certificate.js.map +1 -0
- package/clb/getAcl.d.ts +85 -0
- package/clb/getAcl.js +28 -0
- package/clb/getAcl.js.map +1 -0
- package/clb/getAcls.d.ts +22 -0
- package/clb/getAcls.js +24 -0
- package/clb/getAcls.js.map +1 -0
- package/clb/getCertificate.d.ts +89 -0
- package/clb/getCertificate.js +28 -0
- package/clb/getCertificate.js.map +1 -0
- package/clb/getCertificates.d.ts +22 -0
- package/clb/getCertificates.js +24 -0
- package/clb/getCertificates.js.map +1 -0
- package/clb/getListener.d.ts +5 -1
- package/clb/getListener.js.map +1 -1
- package/clb/getNlb.d.ts +141 -0
- package/clb/getNlb.js +28 -0
- package/clb/getNlb.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/index.d.ts +27 -0
- package/clb/index.js +34 -1
- package/clb/index.js.map +1 -1
- package/clb/listener.d.ts +11 -3
- package/clb/listener.js +2 -0
- package/clb/listener.js.map +1 -1
- package/clb/nlb.d.ts +297 -0
- package/clb/nlb.js +120 -0
- package/clb/nlb.js.map +1 -0
- package/cr/getNameSpace.d.ts +52 -0
- package/cr/getNameSpace.js +28 -0
- package/cr/getNameSpace.js.map +1 -0
- package/cr/getNameSpaces.d.ts +22 -0
- package/cr/getNameSpaces.js +24 -0
- package/cr/getNameSpaces.js.map +1 -0
- package/cr/getRegistries.d.ts +22 -0
- package/cr/getRegistries.js +24 -0
- package/cr/getRegistries.js.map +1 -0
- package/cr/getRegistry.d.ts +81 -0
- package/cr/getRegistry.js +28 -0
- package/cr/getRegistry.js.map +1 -0
- package/cr/index.d.ts +18 -0
- package/cr/index.js +23 -1
- package/cr/index.js.map +1 -1
- package/cr/nameSpace.d.ts +102 -0
- package/cr/nameSpace.js +83 -0
- package/cr/nameSpace.js.map +1 -0
- package/cr/registry.d.ts +159 -0
- package/cr/registry.js +98 -0
- package/cr/registry.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/getInvocation.d.ts +149 -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 +77 -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/index.d.ts +27 -0
- package/ecs/index.js +34 -1
- package/ecs/index.js.map +1 -1
- 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 +159 -0
- package/ecs/keypair.js +96 -0
- package/ecs/keypair.js.map +1 -0
- 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/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/group.d.ts +121 -0
- package/iam/group.js +77 -0
- package/iam/group.js.map +1 -0
- package/iam/index.d.ts +9 -0
- package/iam/index.js +12 -1
- package/iam/index.js.map +1 -1
- package/iam/policy.d.ts +0 -4
- package/iam/policy.js +1 -1
- package/iam/policy.js.map +1 -1
- package/index.d.ts +4 -1
- package/index.js +7 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/rdsmysql/database.d.ts +106 -0
- package/rdsmysql/database.js +74 -0
- package/rdsmysql/database.js.map +1 -0
- package/rdsmysql/getDatabase.d.ts +61 -0
- package/rdsmysql/getDatabase.js +28 -0
- package/rdsmysql/getDatabase.js.map +1 -0
- package/rdsmysql/getDatabases.d.ts +22 -0
- package/rdsmysql/getDatabases.js +24 -0
- package/rdsmysql/getDatabases.js.map +1 -0
- package/rdsmysql/index.d.ts +9 -0
- package/rdsmysql/index.js +12 -1
- package/rdsmysql/index.js.map +1 -1
- package/transitrouter/getTransitRouter.d.ts +93 -0
- package/transitrouter/getTransitRouter.js +28 -0
- package/transitrouter/getTransitRouter.js.map +1 -0
- package/transitrouter/getTransitRouterRouteEntries.d.ts +22 -0
- package/transitrouter/getTransitRouterRouteEntries.js +24 -0
- package/transitrouter/getTransitRouterRouteEntries.js.map +1 -0
- package/transitrouter/getTransitRouterRouteEntry.d.ts +84 -0
- package/transitrouter/getTransitRouterRouteEntry.js +28 -0
- package/transitrouter/getTransitRouterRouteEntry.js.map +1 -0
- package/transitrouter/getTransitRouterRouteTable.d.ts +81 -0
- package/transitrouter/getTransitRouterRouteTable.js +28 -0
- package/transitrouter/getTransitRouterRouteTable.js.map +1 -0
- package/transitrouter/getTransitRouterRouteTables.d.ts +22 -0
- package/transitrouter/getTransitRouterRouteTables.js +24 -0
- package/transitrouter/getTransitRouterRouteTables.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 +27 -0
- package/transitrouter/index.js +50 -0
- package/transitrouter/index.js.map +1 -0
- package/transitrouter/transitRouter.d.ts +182 -0
- package/transitrouter/transitRouter.js +102 -0
- package/transitrouter/transitRouter.js.map +1 -0
- package/transitrouter/transitRouterRouteEntry.d.ts +165 -0
- package/transitrouter/transitRouterRouteEntry.js +89 -0
- package/transitrouter/transitRouterRouteEntry.js.map +1 -0
- package/transitrouter/transitRouterRouteTable.d.ts +159 -0
- package/transitrouter/transitRouterRouteTable.js +98 -0
- package/transitrouter/transitRouterRouteTable.js.map +1 -0
- package/types/input.d.ts +978 -26
- package/types/output.d.ts +2407 -341
- package/vefaas/kafkaTrigger.d.ts +1 -1
- package/vefaas/kafkaTrigger.js +3 -0
- package/vefaas/kafkaTrigger.js.map +1 -1
- 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/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/getNetworkAcl.d.ts +93 -0
- package/vpc/getNetworkAcl.js +28 -0
- package/vpc/getNetworkAcl.js.map +1 -0
- package/vpc/getNetworkAcls.d.ts +22 -0
- package/vpc/getNetworkAcls.js +24 -0
- package/vpc/getNetworkAcls.js.map +1 -0
- package/vpc/getPrefixList.d.ts +93 -0
- package/vpc/getPrefixList.js +28 -0
- package/vpc/getPrefixList.js.map +1 -0
- package/vpc/getPrefixLists.d.ts +22 -0
- package/vpc/getPrefixLists.js +24 -0
- package/vpc/getPrefixLists.js.map +1 -0
- package/vpc/index.d.ts +27 -0
- package/vpc/index.js +34 -1
- package/vpc/index.js.map +1 -1
- package/vpc/networkAcl.d.ts +143 -0
- package/vpc/networkAcl.js +87 -0
- package/vpc/networkAcl.js.map +1 -0
- package/vpc/prefixList.d.ts +180 -0
- package/vpc/prefixList.js +110 -0
- package/vpc/prefixList.js.map +1 -0
- 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
|
@@ -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 bytepluscc from "@byteplus/pulumi-bytepluscc";
|
|
10
|
+
*
|
|
11
|
+
* const fileNASSnapshotDemo = new bytepluscc.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 bytepluscc: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 bytepluscc from "@byteplus/pulumi-bytepluscc";
|
|
16
|
+
*
|
|
17
|
+
* const fileNASSnapshotDemo = new bytepluscc.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 bytepluscc: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 = 'bytepluscc: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,GAAG,WAAwC,CAAC;YACvD,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC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Y,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,sCAAsC,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "../types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Data Source schema for Byteplus::IAM::Group
|
|
5
|
+
*/
|
|
6
|
+
export declare function getGroup(args: GetGroupArgs, opts?: pulumi.InvokeOptions): Promise<GetGroupResult>;
|
|
7
|
+
/**
|
|
8
|
+
* A collection of arguments for invoking getGroup.
|
|
9
|
+
*/
|
|
10
|
+
export interface GetGroupArgs {
|
|
11
|
+
/**
|
|
12
|
+
* Uniquely identifies the resource.
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A collection of values returned by getGroup.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetGroupResult {
|
|
20
|
+
/**
|
|
21
|
+
* 用户组所属主账号的ID。
|
|
22
|
+
*/
|
|
23
|
+
readonly accountId: number;
|
|
24
|
+
/**
|
|
25
|
+
* 用户组绑定的策略信息。
|
|
26
|
+
*/
|
|
27
|
+
readonly attachedPolicies: outputs.iam.GetGroupAttachedPolicy[];
|
|
28
|
+
/**
|
|
29
|
+
* 用户组的创建时间。
|
|
30
|
+
*/
|
|
31
|
+
readonly createdTime: string;
|
|
32
|
+
/**
|
|
33
|
+
* 用户组描述信息。长度不超过128。
|
|
34
|
+
*/
|
|
35
|
+
readonly description: string;
|
|
36
|
+
/**
|
|
37
|
+
* 用户组显示名称。长度不超过64。
|
|
38
|
+
*/
|
|
39
|
+
readonly displayName: string;
|
|
40
|
+
/**
|
|
41
|
+
* Uniquely identifies the resource.
|
|
42
|
+
*/
|
|
43
|
+
readonly id: string;
|
|
44
|
+
/**
|
|
45
|
+
* 用户组的更新时间。
|
|
46
|
+
*/
|
|
47
|
+
readonly updatedTime: string;
|
|
48
|
+
/**
|
|
49
|
+
* 用户组ID。
|
|
50
|
+
*/
|
|
51
|
+
readonly userGroupId: number;
|
|
52
|
+
/**
|
|
53
|
+
* 用户组名称。长度1~64,支持英文、数字和.-_符号。
|
|
54
|
+
*/
|
|
55
|
+
readonly userGroupName: string;
|
|
56
|
+
/**
|
|
57
|
+
* 用户组内绑定的用户信息。
|
|
58
|
+
*/
|
|
59
|
+
readonly users: outputs.iam.GetGroupUser[];
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Data Source schema for Byteplus::IAM::Group
|
|
63
|
+
*/
|
|
64
|
+
export declare function getGroupOutput(args: GetGroupOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetGroupResult>;
|
|
65
|
+
/**
|
|
66
|
+
* A collection of arguments for invoking getGroup.
|
|
67
|
+
*/
|
|
68
|
+
export interface GetGroupOutputArgs {
|
|
69
|
+
/**
|
|
70
|
+
* Uniquely identifies the resource.
|
|
71
|
+
*/
|
|
72
|
+
id: pulumi.Input<string>;
|
|
73
|
+
}
|
package/iam/getGroup.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.getGroupOutput = exports.getGroup = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Data Source schema for Byteplus::IAM::Group
|
|
10
|
+
*/
|
|
11
|
+
function getGroup(args, opts) {
|
|
12
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
13
|
+
return pulumi.runtime.invoke("bytepluscc:iam/getGroup:getGroup", {
|
|
14
|
+
"id": args.id,
|
|
15
|
+
}, opts);
|
|
16
|
+
}
|
|
17
|
+
exports.getGroup = getGroup;
|
|
18
|
+
/**
|
|
19
|
+
* Data Source schema for Byteplus::IAM::Group
|
|
20
|
+
*/
|
|
21
|
+
function getGroupOutput(args, opts) {
|
|
22
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
23
|
+
return pulumi.runtime.invokeOutput("bytepluscc:iam/getGroup:getGroup", {
|
|
24
|
+
"id": args.id,
|
|
25
|
+
}, opts);
|
|
26
|
+
}
|
|
27
|
+
exports.getGroupOutput = getGroupOutput;
|
|
28
|
+
//# sourceMappingURL=getGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getGroup.js","sourceRoot":"","sources":["../../iam/getGroup.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,QAAQ,CAAC,IAAkB,EAAE,IAA2B;IACpE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,kCAAkC,EAAE;QAC7D,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,4BAKC;AAyDD;;GAEG;AACH,SAAgB,cAAc,CAAC,IAAwB,EAAE,IAAiC;IACtF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,kCAAkC,EAAE;QACnE,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,wCAKC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Plural Data Source schema for Byteplus::IAM::Group
|
|
4
|
+
*/
|
|
5
|
+
export declare function getGroups(opts?: pulumi.InvokeOptions): Promise<GetGroupsResult>;
|
|
6
|
+
/**
|
|
7
|
+
* A collection of values returned by getGroups.
|
|
8
|
+
*/
|
|
9
|
+
export interface GetGroupsResult {
|
|
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 Byteplus::IAM::Group
|
|
21
|
+
*/
|
|
22
|
+
export declare function getGroupsOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetGroupsResult>;
|
package/iam/getGroups.js
ADDED
|
@@ -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.getGroupsOutput = exports.getGroups = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Plural Data Source schema for Byteplus::IAM::Group
|
|
10
|
+
*/
|
|
11
|
+
function getGroups(opts) {
|
|
12
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
13
|
+
return pulumi.runtime.invoke("bytepluscc:iam/getGroups:getGroups", {}, opts);
|
|
14
|
+
}
|
|
15
|
+
exports.getGroups = getGroups;
|
|
16
|
+
/**
|
|
17
|
+
* Plural Data Source schema for Byteplus::IAM::Group
|
|
18
|
+
*/
|
|
19
|
+
function getGroupsOutput(opts) {
|
|
20
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
21
|
+
return pulumi.runtime.invokeOutput("bytepluscc:iam/getGroups:getGroups", {}, opts);
|
|
22
|
+
}
|
|
23
|
+
exports.getGroupsOutput = getGroupsOutput;
|
|
24
|
+
//# sourceMappingURL=getGroups.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getGroups.js","sourceRoot":"","sources":["../../iam/getGroups.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,SAAS,CAAC,IAA2B;IACjD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,oCAAoC,EAAE,EAClE,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,8BAIC;AAeD;;GAEG;AACH,SAAgB,eAAe,CAAC,IAAiC;IAC7D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,oCAAoC,EAAE,EACxE,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,0CAIC"}
|
package/iam/group.d.ts
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* 用户组是用户的集合。当用户组被关联上策略后,同一用户组里的所有用户会拥有对应的策略权限,同一个用户可存在于多个用户组中,可同时拥有多个用户组的权限。
|
|
6
|
+
*
|
|
7
|
+
* ## Import
|
|
8
|
+
*
|
|
9
|
+
* ```sh
|
|
10
|
+
* $ pulumi import bytepluscc:iam/group:Group example "user_group_name"
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export declare class Group extends pulumi.CustomResource {
|
|
14
|
+
/**
|
|
15
|
+
* Get an existing Group resource's state with the given name, ID, and optional extra
|
|
16
|
+
* properties used to qualify the lookup.
|
|
17
|
+
*
|
|
18
|
+
* @param name The _unique_ name of the resulting resource.
|
|
19
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
20
|
+
* @param state Any extra arguments used during the lookup.
|
|
21
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
22
|
+
*/
|
|
23
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: GroupState, opts?: pulumi.CustomResourceOptions): Group;
|
|
24
|
+
/**
|
|
25
|
+
* Returns true if the given object is an instance of Group. This is designed to work even
|
|
26
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
27
|
+
*/
|
|
28
|
+
static isInstance(obj: any): obj is Group;
|
|
29
|
+
/**
|
|
30
|
+
* 用户组所属主账号的ID。
|
|
31
|
+
*/
|
|
32
|
+
readonly accountId: pulumi.Output<number>;
|
|
33
|
+
readonly attachedPolicies: pulumi.Output<outputs.iam.GroupAttachedPolicy[]>;
|
|
34
|
+
/**
|
|
35
|
+
* 用户组的创建时间。
|
|
36
|
+
*/
|
|
37
|
+
readonly createdTime: pulumi.Output<string>;
|
|
38
|
+
/**
|
|
39
|
+
* 用户组描述信息。长度不超过128。
|
|
40
|
+
*/
|
|
41
|
+
readonly description: pulumi.Output<string>;
|
|
42
|
+
/**
|
|
43
|
+
* 用户组显示名称。长度不超过64。
|
|
44
|
+
*/
|
|
45
|
+
readonly displayName: pulumi.Output<string>;
|
|
46
|
+
/**
|
|
47
|
+
* 用户组的更新时间。
|
|
48
|
+
*/
|
|
49
|
+
readonly updatedTime: pulumi.Output<string>;
|
|
50
|
+
/**
|
|
51
|
+
* 用户组ID。
|
|
52
|
+
*/
|
|
53
|
+
readonly userGroupId: pulumi.Output<number>;
|
|
54
|
+
/**
|
|
55
|
+
* 用户组名称。长度1~64,支持英文、数字和.-_符号。
|
|
56
|
+
*/
|
|
57
|
+
readonly userGroupName: pulumi.Output<string>;
|
|
58
|
+
readonly users: pulumi.Output<outputs.iam.GroupUser[]>;
|
|
59
|
+
/**
|
|
60
|
+
* Create a Group resource with the given unique name, arguments, and options.
|
|
61
|
+
*
|
|
62
|
+
* @param name The _unique_ name of the resource.
|
|
63
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
64
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
65
|
+
*/
|
|
66
|
+
constructor(name: string, args: GroupArgs, opts?: pulumi.CustomResourceOptions);
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Input properties used for looking up and filtering Group resources.
|
|
70
|
+
*/
|
|
71
|
+
export interface GroupState {
|
|
72
|
+
/**
|
|
73
|
+
* 用户组所属主账号的ID。
|
|
74
|
+
*/
|
|
75
|
+
accountId?: pulumi.Input<number>;
|
|
76
|
+
attachedPolicies?: pulumi.Input<pulumi.Input<inputs.iam.GroupAttachedPolicy>[]>;
|
|
77
|
+
/**
|
|
78
|
+
* 用户组的创建时间。
|
|
79
|
+
*/
|
|
80
|
+
createdTime?: pulumi.Input<string>;
|
|
81
|
+
/**
|
|
82
|
+
* 用户组描述信息。长度不超过128。
|
|
83
|
+
*/
|
|
84
|
+
description?: pulumi.Input<string>;
|
|
85
|
+
/**
|
|
86
|
+
* 用户组显示名称。长度不超过64。
|
|
87
|
+
*/
|
|
88
|
+
displayName?: pulumi.Input<string>;
|
|
89
|
+
/**
|
|
90
|
+
* 用户组的更新时间。
|
|
91
|
+
*/
|
|
92
|
+
updatedTime?: pulumi.Input<string>;
|
|
93
|
+
/**
|
|
94
|
+
* 用户组ID。
|
|
95
|
+
*/
|
|
96
|
+
userGroupId?: pulumi.Input<number>;
|
|
97
|
+
/**
|
|
98
|
+
* 用户组名称。长度1~64,支持英文、数字和.-_符号。
|
|
99
|
+
*/
|
|
100
|
+
userGroupName?: pulumi.Input<string>;
|
|
101
|
+
users?: pulumi.Input<pulumi.Input<inputs.iam.GroupUser>[]>;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* The set of arguments for constructing a Group resource.
|
|
105
|
+
*/
|
|
106
|
+
export interface GroupArgs {
|
|
107
|
+
attachedPolicies?: pulumi.Input<pulumi.Input<inputs.iam.GroupAttachedPolicy>[]>;
|
|
108
|
+
/**
|
|
109
|
+
* 用户组描述信息。长度不超过128。
|
|
110
|
+
*/
|
|
111
|
+
description?: pulumi.Input<string>;
|
|
112
|
+
/**
|
|
113
|
+
* 用户组显示名称。长度不超过64。
|
|
114
|
+
*/
|
|
115
|
+
displayName?: pulumi.Input<string>;
|
|
116
|
+
/**
|
|
117
|
+
* 用户组名称。长度1~64,支持英文、数字和.-_符号。
|
|
118
|
+
*/
|
|
119
|
+
userGroupName: pulumi.Input<string>;
|
|
120
|
+
users?: pulumi.Input<pulumi.Input<inputs.iam.GroupUser>[]>;
|
|
121
|
+
}
|
package/iam/group.js
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
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.Group = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* 用户组是用户的集合。当用户组被关联上策略后,同一用户组里的所有用户会拥有对应的策略权限,同一个用户可存在于多个用户组中,可同时拥有多个用户组的权限。
|
|
10
|
+
*
|
|
11
|
+
* ## Import
|
|
12
|
+
*
|
|
13
|
+
* ```sh
|
|
14
|
+
* $ pulumi import bytepluscc:iam/group:Group example "user_group_name"
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
class Group extends pulumi.CustomResource {
|
|
18
|
+
/**
|
|
19
|
+
* Get an existing Group resource's state with the given name, ID, and optional extra
|
|
20
|
+
* properties used to qualify the lookup.
|
|
21
|
+
*
|
|
22
|
+
* @param name The _unique_ name of the resulting resource.
|
|
23
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
24
|
+
* @param state Any extra arguments used during the lookup.
|
|
25
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
26
|
+
*/
|
|
27
|
+
static get(name, id, state, opts) {
|
|
28
|
+
return new Group(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Returns true if the given object is an instance of Group. This is designed to work even
|
|
32
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
33
|
+
*/
|
|
34
|
+
static isInstance(obj) {
|
|
35
|
+
if (obj === undefined || obj === null) {
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
return obj['__pulumiType'] === Group.__pulumiType;
|
|
39
|
+
}
|
|
40
|
+
constructor(name, argsOrState, opts) {
|
|
41
|
+
let resourceInputs = {};
|
|
42
|
+
opts = opts || {};
|
|
43
|
+
if (opts.id) {
|
|
44
|
+
const state = argsOrState;
|
|
45
|
+
resourceInputs["accountId"] = state ? state.accountId : undefined;
|
|
46
|
+
resourceInputs["attachedPolicies"] = state ? state.attachedPolicies : undefined;
|
|
47
|
+
resourceInputs["createdTime"] = state ? state.createdTime : undefined;
|
|
48
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
49
|
+
resourceInputs["displayName"] = state ? state.displayName : undefined;
|
|
50
|
+
resourceInputs["updatedTime"] = state ? state.updatedTime : undefined;
|
|
51
|
+
resourceInputs["userGroupId"] = state ? state.userGroupId : undefined;
|
|
52
|
+
resourceInputs["userGroupName"] = state ? state.userGroupName : undefined;
|
|
53
|
+
resourceInputs["users"] = state ? state.users : undefined;
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
const args = argsOrState;
|
|
57
|
+
if ((!args || args.userGroupName === undefined) && !opts.urn) {
|
|
58
|
+
throw new Error("Missing required property 'userGroupName'");
|
|
59
|
+
}
|
|
60
|
+
resourceInputs["attachedPolicies"] = args ? args.attachedPolicies : undefined;
|
|
61
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
62
|
+
resourceInputs["displayName"] = args ? args.displayName : undefined;
|
|
63
|
+
resourceInputs["userGroupName"] = args ? args.userGroupName : undefined;
|
|
64
|
+
resourceInputs["users"] = args ? args.users : undefined;
|
|
65
|
+
resourceInputs["accountId"] = undefined /*out*/;
|
|
66
|
+
resourceInputs["createdTime"] = undefined /*out*/;
|
|
67
|
+
resourceInputs["updatedTime"] = undefined /*out*/;
|
|
68
|
+
resourceInputs["userGroupId"] = undefined /*out*/;
|
|
69
|
+
}
|
|
70
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
71
|
+
super(Group.__pulumiType, name, resourceInputs, opts);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
exports.Group = Group;
|
|
75
|
+
/** @internal */
|
|
76
|
+
Group.__pulumiType = 'bytepluscc:iam/group:Group';
|
|
77
|
+
//# sourceMappingURL=group.js.map
|
package/iam/group.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group.js","sourceRoot":"","sources":["../../iam/group.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;GAQG;AACH,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;IAC5C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkB,EAAE,IAAmC;QAChH,OAAO,IAAI,KAAK,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC5D,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,KAAK,CAAC,YAAY,CAAC;IACtD,CAAC;IAyCD,YAAY,IAAY,EAAE,WAAoC,EAAE,IAAmC;QAC/F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAqC,CAAC;YACpD,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,kBAAkB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChF,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK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