Skip to content
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

chore(route53): add traffic policy document endpoint type 'application-load-balancer' #37618

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/37618.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
data-source/aws_route53_traffic_policy_document: Add support for `application-load-balancer, `elastic-beanstalk` and `network-load-balancer` `endpoint.type` values
```
18 changes: 12 additions & 6 deletions internal/service/route53/traffic_policy_document_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,23 @@ package route53
type trafficPolicyDocEndpointType string

const (
trafficPolicyDocEndpointCloudFront trafficPolicyDocEndpointType = "cloudfront"
trafficPolicyDocEndpointElastic trafficPolicyDocEndpointType = "elastic-load-balancer"
trafficPolicyDocEndpointS3 trafficPolicyDocEndpointType = "s3-website"
trafficPolicyDocEndpointValue trafficPolicyDocEndpointType = "value" // nosemgrep:ci.literal-value-string-constant
trafficPolicyDocEndpointALB trafficPolicyDocEndpointType = "application-load-balancer"
trafficPolicyDocEndpointCloudFront trafficPolicyDocEndpointType = "cloudfront"
trafficPolicyDocEndpointElasticBeanstalk trafficPolicyDocEndpointType = "elastic-beanstalk"
trafficPolicyDocEndpointELB trafficPolicyDocEndpointType = "elastic-load-balancer"
trafficPolicyDocEndpointNLB trafficPolicyDocEndpointType = "network-load-balancer"
trafficPolicyDocEndpointS3Website trafficPolicyDocEndpointType = "s3-website"
trafficPolicyDocEndpointValue trafficPolicyDocEndpointType = "value" // nosemgrep:ci.literal-value-string-constant
)

func (trafficPolicyDocEndpointType) Values() []trafficPolicyDocEndpointType {
return []trafficPolicyDocEndpointType{
trafficPolicyDocEndpointALB,
trafficPolicyDocEndpointCloudFront,
trafficPolicyDocEndpointElastic,
trafficPolicyDocEndpointS3,
trafficPolicyDocEndpointElasticBeanstalk,
trafficPolicyDocEndpointELB,
trafficPolicyDocEndpointNLB,
trafficPolicyDocEndpointS3Website,
trafficPolicyDocEndpointValue, // nosemgrep:ci.literal-value-string-constant
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ The following arguments are optional:
### `endpoint`

* `id` - (Required) ID of an endpoint you want to assign.
* `type` - (Optional) Type of the endpoint. Valid values are `value` , `cloudfront` , `elastic-load-balancer`, `s3-website`
* `type` - (Optional) Type of the endpoint. Valid values are `value` , `cloudfront` , `application-load-balancer`, `elastic-load-balancer`, `s3-website`
* `region` - (Optional) To route traffic to an Amazon S3 bucket that is configured as a website endpoint, specify the region in which you created the bucket for `region`.
* `value` - (Optional) Value of the `type`.

Expand Down Expand Up @@ -248,4 +248,4 @@ This data source exports the following attributes in addition to the arguments a

* `json` - Standard JSON policy document rendered based on the arguments above.

<!-- cache-key: cdktf-0.20.1 input-9fc530bb661507b956e360642cff24bbe3a5634eccad12a1acf054528f189fc9 -->
<!-- cache-key: cdktf-0.20.1 input-9fc530bb661507b956e360642cff24bbe3a5634eccad12a1acf054528f189fc9 -->
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ The following arguments are optional:
### `endpoint`

* `id` - (Required) ID of an endpoint you want to assign.
* `type` - (Optional) Type of the endpoint. Valid values are `value` , `cloudfront` , `elastic-load-balancer`, `s3-website`
* `type` - (Optional) Type of the endpoint. Valid values are `value`, `cloudfront`, `elastic-load-balancer`, `s3-website`, `application-load-balancer`, `network-load-balancer` and `elastic-beanstalk`
* `region` - (Optional) To route traffic to an Amazon S3 bucket that is configured as a website endpoint, specify the region in which you created the bucket for `region`.
* `value` - (Optional) Value of the `type`.

Expand Down
Loading