-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Add support for concurrency cross channel behaviour #44750
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Community GuidelinesThis comment is added to every new Pull Request to provide quick reference to how the Terraform AWS Provider is maintained. Please review the information below, and thank you for contributing to the community that keeps the provider thriving! 🚀 Voting for Prioritization
Pull Request Authors
|
| "behaviour": { | ||
| Type: schema.TypeString, | ||
| Optional: true, | ||
| Default: string(awstypes.BehaviorTypeRouteAnyChannel), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than set a provider-side default, we can set this as optional and computed and inherit the AWS default as a read-only value.
https://hashicorp.github.io/terraform-provider-aws/data-handling-and-conversion/#default-values
| Required: true, | ||
| ValidateFunc: validation.IntBetween(1, 10), | ||
| }, | ||
| "behaviour": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To match the AWS API, this should be a list nested block (MaxItems: 1) with a single string attribute inside.
cross_channel_behavior {
behavior_type = ""
}| Type: schema.TypeInt, | ||
| Computed: true, | ||
| }, | ||
| "behaviour": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above - the shape of this attribute should match the AWS API.
| @@ -0,0 +1,3 @@ | |||
| ```release-note:enhancement | |||
| resource/aws_connect_routing_profile: Add behaviour support to media_concurrencies block | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New argument additions typically use the following pattern:
| resource/aws_connect_routing_profile: Add behaviour support to media_concurrencies block | |
| resource/aws_connect_routing_profile: Add `media_concurrencies.cross_channel_behavior` argument |
Also, there should be a corresponding changelog entry for the data source.
| default_outbound_queue_id = aws_connect_queue.default_outbound_queue.queue_id | ||
| description = "Test cross-channel behavior - %[2]s" | ||
| %[3]s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Embedding variable blocks of HCL like this can make the configuration difficult to reason about when debugging. Although more text is required, explicitly writing out the media_concurrencies blocks in separate config helpers makes the comparison between steps easier to understand.
Rollback Plan
If a change needs to be reverted, we will publish an updated version of the library.
Changes to Security Controls
Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.
Description
Add cross-channel behavior support to aws_connect_routing_profile resource and data source
Relations
Closes #35018
References
https://docs.aws.amazon.com/connect/latest/APIReference/API_CreateRoutingProfile.html
https://docs.aws.amazon.com/connect/latest/APIReference/API_UpdateRoutingProfileConcurrency.html
Output from Acceptance Testing