Description
Describe the feature
I used the amazon workmail CLI to create organization in workmail, which was successful. However, I want to configure the organization settings where I can create inbound and outbound rules. This specific action is only allowed via aws console, and not via AWS CLI.
Use Case
An important use case is system integration. I want to create terraform stacks for all the AWS services I am using for my current project, so that if I have to change the account I'm working in, I can just roll out the terraform stack in a different account. Workmail is not a resource in terraform yet, but can be used as CLI wrapped by a null resource. Many must have faced this issue of not even having the option of using CLI because the api doesn't exist.
Proposed Solution
an additional endpoint called --put-inbound-mail-rule
or something which can add further configuration by specifying a JSON:
{
"rule_name": "<rule_name>",
"action": "<action>", # default/drop/bounce/lambda
"origin": "*",
"destination": "[email protected]"
}
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
CLI version used
2.24.20
Environment details (OS name and version, etc.)
Ubuntu 22.04