Skip to content

Commit

Permalink
Update AWS provider/module and generated content
Browse files Browse the repository at this point in the history
  • Loading branch information
bendrucker authored and github-actions[bot] committed Mar 8, 2024
1 parent a7a52fc commit a202227
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 30 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.22.0

require (
github.com/agext/levenshtein v1.2.2 // indirect
github.com/aws/aws-sdk-go v1.50.30
github.com/aws/aws-sdk-go v1.50.34
github.com/dave/dst v0.27.3
github.com/fatih/color v1.13.0 // indirect
github.com/golang/mock v1.6.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ github.com/agext/levenshtein v1.2.2/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki
github.com/apparentlymart/go-textseg/v15 v15.0.0 h1:uYvfpb3DyLSCGWnctWKGj857c6ew1u1fNQOlOtuGxQY=
github.com/apparentlymart/go-textseg/v15 v15.0.0/go.mod h1:K8XmNZdhEBkdlyDdvbmmsvpAG721bKi0joRfFdHIWJ4=
github.com/aws/aws-sdk-go v1.31.9/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0=
github.com/aws/aws-sdk-go v1.50.30 h1:2OelKH1eayeaH7OuL1Y9Ombfw4HK+/k0fEnJNWjyLts=
github.com/aws/aws-sdk-go v1.50.30/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk=
github.com/aws/aws-sdk-go v1.50.34 h1:J1LjHzWNN/yVxQDTr0NIlI5vz9xRPvWiNCjQ4+5wh58=
github.com/aws/aws-sdk-go v1.50.34/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk=
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
github.com/dave/dst v0.27.3 h1:P1HPoMza3cMEquVf9kKy8yXsFirry4zEnWOdYPOoIzY=
github.com/dave/dst v0.27.3/go.mod h1:jHh6EOibnHgcUW3WjKHisiooEkYwqpHLBSX1iOBhEyc=
Expand Down
2 changes: 1 addition & 1 deletion rules/models/aws-sdk-go
Submodule aws-sdk-go updated 62 files
+54 −0 CHANGELOG.md
+1 −1 aws/version.go
+1 −1 models/apis/apigateway/2015-07-09/docs-2.json
+17 −4 models/apis/appconfig/2019-10-09/api-2.json
+24 −10 models/apis/appconfig/2019-10-09/docs-2.json
+1 −1 models/apis/chatbot/2017-10-11/api-2.json
+13 −3 models/apis/cloudformation/2010-05-15/api-2.json
+64 −57 models/apis/cloudformation/2010-05-15/docs-2.json
+5 −5 models/apis/dynamodb/2012-08-10/docs-2.json
+10 −2 models/apis/ec2/2016-11-15/api-2.json
+7 −5 models/apis/ec2/2016-11-15/docs-2.json
+1 −1 models/apis/fsx/2018-03-01/api-2.json
+28 −28 models/apis/fsx/2018-03-01/docs-2.json
+13 −0 models/apis/grafana/2020-08-18/api-2.json
+18 −9 models/apis/grafana/2020-08-18/docs-2.json
+20 −20 models/apis/grafana/2020-08-18/endpoint-rule-set-1.json
+5 −2 models/apis/imagebuilder/2019-12-02/api-2.json
+4 −2 models/apis/imagebuilder/2019-12-02/docs-2.json
+46 −46 models/apis/lambda/2015-03-31/docs-2.json
+1 −1 models/apis/mwaa/2020-07-01/docs-2.json
+2 −2 models/apis/organizations/2016-11-28/api-2.json
+2 −2 models/apis/organizations/2016-11-28/docs-2.json
+51 −0 models/apis/organizations/2016-11-28/endpoint-rule-set-1.json
+31 −0 models/apis/organizations/2016-11-28/endpoint-tests-1.json
+35 −8 models/apis/payment-cryptography-data/2022-02-03/api-2.json
+53 −31 models/apis/payment-cryptography-data/2022-02-03/docs-2.json
+32 −32 models/apis/payment-cryptography-data/2022-02-03/endpoint-rule-set-1.json
+8 −4 models/apis/rds/2014-10-31/api-2.json
+14 −10 models/apis/rds/2014-10-31/docs-2.json
+15 −15 models/apis/redshift/2012-12-01/docs-2.json
+33 −2 models/apis/sesv2/2019-09-27/api-2.json
+30 −5 models/apis/sesv2/2019-09-27/docs-2.json
+1 −1 models/apis/snowball/2016-06-30/docs-2.json
+106 −16 models/apis/verifiedpermissions/2021-12-01/api-2.json
+56 −21 models/apis/verifiedpermissions/2021-12-01/docs-2.json
+17 −8 models/apis/wafv2/2019-07-29/api-2.json
+28 −17 models/apis/wafv2/2019-07-29/docs-2.json
+3 −3 models/apis/workspaces/2015-04-08/docs-2.json
+3 −1 service/apigateway/api.go
+33 −13 service/appconfig/api.go
+128 −37 service/appconfig/doc.go
+46 −46 service/chatbot/api.go
+2 −2 service/chatbot/chatbotiface/interface.go
+3 −3 service/chatbot/doc.go
+1 −1 service/chatbot/service.go
+116 −40 service/cloudformation/api.go
+8 −3 service/dynamodb/api.go
+48 −7 service/ec2/api.go
+73 −51 service/fsx/api.go
+26 −3 service/imagebuilder/api.go
+46 −46 service/lambda/api.go
+77 −16 service/managedgrafana/api.go
+1 −1 service/mwaa/api.go
+4 −2 service/organizations/api.go
+302 −115 service/paymentcryptographydata/api.go
+97 −27 service/rds/api.go
+54 −49 service/redshift/api.go
+128 −16 service/sesv2/api.go
+1 −1 service/snowball/api.go
+335 −64 service/verifiedpermissions/api.go
+180 −85 service/wafv2/api.go
+44 −1 service/workspaces/api.go
9 changes: 0 additions & 9 deletions rules/models/aws_organizations_policy_invalid_content.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ type AwsOrganizationsPolicyInvalidContentRule struct {

resourceType string
attributeName string
max int
min int
pattern *regexp.Regexp
}
Expand All @@ -27,7 +26,6 @@ func NewAwsOrganizationsPolicyInvalidContentRule() *AwsOrganizationsPolicyInvali
return &AwsOrganizationsPolicyInvalidContentRule{
resourceType: "aws_organizations_policy",
attributeName: "content",
max: 1000000,
min: 1,
pattern: regexp.MustCompile(`^[\s\S]*$`),
}
Expand Down Expand Up @@ -73,13 +71,6 @@ func (r *AwsOrganizationsPolicyInvalidContentRule) Check(runner tflint.Runner) e
}

err := runner.EvaluateExpr(attribute.Expr, func (val string) error {
if len(val) > r.max {
runner.EmitIssue(
r,
"content must be 1000000 characters or less",
attribute.Expr.Range(),
)
}
if len(val) < r.min {
runner.EmitIssue(
r,
Expand Down
3 changes: 3 additions & 0 deletions rules/tags/resources.go

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

32 changes: 16 additions & 16 deletions tools/provider-schema/.terraform.lock.hcl

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

2 changes: 1 addition & 1 deletion tools/provider-schema/schema.json

Large diffs are not rendered by default.

0 comments on commit a202227

Please sign in to comment.