UNPKG

@pulumi/aws

Version:

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

67 lines (66 loc) 1.84 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * This data source can be used to fetch information about IAM access keys of a * specific IAM user. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.iam.getAccessKeys({ * user: "an_example_user_name", * }); * ``` */ export declare function getAccessKeys(args: GetAccessKeysArgs, opts?: pulumi.InvokeOptions): Promise<GetAccessKeysResult>; /** * A collection of arguments for invoking getAccessKeys. */ export interface GetAccessKeysArgs { /** * Name of the IAM user associated with the access keys. */ user: string; } /** * A collection of values returned by getAccessKeys. */ export interface GetAccessKeysResult { /** * List of the IAM access keys associated with the specified user. See below. */ readonly accessKeys: outputs.iam.GetAccessKeysAccessKey[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly user: string; } /** * This data source can be used to fetch information about IAM access keys of a * specific IAM user. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.iam.getAccessKeys({ * user: "an_example_user_name", * }); * ``` */ export declare function getAccessKeysOutput(args: GetAccessKeysOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAccessKeysResult>; /** * A collection of arguments for invoking getAccessKeys. */ export interface GetAccessKeysOutputArgs { /** * Name of the IAM user associated with the access keys. */ user: pulumi.Input<string>; }