Skip to content

Commit

Permalink
provider: Add Macie2 service client (hashicorp#13432)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattburgess committed Sep 30, 2020
1 parent d722fd4 commit ba4f284
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .hashibot.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,9 @@ behavior "regexp_issue_labeler_v2" "service_labels" {
"service/macie" = [
"aws_macie_",
],
"service/macie2" = [
"aws_macie2_",
],
"service/marketplacecatalog" = [
"aws_marketplace_catalog_",
],
Expand Down
3 changes: 3 additions & 0 deletions aws/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ import (
"github.com/aws/aws-sdk-go/service/licensemanager"
"github.com/aws/aws-sdk-go/service/lightsail"
"github.com/aws/aws-sdk-go/service/macie"
"github.com/aws/aws-sdk-go/service/macie2"
"github.com/aws/aws-sdk-go/service/managedblockchain"
"github.com/aws/aws-sdk-go/service/marketplacecatalog"
"github.com/aws/aws-sdk-go/service/mediaconnect"
Expand Down Expand Up @@ -285,6 +286,7 @@ type AWSClient struct {
licensemanagerconn *licensemanager.LicenseManager
lightsailconn *lightsail.Lightsail
macieconn *macie.Macie
macie2conn *macie2.Macie2
managedblockchainconn *managedblockchain.ManagedBlockchain
marketplacecatalogconn *marketplacecatalog.MarketplaceCatalog
mediaconnectconn *mediaconnect.MediaConnect
Expand Down Expand Up @@ -515,6 +517,7 @@ func (c *Config) Client() (interface{}, error) {
licensemanagerconn: licensemanager.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["licensemanager"])})),
lightsailconn: lightsail.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["lightsail"])})),
macieconn: macie.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["macie"])})),
macie2conn: macie2.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["macie2"])})),
managedblockchainconn: managedblockchain.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["managedblockchain"])})),
marketplacecatalogconn: marketplacecatalog.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["marketplacecatalog"])})),
mediaconnectconn: mediaconnect.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["mediaconnect"])})),
Expand Down
1 change: 1 addition & 0 deletions aws/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -1138,6 +1138,7 @@ func init() {
"licensemanager",
"lightsail",
"macie",
"macie2",
"managedblockchain",
"marketplacecatalog",
"mediaconnect",
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 @@ -122,6 +122,7 @@ variable "service_labels" {
"lightsail",
"machinelearning",
"macie",
"macie2",
"managedblockchain",
"marketplacecatalog",
"mediaconnect",
Expand Down
1 change: 1 addition & 0 deletions website/allowed-subcategories.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Lex
License Manager
Lightsail
MQ
Macie
Macie Classic
Managed Streaming for Kafka (MSK)
MediaConvert
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 @@ -140,6 +140,7 @@ The Terraform AWS Provider allows the following endpoints to be customized:
<li><code>licensemanager</code></li>
<li><code>lightsail</code></li>
<li><code>macie</code></li>
<li><code>macie2</code></li>
<li><code>managedblockchain</code></li>
<li><code>marketplacecatalog</code></li>
<li><code>mediaconnect</code></li>
Expand Down

0 comments on commit ba4f284

Please sign in to comment.