diff --git a/.changelog/20364.txt b/.changelog/20364.txt new file mode 100644 index 00000000000..d0f8a1aeac6 --- /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 diff --git a/aws/validators.go b/aws/validators.go index f0b4b2a5aee..4a4b2bf416e 100644 --- a/aws/validators.go +++ b/aws/validators.go @@ -1996,6 +1996,7 @@ func validateDxConnectionBandWidth() schema.SchemaValidateFunc { "2Gbps", "5Gbps", "10Gbps", + "100Gbps", "50Mbps", "100Mbps", "200Mbps", diff --git a/aws/validators_test.go b/aws/validators_test.go index 01bc6369957..5ef07131cd2 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", diff --git a/website/docs/r/dx_connection.html.markdown b/website/docs/r/dx_connection.html.markdown index c476b2b224c..1decbaddcd0 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. diff --git a/website/docs/r/dx_lag.html.markdown b/website/docs/r/dx_lag.html.markdown index 9ce28168101..9318de91fc2 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.