UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

51 lines 1.88 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.getListenersOutput = exports.getListeners = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Use this data source to query the list of ELB listeners. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as huaweicloud from "@pulumi/huaweicloud"; * * const config = new pulumi.Config(); * const protocol = config.requireObject("protocol"); * const test = huaweicloud.Elb.getListeners({ * protocol: protocol, * }); * ``` */ function getListeners(args, opts) { args = args || {}; if (!opts) { opts = {}; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); return pulumi.runtime.invoke("huaweicloud:Elb/getListeners:getListeners", { "clientCaTlsContainerRef": args.clientCaTlsContainerRef, "defaultPoolId": args.defaultPoolId, "defaultTlsContainerRef": args.defaultTlsContainerRef, "description": args.description, "enterpriseProjectId": args.enterpriseProjectId, "http2Enable": args.http2Enable, "listenerId": args.listenerId, "loadbalancerId": args.loadbalancerId, "name": args.name, "protocol": args.protocol, "protocolPort": args.protocolPort, "region": args.region, "tlsCiphersPolicy": args.tlsCiphersPolicy, }, opts); } exports.getListeners = getListeners; function getListenersOutput(args, opts) { return pulumi.output(args).apply(a => getListeners(a, opts)); } exports.getListenersOutput = getListenersOutput; //# sourceMappingURL=getListeners.js.map