1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. TsfApplication
tencentcloud 1.81.187 published on Monday, Apr 28, 2025 by tencentcloudstack

tencentcloud.TsfApplication

Explore with Pulumi AI

Provides a resource to create a tsf application

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const application = new tencentcloud.TsfApplication("application", {
    applicationDesc: "This is my application",
    applicationName: "my-app",
    applicationRuntimeType: "Java",
    applicationType: "C",
    ignoreCreateImageRepository: true,
    microserviceType: "M",
    serviceConfigLists: [{
        healthCheck: {
            path: "/health",
        },
        name: "my-service",
        ports: [{
            protocol: "HTTP",
            targetPort: 8080,
        }],
    }],
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

application = tencentcloud.TsfApplication("application",
    application_desc="This is my application",
    application_name="my-app",
    application_runtime_type="Java",
    application_type="C",
    ignore_create_image_repository=True,
    microservice_type="M",
    service_config_lists=[{
        "health_check": {
            "path": "/health",
        },
        "name": "my-service",
        "ports": [{
            "protocol": "HTTP",
            "target_port": 8080,
        }],
    }])
Copy
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.NewTsfApplication(ctx, "application", &tencentcloud.TsfApplicationArgs{
			ApplicationDesc:             pulumi.String("This is my application"),
			ApplicationName:             pulumi.String("my-app"),
			ApplicationRuntimeType:      pulumi.String("Java"),
			ApplicationType:             pulumi.String("C"),
			IgnoreCreateImageRepository: pulumi.Bool(true),
			MicroserviceType:            pulumi.String("M"),
			ServiceConfigLists: tencentcloud.TsfApplicationServiceConfigListArray{
				&tencentcloud.TsfApplicationServiceConfigListArgs{
					HealthCheck: &tencentcloud.TsfApplicationServiceConfigListHealthCheckArgs{
						Path: pulumi.String("/health"),
					},
					Name: pulumi.String("my-service"),
					Ports: tencentcloud.TsfApplicationServiceConfigListPortArray{
						&tencentcloud.TsfApplicationServiceConfigListPortArgs{
							Protocol:   pulumi.String("HTTP"),
							TargetPort: pulumi.Float64(8080),
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var application = new Tencentcloud.TsfApplication("application", new()
    {
        ApplicationDesc = "This is my application",
        ApplicationName = "my-app",
        ApplicationRuntimeType = "Java",
        ApplicationType = "C",
        IgnoreCreateImageRepository = true,
        MicroserviceType = "M",
        ServiceConfigLists = new[]
        {
            new Tencentcloud.Inputs.TsfApplicationServiceConfigListArgs
            {
                HealthCheck = new Tencentcloud.Inputs.TsfApplicationServiceConfigListHealthCheckArgs
                {
                    Path = "/health",
                },
                Name = "my-service",
                Ports = new[]
                {
                    new Tencentcloud.Inputs.TsfApplicationServiceConfigListPortArgs
                    {
                        Protocol = "HTTP",
                        TargetPort = 8080,
                    },
                },
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TsfApplication;
import com.pulumi.tencentcloud.TsfApplicationArgs;
import com.pulumi.tencentcloud.inputs.TsfApplicationServiceConfigListArgs;
import com.pulumi.tencentcloud.inputs.TsfApplicationServiceConfigListHealthCheckArgs;
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 application = new TsfApplication("application", TsfApplicationArgs.builder()
            .applicationDesc("This is my application")
            .applicationName("my-app")
            .applicationRuntimeType("Java")
            .applicationType("C")
            .ignoreCreateImageRepository(true)
            .microserviceType("M")
            .serviceConfigLists(TsfApplicationServiceConfigListArgs.builder()
                .healthCheck(TsfApplicationServiceConfigListHealthCheckArgs.builder()
                    .path("/health")
                    .build())
                .name("my-service")
                .ports(TsfApplicationServiceConfigListPortArgs.builder()
                    .protocol("HTTP")
                    .targetPort(8080)
                    .build())
                .build())
            .build());

    }
}
Copy
resources:
  application:
    type: tencentcloud:TsfApplication
    properties:
      applicationDesc: This is my application
      applicationName: my-app
      applicationRuntimeType: Java
      applicationType: C
      ignoreCreateImageRepository: true
      microserviceType: M
      serviceConfigLists:
        - healthCheck:
            path: /health
          name: my-service
          ports:
            - protocol: HTTP
              targetPort: 8080
Copy

Create TsfApplication Resource

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

Constructor syntax

new TsfApplication(name: string, args: TsfApplicationArgs, opts?: CustomResourceOptions);
@overload
def TsfApplication(resource_name: str,
                   args: TsfApplicationArgs,
                   opts: Optional[ResourceOptions] = None)

@overload
def TsfApplication(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   application_name: Optional[str] = None,
                   application_type: Optional[str] = None,
                   microservice_type: Optional[str] = None,
                   application_desc: Optional[str] = None,
                   application_log_config: Optional[str] = None,
                   application_resource_type: Optional[str] = None,
                   application_runtime_type: Optional[str] = None,
                   ignore_create_image_repository: Optional[bool] = None,
                   program_id: Optional[str] = None,
                   program_id_lists: Optional[Sequence[str]] = None,
                   service_config_lists: Optional[Sequence[TsfApplicationServiceConfigListArgs]] = None,
                   tsf_application_id: Optional[str] = None)
func NewTsfApplication(ctx *Context, name string, args TsfApplicationArgs, opts ...ResourceOption) (*TsfApplication, error)
public TsfApplication(string name, TsfApplicationArgs args, CustomResourceOptions? opts = null)
public TsfApplication(String name, TsfApplicationArgs args)
public TsfApplication(String name, TsfApplicationArgs args, CustomResourceOptions options)
type: tencentcloud:TsfApplication
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

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

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

ApplicationName This property is required. string
Application name.
ApplicationType This property is required. string
Application type: V for virtual machine, C for container, S for serverless.
MicroserviceType This property is required. string
Application microservice type: M for service mesh, N for normal application, G for gateway application.
ApplicationDesc string
Application description.
ApplicationLogConfig string
Application log configuration, deprecated parameter.
ApplicationResourceType string
Application resource type, deprecated parameter.
ApplicationRuntimeType string
Application runtime type.
IgnoreCreateImageRepository bool
Ignore creating image repository.
ProgramId string
ID of the dataset to be bound.
ProgramIdLists List<string>
N/A.
ServiceConfigLists List<TsfApplicationServiceConfigList>
List of service configuration information.
TsfApplicationId string
ID of the resource.
ApplicationName This property is required. string
Application name.
ApplicationType This property is required. string
Application type: V for virtual machine, C for container, S for serverless.
MicroserviceType This property is required. string
Application microservice type: M for service mesh, N for normal application, G for gateway application.
ApplicationDesc string
Application description.
ApplicationLogConfig string
Application log configuration, deprecated parameter.
ApplicationResourceType string
Application resource type, deprecated parameter.
ApplicationRuntimeType string
Application runtime type.
IgnoreCreateImageRepository bool
Ignore creating image repository.
ProgramId string
ID of the dataset to be bound.
ProgramIdLists []string
N/A.
ServiceConfigLists []TsfApplicationServiceConfigListArgs
List of service configuration information.
TsfApplicationId string
ID of the resource.
applicationName This property is required. String
Application name.
applicationType This property is required. String
Application type: V for virtual machine, C for container, S for serverless.
microserviceType This property is required. String
Application microservice type: M for service mesh, N for normal application, G for gateway application.
applicationDesc String
Application description.
applicationLogConfig String
Application log configuration, deprecated parameter.
applicationResourceType String
Application resource type, deprecated parameter.
applicationRuntimeType String
Application runtime type.
ignoreCreateImageRepository Boolean
Ignore creating image repository.
programId String
ID of the dataset to be bound.
programIdLists List<String>
N/A.
serviceConfigLists List<TsfApplicationServiceConfigList>
List of service configuration information.
tsfApplicationId String
ID of the resource.
applicationName This property is required. string
Application name.
applicationType This property is required. string
Application type: V for virtual machine, C for container, S for serverless.
microserviceType This property is required. string
Application microservice type: M for service mesh, N for normal application, G for gateway application.
applicationDesc string
Application description.
applicationLogConfig string
Application log configuration, deprecated parameter.
applicationResourceType string
Application resource type, deprecated parameter.
applicationRuntimeType string
Application runtime type.
ignoreCreateImageRepository boolean
Ignore creating image repository.
programId string
ID of the dataset to be bound.
programIdLists string[]
N/A.
serviceConfigLists TsfApplicationServiceConfigList[]
List of service configuration information.
tsfApplicationId string
ID of the resource.
application_name This property is required. str
Application name.
application_type This property is required. str
Application type: V for virtual machine, C for container, S for serverless.
microservice_type This property is required. str
Application microservice type: M for service mesh, N for normal application, G for gateway application.
application_desc str
Application description.
application_log_config str
Application log configuration, deprecated parameter.
application_resource_type str
Application resource type, deprecated parameter.
application_runtime_type str
Application runtime type.
ignore_create_image_repository bool
Ignore creating image repository.
program_id str
ID of the dataset to be bound.
program_id_lists Sequence[str]
N/A.
service_config_lists Sequence[TsfApplicationServiceConfigListArgs]
List of service configuration information.
tsf_application_id str
ID of the resource.
applicationName This property is required. String
Application name.
applicationType This property is required. String
Application type: V for virtual machine, C for container, S for serverless.
microserviceType This property is required. String
Application microservice type: M for service mesh, N for normal application, G for gateway application.
applicationDesc String
Application description.
applicationLogConfig String
Application log configuration, deprecated parameter.
applicationResourceType String
Application resource type, deprecated parameter.
applicationRuntimeType String
Application runtime type.
ignoreCreateImageRepository Boolean
Ignore creating image repository.
programId String
ID of the dataset to be bound.
programIdLists List<String>
N/A.
serviceConfigLists List<Property Map>
List of service configuration information.
tsfApplicationId String
ID of the resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the TsfApplication 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 TsfApplication Resource

Get an existing TsfApplication 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?: TsfApplicationState, opts?: CustomResourceOptions): TsfApplication
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        application_desc: Optional[str] = None,
        application_log_config: Optional[str] = None,
        application_name: Optional[str] = None,
        application_resource_type: Optional[str] = None,
        application_runtime_type: Optional[str] = None,
        application_type: Optional[str] = None,
        ignore_create_image_repository: Optional[bool] = None,
        microservice_type: Optional[str] = None,
        program_id: Optional[str] = None,
        program_id_lists: Optional[Sequence[str]] = None,
        service_config_lists: Optional[Sequence[TsfApplicationServiceConfigListArgs]] = None,
        tsf_application_id: Optional[str] = None) -> TsfApplication
func GetTsfApplication(ctx *Context, name string, id IDInput, state *TsfApplicationState, opts ...ResourceOption) (*TsfApplication, error)
public static TsfApplication Get(string name, Input<string> id, TsfApplicationState? state, CustomResourceOptions? opts = null)
public static TsfApplication get(String name, Output<String> id, TsfApplicationState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:TsfApplication    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
ApplicationDesc string
Application description.
ApplicationLogConfig string
Application log configuration, deprecated parameter.
ApplicationName string
Application name.
ApplicationResourceType string
Application resource type, deprecated parameter.
ApplicationRuntimeType string
Application runtime type.
ApplicationType string
Application type: V for virtual machine, C for container, S for serverless.
IgnoreCreateImageRepository bool
Ignore creating image repository.
MicroserviceType string
Application microservice type: M for service mesh, N for normal application, G for gateway application.
ProgramId string
ID of the dataset to be bound.
ProgramIdLists List<string>
N/A.
ServiceConfigLists List<TsfApplicationServiceConfigList>
List of service configuration information.
TsfApplicationId string
ID of the resource.
ApplicationDesc string
Application description.
ApplicationLogConfig string
Application log configuration, deprecated parameter.
ApplicationName string
Application name.
ApplicationResourceType string
Application resource type, deprecated parameter.
ApplicationRuntimeType string
Application runtime type.
ApplicationType string
Application type: V for virtual machine, C for container, S for serverless.
IgnoreCreateImageRepository bool
Ignore creating image repository.
MicroserviceType string
Application microservice type: M for service mesh, N for normal application, G for gateway application.
ProgramId string
ID of the dataset to be bound.
ProgramIdLists []string
N/A.
ServiceConfigLists []TsfApplicationServiceConfigListArgs
List of service configuration information.
TsfApplicationId string
ID of the resource.
applicationDesc String
Application description.
applicationLogConfig String
Application log configuration, deprecated parameter.
applicationName String
Application name.
applicationResourceType String
Application resource type, deprecated parameter.
applicationRuntimeType String
Application runtime type.
applicationType String
Application type: V for virtual machine, C for container, S for serverless.
ignoreCreateImageRepository Boolean
Ignore creating image repository.
microserviceType String
Application microservice type: M for service mesh, N for normal application, G for gateway application.
programId String
ID of the dataset to be bound.
programIdLists List<String>
N/A.
serviceConfigLists List<TsfApplicationServiceConfigList>
List of service configuration information.
tsfApplicationId String
ID of the resource.
applicationDesc string
Application description.
applicationLogConfig string
Application log configuration, deprecated parameter.
applicationName string
Application name.
applicationResourceType string
Application resource type, deprecated parameter.
applicationRuntimeType string
Application runtime type.
applicationType string
Application type: V for virtual machine, C for container, S for serverless.
ignoreCreateImageRepository boolean
Ignore creating image repository.
microserviceType string
Application microservice type: M for service mesh, N for normal application, G for gateway application.
programId string
ID of the dataset to be bound.
programIdLists string[]
N/A.
serviceConfigLists TsfApplicationServiceConfigList[]
List of service configuration information.
tsfApplicationId string
ID of the resource.
application_desc str
Application description.
application_log_config str
Application log configuration, deprecated parameter.
application_name str
Application name.
application_resource_type str
Application resource type, deprecated parameter.
application_runtime_type str
Application runtime type.
application_type str
Application type: V for virtual machine, C for container, S for serverless.
ignore_create_image_repository bool
Ignore creating image repository.
microservice_type str
Application microservice type: M for service mesh, N for normal application, G for gateway application.
program_id str
ID of the dataset to be bound.
program_id_lists Sequence[str]
N/A.
service_config_lists Sequence[TsfApplicationServiceConfigListArgs]
List of service configuration information.
tsf_application_id str
ID of the resource.
applicationDesc String
Application description.
applicationLogConfig String
Application log configuration, deprecated parameter.
applicationName String
Application name.
applicationResourceType String
Application resource type, deprecated parameter.
applicationRuntimeType String
Application runtime type.
applicationType String
Application type: V for virtual machine, C for container, S for serverless.
ignoreCreateImageRepository Boolean
Ignore creating image repository.
microserviceType String
Application microservice type: M for service mesh, N for normal application, G for gateway application.
programId String
ID of the dataset to be bound.
programIdLists List<String>
N/A.
serviceConfigLists List<Property Map>
List of service configuration information.
tsfApplicationId String
ID of the resource.

Supporting Types

TsfApplicationServiceConfigList
, TsfApplicationServiceConfigListArgs

Name This property is required. string
Service name.
Ports This property is required. List<TsfApplicationServiceConfigListPort>
List of port information.
HealthCheck TsfApplicationServiceConfigListHealthCheck
Health check configuration.
Name This property is required. string
Service name.
Ports This property is required. []TsfApplicationServiceConfigListPort
List of port information.
HealthCheck TsfApplicationServiceConfigListHealthCheck
Health check configuration.
name This property is required. String
Service name.
ports This property is required. List<TsfApplicationServiceConfigListPort>
List of port information.
healthCheck TsfApplicationServiceConfigListHealthCheck
Health check configuration.
name This property is required. string
Service name.
ports This property is required. TsfApplicationServiceConfigListPort[]
List of port information.
healthCheck TsfApplicationServiceConfigListHealthCheck
Health check configuration.
name This property is required. str
Service name.
ports This property is required. Sequence[TsfApplicationServiceConfigListPort]
List of port information.
health_check TsfApplicationServiceConfigListHealthCheck
Health check configuration.
name This property is required. String
Service name.
ports This property is required. List<Property Map>
List of port information.
healthCheck Property Map
Health check configuration.

TsfApplicationServiceConfigListHealthCheck
, TsfApplicationServiceConfigListHealthCheckArgs

Path string
Health check path.
Path string
Health check path.
path String
Health check path.
path string
Health check path.
path str
Health check path.
path String
Health check path.

TsfApplicationServiceConfigListPort
, TsfApplicationServiceConfigListPortArgs

Protocol This property is required. string
Port protocol.
TargetPort This property is required. double
Service port.
Protocol This property is required. string
Port protocol.
TargetPort This property is required. float64
Service port.
protocol This property is required. String
Port protocol.
targetPort This property is required. Double
Service port.
protocol This property is required. string
Port protocol.
targetPort This property is required. number
Service port.
protocol This property is required. str
Port protocol.
target_port This property is required. float
Service port.
protocol This property is required. String
Port protocol.
targetPort This property is required. Number
Service port.

Package Details

Repository
tencentcloud tencentcloudstack/terraform-provider-tencentcloud
License
Notes
This Pulumi package is based on the tencentcloud Terraform Provider.