Skip to content

Commit

Permalink
New Resource: aws_codestarnotifications_notification_rule (#10991)
Browse files Browse the repository at this point in the history
Output from acceptance testing:

```
--- PASS: TestAccAWSCodeStarNotificationsNotificationRule_Tags (23.32s)
--- PASS: TestAccAWSCodeStarNotificationsNotificationRule_Targets (24.19s)
--- PASS: TestAccAWSCodeStarNotificationsNotificationRule_Basic (28.90s)
--- PASS: TestAccAWSCodeStarNotificationsNotificationRule_EventTypeIds (40.63s)
--- PASS: TestAccAWSCodeStarNotificationsNotificationRule_Status (41.29s)
```
  • Loading branch information
spirius authored Feb 11, 2020
1 parent c0484f9 commit 63afda9
Show file tree
Hide file tree
Showing 21 changed files with 4,588 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .hashibot.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ behavior "regexp_issue_labeler_v2" "service_labels" {
"service/codestar" = [
"aws_codestar_",
],
"service/codestarnotifications" = [
"aws_codestarnotifications_",
],
"service/cognito" = [
"aws_cognito_",
],
Expand Down Expand Up @@ -695,6 +698,10 @@ behavior "pull_request_path_labeler" "service_labels" {
"**/*_codestar_*",
"**/codestar_*"
]
"service/codestarnotifications" = [
"**/*_codestarnotifications_*",
"**/codestarnotifications_*"
]
"service/cognito" = [
"**/*_cognito_*",
"**/cognito_*"
Expand Down
3 changes: 3 additions & 0 deletions aws/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import (
"github.com/aws/aws-sdk-go/service/codecommit"
"github.com/aws/aws-sdk-go/service/codedeploy"
"github.com/aws/aws-sdk-go/service/codepipeline"
"github.com/aws/aws-sdk-go/service/codestarnotifications"
"github.com/aws/aws-sdk-go/service/cognitoidentity"
"github.com/aws/aws-sdk-go/service/cognitoidentityprovider"
"github.com/aws/aws-sdk-go/service/configservice"
Expand Down Expand Up @@ -213,6 +214,7 @@ type AWSClient struct {
codecommitconn *codecommit.CodeCommit
codedeployconn *codedeploy.CodeDeploy
codepipelineconn *codepipeline.CodePipeline
codestarnotificationsconn *codestarnotifications.CodeStarNotifications
cognitoconn *cognitoidentity.CognitoIdentity
cognitoidpconn *cognitoidentityprovider.CognitoIdentityProvider
configconn *configservice.ConfigService
Expand Down Expand Up @@ -417,6 +419,7 @@ func (c *Config) Client() (interface{}, error) {
codecommitconn: codecommit.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["codecommit"])})),
codedeployconn: codedeploy.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["codedeploy"])})),
codepipelineconn: codepipeline.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["codepipeline"])})),
codestarnotificationsconn: codestarnotifications.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["codestarnotifications"])})),
cognitoconn: cognitoidentity.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["cognitoidentity"])})),
cognitoidpconn: cognitoidentityprovider.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["cognitoidp"])})),
configconn: configservice.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["configservice"])})),
Expand Down
3 changes: 3 additions & 0 deletions aws/internal/keyvaluetags/generators/listtags/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ var serviceNames = []string{
"codecommit",
"codedeploy",
"codepipeline",
"codestarnotifications",
"cognitoidentity",
"cognitoidentityprovider",
"configservice",
Expand Down Expand Up @@ -282,6 +283,8 @@ func ServiceListTagsInputIdentifierField(serviceName string) string {
return "ResourceARN"
case "cloudwatchlogs":
return "LogGroupName"
case "codestarnotifications":
return "Arn"
case "dax":
return "ResourceName"
case "devicefarm":
Expand Down
1 change: 1 addition & 0 deletions aws/internal/keyvaluetags/generators/servicetags/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ var mapServiceNames = []string{
"batch",
"cloudwatchlogs",
"codecommit",
"codestarnotifications",
"cognitoidentity",
"cognitoidentityprovider",
"dataexchange",
Expand Down
3 changes: 3 additions & 0 deletions aws/internal/keyvaluetags/generators/updatetags/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ var serviceNames = []string{
"codecommit",
"codedeploy",
"codepipeline",
"codestarnotifications",
"cognitoidentity",
"cognitoidentityprovider",
"configservice",
Expand Down Expand Up @@ -412,6 +413,8 @@ func ServiceTagInputIdentifierField(serviceName string) string {
return "ResourceARN"
case "cloudwatchlogs":
return "LogGroupName"
case "codestarnotifications":
return "Arn"
case "datapipeline":
return "PipelineId"
case "dax":
Expand Down
18 changes: 18 additions & 0 deletions aws/internal/keyvaluetags/list_tags_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import (
"github.com/aws/aws-sdk-go/service/codecommit"
"github.com/aws/aws-sdk-go/service/codedeploy"
"github.com/aws/aws-sdk-go/service/codepipeline"
"github.com/aws/aws-sdk-go/service/codestarnotifications"
"github.com/aws/aws-sdk-go/service/cognitoidentity"
"github.com/aws/aws-sdk-go/service/cognitoidentityprovider"
"github.com/aws/aws-sdk-go/service/configservice"
Expand Down Expand Up @@ -151,6 +152,8 @@ func ServiceClientType(serviceName string) string {
funcType = reflect.TypeOf(codedeploy.New)
case "codepipeline":
funcType = reflect.TypeOf(codepipeline.New)
case "codestarnotifications":
funcType = reflect.TypeOf(codestarnotifications.New)
case "cognitoidentity":
funcType = reflect.TypeOf(cognitoidentity.New)
case "cognitoidentityprovider":
Expand Down
10 changes: 10 additions & 0 deletions aws/internal/keyvaluetags/service_tags_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 37 additions & 0 deletions aws/internal/keyvaluetags/update_tags_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions aws/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ func Provider() terraform.ResourceProvider {
"aws_codebuild_webhook": resourceAwsCodeBuildWebhook(),
"aws_codepipeline": resourceAwsCodePipeline(),
"aws_codepipeline_webhook": resourceAwsCodePipelineWebhook(),
"aws_codestarnotifications_notification_rule": resourceAwsCodeStarNotificationsNotificationRule(),
"aws_cur_report_definition": resourceAwsCurReportDefinition(),
"aws_customer_gateway": resourceAwsCustomerGateway(),
"aws_datapipeline_pipeline": resourceAwsDataPipelinePipeline(),
Expand Down
Loading

0 comments on commit 63afda9

Please sign in to comment.