UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

130 lines 5.9 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.getContainerOutput = exports.getContainer = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = 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 "@pulumi/scaleway"; * 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 "@pulumi/scaleway"; * 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