@volcengine/pulumi 0.0.33 → 0.0.35
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/autoscaling/scalingGroup.d.ts +24 -0
- package/autoscaling/scalingGroup.js +4 -0
- package/autoscaling/scalingGroup.js.map +1 -1
- package/cen/interRegionBandwidth.d.ts +12 -0
- package/cen/interRegionBandwidth.js +2 -0
- package/cen/interRegionBandwidth.js.map +1 -1
- package/config/vars.d.ts +4 -0
- package/config/vars.js +6 -0
- package/config/vars.js.map +1 -1
- package/ecs/command.d.ts +65 -18
- package/ecs/command.js +10 -15
- package/ecs/command.js.map +1 -1
- package/ecs/commands.d.ts +26 -1
- package/ecs/commands.js +2 -0
- package/ecs/commands.js.map +1 -1
- package/ecs/getCommands.d.ts +26 -1
- package/ecs/getCommands.js +2 -0
- package/ecs/getCommands.js.map +1 -1
- package/ecs/getInvocations.d.ts +25 -0
- package/ecs/getInvocations.js +2 -0
- package/ecs/getInvocations.js.map +1 -1
- package/ecs/instance.d.ts +20 -0
- package/ecs/instance.js +4 -0
- package/ecs/instance.js.map +1 -1
- package/ecs/invocation.d.ts +53 -6
- package/ecs/invocation.js +15 -0
- package/ecs/invocation.js.map +1 -1
- package/ecs/invocations.d.ts +25 -0
- package/ecs/invocations.js +2 -0
- package/ecs/invocations.js.map +1 -1
- package/index.d.ts +3 -1
- package/index.js +6 -2
- package/index.js.map +1 -1
- package/kafka/instance.d.ts +12 -0
- package/kafka/instance.js +2 -0
- package/kafka/instance.js.map +1 -1
- package/package.json +1 -1
- package/provider.d.ts +4 -0
- package/provider.js +1 -0
- package/provider.js.map +1 -1
- package/redis/getParameterGroups.d.ts +22 -0
- package/redis/getParameterGroups.js +22 -0
- package/redis/getParameterGroups.js.map +1 -1
- package/redis/parameterGroups.d.ts +22 -0
- package/redis/parameterGroups.js +22 -0
- package/redis/parameterGroups.js.map +1 -1
- package/tos/bucketCors.d.ts +120 -0
- package/tos/bucketCors.js +115 -0
- package/tos/bucketCors.js.map +1 -0
- package/tos/bucketEncryption.d.ts +105 -0
- package/tos/bucketEncryption.js +100 -0
- package/tos/bucketEncryption.js.map +1 -0
- package/tos/bucketNotification.d.ts +166 -0
- package/tos/bucketNotification.js +155 -0
- package/tos/bucketNotification.js.map +1 -0
- package/tos/index.d.ts +9 -0
- package/tos/index.js +16 -1
- package/tos/index.js.map +1 -1
- package/types/input.d.ts +6104 -3944
- package/types/output.d.ts +35681 -27825
- package/vke/node.d.ts +12 -0
- package/vke/node.js +2 -0
- package/vke/node.js.map +1 -1
- 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/networkInterface.d.ts +27 -7
- package/vpc/networkInterface.js +27 -7
- package/vpc/networkInterface.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,150 @@
|
|
|
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.ApigGateway = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a resource to manage apig gateway
|
|
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
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* ## Import
|
|
73
|
+
*
|
|
74
|
+
* ApigGateway can be imported using the id, e.g.
|
|
75
|
+
*
|
|
76
|
+
* ```sh
|
|
77
|
+
* $ pulumi import volcengine:apig/apigGateway:ApigGateway default resource_id
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
class ApigGateway extends pulumi.CustomResource {
|
|
81
|
+
/**
|
|
82
|
+
* Get an existing ApigGateway resource's state with the given name, ID, and optional extra
|
|
83
|
+
* properties used to qualify the lookup.
|
|
84
|
+
*
|
|
85
|
+
* @param name The _unique_ name of the resulting resource.
|
|
86
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
87
|
+
* @param state Any extra arguments used during the lookup.
|
|
88
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
89
|
+
*/
|
|
90
|
+
static get(name, id, state, opts) {
|
|
91
|
+
return new ApigGateway(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Returns true if the given object is an instance of ApigGateway. This is designed to work even
|
|
95
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
96
|
+
*/
|
|
97
|
+
static isInstance(obj) {
|
|
98
|
+
if (obj === undefined || obj === null) {
|
|
99
|
+
return false;
|
|
100
|
+
}
|
|
101
|
+
return obj['__pulumiType'] === ApigGateway.__pulumiType;
|
|
102
|
+
}
|
|
103
|
+
constructor(name, argsOrState, opts) {
|
|
104
|
+
let resourceInputs = {};
|
|
105
|
+
opts = opts || {};
|
|
106
|
+
if (opts.id) {
|
|
107
|
+
const state = argsOrState;
|
|
108
|
+
resourceInputs["backendSpec"] = state ? state.backendSpec : undefined;
|
|
109
|
+
resourceInputs["comments"] = state ? state.comments : undefined;
|
|
110
|
+
resourceInputs["createTime"] = state ? state.createTime : undefined;
|
|
111
|
+
resourceInputs["logSpec"] = state ? state.logSpec : undefined;
|
|
112
|
+
resourceInputs["message"] = state ? state.message : undefined;
|
|
113
|
+
resourceInputs["monitorSpec"] = state ? state.monitorSpec : undefined;
|
|
114
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
115
|
+
resourceInputs["networkSpec"] = state ? state.networkSpec : undefined;
|
|
116
|
+
resourceInputs["projectName"] = state ? state.projectName : undefined;
|
|
117
|
+
resourceInputs["resourceSpec"] = state ? state.resourceSpec : undefined;
|
|
118
|
+
resourceInputs["status"] = state ? state.status : undefined;
|
|
119
|
+
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
120
|
+
resourceInputs["type"] = state ? state.type : undefined;
|
|
121
|
+
resourceInputs["version"] = state ? state.version : undefined;
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
const args = argsOrState;
|
|
125
|
+
if ((!args || args.networkSpec === undefined) && !opts.urn) {
|
|
126
|
+
throw new Error("Missing required property 'networkSpec'");
|
|
127
|
+
}
|
|
128
|
+
resourceInputs["backendSpec"] = args ? args.backendSpec : undefined;
|
|
129
|
+
resourceInputs["comments"] = args ? args.comments : undefined;
|
|
130
|
+
resourceInputs["logSpec"] = args ? args.logSpec : undefined;
|
|
131
|
+
resourceInputs["monitorSpec"] = args ? args.monitorSpec : undefined;
|
|
132
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
133
|
+
resourceInputs["networkSpec"] = args ? args.networkSpec : undefined;
|
|
134
|
+
resourceInputs["projectName"] = args ? args.projectName : undefined;
|
|
135
|
+
resourceInputs["resourceSpec"] = args ? args.resourceSpec : undefined;
|
|
136
|
+
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
137
|
+
resourceInputs["type"] = args ? args.type : undefined;
|
|
138
|
+
resourceInputs["createTime"] = undefined /*out*/;
|
|
139
|
+
resourceInputs["message"] = undefined /*out*/;
|
|
140
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
141
|
+
resourceInputs["version"] = undefined /*out*/;
|
|
142
|
+
}
|
|
143
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
144
|
+
super(ApigGateway.__pulumiType, name, resourceInputs, opts);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
exports.ApigGateway = ApigGateway;
|
|
148
|
+
/** @internal */
|
|
149
|
+
ApigGateway.__pulumiType = 'volcengine:apig/apigGateway:ApigGateway';
|
|
150
|
+
//# sourceMappingURL=apigGateway.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apigGateway.js","sourceRoot":"","sources":["../../apig/apigGateway.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuEG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClE,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,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;IAmED,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAm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AC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,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,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACjD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AAtIL,kCAuIC;AAzHG,gBAAgB;AACO,wBAAY,GAAG,yCAAyC,CAAC"}
|
|
@@ -0,0 +1,206 @@
|
|
|
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 gateway service
|
|
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
|
+
* ```
|
|
79
|
+
*
|
|
80
|
+
* ## Import
|
|
81
|
+
*
|
|
82
|
+
* ApigGatewayService can be imported using the id, e.g.
|
|
83
|
+
*
|
|
84
|
+
* ```sh
|
|
85
|
+
* $ pulumi import volcengine:apig/apigGatewayService:ApigGatewayService default resource_id
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
export declare class ApigGatewayService extends pulumi.CustomResource {
|
|
89
|
+
/**
|
|
90
|
+
* Get an existing ApigGatewayService resource's state with the given name, ID, and optional extra
|
|
91
|
+
* properties used to qualify the lookup.
|
|
92
|
+
*
|
|
93
|
+
* @param name The _unique_ name of the resulting resource.
|
|
94
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
95
|
+
* @param state Any extra arguments used during the lookup.
|
|
96
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
97
|
+
*/
|
|
98
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ApigGatewayServiceState, opts?: pulumi.CustomResourceOptions): ApigGatewayService;
|
|
99
|
+
/**
|
|
100
|
+
* Returns true if the given object is an instance of ApigGatewayService. This is designed to work even
|
|
101
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
102
|
+
*/
|
|
103
|
+
static isInstance(obj: any): obj is ApigGatewayService;
|
|
104
|
+
/**
|
|
105
|
+
* The auth spec of the api gateway service.
|
|
106
|
+
*/
|
|
107
|
+
readonly authSpec: pulumi.Output<outputs.apig.ApigGatewayServiceAuthSpec>;
|
|
108
|
+
/**
|
|
109
|
+
* The comments of api gateway service.
|
|
110
|
+
*/
|
|
111
|
+
readonly comments: pulumi.Output<string | undefined>;
|
|
112
|
+
/**
|
|
113
|
+
* The create time of the api gateway service.
|
|
114
|
+
*/
|
|
115
|
+
readonly createTime: pulumi.Output<string>;
|
|
116
|
+
/**
|
|
117
|
+
* The gateway id of api gateway service.
|
|
118
|
+
*/
|
|
119
|
+
readonly gatewayId: pulumi.Output<string>;
|
|
120
|
+
/**
|
|
121
|
+
* The error message of the api gateway service.
|
|
122
|
+
*/
|
|
123
|
+
readonly message: pulumi.Output<string>;
|
|
124
|
+
/**
|
|
125
|
+
* The protocol of api gateway service.
|
|
126
|
+
*/
|
|
127
|
+
readonly protocols: pulumi.Output<string[]>;
|
|
128
|
+
/**
|
|
129
|
+
* The name of api gateway service.
|
|
130
|
+
*/
|
|
131
|
+
readonly serviceName: pulumi.Output<string>;
|
|
132
|
+
/**
|
|
133
|
+
* The status of the api gateway service.
|
|
134
|
+
*/
|
|
135
|
+
readonly status: pulumi.Output<string>;
|
|
136
|
+
/**
|
|
137
|
+
* Create a ApigGatewayService resource with the given unique name, arguments, and options.
|
|
138
|
+
*
|
|
139
|
+
* @param name The _unique_ name of the resource.
|
|
140
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
141
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
142
|
+
*/
|
|
143
|
+
constructor(name: string, args: ApigGatewayServiceArgs, opts?: pulumi.CustomResourceOptions);
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Input properties used for looking up and filtering ApigGatewayService resources.
|
|
147
|
+
*/
|
|
148
|
+
export interface ApigGatewayServiceState {
|
|
149
|
+
/**
|
|
150
|
+
* The auth spec of the api gateway service.
|
|
151
|
+
*/
|
|
152
|
+
authSpec?: pulumi.Input<inputs.apig.ApigGatewayServiceAuthSpec>;
|
|
153
|
+
/**
|
|
154
|
+
* The comments of api gateway service.
|
|
155
|
+
*/
|
|
156
|
+
comments?: pulumi.Input<string>;
|
|
157
|
+
/**
|
|
158
|
+
* The create time of the api gateway service.
|
|
159
|
+
*/
|
|
160
|
+
createTime?: pulumi.Input<string>;
|
|
161
|
+
/**
|
|
162
|
+
* The gateway id of api gateway service.
|
|
163
|
+
*/
|
|
164
|
+
gatewayId?: pulumi.Input<string>;
|
|
165
|
+
/**
|
|
166
|
+
* The error message of the api gateway service.
|
|
167
|
+
*/
|
|
168
|
+
message?: pulumi.Input<string>;
|
|
169
|
+
/**
|
|
170
|
+
* The protocol of api gateway service.
|
|
171
|
+
*/
|
|
172
|
+
protocols?: pulumi.Input<pulumi.Input<string>[]>;
|
|
173
|
+
/**
|
|
174
|
+
* The name of api gateway service.
|
|
175
|
+
*/
|
|
176
|
+
serviceName?: pulumi.Input<string>;
|
|
177
|
+
/**
|
|
178
|
+
* The status of the api gateway service.
|
|
179
|
+
*/
|
|
180
|
+
status?: pulumi.Input<string>;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* The set of arguments for constructing a ApigGatewayService resource.
|
|
184
|
+
*/
|
|
185
|
+
export interface ApigGatewayServiceArgs {
|
|
186
|
+
/**
|
|
187
|
+
* The auth spec of the api gateway service.
|
|
188
|
+
*/
|
|
189
|
+
authSpec: pulumi.Input<inputs.apig.ApigGatewayServiceAuthSpec>;
|
|
190
|
+
/**
|
|
191
|
+
* The comments of api gateway service.
|
|
192
|
+
*/
|
|
193
|
+
comments?: pulumi.Input<string>;
|
|
194
|
+
/**
|
|
195
|
+
* The gateway id of api gateway service.
|
|
196
|
+
*/
|
|
197
|
+
gatewayId: pulumi.Input<string>;
|
|
198
|
+
/**
|
|
199
|
+
* The protocol of api gateway service.
|
|
200
|
+
*/
|
|
201
|
+
protocols: pulumi.Input<pulumi.Input<string>[]>;
|
|
202
|
+
/**
|
|
203
|
+
* The name of api gateway service.
|
|
204
|
+
*/
|
|
205
|
+
serviceName: pulumi.Input<string>;
|
|
206
|
+
}
|
|
@@ -0,0 +1,159 @@
|
|
|
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.ApigGatewayService = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a resource to manage apig gateway service
|
|
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
|
+
* ```
|
|
83
|
+
*
|
|
84
|
+
* ## Import
|
|
85
|
+
*
|
|
86
|
+
* ApigGatewayService can be imported using the id, e.g.
|
|
87
|
+
*
|
|
88
|
+
* ```sh
|
|
89
|
+
* $ pulumi import volcengine:apig/apigGatewayService:ApigGatewayService default resource_id
|
|
90
|
+
* ```
|
|
91
|
+
*/
|
|
92
|
+
class ApigGatewayService extends pulumi.CustomResource {
|
|
93
|
+
/**
|
|
94
|
+
* Get an existing ApigGatewayService resource's state with the given name, ID, and optional extra
|
|
95
|
+
* properties used to qualify the lookup.
|
|
96
|
+
*
|
|
97
|
+
* @param name The _unique_ name of the resulting resource.
|
|
98
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
99
|
+
* @param state Any extra arguments used during the lookup.
|
|
100
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
101
|
+
*/
|
|
102
|
+
static get(name, id, state, opts) {
|
|
103
|
+
return new ApigGatewayService(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Returns true if the given object is an instance of ApigGatewayService. This is designed to work even
|
|
107
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
108
|
+
*/
|
|
109
|
+
static isInstance(obj) {
|
|
110
|
+
if (obj === undefined || obj === null) {
|
|
111
|
+
return false;
|
|
112
|
+
}
|
|
113
|
+
return obj['__pulumiType'] === ApigGatewayService.__pulumiType;
|
|
114
|
+
}
|
|
115
|
+
constructor(name, argsOrState, opts) {
|
|
116
|
+
let resourceInputs = {};
|
|
117
|
+
opts = opts || {};
|
|
118
|
+
if (opts.id) {
|
|
119
|
+
const state = argsOrState;
|
|
120
|
+
resourceInputs["authSpec"] = state ? state.authSpec : undefined;
|
|
121
|
+
resourceInputs["comments"] = state ? state.comments : undefined;
|
|
122
|
+
resourceInputs["createTime"] = state ? state.createTime : undefined;
|
|
123
|
+
resourceInputs["gatewayId"] = state ? state.gatewayId : undefined;
|
|
124
|
+
resourceInputs["message"] = state ? state.message : undefined;
|
|
125
|
+
resourceInputs["protocols"] = state ? state.protocols : undefined;
|
|
126
|
+
resourceInputs["serviceName"] = state ? state.serviceName : undefined;
|
|
127
|
+
resourceInputs["status"] = state ? state.status : undefined;
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
const args = argsOrState;
|
|
131
|
+
if ((!args || args.authSpec === undefined) && !opts.urn) {
|
|
132
|
+
throw new Error("Missing required property 'authSpec'");
|
|
133
|
+
}
|
|
134
|
+
if ((!args || args.gatewayId === undefined) && !opts.urn) {
|
|
135
|
+
throw new Error("Missing required property 'gatewayId'");
|
|
136
|
+
}
|
|
137
|
+
if ((!args || args.protocols === undefined) && !opts.urn) {
|
|
138
|
+
throw new Error("Missing required property 'protocols'");
|
|
139
|
+
}
|
|
140
|
+
if ((!args || args.serviceName === undefined) && !opts.urn) {
|
|
141
|
+
throw new Error("Missing required property 'serviceName'");
|
|
142
|
+
}
|
|
143
|
+
resourceInputs["authSpec"] = args ? args.authSpec : undefined;
|
|
144
|
+
resourceInputs["comments"] = args ? args.comments : undefined;
|
|
145
|
+
resourceInputs["gatewayId"] = args ? args.gatewayId : undefined;
|
|
146
|
+
resourceInputs["protocols"] = args ? args.protocols : undefined;
|
|
147
|
+
resourceInputs["serviceName"] = args ? args.serviceName : undefined;
|
|
148
|
+
resourceInputs["createTime"] = undefined /*out*/;
|
|
149
|
+
resourceInputs["message"] = undefined /*out*/;
|
|
150
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
151
|
+
}
|
|
152
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
153
|
+
super(ApigGatewayService.__pulumiType, name, resourceInputs, opts);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
exports.ApigGatewayService = ApigGatewayService;
|
|
157
|
+
/** @internal */
|
|
158
|
+
ApigGatewayService.__pulumiType = 'volcengine:apig/apigGatewayService:ApigGatewayService';
|
|
159
|
+
//# sourceMappingURL=apigGatewayService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apigGatewayService.js","sourceRoot":"","sources":["../../apig/apigGatewayService.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACzE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;IA2CD,YAAY,IAAY,EAAE,WAA8D,EAAE,IAAmC;QACzH,IAAI,cAAc,GAAkB,E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