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,
}],
}],
});
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,
}],
}])
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
})
}
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,
},
},
},
},
});
});
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());
}
}
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
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 string
- The unique name of the resource.
- args TsfApplicationArgs
- 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 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 string
- The unique name of the resource.
- args TsfApplicationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TsfApplicationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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:
- Application
Name string - Application name.
- Application
Type string - Application type: V for virtual machine, C for container, S for serverless.
- Microservice
Type string - Application microservice type: M for service mesh, N for normal application, G for gateway application.
- Application
Desc string - Application description.
- Application
Log stringConfig - Application log configuration, deprecated parameter.
- Application
Resource stringType - Application resource type, deprecated parameter.
- Application
Runtime stringType - Application runtime type.
- Ignore
Create boolImage Repository - Ignore creating image repository.
- Program
Id string - ID of the dataset to be bound.
- Program
Id List<string>Lists - N/A.
- Service
Config List<TsfLists Application Service Config List> - List of service configuration information.
- Tsf
Application stringId - ID of the resource.
- Application
Name string - Application name.
- Application
Type string - Application type: V for virtual machine, C for container, S for serverless.
- Microservice
Type string - Application microservice type: M for service mesh, N for normal application, G for gateway application.
- Application
Desc string - Application description.
- Application
Log stringConfig - Application log configuration, deprecated parameter.
- Application
Resource stringType - Application resource type, deprecated parameter.
- Application
Runtime stringType - Application runtime type.
- Ignore
Create boolImage Repository - Ignore creating image repository.
- Program
Id string - ID of the dataset to be bound.
- Program
Id []stringLists - N/A.
- Service
Config []TsfLists Application Service Config List Args - List of service configuration information.
- Tsf
Application stringId - ID of the resource.
- application
Name String - Application name.
- application
Type String - Application type: V for virtual machine, C for container, S for serverless.
- microservice
Type String - Application microservice type: M for service mesh, N for normal application, G for gateway application.
- application
Desc String - Application description.
- application
Log StringConfig - Application log configuration, deprecated parameter.
- application
Resource StringType - Application resource type, deprecated parameter.
- application
Runtime StringType - Application runtime type.
- ignore
Create BooleanImage Repository - Ignore creating image repository.
- program
Id String - ID of the dataset to be bound.
- program
Id List<String>Lists - N/A.
- service
Config List<TsfLists Application Service Config List> - List of service configuration information.
- tsf
Application StringId - ID of the resource.
- application
Name string - Application name.
- application
Type string - Application type: V for virtual machine, C for container, S for serverless.
- microservice
Type string - Application microservice type: M for service mesh, N for normal application, G for gateway application.
- application
Desc string - Application description.
- application
Log stringConfig - Application log configuration, deprecated parameter.
- application
Resource stringType - Application resource type, deprecated parameter.
- application
Runtime stringType - Application runtime type.
- ignore
Create booleanImage Repository - Ignore creating image repository.
- program
Id string - ID of the dataset to be bound.
- program
Id string[]Lists - N/A.
- service
Config TsfLists Application Service Config List[] - List of service configuration information.
- tsf
Application stringId - ID of the resource.
- application_
name str - Application name.
- application_
type str - Application type: V for virtual machine, C for container, S for serverless.
- microservice_
type str - Application microservice type: M for service mesh, N for normal application, G for gateway application.
- application_
desc str - Application description.
- application_
log_ strconfig - Application log configuration, deprecated parameter.
- application_
resource_ strtype - Application resource type, deprecated parameter.
- application_
runtime_ strtype - Application runtime type.
- ignore_
create_ boolimage_ repository - Ignore creating image repository.
- program_
id str - ID of the dataset to be bound.
- program_
id_ Sequence[str]lists - N/A.
- service_
config_ Sequence[Tsflists Application Service Config List Args] - List of service configuration information.
- tsf_
application_ strid - ID of the resource.
- application
Name String - Application name.
- application
Type String - Application type: V for virtual machine, C for container, S for serverless.
- microservice
Type String - Application microservice type: M for service mesh, N for normal application, G for gateway application.
- application
Desc String - Application description.
- application
Log StringConfig - Application log configuration, deprecated parameter.
- application
Resource StringType - Application resource type, deprecated parameter.
- application
Runtime StringType - Application runtime type.
- ignore
Create BooleanImage Repository - Ignore creating image repository.
- program
Id String - ID of the dataset to be bound.
- program
Id List<String>Lists - N/A.
- service
Config List<Property Map>Lists - List of service configuration information.
- tsf
Application StringId - 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
- 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.
- Application
Desc string - Application description.
- Application
Log stringConfig - Application log configuration, deprecated parameter.
- Application
Name string - Application name.
- Application
Resource stringType - Application resource type, deprecated parameter.
- Application
Runtime stringType - Application runtime type.
- Application
Type string - Application type: V for virtual machine, C for container, S for serverless.
- Ignore
Create boolImage Repository - Ignore creating image repository.
- Microservice
Type string - Application microservice type: M for service mesh, N for normal application, G for gateway application.
- Program
Id string - ID of the dataset to be bound.
- Program
Id List<string>Lists - N/A.
- Service
Config List<TsfLists Application Service Config List> - List of service configuration information.
- Tsf
Application stringId - ID of the resource.
- Application
Desc string - Application description.
- Application
Log stringConfig - Application log configuration, deprecated parameter.
- Application
Name string - Application name.
- Application
Resource stringType - Application resource type, deprecated parameter.
- Application
Runtime stringType - Application runtime type.
- Application
Type string - Application type: V for virtual machine, C for container, S for serverless.
- Ignore
Create boolImage Repository - Ignore creating image repository.
- Microservice
Type string - Application microservice type: M for service mesh, N for normal application, G for gateway application.
- Program
Id string - ID of the dataset to be bound.
- Program
Id []stringLists - N/A.
- Service
Config []TsfLists Application Service Config List Args - List of service configuration information.
- Tsf
Application stringId - ID of the resource.
- application
Desc String - Application description.
- application
Log StringConfig - Application log configuration, deprecated parameter.
- application
Name String - Application name.
- application
Resource StringType - Application resource type, deprecated parameter.
- application
Runtime StringType - Application runtime type.
- application
Type String - Application type: V for virtual machine, C for container, S for serverless.
- ignore
Create BooleanImage Repository - Ignore creating image repository.
- microservice
Type String - Application microservice type: M for service mesh, N for normal application, G for gateway application.
- program
Id String - ID of the dataset to be bound.
- program
Id List<String>Lists - N/A.
- service
Config List<TsfLists Application Service Config List> - List of service configuration information.
- tsf
Application StringId - ID of the resource.
- application
Desc string - Application description.
- application
Log stringConfig - Application log configuration, deprecated parameter.
- application
Name string - Application name.
- application
Resource stringType - Application resource type, deprecated parameter.
- application
Runtime stringType - Application runtime type.
- application
Type string - Application type: V for virtual machine, C for container, S for serverless.
- ignore
Create booleanImage Repository - Ignore creating image repository.
- microservice
Type string - Application microservice type: M for service mesh, N for normal application, G for gateway application.
- program
Id string - ID of the dataset to be bound.
- program
Id string[]Lists - N/A.
- service
Config TsfLists Application Service Config List[] - List of service configuration information.
- tsf
Application stringId - ID of the resource.
- application_
desc str - Application description.
- application_
log_ strconfig - Application log configuration, deprecated parameter.
- application_
name str - Application name.
- application_
resource_ strtype - Application resource type, deprecated parameter.
- application_
runtime_ strtype - Application runtime type.
- application_
type str - Application type: V for virtual machine, C for container, S for serverless.
- ignore_
create_ boolimage_ repository - 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_ Sequence[str]lists - N/A.
- service_
config_ Sequence[Tsflists Application Service Config List Args] - List of service configuration information.
- tsf_
application_ strid - ID of the resource.
- application
Desc String - Application description.
- application
Log StringConfig - Application log configuration, deprecated parameter.
- application
Name String - Application name.
- application
Resource StringType - Application resource type, deprecated parameter.
- application
Runtime StringType - Application runtime type.
- application
Type String - Application type: V for virtual machine, C for container, S for serverless.
- ignore
Create BooleanImage Repository - Ignore creating image repository.
- microservice
Type String - Application microservice type: M for service mesh, N for normal application, G for gateway application.
- program
Id String - ID of the dataset to be bound.
- program
Id List<String>Lists - N/A.
- service
Config List<Property Map>Lists - List of service configuration information.
- tsf
Application StringId - ID of the resource.
Supporting Types
TsfApplicationServiceConfigList, TsfApplicationServiceConfigListArgs
- Name string
- Service name.
- Ports
List<Tsf
Application Service Config List Port> - List of port information.
- Health
Check TsfApplication Service Config List Health Check - Health check configuration.
- Name string
- Service name.
- Ports
[]Tsf
Application Service Config List Port - List of port information.
- Health
Check TsfApplication Service Config List Health Check - Health check configuration.
- name String
- Service name.
- ports
List<Tsf
Application Service Config List Port> - List of port information.
- health
Check TsfApplication Service Config List Health Check - Health check configuration.
- name string
- Service name.
- ports
Tsf
Application Service Config List Port[] - List of port information.
- health
Check TsfApplication Service Config List Health Check - Health check configuration.
- name str
- Service name.
- ports
Sequence[Tsf
Application Service Config List Port] - List of port information.
- health_
check TsfApplication Service Config List Health Check - Health check configuration.
- name String
- Service name.
- ports List<Property Map>
- List of port information.
- health
Check 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 string
- Port protocol.
- Target
Port double - Service port.
- Protocol string
- Port protocol.
- Target
Port float64 - Service port.
- protocol String
- Port protocol.
- target
Port Double - Service port.
- protocol string
- Port protocol.
- target
Port number - Service port.
- protocol str
- Port protocol.
- target_
port float - Service port.
- protocol String
- Port protocol.
- target
Port Number - Service port.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.