@volcengine/pulumi-volcenginecc 0.0.41 → 0.0.42

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 (141) hide show
  1. package/directconnect/bgpPeer.d.ts +189 -0
  2. package/directconnect/bgpPeer.js +104 -0
  3. package/directconnect/bgpPeer.js.map +1 -0
  4. package/directconnect/getBgpPeer.d.ts +88 -0
  5. package/directconnect/getBgpPeer.js +28 -0
  6. package/directconnect/getBgpPeer.js.map +1 -0
  7. package/directconnect/getBgpPeers.d.ts +22 -0
  8. package/directconnect/getBgpPeers.js +24 -0
  9. package/directconnect/getBgpPeers.js.map +1 -0
  10. package/directconnect/index.d.ts +9 -0
  11. package/directconnect/index.js +12 -1
  12. package/directconnect/index.js.map +1 -1
  13. package/dns/getRecord.d.ts +104 -0
  14. package/dns/getRecord.js +28 -0
  15. package/dns/getRecord.js.map +1 -0
  16. package/dns/getRecords.d.ts +22 -0
  17. package/dns/getRecords.js +24 -0
  18. package/dns/getRecords.js.map +1 -0
  19. package/dns/index.d.ts +9 -0
  20. package/dns/index.js +12 -1
  21. package/dns/index.js.map +1 -1
  22. package/dns/record.d.ts +236 -0
  23. package/dns/record.js +121 -0
  24. package/dns/record.js.map +1 -0
  25. package/gtm/getGtm.d.ts +100 -0
  26. package/gtm/getGtm.js +28 -0
  27. package/gtm/getGtm.js.map +1 -0
  28. package/gtm/getGtms.d.ts +22 -0
  29. package/gtm/getGtms.js +24 -0
  30. package/gtm/getGtms.js.map +1 -0
  31. package/gtm/getRouting.d.ts +48 -0
  32. package/gtm/getRouting.js +28 -0
  33. package/gtm/getRouting.js.map +1 -0
  34. package/gtm/getRoutings.d.ts +22 -0
  35. package/gtm/getRoutings.js +24 -0
  36. package/gtm/getRoutings.js.map +1 -0
  37. package/gtm/getRule.d.ts +105 -0
  38. package/gtm/getRule.js +28 -0
  39. package/gtm/getRule.js.map +1 -0
  40. package/gtm/getRules.d.ts +22 -0
  41. package/gtm/getRules.js +24 -0
  42. package/gtm/getRules.js.map +1 -0
  43. package/gtm/gtm.d.ts +228 -0
  44. package/gtm/gtm.js +113 -0
  45. package/gtm/gtm.js.map +1 -0
  46. package/gtm/index.d.ts +27 -0
  47. package/gtm/index.js +34 -1
  48. package/gtm/index.js.map +1 -1
  49. package/gtm/routing.d.ts +89 -0
  50. package/gtm/routing.js +74 -0
  51. package/gtm/routing.js.map +1 -0
  52. package/gtm/rule.d.ts +226 -0
  53. package/gtm/rule.js +99 -0
  54. package/gtm/rule.js.map +1 -0
  55. package/iam/getOauthProvider.d.ts +44 -0
  56. package/iam/getOauthProvider.js +28 -0
  57. package/iam/getOauthProvider.js.map +1 -0
  58. package/iam/getOauthProviders.d.ts +22 -0
  59. package/iam/getOauthProviders.js +24 -0
  60. package/iam/getOauthProviders.js.map +1 -0
  61. package/iam/index.d.ts +9 -0
  62. package/iam/index.js +12 -1
  63. package/iam/index.js.map +1 -1
  64. package/iam/oauthProvider.d.ts +256 -0
  65. package/iam/oauthProvider.js +143 -0
  66. package/iam/oauthProvider.js.map +1 -0
  67. package/kafka/getUser.d.ts +34 -0
  68. package/kafka/getUser.js +28 -0
  69. package/kafka/getUser.js.map +1 -0
  70. package/kafka/getUsers.d.ts +22 -0
  71. package/kafka/getUsers.js +24 -0
  72. package/kafka/getUsers.js.map +1 -0
  73. package/kafka/index.d.ts +9 -0
  74. package/kafka/index.js +12 -1
  75. package/kafka/index.js.map +1 -1
  76. package/kafka/user.d.ts +155 -0
  77. package/kafka/user.js +97 -0
  78. package/kafka/user.js.map +1 -0
  79. package/mongodb/account.d.ts +146 -0
  80. package/mongodb/account.js +82 -0
  81. package/mongodb/account.js.map +1 -0
  82. package/mongodb/getAccount.d.ts +77 -0
  83. package/mongodb/getAccount.js +28 -0
  84. package/mongodb/getAccount.js.map +1 -0
  85. package/mongodb/getAccounts.d.ts +22 -0
  86. package/mongodb/getAccounts.js +24 -0
  87. package/mongodb/getAccounts.js.map +1 -0
  88. package/mongodb/index.d.ts +9 -0
  89. package/mongodb/index.js +12 -1
  90. package/mongodb/index.js.map +1 -1
  91. package/package.json +1 -1
  92. package/rdsmysql/endpointPublicAddress.d.ts +182 -0
  93. package/rdsmysql/endpointPublicAddress.js +104 -0
  94. package/rdsmysql/endpointPublicAddress.js.map +1 -0
  95. package/rdsmysql/getEndpointPublicAddress.d.ts +39 -0
  96. package/rdsmysql/getEndpointPublicAddress.js +28 -0
  97. package/rdsmysql/getEndpointPublicAddress.js.map +1 -0
  98. package/rdsmysql/getEndpointPublicAddresses.d.ts +22 -0
  99. package/rdsmysql/getEndpointPublicAddresses.js +24 -0
  100. package/rdsmysql/getEndpointPublicAddresses.js.map +1 -0
  101. package/rdsmysql/index.d.ts +9 -0
  102. package/rdsmysql/index.js +12 -1
  103. package/rdsmysql/index.js.map +1 -1
  104. package/tos/bucketAccessMonitor.d.ts +74 -0
  105. package/tos/bucketAccessMonitor.js +72 -0
  106. package/tos/bucketAccessMonitor.js.map +1 -0
  107. package/tos/getBucketAccessMonitor.d.ts +44 -0
  108. package/tos/getBucketAccessMonitor.js +28 -0
  109. package/tos/getBucketAccessMonitor.js.map +1 -0
  110. package/tos/getBucketAccessMonitors.d.ts +22 -0
  111. package/tos/getBucketAccessMonitors.js +24 -0
  112. package/tos/getBucketAccessMonitors.js.map +1 -0
  113. package/tos/index.d.ts +9 -0
  114. package/tos/index.js +12 -1
  115. package/tos/index.js.map +1 -1
  116. package/types/input.d.ts +143 -0
  117. package/types/output.d.ts +303 -0
  118. package/vepfs/fileset.d.ts +202 -0
  119. package/vepfs/fileset.js +106 -0
  120. package/vepfs/fileset.js.map +1 -0
  121. package/vepfs/getFileset.d.ts +41 -0
  122. package/vepfs/getFileset.js +28 -0
  123. package/vepfs/getFileset.js.map +1 -0
  124. package/vepfs/getFilesets.d.ts +22 -0
  125. package/vepfs/getFilesets.js +24 -0
  126. package/vepfs/getFilesets.js.map +1 -0
  127. package/vepfs/index.d.ts +9 -0
  128. package/vepfs/index.js +12 -1
  129. package/vepfs/index.js.map +1 -1
  130. package/vmp/getRuleFile.d.ts +37 -0
  131. package/vmp/getRuleFile.js +28 -0
  132. package/vmp/getRuleFile.js.map +1 -0
  133. package/vmp/getRuleFiles.d.ts +22 -0
  134. package/vmp/getRuleFiles.js +24 -0
  135. package/vmp/getRuleFiles.js.map +1 -0
  136. package/vmp/index.d.ts +9 -0
  137. package/vmp/index.js +12 -1
  138. package/vmp/index.js.map +1 -1
  139. package/vmp/ruleFile.d.ts +172 -0
  140. package/vmp/ruleFile.js +104 -0
  141. package/vmp/ruleFile.js.map +1 -0
package/gtm/gtm.js ADDED
@@ -0,0 +1,113 @@
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.Gtm = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * The GTM instance is the core resource in Cloud Scheduling GTM for hosting scheduling domain names, routing policies, and health check configurations. After creating a GTM instance, you can use it to configure global traffic scheduling, failover, and health check capabilities for your business domain name
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
16
+ *
17
+ * const gTMGTMDemo = new volcenginecc.gtm.Gtm("GTMGTMDemo", {
18
+ * domain: "www.example4.com",
19
+ * accessMode: "cname",
20
+ * cname: "gtm-cname.example4.com.bdns-gtm-pressure.com",
21
+ * projectName: "default",
22
+ * remark: "gtm test",
23
+ * specName: "ultimate",
24
+ * ttl: 600,
25
+ * policyType: "perf",
26
+ * alarmId: "71xxxx26d79-2b08-4033-b025-71xxxx26d79",
27
+ * });
28
+ * ```
29
+ *
30
+ * ## Import
31
+ *
32
+ * ```sh
33
+ * $ pulumi import volcenginecc:gtm/gtm:Gtm example "gtm_id"
34
+ * ```
35
+ */
36
+ class Gtm extends pulumi.CustomResource {
37
+ /**
38
+ * Get an existing Gtm resource's state with the given name, ID, and optional extra
39
+ * properties used to qualify the lookup.
40
+ *
41
+ * @param name The _unique_ name of the resulting resource.
42
+ * @param id The _unique_ provider ID of the resource to lookup.
43
+ * @param state Any extra arguments used during the lookup.
44
+ * @param opts Optional settings to control the behavior of the CustomResource.
45
+ */
46
+ static get(name, id, state, opts) {
47
+ return new Gtm(name, state, Object.assign(Object.assign({}, opts), { id: id }));
48
+ }
49
+ /**
50
+ * Returns true if the given object is an instance of Gtm. This is designed to work even
51
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
52
+ */
53
+ static isInstance(obj) {
54
+ if (obj === undefined || obj === null) {
55
+ return false;
56
+ }
57
+ return obj['__pulumiType'] === Gtm.__pulumiType;
58
+ }
59
+ constructor(name, argsOrState, opts) {
60
+ let resourceInputs = {};
61
+ opts = opts || {};
62
+ if (opts.id) {
63
+ const state = argsOrState;
64
+ resourceInputs["accessMode"] = state ? state.accessMode : undefined;
65
+ resourceInputs["alarmId"] = state ? state.alarmId : undefined;
66
+ resourceInputs["cname"] = state ? state.cname : undefined;
67
+ resourceInputs["createTime"] = state ? state.createTime : undefined;
68
+ resourceInputs["domain"] = state ? state.domain : undefined;
69
+ resourceInputs["gtmId"] = state ? state.gtmId : undefined;
70
+ resourceInputs["lastOperator"] = state ? state.lastOperator : undefined;
71
+ resourceInputs["owner"] = state ? state.owner : undefined;
72
+ resourceInputs["policyType"] = state ? state.policyType : undefined;
73
+ resourceInputs["projectName"] = state ? state.projectName : undefined;
74
+ resourceInputs["remark"] = state ? state.remark : undefined;
75
+ resourceInputs["specName"] = state ? state.specName : undefined;
76
+ resourceInputs["state"] = state ? state.state : undefined;
77
+ resourceInputs["ttl"] = state ? state.ttl : undefined;
78
+ resourceInputs["updateTime"] = state ? state.updateTime : undefined;
79
+ resourceInputs["zoneType"] = state ? state.zoneType : undefined;
80
+ }
81
+ else {
82
+ const args = argsOrState;
83
+ if ((!args || args.accessMode === undefined) && !opts.urn) {
84
+ throw new Error("Missing required property 'accessMode'");
85
+ }
86
+ if ((!args || args.domain === undefined) && !opts.urn) {
87
+ throw new Error("Missing required property 'domain'");
88
+ }
89
+ resourceInputs["accessMode"] = args ? args.accessMode : undefined;
90
+ resourceInputs["alarmId"] = args ? args.alarmId : undefined;
91
+ resourceInputs["cname"] = args ? args.cname : undefined;
92
+ resourceInputs["domain"] = args ? args.domain : undefined;
93
+ resourceInputs["policyType"] = args ? args.policyType : undefined;
94
+ resourceInputs["projectName"] = args ? args.projectName : undefined;
95
+ resourceInputs["remark"] = args ? args.remark : undefined;
96
+ resourceInputs["specName"] = args ? args.specName : undefined;
97
+ resourceInputs["ttl"] = args ? args.ttl : undefined;
98
+ resourceInputs["createTime"] = undefined /*out*/;
99
+ resourceInputs["gtmId"] = undefined /*out*/;
100
+ resourceInputs["lastOperator"] = undefined /*out*/;
101
+ resourceInputs["owner"] = undefined /*out*/;
102
+ resourceInputs["state"] = undefined /*out*/;
103
+ resourceInputs["updateTime"] = undefined /*out*/;
104
+ resourceInputs["zoneType"] = undefined /*out*/;
105
+ }
106
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
107
+ super(Gtm.__pulumiType, name, resourceInputs, opts);
108
+ }
109
+ }
110
+ exports.Gtm = Gtm;
111
+ /** @internal */
112
+ Gtm.__pulumiType = 'volcenginecc:gtm/gtm:Gtm';
113
+ //# sourceMappingURL=gtm.js.map
package/gtm/gtm.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gtm.js","sourceRoot":"","sources":["../../gtm/gtm.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAa,GAAI,SAAQ,MAAM,CAAC,cAAc;IAC1C;;;;;;;;OAQG;IACI,MAAM,CAAC,GA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D,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC5C,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACnD,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC5C,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC5C,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAClD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,GAAG,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxD,CAAC;;AArJL,kBAsJC;AAxIG,gBAAgB;AACO,gBAAY,GAAG,0BAA0B,CAAC"}
package/gtm/index.d.ts CHANGED
@@ -1,9 +1,36 @@
1
+ export { GetGtmArgs, GetGtmResult, GetGtmOutputArgs } from "./getGtm";
2
+ export declare const getGtm: typeof import("./getGtm").getGtm;
3
+ export declare const getGtmOutput: typeof import("./getGtm").getGtmOutput;
4
+ export { GetGtmsResult } from "./getGtms";
5
+ export declare const getGtms: typeof import("./getGtms").getGtms;
6
+ export declare const getGtmsOutput: typeof import("./getGtms").getGtmsOutput;
1
7
  export { GetPoolArgs, GetPoolResult, GetPoolOutputArgs } from "./getPool";
2
8
  export declare const getPool: typeof import("./getPool").getPool;
3
9
  export declare const getPoolOutput: typeof import("./getPool").getPoolOutput;
4
10
  export { GetPoolsResult } from "./getPools";
5
11
  export declare const getPools: typeof import("./getPools").getPools;
6
12
  export declare const getPoolsOutput: typeof import("./getPools").getPoolsOutput;
13
+ export { GetRoutingArgs, GetRoutingResult, GetRoutingOutputArgs } from "./getRouting";
14
+ export declare const getRouting: typeof import("./getRouting").getRouting;
15
+ export declare const getRoutingOutput: typeof import("./getRouting").getRoutingOutput;
16
+ export { GetRoutingsResult } from "./getRoutings";
17
+ export declare const getRoutings: typeof import("./getRoutings").getRoutings;
18
+ export declare const getRoutingsOutput: typeof import("./getRoutings").getRoutingsOutput;
19
+ export { GetRuleArgs, GetRuleResult, GetRuleOutputArgs } from "./getRule";
20
+ export declare const getRule: typeof import("./getRule").getRule;
21
+ export declare const getRuleOutput: typeof import("./getRule").getRuleOutput;
22
+ export { GetRulesResult } from "./getRules";
23
+ export declare const getRules: typeof import("./getRules").getRules;
24
+ export declare const getRulesOutput: typeof import("./getRules").getRulesOutput;
25
+ export { GtmArgs, GtmState } from "./gtm";
26
+ export type Gtm = import("./gtm").Gtm;
27
+ export declare const Gtm: typeof import("./gtm").Gtm;
7
28
  export { PoolArgs, PoolState } from "./pool";
8
29
  export type Pool = import("./pool").Pool;
9
30
  export declare const Pool: typeof import("./pool").Pool;
31
+ export { RoutingArgs, RoutingState } from "./routing";
32
+ export type Routing = import("./routing").Routing;
33
+ export declare const Routing: typeof import("./routing").Routing;
34
+ export { RuleArgs, RuleState } from "./rule";
35
+ export type Rule = import("./rule").Rule;
36
+ export declare const Rule: typeof import("./rule").Rule;
package/gtm/index.js CHANGED
@@ -2,27 +2,60 @@
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.Pool = exports.getPoolsOutput = exports.getPools = exports.getPoolOutput = exports.getPool = void 0;
5
+ exports.Rule = exports.Routing = exports.Pool = exports.Gtm = exports.getRulesOutput = exports.getRules = exports.getRuleOutput = exports.getRule = exports.getRoutingsOutput = exports.getRoutings = exports.getRoutingOutput = exports.getRouting = exports.getPoolsOutput = exports.getPools = exports.getPoolOutput = exports.getPool = exports.getGtmsOutput = exports.getGtms = exports.getGtmOutput = exports.getGtm = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
+ exports.getGtm = null;
9
+ exports.getGtmOutput = null;
10
+ utilities.lazyLoad(exports, ["getGtm", "getGtmOutput"], () => require("./getGtm"));
11
+ exports.getGtms = null;
12
+ exports.getGtmsOutput = null;
13
+ utilities.lazyLoad(exports, ["getGtms", "getGtmsOutput"], () => require("./getGtms"));
8
14
  exports.getPool = null;
9
15
  exports.getPoolOutput = null;
10
16
  utilities.lazyLoad(exports, ["getPool", "getPoolOutput"], () => require("./getPool"));
11
17
  exports.getPools = null;
12
18
  exports.getPoolsOutput = null;
13
19
  utilities.lazyLoad(exports, ["getPools", "getPoolsOutput"], () => require("./getPools"));
20
+ exports.getRouting = null;
21
+ exports.getRoutingOutput = null;
22
+ utilities.lazyLoad(exports, ["getRouting", "getRoutingOutput"], () => require("./getRouting"));
23
+ exports.getRoutings = null;
24
+ exports.getRoutingsOutput = null;
25
+ utilities.lazyLoad(exports, ["getRoutings", "getRoutingsOutput"], () => require("./getRoutings"));
26
+ exports.getRule = null;
27
+ exports.getRuleOutput = null;
28
+ utilities.lazyLoad(exports, ["getRule", "getRuleOutput"], () => require("./getRule"));
29
+ exports.getRules = null;
30
+ exports.getRulesOutput = null;
31
+ utilities.lazyLoad(exports, ["getRules", "getRulesOutput"], () => require("./getRules"));
32
+ exports.Gtm = null;
33
+ utilities.lazyLoad(exports, ["Gtm"], () => require("./gtm"));
14
34
  exports.Pool = null;
15
35
  utilities.lazyLoad(exports, ["Pool"], () => require("./pool"));
36
+ exports.Routing = null;
37
+ utilities.lazyLoad(exports, ["Routing"], () => require("./routing"));
38
+ exports.Rule = null;
39
+ utilities.lazyLoad(exports, ["Rule"], () => require("./rule"));
16
40
  const _module = {
17
41
  version: utilities.getVersion(),
18
42
  construct: (name, type, urn) => {
19
43
  switch (type) {
44
+ case "volcenginecc:gtm/gtm:Gtm":
45
+ return new exports.Gtm(name, undefined, { urn });
20
46
  case "volcenginecc:gtm/pool:Pool":
21
47
  return new exports.Pool(name, undefined, { urn });
48
+ case "volcenginecc:gtm/routing:Routing":
49
+ return new exports.Routing(name, undefined, { urn });
50
+ case "volcenginecc:gtm/rule:Rule":
51
+ return new exports.Rule(name, undefined, { urn });
22
52
  default:
23
53
  throw new Error(`unknown resource type ${type}`);
24
54
  }
25
55
  },
26
56
  };
57
+ pulumi.runtime.registerResourceModule("volcenginecc", "gtm/gtm", _module);
27
58
  pulumi.runtime.registerResourceModule("volcenginecc", "gtm/pool", _module);
59
+ pulumi.runtime.registerResourceModule("volcenginecc", "gtm/routing", _module);
60
+ pulumi.runtime.registerResourceModule("volcenginecc", "gtm/rule", _module);
28
61
  //# sourceMappingURL=index.js.map
package/gtm/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../gtm/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAI7B,QAAA,OAAO,GAAuC,IAAW,CAAC;AAC1D,QAAA,aAAa,GAA6C,IAAW,CAAC;AACnF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,SAAS,EAAC,eAAe,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;AAGxE,QAAA,QAAQ,GAAyC,IAAW,CAAC;AAC7D,QAAA,cAAc,GAA+C,IAAW,CAAC;AACtF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,UAAU,EAAC,gBAAgB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC;AAI3E,QAAA,IAAI,GAAiC,IAAW,CAAC;AAC9D,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAA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A;AACzE,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,cAAc,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;AAC1E,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,cAAc,EAAE,aAAa,EAAE,OAAO,CAAC,CAAA;AAC7E,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,cAAc,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA"}
@@ -0,0 +1,89 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Used to start or stop a GTM instance. After starting, the GTM instance configures DNS resolution for the scheduling domain, and initiates health checks and failover. After stopping, health checks and failover for the GTM instance also stop. However, DNS resolution from the scheduling domain to the target address does not stop. If you need to delete DNS resolution from the scheduling domain to the target address, you can call the DeleteGtm API to delete the GTM instance.
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
10
+ *
11
+ * const gTMRoutingDemo = new volcenginecc.gtm.Routing("GTMRoutingDemo", {
12
+ * gtmId: "gtm_id_xxxxx",
13
+ * routingEnabled: true,
14
+ * });
15
+ * ```
16
+ *
17
+ * ## Import
18
+ *
19
+ * ```sh
20
+ * $ pulumi import volcenginecc:gtm/routing:Routing example "gtm_id"
21
+ * ```
22
+ */
23
+ export declare class Routing extends pulumi.CustomResource {
24
+ /**
25
+ * Get an existing Routing resource's state with the given name, ID, and optional extra
26
+ * properties used to qualify the lookup.
27
+ *
28
+ * @param name The _unique_ name of the resulting resource.
29
+ * @param id The _unique_ provider ID of the resource to lookup.
30
+ * @param state Any extra arguments used during the lookup.
31
+ * @param opts Optional settings to control the behavior of the CustomResource.
32
+ */
33
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RoutingState, opts?: pulumi.CustomResourceOptions): Routing;
34
+ /**
35
+ * Returns true if the given object is an instance of Routing. This is designed to work even
36
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
37
+ */
38
+ static isInstance(obj: any): obj is Routing;
39
+ /**
40
+ * UUID of the GTM instance. You can obtain GtmId via the ListGtms API.
41
+ */
42
+ readonly gtmId: pulumi.Output<string>;
43
+ /**
44
+ * Start/stop GTM instance. true: Start GTM instance. false: Stop GTM instance.
45
+ */
46
+ readonly routingEnabled: pulumi.Output<boolean>;
47
+ /**
48
+ * Indicates the current lifecycle state of the GTM instance. Value description: init: The GTM instance has been successfully created but not yet configured. configuring_address: Basic rule configuration for GTM is complete, but target address configuration is not yet finished. editing: Both basic configuration and target address have been completed, but the instance is not yet enabled. running: The instance is officially enabled.
49
+ */
50
+ readonly routingStatus: pulumi.Output<string>;
51
+ /**
52
+ * Create a Routing resource with the given unique name, arguments, and options.
53
+ *
54
+ * @param name The _unique_ name of the resource.
55
+ * @param args The arguments to use to populate this resource's properties.
56
+ * @param opts A bag of options that control this resource's behavior.
57
+ */
58
+ constructor(name: string, args?: RoutingArgs, opts?: pulumi.CustomResourceOptions);
59
+ }
60
+ /**
61
+ * Input properties used for looking up and filtering Routing resources.
62
+ */
63
+ export interface RoutingState {
64
+ /**
65
+ * UUID of the GTM instance. You can obtain GtmId via the ListGtms API.
66
+ */
67
+ gtmId?: pulumi.Input<string>;
68
+ /**
69
+ * Start/stop GTM instance. true: Start GTM instance. false: Stop GTM instance.
70
+ */
71
+ routingEnabled?: pulumi.Input<boolean>;
72
+ /**
73
+ * Indicates the current lifecycle state of the GTM instance. Value description: init: The GTM instance has been successfully created but not yet configured. configuring_address: Basic rule configuration for GTM is complete, but target address configuration is not yet finished. editing: Both basic configuration and target address have been completed, but the instance is not yet enabled. running: The instance is officially enabled.
74
+ */
75
+ routingStatus?: pulumi.Input<string>;
76
+ }
77
+ /**
78
+ * The set of arguments for constructing a Routing resource.
79
+ */
80
+ export interface RoutingArgs {
81
+ /**
82
+ * UUID of the GTM instance. You can obtain GtmId via the ListGtms API.
83
+ */
84
+ gtmId?: pulumi.Input<string>;
85
+ /**
86
+ * Start/stop GTM instance. true: Start GTM instance. false: Stop GTM instance.
87
+ */
88
+ routingEnabled?: pulumi.Input<boolean>;
89
+ }
package/gtm/routing.js ADDED
@@ -0,0 +1,74 @@
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.Routing = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Used to start or stop a GTM instance. After starting, the GTM instance configures DNS resolution for the scheduling domain, and initiates health checks and failover. After stopping, health checks and failover for the GTM instance also stop. However, DNS resolution from the scheduling domain to the target address does not stop. If you need to delete DNS resolution from the scheduling domain to the target address, you can call the DeleteGtm API to delete the GTM instance.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
16
+ *
17
+ * const gTMRoutingDemo = new volcenginecc.gtm.Routing("GTMRoutingDemo", {
18
+ * gtmId: "gtm_id_xxxxx",
19
+ * routingEnabled: true,
20
+ * });
21
+ * ```
22
+ *
23
+ * ## Import
24
+ *
25
+ * ```sh
26
+ * $ pulumi import volcenginecc:gtm/routing:Routing example "gtm_id"
27
+ * ```
28
+ */
29
+ class Routing extends pulumi.CustomResource {
30
+ /**
31
+ * Get an existing Routing resource's state with the given name, ID, and optional extra
32
+ * properties used to qualify the lookup.
33
+ *
34
+ * @param name The _unique_ name of the resulting resource.
35
+ * @param id The _unique_ provider ID of the resource to lookup.
36
+ * @param state Any extra arguments used during the lookup.
37
+ * @param opts Optional settings to control the behavior of the CustomResource.
38
+ */
39
+ static get(name, id, state, opts) {
40
+ return new Routing(name, state, Object.assign(Object.assign({}, opts), { id: id }));
41
+ }
42
+ /**
43
+ * Returns true if the given object is an instance of Routing. 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) {
47
+ if (obj === undefined || obj === null) {
48
+ return false;
49
+ }
50
+ return obj['__pulumiType'] === Routing.__pulumiType;
51
+ }
52
+ constructor(name, argsOrState, opts) {
53
+ let resourceInputs = {};
54
+ opts = opts || {};
55
+ if (opts.id) {
56
+ const state = argsOrState;
57
+ resourceInputs["gtmId"] = state ? state.gtmId : undefined;
58
+ resourceInputs["routingEnabled"] = state ? state.routingEnabled : undefined;
59
+ resourceInputs["routingStatus"] = state ? state.routingStatus : undefined;
60
+ }
61
+ else {
62
+ const args = argsOrState;
63
+ resourceInputs["gtmId"] = args ? args.gtmId : undefined;
64
+ resourceInputs["routingEnabled"] = args ? args.routingEnabled : undefined;
65
+ resourceInputs["routingStatus"] = undefined /*out*/;
66
+ }
67
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
68
+ super(Routing.__pulumiType, name, resourceInputs, opts);
69
+ }
70
+ }
71
+ exports.Routing = Routing;
72
+ /** @internal */
73
+ Routing.__pulumiType = 'volcenginecc:gtm/routing:Routing';
74
+ //# sourceMappingURL=routing.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routing.js","sourceRoot":"","sources":["../../gtm/routing.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoB,EAAE,IAAmC;QAClH,OAAO,IAAI,OAAO,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC9D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,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GAAG,kCAAkC,CAAC"}
package/gtm/rule.d.ts ADDED
@@ -0,0 +1,226 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "../types/input";
3
+ import * as outputs from "../types/output";
4
+ /**
5
+ * GTM routing rule resource, which defines the address pool set, health checks, and effective policies for a specific line.
6
+ *
7
+ * ## Import
8
+ *
9
+ * ```sh
10
+ * $ pulumi import volcenginecc:gtm/rule:Rule example "gtm_id|policy_type|rule_id"
11
+ * ```
12
+ */
13
+ export declare class Rule extends pulumi.CustomResource {
14
+ /**
15
+ * Get an existing Rule 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?: RuleState, opts?: pulumi.CustomResourceOptions): Rule;
24
+ /**
25
+ * Returns true if the given object is an instance of Rule. 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 Rule;
29
+ /**
30
+ * Route rule creation time.
31
+ */
32
+ readonly createTime: pulumi.Output<string>;
33
+ /**
34
+ * Whether this route rule is disabled. true: The route rule is disabled. false: The route rule is enabled.
35
+ */
36
+ readonly disable: pulumi.Output<boolean>;
37
+ /**
38
+ * Index of the effective address pool set.
39
+ */
40
+ readonly effectivePoolSetIndex: pulumi.Output<number>;
41
+ /**
42
+ * UUID of the GTM instance.
43
+ */
44
+ readonly gtmId: pulumi.Output<string>;
45
+ /**
46
+ * Route rule applicable lines.
47
+ */
48
+ readonly line: pulumi.Output<string>;
49
+ /**
50
+ * Route rule name.
51
+ */
52
+ readonly name: pulumi.Output<string>;
53
+ /**
54
+ * The policy type corresponding to the routing rule. geo: basic routing. perf: intelligent routing.
55
+ */
56
+ readonly policyType: pulumi.Output<string>;
57
+ /**
58
+ * Address pool set effective mode. auto: Automatically sets the effective address pool set. The highest-priority available address pool becomes effective automatically. If all address pools are unavailable, the highest-priority address pool becomes effective. manual: Manually sets the effective address pool set. In this mode, you need to set the index of the effective address pool set in the EffectivePoolSetIndex parameter.
59
+ */
60
+ readonly poolSetMode: pulumi.Output<string>;
61
+ readonly poolSets: pulumi.Output<outputs.gtm.RulePoolSet[]>;
62
+ /**
63
+ * Health check parameters for the route rule.
64
+ */
65
+ readonly probe: pulumi.Output<outputs.gtm.RuleProbe>;
66
+ /**
67
+ * Health check mode.
68
+ */
69
+ readonly probeMode: pulumi.Output<string>;
70
+ /**
71
+ * Route rule remarks.
72
+ */
73
+ readonly remark: pulumi.Output<string>;
74
+ /**
75
+ * Routing rule ID.
76
+ */
77
+ readonly ruleId: pulumi.Output<string>;
78
+ /**
79
+ * Route rule update time.
80
+ */
81
+ readonly updateTime: pulumi.Output<string>;
82
+ /**
83
+ * Whether to inherit instance-level health check nodes.
84
+ */
85
+ readonly usePolicyProbeNodes: pulumi.Output<boolean>;
86
+ /**
87
+ * Whether to use route rule-level probe configuration.
88
+ */
89
+ readonly useRuleProbeConfig: pulumi.Output<boolean>;
90
+ /**
91
+ * Routing rule weight.
92
+ */
93
+ readonly weight: pulumi.Output<number>;
94
+ /**
95
+ * Create a Rule resource with the given unique name, arguments, and options.
96
+ *
97
+ * @param name The _unique_ name of the resource.
98
+ * @param args The arguments to use to populate this resource's properties.
99
+ * @param opts A bag of options that control this resource's behavior.
100
+ */
101
+ constructor(name: string, args: RuleArgs, opts?: pulumi.CustomResourceOptions);
102
+ }
103
+ /**
104
+ * Input properties used for looking up and filtering Rule resources.
105
+ */
106
+ export interface RuleState {
107
+ /**
108
+ * Route rule creation time.
109
+ */
110
+ createTime?: pulumi.Input<string>;
111
+ /**
112
+ * Whether this route rule is disabled. true: The route rule is disabled. false: The route rule is enabled.
113
+ */
114
+ disable?: pulumi.Input<boolean>;
115
+ /**
116
+ * Index of the effective address pool set.
117
+ */
118
+ effectivePoolSetIndex?: pulumi.Input<number>;
119
+ /**
120
+ * UUID of the GTM instance.
121
+ */
122
+ gtmId?: pulumi.Input<string>;
123
+ /**
124
+ * Route rule applicable lines.
125
+ */
126
+ line?: pulumi.Input<string>;
127
+ /**
128
+ * Route rule name.
129
+ */
130
+ name?: pulumi.Input<string>;
131
+ /**
132
+ * The policy type corresponding to the routing rule. geo: basic routing. perf: intelligent routing.
133
+ */
134
+ policyType?: pulumi.Input<string>;
135
+ /**
136
+ * Address pool set effective mode. auto: Automatically sets the effective address pool set. The highest-priority available address pool becomes effective automatically. If all address pools are unavailable, the highest-priority address pool becomes effective. manual: Manually sets the effective address pool set. In this mode, you need to set the index of the effective address pool set in the EffectivePoolSetIndex parameter.
137
+ */
138
+ poolSetMode?: pulumi.Input<string>;
139
+ poolSets?: pulumi.Input<pulumi.Input<inputs.gtm.RulePoolSet>[]>;
140
+ /**
141
+ * Health check parameters for the route rule.
142
+ */
143
+ probe?: pulumi.Input<inputs.gtm.RuleProbe>;
144
+ /**
145
+ * Health check mode.
146
+ */
147
+ probeMode?: pulumi.Input<string>;
148
+ /**
149
+ * Route rule remarks.
150
+ */
151
+ remark?: pulumi.Input<string>;
152
+ /**
153
+ * Routing rule ID.
154
+ */
155
+ ruleId?: pulumi.Input<string>;
156
+ /**
157
+ * Route rule update time.
158
+ */
159
+ updateTime?: pulumi.Input<string>;
160
+ /**
161
+ * Whether to inherit instance-level health check nodes.
162
+ */
163
+ usePolicyProbeNodes?: pulumi.Input<boolean>;
164
+ /**
165
+ * Whether to use route rule-level probe configuration.
166
+ */
167
+ useRuleProbeConfig?: pulumi.Input<boolean>;
168
+ /**
169
+ * Routing rule weight.
170
+ */
171
+ weight?: pulumi.Input<number>;
172
+ }
173
+ /**
174
+ * The set of arguments for constructing a Rule resource.
175
+ */
176
+ export interface RuleArgs {
177
+ /**
178
+ * Whether this route rule is disabled. true: The route rule is disabled. false: The route rule is enabled.
179
+ */
180
+ disable?: pulumi.Input<boolean>;
181
+ /**
182
+ * Index of the effective address pool set.
183
+ */
184
+ effectivePoolSetIndex?: pulumi.Input<number>;
185
+ /**
186
+ * UUID of the GTM instance.
187
+ */
188
+ gtmId: pulumi.Input<string>;
189
+ /**
190
+ * Route rule applicable lines.
191
+ */
192
+ line?: pulumi.Input<string>;
193
+ /**
194
+ * Route rule name.
195
+ */
196
+ name: pulumi.Input<string>;
197
+ /**
198
+ * The policy type corresponding to the routing rule. geo: basic routing. perf: intelligent routing.
199
+ */
200
+ policyType: pulumi.Input<string>;
201
+ /**
202
+ * Address pool set effective mode. auto: Automatically sets the effective address pool set. The highest-priority available address pool becomes effective automatically. If all address pools are unavailable, the highest-priority address pool becomes effective. manual: Manually sets the effective address pool set. In this mode, you need to set the index of the effective address pool set in the EffectivePoolSetIndex parameter.
203
+ */
204
+ poolSetMode?: pulumi.Input<string>;
205
+ poolSets?: pulumi.Input<pulumi.Input<inputs.gtm.RulePoolSet>[]>;
206
+ /**
207
+ * Health check parameters for the route rule.
208
+ */
209
+ probe?: pulumi.Input<inputs.gtm.RuleProbe>;
210
+ /**
211
+ * Route rule remarks.
212
+ */
213
+ remark?: pulumi.Input<string>;
214
+ /**
215
+ * Whether to inherit instance-level health check nodes.
216
+ */
217
+ usePolicyProbeNodes?: pulumi.Input<boolean>;
218
+ /**
219
+ * Whether to use route rule-level probe configuration.
220
+ */
221
+ useRuleProbeConfig?: pulumi.Input<boolean>;
222
+ /**
223
+ * Routing rule weight.
224
+ */
225
+ weight?: pulumi.Input<number>;
226
+ }