From ceb4c185a26c1635b6f3d26f3adce1be301a3667 Mon Sep 17 00:00:00 2001 From: Dirk Avery Date: Fri, 12 Mar 2021 10:46:10 -0500 Subject: [PATCH] New Service: Audit Manager --- .hashibot.hcl | 8 ++++++++ aws/config.go | 3 +++ aws/provider.go | 1 + infrastructure/repository/labels-service.tf | 1 + website/allowed-subcategories.txt | 1 + website/docs/guides/custom-service-endpoints.html.md | 1 + 6 files changed, 15 insertions(+) diff --git a/.hashibot.hcl b/.hashibot.hcl index 51c18acafa9..d73a58cbd43 100644 --- a/.hashibot.hcl +++ b/.hashibot.hcl @@ -138,6 +138,9 @@ behavior "regexp_issue_labeler_v2" "service_labels" { "service/athena" = [ "aws_athena_", ], + "service/auditmanager" = [ + "aws_auditmanager_", + ], "service/autoscaling" = [ "aws_autoscaling_", "aws_launch_configuration", @@ -740,6 +743,11 @@ behavior "pull_request_path_labeler" "service_labels" { "**/*_athena_*", "**/athena_*" ] + "service/auditmanager" = [ + "aws/internal/service/auditmanager/**/*", + "**/*_auditmanager_*", + "**/auditmanager_*" + ] "service/autoscaling" = [ "aws/internal/service/autoscaling/**/*", "**/*_autoscaling_*", diff --git a/aws/config.go b/aws/config.go index 0493b8d71a0..51015ec45dc 100644 --- a/aws/config.go +++ b/aws/config.go @@ -20,6 +20,7 @@ import ( "github.com/aws/aws-sdk-go/service/appstream" "github.com/aws/aws-sdk-go/service/appsync" "github.com/aws/aws-sdk-go/service/athena" + "github.com/aws/aws-sdk-go/service/auditmanager" "github.com/aws/aws-sdk-go/service/autoscaling" "github.com/aws/aws-sdk-go/service/autoscalingplans" "github.com/aws/aws-sdk-go/service/backup" @@ -219,6 +220,7 @@ type AWSClient struct { appstreamconn *appstream.AppStream appsyncconn *appsync.AppSync athenaconn *athena.Athena + auditmanagerconn *auditmanager.AuditManager autoscalingconn *autoscaling.AutoScaling autoscalingplansconn *autoscalingplans.AutoScalingPlans backupconn *backup.Backup @@ -462,6 +464,7 @@ func (c *Config) Client() (interface{}, error) { appstreamconn: appstream.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["appstream"])})), appsyncconn: appsync.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["appsync"])})), athenaconn: athena.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["athena"])})), + auditmanagerconn: auditmanager.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["auditmanager"])})), autoscalingconn: autoscaling.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["autoscaling"])})), autoscalingplansconn: autoscalingplans.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["autoscalingplans"])})), backupconn: backup.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["backup"])})), diff --git a/aws/provider.go b/aws/provider.go index a8078c1ff52..c44cbf810ca 100644 --- a/aws/provider.go +++ b/aws/provider.go @@ -1189,6 +1189,7 @@ func init() { "appstream", "appsync", "athena", + "auditmanager", "autoscaling", "autoscalingplans", "backup", diff --git a/infrastructure/repository/labels-service.tf b/infrastructure/repository/labels-service.tf index 1b7750b4788..acd17a27508 100644 --- a/infrastructure/repository/labels-service.tf +++ b/infrastructure/repository/labels-service.tf @@ -22,6 +22,7 @@ variable "service_labels" { "appstream", "appsync", "athena", + "auditmanager", "autoscaling", "autoscalingplans", "backup", diff --git a/website/allowed-subcategories.txt b/website/allowed-subcategories.txt index ee70be760e5..4bcf7aaf80a 100644 --- a/website/allowed-subcategories.txt +++ b/website/allowed-subcategories.txt @@ -8,6 +8,7 @@ AppMesh AppSync Application Autoscaling Athena +Audit Manager Autoscaling Autoscaling Plans Amazon Managed Service for Prometheus (AMP) diff --git a/website/docs/guides/custom-service-endpoints.html.md b/website/docs/guides/custom-service-endpoints.html.md index 8d42da3429a..c63f6e17e38 100644 --- a/website/docs/guides/custom-service-endpoints.html.md +++ b/website/docs/guides/custom-service-endpoints.html.md @@ -65,6 +65,7 @@ The Terraform AWS Provider allows the following endpoints to be customized:
  • appstream
  • appsync
  • athena
  • +
  • auditmanager
  • autoscaling
  • autoscalingplans
  • backup