1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. gkehub
  5. Namespace
Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi

gcp.gkehub.Namespace

Explore with Pulumi AI

gcp logo
Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi

    Namespace represents a namespace across the Fleet.

    To get more information about Namespace, see:

    Example Usage

    Gkehub Namespace Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const scope = new gcp.gkehub.Scope("scope", {scopeId: "tf-test-scope_27169"});
    const namespace = new gcp.gkehub.Namespace("namespace", {
        scopeNamespaceId: "tf-test-namespace_75223",
        scopeId: scope.scopeId,
        scope: scope.name,
        namespaceLabels: {
            keyb: "valueb",
            keya: "valuea",
            keyc: "valuec",
        },
        labels: {
            keyb: "valueb",
            keya: "valuea",
            keyc: "valuec",
        },
    }, {
        dependsOn: [scope],
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    scope = gcp.gkehub.Scope("scope", scope_id="tf-test-scope_27169")
    namespace = gcp.gkehub.Namespace("namespace",
        scope_namespace_id="tf-test-namespace_75223",
        scope_id=scope.scope_id,
        scope=scope.name,
        namespace_labels={
            "keyb": "valueb",
            "keya": "valuea",
            "keyc": "valuec",
        },
        labels={
            "keyb": "valueb",
            "keya": "valuea",
            "keyc": "valuec",
        },
        opts = pulumi.ResourceOptions(depends_on=[scope]))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/gkehub"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		scope, err := gkehub.NewScope(ctx, "scope", &gkehub.ScopeArgs{
    			ScopeId: pulumi.String("tf-test-scope_27169"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = gkehub.NewNamespace(ctx, "namespace", &gkehub.NamespaceArgs{
    			ScopeNamespaceId: pulumi.String("tf-test-namespace_75223"),
    			ScopeId:          scope.ScopeId,
    			Scope:            scope.Name,
    			NamespaceLabels: pulumi.StringMap{
    				"keyb": pulumi.String("valueb"),
    				"keya": pulumi.String("valuea"),
    				"keyc": pulumi.String("valuec"),
    			},
    			Labels: pulumi.StringMap{
    				"keyb": pulumi.String("valueb"),
    				"keya": pulumi.String("valuea"),
    				"keyc": pulumi.String("valuec"),
    			},
    		}, pulumi.DependsOn([]pulumi.Resource{
    			scope,
    		}))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var scope = new Gcp.GkeHub.Scope("scope", new()
        {
            ScopeId = "tf-test-scope_27169",
        });
    
        var @namespace = new Gcp.GkeHub.Namespace("namespace", new()
        {
            ScopeNamespaceId = "tf-test-namespace_75223",
            ScopeId = scope.ScopeId,
            Scope = scope.Name,
            NamespaceLabels = 
            {
                { "keyb", "valueb" },
                { "keya", "valuea" },
                { "keyc", "valuec" },
            },
            Labels = 
            {
                { "keyb", "valueb" },
                { "keya", "valuea" },
                { "keyc", "valuec" },
            },
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                scope,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.gkehub.Scope;
    import com.pulumi.gcp.gkehub.ScopeArgs;
    import com.pulumi.gcp.gkehub.Namespace;
    import com.pulumi.gcp.gkehub.NamespaceArgs;
    import com.pulumi.resources.CustomResourceOptions;
    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 scope = new Scope("scope", ScopeArgs.builder()
                .scopeId("tf-test-scope_27169")
                .build());
    
            var namespace = new Namespace("namespace", NamespaceArgs.builder()
                .scopeNamespaceId("tf-test-namespace_75223")
                .scopeId(scope.scopeId())
                .scope(scope.name())
                .namespaceLabels(Map.ofEntries(
                    Map.entry("keyb", "valueb"),
                    Map.entry("keya", "valuea"),
                    Map.entry("keyc", "valuec")
                ))
                .labels(Map.ofEntries(
                    Map.entry("keyb", "valueb"),
                    Map.entry("keya", "valuea"),
                    Map.entry("keyc", "valuec")
                ))
                .build(), CustomResourceOptions.builder()
                    .dependsOn(scope)
                    .build());
    
        }
    }
    
    resources:
      scope:
        type: gcp:gkehub:Scope
        properties:
          scopeId: tf-test-scope_27169
      namespace:
        type: gcp:gkehub:Namespace
        properties:
          scopeNamespaceId: tf-test-namespace_75223
          scopeId: ${scope.scopeId}
          scope: ${scope.name}
          namespaceLabels:
            keyb: valueb
            keya: valuea
            keyc: valuec
          labels:
            keyb: valueb
            keya: valuea
            keyc: valuec
        options:
          dependson:
            - ${scope}
    

    Create Namespace Resource

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

    Constructor syntax

    new Namespace(name: string, args: NamespaceArgs, opts?: CustomResourceOptions);
    @overload
    def Namespace(resource_name: str,
                  args: NamespaceArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def Namespace(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  scope: Optional[str] = None,
                  scope_id: Optional[str] = None,
                  scope_namespace_id: Optional[str] = None,
                  labels: Optional[Mapping[str, str]] = None,
                  namespace_labels: Optional[Mapping[str, str]] = None,
                  project: Optional[str] = None)
    func NewNamespace(ctx *Context, name string, args NamespaceArgs, opts ...ResourceOption) (*Namespace, error)
    public Namespace(string name, NamespaceArgs args, CustomResourceOptions? opts = null)
    public Namespace(String name, NamespaceArgs args)
    public Namespace(String name, NamespaceArgs args, CustomResourceOptions options)
    
    type: gcp:gkehub:Namespace
    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 NamespaceArgs
    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 NamespaceArgs
    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 NamespaceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NamespaceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NamespaceArgs
    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 namespaceResource = new Gcp.GkeHub.Namespace("namespaceResource", new()
    {
        Scope = "string",
        ScopeId = "string",
        ScopeNamespaceId = "string",
        Labels = 
        {
            { "string", "string" },
        },
        NamespaceLabels = 
        {
            { "string", "string" },
        },
        Project = "string",
    });
    
    example, err := gkehub.NewNamespace(ctx, "namespaceResource", &gkehub.NamespaceArgs{
    	Scope:            pulumi.String("string"),
    	ScopeId:          pulumi.String("string"),
    	ScopeNamespaceId: pulumi.String("string"),
    	Labels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	NamespaceLabels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Project: pulumi.String("string"),
    })
    
    var namespaceResource = new Namespace("namespaceResource", NamespaceArgs.builder()
        .scope("string")
        .scopeId("string")
        .scopeNamespaceId("string")
        .labels(Map.of("string", "string"))
        .namespaceLabels(Map.of("string", "string"))
        .project("string")
        .build());
    
    namespace_resource = gcp.gkehub.Namespace("namespaceResource",
        scope="string",
        scope_id="string",
        scope_namespace_id="string",
        labels={
            "string": "string",
        },
        namespace_labels={
            "string": "string",
        },
        project="string")
    
    const namespaceResource = new gcp.gkehub.Namespace("namespaceResource", {
        scope: "string",
        scopeId: "string",
        scopeNamespaceId: "string",
        labels: {
            string: "string",
        },
        namespaceLabels: {
            string: "string",
        },
        project: "string",
    });
    
    type: gcp:gkehub:Namespace
    properties:
        labels:
            string: string
        namespaceLabels:
            string: string
        project: string
        scope: string
        scopeId: string
        scopeNamespaceId: string
    

    Namespace 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 Namespace resource accepts the following input properties:

    Scope string
    The name of the Scope instance.
    ScopeId string
    Id of the scope


    ScopeNamespaceId string
    The client-provided identifier of the namespace.
    Labels Dictionary<string, string>

    Labels for this Namespace.

    Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    NamespaceLabels Dictionary<string, string>
    Namespace-level cluster namespace labels. These labels are applied to the related namespace of the member clusters bound to the parent Scope. Scope-level labels (namespace_labels in the Fleet Scope resource) take precedence over Namespace-level labels if they share a key. Keys and values must be Kubernetes-conformant.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    Scope string
    The name of the Scope instance.
    ScopeId string
    Id of the scope


    ScopeNamespaceId string
    The client-provided identifier of the namespace.
    Labels map[string]string

    Labels for this Namespace.

    Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    NamespaceLabels map[string]string
    Namespace-level cluster namespace labels. These labels are applied to the related namespace of the member clusters bound to the parent Scope. Scope-level labels (namespace_labels in the Fleet Scope resource) take precedence over Namespace-level labels if they share a key. Keys and values must be Kubernetes-conformant.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    scope String
    The name of the Scope instance.
    scopeId String
    Id of the scope


    scopeNamespaceId String
    The client-provided identifier of the namespace.
    labels Map<String,String>

    Labels for this Namespace.

    Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    namespaceLabels Map<String,String>
    Namespace-level cluster namespace labels. These labels are applied to the related namespace of the member clusters bound to the parent Scope. Scope-level labels (namespace_labels in the Fleet Scope resource) take precedence over Namespace-level labels if they share a key. Keys and values must be Kubernetes-conformant.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    scope string
    The name of the Scope instance.
    scopeId string
    Id of the scope


    scopeNamespaceId string
    The client-provided identifier of the namespace.
    labels {[key: string]: string}

    Labels for this Namespace.

    Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    namespaceLabels {[key: string]: string}
    Namespace-level cluster namespace labels. These labels are applied to the related namespace of the member clusters bound to the parent Scope. Scope-level labels (namespace_labels in the Fleet Scope resource) take precedence over Namespace-level labels if they share a key. Keys and values must be Kubernetes-conformant.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    scope str
    The name of the Scope instance.
    scope_id str
    Id of the scope


    scope_namespace_id str
    The client-provided identifier of the namespace.
    labels Mapping[str, str]

    Labels for this Namespace.

    Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    namespace_labels Mapping[str, str]
    Namespace-level cluster namespace labels. These labels are applied to the related namespace of the member clusters bound to the parent Scope. Scope-level labels (namespace_labels in the Fleet Scope resource) take precedence over Namespace-level labels if they share a key. Keys and values must be Kubernetes-conformant.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    scope String
    The name of the Scope instance.
    scopeId String
    Id of the scope


    scopeNamespaceId String
    The client-provided identifier of the namespace.
    labels Map<String>

    Labels for this Namespace.

    Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    namespaceLabels Map<String>
    Namespace-level cluster namespace labels. These labels are applied to the related namespace of the member clusters bound to the parent Scope. Scope-level labels (namespace_labels in the Fleet Scope resource) take precedence over Namespace-level labels if they share a key. Keys and values must be Kubernetes-conformant.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    Outputs

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

    CreateTime string
    Time the Namespace was created in UTC.
    DeleteTime string
    Time the Namespace was deleted in UTC.
    EffectiveLabels Dictionary<string, string>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The resource name for the namespace
    PulumiLabels Dictionary<string, string>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    States List<NamespaceState>
    State of the namespace resource. Structure is documented below.
    Uid string
    Google-generated UUID for this resource.
    UpdateTime string
    Time the Namespace was updated in UTC.
    CreateTime string
    Time the Namespace was created in UTC.
    DeleteTime string
    Time the Namespace was deleted in UTC.
    EffectiveLabels map[string]string
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The resource name for the namespace
    PulumiLabels map[string]string
    The combination of labels configured directly on the resource and default labels configured on the provider.
    States []NamespaceStateType
    State of the namespace resource. Structure is documented below.
    Uid string
    Google-generated UUID for this resource.
    UpdateTime string
    Time the Namespace was updated in UTC.
    createTime String
    Time the Namespace was created in UTC.
    deleteTime String
    Time the Namespace was deleted in UTC.
    effectiveLabels Map<String,String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The resource name for the namespace
    pulumiLabels Map<String,String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    states List<NamespaceState>
    State of the namespace resource. Structure is documented below.
    uid String
    Google-generated UUID for this resource.
    updateTime String
    Time the Namespace was updated in UTC.
    createTime string
    Time the Namespace was created in UTC.
    deleteTime string
    Time the Namespace was deleted in UTC.
    effectiveLabels {[key: string]: string}
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The resource name for the namespace
    pulumiLabels {[key: string]: string}
    The combination of labels configured directly on the resource and default labels configured on the provider.
    states NamespaceState[]
    State of the namespace resource. Structure is documented below.
    uid string
    Google-generated UUID for this resource.
    updateTime string
    Time the Namespace was updated in UTC.
    create_time str
    Time the Namespace was created in UTC.
    delete_time str
    Time the Namespace was deleted in UTC.
    effective_labels Mapping[str, str]
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The resource name for the namespace
    pulumi_labels Mapping[str, str]
    The combination of labels configured directly on the resource and default labels configured on the provider.
    states Sequence[NamespaceState]
    State of the namespace resource. Structure is documented below.
    uid str
    Google-generated UUID for this resource.
    update_time str
    Time the Namespace was updated in UTC.
    createTime String
    Time the Namespace was created in UTC.
    deleteTime String
    Time the Namespace was deleted in UTC.
    effectiveLabels Map<String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The resource name for the namespace
    pulumiLabels Map<String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    states List<Property Map>
    State of the namespace resource. Structure is documented below.
    uid String
    Google-generated UUID for this resource.
    updateTime String
    Time the Namespace was updated in UTC.

    Look up Existing Namespace Resource

    Get an existing Namespace 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?: NamespaceState, opts?: CustomResourceOptions): Namespace
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_time: Optional[str] = None,
            delete_time: Optional[str] = None,
            effective_labels: Optional[Mapping[str, str]] = None,
            labels: Optional[Mapping[str, str]] = None,
            name: Optional[str] = None,
            namespace_labels: Optional[Mapping[str, str]] = None,
            project: Optional[str] = None,
            pulumi_labels: Optional[Mapping[str, str]] = None,
            scope: Optional[str] = None,
            scope_id: Optional[str] = None,
            scope_namespace_id: Optional[str] = None,
            states: Optional[Sequence[NamespaceStateArgs]] = None,
            uid: Optional[str] = None,
            update_time: Optional[str] = None) -> Namespace
    func GetNamespace(ctx *Context, name string, id IDInput, state *NamespaceState, opts ...ResourceOption) (*Namespace, error)
    public static Namespace Get(string name, Input<string> id, NamespaceState? state, CustomResourceOptions? opts = null)
    public static Namespace get(String name, Output<String> id, NamespaceState 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:
    CreateTime string
    Time the Namespace was created in UTC.
    DeleteTime string
    Time the Namespace was deleted in UTC.
    EffectiveLabels Dictionary<string, string>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    Labels Dictionary<string, string>

    Labels for this Namespace.

    Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    Name string
    The resource name for the namespace
    NamespaceLabels Dictionary<string, string>
    Namespace-level cluster namespace labels. These labels are applied to the related namespace of the member clusters bound to the parent Scope. Scope-level labels (namespace_labels in the Fleet Scope resource) take precedence over Namespace-level labels if they share a key. Keys and values must be Kubernetes-conformant.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    PulumiLabels Dictionary<string, string>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    Scope string
    The name of the Scope instance.
    ScopeId string
    Id of the scope


    ScopeNamespaceId string
    The client-provided identifier of the namespace.
    States List<NamespaceState>
    State of the namespace resource. Structure is documented below.
    Uid string
    Google-generated UUID for this resource.
    UpdateTime string
    Time the Namespace was updated in UTC.
    CreateTime string
    Time the Namespace was created in UTC.
    DeleteTime string
    Time the Namespace was deleted in UTC.
    EffectiveLabels map[string]string
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    Labels map[string]string

    Labels for this Namespace.

    Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    Name string
    The resource name for the namespace
    NamespaceLabels map[string]string
    Namespace-level cluster namespace labels. These labels are applied to the related namespace of the member clusters bound to the parent Scope. Scope-level labels (namespace_labels in the Fleet Scope resource) take precedence over Namespace-level labels if they share a key. Keys and values must be Kubernetes-conformant.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    PulumiLabels map[string]string
    The combination of labels configured directly on the resource and default labels configured on the provider.
    Scope string
    The name of the Scope instance.
    ScopeId string
    Id of the scope


    ScopeNamespaceId string
    The client-provided identifier of the namespace.
    States []NamespaceStateTypeArgs
    State of the namespace resource. Structure is documented below.
    Uid string
    Google-generated UUID for this resource.
    UpdateTime string
    Time the Namespace was updated in UTC.
    createTime String
    Time the Namespace was created in UTC.
    deleteTime String
    Time the Namespace was deleted in UTC.
    effectiveLabels Map<String,String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    labels Map<String,String>

    Labels for this Namespace.

    Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    name String
    The resource name for the namespace
    namespaceLabels Map<String,String>
    Namespace-level cluster namespace labels. These labels are applied to the related namespace of the member clusters bound to the parent Scope. Scope-level labels (namespace_labels in the Fleet Scope resource) take precedence over Namespace-level labels if they share a key. Keys and values must be Kubernetes-conformant.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    pulumiLabels Map<String,String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    scope String
    The name of the Scope instance.
    scopeId String
    Id of the scope


    scopeNamespaceId String
    The client-provided identifier of the namespace.
    states List<NamespaceState>
    State of the namespace resource. Structure is documented below.
    uid String
    Google-generated UUID for this resource.
    updateTime String
    Time the Namespace was updated in UTC.
    createTime string
    Time the Namespace was created in UTC.
    deleteTime string
    Time the Namespace was deleted in UTC.
    effectiveLabels {[key: string]: string}
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    labels {[key: string]: string}

    Labels for this Namespace.

    Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    name string
    The resource name for the namespace
    namespaceLabels {[key: string]: string}
    Namespace-level cluster namespace labels. These labels are applied to the related namespace of the member clusters bound to the parent Scope. Scope-level labels (namespace_labels in the Fleet Scope resource) take precedence over Namespace-level labels if they share a key. Keys and values must be Kubernetes-conformant.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    pulumiLabels {[key: string]: string}
    The combination of labels configured directly on the resource and default labels configured on the provider.
    scope string
    The name of the Scope instance.
    scopeId string
    Id of the scope


    scopeNamespaceId string
    The client-provided identifier of the namespace.
    states NamespaceState[]
    State of the namespace resource. Structure is documented below.
    uid string
    Google-generated UUID for this resource.
    updateTime string
    Time the Namespace was updated in UTC.
    create_time str
    Time the Namespace was created in UTC.
    delete_time str
    Time the Namespace was deleted in UTC.
    effective_labels Mapping[str, str]
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    labels Mapping[str, str]

    Labels for this Namespace.

    Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    name str
    The resource name for the namespace
    namespace_labels Mapping[str, str]
    Namespace-level cluster namespace labels. These labels are applied to the related namespace of the member clusters bound to the parent Scope. Scope-level labels (namespace_labels in the Fleet Scope resource) take precedence over Namespace-level labels if they share a key. Keys and values must be Kubernetes-conformant.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    pulumi_labels Mapping[str, str]
    The combination of labels configured directly on the resource and default labels configured on the provider.
    scope str
    The name of the Scope instance.
    scope_id str
    Id of the scope


    scope_namespace_id str
    The client-provided identifier of the namespace.
    states Sequence[NamespaceStateArgs]
    State of the namespace resource. Structure is documented below.
    uid str
    Google-generated UUID for this resource.
    update_time str
    Time the Namespace was updated in UTC.
    createTime String
    Time the Namespace was created in UTC.
    deleteTime String
    Time the Namespace was deleted in UTC.
    effectiveLabels Map<String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    labels Map<String>

    Labels for this Namespace.

    Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    name String
    The resource name for the namespace
    namespaceLabels Map<String>
    Namespace-level cluster namespace labels. These labels are applied to the related namespace of the member clusters bound to the parent Scope. Scope-level labels (namespace_labels in the Fleet Scope resource) take precedence over Namespace-level labels if they share a key. Keys and values must be Kubernetes-conformant.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    pulumiLabels Map<String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    scope String
    The name of the Scope instance.
    scopeId String
    Id of the scope


    scopeNamespaceId String
    The client-provided identifier of the namespace.
    states List<Property Map>
    State of the namespace resource. Structure is documented below.
    uid String
    Google-generated UUID for this resource.
    updateTime String
    Time the Namespace was updated in UTC.

    Supporting Types

    NamespaceState, NamespaceStateArgs

    Code string
    (Output) Code describes the state of a Namespace resource.
    Code string
    (Output) Code describes the state of a Namespace resource.
    code String
    (Output) Code describes the state of a Namespace resource.
    code string
    (Output) Code describes the state of a Namespace resource.
    code str
    (Output) Code describes the state of a Namespace resource.
    code String
    (Output) Code describes the state of a Namespace resource.

    Import

    Namespace can be imported using any of these accepted formats:

    • projects/{{project}}/locations/global/scopes/{{scope_id}}/namespaces/{{scope_namespace_id}}

    • {{project}}/{{scope_id}}/{{scope_namespace_id}}

    • {{scope_id}}/{{scope_namespace_id}}

    When using the pulumi import command, Namespace can be imported using one of the formats above. For example:

    $ pulumi import gcp:gkehub/namespace:Namespace default projects/{{project}}/locations/global/scopes/{{scope_id}}/namespaces/{{scope_namespace_id}}
    
    $ pulumi import gcp:gkehub/namespace:Namespace default {{project}}/{{scope_id}}/{{scope_namespace_id}}
    
    $ pulumi import gcp:gkehub/namespace:Namespace default {{scope_id}}/{{scope_namespace_id}}
    

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

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the google-beta Terraform Provider.
    gcp logo
    Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi