Documentation
¶
Overview ¶
Package endpoints provides lookups for all AWS service endpoints.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddOverride ¶
func AddOverride(service, region, uri string)
AddOverride overrides the endpoint for a specific service, using either an existing region name or a fake one (e.g. "test-1").
This allows developers to use local mock AWS services when they're writing tests for their Go code that uses aws-go:
endpoints.AddOverride("EC2", "test-1", "http://localhost:3000") // This EC2 client uses the override as service endpoint. cli := ec2.New(credentials, "test-1", nil)
Types ¶
This section is empty.