Skip to content

Commit 39fdf54

Browse files
committed
service package changes
1 parent ab226e3 commit 39fdf54

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
//Copyright © 2025, Oracle and/or its affiliates. All rights reserved.
2+
3+
package odb
4+
5+
import (
6+
"context"
7+
"github.com/aws/aws-sdk-go-v2/aws"
8+
"github.com/aws/aws-sdk-go-v2/service/odb"
9+
"github.com/hashicorp/terraform-provider-aws/names"
10+
)
11+
12+
func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) (*odb.Client, error) {
13+
cfg := *(config["aws_sdkv2_config"].(*aws.Config))
14+
15+
return odb.NewFromConfig(cfg,
16+
odb.WithEndpointResolverV2(newEndpointResolverV2()),
17+
withBaseEndpoint(config[names.AttrEndpoint].(string)),
18+
func(o *odb.Options) {
19+
},
20+
), nil
21+
}

0 commit comments

Comments
 (0)