@volcengine/pulumi-volcenginecc 0.0.5 → 0.0.6

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 (89) hide show
  1. package/apig/getUpstream.d.ts +93 -0
  2. package/apig/getUpstream.js +28 -0
  3. package/apig/getUpstream.js.map +1 -0
  4. package/apig/getUpstreams.d.ts +22 -0
  5. package/apig/getUpstreams.js +24 -0
  6. package/apig/getUpstreams.js.map +1 -0
  7. package/apig/index.d.ts +9 -0
  8. package/apig/index.js +12 -1
  9. package/apig/index.js.map +1 -1
  10. package/apig/upstream.d.ts +183 -0
  11. package/apig/upstream.js +96 -0
  12. package/apig/upstream.js.map +1 -0
  13. package/cdn/getShareConfig.d.ts +81 -0
  14. package/cdn/getShareConfig.js +28 -0
  15. package/cdn/getShareConfig.js.map +1 -0
  16. package/cdn/getShareConfigs.d.ts +22 -0
  17. package/cdn/getShareConfigs.js +24 -0
  18. package/cdn/getShareConfigs.js.map +1 -0
  19. package/cdn/index.d.ts +9 -0
  20. package/cdn/index.js +28 -0
  21. package/cdn/index.js.map +1 -0
  22. package/cdn/shareConfig.d.ts +167 -0
  23. package/cdn/shareConfig.js +78 -0
  24. package/cdn/shareConfig.js.map +1 -0
  25. package/clb/getListener.d.ts +1 -1
  26. package/clb/listener.d.ts +3 -3
  27. package/index.d.ts +5 -1
  28. package/index.js +9 -1
  29. package/index.js.map +1 -1
  30. package/kafka/getTopic.d.ts +97 -0
  31. package/kafka/getTopic.js +28 -0
  32. package/kafka/getTopic.js.map +1 -0
  33. package/kafka/getTopics.d.ts +22 -0
  34. package/kafka/getTopics.js +24 -0
  35. package/kafka/getTopics.js.map +1 -0
  36. package/kafka/index.d.ts +9 -0
  37. package/kafka/index.js +28 -0
  38. package/kafka/index.js.map +1 -0
  39. package/kafka/topic.d.ts +189 -0
  40. package/kafka/topic.js +95 -0
  41. package/kafka/topic.js.map +1 -0
  42. package/natgateway/getNgw.d.ts +153 -0
  43. package/natgateway/getNgw.js +28 -0
  44. package/natgateway/getNgw.js.map +1 -0
  45. package/natgateway/getNgws.d.ts +22 -0
  46. package/natgateway/getNgws.js +24 -0
  47. package/natgateway/getNgws.js.map +1 -0
  48. package/natgateway/index.d.ts +9 -0
  49. package/natgateway/index.js +28 -0
  50. package/natgateway/index.js.map +1 -0
  51. package/natgateway/ngw.d.ts +332 -0
  52. package/natgateway/ngw.js +139 -0
  53. package/natgateway/ngw.js.map +1 -0
  54. package/package.json +1 -1
  55. package/privatezone/getResolverEndpoint.d.ts +89 -0
  56. package/privatezone/getResolverEndpoint.js +28 -0
  57. package/privatezone/getResolverEndpoint.js.map +1 -0
  58. package/privatezone/getResolverEndpoints.d.ts +22 -0
  59. package/privatezone/getResolverEndpoints.js +24 -0
  60. package/privatezone/getResolverEndpoints.js.map +1 -0
  61. package/privatezone/getResolverRule.d.ts +101 -0
  62. package/privatezone/getResolverRule.js +28 -0
  63. package/privatezone/getResolverRule.js.map +1 -0
  64. package/privatezone/getResolverRules.d.ts +22 -0
  65. package/privatezone/getResolverRules.js +24 -0
  66. package/privatezone/getResolverRules.js.map +1 -0
  67. package/privatezone/index.d.ts +18 -0
  68. package/privatezone/index.js +39 -0
  69. package/privatezone/index.js.map +1 -0
  70. package/privatezone/resolverEndpoint.d.ts +165 -0
  71. package/privatezone/resolverEndpoint.js +91 -0
  72. package/privatezone/resolverEndpoint.js.map +1 -0
  73. package/privatezone/resolverRule.d.ts +196 -0
  74. package/privatezone/resolverRule.js +94 -0
  75. package/privatezone/resolverRule.js.map +1 -0
  76. package/types/input.d.ts +435 -1
  77. package/types/output.d.ts +868 -2
  78. package/vke/getPermission.d.ts +108 -0
  79. package/vke/getPermission.js +28 -0
  80. package/vke/getPermission.js.map +1 -0
  81. package/vke/getPermissions.d.ts +22 -0
  82. package/vke/getPermissions.js +24 -0
  83. package/vke/getPermissions.js.map +1 -0
  84. package/vke/index.d.ts +9 -0
  85. package/vke/index.js +12 -1
  86. package/vke/index.js.map +1 -1
  87. package/vke/permission.d.ts +242 -0
  88. package/vke/permission.js +109 -0
  89. package/vke/permission.js.map +1 -0
@@ -0,0 +1,93 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "../types/output";
3
+ /**
4
+ * Data Source schema for Volcengine::APIG::Upstream
5
+ */
6
+ export declare function getUpstream(args: GetUpstreamArgs, opts?: pulumi.InvokeOptions): Promise<GetUpstreamResult>;
7
+ /**
8
+ * A collection of arguments for invoking getUpstream.
9
+ */
10
+ export interface GetUpstreamArgs {
11
+ /**
12
+ * Uniquely identifies the resource.
13
+ */
14
+ id: string;
15
+ }
16
+ /**
17
+ * A collection of values returned by getUpstream.
18
+ */
19
+ export interface GetUpstreamResult {
20
+ /**
21
+ * 后端节点,Upstream来源类型为VeFaas时无效。
22
+ */
23
+ readonly backendTargets: outputs.apig.GetUpstreamBackendTarget[];
24
+ /**
25
+ * 服务熔断配置。
26
+ */
27
+ readonly circuitBreakingSettings: outputs.apig.GetUpstreamCircuitBreakingSettings;
28
+ /**
29
+ * 备注。
30
+ */
31
+ readonly comments: string;
32
+ /**
33
+ * Upstream创建时间。
34
+ */
35
+ readonly createdTime: string;
36
+ /**
37
+ * 网关实例ID。
38
+ */
39
+ readonly gatewayId: string;
40
+ /**
41
+ * Uniquely identifies the resource.
42
+ */
43
+ readonly id: string;
44
+ /**
45
+ * 负载均衡配置。
46
+ */
47
+ readonly loadBalancerSettings: outputs.apig.GetUpstreamLoadBalancerSettings;
48
+ /**
49
+ * Upstream名称。
50
+ */
51
+ readonly name: string;
52
+ /**
53
+ * 协议,取值:HTTP:HTTP/1.1。HTTP2:HTTP/2。GRPC:GRPC。
54
+ */
55
+ readonly protocol: string;
56
+ /**
57
+ * Upstream来源类型,取值:VeFaas:函数服务。ECS:云服务器。K8S:容器服务。Nacos:注册中心。AIProvider:AI模型代理。
58
+ */
59
+ readonly sourceType: string;
60
+ /**
61
+ * TLS配置。
62
+ */
63
+ readonly tlsSettings: outputs.apig.GetUpstreamTlsSettings;
64
+ /**
65
+ * Upstream更新时间。
66
+ */
67
+ readonly updatedTime: string;
68
+ /**
69
+ * Upstream ID。
70
+ */
71
+ readonly upstreamId: string;
72
+ /**
73
+ * Upstream配置。
74
+ */
75
+ readonly upstreamSpec: outputs.apig.GetUpstreamUpstreamSpec;
76
+ /**
77
+ * Upstream版本,仅在Upstream来源类型为K8S时有效。
78
+ */
79
+ readonly versionDetails: outputs.apig.GetUpstreamVersionDetail[];
80
+ }
81
+ /**
82
+ * Data Source schema for Volcengine::APIG::Upstream
83
+ */
84
+ export declare function getUpstreamOutput(args: GetUpstreamOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetUpstreamResult>;
85
+ /**
86
+ * A collection of arguments for invoking getUpstream.
87
+ */
88
+ export interface GetUpstreamOutputArgs {
89
+ /**
90
+ * Uniquely identifies the resource.
91
+ */
92
+ id: pulumi.Input<string>;
93
+ }
@@ -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.getUpstreamOutput = exports.getUpstream = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Data Source schema for Volcengine::APIG::Upstream
10
+ */
11
+ function getUpstream(args, opts) {
12
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
13
+ return pulumi.runtime.invoke("volcenginecc:apig/getUpstream:getUpstream", {
14
+ "id": args.id,
15
+ }, opts);
16
+ }
17
+ exports.getUpstream = getUpstream;
18
+ /**
19
+ * Data Source schema for Volcengine::APIG::Upstream
20
+ */
21
+ function getUpstreamOutput(args, opts) {
22
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
23
+ return pulumi.runtime.invokeOutput("volcenginecc:apig/getUpstream:getUpstream", {
24
+ "id": args.id,
25
+ }, opts);
26
+ }
27
+ exports.getUpstreamOutput = getUpstreamOutput;
28
+ //# sourceMappingURL=getUpstream.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getUpstream.js","sourceRoot":"","sources":["../../apig/getUpstream.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,WAAW,CAAC,IAAqB,EAAE,IAA2B;IAC1E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,2CAA2C,EAAE;QACtE,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,kCAKC;AA6ED;;GAEG;AACH,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAAiC;IAC5F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,2CAA2C,EAAE;QAC5E,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,8CAKC"}
@@ -0,0 +1,22 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Plural Data Source schema for Volcengine::APIG::Upstream
4
+ */
5
+ export declare function getUpstreams(opts?: pulumi.InvokeOptions): Promise<GetUpstreamsResult>;
6
+ /**
7
+ * A collection of values returned by getUpstreams.
8
+ */
9
+ export interface GetUpstreamsResult {
10
+ /**
11
+ * Uniquely identifies the data source.
12
+ */
13
+ readonly id: string;
14
+ /**
15
+ * Set of Resource Identifiers.
16
+ */
17
+ readonly ids: string[];
18
+ }
19
+ /**
20
+ * Plural Data Source schema for Volcengine::APIG::Upstream
21
+ */
22
+ export declare function getUpstreamsOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetUpstreamsResult>;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getUpstreamsOutput = exports.getUpstreams = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Plural Data Source schema for Volcengine::APIG::Upstream
10
+ */
11
+ function getUpstreams(opts) {
12
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
13
+ return pulumi.runtime.invoke("volcenginecc:apig/getUpstreams:getUpstreams", {}, opts);
14
+ }
15
+ exports.getUpstreams = getUpstreams;
16
+ /**
17
+ * Plural Data Source schema for Volcengine::APIG::Upstream
18
+ */
19
+ function getUpstreamsOutput(opts) {
20
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
21
+ return pulumi.runtime.invokeOutput("volcenginecc:apig/getUpstreams:getUpstreams", {}, opts);
22
+ }
23
+ exports.getUpstreamsOutput = getUpstreamsOutput;
24
+ //# sourceMappingURL=getUpstreams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getUpstreams.js","sourceRoot":"","sources":["../../apig/getUpstreams.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,YAAY,CAAC,IAA2B;IACpD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,6CAA6C,EAAE,EAC3E,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,oCAIC;AAeD;;GAEG;AACH,SAAgB,kBAAkB,CAAC,IAAiC;IAChE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,6CAA6C,EAAE,EACjF,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,gDAIC"}
package/apig/index.d.ts CHANGED
@@ -7,12 +7,21 @@ export declare const getGatewayServiceOutput: typeof import("./getGatewayService
7
7
  export { GetGatewayServicesResult } from "./getGatewayServices";
8
8
  export declare const getGatewayServices: typeof import("./getGatewayServices").getGatewayServices;
9
9
  export declare const getGatewayServicesOutput: typeof import("./getGatewayServices").getGatewayServicesOutput;
10
+ export { GetUpstreamArgs, GetUpstreamResult, GetUpstreamOutputArgs } from "./getUpstream";
11
+ export declare const getUpstream: typeof import("./getUpstream").getUpstream;
12
+ export declare const getUpstreamOutput: typeof import("./getUpstream").getUpstreamOutput;
10
13
  export { GetUpstreamSourceArgs, GetUpstreamSourceResult, GetUpstreamSourceOutputArgs } from "./getUpstreamSource";
11
14
  export declare const getUpstreamSource: typeof import("./getUpstreamSource").getUpstreamSource;
12
15
  export declare const getUpstreamSourceOutput: typeof import("./getUpstreamSource").getUpstreamSourceOutput;
13
16
  export { GetUpstreamSourcesResult } from "./getUpstreamSources";
14
17
  export declare const getUpstreamSources: typeof import("./getUpstreamSources").getUpstreamSources;
15
18
  export declare const getUpstreamSourcesOutput: typeof import("./getUpstreamSources").getUpstreamSourcesOutput;
19
+ export { GetUpstreamsResult } from "./getUpstreams";
20
+ export declare const getUpstreams: typeof import("./getUpstreams").getUpstreams;
21
+ export declare const getUpstreamsOutput: typeof import("./getUpstreams").getUpstreamsOutput;
22
+ export { UpstreamArgs, UpstreamState } from "./upstream";
23
+ export type Upstream = import("./upstream").Upstream;
24
+ export declare const Upstream: typeof import("./upstream").Upstream;
16
25
  export { UpstreamSourceArgs, UpstreamSourceState } from "./upstreamSource";
17
26
  export type UpstreamSource = import("./upstreamSource").UpstreamSource;
18
27
  export declare const UpstreamSource: typeof import("./upstreamSource").UpstreamSource;
package/apig/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.UpstreamSource = exports.getUpstreamSourcesOutput = exports.getUpstreamSources = exports.getUpstreamSourceOutput = exports.getUpstreamSource = exports.getGatewayServicesOutput = exports.getGatewayServices = exports.getGatewayServiceOutput = exports.getGatewayService = exports.GatewayService = void 0;
5
+ exports.UpstreamSource = exports.Upstream = exports.getUpstreamsOutput = exports.getUpstreams = exports.getUpstreamSourcesOutput = exports.getUpstreamSources = exports.getUpstreamSourceOutput = exports.getUpstreamSource = exports.getUpstreamOutput = exports.getUpstream = exports.getGatewayServicesOutput = exports.getGatewayServices = exports.getGatewayServiceOutput = exports.getGatewayService = exports.GatewayService = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
8
  exports.GatewayService = null;
@@ -13,12 +13,20 @@ utilities.lazyLoad(exports, ["getGatewayService", "getGatewayServiceOutput"], ()
13
13
  exports.getGatewayServices = null;
14
14
  exports.getGatewayServicesOutput = null;
15
15
  utilities.lazyLoad(exports, ["getGatewayServices", "getGatewayServicesOutput"], () => require("./getGatewayServices"));
16
+ exports.getUpstream = null;
17
+ exports.getUpstreamOutput = null;
18
+ utilities.lazyLoad(exports, ["getUpstream", "getUpstreamOutput"], () => require("./getUpstream"));
16
19
  exports.getUpstreamSource = null;
17
20
  exports.getUpstreamSourceOutput = null;
18
21
  utilities.lazyLoad(exports, ["getUpstreamSource", "getUpstreamSourceOutput"], () => require("./getUpstreamSource"));
19
22
  exports.getUpstreamSources = null;
20
23
  exports.getUpstreamSourcesOutput = null;
21
24
  utilities.lazyLoad(exports, ["getUpstreamSources", "getUpstreamSourcesOutput"], () => require("./getUpstreamSources"));
25
+ exports.getUpstreams = null;
26
+ exports.getUpstreamsOutput = null;
27
+ utilities.lazyLoad(exports, ["getUpstreams", "getUpstreamsOutput"], () => require("./getUpstreams"));
28
+ exports.Upstream = null;
29
+ utilities.lazyLoad(exports, ["Upstream"], () => require("./upstream"));
22
30
  exports.UpstreamSource = null;
23
31
  utilities.lazyLoad(exports, ["UpstreamSource"], () => require("./upstreamSource"));
24
32
  const _module = {
@@ -27,6 +35,8 @@ const _module = {
27
35
  switch (type) {
28
36
  case "volcenginecc:apig/gatewayService:GatewayService":
29
37
  return new exports.GatewayService(name, undefined, { urn });
38
+ case "volcenginecc:apig/upstream:Upstream":
39
+ return new exports.Upstream(name, undefined, { urn });
30
40
  case "volcenginecc:apig/upstreamSource:UpstreamSource":
31
41
  return new exports.UpstreamSource(name, undefined, { urn });
32
42
  default:
@@ -35,5 +45,6 @@ const _module = {
35
45
  },
36
46
  };
37
47
  pulumi.runtime.registerResourceModule("volcenginecc", "apig/gatewayService", _module);
48
+ pulumi.runtime.registerResourceModule("volcenginecc", "apig/upstream", _module);
38
49
  pulumi.runtime.registerResourceModule("volcenginecc", "apig/upstreamSource", _module);
39
50
  //# sourceMappingURL=index.js.map
package/apig/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../apig/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B,QAAA,cAAc,GAAqD,IAAW,CAAC;AAC5F,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,gBAAgB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC;AAGtE,QAAA,iBAAiB,GAA2D,IAAW,CAAC;AACxF,QAAA,uBAAuB,GAAiE,IAAW,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AAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,iDAAiD;gBAClD,OAAO,IAAI,sBAAc,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC5D,KAAK,qCAAqC;gBACtC,OAAO,IAAI,gBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACtD,KAAK,iDAAiD;gBAClD,OAAO,IAAI,sBAAc,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC5D;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,cAAc,EAAE,qBAAqB,EAAE,OAAO,CAAC,CAAA;AACrF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,cAAc,EAAE,eAAe,EAAE,OAAO,CAAC,CAAA;AAC/E,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,cAAc,EAAE,qBAAqB,EAAE,OAAO,CAAC,CAAA"}
@@ -0,0 +1,183 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "../types/input";
3
+ import * as outputs from "../types/output";
4
+ /**
5
+ * Upstream 是对 API 网关实例后端的抽象。您可以将具有相同功能的后端应用抽象为一个 Upstream,实现路由和后端应用解耦,更灵活地支持后端应用的灰度发布、多版本管理等场景。本文为您介绍 Upstream 的概念及作用。
6
+ *
7
+ * ## Import
8
+ *
9
+ * ```sh
10
+ * $ pulumi import volcenginecc:apig/upstream:Upstream example "upstream_id"
11
+ * ```
12
+ */
13
+ export declare class Upstream extends pulumi.CustomResource {
14
+ /**
15
+ * Get an existing Upstream 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?: UpstreamState, opts?: pulumi.CustomResourceOptions): Upstream;
24
+ /**
25
+ * Returns true if the given object is an instance of Upstream. 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 Upstream;
29
+ readonly backendTargets: pulumi.Output<outputs.apig.UpstreamBackendTarget[]>;
30
+ /**
31
+ * 服务熔断配置。
32
+ */
33
+ readonly circuitBreakingSettings: pulumi.Output<outputs.apig.UpstreamCircuitBreakingSettings>;
34
+ /**
35
+ * 备注。
36
+ */
37
+ readonly comments: pulumi.Output<string>;
38
+ /**
39
+ * Upstream创建时间。
40
+ */
41
+ readonly createdTime: pulumi.Output<string>;
42
+ /**
43
+ * 网关实例ID。
44
+ */
45
+ readonly gatewayId: pulumi.Output<string>;
46
+ /**
47
+ * 负载均衡配置。
48
+ */
49
+ readonly loadBalancerSettings: pulumi.Output<outputs.apig.UpstreamLoadBalancerSettings>;
50
+ /**
51
+ * Upstream名称。
52
+ */
53
+ readonly name: pulumi.Output<string>;
54
+ /**
55
+ * 协议,取值:HTTP:HTTP/1.1。HTTP2:HTTP/2。GRPC:GRPC。
56
+ */
57
+ readonly protocol: pulumi.Output<string>;
58
+ /**
59
+ * Upstream来源类型,取值:VeFaas:函数服务。ECS:云服务器。K8S:容器服务。Nacos:注册中心。AIProvider:AI模型代理。
60
+ */
61
+ readonly sourceType: pulumi.Output<string>;
62
+ /**
63
+ * TLS配置。
64
+ */
65
+ readonly tlsSettings: pulumi.Output<outputs.apig.UpstreamTlsSettings>;
66
+ /**
67
+ * Upstream更新时间。
68
+ */
69
+ readonly updatedTime: pulumi.Output<string>;
70
+ /**
71
+ * Upstream ID。
72
+ */
73
+ readonly upstreamId: pulumi.Output<string>;
74
+ /**
75
+ * Upstream配置。
76
+ */
77
+ readonly upstreamSpec: pulumi.Output<outputs.apig.UpstreamUpstreamSpec>;
78
+ readonly versionDetails: pulumi.Output<outputs.apig.UpstreamVersionDetail[]>;
79
+ /**
80
+ * Create a Upstream resource with the given unique name, arguments, and options.
81
+ *
82
+ * @param name The _unique_ name of the resource.
83
+ * @param args The arguments to use to populate this resource's properties.
84
+ * @param opts A bag of options that control this resource's behavior.
85
+ */
86
+ constructor(name: string, args: UpstreamArgs, opts?: pulumi.CustomResourceOptions);
87
+ }
88
+ /**
89
+ * Input properties used for looking up and filtering Upstream resources.
90
+ */
91
+ export interface UpstreamState {
92
+ backendTargets?: pulumi.Input<pulumi.Input<inputs.apig.UpstreamBackendTarget>[]>;
93
+ /**
94
+ * 服务熔断配置。
95
+ */
96
+ circuitBreakingSettings?: pulumi.Input<inputs.apig.UpstreamCircuitBreakingSettings>;
97
+ /**
98
+ * 备注。
99
+ */
100
+ comments?: pulumi.Input<string>;
101
+ /**
102
+ * Upstream创建时间。
103
+ */
104
+ createdTime?: pulumi.Input<string>;
105
+ /**
106
+ * 网关实例ID。
107
+ */
108
+ gatewayId?: pulumi.Input<string>;
109
+ /**
110
+ * 负载均衡配置。
111
+ */
112
+ loadBalancerSettings?: pulumi.Input<inputs.apig.UpstreamLoadBalancerSettings>;
113
+ /**
114
+ * Upstream名称。
115
+ */
116
+ name?: pulumi.Input<string>;
117
+ /**
118
+ * 协议,取值:HTTP:HTTP/1.1。HTTP2:HTTP/2。GRPC:GRPC。
119
+ */
120
+ protocol?: pulumi.Input<string>;
121
+ /**
122
+ * Upstream来源类型,取值:VeFaas:函数服务。ECS:云服务器。K8S:容器服务。Nacos:注册中心。AIProvider:AI模型代理。
123
+ */
124
+ sourceType?: pulumi.Input<string>;
125
+ /**
126
+ * TLS配置。
127
+ */
128
+ tlsSettings?: pulumi.Input<inputs.apig.UpstreamTlsSettings>;
129
+ /**
130
+ * Upstream更新时间。
131
+ */
132
+ updatedTime?: pulumi.Input<string>;
133
+ /**
134
+ * Upstream ID。
135
+ */
136
+ upstreamId?: pulumi.Input<string>;
137
+ /**
138
+ * Upstream配置。
139
+ */
140
+ upstreamSpec?: pulumi.Input<inputs.apig.UpstreamUpstreamSpec>;
141
+ versionDetails?: pulumi.Input<pulumi.Input<inputs.apig.UpstreamVersionDetail>[]>;
142
+ }
143
+ /**
144
+ * The set of arguments for constructing a Upstream resource.
145
+ */
146
+ export interface UpstreamArgs {
147
+ /**
148
+ * 服务熔断配置。
149
+ */
150
+ circuitBreakingSettings?: pulumi.Input<inputs.apig.UpstreamCircuitBreakingSettings>;
151
+ /**
152
+ * 备注。
153
+ */
154
+ comments?: pulumi.Input<string>;
155
+ /**
156
+ * 网关实例ID。
157
+ */
158
+ gatewayId: pulumi.Input<string>;
159
+ /**
160
+ * 负载均衡配置。
161
+ */
162
+ loadBalancerSettings?: pulumi.Input<inputs.apig.UpstreamLoadBalancerSettings>;
163
+ /**
164
+ * Upstream名称。
165
+ */
166
+ name: pulumi.Input<string>;
167
+ /**
168
+ * 协议,取值:HTTP:HTTP/1.1。HTTP2:HTTP/2。GRPC:GRPC。
169
+ */
170
+ protocol?: pulumi.Input<string>;
171
+ /**
172
+ * Upstream来源类型,取值:VeFaas:函数服务。ECS:云服务器。K8S:容器服务。Nacos:注册中心。AIProvider:AI模型代理。
173
+ */
174
+ sourceType: pulumi.Input<string>;
175
+ /**
176
+ * TLS配置。
177
+ */
178
+ tlsSettings?: pulumi.Input<inputs.apig.UpstreamTlsSettings>;
179
+ /**
180
+ * Upstream配置。
181
+ */
182
+ upstreamSpec: pulumi.Input<inputs.apig.UpstreamUpstreamSpec>;
183
+ }
@@ -0,0 +1,96 @@
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.Upstream = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Upstream 是对 API 网关实例后端的抽象。您可以将具有相同功能的后端应用抽象为一个 Upstream,实现路由和后端应用解耦,更灵活地支持后端应用的灰度发布、多版本管理等场景。本文为您介绍 Upstream 的概念及作用。
10
+ *
11
+ * ## Import
12
+ *
13
+ * ```sh
14
+ * $ pulumi import volcenginecc:apig/upstream:Upstream example "upstream_id"
15
+ * ```
16
+ */
17
+ class Upstream extends pulumi.CustomResource {
18
+ /**
19
+ * Get an existing Upstream 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 Upstream(name, state, Object.assign(Object.assign({}, opts), { id: id }));
29
+ }
30
+ /**
31
+ * Returns true if the given object is an instance of Upstream. 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'] === Upstream.__pulumiType;
39
+ }
40
+ constructor(name, argsOrState, opts) {
41
+ let resourceInputs = {};
42
+ opts = opts || {};
43
+ if (opts.id) {
44
+ const state = argsOrState;
45
+ resourceInputs["backendTargets"] = state ? state.backendTargets : undefined;
46
+ resourceInputs["circuitBreakingSettings"] = state ? state.circuitBreakingSettings : undefined;
47
+ resourceInputs["comments"] = state ? state.comments : undefined;
48
+ resourceInputs["createdTime"] = state ? state.createdTime : undefined;
49
+ resourceInputs["gatewayId"] = state ? state.gatewayId : undefined;
50
+ resourceInputs["loadBalancerSettings"] = state ? state.loadBalancerSettings : undefined;
51
+ resourceInputs["name"] = state ? state.name : undefined;
52
+ resourceInputs["protocol"] = state ? state.protocol : undefined;
53
+ resourceInputs["sourceType"] = state ? state.sourceType : undefined;
54
+ resourceInputs["tlsSettings"] = state ? state.tlsSettings : undefined;
55
+ resourceInputs["updatedTime"] = state ? state.updatedTime : undefined;
56
+ resourceInputs["upstreamId"] = state ? state.upstreamId : undefined;
57
+ resourceInputs["upstreamSpec"] = state ? state.upstreamSpec : undefined;
58
+ resourceInputs["versionDetails"] = state ? state.versionDetails : undefined;
59
+ }
60
+ else {
61
+ const args = argsOrState;
62
+ if ((!args || args.gatewayId === undefined) && !opts.urn) {
63
+ throw new Error("Missing required property 'gatewayId'");
64
+ }
65
+ if ((!args || args.name === undefined) && !opts.urn) {
66
+ throw new Error("Missing required property 'name'");
67
+ }
68
+ if ((!args || args.sourceType === undefined) && !opts.urn) {
69
+ throw new Error("Missing required property 'sourceType'");
70
+ }
71
+ if ((!args || args.upstreamSpec === undefined) && !opts.urn) {
72
+ throw new Error("Missing required property 'upstreamSpec'");
73
+ }
74
+ resourceInputs["circuitBreakingSettings"] = args ? args.circuitBreakingSettings : undefined;
75
+ resourceInputs["comments"] = args ? args.comments : undefined;
76
+ resourceInputs["gatewayId"] = args ? args.gatewayId : undefined;
77
+ resourceInputs["loadBalancerSettings"] = args ? args.loadBalancerSettings : undefined;
78
+ resourceInputs["name"] = args ? args.name : undefined;
79
+ resourceInputs["protocol"] = args ? args.protocol : undefined;
80
+ resourceInputs["sourceType"] = args ? args.sourceType : undefined;
81
+ resourceInputs["tlsSettings"] = args ? args.tlsSettings : undefined;
82
+ resourceInputs["upstreamSpec"] = args ? args.upstreamSpec : undefined;
83
+ resourceInputs["backendTargets"] = undefined /*out*/;
84
+ resourceInputs["createdTime"] = undefined /*out*/;
85
+ resourceInputs["updatedTime"] = undefined /*out*/;
86
+ resourceInputs["upstreamId"] = undefined /*out*/;
87
+ resourceInputs["versionDetails"] = undefined /*out*/;
88
+ }
89
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
90
+ super(Upstream.__pulumiType, name, resourceInputs, opts);
91
+ }
92
+ }
93
+ exports.Upstream = Upstream;
94
+ /** @internal */
95
+ Upstream.__pulumiType = 'volcenginecc:apig/upstream:Upstream';
96
+ //# sourceMappingURL=upstream.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upstream.js","sourceRoot":"","sources":["../../apig/upstream.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;GAQG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;IA6DD,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwC,CAAC;YACvD,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,cAAc,CAAC,yBAAyB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9F,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CA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CAAC;YACtD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACrD,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACxD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AAzIL,4BA0IC;AA5HG,gBAAgB;AACO,qBAAY,GAAG,qCAAqC,CAAC"}
@@ -0,0 +1,81 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "../types/output";
3
+ /**
4
+ * Data Source schema for Volcengine::CDN::ShareConfig
5
+ */
6
+ export declare function getShareConfig(args: GetShareConfigArgs, opts?: pulumi.InvokeOptions): Promise<GetShareConfigResult>;
7
+ /**
8
+ * A collection of arguments for invoking getShareConfig.
9
+ */
10
+ export interface GetShareConfigArgs {
11
+ /**
12
+ * Uniquely identifies the resource.
13
+ */
14
+ id: string;
15
+ }
16
+ /**
17
+ * A collection of values returned by getShareConfig.
18
+ */
19
+ export interface GetShareConfigResult {
20
+ /**
21
+ * 表示一个 IP 白名单的配置,对应 ConfigType 是 allow*ip*access*rule。
22
+ */
23
+ readonly allowIpAccessRule: outputs.cdn.GetShareConfigAllowIpAccessRule;
24
+ /**
25
+ * 表示一个 Referer 白名单的配置,对应 ConfigType 是 allow*referer*access*rule。
26
+ */
27
+ readonly allowRefererAccessRule: outputs.cdn.GetShareConfigAllowRefererAccessRule;
28
+ /**
29
+ * 表示一个通用列表的配置,对应 ConfigType 是 common*match*list。
30
+ */
31
+ readonly commonMatchs: outputs.cdn.GetShareConfigCommonMatchs;
32
+ /**
33
+ * 表示全局配置的名称。名称有以下要求:名称可以包含汉字、字母、数字、下划线(_),长度在 3-45 个字符之间。一个汉字占 3 个字符。名称不能与主账号下某个已有的全局配置的名称相同。
34
+ */
35
+ readonly configName: string;
36
+ /**
37
+ * 表示该全局配置的类型。该参数有以下取值:deny*ip*access*rule:表示 IP 黑名单。allow*ip*access*rule:表示 IP 白名单。deny*referer*access*rule:表示 Referer 黑名单。allow*referer*access*rule:表示 Referer 白名单。common*match*list:表示通用列表。
38
+ */
39
+ readonly configType: string;
40
+ /**
41
+ * 表示一个 IP 黑名单的配置,对应 ConfigType 是 deny*ip*access*rule。
42
+ */
43
+ readonly denyIpAccessRule: outputs.cdn.GetShareConfigDenyIpAccessRule;
44
+ /**
45
+ * 表示一个 Referer 黑名单的配置,对应 ConfigType 是 deny*referer*access*rule。
46
+ */
47
+ readonly denyRefererAccessRule: outputs.cdn.GetShareConfigDenyRefererAccessRule;
48
+ /**
49
+ * 表示与该全局配置关联的加速域名的数量。
50
+ */
51
+ readonly domainCount: number;
52
+ /**
53
+ * Uniquely identifies the resource.
54
+ */
55
+ readonly id: string;
56
+ /**
57
+ * 表示该全局配置所归属的项目名称。
58
+ */
59
+ readonly project: string;
60
+ /**
61
+ * 表示该自定义错误页面的 HTML 代码。
62
+ */
63
+ readonly ruleContent: string;
64
+ /**
65
+ * 表示该全局配置的最近修改时间,单位是 Unix 时间戳。
66
+ */
67
+ readonly updatedTime: number;
68
+ }
69
+ /**
70
+ * Data Source schema for Volcengine::CDN::ShareConfig
71
+ */
72
+ export declare function getShareConfigOutput(args: GetShareConfigOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetShareConfigResult>;
73
+ /**
74
+ * A collection of arguments for invoking getShareConfig.
75
+ */
76
+ export interface GetShareConfigOutputArgs {
77
+ /**
78
+ * Uniquely identifies the resource.
79
+ */
80
+ id: pulumi.Input<string>;
81
+ }
@@ -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.getShareConfigOutput = exports.getShareConfig = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Data Source schema for Volcengine::CDN::ShareConfig
10
+ */
11
+ function getShareConfig(args, opts) {
12
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
13
+ return pulumi.runtime.invoke("volcenginecc:cdn/getShareConfig:getShareConfig", {
14
+ "id": args.id,
15
+ }, opts);
16
+ }
17
+ exports.getShareConfig = getShareConfig;
18
+ /**
19
+ * Data Source schema for Volcengine::CDN::ShareConfig
20
+ */
21
+ function getShareConfigOutput(args, opts) {
22
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
23
+ return pulumi.runtime.invokeOutput("volcenginecc:cdn/getShareConfig:getShareConfig", {
24
+ "id": args.id,
25
+ }, opts);
26
+ }
27
+ exports.getShareConfigOutput = getShareConfigOutput;
28
+ //# sourceMappingURL=getShareConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getShareConfig.js","sourceRoot":"","sources":["../../cdn/getShareConfig.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,cAAc,CAAC,IAAwB,EAAE,IAA2B;IAChF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gDAAgD,EAAE;QAC3E,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,wCAKC;AAiED;;GAEG;AACH,SAAgB,oBAAoB,CAAC,IAA8B,EAAE,IAAiC;IAClG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,gDAAgD,EAAE;QACjF,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,oDAKC"}