UNPKG

@lbrlabs/pulumi-scaleway

Version:

A Pulumi package for creating and managing scaleway cloud resources.

78 lines 3.26 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"); /** * Gets information about the Scaleway Container. * * For more information consult the [documentation](https://www.scaleway.com/en/docs/faq/serverless-containers/). * * For more details about the limitation check [containers-limitations](https://www.scaleway.com/en/docs/compute/containers/reference-content/containers-limitations/). * * You can check also our [containers guide](https://www.scaleway.com/en/docs/compute/containers/concepts/). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@lbrlabs/pulumi-scaleway"; * import * as scaleway from "@pulumi/scaleway"; * * const mainContainerNamespace = new scaleway.ContainerNamespace("mainContainerNamespace", {}); * const mainContainer = new scaleway.Container("mainContainer", {namespaceId: mainContainerNamespace.id}); * const byName = scaleway.getContainerOutput({ * namespaceId: mainContainerNamespace.id, * name: mainContainer.name, * }); * const byId = scaleway.getContainerOutput({ * namespaceId: mainContainerNamespace.id, * containerId: mainContainer.id, * }); * ``` */ function getContainer(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scaleway:index/getContainer:getContainer", { "containerId": args.containerId, "name": args.name, "namespaceId": args.namespaceId, "region": args.region, }, opts); } exports.getContainer = getContainer; /** * Gets information about the Scaleway Container. * * For more information consult the [documentation](https://www.scaleway.com/en/docs/faq/serverless-containers/). * * For more details about the limitation check [containers-limitations](https://www.scaleway.com/en/docs/compute/containers/reference-content/containers-limitations/). * * You can check also our [containers guide](https://www.scaleway.com/en/docs/compute/containers/concepts/). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@lbrlabs/pulumi-scaleway"; * import * as scaleway from "@pulumi/scaleway"; * * const mainContainerNamespace = new scaleway.ContainerNamespace("mainContainerNamespace", {}); * const mainContainer = new scaleway.Container("mainContainer", {namespaceId: mainContainerNamespace.id}); * const byName = scaleway.getContainerOutput({ * namespaceId: mainContainerNamespace.id, * name: mainContainer.name, * }); * const byId = scaleway.getContainerOutput({ * namespaceId: mainContainerNamespace.id, * containerId: mainContainer.id, * }); * ``` */ function getContainerOutput(args, opts) { return pulumi.output(args).apply((a) => getContainer(a, opts)); } exports.getContainerOutput = getContainerOutput; //# sourceMappingURL=getContainer.js.map