UNPKG

@lbrlabs/pulumi-scaleway

Version:

A Pulumi package for creating and managing scaleway cloud resources.

174 lines (173 loc) 5.9 kB
import * as pulumi from "@pulumi/pulumi"; /** * Creates and manages Scaleway Function Namespace. * For more information see [the documentation](https://developers.scaleway.com/en/products/functions/api/). * * ## Examples * * ### Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@lbrlabs/pulumi-scaleway"; * * const main = new scaleway.FunctionNamespace("main", {description: "Main function namespace"}); * ``` * * ## Import * * Namespaces can be imported using the `{region}/{id}`, e.g. bash * * ```sh * $ pulumi import scaleway:index/functionNamespace:FunctionNamespace main fr-par/11111111-1111-1111-1111-111111111111 * ``` */ export declare class FunctionNamespace extends pulumi.CustomResource { /** * Get an existing FunctionNamespace 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?: FunctionNamespaceState, opts?: pulumi.CustomResourceOptions): FunctionNamespace; /** * Returns true if the given object is an instance of FunctionNamespace. 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 FunctionNamespace; /** * The description of the namespace. */ readonly description: pulumi.Output<string | undefined>; /** * The environment variables of the namespace. */ readonly environmentVariables: pulumi.Output<{ [key: string]: string; } | undefined>; /** * The unique name of the function namespace. * * > **Important** Updates to `name` will recreate the namespace. */ readonly name: pulumi.Output<string>; /** * The organization ID the namespace is associated with. */ readonly organizationId: pulumi.Output<string>; /** * `projectId`) The ID of the project the namespace is associated with. */ readonly projectId: pulumi.Output<string>; /** * `region`). The region in which the namespace should be created. */ readonly region: pulumi.Output<string>; /** * The registry endpoint of the namespace. */ readonly registryEndpoint: pulumi.Output<string>; /** * The registry namespace ID of the namespace. */ readonly registryNamespaceId: pulumi.Output<string>; /** * The [secret environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#secrets) variables of the namespace. */ readonly secretEnvironmentVariables: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Create a FunctionNamespace 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?: FunctionNamespaceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering FunctionNamespace resources. */ export interface FunctionNamespaceState { /** * The description of the namespace. */ description?: pulumi.Input<string>; /** * The environment variables of the namespace. */ environmentVariables?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * The unique name of the function namespace. * * > **Important** Updates to `name` will recreate the namespace. */ name?: pulumi.Input<string>; /** * The organization ID the namespace is associated with. */ organizationId?: pulumi.Input<string>; /** * `projectId`) The ID of the project the namespace is associated with. */ projectId?: pulumi.Input<string>; /** * `region`). The region in which the namespace should be created. */ region?: pulumi.Input<string>; /** * The registry endpoint of the namespace. */ registryEndpoint?: pulumi.Input<string>; /** * The registry namespace ID of the namespace. */ registryNamespaceId?: pulumi.Input<string>; /** * The [secret environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#secrets) variables of the namespace. */ secretEnvironmentVariables?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; } /** * The set of arguments for constructing a FunctionNamespace resource. */ export interface FunctionNamespaceArgs { /** * The description of the namespace. */ description?: pulumi.Input<string>; /** * The environment variables of the namespace. */ environmentVariables?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * The unique name of the function namespace. * * > **Important** Updates to `name` will recreate the namespace. */ name?: pulumi.Input<string>; /** * `projectId`) The ID of the project the namespace is associated with. */ projectId?: pulumi.Input<string>; /** * `region`). The region in which the namespace should be created. */ region?: pulumi.Input<string>; /** * The [secret environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#secrets) variables of the namespace. */ secretEnvironmentVariables?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; }