UNPKG

@pulumi/aws

Version:

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

54 lines 1.8 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.getGroupOutput = exports.getGroup = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * This data source can be used to fetch information about a specific * IAM group. By using this data source, you can reference IAM group * properties without having to hard code ARNs as input. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.iam.getGroup({ * groupName: "an_example_group_name", * }); * ``` */ function getGroup(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:iam/getGroup:getGroup", { "groupName": args.groupName, }, opts); } exports.getGroup = getGroup; /** * This data source can be used to fetch information about a specific * IAM group. By using this data source, you can reference IAM group * properties without having to hard code ARNs as input. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.iam.getGroup({ * groupName: "an_example_group_name", * }); * ``` */ function getGroupOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:iam/getGroup:getGroup", { "groupName": args.groupName, }, opts); } exports.getGroupOutput = getGroupOutput; //# sourceMappingURL=getGroup.js.map