We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab226e3 commit 39fdf54Copy full SHA for 39fdf54
internal/service/odb/service_package.go
@@ -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