UNPKG

@lbrlabs/pulumi-scaleway

Version:

A Pulumi package for creating and managing scaleway cloud resources.

147 lines (146 loc) 4.98 kB
import * as pulumi from "@pulumi/pulumi"; /** * Creates and manages Scaleway Messaging and queuing Namespace. * For further information please check * our [documentation](https://pkg.go.dev/github.com/scaleway/scaleway-sdk-go@master/api/mnq/v1alpha1#pkg-index) * * > NOTE: This resource refers to the old version of the MNQ API. You should use new resources dedicated to your protocol. SQS, NATS. * * ## Examples * * ### Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@lbrlabs/pulumi-scaleway"; * * const main = new scaleway.MnqNamespace("main", { * protocol: "nats", * region: "fr-par", * }); * ``` * * ## Import * * Namespaces can be imported using the `{region}/{id}`, e.g. bash * * ```sh * $ pulumi import scaleway:index/mnqNamespace:MnqNamespace main fr-par/11111111111111111111111111111111 * ``` */ export declare class MnqNamespace extends pulumi.CustomResource { /** * Get an existing MnqNamespace 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?: MnqNamespaceState, opts?: pulumi.CustomResourceOptions): MnqNamespace; /** * Returns true if the given object is an instance of MnqNamespace. 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 MnqNamespace; /** * The date and time the Namespace was created. */ readonly createdAt: pulumi.Output<string>; /** * The endpoint of the service matching the Namespace protocol. */ readonly endpoint: pulumi.Output<string>; /** * The unique name of the namespace. */ readonly name: pulumi.Output<string>; /** * `projectId`) The ID of the project the * namespace is associated with. */ readonly projectId: pulumi.Output<string>; /** * The protocol to apply on your namespace. Please check our * supported [protocols](https://pkg.go.dev/github.com/scaleway/scaleway-sdk-go@master/api/mnq/v1alpha1#pkg-constants). */ readonly protocol: pulumi.Output<string>; /** * `region`). The region * in which the namespace should be created. */ readonly region: pulumi.Output<string>; /** * The date and time the Namespace was updated. */ readonly updatedAt: pulumi.Output<string>; /** * Create a MnqNamespace 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: MnqNamespaceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering MnqNamespace resources. */ export interface MnqNamespaceState { /** * The date and time the Namespace was created. */ createdAt?: pulumi.Input<string>; /** * The endpoint of the service matching the Namespace protocol. */ endpoint?: pulumi.Input<string>; /** * The unique name of the namespace. */ name?: pulumi.Input<string>; /** * `projectId`) The ID of the project the * namespace is associated with. */ projectId?: pulumi.Input<string>; /** * The protocol to apply on your namespace. Please check our * supported [protocols](https://pkg.go.dev/github.com/scaleway/scaleway-sdk-go@master/api/mnq/v1alpha1#pkg-constants). */ protocol?: pulumi.Input<string>; /** * `region`). The region * in which the namespace should be created. */ region?: pulumi.Input<string>; /** * The date and time the Namespace was updated. */ updatedAt?: pulumi.Input<string>; } /** * The set of arguments for constructing a MnqNamespace resource. */ export interface MnqNamespaceArgs { /** * The unique name of the namespace. */ name?: pulumi.Input<string>; /** * `projectId`) The ID of the project the * namespace is associated with. */ projectId?: pulumi.Input<string>; /** * The protocol to apply on your namespace. Please check our * supported [protocols](https://pkg.go.dev/github.com/scaleway/scaleway-sdk-go@master/api/mnq/v1alpha1#pkg-constants). */ protocol: pulumi.Input<string>; /** * `region`). The region * in which the namespace should be created. */ region?: pulumi.Input<string>; }