Skip to content

Commit

Permalink
Merge pull request #196 from mergenci/expose-aws-client-api-options
Browse files Browse the repository at this point in the history
Expose AWSClient APIOptions for middleware registration
  • Loading branch information
mergenci authored Mar 28, 2024
2 parents 4708239 + fa992a1 commit f2f0fdd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions internal/conns/awsclient_xp.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package conns

import "github.com/aws/smithy-go/middleware"

func (c *AWSClient) AppendAPIOptions(options ...func(stack *middleware.Stack) error) {
c.awsConfig.APIOptions = append(c.awsConfig.APIOptions, options...)
}
2 changes: 1 addition & 1 deletion xpprovider/xpprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
type AWSConfig conns.Config

// AWSClient exports the internal type conns.AWSClient of the Terraform provider
type AWSClient conns.AWSClient
type AWSClient = conns.AWSClient

// GetProvider returns new provider instances for both Terraform Plugin Framework provider of type provider.Provider
// and Terraform Plugin SDKv2 provider of type *schema.Provider
Expand Down

0 comments on commit f2f0fdd

Please sign in to comment.