@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,83 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides a resource to manage vpc cidr block associate
|
|
4
|
+
* ## Example Usage
|
|
5
|
+
*
|
|
6
|
+
* ```typescript
|
|
7
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
8
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
9
|
+
*
|
|
10
|
+
* const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
|
|
11
|
+
* vpcName: "acc-test-vpc",
|
|
12
|
+
* cidrBlock: "192.168.0.0/20",
|
|
13
|
+
* projectName: "default",
|
|
14
|
+
* });
|
|
15
|
+
* const fooCidrBlockAssociate = new volcengine.vpc.CidrBlockAssociate("fooCidrBlockAssociate", {
|
|
16
|
+
* vpcId: fooVpc.id,
|
|
17
|
+
* secondaryCidrBlock: "192.168.16.0/20",
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* ## Import
|
|
22
|
+
*
|
|
23
|
+
* The VpcCidrBlockAssociate is not support import.
|
|
24
|
+
*/
|
|
25
|
+
export declare class CidrBlockAssociate extends pulumi.CustomResource {
|
|
26
|
+
/**
|
|
27
|
+
* Get an existing CidrBlockAssociate resource's state with the given name, ID, and optional extra
|
|
28
|
+
* properties used to qualify the lookup.
|
|
29
|
+
*
|
|
30
|
+
* @param name The _unique_ name of the resulting resource.
|
|
31
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
32
|
+
* @param state Any extra arguments used during the lookup.
|
|
33
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
34
|
+
*/
|
|
35
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: CidrBlockAssociateState, opts?: pulumi.CustomResourceOptions): CidrBlockAssociate;
|
|
36
|
+
/**
|
|
37
|
+
* Returns true if the given object is an instance of CidrBlockAssociate. This is designed to work even
|
|
38
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
39
|
+
*/
|
|
40
|
+
static isInstance(obj: any): obj is CidrBlockAssociate;
|
|
41
|
+
/**
|
|
42
|
+
* The secondary cidr block of the VPC.
|
|
43
|
+
*/
|
|
44
|
+
readonly secondaryCidrBlock: pulumi.Output<string>;
|
|
45
|
+
/**
|
|
46
|
+
* The id of the VPC.
|
|
47
|
+
*/
|
|
48
|
+
readonly vpcId: pulumi.Output<string>;
|
|
49
|
+
/**
|
|
50
|
+
* Create a CidrBlockAssociate resource with the given unique name, arguments, and options.
|
|
51
|
+
*
|
|
52
|
+
* @param name The _unique_ name of the resource.
|
|
53
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
54
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
55
|
+
*/
|
|
56
|
+
constructor(name: string, args: CidrBlockAssociateArgs, opts?: pulumi.CustomResourceOptions);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Input properties used for looking up and filtering CidrBlockAssociate resources.
|
|
60
|
+
*/
|
|
61
|
+
export interface CidrBlockAssociateState {
|
|
62
|
+
/**
|
|
63
|
+
* The secondary cidr block of the VPC.
|
|
64
|
+
*/
|
|
65
|
+
secondaryCidrBlock?: pulumi.Input<string>;
|
|
66
|
+
/**
|
|
67
|
+
* The id of the VPC.
|
|
68
|
+
*/
|
|
69
|
+
vpcId?: pulumi.Input<string>;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* The set of arguments for constructing a CidrBlockAssociate resource.
|
|
73
|
+
*/
|
|
74
|
+
export interface CidrBlockAssociateArgs {
|
|
75
|
+
/**
|
|
76
|
+
* The secondary cidr block of the VPC.
|
|
77
|
+
*/
|
|
78
|
+
secondaryCidrBlock: pulumi.Input<string>;
|
|
79
|
+
/**
|
|
80
|
+
* The id of the VPC.
|
|
81
|
+
*/
|
|
82
|
+
vpcId: pulumi.Input<string>;
|
|
83
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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.CidrBlockAssociate = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a resource to manage vpc cidr block associate
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
15
|
+
*
|
|
16
|
+
* const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
|
|
17
|
+
* vpcName: "acc-test-vpc",
|
|
18
|
+
* cidrBlock: "192.168.0.0/20",
|
|
19
|
+
* projectName: "default",
|
|
20
|
+
* });
|
|
21
|
+
* const fooCidrBlockAssociate = new volcengine.vpc.CidrBlockAssociate("fooCidrBlockAssociate", {
|
|
22
|
+
* vpcId: fooVpc.id,
|
|
23
|
+
* secondaryCidrBlock: "192.168.16.0/20",
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* ## Import
|
|
28
|
+
*
|
|
29
|
+
* The VpcCidrBlockAssociate is not support import.
|
|
30
|
+
*/
|
|
31
|
+
class CidrBlockAssociate extends pulumi.CustomResource {
|
|
32
|
+
/**
|
|
33
|
+
* Get an existing CidrBlockAssociate resource's state with the given name, ID, and optional extra
|
|
34
|
+
* properties used to qualify the lookup.
|
|
35
|
+
*
|
|
36
|
+
* @param name The _unique_ name of the resulting resource.
|
|
37
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
38
|
+
* @param state Any extra arguments used during the lookup.
|
|
39
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
40
|
+
*/
|
|
41
|
+
static get(name, id, state, opts) {
|
|
42
|
+
return new CidrBlockAssociate(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Returns true if the given object is an instance of CidrBlockAssociate. This is designed to work even
|
|
46
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
47
|
+
*/
|
|
48
|
+
static isInstance(obj) {
|
|
49
|
+
if (obj === undefined || obj === null) {
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
52
|
+
return obj['__pulumiType'] === CidrBlockAssociate.__pulumiType;
|
|
53
|
+
}
|
|
54
|
+
constructor(name, argsOrState, opts) {
|
|
55
|
+
let resourceInputs = {};
|
|
56
|
+
opts = opts || {};
|
|
57
|
+
if (opts.id) {
|
|
58
|
+
const state = argsOrState;
|
|
59
|
+
resourceInputs["secondaryCidrBlock"] = state ? state.secondaryCidrBlock : undefined;
|
|
60
|
+
resourceInputs["vpcId"] = state ? state.vpcId : undefined;
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
const args = argsOrState;
|
|
64
|
+
if ((!args || args.secondaryCidrBlock === undefined) && !opts.urn) {
|
|
65
|
+
throw new Error("Missing required property 'secondaryCidrBlock'");
|
|
66
|
+
}
|
|
67
|
+
if ((!args || args.vpcId === undefined) && !opts.urn) {
|
|
68
|
+
throw new Error("Missing required property 'vpcId'");
|
|
69
|
+
}
|
|
70
|
+
resourceInputs["secondaryCidrBlock"] = args ? args.secondaryCidrBlock : undefined;
|
|
71
|
+
resourceInputs["vpcId"] = args ? args.vpcId : undefined;
|
|
72
|
+
}
|
|
73
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
74
|
+
super(CidrBlockAssociate.__pulumiType, name, resourceInputs, opts);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
exports.CidrBlockAssociate = CidrBlockAssociate;
|
|
78
|
+
/** @internal */
|
|
79
|
+
CidrBlockAssociate.__pulumiType = 'volcengine:vpc/cidrBlockAssociate:CidrBlockAssociate';
|
|
80
|
+
//# sourceMappingURL=cidrBlockAssociate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cidrBlockAssociate.js","sourceRoot":"","sources":["../../vpc/cidrBlockAssociate.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACzE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;IAmBD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AApDG,gBAAgB;AACO,+BAAY,GAAG,sDAAsD,CAAC"}
|
package/vpc/flowLog.d.ts
ADDED
|
@@ -0,0 +1,266 @@
|
|
|
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 flow log
|
|
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
|
+
* projectName: "default",
|
|
18
|
+
* });
|
|
19
|
+
* const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
|
|
20
|
+
* subnetName: "acc-test-subnet",
|
|
21
|
+
* cidrBlock: "172.16.0.0/24",
|
|
22
|
+
* zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
|
|
23
|
+
* vpcId: fooVpc.id,
|
|
24
|
+
* });
|
|
25
|
+
* const fooFlowLog = new volcengine.vpc.FlowLog("fooFlowLog", {
|
|
26
|
+
* flowLogName: "acc-test-flow-log",
|
|
27
|
+
* description: "acc-test",
|
|
28
|
+
* resourceType: "subnet",
|
|
29
|
+
* resourceId: fooSubnet.id,
|
|
30
|
+
* trafficType: "All",
|
|
31
|
+
* logProjectName: "acc-test-project",
|
|
32
|
+
* logTopicName: "acc-test-topic",
|
|
33
|
+
* aggregationInterval: 10,
|
|
34
|
+
* projectName: "default",
|
|
35
|
+
* tags: [{
|
|
36
|
+
* key: "k1",
|
|
37
|
+
* value: "v1",
|
|
38
|
+
* }],
|
|
39
|
+
* });
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* ## Import
|
|
43
|
+
*
|
|
44
|
+
* FlowLog can be imported using the id, e.g.
|
|
45
|
+
*
|
|
46
|
+
* ```sh
|
|
47
|
+
* $ pulumi import volcengine:vpc/flowLog:FlowLog default resource_id
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare class FlowLog extends pulumi.CustomResource {
|
|
51
|
+
/**
|
|
52
|
+
* Get an existing FlowLog resource's state with the given name, ID, and optional extra
|
|
53
|
+
* properties used to qualify the lookup.
|
|
54
|
+
*
|
|
55
|
+
* @param name The _unique_ name of the resulting resource.
|
|
56
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
57
|
+
* @param state Any extra arguments used during the lookup.
|
|
58
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
59
|
+
*/
|
|
60
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: FlowLogState, opts?: pulumi.CustomResourceOptions): FlowLog;
|
|
61
|
+
/**
|
|
62
|
+
* Returns true if the given object is an instance of FlowLog. This is designed to work even
|
|
63
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
64
|
+
*/
|
|
65
|
+
static isInstance(obj: any): obj is FlowLog;
|
|
66
|
+
/**
|
|
67
|
+
* The aggregation interval of flow log. Unit: minute. Valid values: `1`, `5`, `10`.
|
|
68
|
+
*/
|
|
69
|
+
readonly aggregationInterval: pulumi.Output<number>;
|
|
70
|
+
/**
|
|
71
|
+
* The business status of flow log.
|
|
72
|
+
*/
|
|
73
|
+
readonly businessStatus: pulumi.Output<string>;
|
|
74
|
+
/**
|
|
75
|
+
* The created time of flow log.
|
|
76
|
+
*/
|
|
77
|
+
readonly createdAt: pulumi.Output<string>;
|
|
78
|
+
/**
|
|
79
|
+
* The description of flow log.
|
|
80
|
+
*/
|
|
81
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
82
|
+
/**
|
|
83
|
+
* The name of flow log.
|
|
84
|
+
*/
|
|
85
|
+
readonly flowLogName: pulumi.Output<string>;
|
|
86
|
+
/**
|
|
87
|
+
* The reason why flow log is locked.
|
|
88
|
+
*/
|
|
89
|
+
readonly lockReason: pulumi.Output<string>;
|
|
90
|
+
/**
|
|
91
|
+
* The ID of log project.
|
|
92
|
+
*/
|
|
93
|
+
readonly logProjectId: pulumi.Output<string>;
|
|
94
|
+
/**
|
|
95
|
+
* The name of log project. If there is no corresponding log project with the name, a new log project will be created.
|
|
96
|
+
* When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignoreChanges ignore changes in fields.
|
|
97
|
+
*/
|
|
98
|
+
readonly logProjectName: pulumi.Output<string>;
|
|
99
|
+
/**
|
|
100
|
+
* The ID of log topic.
|
|
101
|
+
*/
|
|
102
|
+
readonly logTopicId: pulumi.Output<string>;
|
|
103
|
+
/**
|
|
104
|
+
* The name of log topic. If there is no corresponding log topic with the name, a new log topic will be created.
|
|
105
|
+
* When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignoreChanges ignore changes in fields.
|
|
106
|
+
*/
|
|
107
|
+
readonly logTopicName: pulumi.Output<string>;
|
|
108
|
+
/**
|
|
109
|
+
* The project name of flow log.
|
|
110
|
+
*/
|
|
111
|
+
readonly projectName: pulumi.Output<string>;
|
|
112
|
+
/**
|
|
113
|
+
* The ID of resource.
|
|
114
|
+
*/
|
|
115
|
+
readonly resourceId: pulumi.Output<string>;
|
|
116
|
+
/**
|
|
117
|
+
* The type of resource. Valid values: `vpc`, `subnet`, `eni`.
|
|
118
|
+
*/
|
|
119
|
+
readonly resourceType: pulumi.Output<string>;
|
|
120
|
+
/**
|
|
121
|
+
* The status of flow log. Values: `Active`, `Pending`, `Inactive`, `Creating`, `Deleting`.
|
|
122
|
+
*/
|
|
123
|
+
readonly status: pulumi.Output<string>;
|
|
124
|
+
/**
|
|
125
|
+
* Tags.
|
|
126
|
+
*/
|
|
127
|
+
readonly tags: pulumi.Output<outputs.vpc.FlowLogTag[] | undefined>;
|
|
128
|
+
/**
|
|
129
|
+
* The type of traffic. Valid values: `All`, `Allow`, `Drop`.
|
|
130
|
+
*/
|
|
131
|
+
readonly trafficType: pulumi.Output<string>;
|
|
132
|
+
/**
|
|
133
|
+
* The updated time of flow log.
|
|
134
|
+
*/
|
|
135
|
+
readonly updatedAt: pulumi.Output<string>;
|
|
136
|
+
/**
|
|
137
|
+
* Create a FlowLog 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: FlowLogArgs, opts?: pulumi.CustomResourceOptions);
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Input properties used for looking up and filtering FlowLog resources.
|
|
147
|
+
*/
|
|
148
|
+
export interface FlowLogState {
|
|
149
|
+
/**
|
|
150
|
+
* The aggregation interval of flow log. Unit: minute. Valid values: `1`, `5`, `10`.
|
|
151
|
+
*/
|
|
152
|
+
aggregationInterval?: pulumi.Input<number>;
|
|
153
|
+
/**
|
|
154
|
+
* The business status of flow log.
|
|
155
|
+
*/
|
|
156
|
+
businessStatus?: pulumi.Input<string>;
|
|
157
|
+
/**
|
|
158
|
+
* The created time of flow log.
|
|
159
|
+
*/
|
|
160
|
+
createdAt?: pulumi.Input<string>;
|
|
161
|
+
/**
|
|
162
|
+
* The description of flow log.
|
|
163
|
+
*/
|
|
164
|
+
description?: pulumi.Input<string>;
|
|
165
|
+
/**
|
|
166
|
+
* The name of flow log.
|
|
167
|
+
*/
|
|
168
|
+
flowLogName?: pulumi.Input<string>;
|
|
169
|
+
/**
|
|
170
|
+
* The reason why flow log is locked.
|
|
171
|
+
*/
|
|
172
|
+
lockReason?: pulumi.Input<string>;
|
|
173
|
+
/**
|
|
174
|
+
* The ID of log project.
|
|
175
|
+
*/
|
|
176
|
+
logProjectId?: pulumi.Input<string>;
|
|
177
|
+
/**
|
|
178
|
+
* The name of log project. If there is no corresponding log project with the name, a new log project will be created.
|
|
179
|
+
* When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignoreChanges ignore changes in fields.
|
|
180
|
+
*/
|
|
181
|
+
logProjectName?: pulumi.Input<string>;
|
|
182
|
+
/**
|
|
183
|
+
* The ID of log topic.
|
|
184
|
+
*/
|
|
185
|
+
logTopicId?: pulumi.Input<string>;
|
|
186
|
+
/**
|
|
187
|
+
* The name of log topic. If there is no corresponding log topic with the name, a new log topic will be created.
|
|
188
|
+
* When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignoreChanges ignore changes in fields.
|
|
189
|
+
*/
|
|
190
|
+
logTopicName?: pulumi.Input<string>;
|
|
191
|
+
/**
|
|
192
|
+
* The project name of flow log.
|
|
193
|
+
*/
|
|
194
|
+
projectName?: pulumi.Input<string>;
|
|
195
|
+
/**
|
|
196
|
+
* The ID of resource.
|
|
197
|
+
*/
|
|
198
|
+
resourceId?: pulumi.Input<string>;
|
|
199
|
+
/**
|
|
200
|
+
* The type of resource. Valid values: `vpc`, `subnet`, `eni`.
|
|
201
|
+
*/
|
|
202
|
+
resourceType?: pulumi.Input<string>;
|
|
203
|
+
/**
|
|
204
|
+
* The status of flow log. Values: `Active`, `Pending`, `Inactive`, `Creating`, `Deleting`.
|
|
205
|
+
*/
|
|
206
|
+
status?: pulumi.Input<string>;
|
|
207
|
+
/**
|
|
208
|
+
* Tags.
|
|
209
|
+
*/
|
|
210
|
+
tags?: pulumi.Input<pulumi.Input<inputs.vpc.FlowLogTag>[]>;
|
|
211
|
+
/**
|
|
212
|
+
* The type of traffic. Valid values: `All`, `Allow`, `Drop`.
|
|
213
|
+
*/
|
|
214
|
+
trafficType?: pulumi.Input<string>;
|
|
215
|
+
/**
|
|
216
|
+
* The updated time of flow log.
|
|
217
|
+
*/
|
|
218
|
+
updatedAt?: pulumi.Input<string>;
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* The set of arguments for constructing a FlowLog resource.
|
|
222
|
+
*/
|
|
223
|
+
export interface FlowLogArgs {
|
|
224
|
+
/**
|
|
225
|
+
* The aggregation interval of flow log. Unit: minute. Valid values: `1`, `5`, `10`.
|
|
226
|
+
*/
|
|
227
|
+
aggregationInterval: pulumi.Input<number>;
|
|
228
|
+
/**
|
|
229
|
+
* The description of flow log.
|
|
230
|
+
*/
|
|
231
|
+
description?: pulumi.Input<string>;
|
|
232
|
+
/**
|
|
233
|
+
* The name of flow log.
|
|
234
|
+
*/
|
|
235
|
+
flowLogName: pulumi.Input<string>;
|
|
236
|
+
/**
|
|
237
|
+
* The name of log project. If there is no corresponding log project with the name, a new log project will be created.
|
|
238
|
+
* When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignoreChanges ignore changes in fields.
|
|
239
|
+
*/
|
|
240
|
+
logProjectName: pulumi.Input<string>;
|
|
241
|
+
/**
|
|
242
|
+
* The name of log topic. If there is no corresponding log topic with the name, a new log topic will be created.
|
|
243
|
+
* When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignoreChanges ignore changes in fields.
|
|
244
|
+
*/
|
|
245
|
+
logTopicName: pulumi.Input<string>;
|
|
246
|
+
/**
|
|
247
|
+
* The project name of flow log.
|
|
248
|
+
*/
|
|
249
|
+
projectName?: pulumi.Input<string>;
|
|
250
|
+
/**
|
|
251
|
+
* The ID of resource.
|
|
252
|
+
*/
|
|
253
|
+
resourceId: pulumi.Input<string>;
|
|
254
|
+
/**
|
|
255
|
+
* The type of resource. Valid values: `vpc`, `subnet`, `eni`.
|
|
256
|
+
*/
|
|
257
|
+
resourceType: pulumi.Input<string>;
|
|
258
|
+
/**
|
|
259
|
+
* Tags.
|
|
260
|
+
*/
|
|
261
|
+
tags?: pulumi.Input<pulumi.Input<inputs.vpc.FlowLogTag>[]>;
|
|
262
|
+
/**
|
|
263
|
+
* The type of traffic. Valid values: `All`, `Allow`, `Drop`.
|
|
264
|
+
*/
|
|
265
|
+
trafficType: pulumi.Input<string>;
|
|
266
|
+
}
|
package/vpc/flowLog.js
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
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.FlowLog = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a resource to manage flow log
|
|
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
|
+
* projectName: "default",
|
|
22
|
+
* });
|
|
23
|
+
* const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
|
|
24
|
+
* subnetName: "acc-test-subnet",
|
|
25
|
+
* cidrBlock: "172.16.0.0/24",
|
|
26
|
+
* zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
|
|
27
|
+
* vpcId: fooVpc.id,
|
|
28
|
+
* });
|
|
29
|
+
* const fooFlowLog = new volcengine.vpc.FlowLog("fooFlowLog", {
|
|
30
|
+
* flowLogName: "acc-test-flow-log",
|
|
31
|
+
* description: "acc-test",
|
|
32
|
+
* resourceType: "subnet",
|
|
33
|
+
* resourceId: fooSubnet.id,
|
|
34
|
+
* trafficType: "All",
|
|
35
|
+
* logProjectName: "acc-test-project",
|
|
36
|
+
* logTopicName: "acc-test-topic",
|
|
37
|
+
* aggregationInterval: 10,
|
|
38
|
+
* projectName: "default",
|
|
39
|
+
* tags: [{
|
|
40
|
+
* key: "k1",
|
|
41
|
+
* value: "v1",
|
|
42
|
+
* }],
|
|
43
|
+
* });
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* ## Import
|
|
47
|
+
*
|
|
48
|
+
* FlowLog can be imported using the id, e.g.
|
|
49
|
+
*
|
|
50
|
+
* ```sh
|
|
51
|
+
* $ pulumi import volcengine:vpc/flowLog:FlowLog default resource_id
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
class FlowLog extends pulumi.CustomResource {
|
|
55
|
+
/**
|
|
56
|
+
* Get an existing FlowLog resource's state with the given name, ID, and optional extra
|
|
57
|
+
* properties used to qualify the lookup.
|
|
58
|
+
*
|
|
59
|
+
* @param name The _unique_ name of the resulting resource.
|
|
60
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
61
|
+
* @param state Any extra arguments used during the lookup.
|
|
62
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
63
|
+
*/
|
|
64
|
+
static get(name, id, state, opts) {
|
|
65
|
+
return new FlowLog(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Returns true if the given object is an instance of FlowLog. This is designed to work even
|
|
69
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
70
|
+
*/
|
|
71
|
+
static isInstance(obj) {
|
|
72
|
+
if (obj === undefined || obj === null) {
|
|
73
|
+
return false;
|
|
74
|
+
}
|
|
75
|
+
return obj['__pulumiType'] === FlowLog.__pulumiType;
|
|
76
|
+
}
|
|
77
|
+
constructor(name, argsOrState, opts) {
|
|
78
|
+
let resourceInputs = {};
|
|
79
|
+
opts = opts || {};
|
|
80
|
+
if (opts.id) {
|
|
81
|
+
const state = argsOrState;
|
|
82
|
+
resourceInputs["aggregationInterval"] = state ? state.aggregationInterval : undefined;
|
|
83
|
+
resourceInputs["businessStatus"] = state ? state.businessStatus : undefined;
|
|
84
|
+
resourceInputs["createdAt"] = state ? state.createdAt : undefined;
|
|
85
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
86
|
+
resourceInputs["flowLogName"] = state ? state.flowLogName : undefined;
|
|
87
|
+
resourceInputs["lockReason"] = state ? state.lockReason : undefined;
|
|
88
|
+
resourceInputs["logProjectId"] = state ? state.logProjectId : undefined;
|
|
89
|
+
resourceInputs["logProjectName"] = state ? state.logProjectName : undefined;
|
|
90
|
+
resourceInputs["logTopicId"] = state ? state.logTopicId : undefined;
|
|
91
|
+
resourceInputs["logTopicName"] = state ? state.logTopicName : undefined;
|
|
92
|
+
resourceInputs["projectName"] = state ? state.projectName : undefined;
|
|
93
|
+
resourceInputs["resourceId"] = state ? state.resourceId : undefined;
|
|
94
|
+
resourceInputs["resourceType"] = state ? state.resourceType : undefined;
|
|
95
|
+
resourceInputs["status"] = state ? state.status : undefined;
|
|
96
|
+
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
97
|
+
resourceInputs["trafficType"] = state ? state.trafficType : undefined;
|
|
98
|
+
resourceInputs["updatedAt"] = state ? state.updatedAt : undefined;
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
const args = argsOrState;
|
|
102
|
+
if ((!args || args.aggregationInterval === undefined) && !opts.urn) {
|
|
103
|
+
throw new Error("Missing required property 'aggregationInterval'");
|
|
104
|
+
}
|
|
105
|
+
if ((!args || args.flowLogName === undefined) && !opts.urn) {
|
|
106
|
+
throw new Error("Missing required property 'flowLogName'");
|
|
107
|
+
}
|
|
108
|
+
if ((!args || args.logProjectName === undefined) && !opts.urn) {
|
|
109
|
+
throw new Error("Missing required property 'logProjectName'");
|
|
110
|
+
}
|
|
111
|
+
if ((!args || args.logTopicName === undefined) && !opts.urn) {
|
|
112
|
+
throw new Error("Missing required property 'logTopicName'");
|
|
113
|
+
}
|
|
114
|
+
if ((!args || args.resourceId === undefined) && !opts.urn) {
|
|
115
|
+
throw new Error("Missing required property 'resourceId'");
|
|
116
|
+
}
|
|
117
|
+
if ((!args || args.resourceType === undefined) && !opts.urn) {
|
|
118
|
+
throw new Error("Missing required property 'resourceType'");
|
|
119
|
+
}
|
|
120
|
+
if ((!args || args.trafficType === undefined) && !opts.urn) {
|
|
121
|
+
throw new Error("Missing required property 'trafficType'");
|
|
122
|
+
}
|
|
123
|
+
resourceInputs["aggregationInterval"] = args ? args.aggregationInterval : undefined;
|
|
124
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
125
|
+
resourceInputs["flowLogName"] = args ? args.flowLogName : undefined;
|
|
126
|
+
resourceInputs["logProjectName"] = args ? args.logProjectName : undefined;
|
|
127
|
+
resourceInputs["logTopicName"] = args ? args.logTopicName : undefined;
|
|
128
|
+
resourceInputs["projectName"] = args ? args.projectName : undefined;
|
|
129
|
+
resourceInputs["resourceId"] = args ? args.resourceId : undefined;
|
|
130
|
+
resourceInputs["resourceType"] = args ? args.resourceType : undefined;
|
|
131
|
+
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
132
|
+
resourceInputs["trafficType"] = args ? args.trafficType : undefined;
|
|
133
|
+
resourceInputs["businessStatus"] = undefined /*out*/;
|
|
134
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
135
|
+
resourceInputs["lockReason"] = undefined /*out*/;
|
|
136
|
+
resourceInputs["logProjectId"] = undefined /*out*/;
|
|
137
|
+
resourceInputs["logTopicId"] = undefined /*out*/;
|
|
138
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
139
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
140
|
+
}
|
|
141
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
142
|
+
super(FlowLog.__pulumiType, name, resourceInputs, opts);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
exports.FlowLog = FlowLog;
|
|
146
|
+
/** @internal */
|
|
147
|
+
FlowLog.__pulumiType = 'volcengine:vpc/flowLog:FlowLog';
|
|
148
|
+
//# sourceMappingURL=flowLog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flowLog.js","sourceRoot":"","sources":["../../vpc/flowLog.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoB,EAAE,IAAmC;QAClH,OAAO,IAAI,OAAO,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC9D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,OAAO,CAAC,YAAY,CAAC;IACxD,CAAC;IAiFD,YAAY,IAAY,EAAE,WAAwC,EAAE,IAAmC;QACnG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAuC,CAAC;YACtD,cAAc,CAAC,qBAAqB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,CAAC;YACtF,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,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