diff --git a/internal/service/bedrock/service_package_gen.go b/internal/service/bedrock/service_package_gen.go index 6a9915792b6..8441d022103 100644 --- a/internal/service/bedrock/service_package_gen.go +++ b/internal/service/bedrock/service_package_gen.go @@ -38,16 +38,16 @@ func (p *servicePackage) FrameworkDataSources(ctx context.Context) []*types.Serv func (p *servicePackage) FrameworkResources(ctx context.Context) []*types.ServicePackageFrameworkResource { return []*types.ServicePackageFrameworkResource{ - { - Factory: newResourceModelInvocationLoggingConfiguration, - Name: "Model Invocation Logging Configuration", - }, { Factory: newResourceCustomModel, Tags: &types.ServicePackageResourceTags{ IdentifierAttribute: "model_arn", }, }, + { + Factory: newResourceModelInvocationLoggingConfiguration, + Name: "Model Invocation Logging Configuration", + }, } } diff --git a/internal/service/bedrock/tags_gen.go b/internal/service/bedrock/tags_gen.go index 301519e1e8d..a3a8ca70ea7 100644 --- a/internal/service/bedrock/tags_gen.go +++ b/internal/service/bedrock/tags_gen.go @@ -19,12 +19,12 @@ import ( // listTags lists bedrock service tags. // The identifier is typically the Amazon Resource Name (ARN), although // it may also be a different identifier depending on the service. -func listTags(ctx context.Context, conn *bedrock.Client, identifier string) (tftags.KeyValueTags, error) { +func listTags(ctx context.Context, conn *bedrock.Client, identifier string, optFns ...func(*bedrock.Options)) (tftags.KeyValueTags, error) { input := &bedrock.ListTagsForResourceInput{ ResourceARN: aws.String(identifier), } - output, err := conn.ListTagsForResource(ctx, input) + output, err := conn.ListTagsForResource(ctx, input, optFns...) if err != nil { return tftags.New(ctx, nil), err @@ -100,7 +100,7 @@ func setTagsOut(ctx context.Context, tags []awstypes.Tag) { // updateTags updates bedrock service tags. // The identifier is typically the Amazon Resource Name (ARN), although // it may also be a different identifier depending on the service. -func updateTags(ctx context.Context, conn *bedrock.Client, identifier string, oldTagsMap, newTagsMap any) error { +func updateTags(ctx context.Context, conn *bedrock.Client, identifier string, oldTagsMap, newTagsMap any, optFns ...func(*bedrock.Options)) error { oldTags := tftags.New(ctx, oldTagsMap) newTags := tftags.New(ctx, newTagsMap) @@ -114,7 +114,7 @@ func updateTags(ctx context.Context, conn *bedrock.Client, identifier string, ol TagKeys: removedTags.Keys(), } - _, err := conn.UntagResource(ctx, input) + _, err := conn.UntagResource(ctx, input, optFns...) if err != nil { return fmt.Errorf("untagging resource (%s): %w", identifier, err) @@ -129,7 +129,7 @@ func updateTags(ctx context.Context, conn *bedrock.Client, identifier string, ol Tags: Tags(updatedTags), } - _, err := conn.TagResource(ctx, input) + _, err := conn.TagResource(ctx, input, optFns...) if err != nil { return fmt.Errorf("tagging resource (%s): %w", identifier, err)