UNPKG

@lbrlabs/pulumi-scaleway

Version:

A Pulumi package for creating and managing scaleway cloud resources.

142 lines (141 loc) 4.33 kB
import * as pulumi from "@pulumi/pulumi"; /** * Creates and manages Scaleway IAM SSH Keys. * For more information, * see [the documentation](https://developers.scaleway.com/en/products/iam/api/v1alpha1/#ssh-keys-d8ccd4). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@lbrlabs/pulumi-scaleway"; * * const main = new scaleway.IamSshKey("main", {publicKey: "<YOUR-PUBLIC-SSH-KEY>"}); * ``` * * ## Import * * SSH keys can be imported using the `id`, e.g. bash * * ```sh * $ pulumi import scaleway:index/iamSshKey:IamSshKey main 11111111-1111-1111-1111-111111111111 * ``` */ export declare class IamSshKey extends pulumi.CustomResource { /** * Get an existing IamSshKey resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: IamSshKeyState, opts?: pulumi.CustomResourceOptions): IamSshKey; /** * Returns true if the given object is an instance of IamSshKey. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is IamSshKey; /** * The date and time of the creation of the SSH key. */ readonly createdAt: pulumi.Output<string>; /** * The SSH key status. */ readonly disabled: pulumi.Output<boolean | undefined>; /** * The fingerprint of the iam SSH key. */ readonly fingerprint: pulumi.Output<string>; /** * The name of the SSH key. */ readonly name: pulumi.Output<string>; /** * The ID of the organization the SSH key is associated with. */ readonly organizationId: pulumi.Output<string>; /** * `projectId`) The ID of the project the SSH key is * associated with. */ readonly projectId: pulumi.Output<string>; /** * The public SSH key to be added. */ readonly publicKey: pulumi.Output<string>; /** * The date and time of the last update of the SSH key. */ readonly updatedAt: pulumi.Output<string>; /** * Create a IamSshKey resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: IamSshKeyArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering IamSshKey resources. */ export interface IamSshKeyState { /** * The date and time of the creation of the SSH key. */ createdAt?: pulumi.Input<string>; /** * The SSH key status. */ disabled?: pulumi.Input<boolean>; /** * The fingerprint of the iam SSH key. */ fingerprint?: pulumi.Input<string>; /** * The name of the SSH key. */ name?: pulumi.Input<string>; /** * The ID of the organization the SSH key is associated with. */ organizationId?: pulumi.Input<string>; /** * `projectId`) The ID of the project the SSH key is * associated with. */ projectId?: pulumi.Input<string>; /** * The public SSH key to be added. */ publicKey?: pulumi.Input<string>; /** * The date and time of the last update of the SSH key. */ updatedAt?: pulumi.Input<string>; } /** * The set of arguments for constructing a IamSshKey resource. */ export interface IamSshKeyArgs { /** * The SSH key status. */ disabled?: pulumi.Input<boolean>; /** * The name of the SSH key. */ name?: pulumi.Input<string>; /** * `projectId`) The ID of the project the SSH key is * associated with. */ projectId?: pulumi.Input<string>; /** * The public SSH key to be added. */ publicKey: pulumi.Input<string>; }