@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
54 lines • 2.02 kB
JavaScript
;
// *** 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.getInstanceProfilesOutput = exports.getInstanceProfiles = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* This data source can be used to fetch information about all
* IAM instance profiles under a role. By using this data source, you can reference IAM
* instance profile 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.getInstanceProfiles({
* roleName: "an_example_iam_role_name",
* });
* ```
*/
function getInstanceProfiles(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:iam/getInstanceProfiles:getInstanceProfiles", {
"roleName": args.roleName,
}, opts);
}
exports.getInstanceProfiles = getInstanceProfiles;
/**
* This data source can be used to fetch information about all
* IAM instance profiles under a role. By using this data source, you can reference IAM
* instance profile 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.getInstanceProfiles({
* roleName: "an_example_iam_role_name",
* });
* ```
*/
function getInstanceProfilesOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:iam/getInstanceProfiles:getInstanceProfiles", {
"roleName": args.roleName,
}, opts);
}
exports.getInstanceProfilesOutput = getInstanceProfilesOutput;
//# sourceMappingURL=getInstanceProfiles.js.map