Try AWS Native preview for resources not in the classic version.
aws.transcribe.VocabularyFilter
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
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:
- Language
Code string The language code you selected for your vocabulary filter. Refer to the supported languages page for accepted codes.
- Vocabulary
Filter stringName The name of the VocabularyFilter.
The following arguments are optional:
- 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.- Vocabulary
Filter stringFile Uri 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.
- Language
Code string The language code you selected for your vocabulary filter. Refer to the supported languages page for accepted codes.
- Vocabulary
Filter stringName The name of the VocabularyFilter.
The following arguments are optional:
- 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.- Vocabulary
Filter stringFile Uri 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 String The language code you selected for your vocabulary filter. Refer to the supported languages page for accepted codes.
- vocabulary
Filter StringName The name of the VocabularyFilter.
The following arguments are optional:
- 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.- vocabulary
Filter StringFile Uri 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.
- language
Code string The language code you selected for your vocabulary filter. Refer to the supported languages page for accepted codes.
- vocabulary
Filter stringName The name of the VocabularyFilter.
The following arguments are optional:
- {[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.- vocabulary
Filter stringFile Uri 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_ strname The name of the VocabularyFilter.
The following arguments are optional:
- 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_ strfile_ uri 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.
- language
Code String The language code you selected for your vocabulary filter. Refer to the supported languages page for accepted codes.
- vocabulary
Filter StringName The name of the VocabularyFilter.
The following arguments are optional:
- 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.- vocabulary
Filter StringFile Uri 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.
- Download
Uri string Generated download URI.
- Id string
The provider-assigned unique ID for this managed resource.
- Dictionary<string, string>
Please use
tags
instead.
- Arn string
ARN of the VocabularyFilter.
- Download
Uri string Generated download URI.
- Id string
The provider-assigned unique ID for this managed resource.
- map[string]string
Please use
tags
instead.
- arn String
ARN of the VocabularyFilter.
- download
Uri String Generated download URI.
- id String
The provider-assigned unique ID for this managed resource.
- Map<String,String>
Please use
tags
instead.
- arn string
ARN of the VocabularyFilter.
- download
Uri string Generated download URI.
- id string
The provider-assigned unique ID for this managed resource.
- {[key: string]: string}
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.
- Mapping[str, str]
Please use
tags
instead.
- arn String
ARN of the VocabularyFilter.
- download
Uri String Generated download URI.
- id String
The provider-assigned unique ID for this managed resource.
- Map<String>
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.
- Arn string
ARN of the VocabularyFilter.
- Download
Uri string Generated download URI.
- Language
Code string The language code you selected for your vocabulary filter. Refer to the supported languages page for accepted codes.
- 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.- Dictionary<string, string>
Please use
tags
instead.- Vocabulary
Filter stringFile Uri The Amazon S3 location (URI) of the text file that contains your custom VocabularyFilter. Conflicts with
words
argument.- Vocabulary
Filter stringName 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.
- Download
Uri string Generated download URI.
- Language
Code string The language code you selected for your vocabulary filter. Refer to the supported languages page for accepted codes.
- 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.- map[string]string
Please use
tags
instead.- Vocabulary
Filter stringFile Uri The Amazon S3 location (URI) of the text file that contains your custom VocabularyFilter. Conflicts with
words
argument.- Vocabulary
Filter stringName 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.
- download
Uri String Generated download URI.
- language
Code String The language code you selected for your vocabulary filter. Refer to the supported languages page for accepted codes.
- 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.- Map<String,String>
Please use
tags
instead.- vocabulary
Filter StringFile Uri The Amazon S3 location (URI) of the text file that contains your custom VocabularyFilter. Conflicts with
words
argument.- vocabulary
Filter StringName 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.
- download
Uri string Generated download URI.
- language
Code string The language code you selected for your vocabulary filter. Refer to the supported languages page for accepted codes.
- {[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.- {[key: string]: string}
Please use
tags
instead.- vocabulary
Filter stringFile Uri The Amazon S3 location (URI) of the text file that contains your custom VocabularyFilter. Conflicts with
words
argument.- vocabulary
Filter stringName 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.
- 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.- Mapping[str, str]
Please use
tags
instead.- vocabulary_
filter_ strfile_ uri The Amazon S3 location (URI) of the text file that contains your custom VocabularyFilter. Conflicts with
words
argument.- vocabulary_
filter_ strname 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.
- download
Uri String Generated download URI.
- language
Code String The language code you selected for your vocabulary filter. Refer to the supported languages page for accepted codes.
- 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.- Map<String>
Please use
tags
instead.- vocabulary
Filter StringFile Uri The Amazon S3 location (URI) of the text file that contains your custom VocabularyFilter. Conflicts with
words
argument.- vocabulary
Filter StringName 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.
Try AWS Native preview for resources not in the classic version.