Skip to content

Commit

Permalink
r/aws_transcribe_language_model: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsonaj committed Jul 6, 2022
1 parent 642873a commit a1d4784
Showing 1 changed file with 60 additions and 8 deletions.
68 changes: 60 additions & 8 deletions website/docs/r/transcribe_language_model.html.markdown
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
subcategory: "Transcribe"
layout: "aws"
page_title: "AWS: aws_transcribe_languagemodel"
page_title: "AWS: aws_transcribe_language_model"
description: |-
Terraform resource for managing an AWS Transcribe LanguageModel.
---

# Resource: aws_transcribe_languagemodel
# Resource: aws_transcribe_language_model

Terraform resource for managing an AWS Transcribe LanguageModel.

Expand All @@ -15,7 +15,60 @@ Terraform resource for managing an AWS Transcribe LanguageModel.
### Basic Usage

```terraform
resource "aws_transcribe_languagemodel" "example" {
data "aws_iam_policy_document" "example" {
statement {
actions = ["sts:AssumeRole"]
principals {
type = "Service"
identifiers = ["transcribe.amazonaws.com"]
}
}
}
resource "aws_iam_role" "example" {
name = "example"
assume_role_policy = data.aws_iam_policy_document.example.json
}
resource "aws_iam_role_policy" "test_policy" {
name = "example"
role = aws_iam_role.example.id
policy = jsonencode({
Version = "2012-10-17"
Statement = [
{
Action = [
"s3:GetObject",
"s3:ListBucket",
]
Effect = "Allow"
Resource = ["*"]
},
]
})
}
resource "aws_s3_bucket" "example" {
bucket = "example-transcribe"
force_destroy = true
}
resource "aws_transcribe_language_model" "example" {
model_name = "example"
base_model_name = "NarrowBand"
input_data_config {
data_access_role_arn = aws_iam_role.example.arn
s3_uri = "s3://${aws_s3_bucket.example.id}/transcribe/"
}
language_code = "en-US"
tags = {
ENVIRONMENT = "development"
}
}
```

Expand All @@ -38,16 +91,15 @@ In addition to all arguments above, the following attributes are exported:

## Timeouts

`aws_transcribe_languagemodel` provides the following [Timeouts](https://www.terraform.io/docs/configuration/blocks/resources/syntax.html#operation-timeouts) configuration options:
`aws_transcribe_language_model` provides the following [Timeouts](https://www.terraform.io/docs/configuration/blocks/resources/syntax.html#operation-timeouts) configuration options:

* `create` - (Optional, Default: `60m`)
* `update` - (Optional, Default: `180m`)
* `create` - (Optional, Default: `90m`)
* `delete` - (Optional, Default: `90m`)

## Import

Transcribe LanguageModel can be imported using the `example_id_arg`, e.g.,
Transcribe LanguageModel can be imported using the `model_name`, e.g.,

```
$ terraform import aws_transcribe_languagemodel.example rft-8012925589
$ terraform import aws_transcribe_language_model.example rft-8012925589
```

0 comments on commit a1d4784

Please sign in to comment.