tencentcloud.TsfUnitNamespace
Explore with Pulumi AI
Provides a resource to create a tsf unit_namespace
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const unitNamespace = new tencentcloud.TsfUnitNamespace("unitNamespace", {
gatewayInstanceId: "gw-ins-lvdypq5k",
namespaceId: "namespace-vwgo38wy",
namespaceName: "keep-terraform-cls",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
unit_namespace = tencentcloud.TsfUnitNamespace("unitNamespace",
gateway_instance_id="gw-ins-lvdypq5k",
namespace_id="namespace-vwgo38wy",
namespace_name="keep-terraform-cls")
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.NewTsfUnitNamespace(ctx, "unitNamespace", &tencentcloud.TsfUnitNamespaceArgs{
GatewayInstanceId: pulumi.String("gw-ins-lvdypq5k"),
NamespaceId: pulumi.String("namespace-vwgo38wy"),
NamespaceName: pulumi.String("keep-terraform-cls"),
})
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 unitNamespace = new Tencentcloud.TsfUnitNamespace("unitNamespace", new()
{
GatewayInstanceId = "gw-ins-lvdypq5k",
NamespaceId = "namespace-vwgo38wy",
NamespaceName = "keep-terraform-cls",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TsfUnitNamespace;
import com.pulumi.tencentcloud.TsfUnitNamespaceArgs;
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 unitNamespace = new TsfUnitNamespace("unitNamespace", TsfUnitNamespaceArgs.builder()
.gatewayInstanceId("gw-ins-lvdypq5k")
.namespaceId("namespace-vwgo38wy")
.namespaceName("keep-terraform-cls")
.build());
}
}
resources:
unitNamespace:
type: tencentcloud:TsfUnitNamespace
properties:
gatewayInstanceId: gw-ins-lvdypq5k
namespaceId: namespace-vwgo38wy
namespaceName: keep-terraform-cls
Create TsfUnitNamespace Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TsfUnitNamespace(name: string, args: TsfUnitNamespaceArgs, opts?: CustomResourceOptions);
@overload
def TsfUnitNamespace(resource_name: str,
args: TsfUnitNamespaceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TsfUnitNamespace(resource_name: str,
opts: Optional[ResourceOptions] = None,
gateway_instance_id: Optional[str] = None,
namespace_id: Optional[str] = None,
namespace_name: Optional[str] = None,
tsf_unit_namespace_id: Optional[str] = None)
func NewTsfUnitNamespace(ctx *Context, name string, args TsfUnitNamespaceArgs, opts ...ResourceOption) (*TsfUnitNamespace, error)
public TsfUnitNamespace(string name, TsfUnitNamespaceArgs args, CustomResourceOptions? opts = null)
public TsfUnitNamespace(String name, TsfUnitNamespaceArgs args)
public TsfUnitNamespace(String name, TsfUnitNamespaceArgs args, CustomResourceOptions options)
type: tencentcloud:TsfUnitNamespace
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 TsfUnitNamespaceArgs
- 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 TsfUnitNamespaceArgs
- 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 TsfUnitNamespaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TsfUnitNamespaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TsfUnitNamespaceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
TsfUnitNamespace 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 TsfUnitNamespace resource accepts the following input properties:
- Gateway
Instance stringId - gateway instance Id.
- Namespace
Id string - namespace id.
- Namespace
Name string - namespace name.
- Tsf
Unit stringNamespace Id - ID of the resource.
- Gateway
Instance stringId - gateway instance Id.
- Namespace
Id string - namespace id.
- Namespace
Name string - namespace name.
- Tsf
Unit stringNamespace Id - ID of the resource.
- gateway
Instance StringId - gateway instance Id.
- namespace
Id String - namespace id.
- namespace
Name String - namespace name.
- tsf
Unit StringNamespace Id - ID of the resource.
- gateway
Instance stringId - gateway instance Id.
- namespace
Id string - namespace id.
- namespace
Name string - namespace name.
- tsf
Unit stringNamespace Id - ID of the resource.
- gateway_
instance_ strid - gateway instance Id.
- namespace_
id str - namespace id.
- namespace_
name str - namespace name.
- tsf_
unit_ strnamespace_ id - ID of the resource.
- gateway
Instance StringId - gateway instance Id.
- namespace
Id String - namespace id.
- namespace
Name String - namespace name.
- tsf
Unit StringNamespace Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the TsfUnitNamespace resource produces the following output properties:
- Created
Time string - Create time. Note: This field may return null, indicating that no valid value was found.
- Id string
- The provider-assigned unique ID for this managed resource.
- Updated
Time string - Update time. Note: This field may return null, indicating that no valid value was found.
- Created
Time string - Create time. Note: This field may return null, indicating that no valid value was found.
- Id string
- The provider-assigned unique ID for this managed resource.
- Updated
Time string - Update time. Note: This field may return null, indicating that no valid value was found.
- created
Time String - Create time. Note: This field may return null, indicating that no valid value was found.
- id String
- The provider-assigned unique ID for this managed resource.
- updated
Time String - Update time. Note: This field may return null, indicating that no valid value was found.
- created
Time string - Create time. Note: This field may return null, indicating that no valid value was found.
- id string
- The provider-assigned unique ID for this managed resource.
- updated
Time string - Update time. Note: This field may return null, indicating that no valid value was found.
- created_
time str - Create time. Note: This field may return null, indicating that no valid value was found.
- id str
- The provider-assigned unique ID for this managed resource.
- updated_
time str - Update time. Note: This field may return null, indicating that no valid value was found.
- created
Time String - Create time. Note: This field may return null, indicating that no valid value was found.
- id String
- The provider-assigned unique ID for this managed resource.
- updated
Time String - Update time. Note: This field may return null, indicating that no valid value was found.
Look up Existing TsfUnitNamespace Resource
Get an existing TsfUnitNamespace 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?: TsfUnitNamespaceState, opts?: CustomResourceOptions): TsfUnitNamespace
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_time: Optional[str] = None,
gateway_instance_id: Optional[str] = None,
namespace_id: Optional[str] = None,
namespace_name: Optional[str] = None,
tsf_unit_namespace_id: Optional[str] = None,
updated_time: Optional[str] = None) -> TsfUnitNamespace
func GetTsfUnitNamespace(ctx *Context, name string, id IDInput, state *TsfUnitNamespaceState, opts ...ResourceOption) (*TsfUnitNamespace, error)
public static TsfUnitNamespace Get(string name, Input<string> id, TsfUnitNamespaceState? state, CustomResourceOptions? opts = null)
public static TsfUnitNamespace get(String name, Output<String> id, TsfUnitNamespaceState state, CustomResourceOptions options)
resources: _: type: tencentcloud:TsfUnitNamespace 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.
- Created
Time string - Create time. Note: This field may return null, indicating that no valid value was found.
- Gateway
Instance stringId - gateway instance Id.
- Namespace
Id string - namespace id.
- Namespace
Name string - namespace name.
- Tsf
Unit stringNamespace Id - ID of the resource.
- Updated
Time string - Update time. Note: This field may return null, indicating that no valid value was found.
- Created
Time string - Create time. Note: This field may return null, indicating that no valid value was found.
- Gateway
Instance stringId - gateway instance Id.
- Namespace
Id string - namespace id.
- Namespace
Name string - namespace name.
- Tsf
Unit stringNamespace Id - ID of the resource.
- Updated
Time string - Update time. Note: This field may return null, indicating that no valid value was found.
- created
Time String - Create time. Note: This field may return null, indicating that no valid value was found.
- gateway
Instance StringId - gateway instance Id.
- namespace
Id String - namespace id.
- namespace
Name String - namespace name.
- tsf
Unit StringNamespace Id - ID of the resource.
- updated
Time String - Update time. Note: This field may return null, indicating that no valid value was found.
- created
Time string - Create time. Note: This field may return null, indicating that no valid value was found.
- gateway
Instance stringId - gateway instance Id.
- namespace
Id string - namespace id.
- namespace
Name string - namespace name.
- tsf
Unit stringNamespace Id - ID of the resource.
- updated
Time string - Update time. Note: This field may return null, indicating that no valid value was found.
- created_
time str - Create time. Note: This field may return null, indicating that no valid value was found.
- gateway_
instance_ strid - gateway instance Id.
- namespace_
id str - namespace id.
- namespace_
name str - namespace name.
- tsf_
unit_ strnamespace_ id - ID of the resource.
- updated_
time str - Update time. Note: This field may return null, indicating that no valid value was found.
- created
Time String - Create time. Note: This field may return null, indicating that no valid value was found.
- gateway
Instance StringId - gateway instance Id.
- namespace
Id String - namespace id.
- namespace
Name String - namespace name.
- tsf
Unit StringNamespace Id - ID of the resource.
- updated
Time String - Update time. Note: This field may return null, indicating that no valid value was found.
Import
tsf unit_namespace can be imported using the id, e.g.
$ pulumi import tencentcloud:index/tsfUnitNamespace:TsfUnitNamespace unit_namespace gw-ins-lvdypq5k#namespace-vwgo38wy
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.