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.StringMapOutput
- 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.StringMapOutput
- 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.StringMapOutput
- 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.StringMapOutput
- 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 ¶ added in v5.11.0
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"`
// A map of tags to assign to the LanguageModel. 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"`
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/v5/go/aws/iam" "github.com/pulumi/pulumi-aws/sdk/v5/go/aws/s3" "github.com/pulumi/pulumi-aws/sdk/v5/go/aws/transcribe" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
examplePolicyDocument, 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, "exampleRole", &iam.RoleArgs{
AssumeRolePolicy: *pulumi.String(examplePolicyDocument.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, "testPolicy", &iam.RolePolicyArgs{
Role: exampleRole.ID(),
Policy: pulumi.String(json0),
})
if err != nil {
return err
}
exampleBucketV2, err := s3.NewBucketV2(ctx, "exampleBucketV2", &s3.BucketV2Args{
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, "exampleLanguageModel", &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
Transcribe LanguageModel can be imported using the `model_name`, e.g.,
```sh
$ pulumi import aws:transcribe/languageModel:LanguageModel example example-name
```
func GetLanguageModel ¶ added in v5.11.0
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 ¶ added in v5.11.0
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 ¶ added in v5.11.0
func (*LanguageModel) ElementType() reflect.Type
func (*LanguageModel) ToLanguageModelOutput ¶ added in v5.11.0
func (i *LanguageModel) ToLanguageModelOutput() LanguageModelOutput
func (*LanguageModel) ToLanguageModelOutputWithContext ¶ added in v5.11.0
func (i *LanguageModel) ToLanguageModelOutputWithContext(ctx context.Context) LanguageModelOutput
type LanguageModelArgs ¶ added in v5.11.0
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
// A map of tags to assign to the LanguageModel. 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 set of arguments for constructing a LanguageModel resource.
func (LanguageModelArgs) ElementType ¶ added in v5.11.0
func (LanguageModelArgs) ElementType() reflect.Type
type LanguageModelArray ¶ added in v5.11.0
type LanguageModelArray []LanguageModelInput
func (LanguageModelArray) ElementType ¶ added in v5.11.0
func (LanguageModelArray) ElementType() reflect.Type
func (LanguageModelArray) ToLanguageModelArrayOutput ¶ added in v5.11.0
func (i LanguageModelArray) ToLanguageModelArrayOutput() LanguageModelArrayOutput
func (LanguageModelArray) ToLanguageModelArrayOutputWithContext ¶ added in v5.11.0
func (i LanguageModelArray) ToLanguageModelArrayOutputWithContext(ctx context.Context) LanguageModelArrayOutput
type LanguageModelArrayInput ¶ added in v5.11.0
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 ¶ added in v5.11.0
type LanguageModelArrayOutput struct{ *pulumi.OutputState }
func (LanguageModelArrayOutput) ElementType ¶ added in v5.11.0
func (LanguageModelArrayOutput) ElementType() reflect.Type
func (LanguageModelArrayOutput) Index ¶ added in v5.11.0
func (o LanguageModelArrayOutput) Index(i pulumi.IntInput) LanguageModelOutput
func (LanguageModelArrayOutput) ToLanguageModelArrayOutput ¶ added in v5.11.0
func (o LanguageModelArrayOutput) ToLanguageModelArrayOutput() LanguageModelArrayOutput
func (LanguageModelArrayOutput) ToLanguageModelArrayOutputWithContext ¶ added in v5.11.0
func (o LanguageModelArrayOutput) ToLanguageModelArrayOutputWithContext(ctx context.Context) LanguageModelArrayOutput
type LanguageModelInput ¶ added in v5.11.0
type LanguageModelInput interface {
pulumi.Input
ToLanguageModelOutput() LanguageModelOutput
ToLanguageModelOutputWithContext(ctx context.Context) LanguageModelOutput
}
type LanguageModelInputDataConfig ¶ added in v5.11.0
type LanguageModelInputDataConfigArgs ¶ added in v5.11.0
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.
TuningDataS3Uri pulumi.StringPtrInput `pulumi:"tuningDataS3Uri"`
}
func (LanguageModelInputDataConfigArgs) ElementType ¶ added in v5.11.0
func (LanguageModelInputDataConfigArgs) ElementType() reflect.Type
func (LanguageModelInputDataConfigArgs) ToLanguageModelInputDataConfigOutput ¶ added in v5.11.0
func (i LanguageModelInputDataConfigArgs) ToLanguageModelInputDataConfigOutput() LanguageModelInputDataConfigOutput
func (LanguageModelInputDataConfigArgs) ToLanguageModelInputDataConfigOutputWithContext ¶ added in v5.11.0
func (i LanguageModelInputDataConfigArgs) ToLanguageModelInputDataConfigOutputWithContext(ctx context.Context) LanguageModelInputDataConfigOutput
func (LanguageModelInputDataConfigArgs) ToLanguageModelInputDataConfigPtrOutput ¶ added in v5.11.0
func (i LanguageModelInputDataConfigArgs) ToLanguageModelInputDataConfigPtrOutput() LanguageModelInputDataConfigPtrOutput
func (LanguageModelInputDataConfigArgs) ToLanguageModelInputDataConfigPtrOutputWithContext ¶ added in v5.11.0
func (i LanguageModelInputDataConfigArgs) ToLanguageModelInputDataConfigPtrOutputWithContext(ctx context.Context) LanguageModelInputDataConfigPtrOutput
type LanguageModelInputDataConfigInput ¶ added in v5.11.0
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 ¶ added in v5.11.0
type LanguageModelInputDataConfigOutput struct{ *pulumi.OutputState }
func (LanguageModelInputDataConfigOutput) DataAccessRoleArn ¶ added in v5.11.0
func (o LanguageModelInputDataConfigOutput) DataAccessRoleArn() pulumi.StringOutput
IAM role with access to S3 bucket.
func (LanguageModelInputDataConfigOutput) ElementType ¶ added in v5.11.0
func (LanguageModelInputDataConfigOutput) ElementType() reflect.Type
func (LanguageModelInputDataConfigOutput) S3Uri ¶ added in v5.11.0
func (o LanguageModelInputDataConfigOutput) S3Uri() pulumi.StringOutput
S3 URI where training data is located.
func (LanguageModelInputDataConfigOutput) ToLanguageModelInputDataConfigOutput ¶ added in v5.11.0
func (o LanguageModelInputDataConfigOutput) ToLanguageModelInputDataConfigOutput() LanguageModelInputDataConfigOutput
func (LanguageModelInputDataConfigOutput) ToLanguageModelInputDataConfigOutputWithContext ¶ added in v5.11.0
func (o LanguageModelInputDataConfigOutput) ToLanguageModelInputDataConfigOutputWithContext(ctx context.Context) LanguageModelInputDataConfigOutput
func (LanguageModelInputDataConfigOutput) ToLanguageModelInputDataConfigPtrOutput ¶ added in v5.11.0
func (o LanguageModelInputDataConfigOutput) ToLanguageModelInputDataConfigPtrOutput() LanguageModelInputDataConfigPtrOutput
func (LanguageModelInputDataConfigOutput) ToLanguageModelInputDataConfigPtrOutputWithContext ¶ added in v5.11.0
func (o LanguageModelInputDataConfigOutput) ToLanguageModelInputDataConfigPtrOutputWithContext(ctx context.Context) LanguageModelInputDataConfigPtrOutput
func (LanguageModelInputDataConfigOutput) TuningDataS3Uri ¶ added in v5.11.0
func (o LanguageModelInputDataConfigOutput) TuningDataS3Uri() pulumi.StringPtrOutput
S3 URI where tuning data is located.
type LanguageModelInputDataConfigPtrInput ¶ added in v5.11.0
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 ¶ added in v5.11.0
func LanguageModelInputDataConfigPtr(v *LanguageModelInputDataConfigArgs) LanguageModelInputDataConfigPtrInput
type LanguageModelInputDataConfigPtrOutput ¶ added in v5.11.0
type LanguageModelInputDataConfigPtrOutput struct{ *pulumi.OutputState }
func (LanguageModelInputDataConfigPtrOutput) DataAccessRoleArn ¶ added in v5.11.0
func (o LanguageModelInputDataConfigPtrOutput) DataAccessRoleArn() pulumi.StringPtrOutput
IAM role with access to S3 bucket.
func (LanguageModelInputDataConfigPtrOutput) ElementType ¶ added in v5.11.0
func (LanguageModelInputDataConfigPtrOutput) ElementType() reflect.Type
func (LanguageModelInputDataConfigPtrOutput) S3Uri ¶ added in v5.11.0
func (o LanguageModelInputDataConfigPtrOutput) S3Uri() pulumi.StringPtrOutput
S3 URI where training data is located.
func (LanguageModelInputDataConfigPtrOutput) ToLanguageModelInputDataConfigPtrOutput ¶ added in v5.11.0
func (o LanguageModelInputDataConfigPtrOutput) ToLanguageModelInputDataConfigPtrOutput() LanguageModelInputDataConfigPtrOutput
func (LanguageModelInputDataConfigPtrOutput) ToLanguageModelInputDataConfigPtrOutputWithContext ¶ added in v5.11.0
func (o LanguageModelInputDataConfigPtrOutput) ToLanguageModelInputDataConfigPtrOutputWithContext(ctx context.Context) LanguageModelInputDataConfigPtrOutput
func (LanguageModelInputDataConfigPtrOutput) TuningDataS3Uri ¶ added in v5.11.0
func (o LanguageModelInputDataConfigPtrOutput) TuningDataS3Uri() pulumi.StringPtrOutput
S3 URI where tuning data is located.
type LanguageModelMap ¶ added in v5.11.0
type LanguageModelMap map[string]LanguageModelInput
func (LanguageModelMap) ElementType ¶ added in v5.11.0
func (LanguageModelMap) ElementType() reflect.Type
func (LanguageModelMap) ToLanguageModelMapOutput ¶ added in v5.11.0
func (i LanguageModelMap) ToLanguageModelMapOutput() LanguageModelMapOutput
func (LanguageModelMap) ToLanguageModelMapOutputWithContext ¶ added in v5.11.0
func (i LanguageModelMap) ToLanguageModelMapOutputWithContext(ctx context.Context) LanguageModelMapOutput
type LanguageModelMapInput ¶ added in v5.11.0
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 ¶ added in v5.11.0
type LanguageModelMapOutput struct{ *pulumi.OutputState }
func (LanguageModelMapOutput) ElementType ¶ added in v5.11.0
func (LanguageModelMapOutput) ElementType() reflect.Type
func (LanguageModelMapOutput) MapIndex ¶ added in v5.11.0
func (o LanguageModelMapOutput) MapIndex(k pulumi.StringInput) LanguageModelOutput
func (LanguageModelMapOutput) ToLanguageModelMapOutput ¶ added in v5.11.0
func (o LanguageModelMapOutput) ToLanguageModelMapOutput() LanguageModelMapOutput
func (LanguageModelMapOutput) ToLanguageModelMapOutputWithContext ¶ added in v5.11.0
func (o LanguageModelMapOutput) ToLanguageModelMapOutputWithContext(ctx context.Context) LanguageModelMapOutput
type LanguageModelOutput ¶ added in v5.11.0
type LanguageModelOutput struct{ *pulumi.OutputState }
func (LanguageModelOutput) Arn ¶ added in v5.11.0
func (o LanguageModelOutput) Arn() pulumi.StringOutput
ARN of the LanguageModel.
func (LanguageModelOutput) BaseModelName ¶ added in v5.11.0
func (o LanguageModelOutput) BaseModelName() pulumi.StringOutput
Name of reference base model.
func (LanguageModelOutput) ElementType ¶ added in v5.11.0
func (LanguageModelOutput) ElementType() reflect.Type
func (LanguageModelOutput) InputDataConfig ¶ added in v5.11.0
func (o LanguageModelOutput) InputDataConfig() LanguageModelInputDataConfigOutput
The input data config for the LanguageModel. See Input Data Config for more details.
func (LanguageModelOutput) LanguageCode ¶ added in v5.11.0
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 ¶ added in v5.11.0
func (o LanguageModelOutput) ModelName() pulumi.StringOutput
The model name.
func (LanguageModelOutput) Tags ¶ added in v5.11.0
func (o LanguageModelOutput) Tags() pulumi.StringMapOutput
A map of tags to assign to the LanguageModel. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
func (LanguageModelOutput) TagsAll ¶ added in v5.11.0
func (o LanguageModelOutput) TagsAll() pulumi.StringMapOutput
func (LanguageModelOutput) ToLanguageModelOutput ¶ added in v5.11.0
func (o LanguageModelOutput) ToLanguageModelOutput() LanguageModelOutput
func (LanguageModelOutput) ToLanguageModelOutputWithContext ¶ added in v5.11.0
func (o LanguageModelOutput) ToLanguageModelOutputWithContext(ctx context.Context) LanguageModelOutput
type LanguageModelState ¶ added in v5.11.0
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
// A map of tags to assign to the LanguageModel. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Tags pulumi.StringMapInput
TagsAll pulumi.StringMapInput
}
func (LanguageModelState) ElementType ¶ added in v5.11.0
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"`
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.
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/v5/go/aws/s3" "github.com/pulumi/pulumi-aws/sdk/v5/go/aws/transcribe" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleBucketV2, err := s3.NewBucketV2(ctx, "exampleBucketV2", &s3.BucketV2Args{
ForceDestroy: pulumi.Bool(true),
})
if err != nil {
return err
}
object, err := s3.NewBucketObjectv2(ctx, "object", &s3.BucketObjectv2Args{
Bucket: exampleBucketV2.ID(),
Key: pulumi.String("transcribe/test1.txt"),
Source: pulumi.NewFileAsset("test.txt"),
})
if err != nil {
return err
}
_, err = transcribe.NewMedicalVocabulary(ctx, "exampleMedicalVocabulary", &transcribe.MedicalVocabularyArgs{
VocabularyName: pulumi.String("example"),
LanguageCode: pulumi.String("en-US"),
VocabularyFileUri: pulumi.All(exampleBucketV2.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
Transcribe MedicalVocabulary can be imported using the `vocabulary_name`, e.g.,
```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.
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 ¶
func (o MedicalVocabularyOutput) TagsAll() pulumi.StringMapOutput
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.
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
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.
VocabularyName pulumi.StringPtrInput
}
func (MedicalVocabularyState) ElementType ¶
func (MedicalVocabularyState) ElementType() reflect.Type
type Vocabulary ¶ added in v5.11.0
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"`
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.
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/v5/go/aws/s3" "github.com/pulumi/pulumi-aws/sdk/v5/go/aws/transcribe" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleBucketV2, err := s3.NewBucketV2(ctx, "exampleBucketV2", &s3.BucketV2Args{
ForceDestroy: pulumi.Bool(true),
})
if err != nil {
return err
}
object, err := s3.NewBucketObjectv2(ctx, "object", &s3.BucketObjectv2Args{
Bucket: exampleBucketV2.ID(),
Key: pulumi.String("transcribe/test1.txt"),
Source: pulumi.NewFileAsset("test.txt"),
})
if err != nil {
return err
}
_, err = transcribe.NewVocabulary(ctx, "exampleVocabulary", &transcribe.VocabularyArgs{
VocabularyName: pulumi.String("example"),
LanguageCode: pulumi.String("en-US"),
VocabularyFileUri: pulumi.All(exampleBucketV2.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
Transcribe Vocabulary can be imported using the `vocabulary_name`, e.g.,
```sh
$ pulumi import aws:transcribe/vocabulary:Vocabulary example example-name
```
func GetVocabulary ¶ added in v5.11.0
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 ¶ added in v5.11.0
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 ¶ added in v5.11.0
func (*Vocabulary) ElementType() reflect.Type
func (*Vocabulary) ToVocabularyOutput ¶ added in v5.11.0
func (i *Vocabulary) ToVocabularyOutput() VocabularyOutput
func (*Vocabulary) ToVocabularyOutputWithContext ¶ added in v5.11.0
func (i *Vocabulary) ToVocabularyOutputWithContext(ctx context.Context) VocabularyOutput
type VocabularyArgs ¶ added in v5.11.0
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.
VocabularyName pulumi.StringInput
}
The set of arguments for constructing a Vocabulary resource.
func (VocabularyArgs) ElementType ¶ added in v5.11.0
func (VocabularyArgs) ElementType() reflect.Type
type VocabularyArray ¶ added in v5.11.0
type VocabularyArray []VocabularyInput
func (VocabularyArray) ElementType ¶ added in v5.11.0
func (VocabularyArray) ElementType() reflect.Type
func (VocabularyArray) ToVocabularyArrayOutput ¶ added in v5.11.0
func (i VocabularyArray) ToVocabularyArrayOutput() VocabularyArrayOutput
func (VocabularyArray) ToVocabularyArrayOutputWithContext ¶ added in v5.11.0
func (i VocabularyArray) ToVocabularyArrayOutputWithContext(ctx context.Context) VocabularyArrayOutput
type VocabularyArrayInput ¶ added in v5.11.0
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 ¶ added in v5.11.0
type VocabularyArrayOutput struct{ *pulumi.OutputState }
func (VocabularyArrayOutput) ElementType ¶ added in v5.11.0
func (VocabularyArrayOutput) ElementType() reflect.Type
func (VocabularyArrayOutput) Index ¶ added in v5.11.0
func (o VocabularyArrayOutput) Index(i pulumi.IntInput) VocabularyOutput
func (VocabularyArrayOutput) ToVocabularyArrayOutput ¶ added in v5.11.0
func (o VocabularyArrayOutput) ToVocabularyArrayOutput() VocabularyArrayOutput
func (VocabularyArrayOutput) ToVocabularyArrayOutputWithContext ¶ added in v5.11.0
func (o VocabularyArrayOutput) ToVocabularyArrayOutputWithContext(ctx context.Context) VocabularyArrayOutput
type VocabularyFilter ¶ added in v5.11.0
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"`
TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
// The Amazon S3 location (URI) of the text file that contains your custom VocabularyFilter. Conflicts with `words`.
VocabularyFilterFileUri pulumi.StringPtrOutput `pulumi:"vocabularyFilterFileUri"`
// The name of the VocabularyFilter.
VocabularyFilterName pulumi.StringOutput `pulumi:"vocabularyFilterName"`
// A list of terms to include in the vocabulary. Conflicts with `vocabularyFileUri`
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/v5/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
})
}
```
## Import
Transcribe VocabularyFilter can be imported using the `vocabulary_filter_name`, e.g.,
```sh
$ pulumi import aws:transcribe/vocabularyFilter:VocabularyFilter example example-name
```
func GetVocabularyFilter ¶ added in v5.11.0
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 ¶ added in v5.11.0
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 ¶ added in v5.11.0
func (*VocabularyFilter) ElementType() reflect.Type
func (*VocabularyFilter) ToVocabularyFilterOutput ¶ added in v5.11.0
func (i *VocabularyFilter) ToVocabularyFilterOutput() VocabularyFilterOutput
func (*VocabularyFilter) ToVocabularyFilterOutputWithContext ¶ added in v5.11.0
func (i *VocabularyFilter) ToVocabularyFilterOutputWithContext(ctx context.Context) VocabularyFilterOutput
type VocabularyFilterArgs ¶ added in v5.11.0
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`.
VocabularyFilterFileUri pulumi.StringPtrInput
// The name of the VocabularyFilter.
VocabularyFilterName pulumi.StringInput
// A list of terms to include in the vocabulary. Conflicts with `vocabularyFileUri`
Words pulumi.StringArrayInput
}
The set of arguments for constructing a VocabularyFilter resource.
func (VocabularyFilterArgs) ElementType ¶ added in v5.11.0
func (VocabularyFilterArgs) ElementType() reflect.Type
type VocabularyFilterArray ¶ added in v5.11.0
type VocabularyFilterArray []VocabularyFilterInput
func (VocabularyFilterArray) ElementType ¶ added in v5.11.0
func (VocabularyFilterArray) ElementType() reflect.Type
func (VocabularyFilterArray) ToVocabularyFilterArrayOutput ¶ added in v5.11.0
func (i VocabularyFilterArray) ToVocabularyFilterArrayOutput() VocabularyFilterArrayOutput
func (VocabularyFilterArray) ToVocabularyFilterArrayOutputWithContext ¶ added in v5.11.0
func (i VocabularyFilterArray) ToVocabularyFilterArrayOutputWithContext(ctx context.Context) VocabularyFilterArrayOutput
type VocabularyFilterArrayInput ¶ added in v5.11.0
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 ¶ added in v5.11.0
type VocabularyFilterArrayOutput struct{ *pulumi.OutputState }
func (VocabularyFilterArrayOutput) ElementType ¶ added in v5.11.0
func (VocabularyFilterArrayOutput) ElementType() reflect.Type
func (VocabularyFilterArrayOutput) Index ¶ added in v5.11.0
func (o VocabularyFilterArrayOutput) Index(i pulumi.IntInput) VocabularyFilterOutput
func (VocabularyFilterArrayOutput) ToVocabularyFilterArrayOutput ¶ added in v5.11.0
func (o VocabularyFilterArrayOutput) ToVocabularyFilterArrayOutput() VocabularyFilterArrayOutput
func (VocabularyFilterArrayOutput) ToVocabularyFilterArrayOutputWithContext ¶ added in v5.11.0
func (o VocabularyFilterArrayOutput) ToVocabularyFilterArrayOutputWithContext(ctx context.Context) VocabularyFilterArrayOutput
type VocabularyFilterInput ¶ added in v5.11.0
type VocabularyFilterInput interface {
pulumi.Input
ToVocabularyFilterOutput() VocabularyFilterOutput
ToVocabularyFilterOutputWithContext(ctx context.Context) VocabularyFilterOutput
}
type VocabularyFilterMap ¶ added in v5.11.0
type VocabularyFilterMap map[string]VocabularyFilterInput
func (VocabularyFilterMap) ElementType ¶ added in v5.11.0
func (VocabularyFilterMap) ElementType() reflect.Type
func (VocabularyFilterMap) ToVocabularyFilterMapOutput ¶ added in v5.11.0
func (i VocabularyFilterMap) ToVocabularyFilterMapOutput() VocabularyFilterMapOutput
func (VocabularyFilterMap) ToVocabularyFilterMapOutputWithContext ¶ added in v5.11.0
func (i VocabularyFilterMap) ToVocabularyFilterMapOutputWithContext(ctx context.Context) VocabularyFilterMapOutput
type VocabularyFilterMapInput ¶ added in v5.11.0
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 ¶ added in v5.11.0
type VocabularyFilterMapOutput struct{ *pulumi.OutputState }
func (VocabularyFilterMapOutput) ElementType ¶ added in v5.11.0
func (VocabularyFilterMapOutput) ElementType() reflect.Type
func (VocabularyFilterMapOutput) MapIndex ¶ added in v5.11.0
func (o VocabularyFilterMapOutput) MapIndex(k pulumi.StringInput) VocabularyFilterOutput
func (VocabularyFilterMapOutput) ToVocabularyFilterMapOutput ¶ added in v5.11.0
func (o VocabularyFilterMapOutput) ToVocabularyFilterMapOutput() VocabularyFilterMapOutput
func (VocabularyFilterMapOutput) ToVocabularyFilterMapOutputWithContext ¶ added in v5.11.0
func (o VocabularyFilterMapOutput) ToVocabularyFilterMapOutputWithContext(ctx context.Context) VocabularyFilterMapOutput
type VocabularyFilterOutput ¶ added in v5.11.0
type VocabularyFilterOutput struct{ *pulumi.OutputState }
func (VocabularyFilterOutput) Arn ¶ added in v5.11.0
func (o VocabularyFilterOutput) Arn() pulumi.StringOutput
ARN of the VocabularyFilter.
func (VocabularyFilterOutput) DownloadUri ¶ added in v5.11.0
func (o VocabularyFilterOutput) DownloadUri() pulumi.StringOutput
Generated download URI.
func (VocabularyFilterOutput) ElementType ¶ added in v5.11.0
func (VocabularyFilterOutput) ElementType() reflect.Type
func (VocabularyFilterOutput) LanguageCode ¶ added in v5.11.0
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 ¶ added in v5.11.0
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 ¶ added in v5.11.0
func (o VocabularyFilterOutput) TagsAll() pulumi.StringMapOutput
func (VocabularyFilterOutput) ToVocabularyFilterOutput ¶ added in v5.11.0
func (o VocabularyFilterOutput) ToVocabularyFilterOutput() VocabularyFilterOutput
func (VocabularyFilterOutput) ToVocabularyFilterOutputWithContext ¶ added in v5.11.0
func (o VocabularyFilterOutput) ToVocabularyFilterOutputWithContext(ctx context.Context) VocabularyFilterOutput
func (VocabularyFilterOutput) VocabularyFilterFileUri ¶ added in v5.11.0
func (o VocabularyFilterOutput) VocabularyFilterFileUri() pulumi.StringPtrOutput
The Amazon S3 location (URI) of the text file that contains your custom VocabularyFilter. Conflicts with `words`.
func (VocabularyFilterOutput) VocabularyFilterName ¶ added in v5.11.0
func (o VocabularyFilterOutput) VocabularyFilterName() pulumi.StringOutput
The name of the VocabularyFilter.
func (VocabularyFilterOutput) Words ¶ added in v5.11.0
func (o VocabularyFilterOutput) Words() pulumi.StringArrayOutput
A list of terms to include in the vocabulary. Conflicts with `vocabularyFileUri`
type VocabularyFilterState ¶ added in v5.11.0
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
TagsAll pulumi.StringMapInput
// The Amazon S3 location (URI) of the text file that contains your custom VocabularyFilter. Conflicts with `words`.
VocabularyFilterFileUri pulumi.StringPtrInput
// The name of the VocabularyFilter.
VocabularyFilterName pulumi.StringPtrInput
// A list of terms to include in the vocabulary. Conflicts with `vocabularyFileUri`
Words pulumi.StringArrayInput
}
func (VocabularyFilterState) ElementType ¶ added in v5.11.0
func (VocabularyFilterState) ElementType() reflect.Type
type VocabularyInput ¶ added in v5.11.0
type VocabularyInput interface {
pulumi.Input
ToVocabularyOutput() VocabularyOutput
ToVocabularyOutputWithContext(ctx context.Context) VocabularyOutput
}
type VocabularyMap ¶ added in v5.11.0
type VocabularyMap map[string]VocabularyInput
func (VocabularyMap) ElementType ¶ added in v5.11.0
func (VocabularyMap) ElementType() reflect.Type
func (VocabularyMap) ToVocabularyMapOutput ¶ added in v5.11.0
func (i VocabularyMap) ToVocabularyMapOutput() VocabularyMapOutput
func (VocabularyMap) ToVocabularyMapOutputWithContext ¶ added in v5.11.0
func (i VocabularyMap) ToVocabularyMapOutputWithContext(ctx context.Context) VocabularyMapOutput
type VocabularyMapInput ¶ added in v5.11.0
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 ¶ added in v5.11.0
type VocabularyMapOutput struct{ *pulumi.OutputState }
func (VocabularyMapOutput) ElementType ¶ added in v5.11.0
func (VocabularyMapOutput) ElementType() reflect.Type
func (VocabularyMapOutput) MapIndex ¶ added in v5.11.0
func (o VocabularyMapOutput) MapIndex(k pulumi.StringInput) VocabularyOutput
func (VocabularyMapOutput) ToVocabularyMapOutput ¶ added in v5.11.0
func (o VocabularyMapOutput) ToVocabularyMapOutput() VocabularyMapOutput
func (VocabularyMapOutput) ToVocabularyMapOutputWithContext ¶ added in v5.11.0
func (o VocabularyMapOutput) ToVocabularyMapOutputWithContext(ctx context.Context) VocabularyMapOutput
type VocabularyOutput ¶ added in v5.11.0
type VocabularyOutput struct{ *pulumi.OutputState }
func (VocabularyOutput) Arn ¶ added in v5.11.0
func (o VocabularyOutput) Arn() pulumi.StringOutput
ARN of the Vocabulary.
func (VocabularyOutput) DownloadUri ¶ added in v5.11.0
func (o VocabularyOutput) DownloadUri() pulumi.StringOutput
Generated download URI.
func (VocabularyOutput) ElementType ¶ added in v5.11.0
func (VocabularyOutput) ElementType() reflect.Type
func (VocabularyOutput) LanguageCode ¶ added in v5.11.0
func (o VocabularyOutput) LanguageCode() pulumi.StringOutput
The language code you selected for your vocabulary.
func (VocabularyOutput) Phrases ¶ added in v5.11.0
func (o VocabularyOutput) Phrases() pulumi.StringArrayOutput
A list of terms to include in the vocabulary. Conflicts with `vocabularyFileUri`
func (VocabularyOutput) Tags ¶ added in v5.11.0
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 ¶ added in v5.11.0
func (o VocabularyOutput) TagsAll() pulumi.StringMapOutput
func (VocabularyOutput) ToVocabularyOutput ¶ added in v5.11.0
func (o VocabularyOutput) ToVocabularyOutput() VocabularyOutput
func (VocabularyOutput) ToVocabularyOutputWithContext ¶ added in v5.11.0
func (o VocabularyOutput) ToVocabularyOutputWithContext(ctx context.Context) VocabularyOutput
func (VocabularyOutput) VocabularyFileUri ¶ added in v5.11.0
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 ¶ added in v5.11.0
func (o VocabularyOutput) VocabularyName() pulumi.StringOutput
The name of the Vocabulary.
type VocabularyState ¶ added in v5.11.0
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
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.
VocabularyName pulumi.StringPtrInput
}
func (VocabularyState) ElementType ¶ added in v5.11.0
func (VocabularyState) ElementType() reflect.Type