diff --git a/docs/resources/connect_routing_profile.md b/docs/resources/connect_routing_profile.md index 7d009821b3..8a898d20ca 100644 --- a/docs/resources/connect_routing_profile.md +++ b/docs/resources/connect_routing_profile.md @@ -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: |- @@ -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 @@ -88,4 +114,4 @@ Import is supported using the following syntax: ```shell $ terraform import awscc_connect_routing_profile.example "routing_profile_arn" -``` +``` \ No newline at end of file diff --git a/examples/resources/awscc_connect_routing_profile/resource.tf b/examples/resources/awscc_connect_routing_profile/resource.tf new file mode 100644 index 0000000000..caf7364e33 --- /dev/null +++ b/examples/resources/awscc_connect_routing_profile/resource.tf @@ -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" + }] +} diff --git a/templates/resources/connect_routing_profile.md.tmpl b/templates/resources/connect_routing_profile.md.tmpl new file mode 100644 index 0000000000..11f419b452 --- /dev/null +++ b/templates/resources/connect_routing_profile.md.tmpl @@ -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 }} \ No newline at end of file