transcribe

package
v5.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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"`
}

## 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("%v%v%v%v", "s3://", 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
	TagsAll 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) Index

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 (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

ARN of the MedicalVocabulary.

func (MedicalVocabularyOutput) DownloadUri

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

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 (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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL