tencentcloud.TemApplication
Explore with Pulumi AI
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:
- Application
Name string - application name.
- Coding
Language string - program language, like JAVA.
- Description string
- application description.
- Instance
Id string - tcr instance id.
- Repo
Name string - repository name.
- Repo
Server string - registry address.
- Repo
Type double - repo type, 0: tcr personal, 1: tcr enterprise, 2: public repository, 3: tcr hosted by tem, 4: demo image.
- Dictionary<string, string>
- application tag list.
- Tem
Application stringId - ID of the resource.
- Use
Default doubleImage Service - create image repo or not.
- Application
Name string - application name.
- Coding
Language string - program language, like JAVA.
- Description string
- application description.
- Instance
Id string - tcr instance id.
- Repo
Name string - repository name.
- Repo
Server string - registry address.
- Repo
Type float64 - repo type, 0: tcr personal, 1: tcr enterprise, 2: public repository, 3: tcr hosted by tem, 4: demo image.
- map[string]string
- application tag list.
- Tem
Application stringId - ID of the resource.
- Use
Default float64Image Service - create image repo or not.
- application
Name String - application name.
- coding
Language String - program language, like JAVA.
- description String
- application description.
- instance
Id String - tcr instance id.
- repo
Name String - repository name.
- repo
Server String - registry address.
- repo
Type Double - repo type, 0: tcr personal, 1: tcr enterprise, 2: public repository, 3: tcr hosted by tem, 4: demo image.
- Map<String,String>
- application tag list.
- tem
Application StringId - ID of the resource.
- use
Default DoubleImage Service - create image repo or not.
- application
Name string - application name.
- coding
Language string - program language, like JAVA.
- description string
- application description.
- instance
Id string - tcr instance id.
- repo
Name string - repository name.
- repo
Server string - registry address.
- repo
Type number - repo type, 0: tcr personal, 1: tcr enterprise, 2: public repository, 3: tcr hosted by tem, 4: demo image.
- {[key: string]: string}
- application tag list.
- tem
Application stringId - ID of the resource.
- use
Default numberImage Service - 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.
- Mapping[str, str]
- application tag list.
- tem_
application_ strid - ID of the resource.
- use_
default_ floatimage_ service - create image repo or not.
- application
Name String - application name.
- coding
Language String - program language, like JAVA.
- description String
- application description.
- instance
Id String - tcr instance id.
- repo
Name String - repository name.
- repo
Server String - registry address.
- repo
Type Number - repo type, 0: tcr personal, 1: tcr enterprise, 2: public repository, 3: tcr hosted by tem, 4: demo image.
- Map<String>
- application tag list.
- tem
Application StringId - ID of the resource.
- use
Default NumberImage Service - 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.
- Application
Name string - application name.
- Coding
Language string - program language, like JAVA.
- Description string
- application description.
- Instance
Id string - tcr instance id.
- Repo
Name string - repository name.
- Repo
Server string - registry address.
- Repo
Type double - repo type, 0: tcr personal, 1: tcr enterprise, 2: public repository, 3: tcr hosted by tem, 4: demo image.
- Dictionary<string, string>
- application tag list.
- Tem
Application stringId - ID of the resource.
- Use
Default doubleImage Service - create image repo or not.
- Application
Name string - application name.
- Coding
Language string - program language, like JAVA.
- Description string
- application description.
- Instance
Id string - tcr instance id.
- Repo
Name string - repository name.
- Repo
Server string - registry address.
- Repo
Type float64 - repo type, 0: tcr personal, 1: tcr enterprise, 2: public repository, 3: tcr hosted by tem, 4: demo image.
- map[string]string
- application tag list.
- Tem
Application stringId - ID of the resource.
- Use
Default float64Image Service - create image repo or not.
- application
Name String - application name.
- coding
Language String - program language, like JAVA.
- description String
- application description.
- instance
Id String - tcr instance id.
- repo
Name String - repository name.
- repo
Server String - registry address.
- repo
Type Double - repo type, 0: tcr personal, 1: tcr enterprise, 2: public repository, 3: tcr hosted by tem, 4: demo image.
- Map<String,String>
- application tag list.
- tem
Application StringId - ID of the resource.
- use
Default DoubleImage Service - create image repo or not.
- application
Name string - application name.
- coding
Language string - program language, like JAVA.
- description string
- application description.
- instance
Id string - tcr instance id.
- repo
Name string - repository name.
- repo
Server string - registry address.
- repo
Type number - repo type, 0: tcr personal, 1: tcr enterprise, 2: public repository, 3: tcr hosted by tem, 4: demo image.
- {[key: string]: string}
- application tag list.
- tem
Application stringId - ID of the resource.
- use
Default numberImage Service - 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.
- Mapping[str, str]
- application tag list.
- tem_
application_ strid - ID of the resource.
- use_
default_ floatimage_ service - create image repo or not.
- application
Name String - application name.
- coding
Language String - program language, like JAVA.
- description String
- application description.
- instance
Id String - tcr instance id.
- repo
Name String - repository name.
- repo
Server String - registry address.
- repo
Type Number - repo type, 0: tcr personal, 1: tcr enterprise, 2: public repository, 3: tcr hosted by tem, 4: demo image.
- Map<String>
- application tag list.
- tem
Application StringId - ID of the resource.
- use
Default NumberImage Service - 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.