UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

71 lines 2.24 kB
import * as pulumi from "@pulumi/pulumi"; /** * Gets information about an existing IAM API key. For more information, refer to the [IAM API documentation](https://www.scaleway.com/en/developers/api/iam/#api-keys-3665ae). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * // Get api key infos by id (access_key) * const main = scaleway.iam.getApiKey({ * accessKey: "SCWABCDEFGHIJKLMNOPQ", * }); * ``` */ export declare function getApiKey(args: GetApiKeyArgs, opts?: pulumi.InvokeOptions): Promise<GetApiKeyResult>; /** * A collection of arguments for invoking getApiKey. */ export interface GetApiKeyArgs { /** * The access key of the IAM API key which is also the ID of the API key. */ accessKey: string; } /** * A collection of values returned by getApiKey. */ export interface GetApiKeyResult { readonly accessKey: string; readonly applicationId: string; readonly createdAt: string; readonly creationIp: string; readonly defaultProjectId: string; readonly description: string; readonly editable: boolean; readonly expiresAt: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly updatedAt: string; readonly userId: string; } /** * Gets information about an existing IAM API key. For more information, refer to the [IAM API documentation](https://www.scaleway.com/en/developers/api/iam/#api-keys-3665ae). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * // Get api key infos by id (access_key) * const main = scaleway.iam.getApiKey({ * accessKey: "SCWABCDEFGHIJKLMNOPQ", * }); * ``` */ export declare function getApiKeyOutput(args: GetApiKeyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetApiKeyResult>; /** * A collection of arguments for invoking getApiKey. */ export interface GetApiKeyOutputArgs { /** * The access key of the IAM API key which is also the ID of the API key. */ accessKey: pulumi.Input<string>; } //# sourceMappingURL=getApiKey.d.ts.map