tencentcloud.TcrCustomizedDomain
Explore with Pulumi AI
Provides a resource to create a tcr customized domain
Example Usage
Create a tcr customized domain
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const exampleTcrInstance = new tencentcloud.TcrInstance("exampleTcrInstance", {
instanceType: "premium",
tags: {
createdBy: "Terraform",
},
});
const exampleTcrCustomizedDomain = new tencentcloud.TcrCustomizedDomain("exampleTcrCustomizedDomain", {
registryId: exampleTcrInstance.tcrInstanceId,
domainName: "www.demo.com",
certificateId: "your_cert_id",
tags: {
createdBy: "Terraform",
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example_tcr_instance = tencentcloud.TcrInstance("exampleTcrInstance",
instance_type="premium",
tags={
"createdBy": "Terraform",
})
example_tcr_customized_domain = tencentcloud.TcrCustomizedDomain("exampleTcrCustomizedDomain",
registry_id=example_tcr_instance.tcr_instance_id,
domain_name="www.demo.com",
certificate_id="your_cert_id",
tags={
"createdBy": "Terraform",
})
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 {
exampleTcrInstance, err := tencentcloud.NewTcrInstance(ctx, "exampleTcrInstance", &tencentcloud.TcrInstanceArgs{
InstanceType: pulumi.String("premium"),
Tags: pulumi.StringMap{
"createdBy": pulumi.String("Terraform"),
},
})
if err != nil {
return err
}
_, err = tencentcloud.NewTcrCustomizedDomain(ctx, "exampleTcrCustomizedDomain", &tencentcloud.TcrCustomizedDomainArgs{
RegistryId: exampleTcrInstance.TcrInstanceId,
DomainName: pulumi.String("www.demo.com"),
CertificateId: pulumi.String("your_cert_id"),
Tags: pulumi.StringMap{
"createdBy": pulumi.String("Terraform"),
},
})
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 exampleTcrInstance = new Tencentcloud.TcrInstance("exampleTcrInstance", new()
{
InstanceType = "premium",
Tags =
{
{ "createdBy", "Terraform" },
},
});
var exampleTcrCustomizedDomain = new Tencentcloud.TcrCustomizedDomain("exampleTcrCustomizedDomain", new()
{
RegistryId = exampleTcrInstance.TcrInstanceId,
DomainName = "www.demo.com",
CertificateId = "your_cert_id",
Tags =
{
{ "createdBy", "Terraform" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TcrInstance;
import com.pulumi.tencentcloud.TcrInstanceArgs;
import com.pulumi.tencentcloud.TcrCustomizedDomain;
import com.pulumi.tencentcloud.TcrCustomizedDomainArgs;
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 exampleTcrInstance = new TcrInstance("exampleTcrInstance", TcrInstanceArgs.builder()
.instanceType("premium")
.tags(Map.of("createdBy", "Terraform"))
.build());
var exampleTcrCustomizedDomain = new TcrCustomizedDomain("exampleTcrCustomizedDomain", TcrCustomizedDomainArgs.builder()
.registryId(exampleTcrInstance.tcrInstanceId())
.domainName("www.demo.com")
.certificateId("your_cert_id")
.tags(Map.of("createdBy", "Terraform"))
.build());
}
}
resources:
exampleTcrInstance:
type: tencentcloud:TcrInstance
properties:
instanceType: premium
tags:
createdBy: Terraform
exampleTcrCustomizedDomain:
type: tencentcloud:TcrCustomizedDomain
properties:
registryId: ${exampleTcrInstance.tcrInstanceId}
domainName: www.demo.com
certificateId: your_cert_id
tags:
createdBy: Terraform
Create TcrCustomizedDomain Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TcrCustomizedDomain(name: string, args: TcrCustomizedDomainArgs, opts?: CustomResourceOptions);
@overload
def TcrCustomizedDomain(resource_name: str,
args: TcrCustomizedDomainArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TcrCustomizedDomain(resource_name: str,
opts: Optional[ResourceOptions] = None,
certificate_id: Optional[str] = None,
domain_name: Optional[str] = None,
registry_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tcr_customized_domain_id: Optional[str] = None)
func NewTcrCustomizedDomain(ctx *Context, name string, args TcrCustomizedDomainArgs, opts ...ResourceOption) (*TcrCustomizedDomain, error)
public TcrCustomizedDomain(string name, TcrCustomizedDomainArgs args, CustomResourceOptions? opts = null)
public TcrCustomizedDomain(String name, TcrCustomizedDomainArgs args)
public TcrCustomizedDomain(String name, TcrCustomizedDomainArgs args, CustomResourceOptions options)
type: tencentcloud:TcrCustomizedDomain
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 TcrCustomizedDomainArgs
- 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 TcrCustomizedDomainArgs
- 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 TcrCustomizedDomainArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TcrCustomizedDomainArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TcrCustomizedDomainArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
TcrCustomizedDomain 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 TcrCustomizedDomain resource accepts the following input properties:
- Certificate
Id string - certificate id.
- Domain
Name string - custom domain name.
- Registry
Id string - instance id.
- Dictionary<string, string>
- Tag description list.
- Tcr
Customized stringDomain Id - ID of the resource.
- Certificate
Id string - certificate id.
- Domain
Name string - custom domain name.
- Registry
Id string - instance id.
- map[string]string
- Tag description list.
- Tcr
Customized stringDomain Id - ID of the resource.
- certificate
Id String - certificate id.
- domain
Name String - custom domain name.
- registry
Id String - instance id.
- Map<String,String>
- Tag description list.
- tcr
Customized StringDomain Id - ID of the resource.
- certificate
Id string - certificate id.
- domain
Name string - custom domain name.
- registry
Id string - instance id.
- {[key: string]: string}
- Tag description list.
- tcr
Customized stringDomain Id - ID of the resource.
- certificate_
id str - certificate id.
- domain_
name str - custom domain name.
- registry_
id str - instance id.
- Mapping[str, str]
- Tag description list.
- tcr_
customized_ strdomain_ id - ID of the resource.
- certificate
Id String - certificate id.
- domain
Name String - custom domain name.
- registry
Id String - instance id.
- Map<String>
- Tag description list.
- tcr
Customized StringDomain Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the TcrCustomizedDomain 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 TcrCustomizedDomain Resource
Get an existing TcrCustomizedDomain 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?: TcrCustomizedDomainState, opts?: CustomResourceOptions): TcrCustomizedDomain
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
certificate_id: Optional[str] = None,
domain_name: Optional[str] = None,
registry_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tcr_customized_domain_id: Optional[str] = None) -> TcrCustomizedDomain
func GetTcrCustomizedDomain(ctx *Context, name string, id IDInput, state *TcrCustomizedDomainState, opts ...ResourceOption) (*TcrCustomizedDomain, error)
public static TcrCustomizedDomain Get(string name, Input<string> id, TcrCustomizedDomainState? state, CustomResourceOptions? opts = null)
public static TcrCustomizedDomain get(String name, Output<String> id, TcrCustomizedDomainState state, CustomResourceOptions options)
resources: _: type: tencentcloud:TcrCustomizedDomain 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.
- Certificate
Id string - certificate id.
- Domain
Name string - custom domain name.
- Registry
Id string - instance id.
- Dictionary<string, string>
- Tag description list.
- Tcr
Customized stringDomain Id - ID of the resource.
- Certificate
Id string - certificate id.
- Domain
Name string - custom domain name.
- Registry
Id string - instance id.
- map[string]string
- Tag description list.
- Tcr
Customized stringDomain Id - ID of the resource.
- certificate
Id String - certificate id.
- domain
Name String - custom domain name.
- registry
Id String - instance id.
- Map<String,String>
- Tag description list.
- tcr
Customized StringDomain Id - ID of the resource.
- certificate
Id string - certificate id.
- domain
Name string - custom domain name.
- registry
Id string - instance id.
- {[key: string]: string}
- Tag description list.
- tcr
Customized stringDomain Id - ID of the resource.
- certificate_
id str - certificate id.
- domain_
name str - custom domain name.
- registry_
id str - instance id.
- Mapping[str, str]
- Tag description list.
- tcr_
customized_ strdomain_ id - ID of the resource.
- certificate
Id String - certificate id.
- domain
Name String - custom domain name.
- registry
Id String - instance id.
- Map<String>
- Tag description list.
- tcr
Customized StringDomain Id - ID of the resource.
Import
tcr customized domain can be imported using the id, e.g.
$ pulumi import tencentcloud:index/tcrCustomizedDomain:TcrCustomizedDomain example tcr-fjvvsfdh#www.demo.com
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.