Skip to content

Commit

Permalink
fixed terraform format issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sasidhar-aws committed Aug 8, 2024
1 parent 7ee202a commit fb9ef58
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
15 changes: 5 additions & 10 deletions internal/service/bedrock/guardrail_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,8 @@ resource "aws_bedrock_guardrail" "test" {
}
contextual_grounding_policy_config {
filters_config {
threshold = 0.4
type = "GROUNDING"
threshold = 0.4
type = "GROUNDING"
}
}
sensitive_information_policy_config {
Expand Down Expand Up @@ -432,7 +432,7 @@ resource "aws_bedrock_guardrail" "test" {
blocked_input_messaging = "test"
blocked_outputs_messaging = "test"
description = "test"
kms_key_arn = aws_kms_key.test.arn
kms_key_arn = aws_kms_key.test.arn
content_policy_config {
filters_config {
input_strength = "MEDIUM"
Expand Down Expand Up @@ -472,7 +472,7 @@ resource "aws_bedrock_guardrail" "test" {
blocked_input_messaging = "test"
blocked_outputs_messaging = "test"
description = "test"
kms_key_arn = aws_kms_key.test.arn
kms_key_arn = aws_kms_key.test.arn
content_policy_config {
filters_config {
input_strength = "MEDIUM"
Expand All @@ -495,7 +495,7 @@ resource "aws_bedrock_guardrail" "test" {
}
tags = {
%[2]q = %[3]q
%[4]q = %[5]q
%[4]q = %[5]q
}
}
`, rName, tagKey1, tagValue1, tagKey2, tagValue2))
Expand Down Expand Up @@ -554,17 +554,12 @@ resource "aws_bedrock_guardrail" "test" {

func testAccGuardrailConfig_wordConfig_only(rName string) string {
return acctest.ConfigCompose(testAccCustomModelConfig_base(rName), fmt.Sprintf(`
resource "aws_kms_key" "test" {
description = %[1]q
deletion_window_in_days = 7
}
resource "aws_bedrock_guardrail" "test" {
name = %[1]q
blocked_input_messaging = "test"
blocked_outputs_messaging = "test"
description = "test"
kms_key_arn = aws_kms_key.test.arn
word_policy_config {
managed_word_lists_config {
type = "PROFANITY"
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/bedrock_guardrail.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ The following arguments are optional:
* `kms_key_arn` (Optional) The KMS key with which the guardrail was encrypted at rest
* `sensitive_information_policy_config` (Optional) Sensitive information policy config for a guardrail. See [Sensitive Information Policy Config](#sensitive-information-policy-config) for more information.
* `tags` (Optional) Key-value map of resource tags. If configured with a provider [`default_tags` configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level.
* `topic_policy_config` (Optional) Topic policy config for a guardrail. See [Topic Policy Config](#topic-policyconfig) for more information.
* `topic_policy_config` (Optional) Topic policy config for a guardrail. See [Topic Policy Config](#topic-policy-config) for more information.
* `word_policy_config` (Optional) Word policy config for a guardrail. See [Word Policy Config](#word-policy-config) for more information.

### Content Policy Config
Expand Down

0 comments on commit fb9ef58

Please sign in to comment.