@volcengine/pulumi 0.0.33 → 0.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apig/apigCustomDomain.d.ts +244 -0
- package/apig/apigCustomDomain.js +167 -0
- package/apig/apigCustomDomain.js.map +1 -0
- package/apig/apigGateway.d.ts +262 -0
- package/apig/apigGateway.js +150 -0
- package/apig/apigGateway.js.map +1 -0
- package/apig/apigGatewayService.d.ts +206 -0
- package/apig/apigGatewayService.js +159 -0
- package/apig/apigGatewayService.js.map +1 -0
- package/apig/apigRoute.d.ts +397 -0
- package/apig/apigRoute.js +299 -0
- package/apig/apigRoute.js.map +1 -0
- package/apig/apigUpstream.d.ts +375 -0
- package/apig/apigUpstream.js +278 -0
- package/apig/apigUpstream.js.map +1 -0
- package/apig/apigUpstreamSource.d.ts +214 -0
- package/apig/apigUpstreamSource.js +182 -0
- package/apig/apigUpstreamSource.js.map +1 -0
- package/apig/apigUpstreamVersion.d.ts +211 -0
- package/apig/apigUpstreamVersion.js +206 -0
- package/apig/apigUpstreamVersion.js.map +1 -0
- package/apig/customDomains.d.ts +112 -0
- package/apig/customDomains.js +55 -0
- package/apig/customDomains.js.map +1 -0
- package/apig/gatewayServices.d.ts +104 -0
- package/apig/gatewayServices.js +52 -0
- package/apig/gatewayServices.js.map +1 -0
- package/apig/gateways.d.ts +162 -0
- package/apig/gateways.js +63 -0
- package/apig/gateways.js.map +1 -0
- package/apig/getCustomDomains.d.ts +110 -0
- package/apig/getCustomDomains.js +52 -0
- package/apig/getCustomDomains.js.map +1 -0
- package/apig/getGatewayServices.d.ts +102 -0
- package/apig/getGatewayServices.js +49 -0
- package/apig/getGatewayServices.js.map +1 -0
- package/apig/getGateways.d.ts +160 -0
- package/apig/getGateways.js +60 -0
- package/apig/getGateways.js.map +1 -0
- package/apig/getRoutes.d.ts +153 -0
- package/apig/getRoutes.js +54 -0
- package/apig/getRoutes.js.map +1 -0
- package/apig/getUpstreamSources.d.ts +123 -0
- package/apig/getUpstreamSources.js +51 -0
- package/apig/getUpstreamSources.js.map +1 -0
- package/apig/getUpstreamVersions.d.ts +84 -0
- package/apig/getUpstreamVersions.js +47 -0
- package/apig/getUpstreamVersions.js.map +1 -0
- package/apig/getUpstreams.d.ts +140 -0
- package/apig/getUpstreams.js +60 -0
- package/apig/getUpstreams.js.map +1 -0
- package/apig/index.d.ts +63 -0
- package/apig/index.js +94 -0
- package/apig/index.js.map +1 -0
- package/apig/routes.d.ts +155 -0
- package/apig/routes.js +57 -0
- package/apig/routes.js.map +1 -0
- package/apig/upstreamSources.d.ts +125 -0
- package/apig/upstreamSources.js +54 -0
- package/apig/upstreamSources.js.map +1 -0
- package/apig/upstreamVersions.d.ts +86 -0
- package/apig/upstreamVersions.js +50 -0
- package/apig/upstreamVersions.js.map +1 -0
- package/apig/upstreams.d.ts +142 -0
- package/apig/upstreams.js +63 -0
- package/apig/upstreams.js.map +1 -0
- package/cen/interRegionBandwidth.d.ts +12 -0
- package/cen/interRegionBandwidth.js +2 -0
- package/cen/interRegionBandwidth.js.map +1 -1
- package/index.d.ts +3 -1
- package/index.js +6 -2
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/types/input.d.ts +5918 -4016
- package/types/output.d.ts +35080 -27674
- package/vpc/cidrBlockAssociate.d.ts +83 -0
- package/vpc/cidrBlockAssociate.js +80 -0
- package/vpc/cidrBlockAssociate.js.map +1 -0
- package/vpc/flowLog.d.ts +266 -0
- package/vpc/flowLog.js +148 -0
- package/vpc/flowLog.js.map +1 -0
- package/vpc/flowLogActive.d.ts +103 -0
- package/vpc/flowLogActive.js +101 -0
- package/vpc/flowLogActive.js.map +1 -0
- package/vpc/flowLogs.d.ts +231 -0
- package/vpc/flowLogs.js +63 -0
- package/vpc/flowLogs.js.map +1 -0
- package/vpc/getFlowLogs.d.ts +229 -0
- package/vpc/getFlowLogs.js +60 -0
- package/vpc/getFlowLogs.js.map +1 -0
- package/vpc/getSubnets.d.ts +9 -0
- package/vpc/getSubnets.js +1 -0
- package/vpc/getSubnets.js.map +1 -1
- package/vpc/getTrafficMirrorFilterRules.d.ts +103 -0
- package/vpc/getTrafficMirrorFilterRules.js +50 -0
- package/vpc/getTrafficMirrorFilterRules.js.map +1 -0
- package/vpc/getTrafficMirrorFilters.d.ts +118 -0
- package/vpc/getTrafficMirrorFilters.js +51 -0
- package/vpc/getTrafficMirrorFilters.js.map +1 -0
- package/vpc/getTrafficMirrorSessions.d.ts +187 -0
- package/vpc/getTrafficMirrorSessions.js +57 -0
- package/vpc/getTrafficMirrorSessions.js.map +1 -0
- package/vpc/getTrafficMirrorTargets.d.ts +121 -0
- package/vpc/getTrafficMirrorTargets.js +51 -0
- package/vpc/getTrafficMirrorTargets.js.map +1 -0
- package/vpc/getVpcs.d.ts +9 -0
- package/vpc/getVpcs.js +1 -0
- package/vpc/getVpcs.js.map +1 -1
- package/vpc/index.d.ts +51 -0
- package/vpc/index.js +67 -2
- package/vpc/index.js.map +1 -1
- package/vpc/subnets.d.ts +9 -0
- package/vpc/subnets.js +1 -0
- package/vpc/subnets.js.map +1 -1
- package/vpc/trafficMirrorFilter.d.ts +137 -0
- package/vpc/trafficMirrorFilter.js +88 -0
- package/vpc/trafficMirrorFilter.js.map +1 -0
- package/vpc/trafficMirrorFilterRule.d.ts +245 -0
- package/vpc/trafficMirrorFilterRule.js +144 -0
- package/vpc/trafficMirrorFilterRule.js.map +1 -0
- package/vpc/trafficMirrorFilterRules.d.ts +105 -0
- package/vpc/trafficMirrorFilterRules.js +53 -0
- package/vpc/trafficMirrorFilterRules.js.map +1 -0
- package/vpc/trafficMirrorFilters.d.ts +120 -0
- package/vpc/trafficMirrorFilters.js +54 -0
- package/vpc/trafficMirrorFilters.js.map +1 -0
- package/vpc/trafficMirrorSession.d.ts +330 -0
- package/vpc/trafficMirrorSession.js +221 -0
- package/vpc/trafficMirrorSession.js.map +1 -0
- package/vpc/trafficMirrorSessions.d.ts +189 -0
- package/vpc/trafficMirrorSessions.js +60 -0
- package/vpc/trafficMirrorSessions.js.map +1 -0
- package/vpc/trafficMirrorTarget.d.ts +222 -0
- package/vpc/trafficMirrorTarget.js +159 -0
- package/vpc/trafficMirrorTarget.js.map +1 -0
- package/vpc/trafficMirrorTargets.d.ts +123 -0
- package/vpc/trafficMirrorTargets.js +54 -0
- package/vpc/trafficMirrorTargets.js.map +1 -0
- package/vpc/vpc.d.ts +8 -0
- package/vpc/vpc.js +2 -0
- package/vpc/vpc.js.map +1 -1
- package/vpc/vpcs.d.ts +9 -0
- package/vpc/vpcs.js +1 -0
- package/vpc/vpcs.js.map +1 -1
- package/waf/aclRule.d.ts +326 -0
- package/waf/aclRule.js +150 -0
- package/waf/aclRule.js.map +1 -0
- package/waf/aclRules.d.ts +170 -0
- package/waf/aclRules.js +69 -0
- package/waf/aclRules.js.map +1 -0
- package/waf/botAnalyseProtectRule.d.ts +320 -0
- package/waf/botAnalyseProtectRule.js +171 -0
- package/waf/botAnalyseProtectRule.js.map +1 -0
- package/waf/botAnalyseProtectRules.d.ts +145 -0
- package/waf/botAnalyseProtectRules.js +57 -0
- package/waf/botAnalyseProtectRules.js.map +1 -0
- package/waf/ccRule.d.ts +337 -0
- package/waf/ccRule.js +182 -0
- package/waf/ccRule.js.map +1 -0
- package/waf/ccRules.d.ts +149 -0
- package/waf/ccRules.js +61 -0
- package/waf/ccRules.js.map +1 -0
- package/waf/customBot.d.ts +191 -0
- package/waf/customBot.js +127 -0
- package/waf/customBot.js.map +1 -0
- package/waf/customBots.d.ts +86 -0
- package/waf/customBots.js +51 -0
- package/waf/customBots.js.map +1 -0
- package/waf/customPage.d.ts +310 -0
- package/waf/customPage.js +160 -0
- package/waf/customPage.js.map +1 -0
- package/waf/customPages.d.ts +110 -0
- package/waf/customPages.js +52 -0
- package/waf/customPages.js.map +1 -0
- package/waf/domains.d.ts +94 -0
- package/waf/domains.js +48 -0
- package/waf/domains.js.map +1 -0
- package/waf/getAclRules.d.ts +168 -0
- package/waf/getAclRules.js +66 -0
- package/waf/getAclRules.js.map +1 -0
- package/waf/getBotAnalyseProtectRules.d.ts +143 -0
- package/waf/getBotAnalyseProtectRules.js +54 -0
- package/waf/getBotAnalyseProtectRules.js.map +1 -0
- package/waf/getCcRules.d.ts +147 -0
- package/waf/getCcRules.js +58 -0
- package/waf/getCcRules.js.map +1 -0
- package/waf/getCustomBots.d.ts +84 -0
- package/waf/getCustomBots.js +48 -0
- package/waf/getCustomBots.js.map +1 -0
- package/waf/getCustomPages.d.ts +108 -0
- package/waf/getCustomPages.js +49 -0
- package/waf/getCustomPages.js.map +1 -0
- package/waf/getDomains.d.ts +92 -0
- package/waf/getDomains.js +45 -0
- package/waf/getDomains.js.map +1 -0
- package/waf/getHostGroups.d.ts +146 -0
- package/waf/getHostGroups.js +55 -0
- package/waf/getHostGroups.js.map +1 -0
- package/waf/getIpGroups.d.ts +105 -0
- package/waf/getIpGroups.js +49 -0
- package/waf/getIpGroups.js.map +1 -0
- package/waf/getProhibitions.d.ts +127 -0
- package/waf/getProhibitions.js +55 -0
- package/waf/getProhibitions.js.map +1 -0
- package/waf/getServiceCertificates.d.ts +71 -0
- package/waf/getServiceCertificates.js +43 -0
- package/waf/getServiceCertificates.js.map +1 -0
- package/waf/getSystemBots.d.ts +84 -0
- package/waf/getSystemBots.js +47 -0
- package/waf/getSystemBots.js.map +1 -0
- package/waf/hostGroup.d.ts +152 -0
- package/waf/hostGroup.js +90 -0
- package/waf/hostGroup.js.map +1 -0
- package/waf/hostGroups.d.ts +148 -0
- package/waf/hostGroups.js +58 -0
- package/waf/hostGroups.js.map +1 -0
- package/waf/index.d.ts +99 -0
- package/waf/index.js +139 -0
- package/waf/index.js.map +1 -0
- package/waf/instanceCtl.d.ts +95 -0
- package/waf/instanceCtl.js +76 -0
- package/waf/instanceCtl.js.map +1 -0
- package/waf/ipGroup.d.ts +132 -0
- package/waf/ipGroup.js +93 -0
- package/waf/ipGroup.js.map +1 -0
- package/waf/ipGroups.d.ts +107 -0
- package/waf/ipGroups.js +52 -0
- package/waf/ipGroups.js.map +1 -0
- package/waf/prohibitions.d.ts +129 -0
- package/waf/prohibitions.js +58 -0
- package/waf/prohibitions.js.map +1 -0
- package/waf/serviceCertificates.d.ts +73 -0
- package/waf/serviceCertificates.js +46 -0
- package/waf/serviceCertificates.js.map +1 -0
- package/waf/systemBot.d.ts +137 -0
- package/waf/systemBot.js +92 -0
- package/waf/systemBot.js.map +1 -0
- package/waf/systemBots.d.ts +86 -0
- package/waf/systemBots.js +50 -0
- package/waf/systemBots.js.map +1 -0
- package/waf/vulnerability.d.ts +116 -0
- package/waf/vulnerability.js +72 -0
- package/waf/vulnerability.js.map +1 -0
- package/waf/wafDomain.d.ts +877 -0
- package/waf/wafDomain.js +252 -0
- package/waf/wafDomain.js.map +1 -0
|
@@ -0,0 +1,214 @@
|
|
|
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 apig upstream source
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
11
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
12
|
+
*
|
|
13
|
+
* const fooZones = volcengine.ecs.getZones({});
|
|
14
|
+
* const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
|
|
15
|
+
* vpcName: "acc-test-vpc",
|
|
16
|
+
* cidrBlock: "172.16.0.0/16",
|
|
17
|
+
* });
|
|
18
|
+
* const foo1 = new volcengine.vpc.Subnet("foo1", {
|
|
19
|
+
* subnetName: "acc-test-subnet",
|
|
20
|
+
* cidrBlock: "172.16.0.0/24",
|
|
21
|
+
* zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
|
|
22
|
+
* vpcId: fooVpc.id,
|
|
23
|
+
* });
|
|
24
|
+
* const foo2 = new volcengine.vpc.Subnet("foo2", {
|
|
25
|
+
* subnetName: "acc-test-subnet",
|
|
26
|
+
* cidrBlock: "172.16.1.0/24",
|
|
27
|
+
* zoneId: fooZones.then(fooZones => fooZones.zones?.[1]?.id),
|
|
28
|
+
* vpcId: fooVpc.id,
|
|
29
|
+
* });
|
|
30
|
+
* const fooApigGateway = new volcengine.apig.ApigGateway("fooApigGateway", {
|
|
31
|
+
* type: "standard",
|
|
32
|
+
* comments: "acc-test",
|
|
33
|
+
* projectName: "default",
|
|
34
|
+
* tags: [{
|
|
35
|
+
* key: "k1",
|
|
36
|
+
* value: "v1",
|
|
37
|
+
* }],
|
|
38
|
+
* networkSpec: {
|
|
39
|
+
* vpcId: fooVpc.id,
|
|
40
|
+
* subnetIds: [
|
|
41
|
+
* foo1.id,
|
|
42
|
+
* foo2.id,
|
|
43
|
+
* ],
|
|
44
|
+
* },
|
|
45
|
+
* resourceSpec: {
|
|
46
|
+
* replicas: 2,
|
|
47
|
+
* instanceSpecCode: "1c2g",
|
|
48
|
+
* clbSpecCode: "small_1",
|
|
49
|
+
* publicNetworkBillingType: "bandwidth",
|
|
50
|
+
* publicNetworkBandwidth: 1,
|
|
51
|
+
* networkType: {
|
|
52
|
+
* enablePublicNetwork: true,
|
|
53
|
+
* enablePrivateNetwork: true,
|
|
54
|
+
* },
|
|
55
|
+
* },
|
|
56
|
+
* logSpec: {
|
|
57
|
+
* enable: true,
|
|
58
|
+
* projectId: "d3cb87c0-faeb-4074-b1ee-9bd747865a76",
|
|
59
|
+
* topicId: "d339482e-d86d-4bd8-a9bb-f270417f00a1",
|
|
60
|
+
* },
|
|
61
|
+
* monitorSpec: {
|
|
62
|
+
* enable: true,
|
|
63
|
+
* workspaceId: "4ed1caf3-279d-4c5f-8301-87ea38e92ffc",
|
|
64
|
+
* },
|
|
65
|
+
* });
|
|
66
|
+
* const fooApigGatewayService = new volcengine.apig.ApigGatewayService("fooApigGatewayService", {
|
|
67
|
+
* gatewayId: fooApigGateway.id,
|
|
68
|
+
* serviceName: "acc-test-apig-service",
|
|
69
|
+
* comments: "acc-test",
|
|
70
|
+
* protocols: [
|
|
71
|
+
* "HTTP",
|
|
72
|
+
* "HTTPS",
|
|
73
|
+
* ],
|
|
74
|
+
* authSpec: {
|
|
75
|
+
* enable: false,
|
|
76
|
+
* },
|
|
77
|
+
* });
|
|
78
|
+
* const foo_nacos = new volcengine.apig.ApigUpstreamSource("foo-nacos", {
|
|
79
|
+
* gatewayId: fooApigGateway.id,
|
|
80
|
+
* comments: "acc-test-nacos",
|
|
81
|
+
* sourceType: "Nacos",
|
|
82
|
+
* sourceSpec: {
|
|
83
|
+
* nacosSource: {
|
|
84
|
+
* nacosId: "nd197ls631meck48imm7g",
|
|
85
|
+
* authConfig: {
|
|
86
|
+
* basic: {
|
|
87
|
+
* username: "nacos",
|
|
88
|
+
* password: "******",
|
|
89
|
+
* },
|
|
90
|
+
* },
|
|
91
|
+
* },
|
|
92
|
+
* },
|
|
93
|
+
* });
|
|
94
|
+
* const foo_k8s = new volcengine.apig.ApigUpstreamSource("foo-k8s", {
|
|
95
|
+
* gatewayId: fooApigGateway.id,
|
|
96
|
+
* comments: "acc-test-k8s",
|
|
97
|
+
* sourceType: "K8S",
|
|
98
|
+
* sourceSpec: {
|
|
99
|
+
* k8sSource: {
|
|
100
|
+
* clusterId: "cd197sac4mpmnruh7um80",
|
|
101
|
+
* },
|
|
102
|
+
* },
|
|
103
|
+
* ingressSettings: [{
|
|
104
|
+
* enableIngress: true,
|
|
105
|
+
* updateStatus: true,
|
|
106
|
+
* ingressClasses: ["test"],
|
|
107
|
+
* watchNamespaces: ["default"],
|
|
108
|
+
* }],
|
|
109
|
+
* });
|
|
110
|
+
* ```
|
|
111
|
+
*
|
|
112
|
+
* ## Import
|
|
113
|
+
*
|
|
114
|
+
* ApigUpstreamSource can be imported using the id, e.g.
|
|
115
|
+
*
|
|
116
|
+
* ```sh
|
|
117
|
+
* $ pulumi import volcengine:apig/apigUpstreamSource:ApigUpstreamSource default resource_id
|
|
118
|
+
* ```
|
|
119
|
+
*/
|
|
120
|
+
export declare class ApigUpstreamSource extends pulumi.CustomResource {
|
|
121
|
+
/**
|
|
122
|
+
* Get an existing ApigUpstreamSource resource's state with the given name, ID, and optional extra
|
|
123
|
+
* properties used to qualify the lookup.
|
|
124
|
+
*
|
|
125
|
+
* @param name The _unique_ name of the resulting resource.
|
|
126
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
127
|
+
* @param state Any extra arguments used during the lookup.
|
|
128
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
129
|
+
*/
|
|
130
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ApigUpstreamSourceState, opts?: pulumi.CustomResourceOptions): ApigUpstreamSource;
|
|
131
|
+
/**
|
|
132
|
+
* Returns true if the given object is an instance of ApigUpstreamSource. This is designed to work even
|
|
133
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
134
|
+
*/
|
|
135
|
+
static isInstance(obj: any): obj is ApigUpstreamSource;
|
|
136
|
+
/**
|
|
137
|
+
* The comments of the apig upstream source.
|
|
138
|
+
*/
|
|
139
|
+
readonly comments: pulumi.Output<string | undefined>;
|
|
140
|
+
/**
|
|
141
|
+
* The gateway id of the apig upstream source.
|
|
142
|
+
*/
|
|
143
|
+
readonly gatewayId: pulumi.Output<string>;
|
|
144
|
+
/**
|
|
145
|
+
* The ingress settings of apig upstream source.
|
|
146
|
+
*/
|
|
147
|
+
readonly ingressSettings: pulumi.Output<outputs.apig.ApigUpstreamSourceIngressSetting[]>;
|
|
148
|
+
/**
|
|
149
|
+
* The source spec of apig upstream source.
|
|
150
|
+
*/
|
|
151
|
+
readonly sourceSpec: pulumi.Output<outputs.apig.ApigUpstreamSourceSourceSpec>;
|
|
152
|
+
/**
|
|
153
|
+
* The source type of the apig upstream. Valid values: `K8S`, `Nacos`.
|
|
154
|
+
*/
|
|
155
|
+
readonly sourceType: pulumi.Output<string>;
|
|
156
|
+
/**
|
|
157
|
+
* Create a ApigUpstreamSource resource with the given unique name, arguments, and options.
|
|
158
|
+
*
|
|
159
|
+
* @param name The _unique_ name of the resource.
|
|
160
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
161
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
162
|
+
*/
|
|
163
|
+
constructor(name: string, args: ApigUpstreamSourceArgs, opts?: pulumi.CustomResourceOptions);
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Input properties used for looking up and filtering ApigUpstreamSource resources.
|
|
167
|
+
*/
|
|
168
|
+
export interface ApigUpstreamSourceState {
|
|
169
|
+
/**
|
|
170
|
+
* The comments of the apig upstream source.
|
|
171
|
+
*/
|
|
172
|
+
comments?: pulumi.Input<string>;
|
|
173
|
+
/**
|
|
174
|
+
* The gateway id of the apig upstream source.
|
|
175
|
+
*/
|
|
176
|
+
gatewayId?: pulumi.Input<string>;
|
|
177
|
+
/**
|
|
178
|
+
* The ingress settings of apig upstream source.
|
|
179
|
+
*/
|
|
180
|
+
ingressSettings?: pulumi.Input<pulumi.Input<inputs.apig.ApigUpstreamSourceIngressSetting>[]>;
|
|
181
|
+
/**
|
|
182
|
+
* The source spec of apig upstream source.
|
|
183
|
+
*/
|
|
184
|
+
sourceSpec?: pulumi.Input<inputs.apig.ApigUpstreamSourceSourceSpec>;
|
|
185
|
+
/**
|
|
186
|
+
* The source type of the apig upstream. Valid values: `K8S`, `Nacos`.
|
|
187
|
+
*/
|
|
188
|
+
sourceType?: pulumi.Input<string>;
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* The set of arguments for constructing a ApigUpstreamSource resource.
|
|
192
|
+
*/
|
|
193
|
+
export interface ApigUpstreamSourceArgs {
|
|
194
|
+
/**
|
|
195
|
+
* The comments of the apig upstream source.
|
|
196
|
+
*/
|
|
197
|
+
comments?: pulumi.Input<string>;
|
|
198
|
+
/**
|
|
199
|
+
* The gateway id of the apig upstream source.
|
|
200
|
+
*/
|
|
201
|
+
gatewayId: pulumi.Input<string>;
|
|
202
|
+
/**
|
|
203
|
+
* The ingress settings of apig upstream source.
|
|
204
|
+
*/
|
|
205
|
+
ingressSettings?: pulumi.Input<pulumi.Input<inputs.apig.ApigUpstreamSourceIngressSetting>[]>;
|
|
206
|
+
/**
|
|
207
|
+
* The source spec of apig upstream source.
|
|
208
|
+
*/
|
|
209
|
+
sourceSpec: pulumi.Input<inputs.apig.ApigUpstreamSourceSourceSpec>;
|
|
210
|
+
/**
|
|
211
|
+
* The source type of the apig upstream. Valid values: `K8S`, `Nacos`.
|
|
212
|
+
*/
|
|
213
|
+
sourceType: pulumi.Input<string>;
|
|
214
|
+
}
|
|
@@ -0,0 +1,182 @@
|
|
|
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.ApigUpstreamSource = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a resource to manage apig upstream source
|
|
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.getZones({});
|
|
18
|
+
* const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
|
|
19
|
+
* vpcName: "acc-test-vpc",
|
|
20
|
+
* cidrBlock: "172.16.0.0/16",
|
|
21
|
+
* });
|
|
22
|
+
* const foo1 = new volcengine.vpc.Subnet("foo1", {
|
|
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 foo2 = new volcengine.vpc.Subnet("foo2", {
|
|
29
|
+
* subnetName: "acc-test-subnet",
|
|
30
|
+
* cidrBlock: "172.16.1.0/24",
|
|
31
|
+
* zoneId: fooZones.then(fooZones => fooZones.zones?.[1]?.id),
|
|
32
|
+
* vpcId: fooVpc.id,
|
|
33
|
+
* });
|
|
34
|
+
* const fooApigGateway = new volcengine.apig.ApigGateway("fooApigGateway", {
|
|
35
|
+
* type: "standard",
|
|
36
|
+
* comments: "acc-test",
|
|
37
|
+
* projectName: "default",
|
|
38
|
+
* tags: [{
|
|
39
|
+
* key: "k1",
|
|
40
|
+
* value: "v1",
|
|
41
|
+
* }],
|
|
42
|
+
* networkSpec: {
|
|
43
|
+
* vpcId: fooVpc.id,
|
|
44
|
+
* subnetIds: [
|
|
45
|
+
* foo1.id,
|
|
46
|
+
* foo2.id,
|
|
47
|
+
* ],
|
|
48
|
+
* },
|
|
49
|
+
* resourceSpec: {
|
|
50
|
+
* replicas: 2,
|
|
51
|
+
* instanceSpecCode: "1c2g",
|
|
52
|
+
* clbSpecCode: "small_1",
|
|
53
|
+
* publicNetworkBillingType: "bandwidth",
|
|
54
|
+
* publicNetworkBandwidth: 1,
|
|
55
|
+
* networkType: {
|
|
56
|
+
* enablePublicNetwork: true,
|
|
57
|
+
* enablePrivateNetwork: true,
|
|
58
|
+
* },
|
|
59
|
+
* },
|
|
60
|
+
* logSpec: {
|
|
61
|
+
* enable: true,
|
|
62
|
+
* projectId: "d3cb87c0-faeb-4074-b1ee-9bd747865a76",
|
|
63
|
+
* topicId: "d339482e-d86d-4bd8-a9bb-f270417f00a1",
|
|
64
|
+
* },
|
|
65
|
+
* monitorSpec: {
|
|
66
|
+
* enable: true,
|
|
67
|
+
* workspaceId: "4ed1caf3-279d-4c5f-8301-87ea38e92ffc",
|
|
68
|
+
* },
|
|
69
|
+
* });
|
|
70
|
+
* const fooApigGatewayService = new volcengine.apig.ApigGatewayService("fooApigGatewayService", {
|
|
71
|
+
* gatewayId: fooApigGateway.id,
|
|
72
|
+
* serviceName: "acc-test-apig-service",
|
|
73
|
+
* comments: "acc-test",
|
|
74
|
+
* protocols: [
|
|
75
|
+
* "HTTP",
|
|
76
|
+
* "HTTPS",
|
|
77
|
+
* ],
|
|
78
|
+
* authSpec: {
|
|
79
|
+
* enable: false,
|
|
80
|
+
* },
|
|
81
|
+
* });
|
|
82
|
+
* const foo_nacos = new volcengine.apig.ApigUpstreamSource("foo-nacos", {
|
|
83
|
+
* gatewayId: fooApigGateway.id,
|
|
84
|
+
* comments: "acc-test-nacos",
|
|
85
|
+
* sourceType: "Nacos",
|
|
86
|
+
* sourceSpec: {
|
|
87
|
+
* nacosSource: {
|
|
88
|
+
* nacosId: "nd197ls631meck48imm7g",
|
|
89
|
+
* authConfig: {
|
|
90
|
+
* basic: {
|
|
91
|
+
* username: "nacos",
|
|
92
|
+
* password: "******",
|
|
93
|
+
* },
|
|
94
|
+
* },
|
|
95
|
+
* },
|
|
96
|
+
* },
|
|
97
|
+
* });
|
|
98
|
+
* const foo_k8s = new volcengine.apig.ApigUpstreamSource("foo-k8s", {
|
|
99
|
+
* gatewayId: fooApigGateway.id,
|
|
100
|
+
* comments: "acc-test-k8s",
|
|
101
|
+
* sourceType: "K8S",
|
|
102
|
+
* sourceSpec: {
|
|
103
|
+
* k8sSource: {
|
|
104
|
+
* clusterId: "cd197sac4mpmnruh7um80",
|
|
105
|
+
* },
|
|
106
|
+
* },
|
|
107
|
+
* ingressSettings: [{
|
|
108
|
+
* enableIngress: true,
|
|
109
|
+
* updateStatus: true,
|
|
110
|
+
* ingressClasses: ["test"],
|
|
111
|
+
* watchNamespaces: ["default"],
|
|
112
|
+
* }],
|
|
113
|
+
* });
|
|
114
|
+
* ```
|
|
115
|
+
*
|
|
116
|
+
* ## Import
|
|
117
|
+
*
|
|
118
|
+
* ApigUpstreamSource can be imported using the id, e.g.
|
|
119
|
+
*
|
|
120
|
+
* ```sh
|
|
121
|
+
* $ pulumi import volcengine:apig/apigUpstreamSource:ApigUpstreamSource default resource_id
|
|
122
|
+
* ```
|
|
123
|
+
*/
|
|
124
|
+
class ApigUpstreamSource extends pulumi.CustomResource {
|
|
125
|
+
/**
|
|
126
|
+
* Get an existing ApigUpstreamSource resource's state with the given name, ID, and optional extra
|
|
127
|
+
* properties used to qualify the lookup.
|
|
128
|
+
*
|
|
129
|
+
* @param name The _unique_ name of the resulting resource.
|
|
130
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
131
|
+
* @param state Any extra arguments used during the lookup.
|
|
132
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
133
|
+
*/
|
|
134
|
+
static get(name, id, state, opts) {
|
|
135
|
+
return new ApigUpstreamSource(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Returns true if the given object is an instance of ApigUpstreamSource. This is designed to work even
|
|
139
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
140
|
+
*/
|
|
141
|
+
static isInstance(obj) {
|
|
142
|
+
if (obj === undefined || obj === null) {
|
|
143
|
+
return false;
|
|
144
|
+
}
|
|
145
|
+
return obj['__pulumiType'] === ApigUpstreamSource.__pulumiType;
|
|
146
|
+
}
|
|
147
|
+
constructor(name, argsOrState, opts) {
|
|
148
|
+
let resourceInputs = {};
|
|
149
|
+
opts = opts || {};
|
|
150
|
+
if (opts.id) {
|
|
151
|
+
const state = argsOrState;
|
|
152
|
+
resourceInputs["comments"] = state ? state.comments : undefined;
|
|
153
|
+
resourceInputs["gatewayId"] = state ? state.gatewayId : undefined;
|
|
154
|
+
resourceInputs["ingressSettings"] = state ? state.ingressSettings : undefined;
|
|
155
|
+
resourceInputs["sourceSpec"] = state ? state.sourceSpec : undefined;
|
|
156
|
+
resourceInputs["sourceType"] = state ? state.sourceType : undefined;
|
|
157
|
+
}
|
|
158
|
+
else {
|
|
159
|
+
const args = argsOrState;
|
|
160
|
+
if ((!args || args.gatewayId === undefined) && !opts.urn) {
|
|
161
|
+
throw new Error("Missing required property 'gatewayId'");
|
|
162
|
+
}
|
|
163
|
+
if ((!args || args.sourceSpec === undefined) && !opts.urn) {
|
|
164
|
+
throw new Error("Missing required property 'sourceSpec'");
|
|
165
|
+
}
|
|
166
|
+
if ((!args || args.sourceType === undefined) && !opts.urn) {
|
|
167
|
+
throw new Error("Missing required property 'sourceType'");
|
|
168
|
+
}
|
|
169
|
+
resourceInputs["comments"] = args ? args.comments : undefined;
|
|
170
|
+
resourceInputs["gatewayId"] = args ? args.gatewayId : undefined;
|
|
171
|
+
resourceInputs["ingressSettings"] = args ? args.ingressSettings : undefined;
|
|
172
|
+
resourceInputs["sourceSpec"] = args ? args.sourceSpec : undefined;
|
|
173
|
+
resourceInputs["sourceType"] = args ? args.sourceType : undefined;
|
|
174
|
+
}
|
|
175
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
176
|
+
super(ApigUpstreamSource.__pulumiType, name, resourceInputs, opts);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
exports.ApigUpstreamSource = ApigUpstreamSource;
|
|
180
|
+
/** @internal */
|
|
181
|
+
ApigUpstreamSource.__pulumiType = 'volcengine:apig/apigUpstreamSource:ApigUpstreamSource';
|
|
182
|
+
//# sourceMappingURL=apigUpstreamSource.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apigUpstreamSource.js","sourceRoot":"","sources":["../../apig/apigUpstreamSource.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,211 @@
|
|
|
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 apig upstream version
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
11
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
12
|
+
*
|
|
13
|
+
* const fooZones = volcengine.ecs.getZones({});
|
|
14
|
+
* const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
|
|
15
|
+
* vpcName: "acc-test-vpc",
|
|
16
|
+
* cidrBlock: "172.16.0.0/16",
|
|
17
|
+
* });
|
|
18
|
+
* const foo1 = new volcengine.vpc.Subnet("foo1", {
|
|
19
|
+
* subnetName: "acc-test-subnet",
|
|
20
|
+
* cidrBlock: "172.16.0.0/24",
|
|
21
|
+
* zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
|
|
22
|
+
* vpcId: fooVpc.id,
|
|
23
|
+
* });
|
|
24
|
+
* const foo2 = new volcengine.vpc.Subnet("foo2", {
|
|
25
|
+
* subnetName: "acc-test-subnet",
|
|
26
|
+
* cidrBlock: "172.16.1.0/24",
|
|
27
|
+
* zoneId: fooZones.then(fooZones => fooZones.zones?.[1]?.id),
|
|
28
|
+
* vpcId: fooVpc.id,
|
|
29
|
+
* });
|
|
30
|
+
* const fooApigGateway = new volcengine.apig.ApigGateway("fooApigGateway", {
|
|
31
|
+
* type: "standard",
|
|
32
|
+
* comments: "acc-test",
|
|
33
|
+
* projectName: "default",
|
|
34
|
+
* tags: [{
|
|
35
|
+
* key: "k1",
|
|
36
|
+
* value: "v1",
|
|
37
|
+
* }],
|
|
38
|
+
* networkSpec: {
|
|
39
|
+
* vpcId: fooVpc.id,
|
|
40
|
+
* subnetIds: [
|
|
41
|
+
* foo1.id,
|
|
42
|
+
* foo2.id,
|
|
43
|
+
* ],
|
|
44
|
+
* },
|
|
45
|
+
* resourceSpec: {
|
|
46
|
+
* replicas: 2,
|
|
47
|
+
* instanceSpecCode: "1c2g",
|
|
48
|
+
* clbSpecCode: "small_1",
|
|
49
|
+
* publicNetworkBillingType: "bandwidth",
|
|
50
|
+
* publicNetworkBandwidth: 1,
|
|
51
|
+
* networkType: {
|
|
52
|
+
* enablePublicNetwork: true,
|
|
53
|
+
* enablePrivateNetwork: true,
|
|
54
|
+
* },
|
|
55
|
+
* },
|
|
56
|
+
* logSpec: {
|
|
57
|
+
* enable: true,
|
|
58
|
+
* projectId: "d3cb87c0-faeb-4074-b1ee-9bd747865a76",
|
|
59
|
+
* topicId: "d339482e-d86d-4bd8-a9bb-f270417f00a1",
|
|
60
|
+
* },
|
|
61
|
+
* monitorSpec: {
|
|
62
|
+
* enable: true,
|
|
63
|
+
* workspaceId: "4ed1caf3-279d-4c5f-8301-87ea38e92ffc",
|
|
64
|
+
* },
|
|
65
|
+
* });
|
|
66
|
+
* const fooApigGatewayService = new volcengine.apig.ApigGatewayService("fooApigGatewayService", {
|
|
67
|
+
* gatewayId: fooApigGateway.id,
|
|
68
|
+
* serviceName: "acc-test-apig-service",
|
|
69
|
+
* comments: "acc-test",
|
|
70
|
+
* protocols: [
|
|
71
|
+
* "HTTP",
|
|
72
|
+
* "HTTPS",
|
|
73
|
+
* ],
|
|
74
|
+
* authSpec: {
|
|
75
|
+
* enable: false,
|
|
76
|
+
* },
|
|
77
|
+
* });
|
|
78
|
+
* const foo_k8sApigUpstreamSource = new volcengine.apig.ApigUpstreamSource("foo-k8sApigUpstreamSource", {
|
|
79
|
+
* gatewayId: fooApigGateway.id,
|
|
80
|
+
* comments: "acc-test-k8s",
|
|
81
|
+
* sourceType: "K8S",
|
|
82
|
+
* sourceSpec: {
|
|
83
|
+
* k8sSource: {
|
|
84
|
+
* clusterId: "cd197sac4mpmnruh7um80",
|
|
85
|
+
* },
|
|
86
|
+
* },
|
|
87
|
+
* ingressSettings: [{
|
|
88
|
+
* enableIngress: true,
|
|
89
|
+
* updateStatus: true,
|
|
90
|
+
* ingressClasses: ["test"],
|
|
91
|
+
* watchNamespaces: ["default"],
|
|
92
|
+
* }],
|
|
93
|
+
* });
|
|
94
|
+
* const foo_k8sApigUpstream = new volcengine.apig.ApigUpstream("foo-k8sApigUpstream", {
|
|
95
|
+
* gatewayId: fooApigGateway.id,
|
|
96
|
+
* comments: "acc-test",
|
|
97
|
+
* resourceType: "Console",
|
|
98
|
+
* protocol: "HTTP",
|
|
99
|
+
* loadBalancerSettings: {
|
|
100
|
+
* lbPolicy: "ConsistentHashLB",
|
|
101
|
+
* consistentHashLb: {
|
|
102
|
+
* hashKey: "HTTPCookie",
|
|
103
|
+
* httpCookie: {
|
|
104
|
+
* name: "test",
|
|
105
|
+
* path: "/",
|
|
106
|
+
* ttl: 300,
|
|
107
|
+
* },
|
|
108
|
+
* },
|
|
109
|
+
* },
|
|
110
|
+
* tlsSettings: {
|
|
111
|
+
* tlsMode: "SIMPLE",
|
|
112
|
+
* sni: "test",
|
|
113
|
+
* },
|
|
114
|
+
* circuitBreakingSettings: {
|
|
115
|
+
* enable: false,
|
|
116
|
+
* consecutiveErrors: 5,
|
|
117
|
+
* interval: 10000,
|
|
118
|
+
* baseEjectionTime: 30000,
|
|
119
|
+
* maxEjectionPercent: 20,
|
|
120
|
+
* minHealthPercent: 60,
|
|
121
|
+
* },
|
|
122
|
+
* sourceType: "K8S",
|
|
123
|
+
* upstreamSpec: {
|
|
124
|
+
* k8sService: {
|
|
125
|
+
* namespace: "default",
|
|
126
|
+
* name: "kubernetes",
|
|
127
|
+
* port: 443,
|
|
128
|
+
* },
|
|
129
|
+
* },
|
|
130
|
+
* }, {
|
|
131
|
+
* dependsOn: [foo_k8sApigUpstreamSource],
|
|
132
|
+
* });
|
|
133
|
+
* const fooApigUpstreamVersion = new volcengine.apig.ApigUpstreamVersion("fooApigUpstreamVersion", {
|
|
134
|
+
* upstreamId: foo_k8sApigUpstream.id,
|
|
135
|
+
* upstreamVersion: {
|
|
136
|
+
* name: "acc-test-version",
|
|
137
|
+
* labels: [{
|
|
138
|
+
* key: "k1",
|
|
139
|
+
* value: "v2",
|
|
140
|
+
* }],
|
|
141
|
+
* },
|
|
142
|
+
* });
|
|
143
|
+
* ```
|
|
144
|
+
*
|
|
145
|
+
* ## Import
|
|
146
|
+
*
|
|
147
|
+
* ApigUpstreamVersion can be imported using the id, e.g.
|
|
148
|
+
*
|
|
149
|
+
* ```sh
|
|
150
|
+
* $ pulumi import volcengine:apig/apigUpstreamVersion:ApigUpstreamVersion default resource_id
|
|
151
|
+
* ```
|
|
152
|
+
*/
|
|
153
|
+
export declare class ApigUpstreamVersion extends pulumi.CustomResource {
|
|
154
|
+
/**
|
|
155
|
+
* Get an existing ApigUpstreamVersion resource's state with the given name, ID, and optional extra
|
|
156
|
+
* properties used to qualify the lookup.
|
|
157
|
+
*
|
|
158
|
+
* @param name The _unique_ name of the resulting resource.
|
|
159
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
160
|
+
* @param state Any extra arguments used during the lookup.
|
|
161
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
162
|
+
*/
|
|
163
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ApigUpstreamVersionState, opts?: pulumi.CustomResourceOptions): ApigUpstreamVersion;
|
|
164
|
+
/**
|
|
165
|
+
* Returns true if the given object is an instance of ApigUpstreamVersion. This is designed to work even
|
|
166
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
167
|
+
*/
|
|
168
|
+
static isInstance(obj: any): obj is ApigUpstreamVersion;
|
|
169
|
+
/**
|
|
170
|
+
* The id of the apig upstream.
|
|
171
|
+
*/
|
|
172
|
+
readonly upstreamId: pulumi.Output<string>;
|
|
173
|
+
/**
|
|
174
|
+
* The version of the apig upstream.
|
|
175
|
+
*/
|
|
176
|
+
readonly upstreamVersion: pulumi.Output<outputs.apig.ApigUpstreamVersionUpstreamVersion>;
|
|
177
|
+
/**
|
|
178
|
+
* Create a ApigUpstreamVersion resource with the given unique name, arguments, and options.
|
|
179
|
+
*
|
|
180
|
+
* @param name The _unique_ name of the resource.
|
|
181
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
182
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
183
|
+
*/
|
|
184
|
+
constructor(name: string, args: ApigUpstreamVersionArgs, opts?: pulumi.CustomResourceOptions);
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Input properties used for looking up and filtering ApigUpstreamVersion resources.
|
|
188
|
+
*/
|
|
189
|
+
export interface ApigUpstreamVersionState {
|
|
190
|
+
/**
|
|
191
|
+
* The id of the apig upstream.
|
|
192
|
+
*/
|
|
193
|
+
upstreamId?: pulumi.Input<string>;
|
|
194
|
+
/**
|
|
195
|
+
* The version of the apig upstream.
|
|
196
|
+
*/
|
|
197
|
+
upstreamVersion?: pulumi.Input<inputs.apig.ApigUpstreamVersionUpstreamVersion>;
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* The set of arguments for constructing a ApigUpstreamVersion resource.
|
|
201
|
+
*/
|
|
202
|
+
export interface ApigUpstreamVersionArgs {
|
|
203
|
+
/**
|
|
204
|
+
* The id of the apig upstream.
|
|
205
|
+
*/
|
|
206
|
+
upstreamId: pulumi.Input<string>;
|
|
207
|
+
/**
|
|
208
|
+
* The version of the apig upstream.
|
|
209
|
+
*/
|
|
210
|
+
upstreamVersion: pulumi.Input<inputs.apig.ApigUpstreamVersionUpstreamVersion>;
|
|
211
|
+
}
|