generated from hashicorp/terraform-provider-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1836 from quixoticmonk/d-improve-awscc_connect_qu…
…ick_connect docs: added examples for awscc_connect_quick_connect
- Loading branch information
Showing
4 changed files
with
108 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
examples/resources/awscc_connect_quick_connect/connect_quick_connect_phone.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
resource "awscc_connect_quick_connect" "example" { | ||
instance_arn = awscc_connect_instance.example.arn | ||
name = "example" | ||
description = "example for phone connect type" | ||
quick_connect_config = { | ||
quick_connect_type = "PHONE_NUMBER" | ||
phone_config = { | ||
phone_number = "+12345678912" | ||
} | ||
} | ||
|
||
tags = [{ | ||
key = "ModifiedBy" | ||
value = "AWSCC" | ||
}] | ||
} |
17 changes: 17 additions & 0 deletions
17
examples/resources/awscc_connect_quick_connect/connect_quick_connect_queue.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
resource "awscc_connect_quick_connect" "example" { | ||
instance_arn = awscc_connect_instance.example.arn | ||
name = "example" | ||
description = "example for queue connect type" | ||
quick_connect_config = { | ||
quick_connect_type = "QUEUE" | ||
queue_config = { | ||
contact_flow_arn = awscc_connect_contact_flow.example.contact_flow_arn | ||
queue_arn = awscc_connect_queue.example.queue_arn | ||
} | ||
} | ||
|
||
tags = [{ | ||
key = "ModifiedBy" | ||
value = "AWSCC" | ||
}] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
page_title: "{{.Name}} {{.Type}} - {{.ProviderName}}" | ||
subcategory: "" | ||
description: |- | ||
{{ .Description | plainmarkdown | trimspace | prefixlines " " }} | ||
--- | ||
|
||
# {{.Name}} ({{.Type}}) | ||
|
||
{{ .Description | trimspace }} | ||
|
||
## Example Usage | ||
|
||
### Example with quick connect type of PHONE_NUMBER. The contact flow type should be CONTACT_FLOW. | ||
|
||
{{ tffile (printf "examples/resources/%s/connect_quick_connect_phone.tf" .Name)}} | ||
|
||
### Example with quick connect type of QUEUE. The contact flow type should be QUEUE_TRANSFER. | ||
|
||
{{ tffile (printf "examples/resources/%s/connect_quick_connect_queue.tf" .Name)}} | ||
|
||
{{ .SchemaMarkdown | trimspace }} | ||
{{- if .HasImport }} | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
{{ codefile "shell" .ImportFile }} | ||
|
||
{{- end }} |