Skip to content

Commit d50b500

Browse files
committed
r/aws_bedrock_model_invocation_logging_configuration: Mark logging_config.s3_config.bucket_name, logging_config.cloudwatch_config.log_group_name, logging_config.cloudwatch_config.role_arn, and logging_config.cloudwatch_config.large_data_delivery_s3_config.bucket_name as Required.
1 parent d9d7723 commit d50b500

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.changelog/45469.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
resource/aws_bedrock_model_invocation_logging_configuration: Mark `logging_config.s3_config.bucket_name`, `logging_config.cloudwatch_config.log_group_name`, `logging_config.cloudwatch_config.role_arn`, and `logging_config.cloudwatch_config.large_data_delivery_s3_config.bucket_name` as Required
3+
```

internal/service/bedrock/model_invocation_logging_configuration.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,11 @@ func (r *modelInvocationLoggingConfigurationResource) Schema(ctx context.Context
8282
NestedObject: schema.NestedBlockObject{
8383
Attributes: map[string]schema.Attribute{
8484
names.AttrLogGroupName: schema.StringAttribute{
85-
// Must set to optional to avoid validation error
86-
// See: https://github.com/hashicorp/terraform-plugin-framework/issues/740
87-
Optional: true,
85+
Required: true,
8886
},
8987
names.AttrRoleARN: schema.StringAttribute{
9088
CustomType: fwtypes.ARNType,
91-
Optional: true,
89+
Required: true,
9290
},
9391
},
9492
Blocks: map[string]schema.Block{
@@ -100,7 +98,7 @@ func (r *modelInvocationLoggingConfigurationResource) Schema(ctx context.Context
10098
NestedObject: schema.NestedBlockObject{
10199
Attributes: map[string]schema.Attribute{
102100
names.AttrBucketName: schema.StringAttribute{
103-
Optional: true,
101+
Required: true,
104102
},
105103
"key_prefix": schema.StringAttribute{
106104
Optional: true,
@@ -119,7 +117,7 @@ func (r *modelInvocationLoggingConfigurationResource) Schema(ctx context.Context
119117
NestedObject: schema.NestedBlockObject{
120118
Attributes: map[string]schema.Attribute{
121119
names.AttrBucketName: schema.StringAttribute{
122-
Optional: true,
120+
Required: true,
123121
},
124122
"key_prefix": schema.StringAttribute{
125123
Optional: true,

0 commit comments

Comments
 (0)