@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
48 lines • 1.83 kB
JavaScript
;
// *** 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.getSubNetworkInterfacesOutput = exports.getSubNetworkInterfaces = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to get a list of VPC supplementary network interfaces.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const config = new pulumi.Config();
* const subnetId = config.requireObject("subnetId");
* const parentId = config.requireObject("parentId");
* const test = huaweicloud.Vpc.getSubNetworkInterfaces({
* subnetId: subnetId,
* parentId: parentId,
* });
* ```
*/
function getSubNetworkInterfaces(args, opts) {
args = args || {};
if (!opts) {
opts = {};
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
return pulumi.runtime.invoke("huaweicloud:Vpc/getSubNetworkInterfaces:getSubNetworkInterfaces", {
"descriptions": args.descriptions,
"interfaceId": args.interfaceId,
"ipAddress": args.ipAddress,
"macAddress": args.macAddress,
"parentId": args.parentId,
"region": args.region,
"subnetId": args.subnetId,
"vpcId": args.vpcId,
}, opts);
}
exports.getSubNetworkInterfaces = getSubNetworkInterfaces;
function getSubNetworkInterfacesOutput(args, opts) {
return pulumi.output(args).apply(a => getSubNetworkInterfaces(a, opts));
}
exports.getSubNetworkInterfacesOutput = getSubNetworkInterfacesOutput;
//# sourceMappingURL=getSubNetworkInterfaces.js.map