1. Packages
  2. AWS Classic
  3. API Docs
  4. transcribe
  5. VocabularyFilter

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.3.0 published on Thursday, Sep 28, 2023 by Pulumi

aws.transcribe.VocabularyFilter

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.3.0 published on Thursday, Sep 28, 2023 by Pulumi

    Resource for managing an AWS Transcribe VocabularyFilter.

    Example Usage

    Basic Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.Transcribe.VocabularyFilter("example", new()
        {
            LanguageCode = "en-US",
            Tags = 
            {
                { "tag1", "value1" },
                { "tag2", "value3" },
            },
            VocabularyFilterName = "example",
            Words = new[]
            {
                "cars",
                "bucket",
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/transcribe"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := transcribe.NewVocabularyFilter(ctx, "example", &transcribe.VocabularyFilterArgs{
    			LanguageCode: pulumi.String("en-US"),
    			Tags: pulumi.StringMap{
    				"tag1": pulumi.String("value1"),
    				"tag2": pulumi.String("value3"),
    			},
    			VocabularyFilterName: pulumi.String("example"),
    			Words: pulumi.StringArray{
    				pulumi.String("cars"),
    				pulumi.String("bucket"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.transcribe.VocabularyFilter;
    import com.pulumi.aws.transcribe.VocabularyFilterArgs;
    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 VocabularyFilter("example", VocabularyFilterArgs.builder()        
                .languageCode("en-US")
                .tags(Map.ofEntries(
                    Map.entry("tag1", "value1"),
                    Map.entry("tag2", "value3")
                ))
                .vocabularyFilterName("example")
                .words(            
                    "cars",
                    "bucket")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.transcribe.VocabularyFilter("example",
        language_code="en-US",
        tags={
            "tag1": "value1",
            "tag2": "value3",
        },
        vocabulary_filter_name="example",
        words=[
            "cars",
            "bucket",
        ])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.transcribe.VocabularyFilter("example", {
        languageCode: "en-US",
        tags: {
            tag1: "value1",
            tag2: "value3",
        },
        vocabularyFilterName: "example",
        words: [
            "cars",
            "bucket",
        ],
    });
    
    resources:
      example:
        type: aws:transcribe:VocabularyFilter
        properties:
          languageCode: en-US
          tags:
            tag1: value1
            tag2: value3
          vocabularyFilterName: example
          words:
            - cars
            - bucket
    

    Create VocabularyFilter Resource

    new VocabularyFilter(name: string, args: VocabularyFilterArgs, opts?: CustomResourceOptions);
    @overload
    def VocabularyFilter(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         language_code: Optional[str] = None,
                         tags: Optional[Mapping[str, str]] = None,
                         vocabulary_filter_file_uri: Optional[str] = None,
                         vocabulary_filter_name: Optional[str] = None,
                         words: Optional[Sequence[str]] = None)
    @overload
    def VocabularyFilter(resource_name: str,
                         args: VocabularyFilterArgs,
                         opts: Optional[ResourceOptions] = None)
    func NewVocabularyFilter(ctx *Context, name string, args VocabularyFilterArgs, opts ...ResourceOption) (*VocabularyFilter, error)
    public VocabularyFilter(string name, VocabularyFilterArgs args, CustomResourceOptions? opts = null)
    public VocabularyFilter(String name, VocabularyFilterArgs args)
    public VocabularyFilter(String name, VocabularyFilterArgs args, CustomResourceOptions options)
    
    type: aws:transcribe:VocabularyFilter
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args VocabularyFilterArgs
    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 VocabularyFilterArgs
    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 VocabularyFilterArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VocabularyFilterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VocabularyFilterArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    VocabularyFilter Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The VocabularyFilter resource accepts the following input properties:

    LanguageCode string

    The language code you selected for your vocabulary filter. Refer to the supported languages page for accepted codes.

    VocabularyFilterName string

    The name of the VocabularyFilter.

    The following arguments are optional:

    Tags Dictionary<string, string>

    A map of tags to assign to the VocabularyFilter. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    VocabularyFilterFileUri string

    The Amazon S3 location (URI) of the text file that contains your custom VocabularyFilter. Conflicts with words argument.

    Words List<string>

    A list of terms to include in the vocabulary. Conflicts with vocabulary_filter_file_uri argument.

    LanguageCode string

    The language code you selected for your vocabulary filter. Refer to the supported languages page for accepted codes.

    VocabularyFilterName string

    The name of the VocabularyFilter.

    The following arguments are optional:

    Tags map[string]string

    A map of tags to assign to the VocabularyFilter. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    VocabularyFilterFileUri string

    The Amazon S3 location (URI) of the text file that contains your custom VocabularyFilter. Conflicts with words argument.

    Words []string

    A list of terms to include in the vocabulary. Conflicts with vocabulary_filter_file_uri argument.

    languageCode String

    The language code you selected for your vocabulary filter. Refer to the supported languages page for accepted codes.

    vocabularyFilterName String

    The name of the VocabularyFilter.

    The following arguments are optional:

    tags Map<String,String>

    A map of tags to assign to the VocabularyFilter. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    vocabularyFilterFileUri String

    The Amazon S3 location (URI) of the text file that contains your custom VocabularyFilter. Conflicts with words argument.

    words List<String>

    A list of terms to include in the vocabulary. Conflicts with vocabulary_filter_file_uri argument.

    languageCode string

    The language code you selected for your vocabulary filter. Refer to the supported languages page for accepted codes.

    vocabularyFilterName string

    The name of the VocabularyFilter.

    The following arguments are optional:

    tags {[key: string]: string}

    A map of tags to assign to the VocabularyFilter. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    vocabularyFilterFileUri string

    The Amazon S3 location (URI) of the text file that contains your custom VocabularyFilter. Conflicts with words argument.

    words string[]

    A list of terms to include in the vocabulary. Conflicts with vocabulary_filter_file_uri argument.

    language_code str

    The language code you selected for your vocabulary filter. Refer to the supported languages page for accepted codes.

    vocabulary_filter_name str

    The name of the VocabularyFilter.

    The following arguments are optional:

    tags Mapping[str, str]

    A map of tags to assign to the VocabularyFilter. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    vocabulary_filter_file_uri str

    The Amazon S3 location (URI) of the text file that contains your custom VocabularyFilter. Conflicts with words argument.

    words Sequence[str]

    A list of terms to include in the vocabulary. Conflicts with vocabulary_filter_file_uri argument.

    languageCode String

    The language code you selected for your vocabulary filter. Refer to the supported languages page for accepted codes.

    vocabularyFilterName String

    The name of the VocabularyFilter.

    The following arguments are optional:

    tags Map<String>

    A map of tags to assign to the VocabularyFilter. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    vocabularyFilterFileUri String

    The Amazon S3 location (URI) of the text file that contains your custom VocabularyFilter. Conflicts with words argument.

    words List<String>

    A list of terms to include in the vocabulary. Conflicts with vocabulary_filter_file_uri argument.

    Outputs

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

    Arn string

    ARN of the VocabularyFilter.

    DownloadUri string

    Generated download URI.

    Id string

    The provider-assigned unique ID for this managed resource.

    TagsAll Dictionary<string, string>

    Deprecated:

    Please use tags instead.

    Arn string

    ARN of the VocabularyFilter.

    DownloadUri string

    Generated download URI.

    Id string

    The provider-assigned unique ID for this managed resource.

    TagsAll map[string]string

    Deprecated:

    Please use tags instead.

    arn String

    ARN of the VocabularyFilter.

    downloadUri String

    Generated download URI.

    id String

    The provider-assigned unique ID for this managed resource.

    tagsAll Map<String,String>

    Deprecated:

    Please use tags instead.

    arn string

    ARN of the VocabularyFilter.

    downloadUri string

    Generated download URI.

    id string

    The provider-assigned unique ID for this managed resource.

    tagsAll {[key: string]: string}

    Deprecated:

    Please use tags instead.

    arn str

    ARN of the VocabularyFilter.

    download_uri str

    Generated download URI.

    id str

    The provider-assigned unique ID for this managed resource.

    tags_all Mapping[str, str]

    Deprecated:

    Please use tags instead.

    arn String

    ARN of the VocabularyFilter.

    downloadUri String

    Generated download URI.

    id String

    The provider-assigned unique ID for this managed resource.

    tagsAll Map<String>

    Deprecated:

    Please use tags instead.

    Look up Existing VocabularyFilter Resource

    Get an existing VocabularyFilter 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?: VocabularyFilterState, opts?: CustomResourceOptions): VocabularyFilter
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            download_uri: Optional[str] = None,
            language_code: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None,
            vocabulary_filter_file_uri: Optional[str] = None,
            vocabulary_filter_name: Optional[str] = None,
            words: Optional[Sequence[str]] = None) -> VocabularyFilter
    func GetVocabularyFilter(ctx *Context, name string, id IDInput, state *VocabularyFilterState, opts ...ResourceOption) (*VocabularyFilter, error)
    public static VocabularyFilter Get(string name, Input<string> id, VocabularyFilterState? state, CustomResourceOptions? opts = null)
    public static VocabularyFilter get(String name, Output<String> id, VocabularyFilterState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    Arn string

    ARN of the VocabularyFilter.

    DownloadUri string

    Generated download URI.

    LanguageCode string

    The language code you selected for your vocabulary filter. Refer to the supported languages page for accepted codes.

    Tags Dictionary<string, string>

    A map of tags to assign to the VocabularyFilter. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    TagsAll Dictionary<string, string>

    Deprecated:

    Please use tags instead.

    VocabularyFilterFileUri string

    The Amazon S3 location (URI) of the text file that contains your custom VocabularyFilter. Conflicts with words argument.

    VocabularyFilterName string

    The name of the VocabularyFilter.

    The following arguments are optional:

    Words List<string>

    A list of terms to include in the vocabulary. Conflicts with vocabulary_filter_file_uri argument.

    Arn string

    ARN of the VocabularyFilter.

    DownloadUri string

    Generated download URI.

    LanguageCode string

    The language code you selected for your vocabulary filter. Refer to the supported languages page for accepted codes.

    Tags map[string]string

    A map of tags to assign to the VocabularyFilter. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    TagsAll map[string]string

    Deprecated:

    Please use tags instead.

    VocabularyFilterFileUri string

    The Amazon S3 location (URI) of the text file that contains your custom VocabularyFilter. Conflicts with words argument.

    VocabularyFilterName string

    The name of the VocabularyFilter.

    The following arguments are optional:

    Words []string

    A list of terms to include in the vocabulary. Conflicts with vocabulary_filter_file_uri argument.

    arn String

    ARN of the VocabularyFilter.

    downloadUri String

    Generated download URI.

    languageCode String

    The language code you selected for your vocabulary filter. Refer to the supported languages page for accepted codes.

    tags Map<String,String>

    A map of tags to assign to the VocabularyFilter. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    tagsAll Map<String,String>

    Deprecated:

    Please use tags instead.

    vocabularyFilterFileUri String

    The Amazon S3 location (URI) of the text file that contains your custom VocabularyFilter. Conflicts with words argument.

    vocabularyFilterName String

    The name of the VocabularyFilter.

    The following arguments are optional:

    words List<String>

    A list of terms to include in the vocabulary. Conflicts with vocabulary_filter_file_uri argument.

    arn string

    ARN of the VocabularyFilter.

    downloadUri string

    Generated download URI.

    languageCode string

    The language code you selected for your vocabulary filter. Refer to the supported languages page for accepted codes.

    tags {[key: string]: string}

    A map of tags to assign to the VocabularyFilter. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    tagsAll {[key: string]: string}

    Deprecated:

    Please use tags instead.

    vocabularyFilterFileUri string

    The Amazon S3 location (URI) of the text file that contains your custom VocabularyFilter. Conflicts with words argument.

    vocabularyFilterName string

    The name of the VocabularyFilter.

    The following arguments are optional:

    words string[]

    A list of terms to include in the vocabulary. Conflicts with vocabulary_filter_file_uri argument.

    arn str

    ARN of the VocabularyFilter.

    download_uri str

    Generated download URI.

    language_code str

    The language code you selected for your vocabulary filter. Refer to the supported languages page for accepted codes.

    tags Mapping[str, str]

    A map of tags to assign to the VocabularyFilter. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    tags_all Mapping[str, str]

    Deprecated:

    Please use tags instead.

    vocabulary_filter_file_uri str

    The Amazon S3 location (URI) of the text file that contains your custom VocabularyFilter. Conflicts with words argument.

    vocabulary_filter_name str

    The name of the VocabularyFilter.

    The following arguments are optional:

    words Sequence[str]

    A list of terms to include in the vocabulary. Conflicts with vocabulary_filter_file_uri argument.

    arn String

    ARN of the VocabularyFilter.

    downloadUri String

    Generated download URI.

    languageCode String

    The language code you selected for your vocabulary filter. Refer to the supported languages page for accepted codes.

    tags Map<String>

    A map of tags to assign to the VocabularyFilter. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    tagsAll Map<String>

    Deprecated:

    Please use tags instead.

    vocabularyFilterFileUri String

    The Amazon S3 location (URI) of the text file that contains your custom VocabularyFilter. Conflicts with words argument.

    vocabularyFilterName String

    The name of the VocabularyFilter.

    The following arguments are optional:

    words List<String>

    A list of terms to include in the vocabulary. Conflicts with vocabulary_filter_file_uri argument.

    Import

    Using pulumi import, import Transcribe VocabularyFilter using the vocabulary_filter_name. For example:

     $ pulumi import aws:transcribe/vocabularyFilter:VocabularyFilter example example-name
    

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the aws Terraform Provider.

    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.3.0 published on Thursday, Sep 28, 2023 by Pulumi