UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

62 lines 2.03 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getSecurityGroupRulesOutput = exports.getSecurityGroupRules = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * This resource can be useful for getting back a set of security group rule IDs. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.vpc.getSecurityGroupRules({ * filters: [{ * name: "group-id", * values: [securityGroupId], * }], * }); * ``` */ function getSecurityGroupRules(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:vpc/getSecurityGroupRules:getSecurityGroupRules", { "filters": args.filters, "region": args.region, "tags": args.tags, }, opts); } exports.getSecurityGroupRules = getSecurityGroupRules; /** * This resource can be useful for getting back a set of security group rule IDs. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.vpc.getSecurityGroupRules({ * filters: [{ * name: "group-id", * values: [securityGroupId], * }], * }); * ``` */ function getSecurityGroupRulesOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:vpc/getSecurityGroupRules:getSecurityGroupRules", { "filters": args.filters, "region": args.region, "tags": args.tags, }, opts); } exports.getSecurityGroupRulesOutput = getSecurityGroupRulesOutput; //# sourceMappingURL=getSecurityGroupRules.js.map