UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

86 lines 3.97 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getContainerNamespaceOutput = exports.getContainerNamespace = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * The `scaleway.containers.Namespace` data source is used to retrieve information about a Serverless Containers namespace. * * Refer to the Serverless Containers [product documentation](https://www.scaleway.com/en/docs/serverless/containers/) and [API documentation](https://www.scaleway.com/en/developers/api/serverless-containers/) for more information. * * ## Retrieve a Serverless Containers namespace * * The following commands allow you to: * * - retrieve a namespace by its name * - retrieve a namespace by its ID * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * // Get info by namespace name * const byName = scaleway.containers.getNamespace({ * name: "my-namespace-name", * }); * // Get info by namespace ID * const byId = scaleway.containers.getNamespace({ * namespaceId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ /** @deprecated scaleway.index/getcontainernamespace.getContainerNamespace has been deprecated in favor of scaleway.containers/getnamespace.getNamespace */ function getContainerNamespace(args, opts) { pulumi.log.warn("getContainerNamespace is deprecated: scaleway.index/getcontainernamespace.getContainerNamespace has been deprecated in favor of scaleway.containers/getnamespace.getNamespace"); args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scaleway:index/getContainerNamespace:getContainerNamespace", { "name": args.name, "namespaceId": args.namespaceId, "projectId": args.projectId, "region": args.region, }, opts); } exports.getContainerNamespace = getContainerNamespace; /** * The `scaleway.containers.Namespace` data source is used to retrieve information about a Serverless Containers namespace. * * Refer to the Serverless Containers [product documentation](https://www.scaleway.com/en/docs/serverless/containers/) and [API documentation](https://www.scaleway.com/en/developers/api/serverless-containers/) for more information. * * ## Retrieve a Serverless Containers namespace * * The following commands allow you to: * * - retrieve a namespace by its name * - retrieve a namespace by its ID * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * // Get info by namespace name * const byName = scaleway.containers.getNamespace({ * name: "my-namespace-name", * }); * // Get info by namespace ID * const byId = scaleway.containers.getNamespace({ * namespaceId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ /** @deprecated scaleway.index/getcontainernamespace.getContainerNamespace has been deprecated in favor of scaleway.containers/getnamespace.getNamespace */ function getContainerNamespaceOutput(args, opts) { pulumi.log.warn("getContainerNamespace is deprecated: scaleway.index/getcontainernamespace.getContainerNamespace has been deprecated in favor of scaleway.containers/getnamespace.getNamespace"); args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("scaleway:index/getContainerNamespace:getContainerNamespace", { "name": args.name, "namespaceId": args.namespaceId, "projectId": args.projectId, "region": args.region, }, opts); } exports.getContainerNamespaceOutput = getContainerNamespaceOutput; //# sourceMappingURL=getContainerNamespace.js.map