Update Go AWS SDK to the latest version

This commit is contained in:
Andrey Smirnov
2019-07-13 00:03:55 +03:00
committed by Andrey Smirnov
parent d08be990ef
commit 94a72b23ff
2183 changed files with 885887 additions and 228114 deletions
File diff suppressed because it is too large Load Diff
+10 -9
View File
@@ -1,14 +1,15 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package servicediscovery provides the client and types for making API
// requests to Amazon Route 53 Auto Naming.
// requests to AWS Cloud Map.
//
// Amazon Route 53 auto naming lets you configure public or private namespaces
// that your microservice applications run in. When instances of the service
// become available, you can call the auto naming API to register the instance,
// and Route 53 automatically creates up to five DNS records and an optional
// health check. Clients that submit DNS queries for the service receive an
// answer that contains up to eight healthy records.
// AWS Cloud Map lets you configure public DNS, private DNS, or HTTP namespaces
// that your microservice applications run in. When an instance of the service
// becomes available, you can call the AWS Cloud Map API to register the instance
// with AWS Cloud Map. For public or private DNS namespaces, AWS Cloud Map automatically
// creates DNS records and an optional health check. Clients that submit public
// or private DNS queries, or HTTP requests, for the service receive an answer
// that contains up to eight healthy records.
//
// See https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14 for more information on this service.
//
@@ -17,7 +18,7 @@
//
// Using the Client
//
// To contact Amazon Route 53 Auto Naming with the SDK use the New function to create
// To contact AWS Cloud Map with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently.
//
@@ -27,7 +28,7 @@
// See aws.Config documentation for more information on configuring SDK clients.
// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
//
// See the Amazon Route 53 Auto Naming client ServiceDiscovery for more
// See the AWS Cloud Map client ServiceDiscovery for more
// information on creating client for this service.
// https://docs.aws.amazon.com/sdk-for-go/api/service/servicediscovery/#New
package servicediscovery
+6 -2
View File
@@ -6,6 +6,9 @@ const (
// ErrCodeCustomHealthNotFound for service response error code
// "CustomHealthNotFound".
//
// The health check for the instance that is specified by ServiceId and InstanceId
// is not a custom health check.
ErrCodeCustomHealthNotFound = "CustomHealthNotFound"
// ErrCodeDuplicateRequest for service response error code
@@ -24,8 +27,9 @@ const (
// ErrCodeInvalidInput for service response error code
// "InvalidInput".
//
// One or more specified values aren't valid. For example, when you're creating
// a namespace, the value of Name might not be a valid DNS name.
// One or more specified values aren't valid. For example, a required value
// might be missing, a numeric value might be outside the allowed range, or
// a string value might exceed length constraints.
ErrCodeInvalidInput = "InvalidInput"
// ErrCodeNamespaceAlreadyExists for service response error code
+5 -3
View File
@@ -12,7 +12,7 @@ import (
)
// ServiceDiscovery provides the API operation methods for making requests to
// Amazon Route 53 Auto Naming. See this package's package overview docs
// AWS Cloud Map. See this package's package overview docs
// for details on the service.
//
// ServiceDiscovery methods are safe to use concurrently. It is not safe to
@@ -29,8 +29,9 @@ var initRequest func(*request.Request)
// Service information constants
const (
ServiceName = "servicediscovery" // Service endpoint prefix API calls made to.
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
ServiceName = "servicediscovery" // Name of service.
EndpointsID = ServiceName // ID to lookup a service endpoint with.
ServiceID = "ServiceDiscovery" // ServiceID is a unique identifer of a specific service.
)
// New creates a new instance of the ServiceDiscovery client with a session.
@@ -55,6 +56,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
cfg,
metadata.ClientInfo{
ServiceName: ServiceName,
ServiceID: ServiceID,
SigningName: signingName,
SigningRegion: signingRegion,
Endpoint: endpoint,
@@ -1,6 +1,6 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package servicediscoveryiface provides an interface to enable mocking the Amazon Route 53 Auto Naming service client
// Package servicediscoveryiface provides an interface to enable mocking the AWS Cloud Map service client
// for testing your code.
//
// It is important to note that this interface will have breaking changes
@@ -24,9 +24,9 @@ import (
// to inject custom request handlers into the SDK's request pipeline.
//
// // myFunc uses an SDK service client to make a request to
// // Amazon Route 53 Auto Naming.
// // AWS Cloud Map.
// func myFunc(svc servicediscoveryiface.ServiceDiscoveryAPI) bool {
// // Make svc.CreatePrivateDnsNamespace request
// // Make svc.CreateHttpNamespace request
// }
//
// func main() {
@@ -42,7 +42,7 @@ import (
// type mockServiceDiscoveryClient struct {
// servicediscoveryiface.ServiceDiscoveryAPI
// }
// func (m *mockServiceDiscoveryClient) CreatePrivateDnsNamespace(input *servicediscovery.CreatePrivateDnsNamespaceInput) (*servicediscovery.CreatePrivateDnsNamespaceOutput, error) {
// func (m *mockServiceDiscoveryClient) CreateHttpNamespace(input *servicediscovery.CreateHttpNamespaceInput) (*servicediscovery.CreateHttpNamespaceOutput, error) {
// // mock response/functionality
// }
//
@@ -60,6 +60,10 @@ import (
// and waiters. Its suggested to use the pattern above for testing, or using
// tooling to generate mocks to satisfy the interfaces.
type ServiceDiscoveryAPI interface {
CreateHttpNamespace(*servicediscovery.CreateHttpNamespaceInput) (*servicediscovery.CreateHttpNamespaceOutput, error)
CreateHttpNamespaceWithContext(aws.Context, *servicediscovery.CreateHttpNamespaceInput, ...request.Option) (*servicediscovery.CreateHttpNamespaceOutput, error)
CreateHttpNamespaceRequest(*servicediscovery.CreateHttpNamespaceInput) (*request.Request, *servicediscovery.CreateHttpNamespaceOutput)
CreatePrivateDnsNamespace(*servicediscovery.CreatePrivateDnsNamespaceInput) (*servicediscovery.CreatePrivateDnsNamespaceOutput, error)
CreatePrivateDnsNamespaceWithContext(aws.Context, *servicediscovery.CreatePrivateDnsNamespaceInput, ...request.Option) (*servicediscovery.CreatePrivateDnsNamespaceOutput, error)
CreatePrivateDnsNamespaceRequest(*servicediscovery.CreatePrivateDnsNamespaceInput) (*request.Request, *servicediscovery.CreatePrivateDnsNamespaceOutput)
@@ -84,6 +88,10 @@ type ServiceDiscoveryAPI interface {
DeregisterInstanceWithContext(aws.Context, *servicediscovery.DeregisterInstanceInput, ...request.Option) (*servicediscovery.DeregisterInstanceOutput, error)
DeregisterInstanceRequest(*servicediscovery.DeregisterInstanceInput) (*request.Request, *servicediscovery.DeregisterInstanceOutput)
DiscoverInstances(*servicediscovery.DiscoverInstancesInput) (*servicediscovery.DiscoverInstancesOutput, error)
DiscoverInstancesWithContext(aws.Context, *servicediscovery.DiscoverInstancesInput, ...request.Option) (*servicediscovery.DiscoverInstancesOutput, error)
DiscoverInstancesRequest(*servicediscovery.DiscoverInstancesInput) (*request.Request, *servicediscovery.DiscoverInstancesOutput)
GetInstance(*servicediscovery.GetInstanceInput) (*servicediscovery.GetInstanceOutput, error)
GetInstanceWithContext(aws.Context, *servicediscovery.GetInstanceInput, ...request.Option) (*servicediscovery.GetInstanceOutput, error)
GetInstanceRequest(*servicediscovery.GetInstanceInput) (*request.Request, *servicediscovery.GetInstanceOutput)