Skip to content

Commit

Permalink
add source property for aws endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
skotambkar committed Jan 22, 2021
1 parent a55d57f commit a8c40b0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions aws/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,27 @@ type Endpoint struct {
// The signing method that should be used for signing the requests to the
// endpoint.
SigningMethod string

// The source of the Endpoint. By default, this will be ServiceMetadata.
// When providing a custom endpoint, you should set the source as CustomSource.
// If source is not provided when providing a custom endpoint, the SDK may not
// perform required host mutations correctly. Source should be used along with
// HostnameImmutable property as per the usage requirement.
Source EndpointSource
}

// EndpointSource is the source type of endpoint.
type EndpointSource int

const (
// ServiceMetadata denotes service provided endpoint metadata used as Endpoint Source.
ServiceMetadata EndpointSource = iota

// CustomSource denotes endpoint is a custom endpoint.
// This source should be used when providing a custom endpoint to be used by the SDK.
CustomSource
)

// EndpointNotFoundError is a sentinel error to indicate that the
// EndpointResolver implementation was unable to resolve an endpoint for the
// given service and region. Resolvers should use this to indicate that an API
Expand Down

0 comments on commit a8c40b0

Please sign in to comment.