1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. TemApplication
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.TemApplication

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a tem application

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const application = new tencentcloud.TemApplication("application", {
        applicationName: "demo",
        codingLanguage: "JAVA",
        description: "demo for test",
        repoName: "qcloud/nginx",
        repoServer: "ccr.ccs.tencentyun.com",
        repoType: 2,
        tags: {
            created: "terraform",
        },
        useDefaultImageService: 0,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    application = tencentcloud.TemApplication("application",
        application_name="demo",
        coding_language="JAVA",
        description="demo for test",
        repo_name="qcloud/nginx",
        repo_server="ccr.ccs.tencentyun.com",
        repo_type=2,
        tags={
            "created": "terraform",
        },
        use_default_image_service=0)
    
    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.NewTemApplication(ctx, "application", &tencentcloud.TemApplicationArgs{
    			ApplicationName: pulumi.String("demo"),
    			CodingLanguage:  pulumi.String("JAVA"),
    			Description:     pulumi.String("demo for test"),
    			RepoName:        pulumi.String("qcloud/nginx"),
    			RepoServer:      pulumi.String("ccr.ccs.tencentyun.com"),
    			RepoType:        pulumi.Float64(2),
    			Tags: pulumi.StringMap{
    				"created": pulumi.String("terraform"),
    			},
    			UseDefaultImageService: pulumi.Float64(0),
    		})
    		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.TemApplication("application", new()
        {
            ApplicationName = "demo",
            CodingLanguage = "JAVA",
            Description = "demo for test",
            RepoName = "qcloud/nginx",
            RepoServer = "ccr.ccs.tencentyun.com",
            RepoType = 2,
            Tags = 
            {
                { "created", "terraform" },
            },
            UseDefaultImageService = 0,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TemApplication;
    import com.pulumi.tencentcloud.TemApplicationArgs;
    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 TemApplication("application", TemApplicationArgs.builder()
                .applicationName("demo")
                .codingLanguage("JAVA")
                .description("demo for test")
                .repoName("qcloud/nginx")
                .repoServer("ccr.ccs.tencentyun.com")
                .repoType(2)
                .tags(Map.of("created", "terraform"))
                .useDefaultImageService(0)
                .build());
    
        }
    }
    
    resources:
      application:
        type: tencentcloud:TemApplication
        properties:
          applicationName: demo
          codingLanguage: JAVA
          description: demo for test
          repoName: qcloud/nginx
          repoServer: ccr.ccs.tencentyun.com
          repoType: 2
          tags:
            created: terraform
          useDefaultImageService: 0
    

    Create TemApplication Resource

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

    Constructor syntax

    new TemApplication(name: string, args: TemApplicationArgs, opts?: CustomResourceOptions);
    @overload
    def TemApplication(resource_name: str,
                       args: TemApplicationArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def TemApplication(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       application_name: Optional[str] = None,
                       coding_language: Optional[str] = None,
                       description: Optional[str] = None,
                       instance_id: Optional[str] = None,
                       repo_name: Optional[str] = None,
                       repo_server: Optional[str] = None,
                       repo_type: Optional[float] = None,
                       tags: Optional[Mapping[str, str]] = None,
                       tem_application_id: Optional[str] = None,
                       use_default_image_service: Optional[float] = None)
    func NewTemApplication(ctx *Context, name string, args TemApplicationArgs, opts ...ResourceOption) (*TemApplication, error)
    public TemApplication(string name, TemApplicationArgs args, CustomResourceOptions? opts = null)
    public TemApplication(String name, TemApplicationArgs args)
    public TemApplication(String name, TemApplicationArgs args, CustomResourceOptions options)
    
    type: tencentcloud:TemApplication
    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 TemApplicationArgs
    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 TemApplicationArgs
    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 TemApplicationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TemApplicationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TemApplicationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    ApplicationName string
    application name.
    CodingLanguage string
    program language, like JAVA.
    Description string
    application description.
    InstanceId string
    tcr instance id.
    RepoName string
    repository name.
    RepoServer string
    registry address.
    RepoType double
    repo type, 0: tcr personal, 1: tcr enterprise, 2: public repository, 3: tcr hosted by tem, 4: demo image.
    Tags Dictionary<string, string>
    application tag list.
    TemApplicationId string
    ID of the resource.
    UseDefaultImageService double
    create image repo or not.
    ApplicationName string
    application name.
    CodingLanguage string
    program language, like JAVA.
    Description string
    application description.
    InstanceId string
    tcr instance id.
    RepoName string
    repository name.
    RepoServer string
    registry address.
    RepoType float64
    repo type, 0: tcr personal, 1: tcr enterprise, 2: public repository, 3: tcr hosted by tem, 4: demo image.
    Tags map[string]string
    application tag list.
    TemApplicationId string
    ID of the resource.
    UseDefaultImageService float64
    create image repo or not.
    applicationName String
    application name.
    codingLanguage String
    program language, like JAVA.
    description String
    application description.
    instanceId String
    tcr instance id.
    repoName String
    repository name.
    repoServer String
    registry address.
    repoType Double
    repo type, 0: tcr personal, 1: tcr enterprise, 2: public repository, 3: tcr hosted by tem, 4: demo image.
    tags Map<String,String>
    application tag list.
    temApplicationId String
    ID of the resource.
    useDefaultImageService Double
    create image repo or not.
    applicationName string
    application name.
    codingLanguage string
    program language, like JAVA.
    description string
    application description.
    instanceId string
    tcr instance id.
    repoName string
    repository name.
    repoServer string
    registry address.
    repoType number
    repo type, 0: tcr personal, 1: tcr enterprise, 2: public repository, 3: tcr hosted by tem, 4: demo image.
    tags {[key: string]: string}
    application tag list.
    temApplicationId string
    ID of the resource.
    useDefaultImageService number
    create image repo or not.
    application_name str
    application name.
    coding_language str
    program language, like JAVA.
    description str
    application description.
    instance_id str
    tcr instance id.
    repo_name str
    repository name.
    repo_server str
    registry address.
    repo_type float
    repo type, 0: tcr personal, 1: tcr enterprise, 2: public repository, 3: tcr hosted by tem, 4: demo image.
    tags Mapping[str, str]
    application tag list.
    tem_application_id str
    ID of the resource.
    use_default_image_service float
    create image repo or not.
    applicationName String
    application name.
    codingLanguage String
    program language, like JAVA.
    description String
    application description.
    instanceId String
    tcr instance id.
    repoName String
    repository name.
    repoServer String
    registry address.
    repoType Number
    repo type, 0: tcr personal, 1: tcr enterprise, 2: public repository, 3: tcr hosted by tem, 4: demo image.
    tags Map<String>
    application tag list.
    temApplicationId String
    ID of the resource.
    useDefaultImageService Number
    create image repo or not.

    Outputs

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

    Get an existing TemApplication 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?: TemApplicationState, opts?: CustomResourceOptions): TemApplication
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            application_name: Optional[str] = None,
            coding_language: Optional[str] = None,
            description: Optional[str] = None,
            instance_id: Optional[str] = None,
            repo_name: Optional[str] = None,
            repo_server: Optional[str] = None,
            repo_type: Optional[float] = None,
            tags: Optional[Mapping[str, str]] = None,
            tem_application_id: Optional[str] = None,
            use_default_image_service: Optional[float] = None) -> TemApplication
    func GetTemApplication(ctx *Context, name string, id IDInput, state *TemApplicationState, opts ...ResourceOption) (*TemApplication, error)
    public static TemApplication Get(string name, Input<string> id, TemApplicationState? state, CustomResourceOptions? opts = null)
    public static TemApplication get(String name, Output<String> id, TemApplicationState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:TemApplication    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:
    ApplicationName string
    application name.
    CodingLanguage string
    program language, like JAVA.
    Description string
    application description.
    InstanceId string
    tcr instance id.
    RepoName string
    repository name.
    RepoServer string
    registry address.
    RepoType double
    repo type, 0: tcr personal, 1: tcr enterprise, 2: public repository, 3: tcr hosted by tem, 4: demo image.
    Tags Dictionary<string, string>
    application tag list.
    TemApplicationId string
    ID of the resource.
    UseDefaultImageService double
    create image repo or not.
    ApplicationName string
    application name.
    CodingLanguage string
    program language, like JAVA.
    Description string
    application description.
    InstanceId string
    tcr instance id.
    RepoName string
    repository name.
    RepoServer string
    registry address.
    RepoType float64
    repo type, 0: tcr personal, 1: tcr enterprise, 2: public repository, 3: tcr hosted by tem, 4: demo image.
    Tags map[string]string
    application tag list.
    TemApplicationId string
    ID of the resource.
    UseDefaultImageService float64
    create image repo or not.
    applicationName String
    application name.
    codingLanguage String
    program language, like JAVA.
    description String
    application description.
    instanceId String
    tcr instance id.
    repoName String
    repository name.
    repoServer String
    registry address.
    repoType Double
    repo type, 0: tcr personal, 1: tcr enterprise, 2: public repository, 3: tcr hosted by tem, 4: demo image.
    tags Map<String,String>
    application tag list.
    temApplicationId String
    ID of the resource.
    useDefaultImageService Double
    create image repo or not.
    applicationName string
    application name.
    codingLanguage string
    program language, like JAVA.
    description string
    application description.
    instanceId string
    tcr instance id.
    repoName string
    repository name.
    repoServer string
    registry address.
    repoType number
    repo type, 0: tcr personal, 1: tcr enterprise, 2: public repository, 3: tcr hosted by tem, 4: demo image.
    tags {[key: string]: string}
    application tag list.
    temApplicationId string
    ID of the resource.
    useDefaultImageService number
    create image repo or not.
    application_name str
    application name.
    coding_language str
    program language, like JAVA.
    description str
    application description.
    instance_id str
    tcr instance id.
    repo_name str
    repository name.
    repo_server str
    registry address.
    repo_type float
    repo type, 0: tcr personal, 1: tcr enterprise, 2: public repository, 3: tcr hosted by tem, 4: demo image.
    tags Mapping[str, str]
    application tag list.
    tem_application_id str
    ID of the resource.
    use_default_image_service float
    create image repo or not.
    applicationName String
    application name.
    codingLanguage String
    program language, like JAVA.
    description String
    application description.
    instanceId String
    tcr instance id.
    repoName String
    repository name.
    repoServer String
    registry address.
    repoType Number
    repo type, 0: tcr personal, 1: tcr enterprise, 2: public repository, 3: tcr hosted by tem, 4: demo image.
    tags Map<String>
    application tag list.
    temApplicationId String
    ID of the resource.
    useDefaultImageService Number
    create image repo or not.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack