chore(docs): add possible values for security group rule protocol (#857)
relates to #816
This commit is contained in:
parent
c6937154e8
commit
5b044d275f
4 changed files with 55 additions and 6 deletions
|
|
@ -34,10 +34,14 @@ import (
|
|||
|
||||
// Ensure the implementation satisfies the expected interfaces.
|
||||
var (
|
||||
_ resource.Resource = &securityGroupRuleResource{}
|
||||
_ resource.ResourceWithConfigure = &securityGroupRuleResource{}
|
||||
_ resource.ResourceWithImportState = &securityGroupRuleResource{}
|
||||
icmpProtocols = []string{"icmp", "ipv6-icmp"}
|
||||
_ resource.Resource = &securityGroupRuleResource{}
|
||||
_ resource.ResourceWithConfigure = &securityGroupRuleResource{}
|
||||
_ resource.ResourceWithImportState = &securityGroupRuleResource{}
|
||||
icmpProtocols = []string{"icmp", "ipv6-icmp"}
|
||||
protocolsPossibleValues = []string{
|
||||
"ah", "dccp", "egp", "esp", "gre", "icmp", "igmp", "ipip", "ipv6-encap", "ipv6-frag", "ipv6-icmp",
|
||||
"ipv6-nonxt", "ipv6-opts", "ipv6-route", "ospf", "pgm", "rsvp", "sctp", "tcp", "udp", "udplite", "vrrp",
|
||||
}
|
||||
)
|
||||
|
||||
type Model struct {
|
||||
|
|
@ -329,7 +333,7 @@ func (r *securityGroupRuleResource) Schema(_ context.Context, _ resource.SchemaR
|
|||
},
|
||||
Attributes: map[string]schema.Attribute{
|
||||
"name": schema.StringAttribute{
|
||||
Description: "The protocol name which the rule should match. Either `name` or `number` must be provided.",
|
||||
Description: fmt.Sprintf("The protocol name which the rule should match. Either `name` or `number` must be provided. %s", utils.FormatPossibleValues(protocolsPossibleValues)),
|
||||
Optional: true,
|
||||
Computed: true,
|
||||
Validators: []validator.String{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue