Skip to content

Commit

Permalink
docs: add example for awscc_connect_routing_profile
Browse files Browse the repository at this point in the history
  • Loading branch information
BondAnthony committed Nov 22, 2024
1 parent 422a256 commit 7291762
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 3 deletions.
32 changes: 29 additions & 3 deletions docs/resources/connect_routing_profile.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "awscc_connect_routing_profile Resource - terraform-provider-awscc"
subcategory: ""
description: |-
Expand All @@ -10,7 +9,34 @@ description: |-

Resource Type definition for AWS::Connect::RoutingProfile


## Example Routing Profile

```terraform
resource "awscc_connect_routing_profile" "example" {
name = "example"
description = "Example routing profile"
instance_arn = awscc_connect_instance.example.arn
default_outbound_queue_arn = awscc_connect_queue.example.queue_arn
media_concurrencies = [{
channel = "TASK"
concurrency = 1
}]
queue_configs = [
{
delay = 0
priority = 9
queue_reference = {
channel = "TASK"
queue_arn = awscc_connect_queue.example_task.queue_arn
}
}
]
tags = [{
key = "ModifiedBy"
value = "AWSCC"
}]
}
```

<!-- schema generated by tfplugindocs -->
## Schema
Expand Down Expand Up @@ -88,4 +114,4 @@ Import is supported using the following syntax:

```shell
$ terraform import awscc_connect_routing_profile.example "routing_profile_arn"
```
```
24 changes: 24 additions & 0 deletions examples/resources/awscc_connect_routing_profile/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
resource "awscc_connect_routing_profile" "example" {
name = "example"
description = "Example routing profile"
instance_arn = awscc_connect_instance.example.arn
default_outbound_queue_arn = awscc_connect_queue.example.queue_arn
media_concurrencies = [{
channel = "TASK"
concurrency = 1
}]
queue_configs = [
{
delay = 0
priority = 9
queue_reference = {
channel = "TASK"
queue_arn = awscc_connect_queue.example_task.queue_arn
}
}
]
tags = [{
key = "ModifiedBy"
value = "AWSCC"
}]
}
25 changes: 25 additions & 0 deletions templates/resources/connect_routing_profile.md.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
page_title: "{{.Name}} {{.Type}} - {{.ProviderName}}"
subcategory: ""
description: |-
{{ .Description | plainmarkdown | trimspace | prefixlines " " }}
---

# {{.Name}} ({{.Type}})

{{ .Description | trimspace }}

## Example Routing Profile

{{ tffile (printf "examples/resources/%s/resource.tf" .Name)}}

{{ .SchemaMarkdown | trimspace }}
{{- if .HasImport }}

## Import

Import is supported using the following syntax:

{{ codefile "shell" .ImportFile }}

{{- end }}

0 comments on commit 7291762

Please sign in to comment.