1. Packages
  2. Temporalcloud Provider
  3. API Docs
  4. NamespaceTags
Temporal Cloud 1.1.0 published on Friday, Sep 12, 2025 by temporalio

temporalcloud.NamespaceTags

Explore with Pulumi AI

temporalcloud logo
Temporal Cloud 1.1.0 published on Friday, Sep 12, 2025 by temporalio

    Manages the complete set of tags for a Temporal Cloud namespace.

    Example Usage

    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.temporalcloud.Namespace;
    import com.pulumi.temporalcloud.NamespaceArgs;
    import com.pulumi.temporalcloud.NamespaceTags;
    import com.pulumi.temporalcloud.NamespaceTagsArgs;
    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) {
            // Create a namespace first
            var exampleNamespace = new Namespace("exampleNamespace", NamespaceArgs.builder()
                .regions("aws-us-west-2")
                .apiKeyAuth(true)
                .retentionDays(14)
                .build());
    
            // Basic namespace tags example, with a custom timeout
            var exampleNamespaceTags = new NamespaceTags("exampleNamespaceTags", NamespaceTagsArgs.builder()
                .namespaceId(exampleNamespace.id())
                .tags(Map.ofEntries(
                    Map.entry("environment", "production"),
                    Map.entry("team", "backend"),
                    Map.entry("project", "temporal-workflows")
                ))
                .timeouts(NamespaceTagsTimeoutsArgs.builder()
                    .create("10m")
                    .delete("5m")
                    .build())
                .build());
    
        }
    }
    
    resources:
      # Create a namespace first
      exampleNamespace:
        type: temporalcloud:Namespace
        properties:
          regions:
            - aws-us-west-2
          apiKeyAuth: true
          retentionDays: 14
      # Basic namespace tags example, with a custom timeout
      exampleNamespaceTags:
        type: temporalcloud:NamespaceTags
        properties:
          namespaceId: ${exampleNamespace.id}
          tags:
            environment: production
            team: backend
            project: temporal-workflows
          timeouts:
            - create: 10m
              delete: 5m
    

    Create NamespaceTags Resource

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

    Constructor syntax

    new NamespaceTags(name: string, args: NamespaceTagsArgs, opts?: CustomResourceOptions);
    @overload
    def NamespaceTags(resource_name: str,
                      args: NamespaceTagsArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def NamespaceTags(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      namespace_id: Optional[str] = None,
                      tags: Optional[Mapping[str, str]] = None,
                      timeouts: Optional[NamespaceTagsTimeoutsArgs] = None)
    func NewNamespaceTags(ctx *Context, name string, args NamespaceTagsArgs, opts ...ResourceOption) (*NamespaceTags, error)
    public NamespaceTags(string name, NamespaceTagsArgs args, CustomResourceOptions? opts = null)
    public NamespaceTags(String name, NamespaceTagsArgs args)
    public NamespaceTags(String name, NamespaceTagsArgs args, CustomResourceOptions options)
    
    type: temporalcloud:NamespaceTags
    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 NamespaceTagsArgs
    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 NamespaceTagsArgs
    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 NamespaceTagsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NamespaceTagsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NamespaceTagsArgs
    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 namespaceTagsResource = new Temporalcloud.NamespaceTags("namespaceTagsResource", new()
    {
        NamespaceId = "string",
        Tags = 
        {
            { "string", "string" },
        },
        Timeouts = new Temporalcloud.Inputs.NamespaceTagsTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
    });
    
    example, err := temporalcloud.NewNamespaceTags(ctx, "namespaceTagsResource", &temporalcloud.NamespaceTagsArgs{
    	NamespaceId: pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Timeouts: &temporalcloud.NamespaceTagsTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    })
    
    var namespaceTagsResource = new NamespaceTags("namespaceTagsResource", NamespaceTagsArgs.builder()
        .namespaceId("string")
        .tags(Map.of("string", "string"))
        .timeouts(NamespaceTagsTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .build());
    
    namespace_tags_resource = temporalcloud.NamespaceTags("namespaceTagsResource",
        namespace_id="string",
        tags={
            "string": "string",
        },
        timeouts={
            "create": "string",
            "delete": "string",
        })
    
    const namespaceTagsResource = new temporalcloud.NamespaceTags("namespaceTagsResource", {
        namespaceId: "string",
        tags: {
            string: "string",
        },
        timeouts: {
            create: "string",
            "delete": "string",
        },
    });
    
    type: temporalcloud:NamespaceTags
    properties:
        namespaceId: string
        tags:
            string: string
        timeouts:
            create: string
            delete: string
    

    NamespaceTags Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The NamespaceTags resource accepts the following input properties:

    NamespaceId string
    The ID of the namespace to manage tags for.
    Tags Dictionary<string, string>
    A map of tag keys to tag values.
    Timeouts NamespaceTagsTimeouts
    NamespaceId string
    The ID of the namespace to manage tags for.
    Tags map[string]string
    A map of tag keys to tag values.
    Timeouts NamespaceTagsTimeoutsArgs
    namespaceId String
    The ID of the namespace to manage tags for.
    tags Map<String,String>
    A map of tag keys to tag values.
    timeouts NamespaceTagsTimeouts
    namespaceId string
    The ID of the namespace to manage tags for.
    tags {[key: string]: string}
    A map of tag keys to tag values.
    timeouts NamespaceTagsTimeouts
    namespace_id str
    The ID of the namespace to manage tags for.
    tags Mapping[str, str]
    A map of tag keys to tag values.
    timeouts NamespaceTagsTimeoutsArgs
    namespaceId String
    The ID of the namespace to manage tags for.
    tags Map<String>
    A map of tag keys to tag values.
    timeouts Property Map

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing NamespaceTags Resource

    Get an existing NamespaceTags 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?: NamespaceTagsState, opts?: CustomResourceOptions): NamespaceTags
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            namespace_id: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            timeouts: Optional[NamespaceTagsTimeoutsArgs] = None) -> NamespaceTags
    func GetNamespaceTags(ctx *Context, name string, id IDInput, state *NamespaceTagsState, opts ...ResourceOption) (*NamespaceTags, error)
    public static NamespaceTags Get(string name, Input<string> id, NamespaceTagsState? state, CustomResourceOptions? opts = null)
    public static NamespaceTags get(String name, Output<String> id, NamespaceTagsState state, CustomResourceOptions options)
    resources:  _:    type: temporalcloud:NamespaceTags    get:      id: ${id}
    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:
    NamespaceId string
    The ID of the namespace to manage tags for.
    Tags Dictionary<string, string>
    A map of tag keys to tag values.
    Timeouts NamespaceTagsTimeouts
    NamespaceId string
    The ID of the namespace to manage tags for.
    Tags map[string]string
    A map of tag keys to tag values.
    Timeouts NamespaceTagsTimeoutsArgs
    namespaceId String
    The ID of the namespace to manage tags for.
    tags Map<String,String>
    A map of tag keys to tag values.
    timeouts NamespaceTagsTimeouts
    namespaceId string
    The ID of the namespace to manage tags for.
    tags {[key: string]: string}
    A map of tag keys to tag values.
    timeouts NamespaceTagsTimeouts
    namespace_id str
    The ID of the namespace to manage tags for.
    tags Mapping[str, str]
    A map of tag keys to tag values.
    timeouts NamespaceTagsTimeoutsArgs
    namespaceId String
    The ID of the namespace to manage tags for.
    tags Map<String>
    A map of tag keys to tag values.
    timeouts Property Map

    Supporting Types

    NamespaceTagsTimeouts, NamespaceTagsTimeoutsArgs

    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    create str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.

    Import

    The pulumi import command can be used, for example:

    Namespace Tags can be imported to incorporate existing Namespace Tags into your Terraform pipeline.

    To import Namespace Tags, you need:

    • a resource configuration in your Terraform configuration file/module to accept the imported Namespace Tags. In the example below, the placeholder is “temporalcloud_namespace_tags” “tags_import”

    • the Namespace ID, which includes the Namespace Name and Account ID available at the top of the Namespace’s page in the Temporal Cloud UI. In the example below, this is namespaceid.acctid

    The import ID format is: namespaceid.acctid/tags

    $ pulumi import temporalcloud:index/namespaceTags:NamespaceTags tags_import namespaceid.acctid/tags
    

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

    Package Details

    Repository
    temporalcloud temporalio/terraform-provider-temporalcloud
    License
    Notes
    This Pulumi package is based on the temporalcloud Terraform Provider.
    temporalcloud logo
    Temporal Cloud 1.1.0 published on Friday, Sep 12, 2025 by temporalio