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

tencentcloud.SubscribePrivateZoneService

Explore with Pulumi AI

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

    Provides a resource to create a privatedns subscribe private zone service

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.SubscribePrivateZoneService("example", {});
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.SubscribePrivateZoneService("example")
    
    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.NewSubscribePrivateZoneService(ctx, "example", nil)
    		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 example = new Tencentcloud.SubscribePrivateZoneService("example");
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.SubscribePrivateZoneService;
    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 example = new SubscribePrivateZoneService("example");
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:SubscribePrivateZoneService
    

    Create SubscribePrivateZoneService Resource

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

    Constructor syntax

    new SubscribePrivateZoneService(name: string, args?: SubscribePrivateZoneServiceArgs, opts?: CustomResourceOptions);
    @overload
    def SubscribePrivateZoneService(resource_name: str,
                                    args: Optional[SubscribePrivateZoneServiceArgs] = None,
                                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def SubscribePrivateZoneService(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    subscribe_private_zone_service_id: Optional[str] = None)
    func NewSubscribePrivateZoneService(ctx *Context, name string, args *SubscribePrivateZoneServiceArgs, opts ...ResourceOption) (*SubscribePrivateZoneService, error)
    public SubscribePrivateZoneService(string name, SubscribePrivateZoneServiceArgs? args = null, CustomResourceOptions? opts = null)
    public SubscribePrivateZoneService(String name, SubscribePrivateZoneServiceArgs args)
    public SubscribePrivateZoneService(String name, SubscribePrivateZoneServiceArgs args, CustomResourceOptions options)
    
    type: tencentcloud:SubscribePrivateZoneService
    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 SubscribePrivateZoneServiceArgs
    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 SubscribePrivateZoneServiceArgs
    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 SubscribePrivateZoneServiceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SubscribePrivateZoneServiceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SubscribePrivateZoneServiceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    SubscribePrivateZoneServiceId string
    ID of the resource.
    SubscribePrivateZoneServiceId string
    ID of the resource.
    subscribePrivateZoneServiceId String
    ID of the resource.
    subscribePrivateZoneServiceId string
    ID of the resource.
    subscribe_private_zone_service_id str
    ID of the resource.
    subscribePrivateZoneServiceId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SubscribePrivateZoneService resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceStatus string
    Private domain resolution service activation status.
    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceStatus string
    Private domain resolution service activation status.
    id String
    The provider-assigned unique ID for this managed resource.
    serviceStatus String
    Private domain resolution service activation status.
    id string
    The provider-assigned unique ID for this managed resource.
    serviceStatus string
    Private domain resolution service activation status.
    id str
    The provider-assigned unique ID for this managed resource.
    service_status str
    Private domain resolution service activation status.
    id String
    The provider-assigned unique ID for this managed resource.
    serviceStatus String
    Private domain resolution service activation status.

    Look up Existing SubscribePrivateZoneService Resource

    Get an existing SubscribePrivateZoneService 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?: SubscribePrivateZoneServiceState, opts?: CustomResourceOptions): SubscribePrivateZoneService
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            service_status: Optional[str] = None,
            subscribe_private_zone_service_id: Optional[str] = None) -> SubscribePrivateZoneService
    func GetSubscribePrivateZoneService(ctx *Context, name string, id IDInput, state *SubscribePrivateZoneServiceState, opts ...ResourceOption) (*SubscribePrivateZoneService, error)
    public static SubscribePrivateZoneService Get(string name, Input<string> id, SubscribePrivateZoneServiceState? state, CustomResourceOptions? opts = null)
    public static SubscribePrivateZoneService get(String name, Output<String> id, SubscribePrivateZoneServiceState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:SubscribePrivateZoneService    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:
    ServiceStatus string
    Private domain resolution service activation status.
    SubscribePrivateZoneServiceId string
    ID of the resource.
    ServiceStatus string
    Private domain resolution service activation status.
    SubscribePrivateZoneServiceId string
    ID of the resource.
    serviceStatus String
    Private domain resolution service activation status.
    subscribePrivateZoneServiceId String
    ID of the resource.
    serviceStatus string
    Private domain resolution service activation status.
    subscribePrivateZoneServiceId string
    ID of the resource.
    service_status str
    Private domain resolution service activation status.
    subscribe_private_zone_service_id str
    ID of the resource.
    serviceStatus String
    Private domain resolution service activation status.
    subscribePrivateZoneServiceId String
    ID of the resource.

    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