1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. MpsWordSample
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

tencentcloud.MpsWordSample

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

    Provides a resource to create a mps word_sample

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const wordSample = new tencentcloud.MpsWordSample("wordSample", {
        keyword: "tf_test_kw_1",
        tags: [
            "tags_1",
            "tags_2",
        ],
        usages: [
            "Recognition.Ocr",
            "Review.Ocr",
            "Review.Asr",
        ],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    word_sample = tencentcloud.MpsWordSample("wordSample",
        keyword="tf_test_kw_1",
        tags=[
            "tags_1",
            "tags_2",
        ],
        usages=[
            "Recognition.Ocr",
            "Review.Ocr",
            "Review.Asr",
        ])
    
    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.NewMpsWordSample(ctx, "wordSample", &tencentcloud.MpsWordSampleArgs{
    			Keyword: pulumi.String("tf_test_kw_1"),
    			Tags: pulumi.StringArray{
    				pulumi.String("tags_1"),
    				pulumi.String("tags_2"),
    			},
    			Usages: pulumi.StringArray{
    				pulumi.String("Recognition.Ocr"),
    				pulumi.String("Review.Ocr"),
    				pulumi.String("Review.Asr"),
    			},
    		})
    		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 wordSample = new Tencentcloud.MpsWordSample("wordSample", new()
        {
            Keyword = "tf_test_kw_1",
            Tags = new[]
            {
                "tags_1",
                "tags_2",
            },
            Usages = new[]
            {
                "Recognition.Ocr",
                "Review.Ocr",
                "Review.Asr",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.MpsWordSample;
    import com.pulumi.tencentcloud.MpsWordSampleArgs;
    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 wordSample = new MpsWordSample("wordSample", MpsWordSampleArgs.builder()
                .keyword("tf_test_kw_1")
                .tags(            
                    "tags_1",
                    "tags_2")
                .usages(            
                    "Recognition.Ocr",
                    "Review.Ocr",
                    "Review.Asr")
                .build());
    
        }
    }
    
    resources:
      wordSample:
        type: tencentcloud:MpsWordSample
        properties:
          keyword: tf_test_kw_1
          tags:
            - tags_1
            - tags_2
          usages:
            - Recognition.Ocr
            - Review.Ocr
            - Review.Asr
    

    Create MpsWordSample Resource

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

    Constructor syntax

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

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

    Keyword string
    Keyword. Length limit: 20 characters.
    Usages List<string>
    Keyword usage. Valid values: 1.Recognition.Ocr: OCR-based content recognition. 2.Recognition.Asr: ASR-based content recognition. 3.Review.Ocr: OCR-based inappropriate information recognition. 4.Review.Asr: ASR-based inappropriate information recognition.
    MpsWordSampleId string
    ID of the resource.
    Tags List<string>
    Keyword tag. Array length limit: 20 tags. Each tag length limit: 128 characters.
    Keyword string
    Keyword. Length limit: 20 characters.
    Usages []string
    Keyword usage. Valid values: 1.Recognition.Ocr: OCR-based content recognition. 2.Recognition.Asr: ASR-based content recognition. 3.Review.Ocr: OCR-based inappropriate information recognition. 4.Review.Asr: ASR-based inappropriate information recognition.
    MpsWordSampleId string
    ID of the resource.
    Tags []string
    Keyword tag. Array length limit: 20 tags. Each tag length limit: 128 characters.
    keyword String
    Keyword. Length limit: 20 characters.
    usages List<String>
    Keyword usage. Valid values: 1.Recognition.Ocr: OCR-based content recognition. 2.Recognition.Asr: ASR-based content recognition. 3.Review.Ocr: OCR-based inappropriate information recognition. 4.Review.Asr: ASR-based inappropriate information recognition.
    mpsWordSampleId String
    ID of the resource.
    tags List<String>
    Keyword tag. Array length limit: 20 tags. Each tag length limit: 128 characters.
    keyword string
    Keyword. Length limit: 20 characters.
    usages string[]
    Keyword usage. Valid values: 1.Recognition.Ocr: OCR-based content recognition. 2.Recognition.Asr: ASR-based content recognition. 3.Review.Ocr: OCR-based inappropriate information recognition. 4.Review.Asr: ASR-based inappropriate information recognition.
    mpsWordSampleId string
    ID of the resource.
    tags string[]
    Keyword tag. Array length limit: 20 tags. Each tag length limit: 128 characters.
    keyword str
    Keyword. Length limit: 20 characters.
    usages Sequence[str]
    Keyword usage. Valid values: 1.Recognition.Ocr: OCR-based content recognition. 2.Recognition.Asr: ASR-based content recognition. 3.Review.Ocr: OCR-based inappropriate information recognition. 4.Review.Asr: ASR-based inappropriate information recognition.
    mps_word_sample_id str
    ID of the resource.
    tags Sequence[str]
    Keyword tag. Array length limit: 20 tags. Each tag length limit: 128 characters.
    keyword String
    Keyword. Length limit: 20 characters.
    usages List<String>
    Keyword usage. Valid values: 1.Recognition.Ocr: OCR-based content recognition. 2.Recognition.Asr: ASR-based content recognition. 3.Review.Ocr: OCR-based inappropriate information recognition. 4.Review.Asr: ASR-based inappropriate information recognition.
    mpsWordSampleId String
    ID of the resource.
    tags List<String>
    Keyword tag. Array length limit: 20 tags. Each tag length limit: 128 characters.

    Outputs

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

    Get an existing MpsWordSample 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?: MpsWordSampleState, opts?: CustomResourceOptions): MpsWordSample
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            keyword: Optional[str] = None,
            mps_word_sample_id: Optional[str] = None,
            tags: Optional[Sequence[str]] = None,
            usages: Optional[Sequence[str]] = None) -> MpsWordSample
    func GetMpsWordSample(ctx *Context, name string, id IDInput, state *MpsWordSampleState, opts ...ResourceOption) (*MpsWordSample, error)
    public static MpsWordSample Get(string name, Input<string> id, MpsWordSampleState? state, CustomResourceOptions? opts = null)
    public static MpsWordSample get(String name, Output<String> id, MpsWordSampleState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:MpsWordSample    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:
    Keyword string
    Keyword. Length limit: 20 characters.
    MpsWordSampleId string
    ID of the resource.
    Tags List<string>
    Keyword tag. Array length limit: 20 tags. Each tag length limit: 128 characters.
    Usages List<string>
    Keyword usage. Valid values: 1.Recognition.Ocr: OCR-based content recognition. 2.Recognition.Asr: ASR-based content recognition. 3.Review.Ocr: OCR-based inappropriate information recognition. 4.Review.Asr: ASR-based inappropriate information recognition.
    Keyword string
    Keyword. Length limit: 20 characters.
    MpsWordSampleId string
    ID of the resource.
    Tags []string
    Keyword tag. Array length limit: 20 tags. Each tag length limit: 128 characters.
    Usages []string
    Keyword usage. Valid values: 1.Recognition.Ocr: OCR-based content recognition. 2.Recognition.Asr: ASR-based content recognition. 3.Review.Ocr: OCR-based inappropriate information recognition. 4.Review.Asr: ASR-based inappropriate information recognition.
    keyword String
    Keyword. Length limit: 20 characters.
    mpsWordSampleId String
    ID of the resource.
    tags List<String>
    Keyword tag. Array length limit: 20 tags. Each tag length limit: 128 characters.
    usages List<String>
    Keyword usage. Valid values: 1.Recognition.Ocr: OCR-based content recognition. 2.Recognition.Asr: ASR-based content recognition. 3.Review.Ocr: OCR-based inappropriate information recognition. 4.Review.Asr: ASR-based inappropriate information recognition.
    keyword string
    Keyword. Length limit: 20 characters.
    mpsWordSampleId string
    ID of the resource.
    tags string[]
    Keyword tag. Array length limit: 20 tags. Each tag length limit: 128 characters.
    usages string[]
    Keyword usage. Valid values: 1.Recognition.Ocr: OCR-based content recognition. 2.Recognition.Asr: ASR-based content recognition. 3.Review.Ocr: OCR-based inappropriate information recognition. 4.Review.Asr: ASR-based inappropriate information recognition.
    keyword str
    Keyword. Length limit: 20 characters.
    mps_word_sample_id str
    ID of the resource.
    tags Sequence[str]
    Keyword tag. Array length limit: 20 tags. Each tag length limit: 128 characters.
    usages Sequence[str]
    Keyword usage. Valid values: 1.Recognition.Ocr: OCR-based content recognition. 2.Recognition.Asr: ASR-based content recognition. 3.Review.Ocr: OCR-based inappropriate information recognition. 4.Review.Asr: ASR-based inappropriate information recognition.
    keyword String
    Keyword. Length limit: 20 characters.
    mpsWordSampleId String
    ID of the resource.
    tags List<String>
    Keyword tag. Array length limit: 20 tags. Each tag length limit: 128 characters.
    usages List<String>
    Keyword usage. Valid values: 1.Recognition.Ocr: OCR-based content recognition. 2.Recognition.Asr: ASR-based content recognition. 3.Review.Ocr: OCR-based inappropriate information recognition. 4.Review.Asr: ASR-based inappropriate information recognition.

    Import

    mps word_sample can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/mpsWordSample:MpsWordSample word_sample keyword
    

    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.
    tencentcloud logo
    tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack