@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
149 lines (148 loc) • 4.98 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.
*
* bash
*
* ```sh
* $ pulumi import scaleway:index/accountSshKey:AccountSshKey main 11111111-1111-1111-1111-111111111111
* ```
*
* @deprecated scaleway.index/accountsshkey.AccountSshKey has been deprecated in favor of scaleway.account/sshkey.SshKey
*/
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.
*/
/** @deprecated scaleway.index/accountsshkey.AccountSshKey has been deprecated in favor of scaleway.account/sshkey.SshKey */
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>;
}