Vendor aws-sdk-go (dep ensure) (#178)
This commit is contained in:
4322
vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/api.go
generated
vendored
Normal file
4322
vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/api.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
140
vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/applicationdiscoveryserviceiface/interface.go
generated
vendored
Normal file
140
vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/applicationdiscoveryserviceiface/interface.go
generated
vendored
Normal file
@@ -0,0 +1,140 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package applicationdiscoveryserviceiface provides an interface to enable mocking the AWS Application Discovery Service service client
|
||||
// for testing your code.
|
||||
//
|
||||
// It is important to note that this interface will have breaking changes
|
||||
// when the service model is updated and adds new API operations, paginators,
|
||||
// and waiters.
|
||||
package applicationdiscoveryserviceiface
|
||||
|
||||
import (
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/request"
|
||||
"github.com/aws/aws-sdk-go/service/applicationdiscoveryservice"
|
||||
)
|
||||
|
||||
// ApplicationDiscoveryServiceAPI provides an interface to enable mocking the
|
||||
// applicationdiscoveryservice.ApplicationDiscoveryService service client's API operation,
|
||||
// paginators, and waiters. This make unit testing your code that calls out
|
||||
// to the SDK's service client's calls easier.
|
||||
//
|
||||
// The best way to use this interface is so the SDK's service client's calls
|
||||
// can be stubbed out for unit testing your code with the SDK without needing
|
||||
// to inject custom request handlers into the SDK's request pipeline.
|
||||
//
|
||||
// // myFunc uses an SDK service client to make a request to
|
||||
// // AWS Application Discovery Service.
|
||||
// func myFunc(svc applicationdiscoveryserviceiface.ApplicationDiscoveryServiceAPI) bool {
|
||||
// // Make svc.AssociateConfigurationItemsToApplication request
|
||||
// }
|
||||
//
|
||||
// func main() {
|
||||
// sess := session.New()
|
||||
// svc := applicationdiscoveryservice.New(sess)
|
||||
//
|
||||
// myFunc(svc)
|
||||
// }
|
||||
//
|
||||
// In your _test.go file:
|
||||
//
|
||||
// // Define a mock struct to be used in your unit tests of myFunc.
|
||||
// type mockApplicationDiscoveryServiceClient struct {
|
||||
// applicationdiscoveryserviceiface.ApplicationDiscoveryServiceAPI
|
||||
// }
|
||||
// func (m *mockApplicationDiscoveryServiceClient) AssociateConfigurationItemsToApplication(input *applicationdiscoveryservice.AssociateConfigurationItemsToApplicationInput) (*applicationdiscoveryservice.AssociateConfigurationItemsToApplicationOutput, error) {
|
||||
// // mock response/functionality
|
||||
// }
|
||||
//
|
||||
// func TestMyFunc(t *testing.T) {
|
||||
// // Setup Test
|
||||
// mockSvc := &mockApplicationDiscoveryServiceClient{}
|
||||
//
|
||||
// myfunc(mockSvc)
|
||||
//
|
||||
// // Verify myFunc's functionality
|
||||
// }
|
||||
//
|
||||
// It is important to note that this interface will have breaking changes
|
||||
// when the service model is updated and adds new API operations, paginators,
|
||||
// and waiters. Its suggested to use the pattern above for testing, or using
|
||||
// tooling to generate mocks to satisfy the interfaces.
|
||||
type ApplicationDiscoveryServiceAPI interface {
|
||||
AssociateConfigurationItemsToApplication(*applicationdiscoveryservice.AssociateConfigurationItemsToApplicationInput) (*applicationdiscoveryservice.AssociateConfigurationItemsToApplicationOutput, error)
|
||||
AssociateConfigurationItemsToApplicationWithContext(aws.Context, *applicationdiscoveryservice.AssociateConfigurationItemsToApplicationInput, ...request.Option) (*applicationdiscoveryservice.AssociateConfigurationItemsToApplicationOutput, error)
|
||||
AssociateConfigurationItemsToApplicationRequest(*applicationdiscoveryservice.AssociateConfigurationItemsToApplicationInput) (*request.Request, *applicationdiscoveryservice.AssociateConfigurationItemsToApplicationOutput)
|
||||
|
||||
CreateApplication(*applicationdiscoveryservice.CreateApplicationInput) (*applicationdiscoveryservice.CreateApplicationOutput, error)
|
||||
CreateApplicationWithContext(aws.Context, *applicationdiscoveryservice.CreateApplicationInput, ...request.Option) (*applicationdiscoveryservice.CreateApplicationOutput, error)
|
||||
CreateApplicationRequest(*applicationdiscoveryservice.CreateApplicationInput) (*request.Request, *applicationdiscoveryservice.CreateApplicationOutput)
|
||||
|
||||
CreateTags(*applicationdiscoveryservice.CreateTagsInput) (*applicationdiscoveryservice.CreateTagsOutput, error)
|
||||
CreateTagsWithContext(aws.Context, *applicationdiscoveryservice.CreateTagsInput, ...request.Option) (*applicationdiscoveryservice.CreateTagsOutput, error)
|
||||
CreateTagsRequest(*applicationdiscoveryservice.CreateTagsInput) (*request.Request, *applicationdiscoveryservice.CreateTagsOutput)
|
||||
|
||||
DeleteApplications(*applicationdiscoveryservice.DeleteApplicationsInput) (*applicationdiscoveryservice.DeleteApplicationsOutput, error)
|
||||
DeleteApplicationsWithContext(aws.Context, *applicationdiscoveryservice.DeleteApplicationsInput, ...request.Option) (*applicationdiscoveryservice.DeleteApplicationsOutput, error)
|
||||
DeleteApplicationsRequest(*applicationdiscoveryservice.DeleteApplicationsInput) (*request.Request, *applicationdiscoveryservice.DeleteApplicationsOutput)
|
||||
|
||||
DeleteTags(*applicationdiscoveryservice.DeleteTagsInput) (*applicationdiscoveryservice.DeleteTagsOutput, error)
|
||||
DeleteTagsWithContext(aws.Context, *applicationdiscoveryservice.DeleteTagsInput, ...request.Option) (*applicationdiscoveryservice.DeleteTagsOutput, error)
|
||||
DeleteTagsRequest(*applicationdiscoveryservice.DeleteTagsInput) (*request.Request, *applicationdiscoveryservice.DeleteTagsOutput)
|
||||
|
||||
DescribeAgents(*applicationdiscoveryservice.DescribeAgentsInput) (*applicationdiscoveryservice.DescribeAgentsOutput, error)
|
||||
DescribeAgentsWithContext(aws.Context, *applicationdiscoveryservice.DescribeAgentsInput, ...request.Option) (*applicationdiscoveryservice.DescribeAgentsOutput, error)
|
||||
DescribeAgentsRequest(*applicationdiscoveryservice.DescribeAgentsInput) (*request.Request, *applicationdiscoveryservice.DescribeAgentsOutput)
|
||||
|
||||
DescribeConfigurations(*applicationdiscoveryservice.DescribeConfigurationsInput) (*applicationdiscoveryservice.DescribeConfigurationsOutput, error)
|
||||
DescribeConfigurationsWithContext(aws.Context, *applicationdiscoveryservice.DescribeConfigurationsInput, ...request.Option) (*applicationdiscoveryservice.DescribeConfigurationsOutput, error)
|
||||
DescribeConfigurationsRequest(*applicationdiscoveryservice.DescribeConfigurationsInput) (*request.Request, *applicationdiscoveryservice.DescribeConfigurationsOutput)
|
||||
|
||||
DescribeExportConfigurations(*applicationdiscoveryservice.DescribeExportConfigurationsInput) (*applicationdiscoveryservice.DescribeExportConfigurationsOutput, error)
|
||||
DescribeExportConfigurationsWithContext(aws.Context, *applicationdiscoveryservice.DescribeExportConfigurationsInput, ...request.Option) (*applicationdiscoveryservice.DescribeExportConfigurationsOutput, error)
|
||||
DescribeExportConfigurationsRequest(*applicationdiscoveryservice.DescribeExportConfigurationsInput) (*request.Request, *applicationdiscoveryservice.DescribeExportConfigurationsOutput)
|
||||
|
||||
DescribeExportTasks(*applicationdiscoveryservice.DescribeExportTasksInput) (*applicationdiscoveryservice.DescribeExportTasksOutput, error)
|
||||
DescribeExportTasksWithContext(aws.Context, *applicationdiscoveryservice.DescribeExportTasksInput, ...request.Option) (*applicationdiscoveryservice.DescribeExportTasksOutput, error)
|
||||
DescribeExportTasksRequest(*applicationdiscoveryservice.DescribeExportTasksInput) (*request.Request, *applicationdiscoveryservice.DescribeExportTasksOutput)
|
||||
|
||||
DescribeTags(*applicationdiscoveryservice.DescribeTagsInput) (*applicationdiscoveryservice.DescribeTagsOutput, error)
|
||||
DescribeTagsWithContext(aws.Context, *applicationdiscoveryservice.DescribeTagsInput, ...request.Option) (*applicationdiscoveryservice.DescribeTagsOutput, error)
|
||||
DescribeTagsRequest(*applicationdiscoveryservice.DescribeTagsInput) (*request.Request, *applicationdiscoveryservice.DescribeTagsOutput)
|
||||
|
||||
DisassociateConfigurationItemsFromApplication(*applicationdiscoveryservice.DisassociateConfigurationItemsFromApplicationInput) (*applicationdiscoveryservice.DisassociateConfigurationItemsFromApplicationOutput, error)
|
||||
DisassociateConfigurationItemsFromApplicationWithContext(aws.Context, *applicationdiscoveryservice.DisassociateConfigurationItemsFromApplicationInput, ...request.Option) (*applicationdiscoveryservice.DisassociateConfigurationItemsFromApplicationOutput, error)
|
||||
DisassociateConfigurationItemsFromApplicationRequest(*applicationdiscoveryservice.DisassociateConfigurationItemsFromApplicationInput) (*request.Request, *applicationdiscoveryservice.DisassociateConfigurationItemsFromApplicationOutput)
|
||||
|
||||
ExportConfigurations(*applicationdiscoveryservice.ExportConfigurationsInput) (*applicationdiscoveryservice.ExportConfigurationsOutput, error)
|
||||
ExportConfigurationsWithContext(aws.Context, *applicationdiscoveryservice.ExportConfigurationsInput, ...request.Option) (*applicationdiscoveryservice.ExportConfigurationsOutput, error)
|
||||
ExportConfigurationsRequest(*applicationdiscoveryservice.ExportConfigurationsInput) (*request.Request, *applicationdiscoveryservice.ExportConfigurationsOutput)
|
||||
|
||||
GetDiscoverySummary(*applicationdiscoveryservice.GetDiscoverySummaryInput) (*applicationdiscoveryservice.GetDiscoverySummaryOutput, error)
|
||||
GetDiscoverySummaryWithContext(aws.Context, *applicationdiscoveryservice.GetDiscoverySummaryInput, ...request.Option) (*applicationdiscoveryservice.GetDiscoverySummaryOutput, error)
|
||||
GetDiscoverySummaryRequest(*applicationdiscoveryservice.GetDiscoverySummaryInput) (*request.Request, *applicationdiscoveryservice.GetDiscoverySummaryOutput)
|
||||
|
||||
ListConfigurations(*applicationdiscoveryservice.ListConfigurationsInput) (*applicationdiscoveryservice.ListConfigurationsOutput, error)
|
||||
ListConfigurationsWithContext(aws.Context, *applicationdiscoveryservice.ListConfigurationsInput, ...request.Option) (*applicationdiscoveryservice.ListConfigurationsOutput, error)
|
||||
ListConfigurationsRequest(*applicationdiscoveryservice.ListConfigurationsInput) (*request.Request, *applicationdiscoveryservice.ListConfigurationsOutput)
|
||||
|
||||
ListServerNeighbors(*applicationdiscoveryservice.ListServerNeighborsInput) (*applicationdiscoveryservice.ListServerNeighborsOutput, error)
|
||||
ListServerNeighborsWithContext(aws.Context, *applicationdiscoveryservice.ListServerNeighborsInput, ...request.Option) (*applicationdiscoveryservice.ListServerNeighborsOutput, error)
|
||||
ListServerNeighborsRequest(*applicationdiscoveryservice.ListServerNeighborsInput) (*request.Request, *applicationdiscoveryservice.ListServerNeighborsOutput)
|
||||
|
||||
StartDataCollectionByAgentIds(*applicationdiscoveryservice.StartDataCollectionByAgentIdsInput) (*applicationdiscoveryservice.StartDataCollectionByAgentIdsOutput, error)
|
||||
StartDataCollectionByAgentIdsWithContext(aws.Context, *applicationdiscoveryservice.StartDataCollectionByAgentIdsInput, ...request.Option) (*applicationdiscoveryservice.StartDataCollectionByAgentIdsOutput, error)
|
||||
StartDataCollectionByAgentIdsRequest(*applicationdiscoveryservice.StartDataCollectionByAgentIdsInput) (*request.Request, *applicationdiscoveryservice.StartDataCollectionByAgentIdsOutput)
|
||||
|
||||
StartExportTask(*applicationdiscoveryservice.StartExportTaskInput) (*applicationdiscoveryservice.StartExportTaskOutput, error)
|
||||
StartExportTaskWithContext(aws.Context, *applicationdiscoveryservice.StartExportTaskInput, ...request.Option) (*applicationdiscoveryservice.StartExportTaskOutput, error)
|
||||
StartExportTaskRequest(*applicationdiscoveryservice.StartExportTaskInput) (*request.Request, *applicationdiscoveryservice.StartExportTaskOutput)
|
||||
|
||||
StopDataCollectionByAgentIds(*applicationdiscoveryservice.StopDataCollectionByAgentIdsInput) (*applicationdiscoveryservice.StopDataCollectionByAgentIdsOutput, error)
|
||||
StopDataCollectionByAgentIdsWithContext(aws.Context, *applicationdiscoveryservice.StopDataCollectionByAgentIdsInput, ...request.Option) (*applicationdiscoveryservice.StopDataCollectionByAgentIdsOutput, error)
|
||||
StopDataCollectionByAgentIdsRequest(*applicationdiscoveryservice.StopDataCollectionByAgentIdsInput) (*request.Request, *applicationdiscoveryservice.StopDataCollectionByAgentIdsOutput)
|
||||
|
||||
UpdateApplication(*applicationdiscoveryservice.UpdateApplicationInput) (*applicationdiscoveryservice.UpdateApplicationOutput, error)
|
||||
UpdateApplicationWithContext(aws.Context, *applicationdiscoveryservice.UpdateApplicationInput, ...request.Option) (*applicationdiscoveryservice.UpdateApplicationOutput, error)
|
||||
UpdateApplicationRequest(*applicationdiscoveryservice.UpdateApplicationInput) (*request.Request, *applicationdiscoveryservice.UpdateApplicationOutput)
|
||||
}
|
||||
|
||||
var _ ApplicationDiscoveryServiceAPI = (*applicationdiscoveryservice.ApplicationDiscoveryService)(nil)
|
||||
86
vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/doc.go
generated
vendored
Normal file
86
vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/doc.go
generated
vendored
Normal file
@@ -0,0 +1,86 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package applicationdiscoveryservice provides the client and types for making API
|
||||
// requests to AWS Application Discovery Service.
|
||||
//
|
||||
// AWS Application Discovery Service helps you plan application migration projects
|
||||
// by automatically identifying servers, virtual machines (VMs), software, and
|
||||
// software dependencies running in your on-premises data centers. Application
|
||||
// Discovery Service also collects application performance data, which can help
|
||||
// you assess the outcome of your migration. The data collected by Application
|
||||
// Discovery Service is securely retained in an AWS-hosted and managed database
|
||||
// in the cloud. You can export the data as a CSV or XML file into your preferred
|
||||
// visualization tool or cloud-migration solution to plan your migration. For
|
||||
// more information, see AWS Application Discovery Service FAQ (http://aws.amazon.com/application-discovery/faqs/).
|
||||
//
|
||||
// Application Discovery Service offers two modes of operation:
|
||||
//
|
||||
// * Agentless discovery mode is recommended for environments that use VMware
|
||||
// vCenter Server. This mode doesn't require you to install an agent on each
|
||||
// host. Agentless discovery gathers server information regardless of the
|
||||
// operating systems, which minimizes the time required for initial on-premises
|
||||
// infrastructure assessment. Agentless discovery doesn't collect information
|
||||
// about software and software dependencies. It also doesn't work in non-VMware
|
||||
// environments.
|
||||
//
|
||||
// * Agent-based discovery mode collects a richer set of data than agentless
|
||||
// discovery by using the AWS Application Discovery Agent, which you install
|
||||
// on one or more hosts in your data center. The agent captures infrastructure
|
||||
// and application information, including an inventory of installed software
|
||||
// applications, system and process performance, resource utilization, and
|
||||
// network dependencies between workloads. The information collected by agents
|
||||
// is secured at rest and in transit to the Application Discovery Service
|
||||
// database in the cloud.
|
||||
//
|
||||
// We recommend that you use agent-based discovery for non-VMware environments
|
||||
// and to collect information about software and software dependencies. You
|
||||
// can also run agent-based and agentless discovery simultaneously. Use agentless
|
||||
// discovery to quickly complete the initial infrastructure assessment and then
|
||||
// install agents on select hosts.
|
||||
//
|
||||
// Application Discovery Service integrates with application discovery solutions
|
||||
// from AWS Partner Network (APN) partners. Third-party application discovery
|
||||
// tools can query Application Discovery Service and write to the Application
|
||||
// Discovery Service database using a public API. You can then import the data
|
||||
// into either a visualization tool or cloud-migration solution.
|
||||
//
|
||||
// Application Discovery Service doesn't gather sensitive information. All data
|
||||
// is handled according to the AWS Privacy Policy (http://aws.amazon.com/privacy/).
|
||||
// You can operate Application Discovery Service offline to inspect collected
|
||||
// data before it is shared with the service.
|
||||
//
|
||||
// Your AWS account must be granted access to Application Discovery Service,
|
||||
// a process called whitelisting. This is true for AWS partners and customers
|
||||
// alike. To request access, sign up for Application Discovery Service (http://aws.amazon.com/application-discovery/).
|
||||
//
|
||||
// This API reference provides descriptions, syntax, and usage examples for
|
||||
// each of the actions and data types for Application Discovery Service. The
|
||||
// topic for each action shows the API request parameters and the response.
|
||||
// Alternatively, you can use one of the AWS SDKs to access an API that is tailored
|
||||
// to the programming language or platform that you're using. For more information,
|
||||
// see AWS SDKs (http://aws.amazon.com/tools/#SDKs).
|
||||
//
|
||||
// This guide is intended for use with the AWS Application Discovery Service
|
||||
// User Guide (http://docs.aws.amazon.com/application-discovery/latest/userguide/).
|
||||
//
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01 for more information on this service.
|
||||
//
|
||||
// See applicationdiscoveryservice package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/applicationdiscoveryservice/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To contact AWS Application Discovery Service 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.
|
||||
//
|
||||
// See the SDK's documentation for more information on how to use the SDK.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/
|
||||
//
|
||||
// See aws.Config documentation for more information on configuring SDK clients.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
|
||||
//
|
||||
// See the AWS Application Discovery Service client ApplicationDiscoveryService for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/applicationdiscoveryservice/#New
|
||||
package applicationdiscoveryservice
|
||||
45
vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/errors.go
generated
vendored
Normal file
45
vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/errors.go
generated
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package applicationdiscoveryservice
|
||||
|
||||
const (
|
||||
|
||||
// ErrCodeAuthorizationErrorException for service response error code
|
||||
// "AuthorizationErrorException".
|
||||
//
|
||||
// The AWS user account does not have permission to perform the action. Check
|
||||
// the IAM policy associated with this account.
|
||||
ErrCodeAuthorizationErrorException = "AuthorizationErrorException"
|
||||
|
||||
// ErrCodeInvalidParameterException for service response error code
|
||||
// "InvalidParameterException".
|
||||
//
|
||||
// One or more parameters are not valid. Verify the parameters and try again.
|
||||
ErrCodeInvalidParameterException = "InvalidParameterException"
|
||||
|
||||
// ErrCodeInvalidParameterValueException for service response error code
|
||||
// "InvalidParameterValueException".
|
||||
//
|
||||
// The value of one or more parameters are either invalid or out of range. Verify
|
||||
// the parameter values and try again.
|
||||
ErrCodeInvalidParameterValueException = "InvalidParameterValueException"
|
||||
|
||||
// ErrCodeOperationNotPermittedException for service response error code
|
||||
// "OperationNotPermittedException".
|
||||
//
|
||||
// This operation is not permitted.
|
||||
ErrCodeOperationNotPermittedException = "OperationNotPermittedException"
|
||||
|
||||
// ErrCodeResourceNotFoundException for service response error code
|
||||
// "ResourceNotFoundException".
|
||||
//
|
||||
// The specified configuration ID was not located. Verify the configuration
|
||||
// ID and try again.
|
||||
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
|
||||
|
||||
// ErrCodeServerInternalErrorException for service response error code
|
||||
// "ServerInternalErrorException".
|
||||
//
|
||||
// The server experienced an internal error. Try again.
|
||||
ErrCodeServerInternalErrorException = "ServerInternalErrorException"
|
||||
)
|
||||
95
vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/service.go
generated
vendored
Normal file
95
vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/service.go
generated
vendored
Normal file
@@ -0,0 +1,95 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package applicationdiscoveryservice
|
||||
|
||||
import (
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/client"
|
||||
"github.com/aws/aws-sdk-go/aws/client/metadata"
|
||||
"github.com/aws/aws-sdk-go/aws/request"
|
||||
"github.com/aws/aws-sdk-go/aws/signer/v4"
|
||||
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
|
||||
)
|
||||
|
||||
// ApplicationDiscoveryService provides the API operation methods for making requests to
|
||||
// AWS Application Discovery Service. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// ApplicationDiscoveryService methods are safe to use concurrently. It is not safe to
|
||||
// modify mutate any of the struct's properties though.
|
||||
type ApplicationDiscoveryService struct {
|
||||
*client.Client
|
||||
}
|
||||
|
||||
// Used for custom client initialization logic
|
||||
var initClient func(*client.Client)
|
||||
|
||||
// Used for custom request initialization logic
|
||||
var initRequest func(*request.Request)
|
||||
|
||||
// Service information constants
|
||||
const (
|
||||
ServiceName = "discovery" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
)
|
||||
|
||||
// New creates a new instance of the ApplicationDiscoveryService client with a session.
|
||||
// If additional configuration is needed for the client instance use the optional
|
||||
// aws.Config parameter to add your extra config.
|
||||
//
|
||||
// Example:
|
||||
// // Create a ApplicationDiscoveryService client from just a session.
|
||||
// svc := applicationdiscoveryservice.New(mySession)
|
||||
//
|
||||
// // Create a ApplicationDiscoveryService client with additional configuration
|
||||
// svc := applicationdiscoveryservice.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
|
||||
func New(p client.ConfigProvider, cfgs ...*aws.Config) *ApplicationDiscoveryService {
|
||||
c := p.ClientConfig(EndpointsID, cfgs...)
|
||||
return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
|
||||
}
|
||||
|
||||
// newClient creates, initializes and returns a new service client instance.
|
||||
func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *ApplicationDiscoveryService {
|
||||
svc := &ApplicationDiscoveryService{
|
||||
Client: client.New(
|
||||
cfg,
|
||||
metadata.ClientInfo{
|
||||
ServiceName: ServiceName,
|
||||
SigningName: signingName,
|
||||
SigningRegion: signingRegion,
|
||||
Endpoint: endpoint,
|
||||
APIVersion: "2015-11-01",
|
||||
JSONVersion: "1.1",
|
||||
TargetPrefix: "AWSPoseidonService_V2015_11_01",
|
||||
},
|
||||
handlers,
|
||||
),
|
||||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
|
||||
svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler)
|
||||
|
||||
// Run custom client initialization if present
|
||||
if initClient != nil {
|
||||
initClient(svc.Client)
|
||||
}
|
||||
|
||||
return svc
|
||||
}
|
||||
|
||||
// newRequest creates a new request for a ApplicationDiscoveryService operation and runs any
|
||||
// custom request initialization.
|
||||
func (c *ApplicationDiscoveryService) newRequest(op *request.Operation, params, data interface{}) *request.Request {
|
||||
req := c.NewRequest(op, params, data)
|
||||
|
||||
// Run custom request initialization if present
|
||||
if initRequest != nil {
|
||||
initRequest(req)
|
||||
}
|
||||
|
||||
return req
|
||||
}
|
||||
Reference in New Issue
Block a user