Scaleway

v1.4.0 published on Monday, Nov 28, 2022 by lbrlabs

getFunctionNamespace

Gets information about a function namespace.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Scaleway = Pulumi.Scaleway;

return await Deployment.RunAsync(() => 
{
    var myNamespace = Scaleway.GetFunctionNamespace.Invoke(new()
    {
        NamespaceId = "11111111-1111-1111-1111-111111111111",
    });

});
package main

import (
	"github.com/lbrlabs/pulumi-scaleway/sdk/go/scaleway"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err = scaleway.LookupFunctionNamespace(ctx, &GetFunctionNamespaceArgs{
			NamespaceId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.ScalewayFunctions;
import com.pulumi.scaleway.inputs.GetFunctionNamespaceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var myNamespace = ScalewayFunctions.getFunctionNamespace(GetFunctionNamespaceArgs.builder()
            .namespaceId("11111111-1111-1111-1111-111111111111")
            .build());

    }
}
import pulumi
import pulumi_scaleway as scaleway

my_namespace = scaleway.get_function_namespace(namespace_id="11111111-1111-1111-1111-111111111111")
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumi/scaleway";

// Get info by namespace ID
const myNamespace = pulumi.output(scaleway.getFunctionNamespace({
    namespaceId: "11111111-1111-1111-1111-111111111111",
}));
variables:
  myNamespace:
    fn::invoke:
      Function: scaleway:getFunctionNamespace
      Arguments:
        namespaceId: 11111111-1111-1111-1111-111111111111

Using getFunctionNamespace

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getFunctionNamespace(args: GetFunctionNamespaceArgs, opts?: InvokeOptions): Promise<GetFunctionNamespaceResult>
function getFunctionNamespaceOutput(args: GetFunctionNamespaceOutputArgs, opts?: InvokeOptions): Output<GetFunctionNamespaceResult>
def get_function_namespace(name: Optional[str] = None,
                           namespace_id: Optional[str] = None,
                           region: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetFunctionNamespaceResult
def get_function_namespace_output(name: Optional[pulumi.Input[str]] = None,
                           namespace_id: Optional[pulumi.Input[str]] = None,
                           region: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetFunctionNamespaceResult]
func LookupFunctionNamespace(ctx *Context, args *LookupFunctionNamespaceArgs, opts ...InvokeOption) (*LookupFunctionNamespaceResult, error)
func LookupFunctionNamespaceOutput(ctx *Context, args *LookupFunctionNamespaceOutputArgs, opts ...InvokeOption) LookupFunctionNamespaceResultOutput

> Note: This function is named LookupFunctionNamespace in the Go SDK.

public static class GetFunctionNamespace 
{
    public static Task<GetFunctionNamespaceResult> InvokeAsync(GetFunctionNamespaceArgs args, InvokeOptions? opts = null)
    public static Output<GetFunctionNamespaceResult> Invoke(GetFunctionNamespaceInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetFunctionNamespaceResult> getFunctionNamespace(GetFunctionNamespaceArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: scaleway:index/getFunctionNamespace:getFunctionNamespace
  arguments:
    # arguments dictionary

The following arguments are supported:

Name string

The namespace name. Only one of name and namespace_id should be specified.

NamespaceId string

The namespace id. Only one of name and namespace_id should be specified.

Region string

region) The region in which the namespace exists.

Name string

The namespace name. Only one of name and namespace_id should be specified.

NamespaceId string

The namespace id. Only one of name and namespace_id should be specified.

Region string

region) The region in which the namespace exists.

name String

The namespace name. Only one of name and namespace_id should be specified.

namespaceId String

The namespace id. Only one of name and namespace_id should be specified.

region String

region) The region in which the namespace exists.

name string

The namespace name. Only one of name and namespace_id should be specified.

namespaceId string

The namespace id. Only one of name and namespace_id should be specified.

region string

region) The region in which the namespace exists.

name str

The namespace name. Only one of name and namespace_id should be specified.

namespace_id str

The namespace id. Only one of name and namespace_id should be specified.

region str

region) The region in which the namespace exists.

name String

The namespace name. Only one of name and namespace_id should be specified.

namespaceId String

The namespace id. Only one of name and namespace_id should be specified.

region String

region) The region in which the namespace exists.

getFunctionNamespace Result

The following output properties are available:

Description string

The description of the namespace.

EnvironmentVariables Dictionary<string, string>

The environment variables of the namespace.

Id string

The provider-assigned unique ID for this managed resource.

OrganizationId string

The organization ID the namespace is associated with.

ProjectId string
RegistryEndpoint string

The registry endpoint of the namespace.

RegistryNamespaceId string

The registry namespace ID of the namespace.

SecretEnvironmentVariables Dictionary<string, string>
Name string
NamespaceId string
Region string
Description string

The description of the namespace.

EnvironmentVariables map[string]string

The environment variables of the namespace.

Id string

The provider-assigned unique ID for this managed resource.

OrganizationId string

The organization ID the namespace is associated with.

ProjectId string
RegistryEndpoint string

The registry endpoint of the namespace.

RegistryNamespaceId string

The registry namespace ID of the namespace.

SecretEnvironmentVariables map[string]string
Name string
NamespaceId string
Region string
description String

The description of the namespace.

environmentVariables Map<String,String>

The environment variables of the namespace.

id String

The provider-assigned unique ID for this managed resource.

organizationId String

The organization ID the namespace is associated with.

projectId String
registryEndpoint String

The registry endpoint of the namespace.

registryNamespaceId String

The registry namespace ID of the namespace.

secretEnvironmentVariables Map<String,String>
name String
namespaceId String
region String
description string

The description of the namespace.

environmentVariables {[key: string]: string}

The environment variables of the namespace.

id string

The provider-assigned unique ID for this managed resource.

organizationId string

The organization ID the namespace is associated with.

projectId string
registryEndpoint string

The registry endpoint of the namespace.

registryNamespaceId string

The registry namespace ID of the namespace.

secretEnvironmentVariables {[key: string]: string}
name string
namespaceId string
region string
description str

The description of the namespace.

environment_variables Mapping[str, str]

The environment variables of the namespace.

id str

The provider-assigned unique ID for this managed resource.

organization_id str

The organization ID the namespace is associated with.

project_id str
registry_endpoint str

The registry endpoint of the namespace.

registry_namespace_id str

The registry namespace ID of the namespace.

secret_environment_variables Mapping[str, str]
name str
namespace_id str
region str
description String

The description of the namespace.

environmentVariables Map<String>

The environment variables of the namespace.

id String

The provider-assigned unique ID for this managed resource.

organizationId String

The organization ID the namespace is associated with.

projectId String
registryEndpoint String

The registry endpoint of the namespace.

registryNamespaceId String

The registry namespace ID of the namespace.

secretEnvironmentVariables Map<String>
name String
namespaceId String
region String

Package Details

Repository
https://github.com/lbrlabs/pulumi-scaleway
License
Apache-2.0
Notes

This Pulumi package is based on the scaleway Terraform Provider.