Documentation ¶
Index ¶
- type LanguageModel
- type LanguageModelArgs
- type LanguageModelArray
- type LanguageModelArrayInput
- type LanguageModelArrayOutput
- func (LanguageModelArrayOutput) ElementType() reflect.Type
- func (o LanguageModelArrayOutput) Index(i pulumi.IntInput) LanguageModelOutput
- func (o LanguageModelArrayOutput) ToLanguageModelArrayOutput() LanguageModelArrayOutput
- func (o LanguageModelArrayOutput) ToLanguageModelArrayOutputWithContext(ctx context.Context) LanguageModelArrayOutput
- type LanguageModelInput
- type LanguageModelInputDataConfig
- type LanguageModelInputDataConfigArgs
- func (LanguageModelInputDataConfigArgs) ElementType() reflect.Type
- func (i LanguageModelInputDataConfigArgs) ToLanguageModelInputDataConfigOutput() LanguageModelInputDataConfigOutput
- func (i LanguageModelInputDataConfigArgs) ToLanguageModelInputDataConfigOutputWithContext(ctx context.Context) LanguageModelInputDataConfigOutput
- func (i LanguageModelInputDataConfigArgs) ToLanguageModelInputDataConfigPtrOutput() LanguageModelInputDataConfigPtrOutput
- func (i LanguageModelInputDataConfigArgs) ToLanguageModelInputDataConfigPtrOutputWithContext(ctx context.Context) LanguageModelInputDataConfigPtrOutput
- type LanguageModelInputDataConfigInput
- type LanguageModelInputDataConfigOutput
- func (o LanguageModelInputDataConfigOutput) DataAccessRoleArn() pulumi.StringOutput
- func (LanguageModelInputDataConfigOutput) ElementType() reflect.Type
- func (o LanguageModelInputDataConfigOutput) S3Uri() pulumi.StringOutput
- func (o LanguageModelInputDataConfigOutput) ToLanguageModelInputDataConfigOutput() LanguageModelInputDataConfigOutput
- func (o LanguageModelInputDataConfigOutput) ToLanguageModelInputDataConfigOutputWithContext(ctx context.Context) LanguageModelInputDataConfigOutput
- func (o LanguageModelInputDataConfigOutput) ToLanguageModelInputDataConfigPtrOutput() LanguageModelInputDataConfigPtrOutput
- func (o LanguageModelInputDataConfigOutput) ToLanguageModelInputDataConfigPtrOutputWithContext(ctx context.Context) LanguageModelInputDataConfigPtrOutput
- func (o LanguageModelInputDataConfigOutput) TuningDataS3Uri() pulumi.StringPtrOutput
- type LanguageModelInputDataConfigPtrInput
- type LanguageModelInputDataConfigPtrOutput
- func (o LanguageModelInputDataConfigPtrOutput) DataAccessRoleArn() pulumi.StringPtrOutput
- func (o LanguageModelInputDataConfigPtrOutput) Elem() LanguageModelInputDataConfigOutput
- func (LanguageModelInputDataConfigPtrOutput) ElementType() reflect.Type
- func (o LanguageModelInputDataConfigPtrOutput) S3Uri() pulumi.StringPtrOutput
- func (o LanguageModelInputDataConfigPtrOutput) ToLanguageModelInputDataConfigPtrOutput() LanguageModelInputDataConfigPtrOutput
- func (o LanguageModelInputDataConfigPtrOutput) ToLanguageModelInputDataConfigPtrOutputWithContext(ctx context.Context) LanguageModelInputDataConfigPtrOutput
- func (o LanguageModelInputDataConfigPtrOutput) TuningDataS3Uri() pulumi.StringPtrOutput
- type LanguageModelMap
- type LanguageModelMapInput
- type LanguageModelMapOutput
- func (LanguageModelMapOutput) ElementType() reflect.Type
- func (o LanguageModelMapOutput) MapIndex(k pulumi.StringInput) LanguageModelOutput
- func (o LanguageModelMapOutput) ToLanguageModelMapOutput() LanguageModelMapOutput
- func (o LanguageModelMapOutput) ToLanguageModelMapOutputWithContext(ctx context.Context) LanguageModelMapOutput
- type LanguageModelOutput
- func (o LanguageModelOutput) Arn() pulumi.StringOutput
- func (o LanguageModelOutput) BaseModelName() pulumi.StringOutput
- func (LanguageModelOutput) ElementType() reflect.Type
- func (o LanguageModelOutput) InputDataConfig() LanguageModelInputDataConfigOutput
- func (o LanguageModelOutput) LanguageCode() pulumi.StringOutput
- func (o LanguageModelOutput) ModelName() pulumi.StringOutput
- func (o LanguageModelOutput) Tags() pulumi.StringMapOutput
- func (o LanguageModelOutput) TagsAll() pulumi.StringMapOutputdeprecated
- func (o LanguageModelOutput) ToLanguageModelOutput() LanguageModelOutput
- func (o LanguageModelOutput) ToLanguageModelOutputWithContext(ctx context.Context) LanguageModelOutput
- type LanguageModelState
- type MedicalVocabulary
- type MedicalVocabularyArgs
- type MedicalVocabularyArray
- type MedicalVocabularyArrayInput
- type MedicalVocabularyArrayOutput
- func (MedicalVocabularyArrayOutput) ElementType() reflect.Type
- func (o MedicalVocabularyArrayOutput) Index(i pulumi.IntInput) MedicalVocabularyOutput
- func (o MedicalVocabularyArrayOutput) ToMedicalVocabularyArrayOutput() MedicalVocabularyArrayOutput
- func (o MedicalVocabularyArrayOutput) ToMedicalVocabularyArrayOutputWithContext(ctx context.Context) MedicalVocabularyArrayOutput
- type MedicalVocabularyInput
- type MedicalVocabularyMap
- type MedicalVocabularyMapInput
- type MedicalVocabularyMapOutput
- func (MedicalVocabularyMapOutput) ElementType() reflect.Type
- func (o MedicalVocabularyMapOutput) MapIndex(k pulumi.StringInput) MedicalVocabularyOutput
- func (o MedicalVocabularyMapOutput) ToMedicalVocabularyMapOutput() MedicalVocabularyMapOutput
- func (o MedicalVocabularyMapOutput) ToMedicalVocabularyMapOutputWithContext(ctx context.Context) MedicalVocabularyMapOutput
- type MedicalVocabularyOutput
- func (o MedicalVocabularyOutput) Arn() pulumi.StringOutput
- func (o MedicalVocabularyOutput) DownloadUri() pulumi.StringOutput
- func (MedicalVocabularyOutput) ElementType() reflect.Type
- func (o MedicalVocabularyOutput) LanguageCode() pulumi.StringOutput
- func (o MedicalVocabularyOutput) Tags() pulumi.StringMapOutput
- func (o MedicalVocabularyOutput) TagsAll() pulumi.StringMapOutputdeprecated
- func (o MedicalVocabularyOutput) ToMedicalVocabularyOutput() MedicalVocabularyOutput
- func (o MedicalVocabularyOutput) ToMedicalVocabularyOutputWithContext(ctx context.Context) MedicalVocabularyOutput
- func (o MedicalVocabularyOutput) VocabularyFileUri() pulumi.StringOutput
- func (o MedicalVocabularyOutput) VocabularyName() pulumi.StringOutput
- type MedicalVocabularyState
- type Vocabulary
- type VocabularyArgs
- type VocabularyArray
- type VocabularyArrayInput
- type VocabularyArrayOutput
- func (VocabularyArrayOutput) ElementType() reflect.Type
- func (o VocabularyArrayOutput) Index(i pulumi.IntInput) VocabularyOutput
- func (o VocabularyArrayOutput) ToVocabularyArrayOutput() VocabularyArrayOutput
- func (o VocabularyArrayOutput) ToVocabularyArrayOutputWithContext(ctx context.Context) VocabularyArrayOutput
- type VocabularyFilter
- type VocabularyFilterArgs
- type VocabularyFilterArray
- type VocabularyFilterArrayInput
- type VocabularyFilterArrayOutput
- func (VocabularyFilterArrayOutput) ElementType() reflect.Type
- func (o VocabularyFilterArrayOutput) Index(i pulumi.IntInput) VocabularyFilterOutput
- func (o VocabularyFilterArrayOutput) ToVocabularyFilterArrayOutput() VocabularyFilterArrayOutput
- func (o VocabularyFilterArrayOutput) ToVocabularyFilterArrayOutputWithContext(ctx context.Context) VocabularyFilterArrayOutput
- type VocabularyFilterInput
- type VocabularyFilterMap
- type VocabularyFilterMapInput
- type VocabularyFilterMapOutput
- func (VocabularyFilterMapOutput) ElementType() reflect.Type
- func (o VocabularyFilterMapOutput) MapIndex(k pulumi.StringInput) VocabularyFilterOutput
- func (o VocabularyFilterMapOutput) ToVocabularyFilterMapOutput() VocabularyFilterMapOutput
- func (o VocabularyFilterMapOutput) ToVocabularyFilterMapOutputWithContext(ctx context.Context) VocabularyFilterMapOutput
- type VocabularyFilterOutput
- func (o VocabularyFilterOutput) Arn() pulumi.StringOutput
- func (o VocabularyFilterOutput) DownloadUri() pulumi.StringOutput
- func (VocabularyFilterOutput) ElementType() reflect.Type
- func (o VocabularyFilterOutput) LanguageCode() pulumi.StringOutput
- func (o VocabularyFilterOutput) Tags() pulumi.StringMapOutput
- func (o VocabularyFilterOutput) TagsAll() pulumi.StringMapOutputdeprecated
- func (o VocabularyFilterOutput) ToVocabularyFilterOutput() VocabularyFilterOutput
- func (o VocabularyFilterOutput) ToVocabularyFilterOutputWithContext(ctx context.Context) VocabularyFilterOutput
- func (o VocabularyFilterOutput) VocabularyFilterFileUri() pulumi.StringPtrOutput
- func (o VocabularyFilterOutput) VocabularyFilterName() pulumi.StringOutput
- func (o VocabularyFilterOutput) Words() pulumi.StringArrayOutput
- type VocabularyFilterState
- type VocabularyInput
- type VocabularyMap
- type VocabularyMapInput
- type VocabularyMapOutput
- func (VocabularyMapOutput) ElementType() reflect.Type
- func (o VocabularyMapOutput) MapIndex(k pulumi.StringInput) VocabularyOutput
- func (o VocabularyMapOutput) ToVocabularyMapOutput() VocabularyMapOutput
- func (o VocabularyMapOutput) ToVocabularyMapOutputWithContext(ctx context.Context) VocabularyMapOutput
- type VocabularyOutput
- func (o VocabularyOutput) Arn() pulumi.StringOutput
- func (o VocabularyOutput) DownloadUri() pulumi.StringOutput
- func (VocabularyOutput) ElementType() reflect.Type
- func (o VocabularyOutput) LanguageCode() pulumi.StringOutput
- func (o VocabularyOutput) Phrases() pulumi.StringArrayOutput
- func (o VocabularyOutput) Tags() pulumi.StringMapOutput
- func (o VocabularyOutput) TagsAll() pulumi.StringMapOutputdeprecated
- func (o VocabularyOutput) ToVocabularyOutput() VocabularyOutput
- func (o VocabularyOutput) ToVocabularyOutputWithContext(ctx context.Context) VocabularyOutput
- func (o VocabularyOutput) VocabularyFileUri() pulumi.StringOutput
- func (o VocabularyOutput) VocabularyName() pulumi.StringOutput
- type VocabularyState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LanguageModel ¶
type LanguageModel struct { pulumi.CustomResourceState // ARN of the LanguageModel. Arn pulumi.StringOutput `pulumi:"arn"` // Name of reference base model. BaseModelName pulumi.StringOutput `pulumi:"baseModelName"` // The input data config for the LanguageModel. See Input Data Config for more details. InputDataConfig LanguageModelInputDataConfigOutput `pulumi:"inputDataConfig"` // The language code you selected for your language model. Refer to the [supported languages](https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html) page for accepted codes. LanguageCode pulumi.StringOutput `pulumi:"languageCode"` // The model name. ModelName pulumi.StringOutput `pulumi:"modelName"` Tags pulumi.StringMapOutput `pulumi:"tags"` // Deprecated: Please use `tags` instead. TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"` }
Resource for managing an AWS Transcribe LanguageModel.
> This resource can take a significant amount of time to provision. See Language Model [FAQ](https://aws.amazon.com/transcribe/faqs/) for more details.
## Example Usage
### Basic Usage
```go package main
import (
"encoding/json" "fmt" "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam" "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/s3" "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 { example, err := iam.GetPolicyDocument(ctx, &iam.GetPolicyDocumentArgs{ Statements: []iam.GetPolicyDocumentStatement{ { Actions: []string{ "sts:AssumeRole", }, Principals: []iam.GetPolicyDocumentStatementPrincipal{ { Type: "Service", Identifiers: []string{ "transcribe.amazonaws.com", }, }, }, }, }, }, nil) if err != nil { return err } exampleRole, err := iam.NewRole(ctx, "example", &iam.RoleArgs{ Name: pulumi.String("example"), AssumeRolePolicy: pulumi.String(example.Json), }) if err != nil { return err } tmpJSON0, err := json.Marshal(map[string]interface{}{ "Version": "2012-10-17", "Statement": []map[string]interface{}{ map[string]interface{}{ "Action": []string{ "s3:GetObject", "s3:ListBucket", }, "Effect": "Allow", "Resource": []string{ "*", }, }, }, }) if err != nil { return err } json0 := string(tmpJSON0) _, err = iam.NewRolePolicy(ctx, "test_policy", &iam.RolePolicyArgs{ Name: pulumi.String("example"), Role: exampleRole.ID(), Policy: pulumi.String(json0), }) if err != nil { return err } exampleBucketV2, err := s3.NewBucketV2(ctx, "example", &s3.BucketV2Args{ Bucket: pulumi.String("example-transcribe"), ForceDestroy: pulumi.Bool(true), }) if err != nil { return err } _, err = s3.NewBucketObjectv2(ctx, "object", &s3.BucketObjectv2Args{ Bucket: exampleBucketV2.ID(), Key: pulumi.String("transcribe/test1.txt"), Source: pulumi.NewFileAsset("test1.txt"), }) if err != nil { return err } _, err = transcribe.NewLanguageModel(ctx, "example", &transcribe.LanguageModelArgs{ ModelName: pulumi.String("example"), BaseModelName: pulumi.String("NarrowBand"), InputDataConfig: &transcribe.LanguageModelInputDataConfigArgs{ DataAccessRoleArn: exampleRole.Arn, S3Uri: exampleBucketV2.ID().ApplyT(func(id string) (string, error) { return fmt.Sprintf("s3://%v/transcribe/", id), nil }).(pulumi.StringOutput), }, LanguageCode: pulumi.String("en-US"), Tags: pulumi.StringMap{ "ENVIRONMENT": pulumi.String("development"), }, }) if err != nil { return err } return nil }) }
```
## Import
Using `pulumi import`, import Transcribe LanguageModel using the `model_name`. For example:
```sh $ pulumi import aws:transcribe/languageModel:LanguageModel example example-name ```
func GetLanguageModel ¶
func GetLanguageModel(ctx *pulumi.Context, name string, id pulumi.IDInput, state *LanguageModelState, opts ...pulumi.ResourceOption) (*LanguageModel, error)
GetLanguageModel gets an existing LanguageModel resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewLanguageModel ¶
func NewLanguageModel(ctx *pulumi.Context, name string, args *LanguageModelArgs, opts ...pulumi.ResourceOption) (*LanguageModel, error)
NewLanguageModel registers a new resource with the given unique name, arguments, and options.
func (*LanguageModel) ElementType ¶
func (*LanguageModel) ElementType() reflect.Type
func (*LanguageModel) ToLanguageModelOutput ¶
func (i *LanguageModel) ToLanguageModelOutput() LanguageModelOutput
func (*LanguageModel) ToLanguageModelOutputWithContext ¶
func (i *LanguageModel) ToLanguageModelOutputWithContext(ctx context.Context) LanguageModelOutput
type LanguageModelArgs ¶
type LanguageModelArgs struct { // Name of reference base model. BaseModelName pulumi.StringInput // The input data config for the LanguageModel. See Input Data Config for more details. InputDataConfig LanguageModelInputDataConfigInput // The language code you selected for your language model. Refer to the [supported languages](https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html) page for accepted codes. LanguageCode pulumi.StringInput // The model name. ModelName pulumi.StringInput Tags pulumi.StringMapInput }
The set of arguments for constructing a LanguageModel resource.
func (LanguageModelArgs) ElementType ¶
func (LanguageModelArgs) ElementType() reflect.Type
type LanguageModelArray ¶
type LanguageModelArray []LanguageModelInput
func (LanguageModelArray) ElementType ¶
func (LanguageModelArray) ElementType() reflect.Type
func (LanguageModelArray) ToLanguageModelArrayOutput ¶
func (i LanguageModelArray) ToLanguageModelArrayOutput() LanguageModelArrayOutput
func (LanguageModelArray) ToLanguageModelArrayOutputWithContext ¶
func (i LanguageModelArray) ToLanguageModelArrayOutputWithContext(ctx context.Context) LanguageModelArrayOutput
type LanguageModelArrayInput ¶
type LanguageModelArrayInput interface { pulumi.Input ToLanguageModelArrayOutput() LanguageModelArrayOutput ToLanguageModelArrayOutputWithContext(context.Context) LanguageModelArrayOutput }
LanguageModelArrayInput is an input type that accepts LanguageModelArray and LanguageModelArrayOutput values. You can construct a concrete instance of `LanguageModelArrayInput` via:
LanguageModelArray{ LanguageModelArgs{...} }
type LanguageModelArrayOutput ¶
type LanguageModelArrayOutput struct{ *pulumi.OutputState }
func (LanguageModelArrayOutput) ElementType ¶
func (LanguageModelArrayOutput) ElementType() reflect.Type
func (LanguageModelArrayOutput) Index ¶
func (o LanguageModelArrayOutput) Index(i pulumi.IntInput) LanguageModelOutput
func (LanguageModelArrayOutput) ToLanguageModelArrayOutput ¶
func (o LanguageModelArrayOutput) ToLanguageModelArrayOutput() LanguageModelArrayOutput
func (LanguageModelArrayOutput) ToLanguageModelArrayOutputWithContext ¶
func (o LanguageModelArrayOutput) ToLanguageModelArrayOutputWithContext(ctx context.Context) LanguageModelArrayOutput
type LanguageModelInput ¶
type LanguageModelInput interface { pulumi.Input ToLanguageModelOutput() LanguageModelOutput ToLanguageModelOutputWithContext(ctx context.Context) LanguageModelOutput }
type LanguageModelInputDataConfig ¶
type LanguageModelInputDataConfig struct { // IAM role with access to S3 bucket. DataAccessRoleArn string `pulumi:"dataAccessRoleArn"` // S3 URI where training data is located. S3Uri string `pulumi:"s3Uri"` // S3 URI where tuning data is located. // // The following arguments are optional: TuningDataS3Uri *string `pulumi:"tuningDataS3Uri"` }
type LanguageModelInputDataConfigArgs ¶
type LanguageModelInputDataConfigArgs struct { // IAM role with access to S3 bucket. DataAccessRoleArn pulumi.StringInput `pulumi:"dataAccessRoleArn"` // S3 URI where training data is located. S3Uri pulumi.StringInput `pulumi:"s3Uri"` // S3 URI where tuning data is located. // // The following arguments are optional: TuningDataS3Uri pulumi.StringPtrInput `pulumi:"tuningDataS3Uri"` }
func (LanguageModelInputDataConfigArgs) ElementType ¶
func (LanguageModelInputDataConfigArgs) ElementType() reflect.Type
func (LanguageModelInputDataConfigArgs) ToLanguageModelInputDataConfigOutput ¶
func (i LanguageModelInputDataConfigArgs) ToLanguageModelInputDataConfigOutput() LanguageModelInputDataConfigOutput
func (LanguageModelInputDataConfigArgs) ToLanguageModelInputDataConfigOutputWithContext ¶
func (i LanguageModelInputDataConfigArgs) ToLanguageModelInputDataConfigOutputWithContext(ctx context.Context) LanguageModelInputDataConfigOutput
func (LanguageModelInputDataConfigArgs) ToLanguageModelInputDataConfigPtrOutput ¶
func (i LanguageModelInputDataConfigArgs) ToLanguageModelInputDataConfigPtrOutput() LanguageModelInputDataConfigPtrOutput
func (LanguageModelInputDataConfigArgs) ToLanguageModelInputDataConfigPtrOutputWithContext ¶
func (i LanguageModelInputDataConfigArgs) ToLanguageModelInputDataConfigPtrOutputWithContext(ctx context.Context) LanguageModelInputDataConfigPtrOutput
type LanguageModelInputDataConfigInput ¶
type LanguageModelInputDataConfigInput interface { pulumi.Input ToLanguageModelInputDataConfigOutput() LanguageModelInputDataConfigOutput ToLanguageModelInputDataConfigOutputWithContext(context.Context) LanguageModelInputDataConfigOutput }
LanguageModelInputDataConfigInput is an input type that accepts LanguageModelInputDataConfigArgs and LanguageModelInputDataConfigOutput values. You can construct a concrete instance of `LanguageModelInputDataConfigInput` via:
LanguageModelInputDataConfigArgs{...}
type LanguageModelInputDataConfigOutput ¶
type LanguageModelInputDataConfigOutput struct{ *pulumi.OutputState }
func (LanguageModelInputDataConfigOutput) DataAccessRoleArn ¶
func (o LanguageModelInputDataConfigOutput) DataAccessRoleArn() pulumi.StringOutput
IAM role with access to S3 bucket.
func (LanguageModelInputDataConfigOutput) ElementType ¶
func (LanguageModelInputDataConfigOutput) ElementType() reflect.Type
func (LanguageModelInputDataConfigOutput) S3Uri ¶
func (o LanguageModelInputDataConfigOutput) S3Uri() pulumi.StringOutput
S3 URI where training data is located.
func (LanguageModelInputDataConfigOutput) ToLanguageModelInputDataConfigOutput ¶
func (o LanguageModelInputDataConfigOutput) ToLanguageModelInputDataConfigOutput() LanguageModelInputDataConfigOutput
func (LanguageModelInputDataConfigOutput) ToLanguageModelInputDataConfigOutputWithContext ¶
func (o LanguageModelInputDataConfigOutput) ToLanguageModelInputDataConfigOutputWithContext(ctx context.Context) LanguageModelInputDataConfigOutput
func (LanguageModelInputDataConfigOutput) ToLanguageModelInputDataConfigPtrOutput ¶
func (o LanguageModelInputDataConfigOutput) ToLanguageModelInputDataConfigPtrOutput() LanguageModelInputDataConfigPtrOutput
func (LanguageModelInputDataConfigOutput) ToLanguageModelInputDataConfigPtrOutputWithContext ¶
func (o LanguageModelInputDataConfigOutput) ToLanguageModelInputDataConfigPtrOutputWithContext(ctx context.Context) LanguageModelInputDataConfigPtrOutput
func (LanguageModelInputDataConfigOutput) TuningDataS3Uri ¶
func (o LanguageModelInputDataConfigOutput) TuningDataS3Uri() pulumi.StringPtrOutput
S3 URI where tuning data is located.
The following arguments are optional:
type LanguageModelInputDataConfigPtrInput ¶
type LanguageModelInputDataConfigPtrInput interface { pulumi.Input ToLanguageModelInputDataConfigPtrOutput() LanguageModelInputDataConfigPtrOutput ToLanguageModelInputDataConfigPtrOutputWithContext(context.Context) LanguageModelInputDataConfigPtrOutput }
LanguageModelInputDataConfigPtrInput is an input type that accepts LanguageModelInputDataConfigArgs, LanguageModelInputDataConfigPtr and LanguageModelInputDataConfigPtrOutput values. You can construct a concrete instance of `LanguageModelInputDataConfigPtrInput` via:
LanguageModelInputDataConfigArgs{...} or: nil
func LanguageModelInputDataConfigPtr ¶
func LanguageModelInputDataConfigPtr(v *LanguageModelInputDataConfigArgs) LanguageModelInputDataConfigPtrInput
type LanguageModelInputDataConfigPtrOutput ¶
type LanguageModelInputDataConfigPtrOutput struct{ *pulumi.OutputState }
func (LanguageModelInputDataConfigPtrOutput) DataAccessRoleArn ¶
func (o LanguageModelInputDataConfigPtrOutput) DataAccessRoleArn() pulumi.StringPtrOutput
IAM role with access to S3 bucket.
func (LanguageModelInputDataConfigPtrOutput) ElementType ¶
func (LanguageModelInputDataConfigPtrOutput) ElementType() reflect.Type
func (LanguageModelInputDataConfigPtrOutput) S3Uri ¶
func (o LanguageModelInputDataConfigPtrOutput) S3Uri() pulumi.StringPtrOutput
S3 URI where training data is located.
func (LanguageModelInputDataConfigPtrOutput) ToLanguageModelInputDataConfigPtrOutput ¶
func (o LanguageModelInputDataConfigPtrOutput) ToLanguageModelInputDataConfigPtrOutput() LanguageModelInputDataConfigPtrOutput
func (LanguageModelInputDataConfigPtrOutput) ToLanguageModelInputDataConfigPtrOutputWithContext ¶
func (o LanguageModelInputDataConfigPtrOutput) ToLanguageModelInputDataConfigPtrOutputWithContext(ctx context.Context) LanguageModelInputDataConfigPtrOutput
func (LanguageModelInputDataConfigPtrOutput) TuningDataS3Uri ¶
func (o LanguageModelInputDataConfigPtrOutput) TuningDataS3Uri() pulumi.StringPtrOutput
S3 URI where tuning data is located.
The following arguments are optional:
type LanguageModelMap ¶
type LanguageModelMap map[string]LanguageModelInput
func (LanguageModelMap) ElementType ¶
func (LanguageModelMap) ElementType() reflect.Type
func (LanguageModelMap) ToLanguageModelMapOutput ¶
func (i LanguageModelMap) ToLanguageModelMapOutput() LanguageModelMapOutput
func (LanguageModelMap) ToLanguageModelMapOutputWithContext ¶
func (i LanguageModelMap) ToLanguageModelMapOutputWithContext(ctx context.Context) LanguageModelMapOutput
type LanguageModelMapInput ¶
type LanguageModelMapInput interface { pulumi.Input ToLanguageModelMapOutput() LanguageModelMapOutput ToLanguageModelMapOutputWithContext(context.Context) LanguageModelMapOutput }
LanguageModelMapInput is an input type that accepts LanguageModelMap and LanguageModelMapOutput values. You can construct a concrete instance of `LanguageModelMapInput` via:
LanguageModelMap{ "key": LanguageModelArgs{...} }
type LanguageModelMapOutput ¶
type LanguageModelMapOutput struct{ *pulumi.OutputState }
func (LanguageModelMapOutput) ElementType ¶
func (LanguageModelMapOutput) ElementType() reflect.Type
func (LanguageModelMapOutput) MapIndex ¶
func (o LanguageModelMapOutput) MapIndex(k pulumi.StringInput) LanguageModelOutput
func (LanguageModelMapOutput) ToLanguageModelMapOutput ¶
func (o LanguageModelMapOutput) ToLanguageModelMapOutput() LanguageModelMapOutput
func (LanguageModelMapOutput) ToLanguageModelMapOutputWithContext ¶
func (o LanguageModelMapOutput) ToLanguageModelMapOutputWithContext(ctx context.Context) LanguageModelMapOutput
type LanguageModelOutput ¶
type LanguageModelOutput struct{ *pulumi.OutputState }
func (LanguageModelOutput) Arn ¶
func (o LanguageModelOutput) Arn() pulumi.StringOutput
ARN of the LanguageModel.
func (LanguageModelOutput) BaseModelName ¶
func (o LanguageModelOutput) BaseModelName() pulumi.StringOutput
Name of reference base model.
func (LanguageModelOutput) ElementType ¶
func (LanguageModelOutput) ElementType() reflect.Type
func (LanguageModelOutput) InputDataConfig ¶
func (o LanguageModelOutput) InputDataConfig() LanguageModelInputDataConfigOutput
The input data config for the LanguageModel. See Input Data Config for more details.
func (LanguageModelOutput) LanguageCode ¶
func (o LanguageModelOutput) LanguageCode() pulumi.StringOutput
The language code you selected for your language model. Refer to the [supported languages](https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html) page for accepted codes.
func (LanguageModelOutput) ModelName ¶
func (o LanguageModelOutput) ModelName() pulumi.StringOutput
The model name.
func (LanguageModelOutput) Tags ¶
func (o LanguageModelOutput) Tags() pulumi.StringMapOutput
func (LanguageModelOutput) TagsAll
deprecated
func (o LanguageModelOutput) TagsAll() pulumi.StringMapOutput
Deprecated: Please use `tags` instead.
func (LanguageModelOutput) ToLanguageModelOutput ¶
func (o LanguageModelOutput) ToLanguageModelOutput() LanguageModelOutput
func (LanguageModelOutput) ToLanguageModelOutputWithContext ¶
func (o LanguageModelOutput) ToLanguageModelOutputWithContext(ctx context.Context) LanguageModelOutput
type LanguageModelState ¶
type LanguageModelState struct { // ARN of the LanguageModel. Arn pulumi.StringPtrInput // Name of reference base model. BaseModelName pulumi.StringPtrInput // The input data config for the LanguageModel. See Input Data Config for more details. InputDataConfig LanguageModelInputDataConfigPtrInput // The language code you selected for your language model. Refer to the [supported languages](https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html) page for accepted codes. LanguageCode pulumi.StringPtrInput // The model name. ModelName pulumi.StringPtrInput Tags pulumi.StringMapInput // Deprecated: Please use `tags` instead. TagsAll pulumi.StringMapInput }
func (LanguageModelState) ElementType ¶
func (LanguageModelState) ElementType() reflect.Type
type MedicalVocabulary ¶
type MedicalVocabulary struct { pulumi.CustomResourceState // ARN of the MedicalVocabulary. Arn pulumi.StringOutput `pulumi:"arn"` // Generated download URI. DownloadUri pulumi.StringOutput `pulumi:"downloadUri"` // The language code you selected for your medical vocabulary. US English (en-US) is the only language supported with Amazon Transcribe Medical. LanguageCode pulumi.StringOutput `pulumi:"languageCode"` // A map of tags to assign to the MedicalVocabulary. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags pulumi.StringMapOutput `pulumi:"tags"` // Deprecated: Please use `tags` instead. TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"` // The Amazon S3 location (URI) of the text file that contains your custom medical vocabulary. VocabularyFileUri pulumi.StringOutput `pulumi:"vocabularyFileUri"` // The name of the Medical Vocabulary. // // The following arguments are optional: VocabularyName pulumi.StringOutput `pulumi:"vocabularyName"` }
Resource for managing an AWS Transcribe MedicalVocabulary.
## Example Usage
### Basic Usage
```go package main
import (
"fmt" "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/s3" "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 { example, err := s3.NewBucketV2(ctx, "example", &s3.BucketV2Args{ Bucket: pulumi.String("example-medical-vocab-123"), ForceDestroy: pulumi.Bool(true), }) if err != nil { return err } object, err := s3.NewBucketObjectv2(ctx, "object", &s3.BucketObjectv2Args{ Bucket: example.ID(), Key: pulumi.String("transcribe/test1.txt"), Source: pulumi.NewFileAsset("test.txt"), }) if err != nil { return err } _, err = transcribe.NewMedicalVocabulary(ctx, "example", &transcribe.MedicalVocabularyArgs{ VocabularyName: pulumi.String("example"), LanguageCode: pulumi.String("en-US"), VocabularyFileUri: pulumi.All(example.ID(), object.Key).ApplyT(func(_args []interface{}) (string, error) { id := _args[0].(string) key := _args[1].(string) return fmt.Sprintf("s3://%v/%v", id, key), nil }).(pulumi.StringOutput), Tags: pulumi.StringMap{ "tag1": pulumi.String("value1"), "tag2": pulumi.String("value3"), }, }, pulumi.DependsOn([]pulumi.Resource{ object, })) if err != nil { return err } return nil }) }
```
## Import
Using `pulumi import`, import Transcribe MedicalVocabulary using the `vocabulary_name`. For example:
```sh $ pulumi import aws:transcribe/medicalVocabulary:MedicalVocabulary example example-name ```
func GetMedicalVocabulary ¶
func GetMedicalVocabulary(ctx *pulumi.Context, name string, id pulumi.IDInput, state *MedicalVocabularyState, opts ...pulumi.ResourceOption) (*MedicalVocabulary, error)
GetMedicalVocabulary gets an existing MedicalVocabulary resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewMedicalVocabulary ¶
func NewMedicalVocabulary(ctx *pulumi.Context, name string, args *MedicalVocabularyArgs, opts ...pulumi.ResourceOption) (*MedicalVocabulary, error)
NewMedicalVocabulary registers a new resource with the given unique name, arguments, and options.
func (*MedicalVocabulary) ElementType ¶
func (*MedicalVocabulary) ElementType() reflect.Type
func (*MedicalVocabulary) ToMedicalVocabularyOutput ¶
func (i *MedicalVocabulary) ToMedicalVocabularyOutput() MedicalVocabularyOutput
func (*MedicalVocabulary) ToMedicalVocabularyOutputWithContext ¶
func (i *MedicalVocabulary) ToMedicalVocabularyOutputWithContext(ctx context.Context) MedicalVocabularyOutput
type MedicalVocabularyArgs ¶
type MedicalVocabularyArgs struct { // The language code you selected for your medical vocabulary. US English (en-US) is the only language supported with Amazon Transcribe Medical. LanguageCode pulumi.StringInput // A map of tags to assign to the MedicalVocabulary. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags pulumi.StringMapInput // The Amazon S3 location (URI) of the text file that contains your custom medical vocabulary. VocabularyFileUri pulumi.StringInput // The name of the Medical Vocabulary. // // The following arguments are optional: VocabularyName pulumi.StringInput }
The set of arguments for constructing a MedicalVocabulary resource.
func (MedicalVocabularyArgs) ElementType ¶
func (MedicalVocabularyArgs) ElementType() reflect.Type
type MedicalVocabularyArray ¶
type MedicalVocabularyArray []MedicalVocabularyInput
func (MedicalVocabularyArray) ElementType ¶
func (MedicalVocabularyArray) ElementType() reflect.Type
func (MedicalVocabularyArray) ToMedicalVocabularyArrayOutput ¶
func (i MedicalVocabularyArray) ToMedicalVocabularyArrayOutput() MedicalVocabularyArrayOutput
func (MedicalVocabularyArray) ToMedicalVocabularyArrayOutputWithContext ¶
func (i MedicalVocabularyArray) ToMedicalVocabularyArrayOutputWithContext(ctx context.Context) MedicalVocabularyArrayOutput
type MedicalVocabularyArrayInput ¶
type MedicalVocabularyArrayInput interface { pulumi.Input ToMedicalVocabularyArrayOutput() MedicalVocabularyArrayOutput ToMedicalVocabularyArrayOutputWithContext(context.Context) MedicalVocabularyArrayOutput }
MedicalVocabularyArrayInput is an input type that accepts MedicalVocabularyArray and MedicalVocabularyArrayOutput values. You can construct a concrete instance of `MedicalVocabularyArrayInput` via:
MedicalVocabularyArray{ MedicalVocabularyArgs{...} }
type MedicalVocabularyArrayOutput ¶
type MedicalVocabularyArrayOutput struct{ *pulumi.OutputState }
func (MedicalVocabularyArrayOutput) ElementType ¶
func (MedicalVocabularyArrayOutput) ElementType() reflect.Type
func (MedicalVocabularyArrayOutput) Index ¶
func (o MedicalVocabularyArrayOutput) Index(i pulumi.IntInput) MedicalVocabularyOutput
func (MedicalVocabularyArrayOutput) ToMedicalVocabularyArrayOutput ¶
func (o MedicalVocabularyArrayOutput) ToMedicalVocabularyArrayOutput() MedicalVocabularyArrayOutput
func (MedicalVocabularyArrayOutput) ToMedicalVocabularyArrayOutputWithContext ¶
func (o MedicalVocabularyArrayOutput) ToMedicalVocabularyArrayOutputWithContext(ctx context.Context) MedicalVocabularyArrayOutput
type MedicalVocabularyInput ¶
type MedicalVocabularyInput interface { pulumi.Input ToMedicalVocabularyOutput() MedicalVocabularyOutput ToMedicalVocabularyOutputWithContext(ctx context.Context) MedicalVocabularyOutput }
type MedicalVocabularyMap ¶
type MedicalVocabularyMap map[string]MedicalVocabularyInput
func (MedicalVocabularyMap) ElementType ¶
func (MedicalVocabularyMap) ElementType() reflect.Type
func (MedicalVocabularyMap) ToMedicalVocabularyMapOutput ¶
func (i MedicalVocabularyMap) ToMedicalVocabularyMapOutput() MedicalVocabularyMapOutput
func (MedicalVocabularyMap) ToMedicalVocabularyMapOutputWithContext ¶
func (i MedicalVocabularyMap) ToMedicalVocabularyMapOutputWithContext(ctx context.Context) MedicalVocabularyMapOutput
type MedicalVocabularyMapInput ¶
type MedicalVocabularyMapInput interface { pulumi.Input ToMedicalVocabularyMapOutput() MedicalVocabularyMapOutput ToMedicalVocabularyMapOutputWithContext(context.Context) MedicalVocabularyMapOutput }
MedicalVocabularyMapInput is an input type that accepts MedicalVocabularyMap and MedicalVocabularyMapOutput values. You can construct a concrete instance of `MedicalVocabularyMapInput` via:
MedicalVocabularyMap{ "key": MedicalVocabularyArgs{...} }
type MedicalVocabularyMapOutput ¶
type MedicalVocabularyMapOutput struct{ *pulumi.OutputState }
func (MedicalVocabularyMapOutput) ElementType ¶
func (MedicalVocabularyMapOutput) ElementType() reflect.Type
func (MedicalVocabularyMapOutput) MapIndex ¶
func (o MedicalVocabularyMapOutput) MapIndex(k pulumi.StringInput) MedicalVocabularyOutput
func (MedicalVocabularyMapOutput) ToMedicalVocabularyMapOutput ¶
func (o MedicalVocabularyMapOutput) ToMedicalVocabularyMapOutput() MedicalVocabularyMapOutput
func (MedicalVocabularyMapOutput) ToMedicalVocabularyMapOutputWithContext ¶
func (o MedicalVocabularyMapOutput) ToMedicalVocabularyMapOutputWithContext(ctx context.Context) MedicalVocabularyMapOutput
type MedicalVocabularyOutput ¶
type MedicalVocabularyOutput struct{ *pulumi.OutputState }
func (MedicalVocabularyOutput) Arn ¶
func (o MedicalVocabularyOutput) Arn() pulumi.StringOutput
ARN of the MedicalVocabulary.
func (MedicalVocabularyOutput) DownloadUri ¶
func (o MedicalVocabularyOutput) DownloadUri() pulumi.StringOutput
Generated download URI.
func (MedicalVocabularyOutput) ElementType ¶
func (MedicalVocabularyOutput) ElementType() reflect.Type
func (MedicalVocabularyOutput) LanguageCode ¶
func (o MedicalVocabularyOutput) LanguageCode() pulumi.StringOutput
The language code you selected for your medical vocabulary. US English (en-US) is the only language supported with Amazon Transcribe Medical.
func (MedicalVocabularyOutput) Tags ¶
func (o MedicalVocabularyOutput) Tags() pulumi.StringMapOutput
A map of tags to assign to the MedicalVocabulary. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
func (MedicalVocabularyOutput) TagsAll
deprecated
func (o MedicalVocabularyOutput) TagsAll() pulumi.StringMapOutput
Deprecated: Please use `tags` instead.
func (MedicalVocabularyOutput) ToMedicalVocabularyOutput ¶
func (o MedicalVocabularyOutput) ToMedicalVocabularyOutput() MedicalVocabularyOutput
func (MedicalVocabularyOutput) ToMedicalVocabularyOutputWithContext ¶
func (o MedicalVocabularyOutput) ToMedicalVocabularyOutputWithContext(ctx context.Context) MedicalVocabularyOutput
func (MedicalVocabularyOutput) VocabularyFileUri ¶
func (o MedicalVocabularyOutput) VocabularyFileUri() pulumi.StringOutput
The Amazon S3 location (URI) of the text file that contains your custom medical vocabulary.
func (MedicalVocabularyOutput) VocabularyName ¶
func (o MedicalVocabularyOutput) VocabularyName() pulumi.StringOutput
The name of the Medical Vocabulary.
The following arguments are optional:
type MedicalVocabularyState ¶
type MedicalVocabularyState struct { // ARN of the MedicalVocabulary. Arn pulumi.StringPtrInput // Generated download URI. DownloadUri pulumi.StringPtrInput // The language code you selected for your medical vocabulary. US English (en-US) is the only language supported with Amazon Transcribe Medical. LanguageCode pulumi.StringPtrInput // A map of tags to assign to the MedicalVocabulary. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags pulumi.StringMapInput // Deprecated: Please use `tags` instead. TagsAll pulumi.StringMapInput // The Amazon S3 location (URI) of the text file that contains your custom medical vocabulary. VocabularyFileUri pulumi.StringPtrInput // The name of the Medical Vocabulary. // // The following arguments are optional: VocabularyName pulumi.StringPtrInput }
func (MedicalVocabularyState) ElementType ¶
func (MedicalVocabularyState) ElementType() reflect.Type
type Vocabulary ¶
type Vocabulary struct { pulumi.CustomResourceState // ARN of the Vocabulary. Arn pulumi.StringOutput `pulumi:"arn"` // Generated download URI. DownloadUri pulumi.StringOutput `pulumi:"downloadUri"` // The language code you selected for your vocabulary. LanguageCode pulumi.StringOutput `pulumi:"languageCode"` // A list of terms to include in the vocabulary. Conflicts with `vocabularyFileUri` Phrases pulumi.StringArrayOutput `pulumi:"phrases"` // A map of tags to assign to the Vocabulary. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags pulumi.StringMapOutput `pulumi:"tags"` // Deprecated: Please use `tags` instead. TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"` // The Amazon S3 location (URI) of the text file that contains your custom vocabulary. Conflicts wth `phrases`. VocabularyFileUri pulumi.StringOutput `pulumi:"vocabularyFileUri"` // The name of the Vocabulary. // // The following arguments are optional: VocabularyName pulumi.StringOutput `pulumi:"vocabularyName"` }
Resource for managing an AWS Transcribe Vocabulary.
## Example Usage
### Basic Usage
```go package main
import (
"fmt" "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/s3" "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 { example, err := s3.NewBucketV2(ctx, "example", &s3.BucketV2Args{ Bucket: pulumi.String("example-vocab-123"), ForceDestroy: pulumi.Bool(true), }) if err != nil { return err } object, err := s3.NewBucketObjectv2(ctx, "object", &s3.BucketObjectv2Args{ Bucket: example.ID(), Key: pulumi.String("transcribe/test1.txt"), Source: pulumi.NewFileAsset("test.txt"), }) if err != nil { return err } _, err = transcribe.NewVocabulary(ctx, "example", &transcribe.VocabularyArgs{ VocabularyName: pulumi.String("example"), LanguageCode: pulumi.String("en-US"), VocabularyFileUri: pulumi.All(example.ID(), object.Key).ApplyT(func(_args []interface{}) (string, error) { id := _args[0].(string) key := _args[1].(string) return fmt.Sprintf("s3://%v/%v", id, key), nil }).(pulumi.StringOutput), Tags: pulumi.StringMap{ "tag1": pulumi.String("value1"), "tag2": pulumi.String("value3"), }, }, pulumi.DependsOn([]pulumi.Resource{ object, })) if err != nil { return err } return nil }) }
```
## Import
Using `pulumi import`, import Transcribe Vocabulary using the `vocabulary_name`. For example:
```sh $ pulumi import aws:transcribe/vocabulary:Vocabulary example example-name ```
func GetVocabulary ¶
func GetVocabulary(ctx *pulumi.Context, name string, id pulumi.IDInput, state *VocabularyState, opts ...pulumi.ResourceOption) (*Vocabulary, error)
GetVocabulary gets an existing Vocabulary resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewVocabulary ¶
func NewVocabulary(ctx *pulumi.Context, name string, args *VocabularyArgs, opts ...pulumi.ResourceOption) (*Vocabulary, error)
NewVocabulary registers a new resource with the given unique name, arguments, and options.
func (*Vocabulary) ElementType ¶
func (*Vocabulary) ElementType() reflect.Type
func (*Vocabulary) ToVocabularyOutput ¶
func (i *Vocabulary) ToVocabularyOutput() VocabularyOutput
func (*Vocabulary) ToVocabularyOutputWithContext ¶
func (i *Vocabulary) ToVocabularyOutputWithContext(ctx context.Context) VocabularyOutput
type VocabularyArgs ¶
type VocabularyArgs struct { // The language code you selected for your vocabulary. LanguageCode pulumi.StringInput // A list of terms to include in the vocabulary. Conflicts with `vocabularyFileUri` Phrases pulumi.StringArrayInput // A map of tags to assign to the Vocabulary. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags pulumi.StringMapInput // The Amazon S3 location (URI) of the text file that contains your custom vocabulary. Conflicts wth `phrases`. VocabularyFileUri pulumi.StringPtrInput // The name of the Vocabulary. // // The following arguments are optional: VocabularyName pulumi.StringInput }
The set of arguments for constructing a Vocabulary resource.
func (VocabularyArgs) ElementType ¶
func (VocabularyArgs) ElementType() reflect.Type
type VocabularyArray ¶
type VocabularyArray []VocabularyInput
func (VocabularyArray) ElementType ¶
func (VocabularyArray) ElementType() reflect.Type
func (VocabularyArray) ToVocabularyArrayOutput ¶
func (i VocabularyArray) ToVocabularyArrayOutput() VocabularyArrayOutput
func (VocabularyArray) ToVocabularyArrayOutputWithContext ¶
func (i VocabularyArray) ToVocabularyArrayOutputWithContext(ctx context.Context) VocabularyArrayOutput
type VocabularyArrayInput ¶
type VocabularyArrayInput interface { pulumi.Input ToVocabularyArrayOutput() VocabularyArrayOutput ToVocabularyArrayOutputWithContext(context.Context) VocabularyArrayOutput }
VocabularyArrayInput is an input type that accepts VocabularyArray and VocabularyArrayOutput values. You can construct a concrete instance of `VocabularyArrayInput` via:
VocabularyArray{ VocabularyArgs{...} }
type VocabularyArrayOutput ¶
type VocabularyArrayOutput struct{ *pulumi.OutputState }
func (VocabularyArrayOutput) ElementType ¶
func (VocabularyArrayOutput) ElementType() reflect.Type
func (VocabularyArrayOutput) Index ¶
func (o VocabularyArrayOutput) Index(i pulumi.IntInput) VocabularyOutput
func (VocabularyArrayOutput) ToVocabularyArrayOutput ¶
func (o VocabularyArrayOutput) ToVocabularyArrayOutput() VocabularyArrayOutput
func (VocabularyArrayOutput) ToVocabularyArrayOutputWithContext ¶
func (o VocabularyArrayOutput) ToVocabularyArrayOutputWithContext(ctx context.Context) VocabularyArrayOutput
type VocabularyFilter ¶
type VocabularyFilter struct { pulumi.CustomResourceState // ARN of the VocabularyFilter. Arn pulumi.StringOutput `pulumi:"arn"` // Generated download URI. DownloadUri pulumi.StringOutput `pulumi:"downloadUri"` // The language code you selected for your vocabulary filter. Refer to the [supported languages](https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html) page for accepted codes. LanguageCode pulumi.StringOutput `pulumi:"languageCode"` // A map of tags to assign to the VocabularyFilter. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags pulumi.StringMapOutput `pulumi:"tags"` // Deprecated: Please use `tags` instead. TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"` // The Amazon S3 location (URI) of the text file that contains your custom VocabularyFilter. Conflicts with `words` argument. VocabularyFilterFileUri pulumi.StringPtrOutput `pulumi:"vocabularyFilterFileUri"` // The name of the VocabularyFilter. // // The following arguments are optional: VocabularyFilterName pulumi.StringOutput `pulumi:"vocabularyFilterName"` // A list of terms to include in the vocabulary. Conflicts with `vocabularyFilterFileUri` argument. Words pulumi.StringArrayOutput `pulumi:"words"` }
Resource for managing an AWS Transcribe VocabularyFilter.
## Example Usage
### Basic Usage
```go 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 }) }
```
## Import
Using `pulumi import`, import Transcribe VocabularyFilter using the `vocabulary_filter_name`. For example:
```sh $ pulumi import aws:transcribe/vocabularyFilter:VocabularyFilter example example-name ```
func GetVocabularyFilter ¶
func GetVocabularyFilter(ctx *pulumi.Context, name string, id pulumi.IDInput, state *VocabularyFilterState, opts ...pulumi.ResourceOption) (*VocabularyFilter, error)
GetVocabularyFilter gets an existing VocabularyFilter resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewVocabularyFilter ¶
func NewVocabularyFilter(ctx *pulumi.Context, name string, args *VocabularyFilterArgs, opts ...pulumi.ResourceOption) (*VocabularyFilter, error)
NewVocabularyFilter registers a new resource with the given unique name, arguments, and options.
func (*VocabularyFilter) ElementType ¶
func (*VocabularyFilter) ElementType() reflect.Type
func (*VocabularyFilter) ToVocabularyFilterOutput ¶
func (i *VocabularyFilter) ToVocabularyFilterOutput() VocabularyFilterOutput
func (*VocabularyFilter) ToVocabularyFilterOutputWithContext ¶
func (i *VocabularyFilter) ToVocabularyFilterOutputWithContext(ctx context.Context) VocabularyFilterOutput
type VocabularyFilterArgs ¶
type VocabularyFilterArgs struct { // The language code you selected for your vocabulary filter. Refer to the [supported languages](https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html) page for accepted codes. LanguageCode pulumi.StringInput // A map of tags to assign to the VocabularyFilter. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags pulumi.StringMapInput // The Amazon S3 location (URI) of the text file that contains your custom VocabularyFilter. Conflicts with `words` argument. VocabularyFilterFileUri pulumi.StringPtrInput // The name of the VocabularyFilter. // // The following arguments are optional: VocabularyFilterName pulumi.StringInput // A list of terms to include in the vocabulary. Conflicts with `vocabularyFilterFileUri` argument. Words pulumi.StringArrayInput }
The set of arguments for constructing a VocabularyFilter resource.
func (VocabularyFilterArgs) ElementType ¶
func (VocabularyFilterArgs) ElementType() reflect.Type
type VocabularyFilterArray ¶
type VocabularyFilterArray []VocabularyFilterInput
func (VocabularyFilterArray) ElementType ¶
func (VocabularyFilterArray) ElementType() reflect.Type
func (VocabularyFilterArray) ToVocabularyFilterArrayOutput ¶
func (i VocabularyFilterArray) ToVocabularyFilterArrayOutput() VocabularyFilterArrayOutput
func (VocabularyFilterArray) ToVocabularyFilterArrayOutputWithContext ¶
func (i VocabularyFilterArray) ToVocabularyFilterArrayOutputWithContext(ctx context.Context) VocabularyFilterArrayOutput
type VocabularyFilterArrayInput ¶
type VocabularyFilterArrayInput interface { pulumi.Input ToVocabularyFilterArrayOutput() VocabularyFilterArrayOutput ToVocabularyFilterArrayOutputWithContext(context.Context) VocabularyFilterArrayOutput }
VocabularyFilterArrayInput is an input type that accepts VocabularyFilterArray and VocabularyFilterArrayOutput values. You can construct a concrete instance of `VocabularyFilterArrayInput` via:
VocabularyFilterArray{ VocabularyFilterArgs{...} }
type VocabularyFilterArrayOutput ¶
type VocabularyFilterArrayOutput struct{ *pulumi.OutputState }
func (VocabularyFilterArrayOutput) ElementType ¶
func (VocabularyFilterArrayOutput) ElementType() reflect.Type
func (VocabularyFilterArrayOutput) Index ¶
func (o VocabularyFilterArrayOutput) Index(i pulumi.IntInput) VocabularyFilterOutput
func (VocabularyFilterArrayOutput) ToVocabularyFilterArrayOutput ¶
func (o VocabularyFilterArrayOutput) ToVocabularyFilterArrayOutput() VocabularyFilterArrayOutput
func (VocabularyFilterArrayOutput) ToVocabularyFilterArrayOutputWithContext ¶
func (o VocabularyFilterArrayOutput) ToVocabularyFilterArrayOutputWithContext(ctx context.Context) VocabularyFilterArrayOutput
type VocabularyFilterInput ¶
type VocabularyFilterInput interface { pulumi.Input ToVocabularyFilterOutput() VocabularyFilterOutput ToVocabularyFilterOutputWithContext(ctx context.Context) VocabularyFilterOutput }
type VocabularyFilterMap ¶
type VocabularyFilterMap map[string]VocabularyFilterInput
func (VocabularyFilterMap) ElementType ¶
func (VocabularyFilterMap) ElementType() reflect.Type
func (VocabularyFilterMap) ToVocabularyFilterMapOutput ¶
func (i VocabularyFilterMap) ToVocabularyFilterMapOutput() VocabularyFilterMapOutput
func (VocabularyFilterMap) ToVocabularyFilterMapOutputWithContext ¶
func (i VocabularyFilterMap) ToVocabularyFilterMapOutputWithContext(ctx context.Context) VocabularyFilterMapOutput
type VocabularyFilterMapInput ¶
type VocabularyFilterMapInput interface { pulumi.Input ToVocabularyFilterMapOutput() VocabularyFilterMapOutput ToVocabularyFilterMapOutputWithContext(context.Context) VocabularyFilterMapOutput }
VocabularyFilterMapInput is an input type that accepts VocabularyFilterMap and VocabularyFilterMapOutput values. You can construct a concrete instance of `VocabularyFilterMapInput` via:
VocabularyFilterMap{ "key": VocabularyFilterArgs{...} }
type VocabularyFilterMapOutput ¶
type VocabularyFilterMapOutput struct{ *pulumi.OutputState }
func (VocabularyFilterMapOutput) ElementType ¶
func (VocabularyFilterMapOutput) ElementType() reflect.Type
func (VocabularyFilterMapOutput) MapIndex ¶
func (o VocabularyFilterMapOutput) MapIndex(k pulumi.StringInput) VocabularyFilterOutput
func (VocabularyFilterMapOutput) ToVocabularyFilterMapOutput ¶
func (o VocabularyFilterMapOutput) ToVocabularyFilterMapOutput() VocabularyFilterMapOutput
func (VocabularyFilterMapOutput) ToVocabularyFilterMapOutputWithContext ¶
func (o VocabularyFilterMapOutput) ToVocabularyFilterMapOutputWithContext(ctx context.Context) VocabularyFilterMapOutput
type VocabularyFilterOutput ¶
type VocabularyFilterOutput struct{ *pulumi.OutputState }
func (VocabularyFilterOutput) Arn ¶
func (o VocabularyFilterOutput) Arn() pulumi.StringOutput
ARN of the VocabularyFilter.
func (VocabularyFilterOutput) DownloadUri ¶
func (o VocabularyFilterOutput) DownloadUri() pulumi.StringOutput
Generated download URI.
func (VocabularyFilterOutput) ElementType ¶
func (VocabularyFilterOutput) ElementType() reflect.Type
func (VocabularyFilterOutput) LanguageCode ¶
func (o VocabularyFilterOutput) LanguageCode() pulumi.StringOutput
The language code you selected for your vocabulary filter. Refer to the [supported languages](https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html) page for accepted codes.
func (VocabularyFilterOutput) Tags ¶
func (o VocabularyFilterOutput) Tags() pulumi.StringMapOutput
A map of tags to assign to the VocabularyFilter. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
func (VocabularyFilterOutput) TagsAll
deprecated
func (o VocabularyFilterOutput) TagsAll() pulumi.StringMapOutput
Deprecated: Please use `tags` instead.
func (VocabularyFilterOutput) ToVocabularyFilterOutput ¶
func (o VocabularyFilterOutput) ToVocabularyFilterOutput() VocabularyFilterOutput
func (VocabularyFilterOutput) ToVocabularyFilterOutputWithContext ¶
func (o VocabularyFilterOutput) ToVocabularyFilterOutputWithContext(ctx context.Context) VocabularyFilterOutput
func (VocabularyFilterOutput) VocabularyFilterFileUri ¶
func (o VocabularyFilterOutput) VocabularyFilterFileUri() pulumi.StringPtrOutput
The Amazon S3 location (URI) of the text file that contains your custom VocabularyFilter. Conflicts with `words` argument.
func (VocabularyFilterOutput) VocabularyFilterName ¶
func (o VocabularyFilterOutput) VocabularyFilterName() pulumi.StringOutput
The name of the VocabularyFilter.
The following arguments are optional:
func (VocabularyFilterOutput) Words ¶
func (o VocabularyFilterOutput) Words() pulumi.StringArrayOutput
A list of terms to include in the vocabulary. Conflicts with `vocabularyFilterFileUri` argument.
type VocabularyFilterState ¶
type VocabularyFilterState struct { // ARN of the VocabularyFilter. Arn pulumi.StringPtrInput // Generated download URI. DownloadUri pulumi.StringPtrInput // The language code you selected for your vocabulary filter. Refer to the [supported languages](https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html) page for accepted codes. LanguageCode pulumi.StringPtrInput // A map of tags to assign to the VocabularyFilter. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags pulumi.StringMapInput // Deprecated: Please use `tags` instead. TagsAll pulumi.StringMapInput // The Amazon S3 location (URI) of the text file that contains your custom VocabularyFilter. Conflicts with `words` argument. VocabularyFilterFileUri pulumi.StringPtrInput // The name of the VocabularyFilter. // // The following arguments are optional: VocabularyFilterName pulumi.StringPtrInput // A list of terms to include in the vocabulary. Conflicts with `vocabularyFilterFileUri` argument. Words pulumi.StringArrayInput }
func (VocabularyFilterState) ElementType ¶
func (VocabularyFilterState) ElementType() reflect.Type
type VocabularyInput ¶
type VocabularyInput interface { pulumi.Input ToVocabularyOutput() VocabularyOutput ToVocabularyOutputWithContext(ctx context.Context) VocabularyOutput }
type VocabularyMap ¶
type VocabularyMap map[string]VocabularyInput
func (VocabularyMap) ElementType ¶
func (VocabularyMap) ElementType() reflect.Type
func (VocabularyMap) ToVocabularyMapOutput ¶
func (i VocabularyMap) ToVocabularyMapOutput() VocabularyMapOutput
func (VocabularyMap) ToVocabularyMapOutputWithContext ¶
func (i VocabularyMap) ToVocabularyMapOutputWithContext(ctx context.Context) VocabularyMapOutput
type VocabularyMapInput ¶
type VocabularyMapInput interface { pulumi.Input ToVocabularyMapOutput() VocabularyMapOutput ToVocabularyMapOutputWithContext(context.Context) VocabularyMapOutput }
VocabularyMapInput is an input type that accepts VocabularyMap and VocabularyMapOutput values. You can construct a concrete instance of `VocabularyMapInput` via:
VocabularyMap{ "key": VocabularyArgs{...} }
type VocabularyMapOutput ¶
type VocabularyMapOutput struct{ *pulumi.OutputState }
func (VocabularyMapOutput) ElementType ¶
func (VocabularyMapOutput) ElementType() reflect.Type
func (VocabularyMapOutput) MapIndex ¶
func (o VocabularyMapOutput) MapIndex(k pulumi.StringInput) VocabularyOutput
func (VocabularyMapOutput) ToVocabularyMapOutput ¶
func (o VocabularyMapOutput) ToVocabularyMapOutput() VocabularyMapOutput
func (VocabularyMapOutput) ToVocabularyMapOutputWithContext ¶
func (o VocabularyMapOutput) ToVocabularyMapOutputWithContext(ctx context.Context) VocabularyMapOutput
type VocabularyOutput ¶
type VocabularyOutput struct{ *pulumi.OutputState }
func (VocabularyOutput) Arn ¶
func (o VocabularyOutput) Arn() pulumi.StringOutput
ARN of the Vocabulary.
func (VocabularyOutput) DownloadUri ¶
func (o VocabularyOutput) DownloadUri() pulumi.StringOutput
Generated download URI.
func (VocabularyOutput) ElementType ¶
func (VocabularyOutput) ElementType() reflect.Type
func (VocabularyOutput) LanguageCode ¶
func (o VocabularyOutput) LanguageCode() pulumi.StringOutput
The language code you selected for your vocabulary.
func (VocabularyOutput) Phrases ¶
func (o VocabularyOutput) Phrases() pulumi.StringArrayOutput
A list of terms to include in the vocabulary. Conflicts with `vocabularyFileUri`
func (VocabularyOutput) Tags ¶
func (o VocabularyOutput) Tags() pulumi.StringMapOutput
A map of tags to assign to the Vocabulary. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
func (VocabularyOutput) TagsAll
deprecated
func (o VocabularyOutput) TagsAll() pulumi.StringMapOutput
Deprecated: Please use `tags` instead.
func (VocabularyOutput) ToVocabularyOutput ¶
func (o VocabularyOutput) ToVocabularyOutput() VocabularyOutput
func (VocabularyOutput) ToVocabularyOutputWithContext ¶
func (o VocabularyOutput) ToVocabularyOutputWithContext(ctx context.Context) VocabularyOutput
func (VocabularyOutput) VocabularyFileUri ¶
func (o VocabularyOutput) VocabularyFileUri() pulumi.StringOutput
The Amazon S3 location (URI) of the text file that contains your custom vocabulary. Conflicts wth `phrases`.
func (VocabularyOutput) VocabularyName ¶
func (o VocabularyOutput) VocabularyName() pulumi.StringOutput
The name of the Vocabulary.
The following arguments are optional:
type VocabularyState ¶
type VocabularyState struct { // ARN of the Vocabulary. Arn pulumi.StringPtrInput // Generated download URI. DownloadUri pulumi.StringPtrInput // The language code you selected for your vocabulary. LanguageCode pulumi.StringPtrInput // A list of terms to include in the vocabulary. Conflicts with `vocabularyFileUri` Phrases pulumi.StringArrayInput // A map of tags to assign to the Vocabulary. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags pulumi.StringMapInput // Deprecated: Please use `tags` instead. TagsAll pulumi.StringMapInput // The Amazon S3 location (URI) of the text file that contains your custom vocabulary. Conflicts wth `phrases`. VocabularyFileUri pulumi.StringPtrInput // The name of the Vocabulary. // // The following arguments are optional: VocabularyName pulumi.StringPtrInput }
func (VocabularyState) ElementType ¶
func (VocabularyState) ElementType() reflect.Type