Upgrade AWS SDK to the latest version

This commit is contained in:
Andrey Smirnov
2017-09-28 17:57:05 +03:00
parent 9a767b7631
commit 182c21e38c
1096 changed files with 309697 additions and 132612 deletions
File diff suppressed because it is too large Load Diff
@@ -1,4 +1,4 @@
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
// 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.
@@ -21,7 +21,7 @@ import (
//
// 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 the SDK's request pipeline.
// 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.
@@ -92,6 +92,10 @@ type ApplicationDiscoveryServiceAPI interface {
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)
@@ -120,6 +124,10 @@ type ApplicationDiscoveryServiceAPI interface {
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)
@@ -0,0 +1,87 @@
// 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 Amazon-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 the 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. We recommend that you use agent-based discovery for non-VMware
// environments and if you want 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 to gather
// information about software and software dependencies.
//
// * Agent-based discovery mode collects a richer set of data than agentless
// discovery by using Amazon software, 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.
//
// 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 using offline mode 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 AWS Application Discovery Service here
// (http://aws.amazon.com/application-discovery/preview/). We send you information
// about how to get started.
//
// 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 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
@@ -1,4 +1,4 @@
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package applicationdiscoveryservice
@@ -1,471 +0,0 @@
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
package applicationdiscoveryservice_test
import (
"bytes"
"fmt"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/applicationdiscoveryservice"
)
var _ time.Duration
var _ bytes.Buffer
func ExampleApplicationDiscoveryService_AssociateConfigurationItemsToApplication() {
sess := session.Must(session.NewSession())
svc := applicationdiscoveryservice.New(sess)
params := &applicationdiscoveryservice.AssociateConfigurationItemsToApplicationInput{
ApplicationConfigurationId: aws.String("ApplicationId"), // Required
ConfigurationIds: []*string{ // Required
aws.String("ConfigurationId"), // Required
// More values...
},
}
resp, err := svc.AssociateConfigurationItemsToApplication(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleApplicationDiscoveryService_CreateApplication() {
sess := session.Must(session.NewSession())
svc := applicationdiscoveryservice.New(sess)
params := &applicationdiscoveryservice.CreateApplicationInput{
Name: aws.String("String"), // Required
Description: aws.String("String"),
}
resp, err := svc.CreateApplication(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleApplicationDiscoveryService_CreateTags() {
sess := session.Must(session.NewSession())
svc := applicationdiscoveryservice.New(sess)
params := &applicationdiscoveryservice.CreateTagsInput{
ConfigurationIds: []*string{ // Required
aws.String("ConfigurationId"), // Required
// More values...
},
Tags: []*applicationdiscoveryservice.Tag{ // Required
{ // Required
Key: aws.String("TagKey"), // Required
Value: aws.String("TagValue"), // Required
},
// More values...
},
}
resp, err := svc.CreateTags(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleApplicationDiscoveryService_DeleteApplications() {
sess := session.Must(session.NewSession())
svc := applicationdiscoveryservice.New(sess)
params := &applicationdiscoveryservice.DeleteApplicationsInput{
ConfigurationIds: []*string{ // Required
aws.String("ApplicationId"), // Required
// More values...
},
}
resp, err := svc.DeleteApplications(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleApplicationDiscoveryService_DeleteTags() {
sess := session.Must(session.NewSession())
svc := applicationdiscoveryservice.New(sess)
params := &applicationdiscoveryservice.DeleteTagsInput{
ConfigurationIds: []*string{ // Required
aws.String("ConfigurationId"), // Required
// More values...
},
Tags: []*applicationdiscoveryservice.Tag{
{ // Required
Key: aws.String("TagKey"), // Required
Value: aws.String("TagValue"), // Required
},
// More values...
},
}
resp, err := svc.DeleteTags(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleApplicationDiscoveryService_DescribeAgents() {
sess := session.Must(session.NewSession())
svc := applicationdiscoveryservice.New(sess)
params := &applicationdiscoveryservice.DescribeAgentsInput{
AgentIds: []*string{
aws.String("AgentId"), // Required
// More values...
},
Filters: []*applicationdiscoveryservice.Filter{
{ // Required
Condition: aws.String("Condition"), // Required
Name: aws.String("String"), // Required
Values: []*string{ // Required
aws.String("FilterValue"), // Required
// More values...
},
},
// More values...
},
MaxResults: aws.Int64(1),
NextToken: aws.String("NextToken"),
}
resp, err := svc.DescribeAgents(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleApplicationDiscoveryService_DescribeConfigurations() {
sess := session.Must(session.NewSession())
svc := applicationdiscoveryservice.New(sess)
params := &applicationdiscoveryservice.DescribeConfigurationsInput{
ConfigurationIds: []*string{ // Required
aws.String("ConfigurationId"), // Required
// More values...
},
}
resp, err := svc.DescribeConfigurations(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleApplicationDiscoveryService_DescribeExportConfigurations() {
sess := session.Must(session.NewSession())
svc := applicationdiscoveryservice.New(sess)
params := &applicationdiscoveryservice.DescribeExportConfigurationsInput{
ExportIds: []*string{
aws.String("ConfigurationsExportId"), // Required
// More values...
},
MaxResults: aws.Int64(1),
NextToken: aws.String("NextToken"),
}
resp, err := svc.DescribeExportConfigurations(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleApplicationDiscoveryService_DescribeTags() {
sess := session.Must(session.NewSession())
svc := applicationdiscoveryservice.New(sess)
params := &applicationdiscoveryservice.DescribeTagsInput{
Filters: []*applicationdiscoveryservice.TagFilter{
{ // Required
Name: aws.String("FilterName"), // Required
Values: []*string{ // Required
aws.String("FilterValue"), // Required
// More values...
},
},
// More values...
},
MaxResults: aws.Int64(1),
NextToken: aws.String("NextToken"),
}
resp, err := svc.DescribeTags(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleApplicationDiscoveryService_DisassociateConfigurationItemsFromApplication() {
sess := session.Must(session.NewSession())
svc := applicationdiscoveryservice.New(sess)
params := &applicationdiscoveryservice.DisassociateConfigurationItemsFromApplicationInput{
ApplicationConfigurationId: aws.String("ApplicationId"), // Required
ConfigurationIds: []*string{ // Required
aws.String("ConfigurationId"), // Required
// More values...
},
}
resp, err := svc.DisassociateConfigurationItemsFromApplication(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleApplicationDiscoveryService_ExportConfigurations() {
sess := session.Must(session.NewSession())
svc := applicationdiscoveryservice.New(sess)
var params *applicationdiscoveryservice.ExportConfigurationsInput
resp, err := svc.ExportConfigurations(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleApplicationDiscoveryService_GetDiscoverySummary() {
sess := session.Must(session.NewSession())
svc := applicationdiscoveryservice.New(sess)
var params *applicationdiscoveryservice.GetDiscoverySummaryInput
resp, err := svc.GetDiscoverySummary(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleApplicationDiscoveryService_ListConfigurations() {
sess := session.Must(session.NewSession())
svc := applicationdiscoveryservice.New(sess)
params := &applicationdiscoveryservice.ListConfigurationsInput{
ConfigurationType: aws.String("ConfigurationItemType"), // Required
Filters: []*applicationdiscoveryservice.Filter{
{ // Required
Condition: aws.String("Condition"), // Required
Name: aws.String("String"), // Required
Values: []*string{ // Required
aws.String("FilterValue"), // Required
// More values...
},
},
// More values...
},
MaxResults: aws.Int64(1),
NextToken: aws.String("NextToken"),
OrderBy: []*applicationdiscoveryservice.OrderByElement{
{ // Required
FieldName: aws.String("String"), // Required
SortOrder: aws.String("orderString"),
},
// More values...
},
}
resp, err := svc.ListConfigurations(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleApplicationDiscoveryService_ListServerNeighbors() {
sess := session.Must(session.NewSession())
svc := applicationdiscoveryservice.New(sess)
params := &applicationdiscoveryservice.ListServerNeighborsInput{
ConfigurationId: aws.String("ConfigurationId"), // Required
MaxResults: aws.Int64(1),
NeighborConfigurationIds: []*string{
aws.String("ConfigurationId"), // Required
// More values...
},
NextToken: aws.String("String"),
PortInformationNeeded: aws.Bool(true),
}
resp, err := svc.ListServerNeighbors(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleApplicationDiscoveryService_StartDataCollectionByAgentIds() {
sess := session.Must(session.NewSession())
svc := applicationdiscoveryservice.New(sess)
params := &applicationdiscoveryservice.StartDataCollectionByAgentIdsInput{
AgentIds: []*string{ // Required
aws.String("AgentId"), // Required
// More values...
},
}
resp, err := svc.StartDataCollectionByAgentIds(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleApplicationDiscoveryService_StopDataCollectionByAgentIds() {
sess := session.Must(session.NewSession())
svc := applicationdiscoveryservice.New(sess)
params := &applicationdiscoveryservice.StopDataCollectionByAgentIdsInput{
AgentIds: []*string{ // Required
aws.String("AgentId"), // Required
// More values...
},
}
resp, err := svc.StopDataCollectionByAgentIds(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleApplicationDiscoveryService_UpdateApplication() {
sess := session.Must(session.NewSession())
svc := applicationdiscoveryservice.New(sess)
params := &applicationdiscoveryservice.UpdateApplicationInput{
ConfigurationId: aws.String("ApplicationId"), // Required
Description: aws.String("String"),
Name: aws.String("String"),
}
resp, err := svc.UpdateApplication(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
@@ -1,4 +1,4 @@
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package applicationdiscoveryservice
@@ -11,69 +11,12 @@ import (
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
)
// 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 Amazon-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 the Application Discovery Service FAQ (http://aws.amazon.com/application-discovery/faqs/).
// 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.
//
// 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. We recommend that you use agent-based discovery for non-VMware
// environments and if you want 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 to gather
// information about software and software dependencies.
//
// * Agent-based discovery mode collects a richer set of data than agentless
// discovery by using Amazon software, 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.
//
// Application Discovery Service integrates with application discovery solutions
// from AWS Partner Network (APN) partners. Third-party application discovery
// tools can query the 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 using offline mode 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 the AWS Application Discovery Service
// here (http://aws.amazon.com/application-discovery/preview/). We will send
// you information about how to get started.
//
// This API reference provides descriptions, syntax, and usage examples for
// each of the actions and data types for the 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/).
// The service client's operations are safe to be used concurrently.
// It is not safe to mutate any of the client's properties though.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01
// 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
}