-
Notifications
You must be signed in to change notification settings - Fork 194
feat(dms): add new resource to restart nodes #7622
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
feat(dms): add new resource to restart nodes #7622
Conversation
3a34f85
to
797f907
Compare
* `region` - (Optional, String, ForceNew) Specifies the region in which to restart the RocketMQ instance. | ||
If omitted, the provider-level region will be used. Changing this parameter will create a new resource. | ||
|
||
* `instance_id` - (Required, String, NonUpdatable) Specifies the ID of the RocketMQ instance to be restarted. |
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.
* `instance_id` - (Required, String, NonUpdatable) Specifies the ID of the RocketMQ instance to be restarted. | |
* `instance_id` - (Required, String, NonUpdatable) Specifies the ID of the RocketMQ instance to which nodes belong. |
## Import | ||
|
||
The RocketMQ instance restart resource cannot be imported. | ||
|
||
## Timeouts | ||
|
||
This resource does not support timeout configuration. |
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.
## Import | |
The RocketMQ instance restart resource cannot be imported. | |
## Timeouts | |
This resource does not support timeout configuration. |
Extra contents
// Add nodes parameter to request body if specified | ||
if nodesRaw := d.Get("nodes").([]interface{}); len(nodesRaw) > 0 { |
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.
// Add nodes parameter to request body if specified | |
if nodesRaw := d.Get("nodes").([]interface{}); len(nodesRaw) > 0 { |
the behavior of parameter nodes is Required
, these codes are unnecessary.
} | ||
} | ||
|
||
func resourceDmsRocketMQInstanceRestartCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { |
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.
function name do not include DMSRocketMQ
because of the package is already names rocketmq
89c44b3
to
265ff09
Compare
265ff09
to
60bf7ff
Compare
/approve |
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.
This PR has been approved by: @Lance52259
/approve
/lgtm
What this PR does / why we need it:
add new resource to restart nodes
Which issue this PR fixes:
(optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged)fixes #xxx
Special notes for your reviewer:
Release note:
PR Checklist
1.apply
2.plan
3.destroy
4.UT