tencentcloud.TsfNamespace
Explore with Pulumi AI
Provides a resource to create a tsf namespace
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const namespace = new tencentcloud.TsfNamespace("namespace", {
isHaEnable: "0",
namespaceDesc: "namespace desc",
namespaceName: "namespace-name",
namespaceType: "DEF",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
namespace = tencentcloud.TsfNamespace("namespace",
is_ha_enable="0",
namespace_desc="namespace desc",
namespace_name="namespace-name",
namespace_type="DEF")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewTsfNamespace(ctx, "namespace", &tencentcloud.TsfNamespaceArgs{
IsHaEnable: pulumi.String("0"),
NamespaceDesc: pulumi.String("namespace desc"),
NamespaceName: pulumi.String("namespace-name"),
NamespaceType: pulumi.String("DEF"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var @namespace = new Tencentcloud.TsfNamespace("namespace", new()
{
IsHaEnable = "0",
NamespaceDesc = "namespace desc",
NamespaceName = "namespace-name",
NamespaceType = "DEF",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TsfNamespace;
import com.pulumi.tencentcloud.TsfNamespaceArgs;
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 namespace = new TsfNamespace("namespace", TsfNamespaceArgs.builder()
.isHaEnable("0")
.namespaceDesc("namespace desc")
.namespaceName("namespace-name")
.namespaceType("DEF")
.build());
}
}
resources:
namespace:
type: tencentcloud:TsfNamespace
properties:
# namespace_id = ""
isHaEnable: '0'
# cluster_id = "cls-xxxx"
namespaceDesc: namespace desc
namespaceName: namespace-name
# namespace_resource_type = ""
namespaceType: DEF
Create TsfNamespace Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TsfNamespace(name: string, args: TsfNamespaceArgs, opts?: CustomResourceOptions);
@overload
def TsfNamespace(resource_name: str,
args: TsfNamespaceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TsfNamespace(resource_name: str,
opts: Optional[ResourceOptions] = None,
namespace_name: Optional[str] = None,
cluster_id: Optional[str] = None,
is_ha_enable: Optional[str] = None,
namespace_desc: Optional[str] = None,
namespace_id: Optional[str] = None,
namespace_resource_type: Optional[str] = None,
namespace_type: Optional[str] = None,
program_id: Optional[str] = None,
program_id_lists: Optional[Sequence[str]] = None,
tsf_namespace_id: Optional[str] = None)
func NewTsfNamespace(ctx *Context, name string, args TsfNamespaceArgs, opts ...ResourceOption) (*TsfNamespace, error)
public TsfNamespace(string name, TsfNamespaceArgs args, CustomResourceOptions? opts = null)
public TsfNamespace(String name, TsfNamespaceArgs args)
public TsfNamespace(String name, TsfNamespaceArgs args, CustomResourceOptions options)
type: tencentcloud:TsfNamespace
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 TsfNamespaceArgs
- 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 TsfNamespaceArgs
- 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 TsfNamespaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TsfNamespaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TsfNamespaceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
TsfNamespace 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 TsfNamespace resource accepts the following input properties:
- Namespace
Name string - namespace name.
- Cluster
Id string - cluster ID.
- Is
Ha stringEnable - whether to enable high availability.
- Namespace
Desc string - namespace description.
- Namespace
Id string - Namespace ID.
- Namespace
Resource stringType - namespace resource type (default is DEF).
- Namespace
Type string - Whether it is a global namespace (the default is DEF, which means a common namespace; GLOBAL means a global namespace).
- Program
Id string - ID of the dataset to be bound.
- Program
Id List<string>Lists - Program id list.
- Tsf
Namespace stringId - ID of the resource.
- Namespace
Name string - namespace name.
- Cluster
Id string - cluster ID.
- Is
Ha stringEnable - whether to enable high availability.
- Namespace
Desc string - namespace description.
- Namespace
Id string - Namespace ID.
- Namespace
Resource stringType - namespace resource type (default is DEF).
- Namespace
Type string - Whether it is a global namespace (the default is DEF, which means a common namespace; GLOBAL means a global namespace).
- Program
Id string - ID of the dataset to be bound.
- Program
Id []stringLists - Program id list.
- Tsf
Namespace stringId - ID of the resource.
- namespace
Name String - namespace name.
- cluster
Id String - cluster ID.
- is
Ha StringEnable - whether to enable high availability.
- namespace
Desc String - namespace description.
- namespace
Id String - Namespace ID.
- namespace
Resource StringType - namespace resource type (default is DEF).
- namespace
Type String - Whether it is a global namespace (the default is DEF, which means a common namespace; GLOBAL means a global namespace).
- program
Id String - ID of the dataset to be bound.
- program
Id List<String>Lists - Program id list.
- tsf
Namespace StringId - ID of the resource.
- namespace
Name string - namespace name.
- cluster
Id string - cluster ID.
- is
Ha stringEnable - whether to enable high availability.
- namespace
Desc string - namespace description.
- namespace
Id string - Namespace ID.
- namespace
Resource stringType - namespace resource type (default is DEF).
- namespace
Type string - Whether it is a global namespace (the default is DEF, which means a common namespace; GLOBAL means a global namespace).
- program
Id string - ID of the dataset to be bound.
- program
Id string[]Lists - Program id list.
- tsf
Namespace stringId - ID of the resource.
- namespace_
name str - namespace name.
- cluster_
id str - cluster ID.
- is_
ha_ strenable - whether to enable high availability.
- namespace_
desc str - namespace description.
- namespace_
id str - Namespace ID.
- namespace_
resource_ strtype - namespace resource type (default is DEF).
- namespace_
type str - Whether it is a global namespace (the default is DEF, which means a common namespace; GLOBAL means a global namespace).
- program_
id str - ID of the dataset to be bound.
- program_
id_ Sequence[str]lists - Program id list.
- tsf_
namespace_ strid - ID of the resource.
- namespace
Name String - namespace name.
- cluster
Id String - cluster ID.
- is
Ha StringEnable - whether to enable high availability.
- namespace
Desc String - namespace description.
- namespace
Id String - Namespace ID.
- namespace
Resource StringType - namespace resource type (default is DEF).
- namespace
Type String - Whether it is a global namespace (the default is DEF, which means a common namespace; GLOBAL means a global namespace).
- program
Id String - ID of the dataset to be bound.
- program
Id List<String>Lists - Program id list.
- tsf
Namespace StringId - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the TsfNamespace resource produces the following output properties:
- Create
Time string - creation time.
- Delete
Flag bool - Delete ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Default string - default namespace.
- Kube
Inject boolEnable - KubeInjectEnable value.
- Namespace
Code string - Namespace encoding.
- Namespace
Status string - namespace status.
- Update
Time string - update time.
- Create
Time string - creation time.
- Delete
Flag bool - Delete ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Default string - default namespace.
- Kube
Inject boolEnable - KubeInjectEnable value.
- Namespace
Code string - Namespace encoding.
- Namespace
Status string - namespace status.
- Update
Time string - update time.
- create
Time String - creation time.
- delete
Flag Boolean - Delete ID.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Default String - default namespace.
- kube
Inject BooleanEnable - KubeInjectEnable value.
- namespace
Code String - Namespace encoding.
- namespace
Status String - namespace status.
- update
Time String - update time.
- create
Time string - creation time.
- delete
Flag boolean - Delete ID.
- id string
- The provider-assigned unique ID for this managed resource.
- is
Default string - default namespace.
- kube
Inject booleanEnable - KubeInjectEnable value.
- namespace
Code string - Namespace encoding.
- namespace
Status string - namespace status.
- update
Time string - update time.
- create_
time str - creation time.
- delete_
flag bool - Delete ID.
- id str
- The provider-assigned unique ID for this managed resource.
- is_
default str - default namespace.
- kube_
inject_ boolenable - KubeInjectEnable value.
- namespace_
code str - Namespace encoding.
- namespace_
status str - namespace status.
- update_
time str - update time.
- create
Time String - creation time.
- delete
Flag Boolean - Delete ID.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Default String - default namespace.
- kube
Inject BooleanEnable - KubeInjectEnable value.
- namespace
Code String - Namespace encoding.
- namespace
Status String - namespace status.
- update
Time String - update time.
Look up Existing TsfNamespace Resource
Get an existing TsfNamespace 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?: TsfNamespaceState, opts?: CustomResourceOptions): TsfNamespace
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
create_time: Optional[str] = None,
delete_flag: Optional[bool] = None,
is_default: Optional[str] = None,
is_ha_enable: Optional[str] = None,
kube_inject_enable: Optional[bool] = None,
namespace_code: Optional[str] = None,
namespace_desc: Optional[str] = None,
namespace_id: Optional[str] = None,
namespace_name: Optional[str] = None,
namespace_resource_type: Optional[str] = None,
namespace_status: Optional[str] = None,
namespace_type: Optional[str] = None,
program_id: Optional[str] = None,
program_id_lists: Optional[Sequence[str]] = None,
tsf_namespace_id: Optional[str] = None,
update_time: Optional[str] = None) -> TsfNamespace
func GetTsfNamespace(ctx *Context, name string, id IDInput, state *TsfNamespaceState, opts ...ResourceOption) (*TsfNamespace, error)
public static TsfNamespace Get(string name, Input<string> id, TsfNamespaceState? state, CustomResourceOptions? opts = null)
public static TsfNamespace get(String name, Output<String> id, TsfNamespaceState state, CustomResourceOptions options)
resources: _: type: tencentcloud:TsfNamespace 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.
- Cluster
Id string - cluster ID.
- Create
Time string - creation time.
- Delete
Flag bool - Delete ID.
- Is
Default string - default namespace.
- Is
Ha stringEnable - whether to enable high availability.
- Kube
Inject boolEnable - KubeInjectEnable value.
- Namespace
Code string - Namespace encoding.
- Namespace
Desc string - namespace description.
- Namespace
Id string - Namespace ID.
- Namespace
Name string - namespace name.
- Namespace
Resource stringType - namespace resource type (default is DEF).
- Namespace
Status string - namespace status.
- Namespace
Type string - Whether it is a global namespace (the default is DEF, which means a common namespace; GLOBAL means a global namespace).
- Program
Id string - ID of the dataset to be bound.
- Program
Id List<string>Lists - Program id list.
- Tsf
Namespace stringId - ID of the resource.
- Update
Time string - update time.
- Cluster
Id string - cluster ID.
- Create
Time string - creation time.
- Delete
Flag bool - Delete ID.
- Is
Default string - default namespace.
- Is
Ha stringEnable - whether to enable high availability.
- Kube
Inject boolEnable - KubeInjectEnable value.
- Namespace
Code string - Namespace encoding.
- Namespace
Desc string - namespace description.
- Namespace
Id string - Namespace ID.
- Namespace
Name string - namespace name.
- Namespace
Resource stringType - namespace resource type (default is DEF).
- Namespace
Status string - namespace status.
- Namespace
Type string - Whether it is a global namespace (the default is DEF, which means a common namespace; GLOBAL means a global namespace).
- Program
Id string - ID of the dataset to be bound.
- Program
Id []stringLists - Program id list.
- Tsf
Namespace stringId - ID of the resource.
- Update
Time string - update time.
- cluster
Id String - cluster ID.
- create
Time String - creation time.
- delete
Flag Boolean - Delete ID.
- is
Default String - default namespace.
- is
Ha StringEnable - whether to enable high availability.
- kube
Inject BooleanEnable - KubeInjectEnable value.
- namespace
Code String - Namespace encoding.
- namespace
Desc String - namespace description.
- namespace
Id String - Namespace ID.
- namespace
Name String - namespace name.
- namespace
Resource StringType - namespace resource type (default is DEF).
- namespace
Status String - namespace status.
- namespace
Type String - Whether it is a global namespace (the default is DEF, which means a common namespace; GLOBAL means a global namespace).
- program
Id String - ID of the dataset to be bound.
- program
Id List<String>Lists - Program id list.
- tsf
Namespace StringId - ID of the resource.
- update
Time String - update time.
- cluster
Id string - cluster ID.
- create
Time string - creation time.
- delete
Flag boolean - Delete ID.
- is
Default string - default namespace.
- is
Ha stringEnable - whether to enable high availability.
- kube
Inject booleanEnable - KubeInjectEnable value.
- namespace
Code string - Namespace encoding.
- namespace
Desc string - namespace description.
- namespace
Id string - Namespace ID.
- namespace
Name string - namespace name.
- namespace
Resource stringType - namespace resource type (default is DEF).
- namespace
Status string - namespace status.
- namespace
Type string - Whether it is a global namespace (the default is DEF, which means a common namespace; GLOBAL means a global namespace).
- program
Id string - ID of the dataset to be bound.
- program
Id string[]Lists - Program id list.
- tsf
Namespace stringId - ID of the resource.
- update
Time string - update time.
- cluster_
id str - cluster ID.
- create_
time str - creation time.
- delete_
flag bool - Delete ID.
- is_
default str - default namespace.
- is_
ha_ strenable - whether to enable high availability.
- kube_
inject_ boolenable - KubeInjectEnable value.
- namespace_
code str - Namespace encoding.
- namespace_
desc str - namespace description.
- namespace_
id str - Namespace ID.
- namespace_
name str - namespace name.
- namespace_
resource_ strtype - namespace resource type (default is DEF).
- namespace_
status str - namespace status.
- namespace_
type str - Whether it is a global namespace (the default is DEF, which means a common namespace; GLOBAL means a global namespace).
- program_
id str - ID of the dataset to be bound.
- program_
id_ Sequence[str]lists - Program id list.
- tsf_
namespace_ strid - ID of the resource.
- update_
time str - update time.
- cluster
Id String - cluster ID.
- create
Time String - creation time.
- delete
Flag Boolean - Delete ID.
- is
Default String - default namespace.
- is
Ha StringEnable - whether to enable high availability.
- kube
Inject BooleanEnable - KubeInjectEnable value.
- namespace
Code String - Namespace encoding.
- namespace
Desc String - namespace description.
- namespace
Id String - Namespace ID.
- namespace
Name String - namespace name.
- namespace
Resource StringType - namespace resource type (default is DEF).
- namespace
Status String - namespace status.
- namespace
Type String - Whether it is a global namespace (the default is DEF, which means a common namespace; GLOBAL means a global namespace).
- program
Id String - ID of the dataset to be bound.
- program
Id List<String>Lists - Program id list.
- tsf
Namespace StringId - ID of the resource.
- update
Time String - update time.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.