UNPKG

@pulumi/fastly

Version:

A Pulumi package for creating and managing fastly cloud resources.. Based on terraform-provider-fastly: version v4

130 lines (129 loc) 4.18 kB
import * as pulumi from "@pulumi/pulumi"; /** * Uploads a Custom TLS Private Key to Fastly. This can be combined with a `fastly.TlsCertificate` resource to provide a TLS Certificate able to be applied to a Fastly Service. * * The Private Key resource requires a key in PEM format, and a name to identify it. * * ## Example Usage * * Basic usage: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fastly from "@pulumi/fastly"; * import * as tls from "@pulumi/tls"; * * const demo = new tls.index.PrivateKey("demo", {algorithm: "RSA"}); * const demoTlsPrivateKey = new fastly.TlsPrivateKey("demo", { * keyPem: demo.privateKeyPem, * name: "tf-demo", * }); * ``` * * ## Import * * A Private Key can be imported using its ID, e.g. * * ```sh * $ pulumi import fastly:index/tlsPrivateKey:TlsPrivateKey demo xxxxxxxxxxx * ``` */ export declare class TlsPrivateKey extends pulumi.CustomResource { /** * Get an existing TlsPrivateKey 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?: TlsPrivateKeyState, opts?: pulumi.CustomResourceOptions): TlsPrivateKey; /** * Returns true if the given object is an instance of TlsPrivateKey. 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 TlsPrivateKey; /** * Time-stamp (GMT) when the private key was created. */ readonly createdAt: pulumi.Output<string>; /** * The key length used to generate the private key. */ readonly keyLength: pulumi.Output<number>; /** * Private key in PEM format. */ readonly keyPem: pulumi.Output<string>; /** * The algorithm used to generate the private key. Must be RSA. */ readonly keyType: pulumi.Output<string>; /** * Customisable name of the private key. */ readonly name: pulumi.Output<string>; /** * Useful for safely identifying the key. */ readonly publicKeySha1: pulumi.Output<string>; /** * Whether Fastly recommends replacing this private key. */ readonly replace: pulumi.Output<boolean>; /** * Create a TlsPrivateKey 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: TlsPrivateKeyArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering TlsPrivateKey resources. */ export interface TlsPrivateKeyState { /** * Time-stamp (GMT) when the private key was created. */ createdAt?: pulumi.Input<string>; /** * The key length used to generate the private key. */ keyLength?: pulumi.Input<number>; /** * Private key in PEM format. */ keyPem?: pulumi.Input<string>; /** * The algorithm used to generate the private key. Must be RSA. */ keyType?: pulumi.Input<string>; /** * Customisable name of the private key. */ name?: pulumi.Input<string>; /** * Useful for safely identifying the key. */ publicKeySha1?: pulumi.Input<string>; /** * Whether Fastly recommends replacing this private key. */ replace?: pulumi.Input<boolean>; } /** * The set of arguments for constructing a TlsPrivateKey resource. */ export interface TlsPrivateKeyArgs { /** * Private key in PEM format. */ keyPem: pulumi.Input<string>; /** * Customisable name of the private key. */ name?: pulumi.Input<string>; }