UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

60 lines 2.09 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getFlowLogsOutput = exports.getFlowLogs = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Use this data source to query detailed information of flow logs * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const foo = volcengine.vpc.getFlowLogs({ * flowLogIds: ["fl-13g4fqngluhog3n6nu57o****"], * }); * ``` */ function getFlowLogs(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("volcengine:vpc/getFlowLogs:getFlowLogs", { "aggregationInterval": args.aggregationInterval, "description": args.description, "flowLogIds": args.flowLogIds, "flowLogName": args.flowLogName, "logProjectId": args.logProjectId, "logTopicId": args.logTopicId, "nameRegex": args.nameRegex, "outputFile": args.outputFile, "projectName": args.projectName, "resourceId": args.resourceId, "resourceType": args.resourceType, "status": args.status, "tags": args.tags, "trafficType": args.trafficType, "vpcId": args.vpcId, }, opts); } exports.getFlowLogs = getFlowLogs; /** * Use this data source to query detailed information of flow logs * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const foo = volcengine.vpc.getFlowLogs({ * flowLogIds: ["fl-13g4fqngluhog3n6nu57o****"], * }); * ``` */ function getFlowLogsOutput(args, opts) { return pulumi.output(args).apply((a) => getFlowLogs(a, opts)); } exports.getFlowLogsOutput = getFlowLogsOutput; //# sourceMappingURL=getFlowLogs.js.map