@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
212 lines (211 loc) • 7.45 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* The `scaleway.containers.Namespace` resource allows you to
* for Scaleway [Serverless Containers](https://www.scaleway.com/en/docs/serverless/containers/).
*
* Refer to the Containers namespace [documentation](https://www.scaleway.com/en/docs/serverless/containers/how-to/create-manage-delete-containers-namespace/) and [API documentation](https://www.scaleway.com/en/developers/api/serverless-containers/#path-namespaces-list-all-your-namespaces) for more information.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumiverse/scaleway";
*
* const main = new scaleway.containers.Namespace("main", {
* name: "main-container-namespace",
* description: "Main container namespace",
* });
* ```
*
* ## Import
*
* Containers namespaces can be imported using `{region}/{id}`, as shown below:
*
* bash
*
* ```sh
* $ pulumi import scaleway:index/containerNamespace:ContainerNamespace main fr-par/11111111-1111-1111-1111-111111111111
* ```
*
* @deprecated scaleway.index/containernamespace.ContainerNamespace has been deprecated in favor of scaleway.containers/namespace.Namespace
*/
export declare class ContainerNamespace extends pulumi.CustomResource {
/**
* Get an existing ContainerNamespace 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?: ContainerNamespaceState, opts?: pulumi.CustomResourceOptions): ContainerNamespace;
/**
* Returns true if the given object is an instance of ContainerNamespace. 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 ContainerNamespace;
/**
* The description of the namespace.
*/
readonly description: pulumi.Output<string | undefined>;
/**
* Destroy registry on deletion
*
* @deprecated Registry namespace is automatically destroyed with namespace
*/
readonly destroyRegistry: pulumi.Output<boolean | undefined>;
/**
* The environment variables of the namespace.
*/
readonly environmentVariables: pulumi.Output<{
[key: string]: string;
} | undefined>;
/**
* The unique name of the Containers namespace.
*
* > **Important** Updates to the `name` argument will recreate the namespace.
*/
readonly name: pulumi.Output<string>;
/**
* The Organization ID with which the namespace is associated.
*/
readonly organizationId: pulumi.Output<string>;
/**
* `projectId`) The unique identifier of the project that contains the namespace.
*/
readonly projectId: pulumi.Output<string>;
/**
* `region`). The region in which the namespace is 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 variables of the namespace.
*/
readonly secretEnvironmentVariables: pulumi.Output<{
[key: string]: string;
} | undefined>;
/**
* List of tags ["tag1", "tag2", ...] attached to the container namespace
*/
readonly tags: pulumi.Output<string[] | undefined>;
/**
* Create a ContainerNamespace 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/containernamespace.ContainerNamespace has been deprecated in favor of scaleway.containers/namespace.Namespace */
constructor(name: string, args?: ContainerNamespaceArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering ContainerNamespace resources.
*/
export interface ContainerNamespaceState {
/**
* The description of the namespace.
*/
description?: pulumi.Input<string>;
/**
* Destroy registry on deletion
*
* @deprecated Registry namespace is automatically destroyed with namespace
*/
destroyRegistry?: pulumi.Input<boolean>;
/**
* The environment variables of the namespace.
*/
environmentVariables?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* The unique name of the Containers namespace.
*
* > **Important** Updates to the `name` argument will recreate the namespace.
*/
name?: pulumi.Input<string>;
/**
* The Organization ID with which the namespace is associated.
*/
organizationId?: pulumi.Input<string>;
/**
* `projectId`) The unique identifier of the project that contains the namespace.
*/
projectId?: pulumi.Input<string>;
/**
* `region`). The region in which the namespace is 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 variables of the namespace.
*/
secretEnvironmentVariables?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* List of tags ["tag1", "tag2", ...] attached to the container namespace
*/
tags?: pulumi.Input<pulumi.Input<string>[]>;
}
/**
* The set of arguments for constructing a ContainerNamespace resource.
*/
export interface ContainerNamespaceArgs {
/**
* The description of the namespace.
*/
description?: pulumi.Input<string>;
/**
* Destroy registry on deletion
*
* @deprecated Registry namespace is automatically destroyed with namespace
*/
destroyRegistry?: pulumi.Input<boolean>;
/**
* The environment variables of the namespace.
*/
environmentVariables?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* The unique name of the Containers namespace.
*
* > **Important** Updates to the `name` argument will recreate the namespace.
*/
name?: pulumi.Input<string>;
/**
* `projectId`) The unique identifier of the project that contains the namespace.
*/
projectId?: pulumi.Input<string>;
/**
* `region`). The region in which the namespace is created.
*/
region?: pulumi.Input<string>;
/**
* The secret environment variables of the namespace.
*/
secretEnvironmentVariables?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* List of tags ["tag1", "tag2", ...] attached to the container namespace
*/
tags?: pulumi.Input<pulumi.Input<string>[]>;
}