published on Monday, May 11, 2026 by tencentcloudstack
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:
- Sub
App doubleId - 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 importto accept a pre-existing token, but SHOULD NOT be set in regular.tfconfigurations. - Vod
Aigc stringApi Token Id - ID of the resource.
- Sub
App float64Id - 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 importto accept a pre-existing token, but SHOULD NOT be set in regular.tfconfigurations. - Vod
Aigc stringApi Token Id - ID of the resource.
- sub_
app_ numberid - 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 importto accept a pre-existing token, but SHOULD NOT be set in regular.tfconfigurations. - vod_
aigc_ stringapi_ token_ id - ID of the resource.
- sub
App DoubleId - 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 importto accept a pre-existing token, but SHOULD NOT be set in regular.tfconfigurations. - vod
Aigc StringApi Token Id - ID of the resource.
- sub
App numberId - 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 importto accept a pre-existing token, but SHOULD NOT be set in regular.tfconfigurations. - vod
Aigc stringApi Token Id - ID of the resource.
- sub_
app_ floatid - 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 importto accept a pre-existing token, but SHOULD NOT be set in regular.tfconfigurations. - vod_
aigc_ strapi_ token_ id - ID of the resource.
- sub
App NumberId - 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 importto accept a pre-existing token, but SHOULD NOT be set in regular.tfconfigurations. - vod
Aigc StringApi Token Id - 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) -> VodAigcApiTokenfunc 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.
- Api
Token string - The AIGC API Token value generated by the cloud side. Sensitive value; stored in state in plain text. Optional during
pulumi importto accept a pre-existing token, but SHOULD NOT be set in regular.tfconfigurations. - Sub
App doubleId - The VOD sub application ID. Users who activated VOD service after December 25, 2023 must specify the application ID.
- Vod
Aigc stringApi Token Id - 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 importto accept a pre-existing token, but SHOULD NOT be set in regular.tfconfigurations. - Sub
App float64Id - The VOD sub application ID. Users who activated VOD service after December 25, 2023 must specify the application ID.
- Vod
Aigc stringApi Token Id - 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 importto accept a pre-existing token, but SHOULD NOT be set in regular.tfconfigurations. - sub_
app_ numberid - The VOD sub application ID. Users who activated VOD service after December 25, 2023 must specify the application ID.
- vod_
aigc_ stringapi_ token_ id - 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 importto accept a pre-existing token, but SHOULD NOT be set in regular.tfconfigurations. - sub
App DoubleId - The VOD sub application ID. Users who activated VOD service after December 25, 2023 must specify the application ID.
- vod
Aigc StringApi Token Id - 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 importto accept a pre-existing token, but SHOULD NOT be set in regular.tfconfigurations. - sub
App numberId - The VOD sub application ID. Users who activated VOD service after December 25, 2023 must specify the application ID.
- vod
Aigc stringApi Token Id - 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 importto accept a pre-existing token, but SHOULD NOT be set in regular.tfconfigurations. - sub_
app_ floatid - The VOD sub application ID. Users who activated VOD service after December 25, 2023 must specify the application ID.
- vod_
aigc_ strapi_ token_ id - 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 importto accept a pre-existing token, but SHOULD NOT be set in regular.tfconfigurations. - sub
App NumberId - The VOD sub application ID. Users who activated VOD service after December 25, 2023 must specify the application ID.
- vod
Aigc StringApi Token Id - 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
tencentcloudTerraform Provider.
published on Monday, May 11, 2026 by tencentcloudstack
