1. Packages
  2. Packages
  3. Tencentcloud Provider
  4. API Docs
  5. VodAigcApiToken
Viewing docs for tencentcloud 1.82.93
published on Monday, May 11, 2026 by tencentcloudstack
Viewing docs for tencentcloud 1.82.93
published on Monday, May 11, 2026 by tencentcloudstack

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.VodAigcApiToken("example", {subAppId: 251006666});
    export const aigcApiToken = example.apiToken;
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.VodAigcApiToken("example", sub_app_id=251006666)
    pulumi.export("aigcApiToken", example.api_token)
    
    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 {
    		example, err := tencentcloud.NewVodAigcApiToken(ctx, "example", &tencentcloud.VodAigcApiTokenArgs{
    			SubAppId: pulumi.Float64(251006666),
    		})
    		if err != nil {
    			return err
    		}
    		ctx.Export("aigcApiToken", example.ApiToken)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Tencentcloud.VodAigcApiToken("example", new()
        {
            SubAppId = 251006666,
        });
    
        return new Dictionary<string, object?>
        {
            ["aigcApiToken"] = example.ApiToken,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.VodAigcApiToken;
    import com.pulumi.tencentcloud.VodAigcApiTokenArgs;
    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 VodAigcApiToken("example", VodAigcApiTokenArgs.builder()
                .subAppId(251006666.0)
                .build());
    
            ctx.export("aigcApiToken", example.apiToken());
        }
    }
    
    resources:
      example:
        type: tencentcloud:VodAigcApiToken
        properties:
          subAppId: 2.51006666e+08
    outputs:
      aigcApiToken: ${example.apiToken}
    
    Example coming soon!
    

    Create VodAigcApiToken Resource

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

    Constructor syntax

    new VodAigcApiToken(name: string, args: VodAigcApiTokenArgs, opts?: CustomResourceOptions);
    @overload
    def VodAigcApiToken(resource_name: str,
                        args: VodAigcApiTokenArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def VodAigcApiToken(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        sub_app_id: Optional[float] = None,
                        api_token: Optional[str] = None,
                        vod_aigc_api_token_id: Optional[str] = None)
    func NewVodAigcApiToken(ctx *Context, name string, args VodAigcApiTokenArgs, opts ...ResourceOption) (*VodAigcApiToken, error)
    public VodAigcApiToken(string name, VodAigcApiTokenArgs args, CustomResourceOptions? opts = null)
    public VodAigcApiToken(String name, VodAigcApiTokenArgs args)
    public VodAigcApiToken(String name, VodAigcApiTokenArgs args, CustomResourceOptions options)
    
    type: tencentcloud:VodAigcApiToken
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "tencentcloud_vodaigcapitoken" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args VodAigcApiTokenArgs
    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 VodAigcApiTokenArgs
    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 VodAigcApiTokenArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VodAigcApiTokenArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VodAigcApiTokenArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    SubAppId double
    The VOD sub application ID. Users who activated VOD service after December 25, 2023 must specify the application ID.
    ApiToken string
    The AIGC API Token value generated by the cloud side. Sensitive value; stored in state in plain text. Optional during pulumi import to accept a pre-existing token, but SHOULD NOT be set in regular .tf configurations.
    VodAigcApiTokenId string
    ID of the resource.
    SubAppId float64
    The VOD sub application ID. Users who activated VOD service after December 25, 2023 must specify the application ID.
    ApiToken string
    The AIGC API Token value generated by the cloud side. Sensitive value; stored in state in plain text. Optional during pulumi import to accept a pre-existing token, but SHOULD NOT be set in regular .tf configurations.
    VodAigcApiTokenId string
    ID of the resource.
    sub_app_id number
    The VOD sub application ID. Users who activated VOD service after December 25, 2023 must specify the application ID.
    api_token string
    The AIGC API Token value generated by the cloud side. Sensitive value; stored in state in plain text. Optional during pulumi import to accept a pre-existing token, but SHOULD NOT be set in regular .tf configurations.
    vod_aigc_api_token_id string
    ID of the resource.
    subAppId Double
    The VOD sub application ID. Users who activated VOD service after December 25, 2023 must specify the application ID.
    apiToken String
    The AIGC API Token value generated by the cloud side. Sensitive value; stored in state in plain text. Optional during pulumi import to accept a pre-existing token, but SHOULD NOT be set in regular .tf configurations.
    vodAigcApiTokenId String
    ID of the resource.
    subAppId number
    The VOD sub application ID. Users who activated VOD service after December 25, 2023 must specify the application ID.
    apiToken string
    The AIGC API Token value generated by the cloud side. Sensitive value; stored in state in plain text. Optional during pulumi import to accept a pre-existing token, but SHOULD NOT be set in regular .tf configurations.
    vodAigcApiTokenId string
    ID of the resource.
    sub_app_id float
    The VOD sub application ID. Users who activated VOD service after December 25, 2023 must specify the application ID.
    api_token str
    The AIGC API Token value generated by the cloud side. Sensitive value; stored in state in plain text. Optional during pulumi import to accept a pre-existing token, but SHOULD NOT be set in regular .tf configurations.
    vod_aigc_api_token_id str
    ID of the resource.
    subAppId Number
    The VOD sub application ID. Users who activated VOD service after December 25, 2023 must specify the application ID.
    apiToken String
    The AIGC API Token value generated by the cloud side. Sensitive value; stored in state in plain text. Optional during pulumi import to accept a pre-existing token, but SHOULD NOT be set in regular .tf configurations.
    vodAigcApiTokenId String
    ID of the resource.

    Outputs

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

    Get an existing VodAigcApiToken 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?: VodAigcApiTokenState, opts?: CustomResourceOptions): VodAigcApiToken
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            api_token: Optional[str] = None,
            sub_app_id: Optional[float] = None,
            vod_aigc_api_token_id: Optional[str] = None) -> VodAigcApiToken
    func GetVodAigcApiToken(ctx *Context, name string, id IDInput, state *VodAigcApiTokenState, opts ...ResourceOption) (*VodAigcApiToken, error)
    public static VodAigcApiToken Get(string name, Input<string> id, VodAigcApiTokenState? state, CustomResourceOptions? opts = null)
    public static VodAigcApiToken get(String name, Output<String> id, VodAigcApiTokenState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:VodAigcApiToken    get:      id: ${id}
    import {
      to = tencentcloud_vodaigcapitoken.example
      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:
    ApiToken string
    The AIGC API Token value generated by the cloud side. Sensitive value; stored in state in plain text. Optional during pulumi import to accept a pre-existing token, but SHOULD NOT be set in regular .tf configurations.
    SubAppId double
    The VOD sub application ID. Users who activated VOD service after December 25, 2023 must specify the application ID.
    VodAigcApiTokenId string
    ID of the resource.
    ApiToken string
    The AIGC API Token value generated by the cloud side. Sensitive value; stored in state in plain text. Optional during pulumi import to accept a pre-existing token, but SHOULD NOT be set in regular .tf configurations.
    SubAppId float64
    The VOD sub application ID. Users who activated VOD service after December 25, 2023 must specify the application ID.
    VodAigcApiTokenId string
    ID of the resource.
    api_token string
    The AIGC API Token value generated by the cloud side. Sensitive value; stored in state in plain text. Optional during pulumi import to accept a pre-existing token, but SHOULD NOT be set in regular .tf configurations.
    sub_app_id number
    The VOD sub application ID. Users who activated VOD service after December 25, 2023 must specify the application ID.
    vod_aigc_api_token_id string
    ID of the resource.
    apiToken String
    The AIGC API Token value generated by the cloud side. Sensitive value; stored in state in plain text. Optional during pulumi import to accept a pre-existing token, but SHOULD NOT be set in regular .tf configurations.
    subAppId Double
    The VOD sub application ID. Users who activated VOD service after December 25, 2023 must specify the application ID.
    vodAigcApiTokenId String
    ID of the resource.
    apiToken string
    The AIGC API Token value generated by the cloud side. Sensitive value; stored in state in plain text. Optional during pulumi import to accept a pre-existing token, but SHOULD NOT be set in regular .tf configurations.
    subAppId number
    The VOD sub application ID. Users who activated VOD service after December 25, 2023 must specify the application ID.
    vodAigcApiTokenId string
    ID of the resource.
    api_token str
    The AIGC API Token value generated by the cloud side. Sensitive value; stored in state in plain text. Optional during pulumi import to accept a pre-existing token, but SHOULD NOT be set in regular .tf configurations.
    sub_app_id float
    The VOD sub application ID. Users who activated VOD service after December 25, 2023 must specify the application ID.
    vod_aigc_api_token_id str
    ID of the resource.
    apiToken String
    The AIGC API Token value generated by the cloud side. Sensitive value; stored in state in plain text. Optional during pulumi import to accept a pre-existing token, but SHOULD NOT be set in regular .tf configurations.
    subAppId Number
    The VOD sub application ID. Users who activated VOD service after December 25, 2023 must specify the application ID.
    vodAigcApiTokenId String
    ID of the resource.

    Import

    VOD AIGC API Token can be imported using the composite id sub_app_id#api_token, e.g.

    $ pulumi import tencentcloud:index/vodAigcApiToken:VodAigcApiToken example 251006666#hGjH1dsBbjUbT9Cu
    

    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.
    Viewing docs for tencentcloud 1.82.93
    published on Monday, May 11, 2026 by tencentcloudstack
      Try Pulumi Cloud free. Your team will thank you.