@lbrlabs/pulumi-scaleway
Version:
A Pulumi package for creating and managing scaleway cloud resources.
139 lines (138 loc) • 4.41 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Manages user SSH keys to access servers provisioned on Scaleway.
*
* > **Important:** The resource `scaleway.AccountSshKey` has been deprecated and will no longer be supported. Instead, use `scaleway.IamSshKey`.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@lbrlabs/pulumi-scaleway";
*
* const main = new scaleway.AccountSshKey("main", {publicKey: "<YOUR-PUBLIC-SSH-KEY>"});
* ```
*
* ## Import
*
* SSH keys can be imported using the `id`, e.g. bash
*
* ```sh
* $ pulumi import scaleway:index/accountSshKey:AccountSshKey main 11111111-1111-1111-1111-111111111111
* ```
*/
export declare class AccountSshKey extends pulumi.CustomResource {
/**
* Get an existing AccountSshKey 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?: AccountSshKeyState, opts?: pulumi.CustomResourceOptions): AccountSshKey;
/**
* Returns true if the given object is an instance of AccountSshKey. 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 AccountSshKey;
/**
* The date and time of the creation of the iam 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 organization ID 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 iam SSH Key
*/
readonly updatedAt: pulumi.Output<string>;
/**
* Create a AccountSshKey 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: AccountSshKeyArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering AccountSshKey resources.
*/
export interface AccountSshKeyState {
/**
* The date and time of the creation of the iam 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 organization ID 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 iam SSH Key
*/
updatedAt?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a AccountSshKey resource.
*/
export interface AccountSshKeyArgs {
/**
* 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>;
}