From 7cd7a9847b9ba1bd72a32f795aaffd478f544590 Mon Sep 17 00:00:00 2001 From: Michael Ahern Date: Thu, 29 Jul 2021 15:23:39 -0400 Subject: [PATCH 1/5] Add 100Gbps to validateDxConnectionBandWidth --- aws/validators.go | 1 + 1 file changed, 1 insertion(+) diff --git a/aws/validators.go b/aws/validators.go index f0b4b2a5aee6..4a4b2bf416e5 100644 --- a/aws/validators.go +++ b/aws/validators.go @@ -1996,6 +1996,7 @@ func validateDxConnectionBandWidth() schema.SchemaValidateFunc { "2Gbps", "5Gbps", "10Gbps", + "100Gbps", "50Mbps", "100Mbps", "200Mbps", From 0696c1f8a0ce86042010000dc9f6e107f5b50ba3 Mon Sep 17 00:00:00 2001 From: Michael Ahern Date: Thu, 29 Jul 2021 15:24:52 -0400 Subject: [PATCH 2/5] Update TestValidateDxConnectionBandWidth to support 100Gbps --- aws/validators_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws/validators_test.go b/aws/validators_test.go index 01bc63699571..5ef07131cd26 100644 --- a/aws/validators_test.go +++ b/aws/validators_test.go @@ -2939,6 +2939,7 @@ func TestValidateDxConnectionBandWidth(t *testing.T) { "2Gbps", "5Gbps", "10Gbps", + "100Gbps", "50Mbps", "100Mbps", "200Mbps", @@ -2955,7 +2956,6 @@ func TestValidateDxConnectionBandWidth(t *testing.T) { invalidBandwidths := []string{ "1Tbps", - "100Gbps", "10GBpS", "42Mbps", "0", From 4030df7e6c8297593b39533a9bac007a86392f21 Mon Sep 17 00:00:00 2001 From: Michael Ahern Date: Thu, 29 Jul 2021 15:27:42 -0400 Subject: [PATCH 3/5] Add 100Gbps --- website/docs/r/dx_connection.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/r/dx_connection.html.markdown b/website/docs/r/dx_connection.html.markdown index c476b2b224c8..1decbaddcd0f 100644 --- a/website/docs/r/dx_connection.html.markdown +++ b/website/docs/r/dx_connection.html.markdown @@ -25,7 +25,7 @@ resource "aws_dx_connection" "hoge" { The following arguments are supported: * `name` - (Required) The name of the connection. -* `bandwidth` - (Required) The bandwidth of the connection. Valid values for dedicated connections: 1Gbps, 10Gbps. Valid values for hosted connections: 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, 500Mbps, 1Gbps, 2Gbps, 5Gbps and 10Gbps. Case sensitive. +* `bandwidth` - (Required) The bandwidth of the connection. Valid values for dedicated connections: 1Gbps, 10Gbps. Valid values for hosted connections: 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, 500Mbps, 1Gbps, 2Gbps, 5Gbps, 10Gbps and 100Gbps. Case sensitive. * `location` - (Required) The AWS Direct Connect location where the connection is located. See [DescribeLocations](https://docs.aws.amazon.com/directconnect/latest/APIReference/API_DescribeLocations.html) for the list of AWS Direct Connect locations. Use `locationCode`. * `tags` - (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` configuration block](/docs/providers/aws/index.html#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level. From 6c2f5068d8a7268ffdbceb953c108ec70b7b69a9 Mon Sep 17 00:00:00 2001 From: Michael Ahern Date: Thu, 29 Jul 2021 15:28:05 -0400 Subject: [PATCH 4/5] Add 100Gbps --- website/docs/r/dx_lag.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/r/dx_lag.html.markdown b/website/docs/r/dx_lag.html.markdown index 9ce281681015..9318de91fc24 100644 --- a/website/docs/r/dx_lag.html.markdown +++ b/website/docs/r/dx_lag.html.markdown @@ -28,7 +28,7 @@ resource "aws_dx_lag" "hoge" { The following arguments are supported: * `name` - (Required) The name of the LAG. -* `connections_bandwidth` - (Required) The bandwidth of the individual physical connections bundled by the LAG. Valid values: 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, 500Mbps, 1Gbps, 2Gbps, 5Gbps and 10Gbps. Case sensitive. +* `connections_bandwidth` - (Required) The bandwidth of the individual physical connections bundled by the LAG. Valid values: 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, 500Mbps, 1Gbps, 2Gbps, 5Gbps, 10Gbps and 100Gbps. Case sensitive. * `location` - (Required) The AWS Direct Connect location in which the LAG should be allocated. See [DescribeLocations](https://docs.aws.amazon.com/directconnect/latest/APIReference/API_DescribeLocations.html) for the list of AWS Direct Connect locations. Use `locationCode`. * `force_destroy` - (Optional, Default:false) A boolean that indicates all connections associated with the LAG should be deleted so that the LAG can be destroyed without error. These objects are *not* recoverable. * `tags` - (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` configuration block](/docs/providers/aws/index.html#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level. From e8867732d27adcb4f0ee5c1cd1c4f92fc9dc8d04 Mon Sep 17 00:00:00 2001 From: Angie Pinilla Date: Thu, 29 Jul 2021 16:39:32 -0400 Subject: [PATCH 5/5] Add CHANGELOG for #20364 --- .changelog/20364.txt | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .changelog/20364.txt diff --git a/.changelog/20364.txt b/.changelog/20364.txt new file mode 100644 index 000000000000..d0f8a1aeac69 --- /dev/null +++ b/.changelog/20364.txt @@ -0,0 +1,7 @@ +```release-note:enhancement +resource/aws_dx_connection: Add support for `100Gbps` `bandwidth` +``` + +```release-note:enhancement +resource/aws_dx_lag: Add support for `100Gbps` `connections_bandwidth` +``` \ No newline at end of file