@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
82 lines • 3.15 kB
JavaScript
;
// *** 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.getNamespaceOutput = exports.getNamespace = 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",
* });
* ```
*/
function getNamespace(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("scaleway:containers/getNamespace:getNamespace", {
"name": args.name,
"namespaceId": args.namespaceId,
"projectId": args.projectId,
"region": args.region,
}, opts);
}
exports.getNamespace = getNamespace;
/**
* 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",
* });
* ```
*/
function getNamespaceOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("scaleway:containers/getNamespace:getNamespace", {
"name": args.name,
"namespaceId": args.namespaceId,
"projectId": args.projectId,
"region": args.region,
}, opts);
}
exports.getNamespaceOutput = getNamespaceOutput;
//# sourceMappingURL=getNamespace.js.map