Skip to content

Commit 3b6d8ee

Browse files
bendruckergithub-actions[bot]
authored andcommitted
Update AWS provider/module and generated content
1 parent d855899 commit 3b6d8ee

28 files changed

+68
-62
lines changed

rules/models/aws-sdk-ruby

Submodule aws-sdk-ruby updated 2724 files

rules/models/aws_appconfig_configuration_profile_invalid_retrieval_role_arn.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func NewAwsAppconfigConfigurationProfileInvalidRetrievalRoleArnRule() *AwsAppcon
2929
attributeName: "retrieval_role_arn",
3030
max: 2048,
3131
min: 20,
32-
pattern: regexp.MustCompile(`^((arn):(aws|aws-cn|aws-iso|aws-iso-[a-z]{1}|aws-us-gov):(iam)::\d{12}:role[/].*)$`),
32+
pattern: regexp.MustCompile(`^((arn):(aws|aws-cn|aws-iso|aws-iso-[a-z]{1}|aws-us-gov|aws-eusc):(iam)::\d{12}:role[/].*)$`),
3333
}
3434
}
3535

@@ -90,7 +90,7 @@ func (r *AwsAppconfigConfigurationProfileInvalidRetrievalRoleArnRule) Check(runn
9090
if !r.pattern.MatchString(val) {
9191
runner.EmitIssue(
9292
r,
93-
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^((arn):(aws|aws-cn|aws-iso|aws-iso-[a-z]{1}|aws-us-gov):(iam)::\d{12}:role[/].*)$`),
93+
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^((arn):(aws|aws-cn|aws-iso|aws-iso-[a-z]{1}|aws-us-gov|aws-eusc):(iam)::\d{12}:role[/].*)$`),
9494
attribute.Expr.Range(),
9595
)
9696
}

rules/models/aws_cloudfront_distribution_invalid_price_class.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ func NewAwsCloudfrontDistributionInvalidPriceClassRule() *AwsCloudfrontDistribut
2828
"PriceClass_100",
2929
"PriceClass_200",
3030
"PriceClass_All",
31+
"None",
3132
},
3233
}
3334
}

rules/models/aws_sagemaker_app_invalid_app_name.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func NewAwsSagemakerAppInvalidAppNameRule() *AwsSagemakerAppInvalidAppNameRule {
2727
resourceType: "aws_sagemaker_app",
2828
attributeName: "app_name",
2929
max: 63,
30-
pattern: regexp.MustCompile(`^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}`),
30+
pattern: regexp.MustCompile(`^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}$`),
3131
}
3232
}
3333

@@ -81,7 +81,7 @@ func (r *AwsSagemakerAppInvalidAppNameRule) 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), `^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}`),
84+
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}$`),
8585
attribute.Expr.Range(),
8686
)
8787
}

rules/models/aws_sagemaker_app_invalid_domain_id.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func NewAwsSagemakerAppInvalidDomainIDRule() *AwsSagemakerAppInvalidDomainIDRule
2727
resourceType: "aws_sagemaker_app",
2828
attributeName: "domain_id",
2929
max: 63,
30-
pattern: regexp.MustCompile(`^d-(-*[a-z0-9]){1,61}`),
30+
pattern: regexp.MustCompile(`^d-(-*[a-z0-9]){1,61}$`),
3131
}
3232
}
3333

@@ -81,7 +81,7 @@ func (r *AwsSagemakerAppInvalidDomainIDRule) 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), `^d-(-*[a-z0-9]){1,61}`),
84+
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^d-(-*[a-z0-9]){1,61}$`),
8585
attribute.Expr.Range(),
8686
)
8787
}

rules/models/aws_sagemaker_app_invalid_user_profile_name.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func NewAwsSagemakerAppInvalidUserProfileNameRule() *AwsSagemakerAppInvalidUserP
2727
resourceType: "aws_sagemaker_app",
2828
attributeName: "user_profile_name",
2929
max: 63,
30-
pattern: regexp.MustCompile(`^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}`),
30+
pattern: regexp.MustCompile(`^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}$`),
3131
}
3232
}
3333

@@ -81,7 +81,7 @@ func (r *AwsSagemakerAppInvalidUserProfileNameRule) 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), `^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}`),
84+
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}$`),
8585
attribute.Expr.Range(),
8686
)
8787
}

rules/models/aws_sagemaker_domain_invalid_domain_name.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func NewAwsSagemakerDomainInvalidDomainNameRule() *AwsSagemakerDomainInvalidDoma
2727
resourceType: "aws_sagemaker_domain",
2828
attributeName: "domain_name",
2929
max: 63,
30-
pattern: regexp.MustCompile(`^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}`),
30+
pattern: regexp.MustCompile(`^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}$`),
3131
}
3232
}
3333

@@ -81,7 +81,7 @@ func (r *AwsSagemakerDomainInvalidDomainNameRule) Check(runner tflint.Runner) er
8181
if !r.pattern.MatchString(val) {
8282
runner.EmitIssue(
8383
r,
84-
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}`),
84+
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}$`),
8585
attribute.Expr.Range(),
8686
)
8787
}

rules/models/aws_sagemaker_endpoint_configuration_invalid_name.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func NewAwsSagemakerEndpointConfigurationInvalidNameRule() *AwsSagemakerEndpoint
2727
resourceType: "aws_sagemaker_endpoint_configuration",
2828
attributeName: "name",
2929
max: 63,
30-
pattern: regexp.MustCompile(`^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}`),
30+
pattern: regexp.MustCompile(`^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}$`),
3131
}
3232
}
3333

@@ -81,7 +81,7 @@ func (r *AwsSagemakerEndpointConfigurationInvalidNameRule) Check(runner tflint.R
8181
if !r.pattern.MatchString(val) {
8282
runner.EmitIssue(
8383
r,
84-
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}`),
84+
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}$`),
8585
attribute.Expr.Range(),
8686
)
8787
}

rules/models/aws_sagemaker_endpoint_invalid_endpoint_config_name.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func NewAwsSagemakerEndpointInvalidEndpointConfigNameRule() *AwsSagemakerEndpoin
2727
resourceType: "aws_sagemaker_endpoint",
2828
attributeName: "endpoint_config_name",
2929
max: 63,
30-
pattern: regexp.MustCompile(`^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}`),
30+
pattern: regexp.MustCompile(`^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}$`),
3131
}
3232
}
3333

@@ -81,7 +81,7 @@ func (r *AwsSagemakerEndpointInvalidEndpointConfigNameRule) Check(runner tflint.
8181
if !r.pattern.MatchString(val) {
8282
runner.EmitIssue(
8383
r,
84-
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}`),
84+
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}$`),
8585
attribute.Expr.Range(),
8686
)
8787
}

rules/models/aws_sagemaker_endpoint_invalid_name.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func NewAwsSagemakerEndpointInvalidNameRule() *AwsSagemakerEndpointInvalidNameRu
2727
resourceType: "aws_sagemaker_endpoint",
2828
attributeName: "name",
2929
max: 63,
30-
pattern: regexp.MustCompile(`^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}`),
30+
pattern: regexp.MustCompile(`^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}$`),
3131
}
3232
}
3333

@@ -81,7 +81,7 @@ func (r *AwsSagemakerEndpointInvalidNameRule) 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), `^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}`),
84+
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}$`),
8585
attribute.Expr.Range(),
8686
)
8787
}

rules/models/aws_sagemaker_feature_group_invalid_event_time_feature_name.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func NewAwsSagemakerFeatureGroupInvalidEventTimeFeatureNameRule() *AwsSagemakerF
2929
attributeName: "event_time_feature_name",
3030
max: 64,
3131
min: 1,
32-
pattern: regexp.MustCompile(`^[a-zA-Z0-9]([-_]*[a-zA-Z0-9]){0,63}`),
32+
pattern: regexp.MustCompile(`^[a-zA-Z0-9]([-_]*[a-zA-Z0-9]){0,63}$`),
3333
}
3434
}
3535

@@ -90,7 +90,7 @@ func (r *AwsSagemakerFeatureGroupInvalidEventTimeFeatureNameRule) Check(runner t
9090
if !r.pattern.MatchString(val) {
9191
runner.EmitIssue(
9292
r,
93-
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z0-9]([-_]*[a-zA-Z0-9]){0,63}`),
93+
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z0-9]([-_]*[a-zA-Z0-9]){0,63}$`),
9494
attribute.Expr.Range(),
9595
)
9696
}

rules/models/aws_sagemaker_feature_group_invalid_feature_group_name.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func NewAwsSagemakerFeatureGroupInvalidFeatureGroupNameRule() *AwsSagemakerFeatu
2929
attributeName: "feature_group_name",
3030
max: 64,
3131
min: 1,
32-
pattern: regexp.MustCompile(`^[a-zA-Z0-9]([_-]*[a-zA-Z0-9]){0,63}`),
32+
pattern: regexp.MustCompile(`^[a-zA-Z0-9]([_-]*[a-zA-Z0-9]){0,63}$`),
3333
}
3434
}
3535

@@ -90,7 +90,7 @@ func (r *AwsSagemakerFeatureGroupInvalidFeatureGroupNameRule) Check(runner tflin
9090
if !r.pattern.MatchString(val) {
9191
runner.EmitIssue(
9292
r,
93-
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z0-9]([_-]*[a-zA-Z0-9]){0,63}`),
93+
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z0-9]([_-]*[a-zA-Z0-9]){0,63}$`),
9494
attribute.Expr.Range(),
9595
)
9696
}

rules/models/aws_sagemaker_feature_group_invalid_record_identifier_feature_name.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func NewAwsSagemakerFeatureGroupInvalidRecordIdentifierFeatureNameRule() *AwsSag
2929
attributeName: "record_identifier_feature_name",
3030
max: 64,
3131
min: 1,
32-
pattern: regexp.MustCompile(`^[a-zA-Z0-9]([-_]*[a-zA-Z0-9]){0,63}`),
32+
pattern: regexp.MustCompile(`^[a-zA-Z0-9]([-_]*[a-zA-Z0-9]){0,63}$`),
3333
}
3434
}
3535

@@ -90,7 +90,7 @@ func (r *AwsSagemakerFeatureGroupInvalidRecordIdentifierFeatureNameRule) Check(r
9090
if !r.pattern.MatchString(val) {
9191
runner.EmitIssue(
9292
r,
93-
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z0-9]([-_]*[a-zA-Z0-9]){0,63}`),
93+
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z0-9]([-_]*[a-zA-Z0-9]){0,63}$`),
9494
attribute.Expr.Range(),
9595
)
9696
}

rules/models/aws_sagemaker_flow_definition_invalid_flow_definition_name.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func NewAwsSagemakerFlowDefinitionInvalidFlowDefinitionNameRule() *AwsSagemakerF
2929
attributeName: "flow_definition_name",
3030
max: 63,
3131
min: 1,
32-
pattern: regexp.MustCompile(`^[a-z0-9](-*[a-z0-9]){0,62}`),
32+
pattern: regexp.MustCompile(`^[a-z0-9](-*[a-z0-9]){0,62}$`),
3333
}
3434
}
3535

@@ -90,7 +90,7 @@ func (r *AwsSagemakerFlowDefinitionInvalidFlowDefinitionNameRule) Check(runner t
9090
if !r.pattern.MatchString(val) {
9191
runner.EmitIssue(
9292
r,
93-
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-z0-9](-*[a-z0-9]){0,62}`),
93+
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-z0-9](-*[a-z0-9]){0,62}$`),
9494
attribute.Expr.Range(),
9595
)
9696
}

rules/models/aws_sagemaker_human_task_ui_invalid_human_task_ui_name.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func NewAwsSagemakerHumanTaskUIInvalidHumanTaskUINameRule() *AwsSagemakerHumanTa
2929
attributeName: "human_task_ui_name",
3030
max: 63,
3131
min: 1,
32-
pattern: regexp.MustCompile(`^[a-z0-9](-*[a-z0-9])*`),
32+
pattern: regexp.MustCompile(`^[a-z0-9](-*[a-z0-9])*$`),
3333
}
3434
}
3535

@@ -90,7 +90,7 @@ func (r *AwsSagemakerHumanTaskUIInvalidHumanTaskUINameRule) Check(runner tflint.
9090
if !r.pattern.MatchString(val) {
9191
runner.EmitIssue(
9292
r,
93-
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-z0-9](-*[a-z0-9])*`),
93+
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-z0-9](-*[a-z0-9])*$`),
9494
attribute.Expr.Range(),
9595
)
9696
}

rules/models/aws_sagemaker_model_invalid_name.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func NewAwsSagemakerModelInvalidNameRule() *AwsSagemakerModelInvalidNameRule {
2727
resourceType: "aws_sagemaker_model",
2828
attributeName: "name",
2929
max: 63,
30-
pattern: regexp.MustCompile(`^[a-zA-Z0-9]([\-a-zA-Z0-9]*[a-zA-Z0-9])?`),
30+
pattern: regexp.MustCompile(`^[a-zA-Z0-9]([\-a-zA-Z0-9]*[a-zA-Z0-9])?$`),
3131
}
3232
}
3333

@@ -81,7 +81,7 @@ func (r *AwsSagemakerModelInvalidNameRule) 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), `^[a-zA-Z0-9]([\-a-zA-Z0-9]*[a-zA-Z0-9])?`),
84+
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z0-9]([\-a-zA-Z0-9]*[a-zA-Z0-9])?$`),
8585
attribute.Expr.Range(),
8686
)
8787
}

rules/models/aws_sagemaker_notebook_instance_invalid_lifecycle_config_name.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func NewAwsSagemakerNotebookInstanceInvalidLifecycleConfigNameRule() *AwsSagemak
2727
resourceType: "aws_sagemaker_notebook_instance",
2828
attributeName: "lifecycle_config_name",
2929
max: 63,
30-
pattern: regexp.MustCompile(`^[a-zA-Z0-9](-*[a-zA-Z0-9])*`),
30+
pattern: regexp.MustCompile(`^[a-zA-Z0-9](-*[a-zA-Z0-9])*$`),
3131
}
3232
}
3333

@@ -81,7 +81,7 @@ func (r *AwsSagemakerNotebookInstanceInvalidLifecycleConfigNameRule) Check(runne
8181
if !r.pattern.MatchString(val) {
8282
runner.EmitIssue(
8383
r,
84-
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z0-9](-*[a-zA-Z0-9])*`),
84+
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z0-9](-*[a-zA-Z0-9])*$`),
8585
attribute.Expr.Range(),
8686
)
8787
}

rules/models/aws_sagemaker_notebook_instance_invalid_name.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func NewAwsSagemakerNotebookInstanceInvalidNameRule() *AwsSagemakerNotebookInsta
2727
resourceType: "aws_sagemaker_notebook_instance",
2828
attributeName: "name",
2929
max: 63,
30-
pattern: regexp.MustCompile(`^[a-zA-Z0-9](-*[a-zA-Z0-9])*`),
30+
pattern: regexp.MustCompile(`^[a-zA-Z0-9](-*[a-zA-Z0-9])*$`),
3131
}
3232
}
3333

@@ -81,7 +81,7 @@ func (r *AwsSagemakerNotebookInstanceInvalidNameRule) 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), `^[a-zA-Z0-9](-*[a-zA-Z0-9])*`),
84+
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z0-9](-*[a-zA-Z0-9])*$`),
8585
attribute.Expr.Range(),
8686
)
8787
}

rules/models/aws_sagemaker_notebook_instance_lifecycle_configuration_invalid_name.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func NewAwsSagemakerNotebookInstanceLifecycleConfigurationInvalidNameRule() *Aws
2727
resourceType: "aws_sagemaker_notebook_instance_lifecycle_configuration",
2828
attributeName: "name",
2929
max: 63,
30-
pattern: regexp.MustCompile(`^[a-zA-Z0-9](-*[a-zA-Z0-9])*`),
30+
pattern: regexp.MustCompile(`^[a-zA-Z0-9](-*[a-zA-Z0-9])*$`),
3131
}
3232
}
3333

@@ -81,7 +81,7 @@ func (r *AwsSagemakerNotebookInstanceLifecycleConfigurationInvalidNameRule) Chec
8181
if !r.pattern.MatchString(val) {
8282
runner.EmitIssue(
8383
r,
84-
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z0-9](-*[a-zA-Z0-9])*`),
84+
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z0-9](-*[a-zA-Z0-9])*$`),
8585
attribute.Expr.Range(),
8686
)
8787
}

rules/models/aws_sagemaker_studio_lifecycle_config_invalid_studio_lifecycle_config_name.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func NewAwsSagemakerStudioLifecycleConfigInvalidStudioLifecycleConfigNameRule()
2727
resourceType: "aws_sagemaker_studio_lifecycle_config",
2828
attributeName: "studio_lifecycle_config_name",
2929
max: 63,
30-
pattern: regexp.MustCompile(`^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}`),
30+
pattern: regexp.MustCompile(`^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}$`),
3131
}
3232
}
3333

@@ -81,7 +81,7 @@ func (r *AwsSagemakerStudioLifecycleConfigInvalidStudioLifecycleConfigNameRule)
8181
if !r.pattern.MatchString(val) {
8282
runner.EmitIssue(
8383
r,
84-
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}`),
84+
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}$`),
8585
attribute.Expr.Range(),
8686
)
8787
}

rules/models/aws_sagemaker_user_profile_invalid_domain_id.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func NewAwsSagemakerUserProfileInvalidDomainIDRule() *AwsSagemakerUserProfileInv
2727
resourceType: "aws_sagemaker_user_profile",
2828
attributeName: "domain_id",
2929
max: 63,
30-
pattern: regexp.MustCompile(`^d-(-*[a-z0-9]){1,61}`),
30+
pattern: regexp.MustCompile(`^d-(-*[a-z0-9]){1,61}$`),
3131
}
3232
}
3333

@@ -81,7 +81,7 @@ func (r *AwsSagemakerUserProfileInvalidDomainIDRule) 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), `^d-(-*[a-z0-9]){1,61}`),
84+
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^d-(-*[a-z0-9]){1,61}$`),
8585
attribute.Expr.Range(),
8686
)
8787
}

rules/models/aws_sagemaker_user_profile_invalid_user_profile_name.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func NewAwsSagemakerUserProfileInvalidUserProfileNameRule() *AwsSagemakerUserPro
2727
resourceType: "aws_sagemaker_user_profile",
2828
attributeName: "user_profile_name",
2929
max: 63,
30-
pattern: regexp.MustCompile(`^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}`),
30+
pattern: regexp.MustCompile(`^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}$`),
3131
}
3232
}
3333

@@ -81,7 +81,7 @@ func (r *AwsSagemakerUserProfileInvalidUserProfileNameRule) Check(runner tflint.
8181
if !r.pattern.MatchString(val) {
8282
runner.EmitIssue(
8383
r,
84-
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}`),
84+
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}$`),
8585
attribute.Expr.Range(),
8686
)
8787
}

rules/models/aws_sagemaker_workteam_invalid_workteam_name.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func NewAwsSagemakerWorkteamInvalidWorkteamNameRule() *AwsSagemakerWorkteamInval
2929
attributeName: "workteam_name",
3030
max: 63,
3131
min: 1,
32-
pattern: regexp.MustCompile(`^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}`),
32+
pattern: regexp.MustCompile(`^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}$`),
3333
}
3434
}
3535

@@ -90,7 +90,7 @@ func (r *AwsSagemakerWorkteamInvalidWorkteamNameRule) Check(runner tflint.Runner
9090
if !r.pattern.MatchString(val) {
9191
runner.EmitIssue(
9292
r,
93-
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}`),
93+
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}$`),
9494
attribute.Expr.Range(),
9595
)
9696
}

rules/models/aws_ssm_document_invalid_document_type.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ func NewAwsSsmDocumentInvalidDocumentTypeRule() *AwsSsmDocumentInvalidDocumentTy
4040
"CloudFormation",
4141
"ConformancePackTemplate",
4242
"QuickSetup",
43+
"ManualApprovalPolicy",
44+
"AutoApprovalPolicy",
4345
},
4446
}
4547
}

0 commit comments

Comments
 (0)