@byteplus/pulumi-bytepluscc 0.0.32 → 0.0.34
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/getLoadBalancer.d.ts +8 -0
- package/alb/getLoadBalancer.js.map +1 -1
- package/alb/loadBalancer.d.ts +24 -0
- package/alb/loadBalancer.js +4 -0
- package/alb/loadBalancer.js.map +1 -1
- package/clb/checkLogProject.d.ts +62 -0
- package/clb/checkLogProject.js +67 -0
- package/clb/checkLogProject.js.map +1 -0
- package/clb/checkLogTopic.d.ts +81 -0
- package/clb/checkLogTopic.js +78 -0
- package/clb/checkLogTopic.js.map +1 -0
- package/clb/clb.d.ts +0 -8
- package/clb/clb.js +2 -2
- package/clb/clb.js.map +1 -1
- package/clb/getCheckLogProject.d.ts +40 -0
- package/clb/getCheckLogProject.js +28 -0
- package/clb/getCheckLogProject.js.map +1 -0
- package/clb/getCheckLogProjects.d.ts +22 -0
- package/clb/getCheckLogProjects.js +24 -0
- package/clb/getCheckLogProjects.js.map +1 -0
- package/clb/getCheckLogTopic.d.ts +44 -0
- package/clb/getCheckLogTopic.js +28 -0
- package/clb/getCheckLogTopic.js.map +1 -0
- package/clb/getCheckLogTopics.d.ts +22 -0
- package/clb/getCheckLogTopics.js +24 -0
- package/clb/getCheckLogTopics.js.map +1 -0
- package/clb/index.d.ts +18 -0
- package/clb/index.js +24 -1
- package/clb/index.js.map +1 -1
- package/cloudmonitor/contactGroup.d.ts +15 -15
- package/cloudmonitor/contactGroup.js +1 -1
- package/cloudmonitor/getContactGroup.d.ts +7 -7
- package/directconnect/bgpPeer.d.ts +189 -0
- package/directconnect/bgpPeer.js +104 -0
- package/directconnect/bgpPeer.js.map +1 -0
- package/directconnect/getBgpPeer.d.ts +88 -0
- package/directconnect/getBgpPeer.js +28 -0
- package/directconnect/getBgpPeer.js.map +1 -0
- package/directconnect/getBgpPeers.d.ts +22 -0
- package/directconnect/getBgpPeers.js +24 -0
- package/directconnect/getBgpPeers.js.map +1 -0
- package/directconnect/index.d.ts +9 -0
- package/directconnect/index.js +12 -1
- package/directconnect/index.js.map +1 -1
- package/dns/getRecord.d.ts +104 -0
- package/dns/getRecord.js +28 -0
- package/dns/getRecord.js.map +1 -0
- package/dns/getRecords.d.ts +22 -0
- package/dns/getRecords.js +24 -0
- package/dns/getRecords.js.map +1 -0
- package/dns/index.d.ts +9 -0
- package/dns/index.js +12 -1
- package/dns/index.js.map +1 -1
- package/dns/record.d.ts +236 -0
- package/dns/record.js +121 -0
- package/dns/record.js.map +1 -0
- package/gtm/getGtm.d.ts +100 -0
- package/gtm/getGtm.js +28 -0
- package/gtm/getGtm.js.map +1 -0
- package/gtm/getGtms.d.ts +22 -0
- package/gtm/getGtms.js +24 -0
- package/gtm/getGtms.js.map +1 -0
- package/gtm/getRouting.d.ts +48 -0
- package/gtm/getRouting.js +28 -0
- package/gtm/getRouting.js.map +1 -0
- package/gtm/getRoutings.d.ts +22 -0
- package/gtm/getRoutings.js +24 -0
- package/gtm/getRoutings.js.map +1 -0
- package/gtm/getRule.d.ts +105 -0
- package/gtm/getRule.js +28 -0
- package/gtm/getRule.js.map +1 -0
- package/gtm/getRules.d.ts +22 -0
- package/gtm/getRules.js +24 -0
- package/gtm/getRules.js.map +1 -0
- package/gtm/gtm.d.ts +228 -0
- package/gtm/gtm.js +113 -0
- package/gtm/gtm.js.map +1 -0
- package/gtm/index.d.ts +27 -0
- package/gtm/index.js +34 -1
- package/gtm/index.js.map +1 -1
- package/gtm/routing.d.ts +89 -0
- package/gtm/routing.js +74 -0
- package/gtm/routing.js.map +1 -0
- package/gtm/rule.d.ts +226 -0
- package/gtm/rule.js +99 -0
- package/gtm/rule.js.map +1 -0
- package/kafka/getUser.d.ts +34 -0
- package/kafka/getUser.js +28 -0
- package/kafka/getUser.js.map +1 -0
- package/kafka/getUsers.d.ts +22 -0
- package/kafka/getUsers.js +24 -0
- package/kafka/getUsers.js.map +1 -0
- package/kafka/index.d.ts +9 -0
- package/kafka/index.js +12 -1
- package/kafka/index.js.map +1 -1
- package/kafka/user.d.ts +155 -0
- package/kafka/user.js +97 -0
- package/kafka/user.js.map +1 -0
- package/mongodb/account.d.ts +146 -0
- package/mongodb/account.js +82 -0
- package/mongodb/account.js.map +1 -0
- package/mongodb/getAccount.d.ts +77 -0
- package/mongodb/getAccount.js +28 -0
- package/mongodb/getAccount.js.map +1 -0
- package/mongodb/getAccounts.d.ts +22 -0
- package/mongodb/getAccounts.js +24 -0
- package/mongodb/getAccounts.js.map +1 -0
- package/mongodb/index.d.ts +9 -0
- package/mongodb/index.js +12 -1
- package/mongodb/index.js.map +1 -1
- package/package.json +1 -1
- package/rdsmysql/endpointPublicAddress.d.ts +182 -0
- package/rdsmysql/endpointPublicAddress.js +104 -0
- package/rdsmysql/endpointPublicAddress.js.map +1 -0
- package/rdsmysql/getEndpointPublicAddress.d.ts +39 -0
- package/rdsmysql/getEndpointPublicAddress.js +28 -0
- package/rdsmysql/getEndpointPublicAddress.js.map +1 -0
- package/rdsmysql/getEndpointPublicAddresses.d.ts +22 -0
- package/rdsmysql/getEndpointPublicAddresses.js +24 -0
- package/rdsmysql/getEndpointPublicAddresses.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/rdspostgresql/getInstance.d.ts +8 -0
- package/rdspostgresql/getInstance.js.map +1 -1
- package/rdspostgresql/instance.d.ts +15 -0
- package/rdspostgresql/instance.js +4 -0
- package/rdspostgresql/instance.js.map +1 -1
- package/transitrouter/getRouteTablePropagation.d.ts +52 -0
- package/transitrouter/getRouteTablePropagation.js +28 -0
- package/transitrouter/getRouteTablePropagation.js.map +1 -0
- package/transitrouter/getRouteTablePropagations.d.ts +22 -0
- package/transitrouter/getRouteTablePropagations.js +24 -0
- package/transitrouter/getRouteTablePropagations.js.map +1 -0
- package/transitrouter/index.d.ts +9 -0
- package/transitrouter/index.js +12 -1
- package/transitrouter/index.js.map +1 -1
- package/transitrouter/routeTablePropagation.d.ts +97 -0
- package/transitrouter/routeTablePropagation.js +82 -0
- package/transitrouter/routeTablePropagation.js.map +1 -0
- package/types/input.d.ts +235 -5
- package/types/output.d.ts +493 -13
- package/vepfs/fileset.d.ts +202 -0
- package/vepfs/fileset.js +106 -0
- package/vepfs/fileset.js.map +1 -0
- package/vepfs/getFileset.d.ts +41 -0
- package/vepfs/getFileset.js +28 -0
- package/vepfs/getFileset.js.map +1 -0
- package/vepfs/getFilesets.d.ts +22 -0
- package/vepfs/getFilesets.js +24 -0
- package/vepfs/getFilesets.js.map +1 -0
- package/vepfs/index.d.ts +9 -0
- package/vepfs/index.js +12 -1
- package/vepfs/index.js.map +1 -1
- package/vmp/getRuleFile.d.ts +37 -0
- package/vmp/getRuleFile.js +28 -0
- package/vmp/getRuleFile.js.map +1 -0
- package/vmp/getRuleFiles.d.ts +22 -0
- package/vmp/getRuleFiles.js +24 -0
- package/vmp/getRuleFiles.js.map +1 -0
- package/vmp/index.d.ts +9 -0
- package/vmp/index.js +12 -1
- package/vmp/index.js.map +1 -1
- package/vmp/ruleFile.d.ts +172 -0
- package/vmp/ruleFile.js +104 -0
- package/vmp/ruleFile.js.map +1 -0
package/kafka/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.Topic = exports.Instance = exports.getTopicsOutput = exports.getTopics = exports.getTopicOutput = exports.getTopic = exports.getInstancesOutput = exports.getInstances = exports.getInstanceOutput = exports.getInstance = exports.getAllowListsOutput = exports.getAllowLists = exports.getAllowListOutput = exports.getAllowList = exports.AllowList = void 0;
|
|
5
|
+
exports.User = exports.Topic = exports.Instance = exports.getUsersOutput = exports.getUsers = exports.getUserOutput = exports.getUser = exports.getTopicsOutput = exports.getTopics = exports.getTopicOutput = exports.getTopic = exports.getInstancesOutput = exports.getInstances = exports.getInstanceOutput = exports.getInstance = exports.getAllowListsOutput = exports.getAllowLists = exports.getAllowListOutput = exports.getAllowList = exports.AllowList = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
exports.AllowList = null;
|
|
@@ -25,10 +25,18 @@ utilities.lazyLoad(exports, ["getTopic", "getTopicOutput"], () => require("./get
|
|
|
25
25
|
exports.getTopics = null;
|
|
26
26
|
exports.getTopicsOutput = null;
|
|
27
27
|
utilities.lazyLoad(exports, ["getTopics", "getTopicsOutput"], () => require("./getTopics"));
|
|
28
|
+
exports.getUser = null;
|
|
29
|
+
exports.getUserOutput = null;
|
|
30
|
+
utilities.lazyLoad(exports, ["getUser", "getUserOutput"], () => require("./getUser"));
|
|
31
|
+
exports.getUsers = null;
|
|
32
|
+
exports.getUsersOutput = null;
|
|
33
|
+
utilities.lazyLoad(exports, ["getUsers", "getUsersOutput"], () => require("./getUsers"));
|
|
28
34
|
exports.Instance = null;
|
|
29
35
|
utilities.lazyLoad(exports, ["Instance"], () => require("./instance"));
|
|
30
36
|
exports.Topic = null;
|
|
31
37
|
utilities.lazyLoad(exports, ["Topic"], () => require("./topic"));
|
|
38
|
+
exports.User = null;
|
|
39
|
+
utilities.lazyLoad(exports, ["User"], () => require("./user"));
|
|
32
40
|
const _module = {
|
|
33
41
|
version: utilities.getVersion(),
|
|
34
42
|
construct: (name, type, urn) => {
|
|
@@ -39,6 +47,8 @@ const _module = {
|
|
|
39
47
|
return new exports.Instance(name, undefined, { urn });
|
|
40
48
|
case "bytepluscc:kafka/topic:Topic":
|
|
41
49
|
return new exports.Topic(name, undefined, { urn });
|
|
50
|
+
case "bytepluscc:kafka/user:User":
|
|
51
|
+
return new exports.User(name, undefined, { urn });
|
|
42
52
|
default:
|
|
43
53
|
throw new Error(`unknown resource type ${type}`);
|
|
44
54
|
}
|
|
@@ -47,4 +57,5 @@ const _module = {
|
|
|
47
57
|
pulumi.runtime.registerResourceModule("bytepluscc", "kafka/allowList", _module);
|
|
48
58
|
pulumi.runtime.registerResourceModule("bytepluscc", "kafka/instance", _module);
|
|
49
59
|
pulumi.runtime.registerResourceModule("bytepluscc", "kafka/topic", _module);
|
|
60
|
+
pulumi.runtime.registerResourceModule("bytepluscc", "kafka/user", _module);
|
|
50
61
|
//# sourceMappingURL=index.js.map
|
package/kafka/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../kafka/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B,QAAA,SAAS,GAA2C,IAAW,CAAC;AAC7E,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,WAAW,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC;AAG5D,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;AAGvF,QAAA,aAAa,GAAmD,IAAW,CAAC;AAC5E,QAAA,mBAAmB,GAAyD,IAAW,CAAC;AACrG,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,eAAe,EAAC,qBAAqB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC;AAG1F,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,CAA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IAAI,YAAI,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAClD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,YAAY,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAA;AAC/E,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,YAAY,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAA;AAC9E,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,YAAY,EAAE,aAAa,EAAE,OAAO,CAAC,CAAA;AAC3E,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,YAAY,EAAE,YAAY,EAAE,OAAO,CAAC,CAAA"}
|
package/kafka/user.d.ts
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* SASL user details
|
|
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 kafkaUserDemo = new bytepluscc.kafka.User("KafkaUserDemo", {
|
|
12
|
+
* instanceId: "kafka-cnngavomxxxxxx",
|
|
13
|
+
* userName: "user1123",
|
|
14
|
+
* userPassword: "********",
|
|
15
|
+
* allAuthority: true,
|
|
16
|
+
* description: "vip",
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* ## Import
|
|
21
|
+
*
|
|
22
|
+
* ```sh
|
|
23
|
+
* $ pulumi import bytepluscc:kafka/user:User example "instance_id|user_name"
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare class User extends pulumi.CustomResource {
|
|
27
|
+
/**
|
|
28
|
+
* Get an existing User resource's state with the given name, ID, and optional extra
|
|
29
|
+
* properties used to qualify the lookup.
|
|
30
|
+
*
|
|
31
|
+
* @param name The _unique_ name of the resulting resource.
|
|
32
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
33
|
+
* @param state Any extra arguments used during the lookup.
|
|
34
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
35
|
+
*/
|
|
36
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: UserState, opts?: pulumi.CustomResourceOptions): User;
|
|
37
|
+
/**
|
|
38
|
+
* Returns true if the given object is an instance of User. This is designed to work even
|
|
39
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
40
|
+
*/
|
|
41
|
+
static isInstance(obj: any): obj is User;
|
|
42
|
+
/**
|
|
43
|
+
* Whether the user has default read and write permissions for all Topics - true: This user has read and write permissions
|
|
44
|
+
* for all Topics - false: This user does not have read and write permissions for all Topics
|
|
45
|
+
*/
|
|
46
|
+
readonly allAuthority: pulumi.Output<boolean>;
|
|
47
|
+
/**
|
|
48
|
+
* SASL user creation time
|
|
49
|
+
*/
|
|
50
|
+
readonly createTime: pulumi.Output<string>;
|
|
51
|
+
/**
|
|
52
|
+
* SASL user description
|
|
53
|
+
*/
|
|
54
|
+
readonly description: pulumi.Output<string>;
|
|
55
|
+
/**
|
|
56
|
+
* Instance ID to which the user belongs
|
|
57
|
+
*/
|
|
58
|
+
readonly instanceId: pulumi.Output<string>;
|
|
59
|
+
/**
|
|
60
|
+
* SASL user type (password type). Supported types: - Scram: SASL user of SCRAM type - Plain: SASL user of PLAIN type
|
|
61
|
+
* **Note:** If you create a PLAIN type user, it takes effect after a 1-minute delay. Please wait after creation.
|
|
62
|
+
*/
|
|
63
|
+
readonly passwordType: pulumi.Output<string>;
|
|
64
|
+
/**
|
|
65
|
+
* SASL username. Must meet the following requirements: - Consists of letters, numbers, hyphens (-), or underscores (_) -
|
|
66
|
+
* Length: 3–64 characters - Username cannot be set to admin or monitor, and must be unique within the instance
|
|
67
|
+
*/
|
|
68
|
+
readonly userName: pulumi.Output<string>;
|
|
69
|
+
/**
|
|
70
|
+
* SASL user password. Must meet the following requirements: - Length: 8–32 characters - Must include at least three of
|
|
71
|
+
* the following: uppercase letters, lowercase letters, numbers, special characters - Supported special characters:
|
|
72
|
+
* `!@#$%^&*()_+-=`
|
|
73
|
+
*/
|
|
74
|
+
readonly userPassword: pulumi.Output<string>;
|
|
75
|
+
/**
|
|
76
|
+
* Create a User resource with the given unique name, arguments, and options.
|
|
77
|
+
*
|
|
78
|
+
* @param name The _unique_ name of the resource.
|
|
79
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
80
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
81
|
+
*/
|
|
82
|
+
constructor(name: string, args: UserArgs, opts?: pulumi.CustomResourceOptions);
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Input properties used for looking up and filtering User resources.
|
|
86
|
+
*/
|
|
87
|
+
export interface UserState {
|
|
88
|
+
/**
|
|
89
|
+
* Whether the user has default read and write permissions for all Topics - true: This user has read and write permissions
|
|
90
|
+
* for all Topics - false: This user does not have read and write permissions for all Topics
|
|
91
|
+
*/
|
|
92
|
+
allAuthority?: pulumi.Input<boolean>;
|
|
93
|
+
/**
|
|
94
|
+
* SASL user creation time
|
|
95
|
+
*/
|
|
96
|
+
createTime?: pulumi.Input<string>;
|
|
97
|
+
/**
|
|
98
|
+
* SASL user description
|
|
99
|
+
*/
|
|
100
|
+
description?: pulumi.Input<string>;
|
|
101
|
+
/**
|
|
102
|
+
* Instance ID to which the user belongs
|
|
103
|
+
*/
|
|
104
|
+
instanceId?: pulumi.Input<string>;
|
|
105
|
+
/**
|
|
106
|
+
* SASL user type (password type). Supported types: - Scram: SASL user of SCRAM type - Plain: SASL user of PLAIN type
|
|
107
|
+
* **Note:** If you create a PLAIN type user, it takes effect after a 1-minute delay. Please wait after creation.
|
|
108
|
+
*/
|
|
109
|
+
passwordType?: pulumi.Input<string>;
|
|
110
|
+
/**
|
|
111
|
+
* SASL username. Must meet the following requirements: - Consists of letters, numbers, hyphens (-), or underscores (_) -
|
|
112
|
+
* Length: 3–64 characters - Username cannot be set to admin or monitor, and must be unique within the instance
|
|
113
|
+
*/
|
|
114
|
+
userName?: pulumi.Input<string>;
|
|
115
|
+
/**
|
|
116
|
+
* SASL user password. Must meet the following requirements: - Length: 8–32 characters - Must include at least three of
|
|
117
|
+
* the following: uppercase letters, lowercase letters, numbers, special characters - Supported special characters:
|
|
118
|
+
* `!@#$%^&*()_+-=`
|
|
119
|
+
*/
|
|
120
|
+
userPassword?: pulumi.Input<string>;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* The set of arguments for constructing a User resource.
|
|
124
|
+
*/
|
|
125
|
+
export interface UserArgs {
|
|
126
|
+
/**
|
|
127
|
+
* Whether the user has default read and write permissions for all Topics - true: This user has read and write permissions
|
|
128
|
+
* for all Topics - false: This user does not have read and write permissions for all Topics
|
|
129
|
+
*/
|
|
130
|
+
allAuthority: pulumi.Input<boolean>;
|
|
131
|
+
/**
|
|
132
|
+
* SASL user description
|
|
133
|
+
*/
|
|
134
|
+
description?: pulumi.Input<string>;
|
|
135
|
+
/**
|
|
136
|
+
* Instance ID to which the user belongs
|
|
137
|
+
*/
|
|
138
|
+
instanceId: pulumi.Input<string>;
|
|
139
|
+
/**
|
|
140
|
+
* SASL user type (password type). Supported types: - Scram: SASL user of SCRAM type - Plain: SASL user of PLAIN type
|
|
141
|
+
* **Note:** If you create a PLAIN type user, it takes effect after a 1-minute delay. Please wait after creation.
|
|
142
|
+
*/
|
|
143
|
+
passwordType?: pulumi.Input<string>;
|
|
144
|
+
/**
|
|
145
|
+
* SASL username. Must meet the following requirements: - Consists of letters, numbers, hyphens (-), or underscores (_) -
|
|
146
|
+
* Length: 3–64 characters - Username cannot be set to admin or monitor, and must be unique within the instance
|
|
147
|
+
*/
|
|
148
|
+
userName: pulumi.Input<string>;
|
|
149
|
+
/**
|
|
150
|
+
* SASL user password. Must meet the following requirements: - Length: 8–32 characters - Must include at least three of
|
|
151
|
+
* the following: uppercase letters, lowercase letters, numbers, special characters - Supported special characters:
|
|
152
|
+
* `!@#$%^&*()_+-=`
|
|
153
|
+
*/
|
|
154
|
+
userPassword: pulumi.Input<string>;
|
|
155
|
+
}
|
package/kafka/user.js
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
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.User = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* SASL user details
|
|
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 kafkaUserDemo = new bytepluscc.kafka.User("KafkaUserDemo", {
|
|
18
|
+
* instanceId: "kafka-cnngavomxxxxxx",
|
|
19
|
+
* userName: "user1123",
|
|
20
|
+
* userPassword: "********",
|
|
21
|
+
* allAuthority: true,
|
|
22
|
+
* description: "vip",
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* ## Import
|
|
27
|
+
*
|
|
28
|
+
* ```sh
|
|
29
|
+
* $ pulumi import bytepluscc:kafka/user:User example "instance_id|user_name"
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
class User extends pulumi.CustomResource {
|
|
33
|
+
/**
|
|
34
|
+
* Get an existing User resource's state with the given name, ID, and optional extra
|
|
35
|
+
* properties used to qualify the lookup.
|
|
36
|
+
*
|
|
37
|
+
* @param name The _unique_ name of the resulting resource.
|
|
38
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
39
|
+
* @param state Any extra arguments used during the lookup.
|
|
40
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
41
|
+
*/
|
|
42
|
+
static get(name, id, state, opts) {
|
|
43
|
+
return new User(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Returns true if the given object is an instance of User. 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) {
|
|
50
|
+
if (obj === undefined || obj === null) {
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
53
|
+
return obj['__pulumiType'] === User.__pulumiType;
|
|
54
|
+
}
|
|
55
|
+
constructor(name, argsOrState, opts) {
|
|
56
|
+
let resourceInputs = {};
|
|
57
|
+
opts = opts || {};
|
|
58
|
+
if (opts.id) {
|
|
59
|
+
const state = argsOrState;
|
|
60
|
+
resourceInputs["allAuthority"] = state ? state.allAuthority : undefined;
|
|
61
|
+
resourceInputs["createTime"] = state ? state.createTime : undefined;
|
|
62
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
63
|
+
resourceInputs["instanceId"] = state ? state.instanceId : undefined;
|
|
64
|
+
resourceInputs["passwordType"] = state ? state.passwordType : undefined;
|
|
65
|
+
resourceInputs["userName"] = state ? state.userName : undefined;
|
|
66
|
+
resourceInputs["userPassword"] = state ? state.userPassword : undefined;
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
const args = argsOrState;
|
|
70
|
+
if ((!args || args.allAuthority === undefined) && !opts.urn) {
|
|
71
|
+
throw new Error("Missing required property 'allAuthority'");
|
|
72
|
+
}
|
|
73
|
+
if ((!args || args.instanceId === undefined) && !opts.urn) {
|
|
74
|
+
throw new Error("Missing required property 'instanceId'");
|
|
75
|
+
}
|
|
76
|
+
if ((!args || args.userName === undefined) && !opts.urn) {
|
|
77
|
+
throw new Error("Missing required property 'userName'");
|
|
78
|
+
}
|
|
79
|
+
if ((!args || args.userPassword === undefined) && !opts.urn) {
|
|
80
|
+
throw new Error("Missing required property 'userPassword'");
|
|
81
|
+
}
|
|
82
|
+
resourceInputs["allAuthority"] = args ? args.allAuthority : undefined;
|
|
83
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
84
|
+
resourceInputs["instanceId"] = args ? args.instanceId : undefined;
|
|
85
|
+
resourceInputs["passwordType"] = args ? args.passwordType : undefined;
|
|
86
|
+
resourceInputs["userName"] = args ? args.userName : undefined;
|
|
87
|
+
resourceInputs["userPassword"] = args ? args.userPassword : undefined;
|
|
88
|
+
resourceInputs["createTime"] = undefined /*out*/;
|
|
89
|
+
}
|
|
90
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
91
|
+
super(User.__pulumiType, name, resourceInputs, opts);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
exports.User = User;
|
|
95
|
+
/** @internal */
|
|
96
|
+
User.__pulumiType = 'bytepluscc:kafka/user:User';
|
|
97
|
+
//# sourceMappingURL=user.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../kafka/user.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IAC3C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiB,EAAE,IAAmC;QAC/G,OAAO,IAAI,IAAI,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC3D,CAAC;IAKD;;;OAGG;IACI,MAA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C,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACpD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;;AA1GL,oBA2GC;AA7FG,gBAAgB;AACO,iBAAY,GAAG,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* MongoDB instance database account.
|
|
6
|
+
*
|
|
7
|
+
* ## Import
|
|
8
|
+
*
|
|
9
|
+
* ```sh
|
|
10
|
+
* $ pulumi import bytepluscc:mongodb/account:Account example "instance_id|account_name"
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export declare class Account extends pulumi.CustomResource {
|
|
14
|
+
/**
|
|
15
|
+
* Get an existing Account 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?: AccountState, opts?: pulumi.CustomResourceOptions): Account;
|
|
24
|
+
/**
|
|
25
|
+
* Returns true if the given object is an instance of Account. 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 Account;
|
|
29
|
+
/**
|
|
30
|
+
* Account remarks.
|
|
31
|
+
*/
|
|
32
|
+
readonly accountDesc: pulumi.Output<string>;
|
|
33
|
+
/**
|
|
34
|
+
* Account name.
|
|
35
|
+
*/
|
|
36
|
+
readonly accountName: pulumi.Output<string>;
|
|
37
|
+
/**
|
|
38
|
+
* Account password.
|
|
39
|
+
*/
|
|
40
|
+
readonly accountPassword: pulumi.Output<string>;
|
|
41
|
+
readonly accountPrivileges: pulumi.Output<outputs.mongodb.AccountAccountPrivilege[]>;
|
|
42
|
+
/**
|
|
43
|
+
* Account type. Value options: Super: Super administrator account, that is, root account; UserAdmin: High-privilege account, that is, an account with any permissions on the admin database; Normal: Regular account, that is, an account with no permissions on the admin database.
|
|
44
|
+
*/
|
|
45
|
+
readonly accountType: pulumi.Output<string>;
|
|
46
|
+
/**
|
|
47
|
+
* Database associated with the account.
|
|
48
|
+
*/
|
|
49
|
+
readonly authDb: pulumi.Output<string>;
|
|
50
|
+
/**
|
|
51
|
+
* Account creation time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC).
|
|
52
|
+
*/
|
|
53
|
+
readonly createTime: pulumi.Output<string>;
|
|
54
|
+
/**
|
|
55
|
+
* Instance ID.
|
|
56
|
+
*/
|
|
57
|
+
readonly instanceId: pulumi.Output<string>;
|
|
58
|
+
/**
|
|
59
|
+
* Last update time of the account. Format: yyyy-MM-ddTHH:mm:ssZ (UTC).
|
|
60
|
+
*/
|
|
61
|
+
readonly modifyTime: pulumi.Output<string>;
|
|
62
|
+
/**
|
|
63
|
+
* Whether to reset the root account permissions to the initial state (that is, restore all permissions that can be granted to the super administrator account). Value options: false (default): Do not reset. true: Reset. Note: This parameter only applies to the root account in the admin database (that is, AuthDB is admin and AccountName is root).
|
|
64
|
+
*/
|
|
65
|
+
readonly resetDbAccount: pulumi.Output<boolean>;
|
|
66
|
+
/**
|
|
67
|
+
* Create a Account resource with the given unique name, arguments, and options.
|
|
68
|
+
*
|
|
69
|
+
* @param name The _unique_ name of the resource.
|
|
70
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
71
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
72
|
+
*/
|
|
73
|
+
constructor(name: string, args: AccountArgs, opts?: pulumi.CustomResourceOptions);
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Input properties used for looking up and filtering Account resources.
|
|
77
|
+
*/
|
|
78
|
+
export interface AccountState {
|
|
79
|
+
/**
|
|
80
|
+
* Account remarks.
|
|
81
|
+
*/
|
|
82
|
+
accountDesc?: pulumi.Input<string>;
|
|
83
|
+
/**
|
|
84
|
+
* Account name.
|
|
85
|
+
*/
|
|
86
|
+
accountName?: pulumi.Input<string>;
|
|
87
|
+
/**
|
|
88
|
+
* Account password.
|
|
89
|
+
*/
|
|
90
|
+
accountPassword?: pulumi.Input<string>;
|
|
91
|
+
accountPrivileges?: pulumi.Input<pulumi.Input<inputs.mongodb.AccountAccountPrivilege>[]>;
|
|
92
|
+
/**
|
|
93
|
+
* Account type. Value options: Super: Super administrator account, that is, root account; UserAdmin: High-privilege account, that is, an account with any permissions on the admin database; Normal: Regular account, that is, an account with no permissions on the admin database.
|
|
94
|
+
*/
|
|
95
|
+
accountType?: pulumi.Input<string>;
|
|
96
|
+
/**
|
|
97
|
+
* Database associated with the account.
|
|
98
|
+
*/
|
|
99
|
+
authDb?: pulumi.Input<string>;
|
|
100
|
+
/**
|
|
101
|
+
* Account creation time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC).
|
|
102
|
+
*/
|
|
103
|
+
createTime?: pulumi.Input<string>;
|
|
104
|
+
/**
|
|
105
|
+
* Instance ID.
|
|
106
|
+
*/
|
|
107
|
+
instanceId?: pulumi.Input<string>;
|
|
108
|
+
/**
|
|
109
|
+
* Last update time of the account. Format: yyyy-MM-ddTHH:mm:ssZ (UTC).
|
|
110
|
+
*/
|
|
111
|
+
modifyTime?: pulumi.Input<string>;
|
|
112
|
+
/**
|
|
113
|
+
* Whether to reset the root account permissions to the initial state (that is, restore all permissions that can be granted to the super administrator account). Value options: false (default): Do not reset. true: Reset. Note: This parameter only applies to the root account in the admin database (that is, AuthDB is admin and AccountName is root).
|
|
114
|
+
*/
|
|
115
|
+
resetDbAccount?: pulumi.Input<boolean>;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* The set of arguments for constructing a Account resource.
|
|
119
|
+
*/
|
|
120
|
+
export interface AccountArgs {
|
|
121
|
+
/**
|
|
122
|
+
* Account remarks.
|
|
123
|
+
*/
|
|
124
|
+
accountDesc?: pulumi.Input<string>;
|
|
125
|
+
/**
|
|
126
|
+
* Account name.
|
|
127
|
+
*/
|
|
128
|
+
accountName: pulumi.Input<string>;
|
|
129
|
+
/**
|
|
130
|
+
* Account password.
|
|
131
|
+
*/
|
|
132
|
+
accountPassword?: pulumi.Input<string>;
|
|
133
|
+
accountPrivileges?: pulumi.Input<pulumi.Input<inputs.mongodb.AccountAccountPrivilege>[]>;
|
|
134
|
+
/**
|
|
135
|
+
* Database associated with the account.
|
|
136
|
+
*/
|
|
137
|
+
authDb?: pulumi.Input<string>;
|
|
138
|
+
/**
|
|
139
|
+
* Instance ID.
|
|
140
|
+
*/
|
|
141
|
+
instanceId: pulumi.Input<string>;
|
|
142
|
+
/**
|
|
143
|
+
* Whether to reset the root account permissions to the initial state (that is, restore all permissions that can be granted to the super administrator account). Value options: false (default): Do not reset. true: Reset. Note: This parameter only applies to the root account in the admin database (that is, AuthDB is admin and AccountName is root).
|
|
144
|
+
*/
|
|
145
|
+
resetDbAccount?: pulumi.Input<boolean>;
|
|
146
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
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.Account = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* MongoDB instance database account.
|
|
10
|
+
*
|
|
11
|
+
* ## Import
|
|
12
|
+
*
|
|
13
|
+
* ```sh
|
|
14
|
+
* $ pulumi import bytepluscc:mongodb/account:Account example "instance_id|account_name"
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
class Account extends pulumi.CustomResource {
|
|
18
|
+
/**
|
|
19
|
+
* Get an existing Account 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 Account(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Returns true if the given object is an instance of Account. 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'] === Account.__pulumiType;
|
|
39
|
+
}
|
|
40
|
+
constructor(name, argsOrState, opts) {
|
|
41
|
+
let resourceInputs = {};
|
|
42
|
+
opts = opts || {};
|
|
43
|
+
if (opts.id) {
|
|
44
|
+
const state = argsOrState;
|
|
45
|
+
resourceInputs["accountDesc"] = state ? state.accountDesc : undefined;
|
|
46
|
+
resourceInputs["accountName"] = state ? state.accountName : undefined;
|
|
47
|
+
resourceInputs["accountPassword"] = state ? state.accountPassword : undefined;
|
|
48
|
+
resourceInputs["accountPrivileges"] = state ? state.accountPrivileges : undefined;
|
|
49
|
+
resourceInputs["accountType"] = state ? state.accountType : undefined;
|
|
50
|
+
resourceInputs["authDb"] = state ? state.authDb : undefined;
|
|
51
|
+
resourceInputs["createTime"] = state ? state.createTime : undefined;
|
|
52
|
+
resourceInputs["instanceId"] = state ? state.instanceId : undefined;
|
|
53
|
+
resourceInputs["modifyTime"] = state ? state.modifyTime : undefined;
|
|
54
|
+
resourceInputs["resetDbAccount"] = state ? state.resetDbAccount : undefined;
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
const args = argsOrState;
|
|
58
|
+
if ((!args || args.accountName === undefined) && !opts.urn) {
|
|
59
|
+
throw new Error("Missing required property 'accountName'");
|
|
60
|
+
}
|
|
61
|
+
if ((!args || args.instanceId === undefined) && !opts.urn) {
|
|
62
|
+
throw new Error("Missing required property 'instanceId'");
|
|
63
|
+
}
|
|
64
|
+
resourceInputs["accountDesc"] = args ? args.accountDesc : undefined;
|
|
65
|
+
resourceInputs["accountName"] = args ? args.accountName : undefined;
|
|
66
|
+
resourceInputs["accountPassword"] = args ? args.accountPassword : undefined;
|
|
67
|
+
resourceInputs["accountPrivileges"] = args ? args.accountPrivileges : undefined;
|
|
68
|
+
resourceInputs["authDb"] = args ? args.authDb : undefined;
|
|
69
|
+
resourceInputs["instanceId"] = args ? args.instanceId : undefined;
|
|
70
|
+
resourceInputs["resetDbAccount"] = args ? args.resetDbAccount : undefined;
|
|
71
|
+
resourceInputs["accountType"] = undefined /*out*/;
|
|
72
|
+
resourceInputs["createTime"] = undefined /*out*/;
|
|
73
|
+
resourceInputs["modifyTime"] = undefined /*out*/;
|
|
74
|
+
}
|
|
75
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
76
|
+
super(Account.__pulumiType, name, resourceInputs, opts);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.Account = Account;
|
|
80
|
+
/** @internal */
|
|
81
|
+
Account.__pulumiType = 'bytepluscc:mongodb/account:Account';
|
|
82
|
+
//# source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DB::Account
|
|
5
|
+
*/
|
|
6
|
+
export declare function getAccount(args: GetAccountArgs, opts?: pulumi.InvokeOptions): Promise<GetAccountResult>;
|
|
7
|
+
/**
|
|
8
|
+
* A collection of arguments for invoking getAccount.
|
|
9
|
+
*/
|
|
10
|
+
export interface GetAccountArgs {
|
|
11
|
+
/**
|
|
12
|
+
* Uniquely identifies the resource.
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A collection of values returned by getAccount.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetAccountResult {
|
|
20
|
+
/**
|
|
21
|
+
* Account remarks.
|
|
22
|
+
*/
|
|
23
|
+
readonly accountDesc: string;
|
|
24
|
+
/**
|
|
25
|
+
* Account name.
|
|
26
|
+
*/
|
|
27
|
+
readonly accountName: string;
|
|
28
|
+
/**
|
|
29
|
+
* Account password.
|
|
30
|
+
*/
|
|
31
|
+
readonly accountPassword: string;
|
|
32
|
+
/**
|
|
33
|
+
* List of database permissions currently owned by the account.
|
|
34
|
+
*/
|
|
35
|
+
readonly accountPrivileges: outputs.mongodb.GetAccountAccountPrivilege[];
|
|
36
|
+
/**
|
|
37
|
+
* Account type. Value options: Super: Super administrator account, that is, root account; UserAdmin: High-privilege account, that is, an account with any permissions on the admin database; Normal: Regular account, that is, an account with no permissions on the admin database.
|
|
38
|
+
*/
|
|
39
|
+
readonly accountType: string;
|
|
40
|
+
/**
|
|
41
|
+
* Database associated with the account.
|
|
42
|
+
*/
|
|
43
|
+
readonly authDb: string;
|
|
44
|
+
/**
|
|
45
|
+
* Account creation time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC).
|
|
46
|
+
*/
|
|
47
|
+
readonly createTime: string;
|
|
48
|
+
/**
|
|
49
|
+
* Uniquely identifies the resource.
|
|
50
|
+
*/
|
|
51
|
+
readonly id: string;
|
|
52
|
+
/**
|
|
53
|
+
* Instance ID.
|
|
54
|
+
*/
|
|
55
|
+
readonly instanceId: string;
|
|
56
|
+
/**
|
|
57
|
+
* Last update time of the account. Format: yyyy-MM-ddTHH:mm:ssZ (UTC).
|
|
58
|
+
*/
|
|
59
|
+
readonly modifyTime: string;
|
|
60
|
+
/**
|
|
61
|
+
* Whether to reset the root account permissions to the initial state (that is, restore all permissions that can be granted to the super administrator account). Value options: false (default): Do not reset. true: Reset. Note: This parameter only applies to the root account in the admin database (that is, AuthDB is admin and AccountName is root).
|
|
62
|
+
*/
|
|
63
|
+
readonly resetDbAccount: boolean;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Data Source schema for Byteplus::MongoDB::Account
|
|
67
|
+
*/
|
|
68
|
+
export declare function getAccountOutput(args: GetAccountOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAccountResult>;
|
|
69
|
+
/**
|
|
70
|
+
* A collection of arguments for invoking getAccount.
|
|
71
|
+
*/
|
|
72
|
+
export interface GetAccountOutputArgs {
|
|
73
|
+
/**
|
|
74
|
+
* Uniquely identifies the resource.
|
|
75
|
+
*/
|
|
76
|
+
id: pulumi.Input<string>;
|
|
77
|
+
}
|
|
@@ -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.getAccountOutput = exports.getAccount = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Data Source schema for Byteplus::MongoDB::Account
|
|
10
|
+
*/
|
|
11
|
+
function getAccount(args, opts) {
|
|
12
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
13
|
+
return pulumi.runtime.invoke("bytepluscc:mongodb/getAccount:getAccount", {
|
|
14
|
+
"id": args.id,
|
|
15
|
+
}, opts);
|
|
16
|
+
}
|
|
17
|
+
exports.getAccount = getAccount;
|
|
18
|
+
/**
|
|
19
|
+
* Data Source schema for Byteplus::MongoDB::Account
|
|
20
|
+
*/
|
|
21
|
+
function getAccountOutput(args, opts) {
|
|
22
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
23
|
+
return pulumi.runtime.invokeOutput("bytepluscc:mongodb/getAccount:getAccount", {
|
|
24
|
+
"id": args.id,
|
|
25
|
+
}, opts);
|
|
26
|
+
}
|
|
27
|
+
exports.getAccountOutput = getAccountOutput;
|
|
28
|
+
//# sourceMappingURL=getAccount.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAccount.js","sourceRoot":"","sources":["../../mongodb/getAccount.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;IACxE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0CAA0C,EAAE;QACrE,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,gCAKC;AA6DD;;GAEG;AACH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAAiC;IAC1F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,0CAA0C,EAAE;QAC3E,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,4CAKC"}
|