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

New resource r/aws_codestarnotification_rule #10991

Merged
merged 3 commits into from
Feb 11, 2020
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
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 @@ -212,6 +213,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 @@ -415,6 +417,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 @@ -279,6 +280,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 @@ -409,6 +410,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 @@ -150,6 +151,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