-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
New Resource - azurerm_servicebus_queue_authorization_rule #1543
Conversation
2b5fb8d
to
f3e0bb6
Compare
2a48514
to
7e8779a
Compare
7e8779a
to
ff93265
Compare
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.
otherwise LGTM 👍
|
||
## Import | ||
|
||
ServiceBus Namespace authorization rules can be imported using the `resource id`, e.g. |
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.
ServiceBus Namespace
-> ServiceBus Queue
|
||
The following attributes are exported: | ||
|
||
* `id` - The ServiceBus Topic ID. |
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.
I think this should be The ID of the ServiceBus Queue Authorization Rule
?
|
||
* `secondary_key` - The Secondary Key for the ServiceBus Namespace authorization Rule. | ||
|
||
* `secondary_connection_string` - The Secondary Connection String for the ServiceBus Namespace authorization Rule. |
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.
Namespace
-> Queue
in all 4 of these?
|
||
* `namespace_name` - (Required) Specifies the name of the ServiceBus namespace. Changing this forces a new resource to be created. | ||
|
||
* `namespace_name` - (Required) Specifies the name of the ServiceBus queue. Changing this forces a new resource to be created. |
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 should be queue_name
?
|
||
* `send` - (Optional) Grants send access to this this Authorization Rule. Defaults to `false`. | ||
|
||
* `manage` - (Optional) Grants manage access to this this Authorization Rule. When this property is `true` - both `listen` and `send` must be too. Defaults to `false`. |
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 this
in all 3 of these
d.SetId("") | ||
return nil | ||
} | ||
return fmt.Errorf("Error making Read request on Azure ServiceBus Queue Authorization Rule %s: %+v", name, err) |
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.
can we raise the other info here? IMO the names are likely to be used across resources
@@ -73,6 +87,67 @@ func FlattenServiceBusAuthorizationRuleRights(rights *[]servicebus.AccessRights) | |||
} | |||
|
|||
//shared schema | |||
func MergeSchema(a map[string]*schema.Schema, b map[string]*schema.Schema) map[string]*schema.Schema { |
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.
since this isn't being used outside of this package, this could probably become a private method?
0c02d0c
to
4632f48
Compare
4632f48
to
1adae28
Compare
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Also adds additional validation to other service bus resources.