aws.transcribe.VocabularyFilter
Explore with Pulumi AI
Resource for managing an AWS Transcribe VocabularyFilter.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.transcribe.VocabularyFilter("example", {
vocabularyFilterName: "example",
languageCode: "en-US",
words: [
"cars",
"bucket",
],
tags: {
tag1: "value1",
tag2: "value3",
},
});
import pulumi
import pulumi_aws as aws
example = aws.transcribe.VocabularyFilter("example",
vocabulary_filter_name="example",
language_code="en-US",
words=[
"cars",
"bucket",
],
tags={
"tag1": "value1",
"tag2": "value3",
})
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{
VocabularyFilterName: pulumi.String("example"),
LanguageCode: pulumi.String("en-US"),
Words: pulumi.StringArray{
pulumi.String("cars"),
pulumi.String("bucket"),
},
Tags: pulumi.StringMap{
"tag1": pulumi.String("value1"),
"tag2": pulumi.String("value3"),
},
})
if err != nil {
return err
}
return nil
})
}
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()
{
VocabularyFilterName = "example",
LanguageCode = "en-US",
Words = new[]
{
"cars",
"bucket",
},
Tags =
{
{ "tag1", "value1" },
{ "tag2", "value3" },
},
});
});
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()
.vocabularyFilterName("example")
.languageCode("en-US")
.words(
"cars",
"bucket")
.tags(Map.ofEntries(
Map.entry("tag1", "value1"),
Map.entry("tag2", "value3")
))
.build());
}
}
resources:
example:
type: aws:transcribe:VocabularyFilter
properties:
vocabularyFilterName: example
languageCode: en-US
words:
- cars
- bucket
tags:
tag1: value1
tag2: value3
Create VocabularyFilter Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VocabularyFilter(name: string, args: VocabularyFilterArgs, opts?: CustomResourceOptions);
@overload
def VocabularyFilter(resource_name: str,
args: VocabularyFilterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VocabularyFilter(resource_name: str,
opts: Optional[ResourceOptions] = None,
language_code: Optional[str] = None,
vocabulary_filter_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
vocabulary_filter_file_uri: Optional[str] = None,
words: Optional[Sequence[str]] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var vocabularyFilterResource = new Aws.Transcribe.VocabularyFilter("vocabularyFilterResource", new()
{
LanguageCode = "string",
VocabularyFilterName = "string",
Tags =
{
{ "string", "string" },
},
VocabularyFilterFileUri = "string",
Words = new[]
{
"string",
},
});
example, err := transcribe.NewVocabularyFilter(ctx, "vocabularyFilterResource", &transcribe.VocabularyFilterArgs{
LanguageCode: pulumi.String("string"),
VocabularyFilterName: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
VocabularyFilterFileUri: pulumi.String("string"),
Words: pulumi.StringArray{
pulumi.String("string"),
},
})
var vocabularyFilterResource = new VocabularyFilter("vocabularyFilterResource", VocabularyFilterArgs.builder()
.languageCode("string")
.vocabularyFilterName("string")
.tags(Map.of("string", "string"))
.vocabularyFilterFileUri("string")
.words("string")
.build());
vocabulary_filter_resource = aws.transcribe.VocabularyFilter("vocabularyFilterResource",
language_code="string",
vocabulary_filter_name="string",
tags={
"string": "string",
},
vocabulary_filter_file_uri="string",
words=["string"])
const vocabularyFilterResource = new aws.transcribe.VocabularyFilter("vocabularyFilterResource", {
languageCode: "string",
vocabularyFilterName: "string",
tags: {
string: "string",
},
vocabularyFilterFileUri: "string",
words: ["string"],
});
type: aws:transcribe:VocabularyFilter
properties:
languageCode: string
tags:
string: string
vocabularyFilterFileUri: string
vocabularyFilterName: string
words:
- string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
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>
- 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
- 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>
- 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}
- 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]
- 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>
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>
- 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
- 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>
- 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}
- 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]
- 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>
- 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
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.