UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

151 lines 6.83 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; }); var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.getContainerOutput = exports.getContainer = void 0; const pulumi = __importStar(require("@pulumi/pulumi")); const utilities = __importStar(require("./utilities")); /** * The `scaleway.containers.Container` data source is used to retrieve information about a Serverless Container. * * 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. * * For more information on the limitations of Serverless Containers, refer to the [dedicated documentation](https://www.scaleway.com/en/docs/serverless-containers/reference-content/containers-limitations/). * * ## Retrieve a Serverless Container * * The following commands allow you to: * * - retrieve a container by its name * - retrieve a container by its ID * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * const main = new scaleway.containers.Namespace("main", {}); * const mainContainer = new scaleway.containers.Container("main", { * name: "test-container-data", * namespaceId: main.id, * }); * // Get info by container name * const byName = scaleway.containers.getContainerOutput({ * namespaceId: main.id, * name: mainContainer.name, * }); * // Get info by container ID * const byId = scaleway.containers.getContainerOutput({ * namespaceId: main.id, * containerId: mainContainer.id, * }); * ``` * * ## Arguments reference * * This section lists the arguments that you can provide to the `scaleway.containers.Container` data source to filter and retrieve the desired namespace. Each argument has a specific purpose: * * - `name` - (Required) The unique name of the container. * * - `namespaceId` - (Required) The container namespace ID of the container. * * - `projectId` - (Optional) The unique identifier of the project with which the container is associated. * * > **Important** Updating the `name` argument will recreate the container. */ /** @deprecated scaleway.index/getcontainer.getContainer has been deprecated in favor of scaleway.containers/getcontainer.getContainer */ function getContainer(args, opts) { pulumi.log.warn("getContainer is deprecated: scaleway.index/getcontainer.getContainer has been deprecated in favor of scaleway.containers/getcontainer.getContainer"); opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scaleway:index/getContainer:getContainer", { "containerId": args.containerId, "name": args.name, "namespaceId": args.namespaceId, "projectId": args.projectId, "region": args.region, }, opts); } exports.getContainer = getContainer; /** * The `scaleway.containers.Container` data source is used to retrieve information about a Serverless Container. * * 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. * * For more information on the limitations of Serverless Containers, refer to the [dedicated documentation](https://www.scaleway.com/en/docs/serverless-containers/reference-content/containers-limitations/). * * ## Retrieve a Serverless Container * * The following commands allow you to: * * - retrieve a container by its name * - retrieve a container by its ID * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * const main = new scaleway.containers.Namespace("main", {}); * const mainContainer = new scaleway.containers.Container("main", { * name: "test-container-data", * namespaceId: main.id, * }); * // Get info by container name * const byName = scaleway.containers.getContainerOutput({ * namespaceId: main.id, * name: mainContainer.name, * }); * // Get info by container ID * const byId = scaleway.containers.getContainerOutput({ * namespaceId: main.id, * containerId: mainContainer.id, * }); * ``` * * ## Arguments reference * * This section lists the arguments that you can provide to the `scaleway.containers.Container` data source to filter and retrieve the desired namespace. Each argument has a specific purpose: * * - `name` - (Required) The unique name of the container. * * - `namespaceId` - (Required) The container namespace ID of the container. * * - `projectId` - (Optional) The unique identifier of the project with which the container is associated. * * > **Important** Updating the `name` argument will recreate the container. */ /** @deprecated scaleway.index/getcontainer.getContainer has been deprecated in favor of scaleway.containers/getcontainer.getContainer */ function getContainerOutput(args, opts) { pulumi.log.warn("getContainer is deprecated: scaleway.index/getcontainer.getContainer has been deprecated in favor of scaleway.containers/getcontainer.getContainer"); opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("scaleway:index/getContainer:getContainer", { "containerId": args.containerId, "name": args.name, "namespaceId": args.namespaceId, "projectId": args.projectId, "region": args.region, }, opts); } exports.getContainerOutput = getContainerOutput; //# sourceMappingURL=getContainer.js.map