@pulumi/yandex
Version:
A Pulumi package for creating and managing yandex cloud resources.
49 lines • 1.79 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.getVpcSecurityGroupOutput = exports.getVpcSecurityGroup = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Get information about a Yandex VPC Security Group. For more information, see
* [Yandex.Cloud VPC](https://cloud.yandex.com/docs/vpc/concepts/security-groups).
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as yandex from "@pulumi/yandex";
*
* const group1 = pulumi.output(yandex.getVpcSecurityGroup({
* securityGroupId: "my-id",
* }));
* ```
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as yandex from "@pulumi/yandex";
*
* const group1 = pulumi.output(yandex.getVpcSecurityGroup({
* name: "my-group1",
* }));
* ```
*
* This data source is used to define Security Group that can be used by other resources.
*/
function getVpcSecurityGroup(args, opts) {
args = args || {};
if (!opts) {
opts = {};
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
return pulumi.runtime.invoke("yandex:index/getVpcSecurityGroup:getVpcSecurityGroup", {
"folderId": args.folderId,
"name": args.name,
"securityGroupId": args.securityGroupId,
}, opts);
}
exports.getVpcSecurityGroup = getVpcSecurityGroup;
function getVpcSecurityGroupOutput(args, opts) {
return pulumi.output(args).apply(a => getVpcSecurityGroup(a, opts));
}
exports.getVpcSecurityGroupOutput = getVpcSecurityGroupOutput;
//# sourceMappingURL=getVpcSecurityGroup.js.map