1. Packages
  2. Scaleway
  3. API Docs
  4. ContainerNamespace
Scaleway v1.14.0 published on Thursday, Jun 6, 2024 by pulumiverse

scaleway.ContainerNamespace

Explore with Pulumi AI

scaleway logo
Scaleway v1.14.0 published on Thursday, Jun 6, 2024 by pulumiverse

    Creates and manages Scaleway Serverless Container Namespace. For more information see the documentation.

    Example Usage

    Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    const main = new scaleway.ContainerNamespace("main", {description: "Main container namespace"});
    
    import pulumi
    import pulumiverse_scaleway as scaleway
    
    main = scaleway.ContainerNamespace("main", description="Main container namespace")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := scaleway.NewContainerNamespace(ctx, "main", &scaleway.ContainerNamespaceArgs{
    			Description: pulumi.String("Main container namespace"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var main = new Scaleway.ContainerNamespace("main", new()
        {
            Description = "Main container namespace",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.ContainerNamespace;
    import com.pulumi.scaleway.ContainerNamespaceArgs;
    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) {
            var main = new ContainerNamespace("main", ContainerNamespaceArgs.builder()        
                .description("Main container namespace")
                .build());
    
        }
    }
    
    resources:
      main:
        type: scaleway:ContainerNamespace
        properties:
          description: Main container namespace
    

    Create ContainerNamespace Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ContainerNamespace(name: string, args?: ContainerNamespaceArgs, opts?: CustomResourceOptions);
    @overload
    def ContainerNamespace(resource_name: str,
                           args: Optional[ContainerNamespaceArgs] = None,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def ContainerNamespace(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           description: Optional[str] = None,
                           destroy_registry: Optional[bool] = None,
                           environment_variables: Optional[Mapping[str, str]] = None,
                           name: Optional[str] = None,
                           project_id: Optional[str] = None,
                           region: Optional[str] = None,
                           secret_environment_variables: Optional[Mapping[str, str]] = None)
    func NewContainerNamespace(ctx *Context, name string, args *ContainerNamespaceArgs, opts ...ResourceOption) (*ContainerNamespace, error)
    public ContainerNamespace(string name, ContainerNamespaceArgs? args = null, CustomResourceOptions? opts = null)
    public ContainerNamespace(String name, ContainerNamespaceArgs args)
    public ContainerNamespace(String name, ContainerNamespaceArgs args, CustomResourceOptions options)
    
    type: scaleway:ContainerNamespace
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ContainerNamespaceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ContainerNamespaceArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ContainerNamespaceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ContainerNamespaceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ContainerNamespaceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var containerNamespaceResource = new Scaleway.ContainerNamespace("containerNamespaceResource", new()
    {
        Description = "string",
        EnvironmentVariables = 
        {
            { "string", "string" },
        },
        Name = "string",
        ProjectId = "string",
        Region = "string",
        SecretEnvironmentVariables = 
        {
            { "string", "string" },
        },
    });
    
    example, err := scaleway.NewContainerNamespace(ctx, "containerNamespaceResource", &scaleway.ContainerNamespaceArgs{
    	Description: pulumi.String("string"),
    	EnvironmentVariables: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Name:      pulumi.String("string"),
    	ProjectId: pulumi.String("string"),
    	Region:    pulumi.String("string"),
    	SecretEnvironmentVariables: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var containerNamespaceResource = new ContainerNamespace("containerNamespaceResource", ContainerNamespaceArgs.builder()
        .description("string")
        .environmentVariables(Map.of("string", "string"))
        .name("string")
        .projectId("string")
        .region("string")
        .secretEnvironmentVariables(Map.of("string", "string"))
        .build());
    
    container_namespace_resource = scaleway.ContainerNamespace("containerNamespaceResource",
        description="string",
        environment_variables={
            "string": "string",
        },
        name="string",
        project_id="string",
        region="string",
        secret_environment_variables={
            "string": "string",
        })
    
    const containerNamespaceResource = new scaleway.ContainerNamespace("containerNamespaceResource", {
        description: "string",
        environmentVariables: {
            string: "string",
        },
        name: "string",
        projectId: "string",
        region: "string",
        secretEnvironmentVariables: {
            string: "string",
        },
    });
    
    type: scaleway:ContainerNamespace
    properties:
        description: string
        environmentVariables:
            string: string
        name: string
        projectId: string
        region: string
        secretEnvironmentVariables:
            string: string
    

    ContainerNamespace Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ContainerNamespace resource accepts the following input properties:

    Description string
    The description of the namespace.
    DestroyRegistry bool
    Destroy registry on deletion

    Deprecated: Registry namespace is automatically destroyed with namespace

    EnvironmentVariables Dictionary<string, string>
    The environment variables of the namespace.
    Name string

    The unique name of the container namespace.

    Important Updates to name will recreate the namespace.

    ProjectId string
    project_id) The ID of the project the namespace is associated with.
    Region string
    region). The region in which the namespace should be created.
    SecretEnvironmentVariables Dictionary<string, string>
    The secret environment variables of the namespace.
    Description string
    The description of the namespace.
    DestroyRegistry bool
    Destroy registry on deletion

    Deprecated: Registry namespace is automatically destroyed with namespace

    EnvironmentVariables map[string]string
    The environment variables of the namespace.
    Name string

    The unique name of the container namespace.

    Important Updates to name will recreate the namespace.

    ProjectId string
    project_id) The ID of the project the namespace is associated with.
    Region string
    region). The region in which the namespace should be created.
    SecretEnvironmentVariables map[string]string
    The secret environment variables of the namespace.
    description String
    The description of the namespace.
    destroyRegistry Boolean
    Destroy registry on deletion

    Deprecated: Registry namespace is automatically destroyed with namespace

    environmentVariables Map<String,String>
    The environment variables of the namespace.
    name String

    The unique name of the container namespace.

    Important Updates to name will recreate the namespace.

    projectId String
    project_id) The ID of the project the namespace is associated with.
    region String
    region). The region in which the namespace should be created.
    secretEnvironmentVariables Map<String,String>
    The secret environment variables of the namespace.
    description string
    The description of the namespace.
    destroyRegistry boolean
    Destroy registry on deletion

    Deprecated: Registry namespace is automatically destroyed with namespace

    environmentVariables {[key: string]: string}
    The environment variables of the namespace.
    name string

    The unique name of the container namespace.

    Important Updates to name will recreate the namespace.

    projectId string
    project_id) The ID of the project the namespace is associated with.
    region string
    region). The region in which the namespace should be created.
    secretEnvironmentVariables {[key: string]: string}
    The secret environment variables of the namespace.
    description str
    The description of the namespace.
    destroy_registry bool
    Destroy registry on deletion

    Deprecated: Registry namespace is automatically destroyed with namespace

    environment_variables Mapping[str, str]
    The environment variables of the namespace.
    name str

    The unique name of the container namespace.

    Important Updates to name will recreate the namespace.

    project_id str
    project_id) The ID of the project the namespace is associated with.
    region str
    region). The region in which the namespace should be created.
    secret_environment_variables Mapping[str, str]
    The secret environment variables of the namespace.
    description String
    The description of the namespace.
    destroyRegistry Boolean
    Destroy registry on deletion

    Deprecated: Registry namespace is automatically destroyed with namespace

    environmentVariables Map<String>
    The environment variables of the namespace.
    name String

    The unique name of the container namespace.

    Important Updates to name will recreate the namespace.

    projectId String
    project_id) The ID of the project the namespace is associated with.
    region String
    region). The region in which the namespace should be created.
    secretEnvironmentVariables Map<String>
    The secret environment variables of the namespace.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ContainerNamespace resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    OrganizationId string
    The organization ID the namespace is associated with.
    RegistryEndpoint string
    The registry endpoint of the namespace.
    RegistryNamespaceId string
    The registry namespace ID of the namespace.
    Id string
    The provider-assigned unique ID for this managed resource.
    OrganizationId string
    The organization ID the namespace is associated with.
    RegistryEndpoint string
    The registry endpoint of the namespace.
    RegistryNamespaceId string
    The registry namespace ID of the namespace.
    id String
    The provider-assigned unique ID for this managed resource.
    organizationId String
    The organization ID the namespace is associated with.
    registryEndpoint String
    The registry endpoint of the namespace.
    registryNamespaceId String
    The registry namespace ID of the namespace.
    id string
    The provider-assigned unique ID for this managed resource.
    organizationId string
    The organization ID the namespace is associated with.
    registryEndpoint string
    The registry endpoint of the namespace.
    registryNamespaceId string
    The registry namespace ID 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.
    registry_endpoint str
    The registry endpoint of the namespace.
    registry_namespace_id str
    The registry namespace ID of the namespace.
    id String
    The provider-assigned unique ID for this managed resource.
    organizationId String
    The organization ID the namespace is associated with.
    registryEndpoint String
    The registry endpoint of the namespace.
    registryNamespaceId String
    The registry namespace ID of the namespace.

    Look up Existing ContainerNamespace Resource

    Get an existing ContainerNamespace resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ContainerNamespaceState, opts?: CustomResourceOptions): ContainerNamespace
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            destroy_registry: Optional[bool] = None,
            environment_variables: Optional[Mapping[str, str]] = None,
            name: Optional[str] = None,
            organization_id: Optional[str] = None,
            project_id: Optional[str] = None,
            region: Optional[str] = None,
            registry_endpoint: Optional[str] = None,
            registry_namespace_id: Optional[str] = None,
            secret_environment_variables: Optional[Mapping[str, str]] = None) -> ContainerNamespace
    func GetContainerNamespace(ctx *Context, name string, id IDInput, state *ContainerNamespaceState, opts ...ResourceOption) (*ContainerNamespace, error)
    public static ContainerNamespace Get(string name, Input<string> id, ContainerNamespaceState? state, CustomResourceOptions? opts = null)
    public static ContainerNamespace get(String name, Output<String> id, ContainerNamespaceState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Description string
    The description of the namespace.
    DestroyRegistry bool
    Destroy registry on deletion

    Deprecated: Registry namespace is automatically destroyed with namespace

    EnvironmentVariables Dictionary<string, string>
    The environment variables of the namespace.
    Name string

    The unique name of the container namespace.

    Important Updates to name will recreate the namespace.

    OrganizationId string
    The organization ID the namespace is associated with.
    ProjectId string
    project_id) The ID of the project the namespace is associated with.
    Region string
    region). The region in which the namespace should be created.
    RegistryEndpoint string
    The registry endpoint of the namespace.
    RegistryNamespaceId string
    The registry namespace ID of the namespace.
    SecretEnvironmentVariables Dictionary<string, string>
    The secret environment variables of the namespace.
    Description string
    The description of the namespace.
    DestroyRegistry bool
    Destroy registry on deletion

    Deprecated: Registry namespace is automatically destroyed with namespace

    EnvironmentVariables map[string]string
    The environment variables of the namespace.
    Name string

    The unique name of the container namespace.

    Important Updates to name will recreate the namespace.

    OrganizationId string
    The organization ID the namespace is associated with.
    ProjectId string
    project_id) The ID of the project the namespace is associated with.
    Region string
    region). The region in which the namespace should be created.
    RegistryEndpoint string
    The registry endpoint of the namespace.
    RegistryNamespaceId string
    The registry namespace ID of the namespace.
    SecretEnvironmentVariables map[string]string
    The secret environment variables of the namespace.
    description String
    The description of the namespace.
    destroyRegistry Boolean
    Destroy registry on deletion

    Deprecated: Registry namespace is automatically destroyed with namespace

    environmentVariables Map<String,String>
    The environment variables of the namespace.
    name String

    The unique name of the container namespace.

    Important Updates to name will recreate the namespace.

    organizationId String
    The organization ID the namespace is associated with.
    projectId String
    project_id) The ID of the project the namespace is associated with.
    region String
    region). The region in which the namespace should be created.
    registryEndpoint String
    The registry endpoint of the namespace.
    registryNamespaceId String
    The registry namespace ID of the namespace.
    secretEnvironmentVariables Map<String,String>
    The secret environment variables of the namespace.
    description string
    The description of the namespace.
    destroyRegistry boolean
    Destroy registry on deletion

    Deprecated: Registry namespace is automatically destroyed with namespace

    environmentVariables {[key: string]: string}
    The environment variables of the namespace.
    name string

    The unique name of the container namespace.

    Important Updates to name will recreate the namespace.

    organizationId string
    The organization ID the namespace is associated with.
    projectId string
    project_id) The ID of the project the namespace is associated with.
    region string
    region). The region in which the namespace should be created.
    registryEndpoint string
    The registry endpoint of the namespace.
    registryNamespaceId string
    The registry namespace ID of the namespace.
    secretEnvironmentVariables {[key: string]: string}
    The secret environment variables of the namespace.
    description str
    The description of the namespace.
    destroy_registry bool
    Destroy registry on deletion

    Deprecated: Registry namespace is automatically destroyed with namespace

    environment_variables Mapping[str, str]
    The environment variables of the namespace.
    name str

    The unique name of the container namespace.

    Important Updates to name will recreate the namespace.

    organization_id str
    The organization ID the namespace is associated with.
    project_id str
    project_id) The ID of the project the namespace is associated with.
    region str
    region). The region in which the namespace should be created.
    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]
    The secret environment variables of the namespace.
    description String
    The description of the namespace.
    destroyRegistry Boolean
    Destroy registry on deletion

    Deprecated: Registry namespace is automatically destroyed with namespace

    environmentVariables Map<String>
    The environment variables of the namespace.
    name String

    The unique name of the container namespace.

    Important Updates to name will recreate the namespace.

    organizationId String
    The organization ID the namespace is associated with.
    projectId String
    project_id) The ID of the project the namespace is associated with.
    region String
    region). The region in which the namespace should be created.
    registryEndpoint String
    The registry endpoint of the namespace.
    registryNamespaceId String
    The registry namespace ID of the namespace.
    secretEnvironmentVariables Map<String>
    The secret environment variables of the namespace.

    Import

    Namespaces can be imported using the {region}/{id}, e.g.

    bash

    $ pulumi import scaleway:index/containerNamespace:ContainerNamespace main fr-par/11111111-1111-1111-1111-111111111111
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Scaleway v1.14.0 published on Thursday, Jun 6, 2024 by pulumiverse