@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
144 lines • 4.79 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* The `scaleway.account.SshKey` resource allows you to create and manage the Projects of a Scaleway Organization.
*
* Refer to the Organizations and Projects [documentation](https://www.scaleway.com/en/docs/organizations-and-projects/) and [API documentation](https://www.scaleway.com/en/developers/api/account/project-api/) for more information.
*
* !> **Important:** The resource `scaleway.account.SshKey` has been deprecated and will no longer be supported. Instead, use `scaleway.iam.SshKey`.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumiverse/scaleway";
*
* const main = new scaleway.account.SshKey("main", {
* name: "main",
* publicKey: "<YOUR-PUBLIC-SSH-KEY>",
* });
* ```
*
* ## Import
*
* SSH keys can be imported using the `id`, e.g.
*
* ```sh
* $ pulumi import scaleway:account/sshKey:SshKey main 11111111-1111-1111-1111-111111111111
* ```
*/
export declare class SshKey extends pulumi.CustomResource {
/**
* Get an existing SshKey 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?: SshKeyState, opts?: pulumi.CustomResourceOptions): SshKey;
/**
* Returns true if the given object is an instance of SshKey. 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 SshKey;
/**
* 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 SshKey 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: SshKeyArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering SshKey resources.
*/
export interface SshKeyState {
/**
* The date and time of the creation of the iam SSH Key
*/
createdAt?: pulumi.Input<string | undefined>;
/**
* The SSH key status
*/
disabled?: pulumi.Input<boolean | undefined>;
/**
* The fingerprint of the iam SSH key
*/
fingerprint?: pulumi.Input<string | undefined>;
/**
* The name of the SSH key.
*/
name?: pulumi.Input<string | undefined>;
/**
* The organization ID the SSH key is associated with.
*/
organizationId?: pulumi.Input<string | undefined>;
/**
* `projectId`) The ID of the project the SSH key is associated with.
*/
projectId?: pulumi.Input<string | undefined>;
/**
* The public SSH key to be added.
*/
publicKey?: pulumi.Input<string | undefined>;
/**
* The date and time of the last update of the iam SSH Key
*/
updatedAt?: pulumi.Input<string | undefined>;
}
/**
* The set of arguments for constructing a SshKey resource.
*/
export interface SshKeyArgs {
/**
* The SSH key status
*/
disabled?: pulumi.Input<boolean | undefined>;
/**
* The name of the SSH key.
*/
name?: pulumi.Input<string | undefined>;
/**
* `projectId`) The ID of the project the SSH key is associated with.
*/
projectId?: pulumi.Input<string | undefined>;
/**
* The public SSH key to be added.
*/
publicKey: pulumi.Input<string>;
}
//# sourceMappingURL=sshKey.d.ts.map