UNPKG

@pulumi/aws

Version:

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

56 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.getRoleOutput = exports.getRole = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * This data source can be used to fetch information about a specific * IAM role. By using this data source, you can reference IAM role * 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.getRole({ * name: "an_example_role_name", * }); * ``` */ function getRole(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:iam/getRole:getRole", { "name": args.name, "tags": args.tags, }, opts); } exports.getRole = getRole; /** * This data source can be used to fetch information about a specific * IAM role. By using this data source, you can reference IAM role * 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.getRole({ * name: "an_example_role_name", * }); * ``` */ function getRoleOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:iam/getRole:getRole", { "name": args.name, "tags": args.tags, }, opts); } exports.getRoleOutput = getRoleOutput; //# sourceMappingURL=getRole.js.map