@volcengine/pulumi 0.0.25 → 0.0.26

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.
Files changed (88) hide show
  1. package/ebs/volume.d.ts +3 -3
  2. package/ecs/instances.d.ts +12 -0
  3. package/ecs/instances.js +1 -0
  4. package/ecs/instances.js.map +1 -1
  5. package/ecs/launchTemplate.d.ts +1 -1
  6. package/index.d.ts +3 -1
  7. package/index.js +5 -1
  8. package/index.js.map +1 -1
  9. package/package.json +2 -2
  10. package/private_zone/index.d.ts +33 -0
  11. package/private_zone/index.js +62 -0
  12. package/private_zone/index.js.map +1 -0
  13. package/private_zone/privateZone.d.ts +144 -0
  14. package/private_zone/privateZone.js +99 -0
  15. package/private_zone/privateZone.js.map +1 -0
  16. package/private_zone/privateZones.d.ts +133 -0
  17. package/private_zone/privateZones.js +34 -0
  18. package/private_zone/privateZones.js.map +1 -0
  19. package/private_zone/record.d.ts +143 -0
  20. package/private_zone/record.js +86 -0
  21. package/private_zone/record.js.map +1 -0
  22. package/private_zone/recordSets.d.ts +88 -0
  23. package/private_zone/recordSets.js +29 -0
  24. package/private_zone/recordSets.js.map +1 -0
  25. package/private_zone/recordWeightEnabler.d.ts +83 -0
  26. package/private_zone/recordWeightEnabler.js +73 -0
  27. package/private_zone/recordWeightEnabler.js.map +1 -0
  28. package/private_zone/records.d.ts +148 -0
  29. package/private_zone/records.js +35 -0
  30. package/private_zone/records.js.map +1 -0
  31. package/private_zone/resolverEndpoint.d.ts +155 -0
  32. package/private_zone/resolverEndpoint.js +116 -0
  33. package/private_zone/resolverEndpoint.js.map +1 -0
  34. package/private_zone/resolverEndpoints.d.ts +119 -0
  35. package/private_zone/resolverEndpoints.js +47 -0
  36. package/private_zone/resolverEndpoints.js.map +1 -0
  37. package/private_zone/resolverRule.d.ts +153 -0
  38. package/private_zone/resolverRule.js +98 -0
  39. package/private_zone/resolverRule.js.map +1 -0
  40. package/private_zone/resolverRules.d.ts +107 -0
  41. package/private_zone/resolverRules.js +46 -0
  42. package/private_zone/resolverRules.js.map +1 -0
  43. package/private_zone/userVpcAuthorization.d.ts +67 -0
  44. package/private_zone/userVpcAuthorization.js +71 -0
  45. package/private_zone/userVpcAuthorization.js.map +1 -0
  46. package/rds_postgresql/allowlist.d.ts +129 -0
  47. package/rds_postgresql/allowlist.js +92 -0
  48. package/rds_postgresql/allowlist.js.map +1 -0
  49. package/rds_postgresql/allowlistAssociate.d.ts +130 -0
  50. package/rds_postgresql/allowlistAssociate.js +127 -0
  51. package/rds_postgresql/allowlistAssociate.js.map +1 -0
  52. package/rds_postgresql/allowlists.d.ts +83 -0
  53. package/rds_postgresql/allowlists.js +44 -0
  54. package/rds_postgresql/allowlists.js.map +1 -0
  55. package/rds_postgresql/index.d.ts +9 -0
  56. package/rds_postgresql/index.js +14 -1
  57. package/rds_postgresql/index.js.map +1 -1
  58. package/types/input.d.ts +106 -0
  59. package/types/output.d.ts +699 -1
  60. package/vepfs/fileSystem.d.ts +311 -0
  61. package/vepfs/fileSystem.js +150 -0
  62. package/vepfs/fileSystem.js.map +1 -0
  63. package/vepfs/fileSystems.d.ts +192 -0
  64. package/vepfs/fileSystems.js +101 -0
  65. package/vepfs/fileSystems.js.map +1 -0
  66. package/vepfs/fileset.d.ts +210 -0
  67. package/vepfs/fileset.js +130 -0
  68. package/vepfs/fileset.js.map +1 -0
  69. package/vepfs/filesets.d.ts +200 -0
  70. package/vepfs/filesets.js +119 -0
  71. package/vepfs/filesets.js.map +1 -0
  72. package/vepfs/index.d.ts +21 -0
  73. package/vepfs/index.js +46 -0
  74. package/vepfs/index.js.map +1 -0
  75. package/vepfs/mountService.d.ts +192 -0
  76. package/vepfs/mountService.js +116 -0
  77. package/vepfs/mountService.js.map +1 -0
  78. package/vepfs/mountServiceAttachment.d.ts +131 -0
  79. package/vepfs/mountServiceAttachment.js +112 -0
  80. package/vepfs/mountServiceAttachment.js.map +1 -0
  81. package/vepfs/mountServices.d.ts +157 -0
  82. package/vepfs/mountServices.js +85 -0
  83. package/vepfs/mountServices.js.map +1 -0
  84. package/vke/cluster.d.ts +3 -3
  85. package/vke/node.d.ts +18 -18
  86. package/vke/nodePool.d.ts +109 -0
  87. package/vke/nodePool.js +80 -0
  88. package/vke/nodePool.js.map +1 -1
@@ -0,0 +1,129 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "../types/input";
3
+ import * as outputs from "../types/output";
4
+ /**
5
+ * Provides a resource to manage rds postgresql allowlist
6
+ * ## Example Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as volcengine from "@volcengine/pulumi";
11
+ *
12
+ * const foo = new volcengine.rds_postgresql.Allowlist("foo", {
13
+ * allowLists: [
14
+ * "192.168.0.0/24",
15
+ * "192.168.1.0/24",
16
+ * ],
17
+ * allowListDesc: "acc-test",
18
+ * allowListName: "acc-test-allowlist",
19
+ * allowListType: "IPv4",
20
+ * });
21
+ * ```
22
+ *
23
+ * ## Import
24
+ *
25
+ * RdsPostgresqlAllowlist can be imported using the id, e.g.
26
+ *
27
+ * ```sh
28
+ * $ pulumi import volcengine:rds_postgresql/allowlist:Allowlist default resource_id
29
+ * ```
30
+ */
31
+ export declare class Allowlist extends pulumi.CustomResource {
32
+ /**
33
+ * Get an existing Allowlist resource's state with the given name, ID, and optional extra
34
+ * properties used to qualify the lookup.
35
+ *
36
+ * @param name The _unique_ name of the resulting resource.
37
+ * @param id The _unique_ provider ID of the resource to lookup.
38
+ * @param state Any extra arguments used during the lookup.
39
+ * @param opts Optional settings to control the behavior of the CustomResource.
40
+ */
41
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AllowlistState, opts?: pulumi.CustomResourceOptions): Allowlist;
42
+ /**
43
+ * Returns true if the given object is an instance of Allowlist. This is designed to work even
44
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
45
+ */
46
+ static isInstance(obj: any): obj is Allowlist;
47
+ /**
48
+ * The description of the postgresql allow list.
49
+ */
50
+ readonly allowListDesc: pulumi.Output<string | undefined>;
51
+ /**
52
+ * The name of the postgresql allow list.
53
+ */
54
+ readonly allowListName: pulumi.Output<string>;
55
+ /**
56
+ * The type of IP address in the whitelist. Currently only `IPv4` addresses are supported.
57
+ */
58
+ readonly allowListType: pulumi.Output<string>;
59
+ /**
60
+ * Enter an IP address or a range of IP addresses in CIDR format.
61
+ */
62
+ readonly allowLists: pulumi.Output<string[]>;
63
+ /**
64
+ * The total number of instances bound under the whitelist.
65
+ */
66
+ readonly associatedInstanceNum: pulumi.Output<number>;
67
+ /**
68
+ * The list of postgresql instances.
69
+ */
70
+ readonly associatedInstances: pulumi.Output<outputs.rds_postgresql.AllowlistAssociatedInstance[]>;
71
+ /**
72
+ * Create a Allowlist resource with the given unique name, arguments, and options.
73
+ *
74
+ * @param name The _unique_ name of the resource.
75
+ * @param args The arguments to use to populate this resource's properties.
76
+ * @param opts A bag of options that control this resource's behavior.
77
+ */
78
+ constructor(name: string, args: AllowlistArgs, opts?: pulumi.CustomResourceOptions);
79
+ }
80
+ /**
81
+ * Input properties used for looking up and filtering Allowlist resources.
82
+ */
83
+ export interface AllowlistState {
84
+ /**
85
+ * The description of the postgresql allow list.
86
+ */
87
+ allowListDesc?: pulumi.Input<string>;
88
+ /**
89
+ * The name of the postgresql allow list.
90
+ */
91
+ allowListName?: pulumi.Input<string>;
92
+ /**
93
+ * The type of IP address in the whitelist. Currently only `IPv4` addresses are supported.
94
+ */
95
+ allowListType?: pulumi.Input<string>;
96
+ /**
97
+ * Enter an IP address or a range of IP addresses in CIDR format.
98
+ */
99
+ allowLists?: pulumi.Input<pulumi.Input<string>[]>;
100
+ /**
101
+ * The total number of instances bound under the whitelist.
102
+ */
103
+ associatedInstanceNum?: pulumi.Input<number>;
104
+ /**
105
+ * The list of postgresql instances.
106
+ */
107
+ associatedInstances?: pulumi.Input<pulumi.Input<inputs.rds_postgresql.AllowlistAssociatedInstance>[]>;
108
+ }
109
+ /**
110
+ * The set of arguments for constructing a Allowlist resource.
111
+ */
112
+ export interface AllowlistArgs {
113
+ /**
114
+ * The description of the postgresql allow list.
115
+ */
116
+ allowListDesc?: pulumi.Input<string>;
117
+ /**
118
+ * The name of the postgresql allow list.
119
+ */
120
+ allowListName: pulumi.Input<string>;
121
+ /**
122
+ * The type of IP address in the whitelist. Currently only `IPv4` addresses are supported.
123
+ */
124
+ allowListType?: pulumi.Input<string>;
125
+ /**
126
+ * Enter an IP address or a range of IP addresses in CIDR format.
127
+ */
128
+ allowLists: pulumi.Input<pulumi.Input<string>[]>;
129
+ }
@@ -0,0 +1,92 @@
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.Allowlist = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Provides a resource to manage rds postgresql allowlist
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as volcengine from "@volcengine/pulumi";
15
+ *
16
+ * const foo = new volcengine.rds_postgresql.Allowlist("foo", {
17
+ * allowLists: [
18
+ * "192.168.0.0/24",
19
+ * "192.168.1.0/24",
20
+ * ],
21
+ * allowListDesc: "acc-test",
22
+ * allowListName: "acc-test-allowlist",
23
+ * allowListType: "IPv4",
24
+ * });
25
+ * ```
26
+ *
27
+ * ## Import
28
+ *
29
+ * RdsPostgresqlAllowlist can be imported using the id, e.g.
30
+ *
31
+ * ```sh
32
+ * $ pulumi import volcengine:rds_postgresql/allowlist:Allowlist default resource_id
33
+ * ```
34
+ */
35
+ class Allowlist extends pulumi.CustomResource {
36
+ /**
37
+ * Get an existing Allowlist resource's state with the given name, ID, and optional extra
38
+ * properties used to qualify the lookup.
39
+ *
40
+ * @param name The _unique_ name of the resulting resource.
41
+ * @param id The _unique_ provider ID of the resource to lookup.
42
+ * @param state Any extra arguments used during the lookup.
43
+ * @param opts Optional settings to control the behavior of the CustomResource.
44
+ */
45
+ static get(name, id, state, opts) {
46
+ return new Allowlist(name, state, Object.assign(Object.assign({}, opts), { id: id }));
47
+ }
48
+ /**
49
+ * Returns true if the given object is an instance of Allowlist. This is designed to work even
50
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
51
+ */
52
+ static isInstance(obj) {
53
+ if (obj === undefined || obj === null) {
54
+ return false;
55
+ }
56
+ return obj['__pulumiType'] === Allowlist.__pulumiType;
57
+ }
58
+ constructor(name, argsOrState, opts) {
59
+ let resourceInputs = {};
60
+ opts = opts || {};
61
+ if (opts.id) {
62
+ const state = argsOrState;
63
+ resourceInputs["allowListDesc"] = state ? state.allowListDesc : undefined;
64
+ resourceInputs["allowListName"] = state ? state.allowListName : undefined;
65
+ resourceInputs["allowListType"] = state ? state.allowListType : undefined;
66
+ resourceInputs["allowLists"] = state ? state.allowLists : undefined;
67
+ resourceInputs["associatedInstanceNum"] = state ? state.associatedInstanceNum : undefined;
68
+ resourceInputs["associatedInstances"] = state ? state.associatedInstances : undefined;
69
+ }
70
+ else {
71
+ const args = argsOrState;
72
+ if ((!args || args.allowListName === undefined) && !opts.urn) {
73
+ throw new Error("Missing required property 'allowListName'");
74
+ }
75
+ if ((!args || args.allowLists === undefined) && !opts.urn) {
76
+ throw new Error("Missing required property 'allowLists'");
77
+ }
78
+ resourceInputs["allowListDesc"] = args ? args.allowListDesc : undefined;
79
+ resourceInputs["allowListName"] = args ? args.allowListName : undefined;
80
+ resourceInputs["allowListType"] = args ? args.allowListType : undefined;
81
+ resourceInputs["allowLists"] = args ? args.allowLists : undefined;
82
+ resourceInputs["associatedInstanceNum"] = undefined /*out*/;
83
+ resourceInputs["associatedInstances"] = undefined /*out*/;
84
+ }
85
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
86
+ super(Allowlist.__pulumiType, name, resourceInputs, opts);
87
+ }
88
+ }
89
+ exports.Allowlist = Allowlist;
90
+ /** @internal */
91
+ Allowlist.__pulumiType = 'volcengine:rds_postgresql/allowlist:Allowlist';
92
+ //# sourceMappingURL=allowlist.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"allowlist.js","sourceRoot":"","sources":["../../rds_postgresql/allowlist.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAChE,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,SAAS,CAAC,YAAY,CAAC;IAC1D,CAAC;IAmCD,YAAY,IAAY,EAAE,WAA4C,EAAE,IAAmC;QACvG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAyC,CAAC;YACxD,cAAc,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,uBAAuB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1F,cAAc,CAAC,qBAAqB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,CAAC;SACzF;aAAM;YACH,MAAM,IAAI,GAAG,WAAwC,CAAC;YACtD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,aAAa,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC1D,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;aAChE;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvD,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,uBAAuB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC5D,cAAc,CAAC,qBAAqB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC7D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;;AAzFL,8BA0FC;AA5EG,gBAAgB;AACO,sBAAY,GAAG,+CAA+C,CAAC"}
@@ -0,0 +1,130 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Provides a resource to manage rds postgresql allowlist associate
4
+ * ## Example Usage
5
+ *
6
+ * ```typescript
7
+ * import * as pulumi from "@pulumi/pulumi";
8
+ * import * as volcengine from "@pulumi/volcengine";
9
+ * import * as volcengine from "@volcengine/pulumi";
10
+ *
11
+ * const fooZones = volcengine.ecs.Zones({});
12
+ * const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
13
+ * vpcName: "acc-test-vpc",
14
+ * cidrBlock: "172.16.0.0/16",
15
+ * });
16
+ * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
17
+ * subnetName: "acc-test-subnet",
18
+ * cidrBlock: "172.16.0.0/24",
19
+ * zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
20
+ * vpcId: fooVpc.id,
21
+ * });
22
+ * const fooInstance = new volcengine.rds_postgresql.Instance("fooInstance", {
23
+ * dbEngineVersion: "PostgreSQL_12",
24
+ * nodeSpec: "rds.postgres.1c2g",
25
+ * primaryZoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
26
+ * secondaryZoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
27
+ * storageSpace: 40,
28
+ * subnetId: fooSubnet.id,
29
+ * instanceName: "acc-test-postgresql",
30
+ * chargeInfo: {
31
+ * chargeType: "PostPaid",
32
+ * },
33
+ * projectName: "default",
34
+ * tags: [{
35
+ * key: "tfk1",
36
+ * value: "tfv1",
37
+ * }],
38
+ * parameters: [
39
+ * {
40
+ * name: "auto_explain.log_analyze",
41
+ * value: "off",
42
+ * },
43
+ * {
44
+ * name: "auto_explain.log_format",
45
+ * value: "text",
46
+ * },
47
+ * ],
48
+ * });
49
+ * const fooAllowlist = new volcengine.rds_postgresql.Allowlist("fooAllowlist", {
50
+ * allowListName: "acc-test-allowlist",
51
+ * allowListDesc: "acc-test",
52
+ * allowListType: "IPv4",
53
+ * allowLists: [
54
+ * "192.168.0.0/24",
55
+ * "192.168.1.0/24",
56
+ * ],
57
+ * });
58
+ * const fooAllowlistAssociate = new volcengine.rds_postgresql.AllowlistAssociate("fooAllowlistAssociate", {
59
+ * instanceId: fooInstance.id,
60
+ * allowListId: fooAllowlist.id,
61
+ * });
62
+ * ```
63
+ *
64
+ * ## Import
65
+ *
66
+ * RdsPostgresqlAllowlistAssociate can be imported using the instance_id:allow_list_id, e.g.
67
+ *
68
+ * ```sh
69
+ * $ pulumi import volcengine:rds_postgresql/allowlistAssociate:AllowlistAssociate default resource_id
70
+ * ```
71
+ */
72
+ export declare class AllowlistAssociate extends pulumi.CustomResource {
73
+ /**
74
+ * Get an existing AllowlistAssociate resource's state with the given name, ID, and optional extra
75
+ * properties used to qualify the lookup.
76
+ *
77
+ * @param name The _unique_ name of the resulting resource.
78
+ * @param id The _unique_ provider ID of the resource to lookup.
79
+ * @param state Any extra arguments used during the lookup.
80
+ * @param opts Optional settings to control the behavior of the CustomResource.
81
+ */
82
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AllowlistAssociateState, opts?: pulumi.CustomResourceOptions): AllowlistAssociate;
83
+ /**
84
+ * Returns true if the given object is an instance of AllowlistAssociate. This is designed to work even
85
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
86
+ */
87
+ static isInstance(obj: any): obj is AllowlistAssociate;
88
+ /**
89
+ * The id of the postgresql allow list.
90
+ */
91
+ readonly allowListId: pulumi.Output<string>;
92
+ /**
93
+ * The id of the postgresql instance.
94
+ */
95
+ readonly instanceId: pulumi.Output<string>;
96
+ /**
97
+ * Create a AllowlistAssociate 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: AllowlistAssociateArgs, opts?: pulumi.CustomResourceOptions);
104
+ }
105
+ /**
106
+ * Input properties used for looking up and filtering AllowlistAssociate resources.
107
+ */
108
+ export interface AllowlistAssociateState {
109
+ /**
110
+ * The id of the postgresql allow list.
111
+ */
112
+ allowListId?: pulumi.Input<string>;
113
+ /**
114
+ * The id of the postgresql instance.
115
+ */
116
+ instanceId?: pulumi.Input<string>;
117
+ }
118
+ /**
119
+ * The set of arguments for constructing a AllowlistAssociate resource.
120
+ */
121
+ export interface AllowlistAssociateArgs {
122
+ /**
123
+ * The id of the postgresql allow list.
124
+ */
125
+ allowListId: pulumi.Input<string>;
126
+ /**
127
+ * The id of the postgresql instance.
128
+ */
129
+ instanceId: pulumi.Input<string>;
130
+ }
@@ -0,0 +1,127 @@
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.AllowlistAssociate = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Provides a resource to manage rds postgresql allowlist associate
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as volcengine from "@pulumi/volcengine";
15
+ * import * as volcengine from "@volcengine/pulumi";
16
+ *
17
+ * const fooZones = volcengine.ecs.Zones({});
18
+ * const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
19
+ * vpcName: "acc-test-vpc",
20
+ * cidrBlock: "172.16.0.0/16",
21
+ * });
22
+ * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
23
+ * subnetName: "acc-test-subnet",
24
+ * cidrBlock: "172.16.0.0/24",
25
+ * zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
26
+ * vpcId: fooVpc.id,
27
+ * });
28
+ * const fooInstance = new volcengine.rds_postgresql.Instance("fooInstance", {
29
+ * dbEngineVersion: "PostgreSQL_12",
30
+ * nodeSpec: "rds.postgres.1c2g",
31
+ * primaryZoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
32
+ * secondaryZoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
33
+ * storageSpace: 40,
34
+ * subnetId: fooSubnet.id,
35
+ * instanceName: "acc-test-postgresql",
36
+ * chargeInfo: {
37
+ * chargeType: "PostPaid",
38
+ * },
39
+ * projectName: "default",
40
+ * tags: [{
41
+ * key: "tfk1",
42
+ * value: "tfv1",
43
+ * }],
44
+ * parameters: [
45
+ * {
46
+ * name: "auto_explain.log_analyze",
47
+ * value: "off",
48
+ * },
49
+ * {
50
+ * name: "auto_explain.log_format",
51
+ * value: "text",
52
+ * },
53
+ * ],
54
+ * });
55
+ * const fooAllowlist = new volcengine.rds_postgresql.Allowlist("fooAllowlist", {
56
+ * allowListName: "acc-test-allowlist",
57
+ * allowListDesc: "acc-test",
58
+ * allowListType: "IPv4",
59
+ * allowLists: [
60
+ * "192.168.0.0/24",
61
+ * "192.168.1.0/24",
62
+ * ],
63
+ * });
64
+ * const fooAllowlistAssociate = new volcengine.rds_postgresql.AllowlistAssociate("fooAllowlistAssociate", {
65
+ * instanceId: fooInstance.id,
66
+ * allowListId: fooAllowlist.id,
67
+ * });
68
+ * ```
69
+ *
70
+ * ## Import
71
+ *
72
+ * RdsPostgresqlAllowlistAssociate can be imported using the instance_id:allow_list_id, e.g.
73
+ *
74
+ * ```sh
75
+ * $ pulumi import volcengine:rds_postgresql/allowlistAssociate:AllowlistAssociate default resource_id
76
+ * ```
77
+ */
78
+ class AllowlistAssociate extends pulumi.CustomResource {
79
+ /**
80
+ * Get an existing AllowlistAssociate resource's state with the given name, ID, and optional extra
81
+ * properties used to qualify the lookup.
82
+ *
83
+ * @param name The _unique_ name of the resulting resource.
84
+ * @param id The _unique_ provider ID of the resource to lookup.
85
+ * @param state Any extra arguments used during the lookup.
86
+ * @param opts Optional settings to control the behavior of the CustomResource.
87
+ */
88
+ static get(name, id, state, opts) {
89
+ return new AllowlistAssociate(name, state, Object.assign(Object.assign({}, opts), { id: id }));
90
+ }
91
+ /**
92
+ * Returns true if the given object is an instance of AllowlistAssociate. This is designed to work even
93
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
94
+ */
95
+ static isInstance(obj) {
96
+ if (obj === undefined || obj === null) {
97
+ return false;
98
+ }
99
+ return obj['__pulumiType'] === AllowlistAssociate.__pulumiType;
100
+ }
101
+ constructor(name, argsOrState, opts) {
102
+ let resourceInputs = {};
103
+ opts = opts || {};
104
+ if (opts.id) {
105
+ const state = argsOrState;
106
+ resourceInputs["allowListId"] = state ? state.allowListId : undefined;
107
+ resourceInputs["instanceId"] = state ? state.instanceId : undefined;
108
+ }
109
+ else {
110
+ const args = argsOrState;
111
+ if ((!args || args.allowListId === undefined) && !opts.urn) {
112
+ throw new Error("Missing required property 'allowListId'");
113
+ }
114
+ if ((!args || args.instanceId === undefined) && !opts.urn) {
115
+ throw new Error("Missing required property 'instanceId'");
116
+ }
117
+ resourceInputs["allowListId"] = args ? args.allowListId : undefined;
118
+ resourceInputs["instanceId"] = args ? args.instanceId : undefined;
119
+ }
120
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
121
+ super(AllowlistAssociate.__pulumiType, name, resourceInputs, opts);
122
+ }
123
+ }
124
+ exports.AllowlistAssociate = AllowlistAssociate;
125
+ /** @internal */
126
+ AllowlistAssociate.__pulumiType = 'volcengine:rds_postgresql/allowlistAssociate:AllowlistAssociate';
127
+ //# sourceMappingURL=allowlistAssociate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"allowlistAssociate.js","sourceRoot":"","sources":["../../rds_postgresql/allowlistAssociate.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACzE,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,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;IAmBD,YAAY,IAAY,EAAE,WAA8D,EAAE,IAAmC;QACzH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAkD,CAAC;YACjE,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;SACvE;aAAM;YACH,MAAM,IAAI,GAAG,WAAiD,CAAC;YAC/D,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACxD,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;aAC9D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvD,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;SACrE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;;AAjEL,gDAkEC;AApDG,gBAAgB;AACO,+BAAY,GAAG,iEAAiE,CAAC"}
@@ -0,0 +1,83 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "../types/output";
3
+ /**
4
+ * Use this data source to query detailed information of rds postgresql allowlists
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as volcengine from "@pulumi/volcengine";
10
+ *
11
+ * const foo = volcengine.rds_postgresql.Allowlists({});
12
+ * ```
13
+ */
14
+ export declare function allowlists(args?: AllowlistsArgs, opts?: pulumi.InvokeOptions): Promise<AllowlistsResult>;
15
+ /**
16
+ * A collection of arguments for invoking Allowlists.
17
+ */
18
+ export interface AllowlistsArgs {
19
+ /**
20
+ * The id of the postgresql Instance.
21
+ */
22
+ instanceId?: string;
23
+ /**
24
+ * A Name Regex of Resource.
25
+ */
26
+ nameRegex?: string;
27
+ /**
28
+ * File name where to save data source results.
29
+ */
30
+ outputFile?: string;
31
+ }
32
+ /**
33
+ * A collection of values returned by Allowlists.
34
+ */
35
+ export interface AllowlistsResult {
36
+ /**
37
+ * The provider-assigned unique ID for this managed resource.
38
+ */
39
+ readonly id: string;
40
+ /**
41
+ * The id of the postgresql instance.
42
+ */
43
+ readonly instanceId?: string;
44
+ readonly nameRegex?: string;
45
+ readonly outputFile?: string;
46
+ /**
47
+ * The list of postgresql allowed list.
48
+ */
49
+ readonly postgresqlAllowLists: outputs.rds_postgresql.AllowlistsPostgresqlAllowList[];
50
+ /**
51
+ * The total count of query.
52
+ */
53
+ readonly totalCount: number;
54
+ }
55
+ /**
56
+ * Use this data source to query detailed information of rds postgresql allowlists
57
+ * ## Example Usage
58
+ *
59
+ * ```typescript
60
+ * import * as pulumi from "@pulumi/pulumi";
61
+ * import * as volcengine from "@pulumi/volcengine";
62
+ *
63
+ * const foo = volcengine.rds_postgresql.Allowlists({});
64
+ * ```
65
+ */
66
+ export declare function allowlistsOutput(args?: AllowlistsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<AllowlistsResult>;
67
+ /**
68
+ * A collection of arguments for invoking Allowlists.
69
+ */
70
+ export interface AllowlistsOutputArgs {
71
+ /**
72
+ * The id of the postgresql Instance.
73
+ */
74
+ instanceId?: pulumi.Input<string>;
75
+ /**
76
+ * A Name Regex of Resource.
77
+ */
78
+ nameRegex?: pulumi.Input<string>;
79
+ /**
80
+ * File name where to save data source results.
81
+ */
82
+ outputFile?: pulumi.Input<string>;
83
+ }
@@ -0,0 +1,44 @@
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.allowlistsOutput = exports.allowlists = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Use this data source to query detailed information of rds postgresql allowlists
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as volcengine from "@pulumi/volcengine";
15
+ *
16
+ * const foo = volcengine.rds_postgresql.Allowlists({});
17
+ * ```
18
+ */
19
+ function allowlists(args, opts) {
20
+ args = args || {};
21
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
22
+ return pulumi.runtime.invoke("volcengine:rds_postgresql/allowlists:Allowlists", {
23
+ "instanceId": args.instanceId,
24
+ "nameRegex": args.nameRegex,
25
+ "outputFile": args.outputFile,
26
+ }, opts);
27
+ }
28
+ exports.allowlists = allowlists;
29
+ /**
30
+ * Use this data source to query detailed information of rds postgresql allowlists
31
+ * ## Example Usage
32
+ *
33
+ * ```typescript
34
+ * import * as pulumi from "@pulumi/pulumi";
35
+ * import * as volcengine from "@pulumi/volcengine";
36
+ *
37
+ * const foo = volcengine.rds_postgresql.Allowlists({});
38
+ * ```
39
+ */
40
+ function allowlistsOutput(args, opts) {
41
+ return pulumi.output(args).apply((a) => allowlists(a, opts));
42
+ }
43
+ exports.allowlistsOutput = allowlistsOutput;
44
+ //# sourceMappingURL=allowlists.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"allowlists.js","sourceRoot":"","sources":["../../rds_postgresql/allowlists.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;GAUG;AACH,SAAgB,UAAU,CAAC,IAAqB,EAAE,IAA2B;IACzE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,iDAAiD,EAAE;QAC5E,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,gCASC;AA2CD;;;;;;;;;;GAUG;AACH,SAAgB,gBAAgB,CAAC,IAA2B,EAAE,IAA2B;IACrF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACrE,CAAC;AAFD,4CAEC"}
@@ -4,6 +4,15 @@ export declare const Account: typeof import("./account").Account;
4
4
  export { AccountsArgs, AccountsResult, AccountsOutputArgs } from "./accounts";
5
5
  export declare const accounts: typeof import("./accounts").accounts;
6
6
  export declare const accountsOutput: typeof import("./accounts").accountsOutput;
7
+ export { AllowlistArgs, AllowlistState } from "./allowlist";
8
+ export type Allowlist = import("./allowlist").Allowlist;
9
+ export declare const Allowlist: typeof import("./allowlist").Allowlist;
10
+ export { AllowlistAssociateArgs, AllowlistAssociateState } from "./allowlistAssociate";
11
+ export type AllowlistAssociate = import("./allowlistAssociate").AllowlistAssociate;
12
+ export declare const AllowlistAssociate: typeof import("./allowlistAssociate").AllowlistAssociate;
13
+ export { AllowlistsArgs, AllowlistsResult, AllowlistsOutputArgs } from "./allowlists";
14
+ export declare const allowlists: typeof import("./allowlists").allowlists;
15
+ export declare const allowlistsOutput: typeof import("./allowlists").allowlistsOutput;
7
16
  export { DatabaseArgs, DatabaseState } from "./database";
8
17
  export type Database = import("./database").Database;
9
18
  export declare const Database: typeof import("./database").Database;