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

provider: Add TimestreamWrite service client (#15421) #15451

Merged
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
8 changes: 8 additions & 0 deletions .hashibot.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,9 @@ behavior "regexp_issue_labeler_v2" "service_labels" {
"service/synthetics" = [
"aws_synthetics_",
],
"service/timestreamwrite" = [
"aws_timestreamwrite_",
],
"service/transfer" = [
"aws_transfer_",
],
Expand Down Expand Up @@ -1428,6 +1431,11 @@ behavior "pull_request_path_labeler" "service_labels" {
"**/*_synthetics_*",
"**/synthetics_*"
]
"service/timestreamwrite" = [
"aws/internal/service/timestreamwrite/**/*",
"**/*_timestreamwrite_*",
"**/timestreamwrite_*"
]
"service/transfer" = [
"aws/internal/service/transfer/**/*",
"**/*_transfer_*",
Expand Down
3 changes: 3 additions & 0 deletions aws/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ import (
"github.com/aws/aws-sdk-go/service/sts"
"github.com/aws/aws-sdk-go/service/swf"
"github.com/aws/aws-sdk-go/service/synthetics"
"github.com/aws/aws-sdk-go/service/timestreamwrite"
"github.com/aws/aws-sdk-go/service/transfer"
"github.com/aws/aws-sdk-go/service/waf"
"github.com/aws/aws-sdk-go/service/wafregional"
Expand Down Expand Up @@ -341,6 +342,7 @@ type AWSClient struct {
swfconn *swf.SWF
syntheticsconn *synthetics.Synthetics
terraformVersion string
timestreamwriteconn *timestreamwrite.TimestreamWrite
transferconn *transfer.Transfer
wafconn *waf.WAF
wafregionalconn *wafregional.WAFRegional
Expand Down Expand Up @@ -566,6 +568,7 @@ func (c *Config) Client() (interface{}, error) {
swfconn: swf.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["swf"])})),
syntheticsconn: synthetics.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["synthetics"])})),
terraformVersion: c.terraformVersion,
timestreamwriteconn: timestreamwrite.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["timestreamwrite"])})),
transferconn: transfer.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["transfer"])})),
wafconn: waf.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["waf"])})),
wafregionalconn: wafregional.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["wafregional"])})),
Expand Down
1 change: 1 addition & 0 deletions aws/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -1195,6 +1195,7 @@ func init() {
"sts",
"swf",
"synthetics",
"timestreamwrite",
"transfer",
"waf",
"wafregional",
Expand Down
1 change: 1 addition & 0 deletions infrastructure/repository/labels-service.tf
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ variable "service_labels" {
"synthetics",
"textract",
"transcribeservice",
"timestreamwrite",
"transfer",
"translate",
"waf",
Expand Down
1 change: 1 addition & 0 deletions website/allowed-subcategories.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ SimpleDB
Step Function (SFN)
Storage Gateway
Synthetics
Timestream Write
Transfer
Transit Gateway Network Manager
VPC
Expand Down
1 change: 1 addition & 0 deletions website/docs/guides/custom-service-endpoints.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ The Terraform AWS Provider allows the following endpoints to be customized:
<li><code>sts</code></li>
<li><code>swf</code></li>
<li><code>synthetics</code></li>
<li><code>timestreamwrite</code></li>
<li><code>transfer</code></li>
<li><code>waf</code></li>
<li><code>wafregional</code></li>
Expand Down