Skip to content

Commit

Permalink
Merge pull request #27056 from kamilturek/f-aws-sesv2-configuration-set
Browse files Browse the repository at this point in the history
r/aws_sesv2_configuration_set: new resource
  • Loading branch information
jar-b authored Oct 14, 2022
2 parents ff6947f + 753ff2a commit 5d9122f
Show file tree
Hide file tree
Showing 13 changed files with 1,364 additions and 86 deletions.
3 changes: 3 additions & 0 deletions .changelog/27056.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:new-resource
aws_sesv2_configuration_set
```
15 changes: 15 additions & 0 deletions .ci/.semgrep-service-name0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3071,3 +3071,18 @@ rules:
- pattern-not-regex: .*uickConnect.*
- pattern-not-regex: ^TestAcc.*
severity: WARNING
- id: connect-in-test-name
languages:
- go
message: Include "Connect" in test name
paths:
include:
- internal/service/connect/*_test.go
patterns:
- pattern: func $NAME( ... ) { ... }
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-not-regex: "^TestAccConnect"
- pattern-regex: ^TestAcc.*
severity: WARNING
43 changes: 28 additions & 15 deletions .ci/.semgrep-service-name1.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
# Generated by internal/generate/servicesemgrep/main.go; DO NOT EDIT.
rules:
- id: connect-in-test-name
languages:
- go
message: Include "Connect" in test name
paths:
include:
- internal/service/connect/*_test.go
patterns:
- pattern: func $NAME( ... ) { ... }
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-not-regex: "^TestAccConnect"
- pattern-regex: ^TestAcc.*
severity: WARNING
- id: connect-in-const-name
languages:
- go
Expand Down Expand Up @@ -3060,3 +3045,31 @@ rules:
- pattern-not-regex: "^TestAccImageBuilder"
- pattern-regex: ^TestAcc.*
severity: WARNING
- id: imagebuilder-in-const-name
languages:
- go
message: Do not use "ImageBuilder" in const name inside imagebuilder package
paths:
include:
- internal/service/imagebuilder
patterns:
- pattern: const $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)ImageBuilder"
severity: WARNING
- id: imagebuilder-in-var-name
languages:
- go
message: Do not use "ImageBuilder" in var name inside imagebuilder package
paths:
include:
- internal/service/imagebuilder
patterns:
- pattern: var $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)ImageBuilder"
severity: WARNING
71 changes: 43 additions & 28 deletions .ci/.semgrep-service-name2.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,5 @@
# Generated by internal/generate/servicesemgrep/main.go; DO NOT EDIT.
rules:
- id: imagebuilder-in-const-name
languages:
- go
message: Do not use "ImageBuilder" in const name inside imagebuilder package
paths:
include:
- internal/service/imagebuilder
patterns:
- pattern: const $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)ImageBuilder"
severity: WARNING
- id: imagebuilder-in-var-name
languages:
- go
message: Do not use "ImageBuilder" in var name inside imagebuilder package
paths:
include:
- internal/service/imagebuilder
patterns:
- pattern: var $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)ImageBuilder"
severity: WARNING
- id: inspector-in-func-name
languages:
- go
Expand Down Expand Up @@ -3055,3 +3027,46 @@ rules:
- pattern-not-regex: "^TestAccRDS"
- pattern-regex: ^TestAcc.*
severity: WARNING
- id: rds-in-const-name
languages:
- go
message: Do not use "RDS" in const name inside rds package
paths:
include:
- internal/service/rds
patterns:
- pattern: const $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)RDS"
severity: WARNING
- id: rds-in-var-name
languages:
- go
message: Do not use "RDS" in var name inside rds package
paths:
include:
- internal/service/rds
patterns:
- pattern: var $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)RDS"
severity: WARNING
- id: redshift-in-func-name
languages:
- go
message: Do not use "Redshift" in func name inside redshift package
paths:
include:
- internal/service/redshift
patterns:
- pattern: func $NAME( ... ) { ... }
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)Redshift"
- pattern-not-regex: ^TestAcc.*
severity: WARNING
101 changes: 58 additions & 43 deletions .ci/.semgrep-service-name3.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,5 @@
# Generated by internal/generate/servicesemgrep/main.go; DO NOT EDIT.
rules:
- id: rds-in-const-name
languages:
- go
message: Do not use "RDS" in const name inside rds package
paths:
include:
- internal/service/rds
patterns:
- pattern: const $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)RDS"
severity: WARNING
- id: rds-in-var-name
languages:
- go
message: Do not use "RDS" in var name inside rds package
paths:
include:
- internal/service/rds
patterns:
- pattern: var $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)RDS"
severity: WARNING
- id: redshift-in-func-name
languages:
- go
message: Do not use "Redshift" in func name inside redshift package
paths:
include:
- internal/service/redshift
patterns:
- pattern: func $NAME( ... ) { ... }
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)Redshift"
- pattern-not-regex: ^TestAcc.*
severity: WARNING
- id: redshift-in-test-name
languages:
- go
Expand Down Expand Up @@ -1678,6 +1635,64 @@ rules:
patterns:
- pattern-regex: "(?i)SES"
severity: WARNING
- id: sesv2-in-func-name
languages:
- go
message: Do not use "SESV2" in func name inside sesv2 package
paths:
include:
- internal/service/sesv2
patterns:
- pattern: func $NAME( ... ) { ... }
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)SESV2"
- pattern-not-regex: ^TestAcc.*
severity: WARNING
- id: sesv2-in-test-name
languages:
- go
message: Include "SESV2" in test name
paths:
include:
- internal/service/sesv2/*_test.go
patterns:
- pattern: func $NAME( ... ) { ... }
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-not-regex: "^TestAccSESV2"
- pattern-regex: ^TestAcc.*
severity: WARNING
- id: sesv2-in-const-name
languages:
- go
message: Do not use "SESV2" in const name inside sesv2 package
paths:
include:
- internal/service/sesv2
patterns:
- pattern: const $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)SESV2"
severity: WARNING
- id: sesv2-in-var-name
languages:
- go
message: Do not use "SESV2" in var name inside sesv2 package
paths:
include:
- internal/service/sesv2
patterns:
- pattern: var $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)SESV2"
severity: WARNING
- id: sfn-in-func-name
languages:
- go
Expand Down
1 change: 1 addition & 0 deletions .teamcity/components/generated/services_all.kt
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ val services = mapOf(
"servicediscovery" to ServiceSpec("Cloud Map", vpcLock = true),
"servicequotas" to ServiceSpec("Service Quotas"),
"ses" to ServiceSpec("SES (Simple Email)"),
"sesv2" to ServiceSpec("SESv2 (Simple Email V2)"),
"sfn" to ServiceSpec("SFN (Step Functions)"),
"shield" to ServiceSpec("Shield"),
"signer" to ServiceSpec("Signer"),
Expand Down
3 changes: 3 additions & 0 deletions internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ import (
"github.com/hashicorp/terraform-provider-aws/internal/service/servicediscovery"
"github.com/hashicorp/terraform-provider-aws/internal/service/servicequotas"
"github.com/hashicorp/terraform-provider-aws/internal/service/ses"
"github.com/hashicorp/terraform-provider-aws/internal/service/sesv2"
"github.com/hashicorp/terraform-provider-aws/internal/service/sfn"
"github.com/hashicorp/terraform-provider-aws/internal/service/shield"
"github.com/hashicorp/terraform-provider-aws/internal/service/signer"
Expand Down Expand Up @@ -2060,6 +2061,8 @@ func New(_ context.Context) (*schema.Provider, error) {
"aws_ses_receipt_rule_set": ses.ResourceReceiptRuleSet(),
"aws_ses_template": ses.ResourceTemplate(),

"aws_sesv2_configuration_set": sesv2.ResourceConfigurationSet(),

"aws_sfn_activity": sfn.ResourceActivity(),
"aws_sfn_state_machine": sfn.ResourceStateMachine(),

Expand Down
10 changes: 10 additions & 0 deletions internal/service/sesv2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Terraform AWS Provider SESv2 Package

This area is primarily for AWS provider contributors and maintainers. For information on _using_ Terraform and the AWS provider, see the links below.

## Handy Links

* [Find out about contributing](https://hashicorp.github.io/terraform-provider-aws/#contribute) to the AWS provider!
* AWS Provider Docs: [Home](https://registry.terraform.io/providers/hashicorp/aws/latest/docs)
* AWS Provider Docs: [One of the SESv2 resources](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/sesv2_configuration_set)
* AWS Docs: [AWS SDK for Go SESv2](https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/sesv2)
Loading

0 comments on commit 5d9122f

Please sign in to comment.