@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
54 lines • 1.98 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.getInstanceProfileOutput = exports.getInstanceProfile = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* This data source can be used to fetch information about a specific
* IAM instance profile. 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.getInstanceProfile({
* name: "an_example_instance_profile_name",
* });
* ```
*/
function getInstanceProfile(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:iam/getInstanceProfile:getInstanceProfile", {
"name": args.name,
}, opts);
}
exports.getInstanceProfile = getInstanceProfile;
/**
* This data source can be used to fetch information about a specific
* IAM instance profile. 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.getInstanceProfile({
* name: "an_example_instance_profile_name",
* });
* ```
*/
function getInstanceProfileOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:iam/getInstanceProfile:getInstanceProfile", {
"name": args.name,
}, opts);
}
exports.getInstanceProfileOutput = getInstanceProfileOutput;
//# sourceMappingURL=getInstanceProfile.js.map
;