Skip to content

Commit c972239

Browse files
committed
update pattern regex
1 parent 7064ca8 commit c972239

File tree

173 files changed

+3880
-3874
lines changed

Some content is hidden

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

173 files changed

+3880
-3874
lines changed

rules/models/aws_acmpca_certificate_invalid_signing_algorithm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ func NewAwsAcmpcaCertificateInvalidSigningAlgorithmRule() *AwsAcmpcaCertificateI
2525
resourceType: "aws_acmpca_certificate",
2626
attributeName: "signing_algorithm",
2727
enum: []string{
28-
"SHA256WITHECDSA",
2928
"SHA384WITHECDSA",
3029
"SHA512WITHECDSA",
3130
"SHA256WITHRSA",
3231
"SHA384WITHRSA",
3332
"SHA512WITHRSA",
3433
"SM3WITHSM2",
34+
"SHA256WITHECDSA",
3535
},
3636
}
3737
}

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",
3028
"HTTP",
3129
"HTTPS",
3230
"TCP",
3331
"TLS",
3432
"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+
"TCP_UDP",
2829
"GENEVE",
2930
"HTTP",
3031
"HTTPS",
3132
"TCP",
3233
"TLS",
3334
"UDP",
34-
"TCP_UDP",
3535
},
3636
}
3737
}

rules/models/aws_api_gateway_gateway_response_invalid_response_type.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,27 +25,27 @@ func NewAwsAPIGatewayGatewayResponseInvalidResponseTypeRule() *AwsAPIGatewayGate
2525
resourceType: "aws_api_gateway_gateway_response",
2626
attributeName: "response_type",
2727
enum: []string{
28-
"DEFAULT_4XX",
29-
"ACCESS_DENIED",
30-
"EXPIRED_TOKEN",
31-
"INTEGRATION_FAILURE",
32-
"BAD_REQUEST_PARAMETERS",
33-
"BAD_REQUEST_BODY",
3428
"THROTTLED",
29+
"DEFAULT_5XX",
3530
"QUOTA_EXCEEDED",
36-
"RESOURCE_NOT_FOUND",
37-
"AUTHORIZER_FAILURE",
38-
"API_CONFIGURATION_ERROR",
39-
"UNSUPPORTED_MEDIA_TYPE",
31+
"WAF_FILTERED",
4032
"INVALID_API_KEY",
33+
"ACCESS_DENIED",
4134
"INVALID_SIGNATURE",
42-
"MISSING_AUTHENTICATION_TOKEN",
4335
"INTEGRATION_TIMEOUT",
36+
"UNSUPPORTED_MEDIA_TYPE",
37+
"BAD_REQUEST_BODY",
4438
"REQUEST_TOO_LARGE",
45-
"WAF_FILTERED",
46-
"DEFAULT_5XX",
39+
"RESOURCE_NOT_FOUND",
4740
"UNAUTHORIZED",
41+
"AUTHORIZER_FAILURE",
4842
"AUTHORIZER_CONFIGURATION_ERROR",
43+
"EXPIRED_TOKEN",
44+
"MISSING_AUTHENTICATION_TOKEN",
45+
"INTEGRATION_FAILURE",
46+
"API_CONFIGURATION_ERROR",
47+
"DEFAULT_4XX",
48+
"BAD_REQUEST_PARAMETERS",
4949
},
5050
}
5151
}

rules/models/aws_api_gateway_rest_api_invalid_api_key_source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ func NewAwsAPIGatewayRestAPIInvalidAPIKeySourceRule() *AwsAPIGatewayRestAPIInval
2525
resourceType: "aws_api_gateway_rest_api",
2626
attributeName: "api_key_source",
2727
enum: []string{
28-
"AUTHORIZER",
2928
"HEADER",
29+
"AUTHORIZER",
3030
},
3131
}
3232
}

rules/models/aws_apigatewayv2_integration_invalid_connection_type.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ func NewAwsApigatewayv2IntegrationInvalidConnectionTypeRule() *AwsApigatewayv2In
2525
resourceType: "aws_apigatewayv2_integration",
2626
attributeName: "connection_type",
2727
enum: []string{
28-
"INTERNET",
2928
"VPC_LINK",
29+
"INTERNET",
3030
},
3131
}
3232
}

rules/models/aws_apigatewayv2_integration_invalid_integration_type.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ func NewAwsApigatewayv2IntegrationInvalidIntegrationTypeRule() *AwsApigatewayv2I
2525
resourceType: "aws_apigatewayv2_integration",
2626
attributeName: "integration_type",
2727
enum: []string{
28+
"AWS",
2829
"HTTP",
2930
"MOCK",
3031
"HTTP_PROXY",
3132
"AWS_PROXY",
32-
"AWS",
3333
},
3434
}
3535
}

rules/models/aws_apigatewayv2_integration_response_invalid_content_handling_strategy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ func NewAwsApigatewayv2IntegrationResponseInvalidContentHandlingStrategyRule() *
2525
resourceType: "aws_apigatewayv2_integration_response",
2626
attributeName: "content_handling_strategy",
2727
enum: []string{
28-
"CONVERT_TO_TEXT",
2928
"CONVERT_TO_BINARY",
29+
"CONVERT_TO_TEXT",
3030
},
3131
}
3232
}

rules/models/aws_apigatewayv2_route_invalid_authorization_type.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ func NewAwsApigatewayv2RouteInvalidAuthorizationTypeRule() *AwsApigatewayv2Route
2525
resourceType: "aws_apigatewayv2_route",
2626
attributeName: "authorization_type",
2727
enum: []string{
28-
"NONE",
2928
"AWS_IAM",
3029
"CUSTOM",
3130
"JWT",
31+
"NONE",
3232
},
3333
}
3434
}

rules/models/aws_appautoscaling_policy_invalid_policy_type.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ func NewAwsAppautoscalingPolicyInvalidPolicyTypeRule() *AwsAppautoscalingPolicyI
2525
resourceType: "aws_appautoscaling_policy",
2626
attributeName: "policy_type",
2727
enum: []string{
28-
"PredictiveScaling",
2928
"StepScaling",
3029
"TargetTrackingScaling",
30+
"PredictiveScaling",
3131
},
3232
}
3333
}

0 commit comments

Comments
 (0)