UNPKG

@pulumi/aws

Version:

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

88 lines (87 loc) 2.5 kB
import * as pulumi from "@pulumi/pulumi"; /** * 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", * }); * ``` */ export declare function getInstanceProfile(args: GetInstanceProfileArgs, opts?: pulumi.InvokeOptions): Promise<GetInstanceProfileResult>; /** * A collection of arguments for invoking getInstanceProfile. */ export interface GetInstanceProfileArgs { /** * Friendly IAM instance profile name to match. */ name: string; } /** * A collection of values returned by getInstanceProfile. */ export interface GetInstanceProfileResult { /** * ARN. */ readonly arn: string; /** * String representation of the date the instance profile was created. */ readonly createDate: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly name: string; /** * Path to the instance profile. */ readonly path: string; /** * Role ARN associated with this instance profile. */ readonly roleArn: string; /** * Role ID associated with this instance profile. */ readonly roleId: string; /** * Role name associated with this instance profile. */ readonly roleName: string; } /** * 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", * }); * ``` */ export declare function getInstanceProfileOutput(args: GetInstanceProfileOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetInstanceProfileResult>; /** * A collection of arguments for invoking getInstanceProfile. */ export interface GetInstanceProfileOutputArgs { /** * Friendly IAM instance profile name to match. */ name: pulumi.Input<string>; }