UNPKG

@pulumi/yandex

Version:

A Pulumi package for creating and managing yandex cloud resources.

40 lines 1.45 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.getVpcSubnetOutput = exports.getVpcSubnet = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Get information about a Yandex VPC subnet. For more information, see * [Yandex.Cloud VPC](https://cloud.yandex.com/docs/vpc/concepts/index). * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as yandex from "@pulumi/yandex"; * * const admin = pulumi.output(yandex.getVpcSubnet({ * subnetId: "my-subnet-id", * })); * ``` * * This data source is used to define [VPC Subnets] that can be used by other resources. */ function getVpcSubnet(args, opts) { args = args || {}; if (!opts) { opts = {}; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); return pulumi.runtime.invoke("yandex:index/getVpcSubnet:getVpcSubnet", { "folderId": args.folderId, "name": args.name, "subnetId": args.subnetId, }, opts); } exports.getVpcSubnet = getVpcSubnet; function getVpcSubnetOutput(args, opts) { return pulumi.output(args).apply(a => getVpcSubnet(a, opts)); } exports.getVpcSubnetOutput = getVpcSubnetOutput; //# sourceMappingURL=getVpcSubnet.js.map