1. Packages
  2. AWS Classic
  3. API Docs
  4. transcribe
  5. LanguageModel

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

aws.transcribe.LanguageModel

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

    Resource for managing an AWS Transcribe LanguageModel.

    This resource can take a significant amount of time to provision. See Language Model FAQ for more details.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.iam.getPolicyDocument({
        statements: [{
            actions: ["sts:AssumeRole"],
            principals: [{
                type: "Service",
                identifiers: ["transcribe.amazonaws.com"],
            }],
        }],
    });
    const exampleRole = new aws.iam.Role("example", {
        name: "example",
        assumeRolePolicy: example.then(example => example.json),
    });
    const testPolicy = new aws.iam.RolePolicy("test_policy", {
        name: "example",
        role: exampleRole.id,
        policy: JSON.stringify({
            Version: "2012-10-17",
            Statement: [{
                Action: [
                    "s3:GetObject",
                    "s3:ListBucket",
                ],
                Effect: "Allow",
                Resource: ["*"],
            }],
        }),
    });
    const exampleBucketV2 = new aws.s3.BucketV2("example", {
        bucket: "example-transcribe",
        forceDestroy: true,
    });
    const object = new aws.s3.BucketObjectv2("object", {
        bucket: exampleBucketV2.id,
        key: "transcribe/test1.txt",
        source: new pulumi.asset.FileAsset("test1.txt"),
    });
    const exampleLanguageModel = new aws.transcribe.LanguageModel("example", {
        modelName: "example",
        baseModelName: "NarrowBand",
        inputDataConfig: {
            dataAccessRoleArn: exampleRole.arn,
            s3Uri: pulumi.interpolate`s3://${exampleBucketV2.id}/transcribe/`,
        },
        languageCode: "en-US",
        tags: {
            ENVIRONMENT: "development",
        },
    });
    
    import pulumi
    import json
    import pulumi_aws as aws
    
    example = aws.iam.get_policy_document(statements=[{
        "actions": ["sts:AssumeRole"],
        "principals": [{
            "type": "Service",
            "identifiers": ["transcribe.amazonaws.com"],
        }],
    }])
    example_role = aws.iam.Role("example",
        name="example",
        assume_role_policy=example.json)
    test_policy = aws.iam.RolePolicy("test_policy",
        name="example",
        role=example_role.id,
        policy=json.dumps({
            "Version": "2012-10-17",
            "Statement": [{
                "Action": [
                    "s3:GetObject",
                    "s3:ListBucket",
                ],
                "Effect": "Allow",
                "Resource": ["*"],
            }],
        }))
    example_bucket_v2 = aws.s3.BucketV2("example",
        bucket="example-transcribe",
        force_destroy=True)
    object = aws.s3.BucketObjectv2("object",
        bucket=example_bucket_v2.id,
        key="transcribe/test1.txt",
        source=pulumi.FileAsset("test1.txt"))
    example_language_model = aws.transcribe.LanguageModel("example",
        model_name="example",
        base_model_name="NarrowBand",
        input_data_config={
            "dataAccessRoleArn": example_role.arn,
            "s3Uri": example_bucket_v2.id.apply(lambda id: f"s3://{id}/transcribe/"),
        },
        language_code="en-US",
        tags={
            "ENVIRONMENT": "development",
        })
    
    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
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Aws.Iam.GetPolicyDocument.Invoke(new()
        {
            Statements = new[]
            {
                new Aws.Iam.Inputs.GetPolicyDocumentStatementInputArgs
                {
                    Actions = new[]
                    {
                        "sts:AssumeRole",
                    },
                    Principals = new[]
                    {
                        new Aws.Iam.Inputs.GetPolicyDocumentStatementPrincipalInputArgs
                        {
                            Type = "Service",
                            Identifiers = new[]
                            {
                                "transcribe.amazonaws.com",
                            },
                        },
                    },
                },
            },
        });
    
        var exampleRole = new Aws.Iam.Role("example", new()
        {
            Name = "example",
            AssumeRolePolicy = example.Apply(getPolicyDocumentResult => getPolicyDocumentResult.Json),
        });
    
        var testPolicy = new Aws.Iam.RolePolicy("test_policy", new()
        {
            Name = "example",
            Role = exampleRole.Id,
            Policy = JsonSerializer.Serialize(new Dictionary<string, object?>
            {
                ["Version"] = "2012-10-17",
                ["Statement"] = new[]
                {
                    new Dictionary<string, object?>
                    {
                        ["Action"] = new[]
                        {
                            "s3:GetObject",
                            "s3:ListBucket",
                        },
                        ["Effect"] = "Allow",
                        ["Resource"] = new[]
                        {
                            "*",
                        },
                    },
                },
            }),
        });
    
        var exampleBucketV2 = new Aws.S3.BucketV2("example", new()
        {
            Bucket = "example-transcribe",
            ForceDestroy = true,
        });
    
        var @object = new Aws.S3.BucketObjectv2("object", new()
        {
            Bucket = exampleBucketV2.Id,
            Key = "transcribe/test1.txt",
            Source = new FileAsset("test1.txt"),
        });
    
        var exampleLanguageModel = new Aws.Transcribe.LanguageModel("example", new()
        {
            ModelName = "example",
            BaseModelName = "NarrowBand",
            InputDataConfig = new Aws.Transcribe.Inputs.LanguageModelInputDataConfigArgs
            {
                DataAccessRoleArn = exampleRole.Arn,
                S3Uri = exampleBucketV2.Id.Apply(id => $"s3://{id}/transcribe/"),
            },
            LanguageCode = "en-US",
            Tags = 
            {
                { "ENVIRONMENT", "development" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.iam.IamFunctions;
    import com.pulumi.aws.iam.inputs.GetPolicyDocumentArgs;
    import com.pulumi.aws.iam.Role;
    import com.pulumi.aws.iam.RoleArgs;
    import com.pulumi.aws.iam.RolePolicy;
    import com.pulumi.aws.iam.RolePolicyArgs;
    import com.pulumi.aws.s3.BucketV2;
    import com.pulumi.aws.s3.BucketV2Args;
    import com.pulumi.aws.s3.BucketObjectv2;
    import com.pulumi.aws.s3.BucketObjectv2Args;
    import com.pulumi.aws.transcribe.LanguageModel;
    import com.pulumi.aws.transcribe.LanguageModelArgs;
    import com.pulumi.aws.transcribe.inputs.LanguageModelInputDataConfigArgs;
    import static com.pulumi.codegen.internal.Serialization.*;
    import com.pulumi.asset.FileAsset;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var example = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder()
                .statements(GetPolicyDocumentStatementArgs.builder()
                    .actions("sts:AssumeRole")
                    .principals(GetPolicyDocumentStatementPrincipalArgs.builder()
                        .type("Service")
                        .identifiers("transcribe.amazonaws.com")
                        .build())
                    .build())
                .build());
    
            var exampleRole = new Role("exampleRole", RoleArgs.builder()
                .name("example")
                .assumeRolePolicy(example.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json()))
                .build());
    
            var testPolicy = new RolePolicy("testPolicy", RolePolicyArgs.builder()
                .name("example")
                .role(exampleRole.id())
                .policy(serializeJson(
                    jsonObject(
                        jsonProperty("Version", "2012-10-17"),
                        jsonProperty("Statement", jsonArray(jsonObject(
                            jsonProperty("Action", jsonArray(
                                "s3:GetObject", 
                                "s3:ListBucket"
                            )),
                            jsonProperty("Effect", "Allow"),
                            jsonProperty("Resource", jsonArray("*"))
                        )))
                    )))
                .build());
    
            var exampleBucketV2 = new BucketV2("exampleBucketV2", BucketV2Args.builder()
                .bucket("example-transcribe")
                .forceDestroy(true)
                .build());
    
            var object = new BucketObjectv2("object", BucketObjectv2Args.builder()
                .bucket(exampleBucketV2.id())
                .key("transcribe/test1.txt")
                .source(new FileAsset("test1.txt"))
                .build());
    
            var exampleLanguageModel = new LanguageModel("exampleLanguageModel", LanguageModelArgs.builder()
                .modelName("example")
                .baseModelName("NarrowBand")
                .inputDataConfig(LanguageModelInputDataConfigArgs.builder()
                    .dataAccessRoleArn(exampleRole.arn())
                    .s3Uri(exampleBucketV2.id().applyValue(id -> String.format("s3://%s/transcribe/", id)))
                    .build())
                .languageCode("en-US")
                .tags(Map.of("ENVIRONMENT", "development"))
                .build());
    
        }
    }
    
    resources:
      exampleRole:
        type: aws:iam:Role
        name: example
        properties:
          name: example
          assumeRolePolicy: ${example.json}
      testPolicy:
        type: aws:iam:RolePolicy
        name: test_policy
        properties:
          name: example
          role: ${exampleRole.id}
          policy:
            fn::toJSON:
              Version: 2012-10-17
              Statement:
                - Action:
                    - s3:GetObject
                    - s3:ListBucket
                  Effect: Allow
                  Resource:
                    - '*'
      exampleBucketV2:
        type: aws:s3:BucketV2
        name: example
        properties:
          bucket: example-transcribe
          forceDestroy: true
      object:
        type: aws:s3:BucketObjectv2
        properties:
          bucket: ${exampleBucketV2.id}
          key: transcribe/test1.txt
          source:
            fn::FileAsset: test1.txt
      exampleLanguageModel:
        type: aws:transcribe:LanguageModel
        name: example
        properties:
          modelName: example
          baseModelName: NarrowBand
          inputDataConfig:
            dataAccessRoleArn: ${exampleRole.arn}
            s3Uri: s3://${exampleBucketV2.id}/transcribe/
          languageCode: en-US
          tags:
            ENVIRONMENT: development
    variables:
      example:
        fn::invoke:
          Function: aws:iam:getPolicyDocument
          Arguments:
            statements:
              - actions:
                  - sts:AssumeRole
                principals:
                  - type: Service
                    identifiers:
                      - transcribe.amazonaws.com
    

    Create LanguageModel Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new LanguageModel(name: string, args: LanguageModelArgs, opts?: CustomResourceOptions);
    @overload
    def LanguageModel(resource_name: str,
                      args: LanguageModelArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def LanguageModel(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      base_model_name: Optional[str] = None,
                      input_data_config: Optional[LanguageModelInputDataConfigArgs] = None,
                      language_code: Optional[str] = None,
                      model_name: Optional[str] = None,
                      tags: Optional[Mapping[str, str]] = None)
    func NewLanguageModel(ctx *Context, name string, args LanguageModelArgs, opts ...ResourceOption) (*LanguageModel, error)
    public LanguageModel(string name, LanguageModelArgs args, CustomResourceOptions? opts = null)
    public LanguageModel(String name, LanguageModelArgs args)
    public LanguageModel(String name, LanguageModelArgs args, CustomResourceOptions options)
    
    type: aws:transcribe:LanguageModel
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args LanguageModelArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args LanguageModelArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args LanguageModelArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LanguageModelArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LanguageModelArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var languageModelResource = new Aws.Transcribe.LanguageModel("languageModelResource", new()
    {
        BaseModelName = "string",
        InputDataConfig = new Aws.Transcribe.Inputs.LanguageModelInputDataConfigArgs
        {
            DataAccessRoleArn = "string",
            S3Uri = "string",
            TuningDataS3Uri = "string",
        },
        LanguageCode = "string",
        ModelName = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := transcribe.NewLanguageModel(ctx, "languageModelResource", &transcribe.LanguageModelArgs{
    	BaseModelName: pulumi.String("string"),
    	InputDataConfig: &transcribe.LanguageModelInputDataConfigArgs{
    		DataAccessRoleArn: pulumi.String("string"),
    		S3Uri:             pulumi.String("string"),
    		TuningDataS3Uri:   pulumi.String("string"),
    	},
    	LanguageCode: pulumi.String("string"),
    	ModelName:    pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var languageModelResource = new LanguageModel("languageModelResource", LanguageModelArgs.builder()
        .baseModelName("string")
        .inputDataConfig(LanguageModelInputDataConfigArgs.builder()
            .dataAccessRoleArn("string")
            .s3Uri("string")
            .tuningDataS3Uri("string")
            .build())
        .languageCode("string")
        .modelName("string")
        .tags(Map.of("string", "string"))
        .build());
    
    language_model_resource = aws.transcribe.LanguageModel("languageModelResource",
        base_model_name="string",
        input_data_config={
            "dataAccessRoleArn": "string",
            "s3Uri": "string",
            "tuningDataS3Uri": "string",
        },
        language_code="string",
        model_name="string",
        tags={
            "string": "string",
        })
    
    const languageModelResource = new aws.transcribe.LanguageModel("languageModelResource", {
        baseModelName: "string",
        inputDataConfig: {
            dataAccessRoleArn: "string",
            s3Uri: "string",
            tuningDataS3Uri: "string",
        },
        languageCode: "string",
        modelName: "string",
        tags: {
            string: "string",
        },
    });
    
    type: aws:transcribe:LanguageModel
    properties:
        baseModelName: string
        inputDataConfig:
            dataAccessRoleArn: string
            s3Uri: string
            tuningDataS3Uri: string
        languageCode: string
        modelName: string
        tags:
            string: string
    

    LanguageModel Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The LanguageModel resource accepts the following input properties:

    BaseModelName string
    Name of reference base model.
    InputDataConfig LanguageModelInputDataConfig
    The input data config for the LanguageModel. See Input Data Config for more details.
    LanguageCode string
    The language code you selected for your language model. Refer to the supported languages page for accepted codes.
    ModelName string
    The model name.
    Tags Dictionary<string, string>
    BaseModelName string
    Name of reference base model.
    InputDataConfig LanguageModelInputDataConfigArgs
    The input data config for the LanguageModel. See Input Data Config for more details.
    LanguageCode string
    The language code you selected for your language model. Refer to the supported languages page for accepted codes.
    ModelName string
    The model name.
    Tags map[string]string
    baseModelName String
    Name of reference base model.
    inputDataConfig LanguageModelInputDataConfig
    The input data config for the LanguageModel. See Input Data Config for more details.
    languageCode String
    The language code you selected for your language model. Refer to the supported languages page for accepted codes.
    modelName String
    The model name.
    tags Map<String,String>
    baseModelName string
    Name of reference base model.
    inputDataConfig LanguageModelInputDataConfig
    The input data config for the LanguageModel. See Input Data Config for more details.
    languageCode string
    The language code you selected for your language model. Refer to the supported languages page for accepted codes.
    modelName string
    The model name.
    tags {[key: string]: string}
    base_model_name str
    Name of reference base model.
    input_data_config LanguageModelInputDataConfigArgs
    The input data config for the LanguageModel. See Input Data Config for more details.
    language_code str
    The language code you selected for your language model. Refer to the supported languages page for accepted codes.
    model_name str
    The model name.
    tags Mapping[str, str]
    baseModelName String
    Name of reference base model.
    inputDataConfig Property Map
    The input data config for the LanguageModel. See Input Data Config for more details.
    languageCode String
    The language code you selected for your language model. Refer to the supported languages page for accepted codes.
    modelName String
    The model name.
    tags Map<String>

    Outputs

    All input properties are implicitly available as output properties. Additionally, the LanguageModel resource produces the following output properties:

    Arn string
    ARN of the LanguageModel.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll Dictionary<string, string>

    Deprecated: Please use tags instead.

    Arn string
    ARN of the LanguageModel.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll map[string]string

    Deprecated: Please use tags instead.

    arn String
    ARN of the LanguageModel.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String,String>

    Deprecated: Please use tags instead.

    arn string
    ARN of the LanguageModel.
    id string
    The provider-assigned unique ID for this managed resource.
    tagsAll {[key: string]: string}

    Deprecated: Please use tags instead.

    arn str
    ARN of the LanguageModel.
    id str
    The provider-assigned unique ID for this managed resource.
    tags_all Mapping[str, str]

    Deprecated: Please use tags instead.

    arn String
    ARN of the LanguageModel.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String>

    Deprecated: Please use tags instead.

    Look up Existing LanguageModel Resource

    Get an existing LanguageModel resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: LanguageModelState, opts?: CustomResourceOptions): LanguageModel
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            base_model_name: Optional[str] = None,
            input_data_config: Optional[LanguageModelInputDataConfigArgs] = None,
            language_code: Optional[str] = None,
            model_name: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None) -> LanguageModel
    func GetLanguageModel(ctx *Context, name string, id IDInput, state *LanguageModelState, opts ...ResourceOption) (*LanguageModel, error)
    public static LanguageModel Get(string name, Input<string> id, LanguageModelState? state, CustomResourceOptions? opts = null)
    public static LanguageModel get(String name, Output<String> id, LanguageModelState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Arn string
    ARN of the LanguageModel.
    BaseModelName string
    Name of reference base model.
    InputDataConfig LanguageModelInputDataConfig
    The input data config for the LanguageModel. See Input Data Config for more details.
    LanguageCode string
    The language code you selected for your language model. Refer to the supported languages page for accepted codes.
    ModelName string
    The model name.
    Tags Dictionary<string, string>
    TagsAll Dictionary<string, string>

    Deprecated: Please use tags instead.

    Arn string
    ARN of the LanguageModel.
    BaseModelName string
    Name of reference base model.
    InputDataConfig LanguageModelInputDataConfigArgs
    The input data config for the LanguageModel. See Input Data Config for more details.
    LanguageCode string
    The language code you selected for your language model. Refer to the supported languages page for accepted codes.
    ModelName string
    The model name.
    Tags map[string]string
    TagsAll map[string]string

    Deprecated: Please use tags instead.

    arn String
    ARN of the LanguageModel.
    baseModelName String
    Name of reference base model.
    inputDataConfig LanguageModelInputDataConfig
    The input data config for the LanguageModel. See Input Data Config for more details.
    languageCode String
    The language code you selected for your language model. Refer to the supported languages page for accepted codes.
    modelName String
    The model name.
    tags Map<String,String>
    tagsAll Map<String,String>

    Deprecated: Please use tags instead.

    arn string
    ARN of the LanguageModel.
    baseModelName string
    Name of reference base model.
    inputDataConfig LanguageModelInputDataConfig
    The input data config for the LanguageModel. See Input Data Config for more details.
    languageCode string
    The language code you selected for your language model. Refer to the supported languages page for accepted codes.
    modelName string
    The model name.
    tags {[key: string]: string}
    tagsAll {[key: string]: string}

    Deprecated: Please use tags instead.

    arn str
    ARN of the LanguageModel.
    base_model_name str
    Name of reference base model.
    input_data_config LanguageModelInputDataConfigArgs
    The input data config for the LanguageModel. See Input Data Config for more details.
    language_code str
    The language code you selected for your language model. Refer to the supported languages page for accepted codes.
    model_name str
    The model name.
    tags Mapping[str, str]
    tags_all Mapping[str, str]

    Deprecated: Please use tags instead.

    arn String
    ARN of the LanguageModel.
    baseModelName String
    Name of reference base model.
    inputDataConfig Property Map
    The input data config for the LanguageModel. See Input Data Config for more details.
    languageCode String
    The language code you selected for your language model. Refer to the supported languages page for accepted codes.
    modelName String
    The model name.
    tags Map<String>
    tagsAll Map<String>

    Deprecated: Please use tags instead.

    Supporting Types

    LanguageModelInputDataConfig, LanguageModelInputDataConfigArgs

    DataAccessRoleArn string
    IAM role with access to S3 bucket.
    S3Uri string
    S3 URI where training data is located.
    TuningDataS3Uri string

    S3 URI where tuning data is located.

    The following arguments are optional:

    DataAccessRoleArn string
    IAM role with access to S3 bucket.
    S3Uri string
    S3 URI where training data is located.
    TuningDataS3Uri string

    S3 URI where tuning data is located.

    The following arguments are optional:

    dataAccessRoleArn String
    IAM role with access to S3 bucket.
    s3Uri String
    S3 URI where training data is located.
    tuningDataS3Uri String

    S3 URI where tuning data is located.

    The following arguments are optional:

    dataAccessRoleArn string
    IAM role with access to S3 bucket.
    s3Uri string
    S3 URI where training data is located.
    tuningDataS3Uri string

    S3 URI where tuning data is located.

    The following arguments are optional:

    data_access_role_arn str
    IAM role with access to S3 bucket.
    s3_uri str
    S3 URI where training data is located.
    tuning_data_s3_uri str

    S3 URI where tuning data is located.

    The following arguments are optional:

    dataAccessRoleArn String
    IAM role with access to S3 bucket.
    s3Uri String
    S3 URI where training data is located.
    tuningDataS3Uri String

    S3 URI where tuning data is located.

    The following arguments are optional:

    Import

    Using pulumi import, import Transcribe LanguageModel using the model_name. For example:

    $ pulumi import aws:transcribe/languageModel:LanguageModel example example-name
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi