Skip to content

Commit 7064ca8

Browse files
committed
replace aws-sdk-ruby with official smithy models repo
1 parent ca20270 commit 7064ca8

File tree

345 files changed

+4192
-4044
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

345 files changed

+4192
-4044
lines changed

.gitmodules

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
[submodule "rules/models/aws-sdk-ruby"]
2-
path = rules/models/aws-sdk-ruby
3-
url = https://github.com/aws/aws-sdk-ruby
1+
[submodule "rules/models/api-models-aws"]
2+
path = rules/models/api-models-aws
3+
url = https://github.com/aws/api-models-aws

rules/models/api-models-aws

Submodule api-models-aws added at adf4664

rules/models/aws-sdk-ruby

Lines changed: 0 additions & 1 deletion
This file was deleted.

rules/models/aws_accessanalyzer_analyzer_invalid_type.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ func NewAwsAccessanalyzerAnalyzerInvalidTypeRule() *AwsAccessanalyzerAnalyzerInv
2929
"ORGANIZATION",
3030
"ACCOUNT_UNUSED_ACCESS",
3131
"ORGANIZATION_UNUSED_ACCESS",
32+
"ACCOUNT_INTERNAL_ACCESS",
33+
"ORGANIZATION_INTERNAL_ACCESS",
3234
},
3335
}
3436
}

rules/models/aws_alb_listener_invalid_protocol.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ func NewAwsALBListenerInvalidProtocolRule() *AwsALBListenerInvalidProtocolRule {
2525
resourceType: "aws_alb_listener",
2626
attributeName: "protocol",
2727
enum: []string{
28+
"TCP_UDP",
29+
"GENEVE",
2830
"HTTP",
2931
"HTTPS",
3032
"TCP",
3133
"TLS",
3234
"UDP",
33-
"TCP_UDP",
34-
"GENEVE",
3535
},
3636
}
3737
}

rules/models/aws_alb_target_group_invalid_protocol.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ func NewAwsALBTargetGroupInvalidProtocolRule() *AwsALBTargetGroupInvalidProtocol
2525
resourceType: "aws_alb_target_group",
2626
attributeName: "protocol",
2727
enum: []string{
28+
"GENEVE",
2829
"HTTP",
2930
"HTTPS",
3031
"TCP",
3132
"TLS",
3233
"UDP",
3334
"TCP_UDP",
34-
"GENEVE",
3535
},
3636
}
3737
}

rules/models/aws_amplify_app_invalid_basic_auth_credentials.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func NewAwsAmplifyAppInvalidBasicAuthCredentialsRule() *AwsAmplifyAppInvalidBasi
2626
resourceType: "aws_amplify_app",
2727
attributeName: "basic_auth_credentials",
2828
max: 2000,
29-
pattern: regexp.MustCompile(`^(?s).*$`),
29+
pattern: regexp.MustCompile(`^(?s)`),
3030
}
3131
}
3232

@@ -80,7 +80,7 @@ func (r *AwsAmplifyAppInvalidBasicAuthCredentialsRule) Check(runner tflint.Runne
8080
if !r.pattern.MatchString(val) {
8181
runner.EmitIssue(
8282
r,
83-
`basic_auth_credentials does not match valid pattern ^(?s).*$`,
83+
`basic_auth_credentials does not match valid pattern ^(?s)`,
8484
attribute.Expr.Range(),
8585
)
8686
}

rules/models/aws_amplify_app_invalid_description.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func NewAwsAmplifyAppInvalidDescriptionRule() *AwsAmplifyAppInvalidDescriptionRu
2727
resourceType: "aws_amplify_app",
2828
attributeName: "description",
2929
max: 1000,
30-
pattern: regexp.MustCompile(`^(?s).*$`),
30+
pattern: regexp.MustCompile(`^(?s)`),
3131
}
3232
}
3333

@@ -81,7 +81,7 @@ func (r *AwsAmplifyAppInvalidDescriptionRule) Check(runner tflint.Runner) error
8181
if !r.pattern.MatchString(val) {
8282
runner.EmitIssue(
8383
r,
84-
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^(?s).*$`),
84+
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^(?s)`),
8585
attribute.Expr.Range(),
8686
)
8787
}

rules/models/aws_amplify_app_invalid_iam_service_role_arn.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func NewAwsAmplifyAppInvalidIAMServiceRoleArnRule() *AwsAmplifyAppInvalidIAMServ
2727
resourceType: "aws_amplify_app",
2828
attributeName: "iam_service_role_arn",
2929
max: 1000,
30-
pattern: regexp.MustCompile(`^(?s).*$`),
30+
pattern: regexp.MustCompile(`^(?s)`),
3131
}
3232
}
3333

@@ -81,7 +81,7 @@ func (r *AwsAmplifyAppInvalidIAMServiceRoleArnRule) Check(runner tflint.Runner)
8181
if !r.pattern.MatchString(val) {
8282
runner.EmitIssue(
8383
r,
84-
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^(?s).*$`),
84+
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^(?s)`),
8585
attribute.Expr.Range(),
8686
)
8787
}

rules/models/aws_amplify_app_invalid_oauth_token.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func NewAwsAmplifyAppInvalidOAuthTokenRule() *AwsAmplifyAppInvalidOAuthTokenRule
2626
resourceType: "aws_amplify_app",
2727
attributeName: "oauth_token",
2828
max: 1000,
29-
pattern: regexp.MustCompile(`^(?s).*$`),
29+
pattern: regexp.MustCompile(`^(?s)`),
3030
}
3131
}
3232

@@ -80,7 +80,7 @@ func (r *AwsAmplifyAppInvalidOAuthTokenRule) Check(runner tflint.Runner) error {
8080
if !r.pattern.MatchString(val) {
8181
runner.EmitIssue(
8282
r,
83-
`oauth_token does not match valid pattern ^(?s).*$`,
83+
`oauth_token does not match valid pattern ^(?s)`,
8484
attribute.Expr.Range(),
8585
)
8686
}

0 commit comments

Comments
 (0)