github.com/aavshr/aws-sdk-go@v1.41.3/service/applicationdiscoveryservice/api.go (about)

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package applicationdiscoveryservice
     4  
     5  import (
     6  	"fmt"
     7  	"time"
     8  
     9  	"github.com/aavshr/aws-sdk-go/aws"
    10  	"github.com/aavshr/aws-sdk-go/aws/awsutil"
    11  	"github.com/aavshr/aws-sdk-go/aws/request"
    12  	"github.com/aavshr/aws-sdk-go/private/protocol"
    13  	"github.com/aavshr/aws-sdk-go/private/protocol/jsonrpc"
    14  )
    15  
    16  const opAssociateConfigurationItemsToApplication = "AssociateConfigurationItemsToApplication"
    17  
    18  // AssociateConfigurationItemsToApplicationRequest generates a "aws/request.Request" representing the
    19  // client's request for the AssociateConfigurationItemsToApplication operation. The "output" return
    20  // value will be populated with the request's response once the request completes
    21  // successfully.
    22  //
    23  // Use "Send" method on the returned Request to send the API call to the service.
    24  // the "output" return value is not valid until after Send returns without error.
    25  //
    26  // See AssociateConfigurationItemsToApplication for more information on using the AssociateConfigurationItemsToApplication
    27  // API call, and error handling.
    28  //
    29  // This method is useful when you want to inject custom logic or configuration
    30  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
    31  //
    32  //
    33  //    // Example sending a request using the AssociateConfigurationItemsToApplicationRequest method.
    34  //    req, resp := client.AssociateConfigurationItemsToApplicationRequest(params)
    35  //
    36  //    err := req.Send()
    37  //    if err == nil { // resp is now filled
    38  //        fmt.Println(resp)
    39  //    }
    40  //
    41  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/AssociateConfigurationItemsToApplication
    42  func (c *ApplicationDiscoveryService) AssociateConfigurationItemsToApplicationRequest(input *AssociateConfigurationItemsToApplicationInput) (req *request.Request, output *AssociateConfigurationItemsToApplicationOutput) {
    43  	op := &request.Operation{
    44  		Name:       opAssociateConfigurationItemsToApplication,
    45  		HTTPMethod: "POST",
    46  		HTTPPath:   "/",
    47  	}
    48  
    49  	if input == nil {
    50  		input = &AssociateConfigurationItemsToApplicationInput{}
    51  	}
    52  
    53  	output = &AssociateConfigurationItemsToApplicationOutput{}
    54  	req = c.newRequest(op, input, output)
    55  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
    56  	return
    57  }
    58  
    59  // AssociateConfigurationItemsToApplication API operation for AWS Application Discovery Service.
    60  //
    61  // Associates one or more configuration items with an application.
    62  //
    63  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
    64  // with awserr.Error's Code and Message methods to get detailed information about
    65  // the error.
    66  //
    67  // See the AWS API reference guide for AWS Application Discovery Service's
    68  // API operation AssociateConfigurationItemsToApplication for usage and error information.
    69  //
    70  // Returned Error Types:
    71  //   * AuthorizationErrorException
    72  //   The AWS user account does not have permission to perform the action. Check
    73  //   the IAM policy associated with this account.
    74  //
    75  //   * InvalidParameterException
    76  //   One or more parameters are not valid. Verify the parameters and try again.
    77  //
    78  //   * InvalidParameterValueException
    79  //   The value of one or more parameters are either invalid or out of range. Verify
    80  //   the parameter values and try again.
    81  //
    82  //   * ServerInternalErrorException
    83  //   The server experienced an internal error. Try again.
    84  //
    85  //   * HomeRegionNotSetException
    86  //   The home region is not set. Set the home region to continue.
    87  //
    88  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/AssociateConfigurationItemsToApplication
    89  func (c *ApplicationDiscoveryService) AssociateConfigurationItemsToApplication(input *AssociateConfigurationItemsToApplicationInput) (*AssociateConfigurationItemsToApplicationOutput, error) {
    90  	req, out := c.AssociateConfigurationItemsToApplicationRequest(input)
    91  	return out, req.Send()
    92  }
    93  
    94  // AssociateConfigurationItemsToApplicationWithContext is the same as AssociateConfigurationItemsToApplication with the addition of
    95  // the ability to pass a context and additional request options.
    96  //
    97  // See AssociateConfigurationItemsToApplication for details on how to use this API operation.
    98  //
    99  // The context must be non-nil and will be used for request cancellation. If
   100  // the context is nil a panic will occur. In the future the SDK may create
   101  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   102  // for more information on using Contexts.
   103  func (c *ApplicationDiscoveryService) AssociateConfigurationItemsToApplicationWithContext(ctx aws.Context, input *AssociateConfigurationItemsToApplicationInput, opts ...request.Option) (*AssociateConfigurationItemsToApplicationOutput, error) {
   104  	req, out := c.AssociateConfigurationItemsToApplicationRequest(input)
   105  	req.SetContext(ctx)
   106  	req.ApplyOptions(opts...)
   107  	return out, req.Send()
   108  }
   109  
   110  const opBatchDeleteImportData = "BatchDeleteImportData"
   111  
   112  // BatchDeleteImportDataRequest generates a "aws/request.Request" representing the
   113  // client's request for the BatchDeleteImportData operation. The "output" return
   114  // value will be populated with the request's response once the request completes
   115  // successfully.
   116  //
   117  // Use "Send" method on the returned Request to send the API call to the service.
   118  // the "output" return value is not valid until after Send returns without error.
   119  //
   120  // See BatchDeleteImportData for more information on using the BatchDeleteImportData
   121  // API call, and error handling.
   122  //
   123  // This method is useful when you want to inject custom logic or configuration
   124  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   125  //
   126  //
   127  //    // Example sending a request using the BatchDeleteImportDataRequest method.
   128  //    req, resp := client.BatchDeleteImportDataRequest(params)
   129  //
   130  //    err := req.Send()
   131  //    if err == nil { // resp is now filled
   132  //        fmt.Println(resp)
   133  //    }
   134  //
   135  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/BatchDeleteImportData
   136  func (c *ApplicationDiscoveryService) BatchDeleteImportDataRequest(input *BatchDeleteImportDataInput) (req *request.Request, output *BatchDeleteImportDataOutput) {
   137  	op := &request.Operation{
   138  		Name:       opBatchDeleteImportData,
   139  		HTTPMethod: "POST",
   140  		HTTPPath:   "/",
   141  	}
   142  
   143  	if input == nil {
   144  		input = &BatchDeleteImportDataInput{}
   145  	}
   146  
   147  	output = &BatchDeleteImportDataOutput{}
   148  	req = c.newRequest(op, input, output)
   149  	return
   150  }
   151  
   152  // BatchDeleteImportData API operation for AWS Application Discovery Service.
   153  //
   154  // Deletes one or more import tasks, each identified by their import ID. Each
   155  // import task has a number of records that can identify servers or applications.
   156  //
   157  // AWS Application Discovery Service has built-in matching logic that will identify
   158  // when discovered servers match existing entries that you've previously discovered,
   159  // the information for the already-existing discovered server is updated. When
   160  // you delete an import task that contains records that were used to match,
   161  // the information in those matched records that comes from the deleted records
   162  // will also be deleted.
   163  //
   164  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   165  // with awserr.Error's Code and Message methods to get detailed information about
   166  // the error.
   167  //
   168  // See the AWS API reference guide for AWS Application Discovery Service's
   169  // API operation BatchDeleteImportData for usage and error information.
   170  //
   171  // Returned Error Types:
   172  //   * AuthorizationErrorException
   173  //   The AWS user account does not have permission to perform the action. Check
   174  //   the IAM policy associated with this account.
   175  //
   176  //   * InvalidParameterException
   177  //   One or more parameters are not valid. Verify the parameters and try again.
   178  //
   179  //   * InvalidParameterValueException
   180  //   The value of one or more parameters are either invalid or out of range. Verify
   181  //   the parameter values and try again.
   182  //
   183  //   * ServerInternalErrorException
   184  //   The server experienced an internal error. Try again.
   185  //
   186  //   * HomeRegionNotSetException
   187  //   The home region is not set. Set the home region to continue.
   188  //
   189  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/BatchDeleteImportData
   190  func (c *ApplicationDiscoveryService) BatchDeleteImportData(input *BatchDeleteImportDataInput) (*BatchDeleteImportDataOutput, error) {
   191  	req, out := c.BatchDeleteImportDataRequest(input)
   192  	return out, req.Send()
   193  }
   194  
   195  // BatchDeleteImportDataWithContext is the same as BatchDeleteImportData with the addition of
   196  // the ability to pass a context and additional request options.
   197  //
   198  // See BatchDeleteImportData for details on how to use this API operation.
   199  //
   200  // The context must be non-nil and will be used for request cancellation. If
   201  // the context is nil a panic will occur. In the future the SDK may create
   202  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   203  // for more information on using Contexts.
   204  func (c *ApplicationDiscoveryService) BatchDeleteImportDataWithContext(ctx aws.Context, input *BatchDeleteImportDataInput, opts ...request.Option) (*BatchDeleteImportDataOutput, error) {
   205  	req, out := c.BatchDeleteImportDataRequest(input)
   206  	req.SetContext(ctx)
   207  	req.ApplyOptions(opts...)
   208  	return out, req.Send()
   209  }
   210  
   211  const opCreateApplication = "CreateApplication"
   212  
   213  // CreateApplicationRequest generates a "aws/request.Request" representing the
   214  // client's request for the CreateApplication operation. The "output" return
   215  // value will be populated with the request's response once the request completes
   216  // successfully.
   217  //
   218  // Use "Send" method on the returned Request to send the API call to the service.
   219  // the "output" return value is not valid until after Send returns without error.
   220  //
   221  // See CreateApplication for more information on using the CreateApplication
   222  // API call, and error handling.
   223  //
   224  // This method is useful when you want to inject custom logic or configuration
   225  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   226  //
   227  //
   228  //    // Example sending a request using the CreateApplicationRequest method.
   229  //    req, resp := client.CreateApplicationRequest(params)
   230  //
   231  //    err := req.Send()
   232  //    if err == nil { // resp is now filled
   233  //        fmt.Println(resp)
   234  //    }
   235  //
   236  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateApplication
   237  func (c *ApplicationDiscoveryService) CreateApplicationRequest(input *CreateApplicationInput) (req *request.Request, output *CreateApplicationOutput) {
   238  	op := &request.Operation{
   239  		Name:       opCreateApplication,
   240  		HTTPMethod: "POST",
   241  		HTTPPath:   "/",
   242  	}
   243  
   244  	if input == nil {
   245  		input = &CreateApplicationInput{}
   246  	}
   247  
   248  	output = &CreateApplicationOutput{}
   249  	req = c.newRequest(op, input, output)
   250  	return
   251  }
   252  
   253  // CreateApplication API operation for AWS Application Discovery Service.
   254  //
   255  // Creates an application with the given name and description.
   256  //
   257  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   258  // with awserr.Error's Code and Message methods to get detailed information about
   259  // the error.
   260  //
   261  // See the AWS API reference guide for AWS Application Discovery Service's
   262  // API operation CreateApplication for usage and error information.
   263  //
   264  // Returned Error Types:
   265  //   * AuthorizationErrorException
   266  //   The AWS user account does not have permission to perform the action. Check
   267  //   the IAM policy associated with this account.
   268  //
   269  //   * InvalidParameterException
   270  //   One or more parameters are not valid. Verify the parameters and try again.
   271  //
   272  //   * InvalidParameterValueException
   273  //   The value of one or more parameters are either invalid or out of range. Verify
   274  //   the parameter values and try again.
   275  //
   276  //   * ServerInternalErrorException
   277  //   The server experienced an internal error. Try again.
   278  //
   279  //   * HomeRegionNotSetException
   280  //   The home region is not set. Set the home region to continue.
   281  //
   282  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateApplication
   283  func (c *ApplicationDiscoveryService) CreateApplication(input *CreateApplicationInput) (*CreateApplicationOutput, error) {
   284  	req, out := c.CreateApplicationRequest(input)
   285  	return out, req.Send()
   286  }
   287  
   288  // CreateApplicationWithContext is the same as CreateApplication with the addition of
   289  // the ability to pass a context and additional request options.
   290  //
   291  // See CreateApplication for details on how to use this API operation.
   292  //
   293  // The context must be non-nil and will be used for request cancellation. If
   294  // the context is nil a panic will occur. In the future the SDK may create
   295  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   296  // for more information on using Contexts.
   297  func (c *ApplicationDiscoveryService) CreateApplicationWithContext(ctx aws.Context, input *CreateApplicationInput, opts ...request.Option) (*CreateApplicationOutput, error) {
   298  	req, out := c.CreateApplicationRequest(input)
   299  	req.SetContext(ctx)
   300  	req.ApplyOptions(opts...)
   301  	return out, req.Send()
   302  }
   303  
   304  const opCreateTags = "CreateTags"
   305  
   306  // CreateTagsRequest generates a "aws/request.Request" representing the
   307  // client's request for the CreateTags operation. The "output" return
   308  // value will be populated with the request's response once the request completes
   309  // successfully.
   310  //
   311  // Use "Send" method on the returned Request to send the API call to the service.
   312  // the "output" return value is not valid until after Send returns without error.
   313  //
   314  // See CreateTags for more information on using the CreateTags
   315  // API call, and error handling.
   316  //
   317  // This method is useful when you want to inject custom logic or configuration
   318  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   319  //
   320  //
   321  //    // Example sending a request using the CreateTagsRequest method.
   322  //    req, resp := client.CreateTagsRequest(params)
   323  //
   324  //    err := req.Send()
   325  //    if err == nil { // resp is now filled
   326  //        fmt.Println(resp)
   327  //    }
   328  //
   329  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateTags
   330  func (c *ApplicationDiscoveryService) CreateTagsRequest(input *CreateTagsInput) (req *request.Request, output *CreateTagsOutput) {
   331  	op := &request.Operation{
   332  		Name:       opCreateTags,
   333  		HTTPMethod: "POST",
   334  		HTTPPath:   "/",
   335  	}
   336  
   337  	if input == nil {
   338  		input = &CreateTagsInput{}
   339  	}
   340  
   341  	output = &CreateTagsOutput{}
   342  	req = c.newRequest(op, input, output)
   343  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
   344  	return
   345  }
   346  
   347  // CreateTags API operation for AWS Application Discovery Service.
   348  //
   349  // Creates one or more tags for configuration items. Tags are metadata that
   350  // help you categorize IT assets. This API accepts a list of multiple configuration
   351  // items.
   352  //
   353  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   354  // with awserr.Error's Code and Message methods to get detailed information about
   355  // the error.
   356  //
   357  // See the AWS API reference guide for AWS Application Discovery Service's
   358  // API operation CreateTags for usage and error information.
   359  //
   360  // Returned Error Types:
   361  //   * AuthorizationErrorException
   362  //   The AWS user account does not have permission to perform the action. Check
   363  //   the IAM policy associated with this account.
   364  //
   365  //   * ResourceNotFoundException
   366  //   The specified configuration ID was not located. Verify the configuration
   367  //   ID and try again.
   368  //
   369  //   * InvalidParameterException
   370  //   One or more parameters are not valid. Verify the parameters and try again.
   371  //
   372  //   * InvalidParameterValueException
   373  //   The value of one or more parameters are either invalid or out of range. Verify
   374  //   the parameter values and try again.
   375  //
   376  //   * ServerInternalErrorException
   377  //   The server experienced an internal error. Try again.
   378  //
   379  //   * HomeRegionNotSetException
   380  //   The home region is not set. Set the home region to continue.
   381  //
   382  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateTags
   383  func (c *ApplicationDiscoveryService) CreateTags(input *CreateTagsInput) (*CreateTagsOutput, error) {
   384  	req, out := c.CreateTagsRequest(input)
   385  	return out, req.Send()
   386  }
   387  
   388  // CreateTagsWithContext is the same as CreateTags with the addition of
   389  // the ability to pass a context and additional request options.
   390  //
   391  // See CreateTags for details on how to use this API operation.
   392  //
   393  // The context must be non-nil and will be used for request cancellation. If
   394  // the context is nil a panic will occur. In the future the SDK may create
   395  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   396  // for more information on using Contexts.
   397  func (c *ApplicationDiscoveryService) CreateTagsWithContext(ctx aws.Context, input *CreateTagsInput, opts ...request.Option) (*CreateTagsOutput, error) {
   398  	req, out := c.CreateTagsRequest(input)
   399  	req.SetContext(ctx)
   400  	req.ApplyOptions(opts...)
   401  	return out, req.Send()
   402  }
   403  
   404  const opDeleteApplications = "DeleteApplications"
   405  
   406  // DeleteApplicationsRequest generates a "aws/request.Request" representing the
   407  // client's request for the DeleteApplications operation. The "output" return
   408  // value will be populated with the request's response once the request completes
   409  // successfully.
   410  //
   411  // Use "Send" method on the returned Request to send the API call to the service.
   412  // the "output" return value is not valid until after Send returns without error.
   413  //
   414  // See DeleteApplications for more information on using the DeleteApplications
   415  // API call, and error handling.
   416  //
   417  // This method is useful when you want to inject custom logic or configuration
   418  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   419  //
   420  //
   421  //    // Example sending a request using the DeleteApplicationsRequest method.
   422  //    req, resp := client.DeleteApplicationsRequest(params)
   423  //
   424  //    err := req.Send()
   425  //    if err == nil { // resp is now filled
   426  //        fmt.Println(resp)
   427  //    }
   428  //
   429  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteApplications
   430  func (c *ApplicationDiscoveryService) DeleteApplicationsRequest(input *DeleteApplicationsInput) (req *request.Request, output *DeleteApplicationsOutput) {
   431  	op := &request.Operation{
   432  		Name:       opDeleteApplications,
   433  		HTTPMethod: "POST",
   434  		HTTPPath:   "/",
   435  	}
   436  
   437  	if input == nil {
   438  		input = &DeleteApplicationsInput{}
   439  	}
   440  
   441  	output = &DeleteApplicationsOutput{}
   442  	req = c.newRequest(op, input, output)
   443  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
   444  	return
   445  }
   446  
   447  // DeleteApplications API operation for AWS Application Discovery Service.
   448  //
   449  // Deletes a list of applications and their associations with configuration
   450  // items.
   451  //
   452  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   453  // with awserr.Error's Code and Message methods to get detailed information about
   454  // the error.
   455  //
   456  // See the AWS API reference guide for AWS Application Discovery Service's
   457  // API operation DeleteApplications for usage and error information.
   458  //
   459  // Returned Error Types:
   460  //   * AuthorizationErrorException
   461  //   The AWS user account does not have permission to perform the action. Check
   462  //   the IAM policy associated with this account.
   463  //
   464  //   * InvalidParameterException
   465  //   One or more parameters are not valid. Verify the parameters and try again.
   466  //
   467  //   * InvalidParameterValueException
   468  //   The value of one or more parameters are either invalid or out of range. Verify
   469  //   the parameter values and try again.
   470  //
   471  //   * ServerInternalErrorException
   472  //   The server experienced an internal error. Try again.
   473  //
   474  //   * HomeRegionNotSetException
   475  //   The home region is not set. Set the home region to continue.
   476  //
   477  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteApplications
   478  func (c *ApplicationDiscoveryService) DeleteApplications(input *DeleteApplicationsInput) (*DeleteApplicationsOutput, error) {
   479  	req, out := c.DeleteApplicationsRequest(input)
   480  	return out, req.Send()
   481  }
   482  
   483  // DeleteApplicationsWithContext is the same as DeleteApplications with the addition of
   484  // the ability to pass a context and additional request options.
   485  //
   486  // See DeleteApplications for details on how to use this API operation.
   487  //
   488  // The context must be non-nil and will be used for request cancellation. If
   489  // the context is nil a panic will occur. In the future the SDK may create
   490  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   491  // for more information on using Contexts.
   492  func (c *ApplicationDiscoveryService) DeleteApplicationsWithContext(ctx aws.Context, input *DeleteApplicationsInput, opts ...request.Option) (*DeleteApplicationsOutput, error) {
   493  	req, out := c.DeleteApplicationsRequest(input)
   494  	req.SetContext(ctx)
   495  	req.ApplyOptions(opts...)
   496  	return out, req.Send()
   497  }
   498  
   499  const opDeleteTags = "DeleteTags"
   500  
   501  // DeleteTagsRequest generates a "aws/request.Request" representing the
   502  // client's request for the DeleteTags operation. The "output" return
   503  // value will be populated with the request's response once the request completes
   504  // successfully.
   505  //
   506  // Use "Send" method on the returned Request to send the API call to the service.
   507  // the "output" return value is not valid until after Send returns without error.
   508  //
   509  // See DeleteTags for more information on using the DeleteTags
   510  // API call, and error handling.
   511  //
   512  // This method is useful when you want to inject custom logic or configuration
   513  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   514  //
   515  //
   516  //    // Example sending a request using the DeleteTagsRequest method.
   517  //    req, resp := client.DeleteTagsRequest(params)
   518  //
   519  //    err := req.Send()
   520  //    if err == nil { // resp is now filled
   521  //        fmt.Println(resp)
   522  //    }
   523  //
   524  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteTags
   525  func (c *ApplicationDiscoveryService) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, output *DeleteTagsOutput) {
   526  	op := &request.Operation{
   527  		Name:       opDeleteTags,
   528  		HTTPMethod: "POST",
   529  		HTTPPath:   "/",
   530  	}
   531  
   532  	if input == nil {
   533  		input = &DeleteTagsInput{}
   534  	}
   535  
   536  	output = &DeleteTagsOutput{}
   537  	req = c.newRequest(op, input, output)
   538  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
   539  	return
   540  }
   541  
   542  // DeleteTags API operation for AWS Application Discovery Service.
   543  //
   544  // Deletes the association between configuration items and one or more tags.
   545  // This API accepts a list of multiple configuration items.
   546  //
   547  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   548  // with awserr.Error's Code and Message methods to get detailed information about
   549  // the error.
   550  //
   551  // See the AWS API reference guide for AWS Application Discovery Service's
   552  // API operation DeleteTags for usage and error information.
   553  //
   554  // Returned Error Types:
   555  //   * AuthorizationErrorException
   556  //   The AWS user account does not have permission to perform the action. Check
   557  //   the IAM policy associated with this account.
   558  //
   559  //   * ResourceNotFoundException
   560  //   The specified configuration ID was not located. Verify the configuration
   561  //   ID and try again.
   562  //
   563  //   * InvalidParameterException
   564  //   One or more parameters are not valid. Verify the parameters and try again.
   565  //
   566  //   * InvalidParameterValueException
   567  //   The value of one or more parameters are either invalid or out of range. Verify
   568  //   the parameter values and try again.
   569  //
   570  //   * ServerInternalErrorException
   571  //   The server experienced an internal error. Try again.
   572  //
   573  //   * HomeRegionNotSetException
   574  //   The home region is not set. Set the home region to continue.
   575  //
   576  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteTags
   577  func (c *ApplicationDiscoveryService) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) {
   578  	req, out := c.DeleteTagsRequest(input)
   579  	return out, req.Send()
   580  }
   581  
   582  // DeleteTagsWithContext is the same as DeleteTags with the addition of
   583  // the ability to pass a context and additional request options.
   584  //
   585  // See DeleteTags for details on how to use this API operation.
   586  //
   587  // The context must be non-nil and will be used for request cancellation. If
   588  // the context is nil a panic will occur. In the future the SDK may create
   589  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   590  // for more information on using Contexts.
   591  func (c *ApplicationDiscoveryService) DeleteTagsWithContext(ctx aws.Context, input *DeleteTagsInput, opts ...request.Option) (*DeleteTagsOutput, error) {
   592  	req, out := c.DeleteTagsRequest(input)
   593  	req.SetContext(ctx)
   594  	req.ApplyOptions(opts...)
   595  	return out, req.Send()
   596  }
   597  
   598  const opDescribeAgents = "DescribeAgents"
   599  
   600  // DescribeAgentsRequest generates a "aws/request.Request" representing the
   601  // client's request for the DescribeAgents operation. The "output" return
   602  // value will be populated with the request's response once the request completes
   603  // successfully.
   604  //
   605  // Use "Send" method on the returned Request to send the API call to the service.
   606  // the "output" return value is not valid until after Send returns without error.
   607  //
   608  // See DescribeAgents for more information on using the DescribeAgents
   609  // API call, and error handling.
   610  //
   611  // This method is useful when you want to inject custom logic or configuration
   612  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   613  //
   614  //
   615  //    // Example sending a request using the DescribeAgentsRequest method.
   616  //    req, resp := client.DescribeAgentsRequest(params)
   617  //
   618  //    err := req.Send()
   619  //    if err == nil { // resp is now filled
   620  //        fmt.Println(resp)
   621  //    }
   622  //
   623  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeAgents
   624  func (c *ApplicationDiscoveryService) DescribeAgentsRequest(input *DescribeAgentsInput) (req *request.Request, output *DescribeAgentsOutput) {
   625  	op := &request.Operation{
   626  		Name:       opDescribeAgents,
   627  		HTTPMethod: "POST",
   628  		HTTPPath:   "/",
   629  	}
   630  
   631  	if input == nil {
   632  		input = &DescribeAgentsInput{}
   633  	}
   634  
   635  	output = &DescribeAgentsOutput{}
   636  	req = c.newRequest(op, input, output)
   637  	return
   638  }
   639  
   640  // DescribeAgents API operation for AWS Application Discovery Service.
   641  //
   642  // Lists agents or connectors as specified by ID or other filters. All agents/connectors
   643  // associated with your user account can be listed if you call DescribeAgents
   644  // as is without passing any parameters.
   645  //
   646  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   647  // with awserr.Error's Code and Message methods to get detailed information about
   648  // the error.
   649  //
   650  // See the AWS API reference guide for AWS Application Discovery Service's
   651  // API operation DescribeAgents for usage and error information.
   652  //
   653  // Returned Error Types:
   654  //   * AuthorizationErrorException
   655  //   The AWS user account does not have permission to perform the action. Check
   656  //   the IAM policy associated with this account.
   657  //
   658  //   * InvalidParameterException
   659  //   One or more parameters are not valid. Verify the parameters and try again.
   660  //
   661  //   * InvalidParameterValueException
   662  //   The value of one or more parameters are either invalid or out of range. Verify
   663  //   the parameter values and try again.
   664  //
   665  //   * ServerInternalErrorException
   666  //   The server experienced an internal error. Try again.
   667  //
   668  //   * HomeRegionNotSetException
   669  //   The home region is not set. Set the home region to continue.
   670  //
   671  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeAgents
   672  func (c *ApplicationDiscoveryService) DescribeAgents(input *DescribeAgentsInput) (*DescribeAgentsOutput, error) {
   673  	req, out := c.DescribeAgentsRequest(input)
   674  	return out, req.Send()
   675  }
   676  
   677  // DescribeAgentsWithContext is the same as DescribeAgents with the addition of
   678  // the ability to pass a context and additional request options.
   679  //
   680  // See DescribeAgents for details on how to use this API operation.
   681  //
   682  // The context must be non-nil and will be used for request cancellation. If
   683  // the context is nil a panic will occur. In the future the SDK may create
   684  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   685  // for more information on using Contexts.
   686  func (c *ApplicationDiscoveryService) DescribeAgentsWithContext(ctx aws.Context, input *DescribeAgentsInput, opts ...request.Option) (*DescribeAgentsOutput, error) {
   687  	req, out := c.DescribeAgentsRequest(input)
   688  	req.SetContext(ctx)
   689  	req.ApplyOptions(opts...)
   690  	return out, req.Send()
   691  }
   692  
   693  const opDescribeConfigurations = "DescribeConfigurations"
   694  
   695  // DescribeConfigurationsRequest generates a "aws/request.Request" representing the
   696  // client's request for the DescribeConfigurations operation. The "output" return
   697  // value will be populated with the request's response once the request completes
   698  // successfully.
   699  //
   700  // Use "Send" method on the returned Request to send the API call to the service.
   701  // the "output" return value is not valid until after Send returns without error.
   702  //
   703  // See DescribeConfigurations for more information on using the DescribeConfigurations
   704  // API call, and error handling.
   705  //
   706  // This method is useful when you want to inject custom logic or configuration
   707  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   708  //
   709  //
   710  //    // Example sending a request using the DescribeConfigurationsRequest method.
   711  //    req, resp := client.DescribeConfigurationsRequest(params)
   712  //
   713  //    err := req.Send()
   714  //    if err == nil { // resp is now filled
   715  //        fmt.Println(resp)
   716  //    }
   717  //
   718  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeConfigurations
   719  func (c *ApplicationDiscoveryService) DescribeConfigurationsRequest(input *DescribeConfigurationsInput) (req *request.Request, output *DescribeConfigurationsOutput) {
   720  	op := &request.Operation{
   721  		Name:       opDescribeConfigurations,
   722  		HTTPMethod: "POST",
   723  		HTTPPath:   "/",
   724  	}
   725  
   726  	if input == nil {
   727  		input = &DescribeConfigurationsInput{}
   728  	}
   729  
   730  	output = &DescribeConfigurationsOutput{}
   731  	req = c.newRequest(op, input, output)
   732  	return
   733  }
   734  
   735  // DescribeConfigurations API operation for AWS Application Discovery Service.
   736  //
   737  // Retrieves attributes for a list of configuration item IDs.
   738  //
   739  // All of the supplied IDs must be for the same asset type from one of the following:
   740  //
   741  //    * server
   742  //
   743  //    * application
   744  //
   745  //    * process
   746  //
   747  //    * connection
   748  //
   749  // Output fields are specific to the asset type specified. For example, the
   750  // output for a server configuration item includes a list of attributes about
   751  // the server, such as host name, operating system, number of network cards,
   752  // etc.
   753  //
   754  // For a complete list of outputs for each asset type, see Using the DescribeConfigurations
   755  // Action (https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-api-queries.html#DescribeConfigurations)
   756  // in the AWS Application Discovery Service User Guide.
   757  //
   758  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   759  // with awserr.Error's Code and Message methods to get detailed information about
   760  // the error.
   761  //
   762  // See the AWS API reference guide for AWS Application Discovery Service's
   763  // API operation DescribeConfigurations for usage and error information.
   764  //
   765  // Returned Error Types:
   766  //   * AuthorizationErrorException
   767  //   The AWS user account does not have permission to perform the action. Check
   768  //   the IAM policy associated with this account.
   769  //
   770  //   * InvalidParameterException
   771  //   One or more parameters are not valid. Verify the parameters and try again.
   772  //
   773  //   * InvalidParameterValueException
   774  //   The value of one or more parameters are either invalid or out of range. Verify
   775  //   the parameter values and try again.
   776  //
   777  //   * ServerInternalErrorException
   778  //   The server experienced an internal error. Try again.
   779  //
   780  //   * HomeRegionNotSetException
   781  //   The home region is not set. Set the home region to continue.
   782  //
   783  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeConfigurations
   784  func (c *ApplicationDiscoveryService) DescribeConfigurations(input *DescribeConfigurationsInput) (*DescribeConfigurationsOutput, error) {
   785  	req, out := c.DescribeConfigurationsRequest(input)
   786  	return out, req.Send()
   787  }
   788  
   789  // DescribeConfigurationsWithContext is the same as DescribeConfigurations with the addition of
   790  // the ability to pass a context and additional request options.
   791  //
   792  // See DescribeConfigurations for details on how to use this API operation.
   793  //
   794  // The context must be non-nil and will be used for request cancellation. If
   795  // the context is nil a panic will occur. In the future the SDK may create
   796  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   797  // for more information on using Contexts.
   798  func (c *ApplicationDiscoveryService) DescribeConfigurationsWithContext(ctx aws.Context, input *DescribeConfigurationsInput, opts ...request.Option) (*DescribeConfigurationsOutput, error) {
   799  	req, out := c.DescribeConfigurationsRequest(input)
   800  	req.SetContext(ctx)
   801  	req.ApplyOptions(opts...)
   802  	return out, req.Send()
   803  }
   804  
   805  const opDescribeContinuousExports = "DescribeContinuousExports"
   806  
   807  // DescribeContinuousExportsRequest generates a "aws/request.Request" representing the
   808  // client's request for the DescribeContinuousExports operation. The "output" return
   809  // value will be populated with the request's response once the request completes
   810  // successfully.
   811  //
   812  // Use "Send" method on the returned Request to send the API call to the service.
   813  // the "output" return value is not valid until after Send returns without error.
   814  //
   815  // See DescribeContinuousExports for more information on using the DescribeContinuousExports
   816  // API call, and error handling.
   817  //
   818  // This method is useful when you want to inject custom logic or configuration
   819  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   820  //
   821  //
   822  //    // Example sending a request using the DescribeContinuousExportsRequest method.
   823  //    req, resp := client.DescribeContinuousExportsRequest(params)
   824  //
   825  //    err := req.Send()
   826  //    if err == nil { // resp is now filled
   827  //        fmt.Println(resp)
   828  //    }
   829  //
   830  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeContinuousExports
   831  func (c *ApplicationDiscoveryService) DescribeContinuousExportsRequest(input *DescribeContinuousExportsInput) (req *request.Request, output *DescribeContinuousExportsOutput) {
   832  	op := &request.Operation{
   833  		Name:       opDescribeContinuousExports,
   834  		HTTPMethod: "POST",
   835  		HTTPPath:   "/",
   836  		Paginator: &request.Paginator{
   837  			InputTokens:     []string{"nextToken"},
   838  			OutputTokens:    []string{"nextToken"},
   839  			LimitToken:      "maxResults",
   840  			TruncationToken: "",
   841  		},
   842  	}
   843  
   844  	if input == nil {
   845  		input = &DescribeContinuousExportsInput{}
   846  	}
   847  
   848  	output = &DescribeContinuousExportsOutput{}
   849  	req = c.newRequest(op, input, output)
   850  	return
   851  }
   852  
   853  // DescribeContinuousExports API operation for AWS Application Discovery Service.
   854  //
   855  // Lists exports as specified by ID. All continuous exports associated with
   856  // your user account can be listed if you call DescribeContinuousExports as
   857  // is without passing any parameters.
   858  //
   859  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   860  // with awserr.Error's Code and Message methods to get detailed information about
   861  // the error.
   862  //
   863  // See the AWS API reference guide for AWS Application Discovery Service's
   864  // API operation DescribeContinuousExports for usage and error information.
   865  //
   866  // Returned Error Types:
   867  //   * AuthorizationErrorException
   868  //   The AWS user account does not have permission to perform the action. Check
   869  //   the IAM policy associated with this account.
   870  //
   871  //   * InvalidParameterException
   872  //   One or more parameters are not valid. Verify the parameters and try again.
   873  //
   874  //   * InvalidParameterValueException
   875  //   The value of one or more parameters are either invalid or out of range. Verify
   876  //   the parameter values and try again.
   877  //
   878  //   * ServerInternalErrorException
   879  //   The server experienced an internal error. Try again.
   880  //
   881  //   * OperationNotPermittedException
   882  //   This operation is not permitted.
   883  //
   884  //   * ResourceNotFoundException
   885  //   The specified configuration ID was not located. Verify the configuration
   886  //   ID and try again.
   887  //
   888  //   * HomeRegionNotSetException
   889  //   The home region is not set. Set the home region to continue.
   890  //
   891  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeContinuousExports
   892  func (c *ApplicationDiscoveryService) DescribeContinuousExports(input *DescribeContinuousExportsInput) (*DescribeContinuousExportsOutput, error) {
   893  	req, out := c.DescribeContinuousExportsRequest(input)
   894  	return out, req.Send()
   895  }
   896  
   897  // DescribeContinuousExportsWithContext is the same as DescribeContinuousExports with the addition of
   898  // the ability to pass a context and additional request options.
   899  //
   900  // See DescribeContinuousExports for details on how to use this API operation.
   901  //
   902  // The context must be non-nil and will be used for request cancellation. If
   903  // the context is nil a panic will occur. In the future the SDK may create
   904  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   905  // for more information on using Contexts.
   906  func (c *ApplicationDiscoveryService) DescribeContinuousExportsWithContext(ctx aws.Context, input *DescribeContinuousExportsInput, opts ...request.Option) (*DescribeContinuousExportsOutput, error) {
   907  	req, out := c.DescribeContinuousExportsRequest(input)
   908  	req.SetContext(ctx)
   909  	req.ApplyOptions(opts...)
   910  	return out, req.Send()
   911  }
   912  
   913  // DescribeContinuousExportsPages iterates over the pages of a DescribeContinuousExports operation,
   914  // calling the "fn" function with the response data for each page. To stop
   915  // iterating, return false from the fn function.
   916  //
   917  // See DescribeContinuousExports method for more information on how to use this operation.
   918  //
   919  // Note: This operation can generate multiple requests to a service.
   920  //
   921  //    // Example iterating over at most 3 pages of a DescribeContinuousExports operation.
   922  //    pageNum := 0
   923  //    err := client.DescribeContinuousExportsPages(params,
   924  //        func(page *applicationdiscoveryservice.DescribeContinuousExportsOutput, lastPage bool) bool {
   925  //            pageNum++
   926  //            fmt.Println(page)
   927  //            return pageNum <= 3
   928  //        })
   929  //
   930  func (c *ApplicationDiscoveryService) DescribeContinuousExportsPages(input *DescribeContinuousExportsInput, fn func(*DescribeContinuousExportsOutput, bool) bool) error {
   931  	return c.DescribeContinuousExportsPagesWithContext(aws.BackgroundContext(), input, fn)
   932  }
   933  
   934  // DescribeContinuousExportsPagesWithContext same as DescribeContinuousExportsPages except
   935  // it takes a Context and allows setting request options on the pages.
   936  //
   937  // The context must be non-nil and will be used for request cancellation. If
   938  // the context is nil a panic will occur. In the future the SDK may create
   939  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   940  // for more information on using Contexts.
   941  func (c *ApplicationDiscoveryService) DescribeContinuousExportsPagesWithContext(ctx aws.Context, input *DescribeContinuousExportsInput, fn func(*DescribeContinuousExportsOutput, bool) bool, opts ...request.Option) error {
   942  	p := request.Pagination{
   943  		NewRequest: func() (*request.Request, error) {
   944  			var inCpy *DescribeContinuousExportsInput
   945  			if input != nil {
   946  				tmp := *input
   947  				inCpy = &tmp
   948  			}
   949  			req, _ := c.DescribeContinuousExportsRequest(inCpy)
   950  			req.SetContext(ctx)
   951  			req.ApplyOptions(opts...)
   952  			return req, nil
   953  		},
   954  	}
   955  
   956  	for p.Next() {
   957  		if !fn(p.Page().(*DescribeContinuousExportsOutput), !p.HasNextPage()) {
   958  			break
   959  		}
   960  	}
   961  
   962  	return p.Err()
   963  }
   964  
   965  const opDescribeExportConfigurations = "DescribeExportConfigurations"
   966  
   967  // DescribeExportConfigurationsRequest generates a "aws/request.Request" representing the
   968  // client's request for the DescribeExportConfigurations operation. The "output" return
   969  // value will be populated with the request's response once the request completes
   970  // successfully.
   971  //
   972  // Use "Send" method on the returned Request to send the API call to the service.
   973  // the "output" return value is not valid until after Send returns without error.
   974  //
   975  // See DescribeExportConfigurations for more information on using the DescribeExportConfigurations
   976  // API call, and error handling.
   977  //
   978  // This method is useful when you want to inject custom logic or configuration
   979  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   980  //
   981  //
   982  //    // Example sending a request using the DescribeExportConfigurationsRequest method.
   983  //    req, resp := client.DescribeExportConfigurationsRequest(params)
   984  //
   985  //    err := req.Send()
   986  //    if err == nil { // resp is now filled
   987  //        fmt.Println(resp)
   988  //    }
   989  //
   990  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportConfigurations
   991  //
   992  // Deprecated: DescribeExportConfigurations has been deprecated
   993  func (c *ApplicationDiscoveryService) DescribeExportConfigurationsRequest(input *DescribeExportConfigurationsInput) (req *request.Request, output *DescribeExportConfigurationsOutput) {
   994  	if c.Client.Config.Logger != nil {
   995  		c.Client.Config.Logger.Log("This operation, DescribeExportConfigurations, has been deprecated")
   996  	}
   997  	op := &request.Operation{
   998  		Name:       opDescribeExportConfigurations,
   999  		HTTPMethod: "POST",
  1000  		HTTPPath:   "/",
  1001  	}
  1002  
  1003  	if input == nil {
  1004  		input = &DescribeExportConfigurationsInput{}
  1005  	}
  1006  
  1007  	output = &DescribeExportConfigurationsOutput{}
  1008  	req = c.newRequest(op, input, output)
  1009  	return
  1010  }
  1011  
  1012  // DescribeExportConfigurations API operation for AWS Application Discovery Service.
  1013  //
  1014  // DescribeExportConfigurations is deprecated. Use DescribeImportTasks (https://docs.aws.amazon.com/application-discovery/latest/APIReference/API_DescribeExportTasks.html),
  1015  // instead.
  1016  //
  1017  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1018  // with awserr.Error's Code and Message methods to get detailed information about
  1019  // the error.
  1020  //
  1021  // See the AWS API reference guide for AWS Application Discovery Service's
  1022  // API operation DescribeExportConfigurations for usage and error information.
  1023  //
  1024  // Returned Error Types:
  1025  //   * AuthorizationErrorException
  1026  //   The AWS user account does not have permission to perform the action. Check
  1027  //   the IAM policy associated with this account.
  1028  //
  1029  //   * ResourceNotFoundException
  1030  //   The specified configuration ID was not located. Verify the configuration
  1031  //   ID and try again.
  1032  //
  1033  //   * InvalidParameterException
  1034  //   One or more parameters are not valid. Verify the parameters and try again.
  1035  //
  1036  //   * InvalidParameterValueException
  1037  //   The value of one or more parameters are either invalid or out of range. Verify
  1038  //   the parameter values and try again.
  1039  //
  1040  //   * ServerInternalErrorException
  1041  //   The server experienced an internal error. Try again.
  1042  //
  1043  //   * HomeRegionNotSetException
  1044  //   The home region is not set. Set the home region to continue.
  1045  //
  1046  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportConfigurations
  1047  //
  1048  // Deprecated: DescribeExportConfigurations has been deprecated
  1049  func (c *ApplicationDiscoveryService) DescribeExportConfigurations(input *DescribeExportConfigurationsInput) (*DescribeExportConfigurationsOutput, error) {
  1050  	req, out := c.DescribeExportConfigurationsRequest(input)
  1051  	return out, req.Send()
  1052  }
  1053  
  1054  // DescribeExportConfigurationsWithContext is the same as DescribeExportConfigurations with the addition of
  1055  // the ability to pass a context and additional request options.
  1056  //
  1057  // See DescribeExportConfigurations for details on how to use this API operation.
  1058  //
  1059  // The context must be non-nil and will be used for request cancellation. If
  1060  // the context is nil a panic will occur. In the future the SDK may create
  1061  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1062  // for more information on using Contexts.
  1063  //
  1064  // Deprecated: DescribeExportConfigurationsWithContext has been deprecated
  1065  func (c *ApplicationDiscoveryService) DescribeExportConfigurationsWithContext(ctx aws.Context, input *DescribeExportConfigurationsInput, opts ...request.Option) (*DescribeExportConfigurationsOutput, error) {
  1066  	req, out := c.DescribeExportConfigurationsRequest(input)
  1067  	req.SetContext(ctx)
  1068  	req.ApplyOptions(opts...)
  1069  	return out, req.Send()
  1070  }
  1071  
  1072  const opDescribeExportTasks = "DescribeExportTasks"
  1073  
  1074  // DescribeExportTasksRequest generates a "aws/request.Request" representing the
  1075  // client's request for the DescribeExportTasks operation. The "output" return
  1076  // value will be populated with the request's response once the request completes
  1077  // successfully.
  1078  //
  1079  // Use "Send" method on the returned Request to send the API call to the service.
  1080  // the "output" return value is not valid until after Send returns without error.
  1081  //
  1082  // See DescribeExportTasks for more information on using the DescribeExportTasks
  1083  // API call, and error handling.
  1084  //
  1085  // This method is useful when you want to inject custom logic or configuration
  1086  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1087  //
  1088  //
  1089  //    // Example sending a request using the DescribeExportTasksRequest method.
  1090  //    req, resp := client.DescribeExportTasksRequest(params)
  1091  //
  1092  //    err := req.Send()
  1093  //    if err == nil { // resp is now filled
  1094  //        fmt.Println(resp)
  1095  //    }
  1096  //
  1097  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportTasks
  1098  func (c *ApplicationDiscoveryService) DescribeExportTasksRequest(input *DescribeExportTasksInput) (req *request.Request, output *DescribeExportTasksOutput) {
  1099  	op := &request.Operation{
  1100  		Name:       opDescribeExportTasks,
  1101  		HTTPMethod: "POST",
  1102  		HTTPPath:   "/",
  1103  	}
  1104  
  1105  	if input == nil {
  1106  		input = &DescribeExportTasksInput{}
  1107  	}
  1108  
  1109  	output = &DescribeExportTasksOutput{}
  1110  	req = c.newRequest(op, input, output)
  1111  	return
  1112  }
  1113  
  1114  // DescribeExportTasks API operation for AWS Application Discovery Service.
  1115  //
  1116  // Retrieve status of one or more export tasks. You can retrieve the status
  1117  // of up to 100 export tasks.
  1118  //
  1119  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1120  // with awserr.Error's Code and Message methods to get detailed information about
  1121  // the error.
  1122  //
  1123  // See the AWS API reference guide for AWS Application Discovery Service's
  1124  // API operation DescribeExportTasks for usage and error information.
  1125  //
  1126  // Returned Error Types:
  1127  //   * AuthorizationErrorException
  1128  //   The AWS user account does not have permission to perform the action. Check
  1129  //   the IAM policy associated with this account.
  1130  //
  1131  //   * InvalidParameterException
  1132  //   One or more parameters are not valid. Verify the parameters and try again.
  1133  //
  1134  //   * InvalidParameterValueException
  1135  //   The value of one or more parameters are either invalid or out of range. Verify
  1136  //   the parameter values and try again.
  1137  //
  1138  //   * ServerInternalErrorException
  1139  //   The server experienced an internal error. Try again.
  1140  //
  1141  //   * HomeRegionNotSetException
  1142  //   The home region is not set. Set the home region to continue.
  1143  //
  1144  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportTasks
  1145  func (c *ApplicationDiscoveryService) DescribeExportTasks(input *DescribeExportTasksInput) (*DescribeExportTasksOutput, error) {
  1146  	req, out := c.DescribeExportTasksRequest(input)
  1147  	return out, req.Send()
  1148  }
  1149  
  1150  // DescribeExportTasksWithContext is the same as DescribeExportTasks with the addition of
  1151  // the ability to pass a context and additional request options.
  1152  //
  1153  // See DescribeExportTasks for details on how to use this API operation.
  1154  //
  1155  // The context must be non-nil and will be used for request cancellation. If
  1156  // the context is nil a panic will occur. In the future the SDK may create
  1157  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1158  // for more information on using Contexts.
  1159  func (c *ApplicationDiscoveryService) DescribeExportTasksWithContext(ctx aws.Context, input *DescribeExportTasksInput, opts ...request.Option) (*DescribeExportTasksOutput, error) {
  1160  	req, out := c.DescribeExportTasksRequest(input)
  1161  	req.SetContext(ctx)
  1162  	req.ApplyOptions(opts...)
  1163  	return out, req.Send()
  1164  }
  1165  
  1166  const opDescribeImportTasks = "DescribeImportTasks"
  1167  
  1168  // DescribeImportTasksRequest generates a "aws/request.Request" representing the
  1169  // client's request for the DescribeImportTasks operation. The "output" return
  1170  // value will be populated with the request's response once the request completes
  1171  // successfully.
  1172  //
  1173  // Use "Send" method on the returned Request to send the API call to the service.
  1174  // the "output" return value is not valid until after Send returns without error.
  1175  //
  1176  // See DescribeImportTasks for more information on using the DescribeImportTasks
  1177  // API call, and error handling.
  1178  //
  1179  // This method is useful when you want to inject custom logic or configuration
  1180  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1181  //
  1182  //
  1183  //    // Example sending a request using the DescribeImportTasksRequest method.
  1184  //    req, resp := client.DescribeImportTasksRequest(params)
  1185  //
  1186  //    err := req.Send()
  1187  //    if err == nil { // resp is now filled
  1188  //        fmt.Println(resp)
  1189  //    }
  1190  //
  1191  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeImportTasks
  1192  func (c *ApplicationDiscoveryService) DescribeImportTasksRequest(input *DescribeImportTasksInput) (req *request.Request, output *DescribeImportTasksOutput) {
  1193  	op := &request.Operation{
  1194  		Name:       opDescribeImportTasks,
  1195  		HTTPMethod: "POST",
  1196  		HTTPPath:   "/",
  1197  		Paginator: &request.Paginator{
  1198  			InputTokens:     []string{"nextToken"},
  1199  			OutputTokens:    []string{"nextToken"},
  1200  			LimitToken:      "maxResults",
  1201  			TruncationToken: "",
  1202  		},
  1203  	}
  1204  
  1205  	if input == nil {
  1206  		input = &DescribeImportTasksInput{}
  1207  	}
  1208  
  1209  	output = &DescribeImportTasksOutput{}
  1210  	req = c.newRequest(op, input, output)
  1211  	return
  1212  }
  1213  
  1214  // DescribeImportTasks API operation for AWS Application Discovery Service.
  1215  //
  1216  // Returns an array of import tasks for your account, including status information,
  1217  // times, IDs, the Amazon S3 Object URL for the import file, and more.
  1218  //
  1219  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1220  // with awserr.Error's Code and Message methods to get detailed information about
  1221  // the error.
  1222  //
  1223  // See the AWS API reference guide for AWS Application Discovery Service's
  1224  // API operation DescribeImportTasks for usage and error information.
  1225  //
  1226  // Returned Error Types:
  1227  //   * AuthorizationErrorException
  1228  //   The AWS user account does not have permission to perform the action. Check
  1229  //   the IAM policy associated with this account.
  1230  //
  1231  //   * InvalidParameterException
  1232  //   One or more parameters are not valid. Verify the parameters and try again.
  1233  //
  1234  //   * InvalidParameterValueException
  1235  //   The value of one or more parameters are either invalid or out of range. Verify
  1236  //   the parameter values and try again.
  1237  //
  1238  //   * ServerInternalErrorException
  1239  //   The server experienced an internal error. Try again.
  1240  //
  1241  //   * HomeRegionNotSetException
  1242  //   The home region is not set. Set the home region to continue.
  1243  //
  1244  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeImportTasks
  1245  func (c *ApplicationDiscoveryService) DescribeImportTasks(input *DescribeImportTasksInput) (*DescribeImportTasksOutput, error) {
  1246  	req, out := c.DescribeImportTasksRequest(input)
  1247  	return out, req.Send()
  1248  }
  1249  
  1250  // DescribeImportTasksWithContext is the same as DescribeImportTasks with the addition of
  1251  // the ability to pass a context and additional request options.
  1252  //
  1253  // See DescribeImportTasks for details on how to use this API operation.
  1254  //
  1255  // The context must be non-nil and will be used for request cancellation. If
  1256  // the context is nil a panic will occur. In the future the SDK may create
  1257  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1258  // for more information on using Contexts.
  1259  func (c *ApplicationDiscoveryService) DescribeImportTasksWithContext(ctx aws.Context, input *DescribeImportTasksInput, opts ...request.Option) (*DescribeImportTasksOutput, error) {
  1260  	req, out := c.DescribeImportTasksRequest(input)
  1261  	req.SetContext(ctx)
  1262  	req.ApplyOptions(opts...)
  1263  	return out, req.Send()
  1264  }
  1265  
  1266  // DescribeImportTasksPages iterates over the pages of a DescribeImportTasks operation,
  1267  // calling the "fn" function with the response data for each page. To stop
  1268  // iterating, return false from the fn function.
  1269  //
  1270  // See DescribeImportTasks method for more information on how to use this operation.
  1271  //
  1272  // Note: This operation can generate multiple requests to a service.
  1273  //
  1274  //    // Example iterating over at most 3 pages of a DescribeImportTasks operation.
  1275  //    pageNum := 0
  1276  //    err := client.DescribeImportTasksPages(params,
  1277  //        func(page *applicationdiscoveryservice.DescribeImportTasksOutput, lastPage bool) bool {
  1278  //            pageNum++
  1279  //            fmt.Println(page)
  1280  //            return pageNum <= 3
  1281  //        })
  1282  //
  1283  func (c *ApplicationDiscoveryService) DescribeImportTasksPages(input *DescribeImportTasksInput, fn func(*DescribeImportTasksOutput, bool) bool) error {
  1284  	return c.DescribeImportTasksPagesWithContext(aws.BackgroundContext(), input, fn)
  1285  }
  1286  
  1287  // DescribeImportTasksPagesWithContext same as DescribeImportTasksPages except
  1288  // it takes a Context and allows setting request options on the pages.
  1289  //
  1290  // The context must be non-nil and will be used for request cancellation. If
  1291  // the context is nil a panic will occur. In the future the SDK may create
  1292  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1293  // for more information on using Contexts.
  1294  func (c *ApplicationDiscoveryService) DescribeImportTasksPagesWithContext(ctx aws.Context, input *DescribeImportTasksInput, fn func(*DescribeImportTasksOutput, bool) bool, opts ...request.Option) error {
  1295  	p := request.Pagination{
  1296  		NewRequest: func() (*request.Request, error) {
  1297  			var inCpy *DescribeImportTasksInput
  1298  			if input != nil {
  1299  				tmp := *input
  1300  				inCpy = &tmp
  1301  			}
  1302  			req, _ := c.DescribeImportTasksRequest(inCpy)
  1303  			req.SetContext(ctx)
  1304  			req.ApplyOptions(opts...)
  1305  			return req, nil
  1306  		},
  1307  	}
  1308  
  1309  	for p.Next() {
  1310  		if !fn(p.Page().(*DescribeImportTasksOutput), !p.HasNextPage()) {
  1311  			break
  1312  		}
  1313  	}
  1314  
  1315  	return p.Err()
  1316  }
  1317  
  1318  const opDescribeTags = "DescribeTags"
  1319  
  1320  // DescribeTagsRequest generates a "aws/request.Request" representing the
  1321  // client's request for the DescribeTags operation. The "output" return
  1322  // value will be populated with the request's response once the request completes
  1323  // successfully.
  1324  //
  1325  // Use "Send" method on the returned Request to send the API call to the service.
  1326  // the "output" return value is not valid until after Send returns without error.
  1327  //
  1328  // See DescribeTags for more information on using the DescribeTags
  1329  // API call, and error handling.
  1330  //
  1331  // This method is useful when you want to inject custom logic or configuration
  1332  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1333  //
  1334  //
  1335  //    // Example sending a request using the DescribeTagsRequest method.
  1336  //    req, resp := client.DescribeTagsRequest(params)
  1337  //
  1338  //    err := req.Send()
  1339  //    if err == nil { // resp is now filled
  1340  //        fmt.Println(resp)
  1341  //    }
  1342  //
  1343  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeTags
  1344  func (c *ApplicationDiscoveryService) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput) {
  1345  	op := &request.Operation{
  1346  		Name:       opDescribeTags,
  1347  		HTTPMethod: "POST",
  1348  		HTTPPath:   "/",
  1349  	}
  1350  
  1351  	if input == nil {
  1352  		input = &DescribeTagsInput{}
  1353  	}
  1354  
  1355  	output = &DescribeTagsOutput{}
  1356  	req = c.newRequest(op, input, output)
  1357  	return
  1358  }
  1359  
  1360  // DescribeTags API operation for AWS Application Discovery Service.
  1361  //
  1362  // Retrieves a list of configuration items that have tags as specified by the
  1363  // key-value pairs, name and value, passed to the optional parameter filters.
  1364  //
  1365  // There are three valid tag filter names:
  1366  //
  1367  //    * tagKey
  1368  //
  1369  //    * tagValue
  1370  //
  1371  //    * configurationId
  1372  //
  1373  // Also, all configuration items associated with your user account that have
  1374  // tags can be listed if you call DescribeTags as is without passing any parameters.
  1375  //
  1376  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1377  // with awserr.Error's Code and Message methods to get detailed information about
  1378  // the error.
  1379  //
  1380  // See the AWS API reference guide for AWS Application Discovery Service's
  1381  // API operation DescribeTags for usage and error information.
  1382  //
  1383  // Returned Error Types:
  1384  //   * AuthorizationErrorException
  1385  //   The AWS user account does not have permission to perform the action. Check
  1386  //   the IAM policy associated with this account.
  1387  //
  1388  //   * ResourceNotFoundException
  1389  //   The specified configuration ID was not located. Verify the configuration
  1390  //   ID and try again.
  1391  //
  1392  //   * InvalidParameterException
  1393  //   One or more parameters are not valid. Verify the parameters and try again.
  1394  //
  1395  //   * InvalidParameterValueException
  1396  //   The value of one or more parameters are either invalid or out of range. Verify
  1397  //   the parameter values and try again.
  1398  //
  1399  //   * ServerInternalErrorException
  1400  //   The server experienced an internal error. Try again.
  1401  //
  1402  //   * HomeRegionNotSetException
  1403  //   The home region is not set. Set the home region to continue.
  1404  //
  1405  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeTags
  1406  func (c *ApplicationDiscoveryService) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) {
  1407  	req, out := c.DescribeTagsRequest(input)
  1408  	return out, req.Send()
  1409  }
  1410  
  1411  // DescribeTagsWithContext is the same as DescribeTags with the addition of
  1412  // the ability to pass a context and additional request options.
  1413  //
  1414  // See DescribeTags for details on how to use this API operation.
  1415  //
  1416  // The context must be non-nil and will be used for request cancellation. If
  1417  // the context is nil a panic will occur. In the future the SDK may create
  1418  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1419  // for more information on using Contexts.
  1420  func (c *ApplicationDiscoveryService) DescribeTagsWithContext(ctx aws.Context, input *DescribeTagsInput, opts ...request.Option) (*DescribeTagsOutput, error) {
  1421  	req, out := c.DescribeTagsRequest(input)
  1422  	req.SetContext(ctx)
  1423  	req.ApplyOptions(opts...)
  1424  	return out, req.Send()
  1425  }
  1426  
  1427  const opDisassociateConfigurationItemsFromApplication = "DisassociateConfigurationItemsFromApplication"
  1428  
  1429  // DisassociateConfigurationItemsFromApplicationRequest generates a "aws/request.Request" representing the
  1430  // client's request for the DisassociateConfigurationItemsFromApplication operation. The "output" return
  1431  // value will be populated with the request's response once the request completes
  1432  // successfully.
  1433  //
  1434  // Use "Send" method on the returned Request to send the API call to the service.
  1435  // the "output" return value is not valid until after Send returns without error.
  1436  //
  1437  // See DisassociateConfigurationItemsFromApplication for more information on using the DisassociateConfigurationItemsFromApplication
  1438  // API call, and error handling.
  1439  //
  1440  // This method is useful when you want to inject custom logic or configuration
  1441  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1442  //
  1443  //
  1444  //    // Example sending a request using the DisassociateConfigurationItemsFromApplicationRequest method.
  1445  //    req, resp := client.DisassociateConfigurationItemsFromApplicationRequest(params)
  1446  //
  1447  //    err := req.Send()
  1448  //    if err == nil { // resp is now filled
  1449  //        fmt.Println(resp)
  1450  //    }
  1451  //
  1452  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DisassociateConfigurationItemsFromApplication
  1453  func (c *ApplicationDiscoveryService) DisassociateConfigurationItemsFromApplicationRequest(input *DisassociateConfigurationItemsFromApplicationInput) (req *request.Request, output *DisassociateConfigurationItemsFromApplicationOutput) {
  1454  	op := &request.Operation{
  1455  		Name:       opDisassociateConfigurationItemsFromApplication,
  1456  		HTTPMethod: "POST",
  1457  		HTTPPath:   "/",
  1458  	}
  1459  
  1460  	if input == nil {
  1461  		input = &DisassociateConfigurationItemsFromApplicationInput{}
  1462  	}
  1463  
  1464  	output = &DisassociateConfigurationItemsFromApplicationOutput{}
  1465  	req = c.newRequest(op, input, output)
  1466  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1467  	return
  1468  }
  1469  
  1470  // DisassociateConfigurationItemsFromApplication API operation for AWS Application Discovery Service.
  1471  //
  1472  // Disassociates one or more configuration items from an application.
  1473  //
  1474  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1475  // with awserr.Error's Code and Message methods to get detailed information about
  1476  // the error.
  1477  //
  1478  // See the AWS API reference guide for AWS Application Discovery Service's
  1479  // API operation DisassociateConfigurationItemsFromApplication for usage and error information.
  1480  //
  1481  // Returned Error Types:
  1482  //   * AuthorizationErrorException
  1483  //   The AWS user account does not have permission to perform the action. Check
  1484  //   the IAM policy associated with this account.
  1485  //
  1486  //   * InvalidParameterException
  1487  //   One or more parameters are not valid. Verify the parameters and try again.
  1488  //
  1489  //   * InvalidParameterValueException
  1490  //   The value of one or more parameters are either invalid or out of range. Verify
  1491  //   the parameter values and try again.
  1492  //
  1493  //   * ServerInternalErrorException
  1494  //   The server experienced an internal error. Try again.
  1495  //
  1496  //   * HomeRegionNotSetException
  1497  //   The home region is not set. Set the home region to continue.
  1498  //
  1499  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DisassociateConfigurationItemsFromApplication
  1500  func (c *ApplicationDiscoveryService) DisassociateConfigurationItemsFromApplication(input *DisassociateConfigurationItemsFromApplicationInput) (*DisassociateConfigurationItemsFromApplicationOutput, error) {
  1501  	req, out := c.DisassociateConfigurationItemsFromApplicationRequest(input)
  1502  	return out, req.Send()
  1503  }
  1504  
  1505  // DisassociateConfigurationItemsFromApplicationWithContext is the same as DisassociateConfigurationItemsFromApplication with the addition of
  1506  // the ability to pass a context and additional request options.
  1507  //
  1508  // See DisassociateConfigurationItemsFromApplication for details on how to use this API operation.
  1509  //
  1510  // The context must be non-nil and will be used for request cancellation. If
  1511  // the context is nil a panic will occur. In the future the SDK may create
  1512  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1513  // for more information on using Contexts.
  1514  func (c *ApplicationDiscoveryService) DisassociateConfigurationItemsFromApplicationWithContext(ctx aws.Context, input *DisassociateConfigurationItemsFromApplicationInput, opts ...request.Option) (*DisassociateConfigurationItemsFromApplicationOutput, error) {
  1515  	req, out := c.DisassociateConfigurationItemsFromApplicationRequest(input)
  1516  	req.SetContext(ctx)
  1517  	req.ApplyOptions(opts...)
  1518  	return out, req.Send()
  1519  }
  1520  
  1521  const opExportConfigurations = "ExportConfigurations"
  1522  
  1523  // ExportConfigurationsRequest generates a "aws/request.Request" representing the
  1524  // client's request for the ExportConfigurations operation. The "output" return
  1525  // value will be populated with the request's response once the request completes
  1526  // successfully.
  1527  //
  1528  // Use "Send" method on the returned Request to send the API call to the service.
  1529  // the "output" return value is not valid until after Send returns without error.
  1530  //
  1531  // See ExportConfigurations for more information on using the ExportConfigurations
  1532  // API call, and error handling.
  1533  //
  1534  // This method is useful when you want to inject custom logic or configuration
  1535  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1536  //
  1537  //
  1538  //    // Example sending a request using the ExportConfigurationsRequest method.
  1539  //    req, resp := client.ExportConfigurationsRequest(params)
  1540  //
  1541  //    err := req.Send()
  1542  //    if err == nil { // resp is now filled
  1543  //        fmt.Println(resp)
  1544  //    }
  1545  //
  1546  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ExportConfigurations
  1547  //
  1548  // Deprecated: ExportConfigurations has been deprecated
  1549  func (c *ApplicationDiscoveryService) ExportConfigurationsRequest(input *ExportConfigurationsInput) (req *request.Request, output *ExportConfigurationsOutput) {
  1550  	if c.Client.Config.Logger != nil {
  1551  		c.Client.Config.Logger.Log("This operation, ExportConfigurations, has been deprecated")
  1552  	}
  1553  	op := &request.Operation{
  1554  		Name:       opExportConfigurations,
  1555  		HTTPMethod: "POST",
  1556  		HTTPPath:   "/",
  1557  	}
  1558  
  1559  	if input == nil {
  1560  		input = &ExportConfigurationsInput{}
  1561  	}
  1562  
  1563  	output = &ExportConfigurationsOutput{}
  1564  	req = c.newRequest(op, input, output)
  1565  	return
  1566  }
  1567  
  1568  // ExportConfigurations API operation for AWS Application Discovery Service.
  1569  //
  1570  // Deprecated. Use StartExportTask instead.
  1571  //
  1572  // Exports all discovered configuration data to an Amazon S3 bucket or an application
  1573  // that enables you to view and evaluate the data. Data includes tags and tag
  1574  // associations, processes, connections, servers, and system performance. This
  1575  // API returns an export ID that you can query using the DescribeExportConfigurations
  1576  // API. The system imposes a limit of two configuration exports in six hours.
  1577  //
  1578  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1579  // with awserr.Error's Code and Message methods to get detailed information about
  1580  // the error.
  1581  //
  1582  // See the AWS API reference guide for AWS Application Discovery Service's
  1583  // API operation ExportConfigurations for usage and error information.
  1584  //
  1585  // Returned Error Types:
  1586  //   * AuthorizationErrorException
  1587  //   The AWS user account does not have permission to perform the action. Check
  1588  //   the IAM policy associated with this account.
  1589  //
  1590  //   * InvalidParameterException
  1591  //   One or more parameters are not valid. Verify the parameters and try again.
  1592  //
  1593  //   * InvalidParameterValueException
  1594  //   The value of one or more parameters are either invalid or out of range. Verify
  1595  //   the parameter values and try again.
  1596  //
  1597  //   * ServerInternalErrorException
  1598  //   The server experienced an internal error. Try again.
  1599  //
  1600  //   * OperationNotPermittedException
  1601  //   This operation is not permitted.
  1602  //
  1603  //   * HomeRegionNotSetException
  1604  //   The home region is not set. Set the home region to continue.
  1605  //
  1606  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ExportConfigurations
  1607  //
  1608  // Deprecated: ExportConfigurations has been deprecated
  1609  func (c *ApplicationDiscoveryService) ExportConfigurations(input *ExportConfigurationsInput) (*ExportConfigurationsOutput, error) {
  1610  	req, out := c.ExportConfigurationsRequest(input)
  1611  	return out, req.Send()
  1612  }
  1613  
  1614  // ExportConfigurationsWithContext is the same as ExportConfigurations with the addition of
  1615  // the ability to pass a context and additional request options.
  1616  //
  1617  // See ExportConfigurations for details on how to use this API operation.
  1618  //
  1619  // The context must be non-nil and will be used for request cancellation. If
  1620  // the context is nil a panic will occur. In the future the SDK may create
  1621  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1622  // for more information on using Contexts.
  1623  //
  1624  // Deprecated: ExportConfigurationsWithContext has been deprecated
  1625  func (c *ApplicationDiscoveryService) ExportConfigurationsWithContext(ctx aws.Context, input *ExportConfigurationsInput, opts ...request.Option) (*ExportConfigurationsOutput, error) {
  1626  	req, out := c.ExportConfigurationsRequest(input)
  1627  	req.SetContext(ctx)
  1628  	req.ApplyOptions(opts...)
  1629  	return out, req.Send()
  1630  }
  1631  
  1632  const opGetDiscoverySummary = "GetDiscoverySummary"
  1633  
  1634  // GetDiscoverySummaryRequest generates a "aws/request.Request" representing the
  1635  // client's request for the GetDiscoverySummary operation. The "output" return
  1636  // value will be populated with the request's response once the request completes
  1637  // successfully.
  1638  //
  1639  // Use "Send" method on the returned Request to send the API call to the service.
  1640  // the "output" return value is not valid until after Send returns without error.
  1641  //
  1642  // See GetDiscoverySummary for more information on using the GetDiscoverySummary
  1643  // API call, and error handling.
  1644  //
  1645  // This method is useful when you want to inject custom logic or configuration
  1646  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1647  //
  1648  //
  1649  //    // Example sending a request using the GetDiscoverySummaryRequest method.
  1650  //    req, resp := client.GetDiscoverySummaryRequest(params)
  1651  //
  1652  //    err := req.Send()
  1653  //    if err == nil { // resp is now filled
  1654  //        fmt.Println(resp)
  1655  //    }
  1656  //
  1657  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/GetDiscoverySummary
  1658  func (c *ApplicationDiscoveryService) GetDiscoverySummaryRequest(input *GetDiscoverySummaryInput) (req *request.Request, output *GetDiscoverySummaryOutput) {
  1659  	op := &request.Operation{
  1660  		Name:       opGetDiscoverySummary,
  1661  		HTTPMethod: "POST",
  1662  		HTTPPath:   "/",
  1663  	}
  1664  
  1665  	if input == nil {
  1666  		input = &GetDiscoverySummaryInput{}
  1667  	}
  1668  
  1669  	output = &GetDiscoverySummaryOutput{}
  1670  	req = c.newRequest(op, input, output)
  1671  	return
  1672  }
  1673  
  1674  // GetDiscoverySummary API operation for AWS Application Discovery Service.
  1675  //
  1676  // Retrieves a short summary of discovered assets.
  1677  //
  1678  // This API operation takes no request parameters and is called as is at the
  1679  // command prompt as shown in the example.
  1680  //
  1681  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1682  // with awserr.Error's Code and Message methods to get detailed information about
  1683  // the error.
  1684  //
  1685  // See the AWS API reference guide for AWS Application Discovery Service's
  1686  // API operation GetDiscoverySummary for usage and error information.
  1687  //
  1688  // Returned Error Types:
  1689  //   * AuthorizationErrorException
  1690  //   The AWS user account does not have permission to perform the action. Check
  1691  //   the IAM policy associated with this account.
  1692  //
  1693  //   * InvalidParameterException
  1694  //   One or more parameters are not valid. Verify the parameters and try again.
  1695  //
  1696  //   * InvalidParameterValueException
  1697  //   The value of one or more parameters are either invalid or out of range. Verify
  1698  //   the parameter values and try again.
  1699  //
  1700  //   * ServerInternalErrorException
  1701  //   The server experienced an internal error. Try again.
  1702  //
  1703  //   * HomeRegionNotSetException
  1704  //   The home region is not set. Set the home region to continue.
  1705  //
  1706  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/GetDiscoverySummary
  1707  func (c *ApplicationDiscoveryService) GetDiscoverySummary(input *GetDiscoverySummaryInput) (*GetDiscoverySummaryOutput, error) {
  1708  	req, out := c.GetDiscoverySummaryRequest(input)
  1709  	return out, req.Send()
  1710  }
  1711  
  1712  // GetDiscoverySummaryWithContext is the same as GetDiscoverySummary with the addition of
  1713  // the ability to pass a context and additional request options.
  1714  //
  1715  // See GetDiscoverySummary for details on how to use this API operation.
  1716  //
  1717  // The context must be non-nil and will be used for request cancellation. If
  1718  // the context is nil a panic will occur. In the future the SDK may create
  1719  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1720  // for more information on using Contexts.
  1721  func (c *ApplicationDiscoveryService) GetDiscoverySummaryWithContext(ctx aws.Context, input *GetDiscoverySummaryInput, opts ...request.Option) (*GetDiscoverySummaryOutput, error) {
  1722  	req, out := c.GetDiscoverySummaryRequest(input)
  1723  	req.SetContext(ctx)
  1724  	req.ApplyOptions(opts...)
  1725  	return out, req.Send()
  1726  }
  1727  
  1728  const opListConfigurations = "ListConfigurations"
  1729  
  1730  // ListConfigurationsRequest generates a "aws/request.Request" representing the
  1731  // client's request for the ListConfigurations operation. The "output" return
  1732  // value will be populated with the request's response once the request completes
  1733  // successfully.
  1734  //
  1735  // Use "Send" method on the returned Request to send the API call to the service.
  1736  // the "output" return value is not valid until after Send returns without error.
  1737  //
  1738  // See ListConfigurations for more information on using the ListConfigurations
  1739  // API call, and error handling.
  1740  //
  1741  // This method is useful when you want to inject custom logic or configuration
  1742  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1743  //
  1744  //
  1745  //    // Example sending a request using the ListConfigurationsRequest method.
  1746  //    req, resp := client.ListConfigurationsRequest(params)
  1747  //
  1748  //    err := req.Send()
  1749  //    if err == nil { // resp is now filled
  1750  //        fmt.Println(resp)
  1751  //    }
  1752  //
  1753  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListConfigurations
  1754  func (c *ApplicationDiscoveryService) ListConfigurationsRequest(input *ListConfigurationsInput) (req *request.Request, output *ListConfigurationsOutput) {
  1755  	op := &request.Operation{
  1756  		Name:       opListConfigurations,
  1757  		HTTPMethod: "POST",
  1758  		HTTPPath:   "/",
  1759  	}
  1760  
  1761  	if input == nil {
  1762  		input = &ListConfigurationsInput{}
  1763  	}
  1764  
  1765  	output = &ListConfigurationsOutput{}
  1766  	req = c.newRequest(op, input, output)
  1767  	return
  1768  }
  1769  
  1770  // ListConfigurations API operation for AWS Application Discovery Service.
  1771  //
  1772  // Retrieves a list of configuration items as specified by the value passed
  1773  // to the required parameter configurationType. Optional filtering may be applied
  1774  // to refine search results.
  1775  //
  1776  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1777  // with awserr.Error's Code and Message methods to get detailed information about
  1778  // the error.
  1779  //
  1780  // See the AWS API reference guide for AWS Application Discovery Service's
  1781  // API operation ListConfigurations for usage and error information.
  1782  //
  1783  // Returned Error Types:
  1784  //   * AuthorizationErrorException
  1785  //   The AWS user account does not have permission to perform the action. Check
  1786  //   the IAM policy associated with this account.
  1787  //
  1788  //   * ResourceNotFoundException
  1789  //   The specified configuration ID was not located. Verify the configuration
  1790  //   ID and try again.
  1791  //
  1792  //   * InvalidParameterException
  1793  //   One or more parameters are not valid. Verify the parameters and try again.
  1794  //
  1795  //   * InvalidParameterValueException
  1796  //   The value of one or more parameters are either invalid or out of range. Verify
  1797  //   the parameter values and try again.
  1798  //
  1799  //   * ServerInternalErrorException
  1800  //   The server experienced an internal error. Try again.
  1801  //
  1802  //   * HomeRegionNotSetException
  1803  //   The home region is not set. Set the home region to continue.
  1804  //
  1805  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListConfigurations
  1806  func (c *ApplicationDiscoveryService) ListConfigurations(input *ListConfigurationsInput) (*ListConfigurationsOutput, error) {
  1807  	req, out := c.ListConfigurationsRequest(input)
  1808  	return out, req.Send()
  1809  }
  1810  
  1811  // ListConfigurationsWithContext is the same as ListConfigurations with the addition of
  1812  // the ability to pass a context and additional request options.
  1813  //
  1814  // See ListConfigurations for details on how to use this API operation.
  1815  //
  1816  // The context must be non-nil and will be used for request cancellation. If
  1817  // the context is nil a panic will occur. In the future the SDK may create
  1818  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1819  // for more information on using Contexts.
  1820  func (c *ApplicationDiscoveryService) ListConfigurationsWithContext(ctx aws.Context, input *ListConfigurationsInput, opts ...request.Option) (*ListConfigurationsOutput, error) {
  1821  	req, out := c.ListConfigurationsRequest(input)
  1822  	req.SetContext(ctx)
  1823  	req.ApplyOptions(opts...)
  1824  	return out, req.Send()
  1825  }
  1826  
  1827  const opListServerNeighbors = "ListServerNeighbors"
  1828  
  1829  // ListServerNeighborsRequest generates a "aws/request.Request" representing the
  1830  // client's request for the ListServerNeighbors operation. The "output" return
  1831  // value will be populated with the request's response once the request completes
  1832  // successfully.
  1833  //
  1834  // Use "Send" method on the returned Request to send the API call to the service.
  1835  // the "output" return value is not valid until after Send returns without error.
  1836  //
  1837  // See ListServerNeighbors for more information on using the ListServerNeighbors
  1838  // API call, and error handling.
  1839  //
  1840  // This method is useful when you want to inject custom logic or configuration
  1841  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1842  //
  1843  //
  1844  //    // Example sending a request using the ListServerNeighborsRequest method.
  1845  //    req, resp := client.ListServerNeighborsRequest(params)
  1846  //
  1847  //    err := req.Send()
  1848  //    if err == nil { // resp is now filled
  1849  //        fmt.Println(resp)
  1850  //    }
  1851  //
  1852  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListServerNeighbors
  1853  func (c *ApplicationDiscoveryService) ListServerNeighborsRequest(input *ListServerNeighborsInput) (req *request.Request, output *ListServerNeighborsOutput) {
  1854  	op := &request.Operation{
  1855  		Name:       opListServerNeighbors,
  1856  		HTTPMethod: "POST",
  1857  		HTTPPath:   "/",
  1858  	}
  1859  
  1860  	if input == nil {
  1861  		input = &ListServerNeighborsInput{}
  1862  	}
  1863  
  1864  	output = &ListServerNeighborsOutput{}
  1865  	req = c.newRequest(op, input, output)
  1866  	return
  1867  }
  1868  
  1869  // ListServerNeighbors API operation for AWS Application Discovery Service.
  1870  //
  1871  // Retrieves a list of servers that are one network hop away from a specified
  1872  // server.
  1873  //
  1874  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1875  // with awserr.Error's Code and Message methods to get detailed information about
  1876  // the error.
  1877  //
  1878  // See the AWS API reference guide for AWS Application Discovery Service's
  1879  // API operation ListServerNeighbors for usage and error information.
  1880  //
  1881  // Returned Error Types:
  1882  //   * AuthorizationErrorException
  1883  //   The AWS user account does not have permission to perform the action. Check
  1884  //   the IAM policy associated with this account.
  1885  //
  1886  //   * InvalidParameterException
  1887  //   One or more parameters are not valid. Verify the parameters and try again.
  1888  //
  1889  //   * InvalidParameterValueException
  1890  //   The value of one or more parameters are either invalid or out of range. Verify
  1891  //   the parameter values and try again.
  1892  //
  1893  //   * ServerInternalErrorException
  1894  //   The server experienced an internal error. Try again.
  1895  //
  1896  //   * HomeRegionNotSetException
  1897  //   The home region is not set. Set the home region to continue.
  1898  //
  1899  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListServerNeighbors
  1900  func (c *ApplicationDiscoveryService) ListServerNeighbors(input *ListServerNeighborsInput) (*ListServerNeighborsOutput, error) {
  1901  	req, out := c.ListServerNeighborsRequest(input)
  1902  	return out, req.Send()
  1903  }
  1904  
  1905  // ListServerNeighborsWithContext is the same as ListServerNeighbors with the addition of
  1906  // the ability to pass a context and additional request options.
  1907  //
  1908  // See ListServerNeighbors for details on how to use this API operation.
  1909  //
  1910  // The context must be non-nil and will be used for request cancellation. If
  1911  // the context is nil a panic will occur. In the future the SDK may create
  1912  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1913  // for more information on using Contexts.
  1914  func (c *ApplicationDiscoveryService) ListServerNeighborsWithContext(ctx aws.Context, input *ListServerNeighborsInput, opts ...request.Option) (*ListServerNeighborsOutput, error) {
  1915  	req, out := c.ListServerNeighborsRequest(input)
  1916  	req.SetContext(ctx)
  1917  	req.ApplyOptions(opts...)
  1918  	return out, req.Send()
  1919  }
  1920  
  1921  const opStartContinuousExport = "StartContinuousExport"
  1922  
  1923  // StartContinuousExportRequest generates a "aws/request.Request" representing the
  1924  // client's request for the StartContinuousExport operation. The "output" return
  1925  // value will be populated with the request's response once the request completes
  1926  // successfully.
  1927  //
  1928  // Use "Send" method on the returned Request to send the API call to the service.
  1929  // the "output" return value is not valid until after Send returns without error.
  1930  //
  1931  // See StartContinuousExport for more information on using the StartContinuousExport
  1932  // API call, and error handling.
  1933  //
  1934  // This method is useful when you want to inject custom logic or configuration
  1935  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1936  //
  1937  //
  1938  //    // Example sending a request using the StartContinuousExportRequest method.
  1939  //    req, resp := client.StartContinuousExportRequest(params)
  1940  //
  1941  //    err := req.Send()
  1942  //    if err == nil { // resp is now filled
  1943  //        fmt.Println(resp)
  1944  //    }
  1945  //
  1946  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartContinuousExport
  1947  func (c *ApplicationDiscoveryService) StartContinuousExportRequest(input *StartContinuousExportInput) (req *request.Request, output *StartContinuousExportOutput) {
  1948  	op := &request.Operation{
  1949  		Name:       opStartContinuousExport,
  1950  		HTTPMethod: "POST",
  1951  		HTTPPath:   "/",
  1952  	}
  1953  
  1954  	if input == nil {
  1955  		input = &StartContinuousExportInput{}
  1956  	}
  1957  
  1958  	output = &StartContinuousExportOutput{}
  1959  	req = c.newRequest(op, input, output)
  1960  	return
  1961  }
  1962  
  1963  // StartContinuousExport API operation for AWS Application Discovery Service.
  1964  //
  1965  // Start the continuous flow of agent's discovered data into Amazon Athena.
  1966  //
  1967  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1968  // with awserr.Error's Code and Message methods to get detailed information about
  1969  // the error.
  1970  //
  1971  // See the AWS API reference guide for AWS Application Discovery Service's
  1972  // API operation StartContinuousExport for usage and error information.
  1973  //
  1974  // Returned Error Types:
  1975  //   * ConflictErrorException
  1976  //
  1977  //   * AuthorizationErrorException
  1978  //   The AWS user account does not have permission to perform the action. Check
  1979  //   the IAM policy associated with this account.
  1980  //
  1981  //   * InvalidParameterException
  1982  //   One or more parameters are not valid. Verify the parameters and try again.
  1983  //
  1984  //   * InvalidParameterValueException
  1985  //   The value of one or more parameters are either invalid or out of range. Verify
  1986  //   the parameter values and try again.
  1987  //
  1988  //   * ServerInternalErrorException
  1989  //   The server experienced an internal error. Try again.
  1990  //
  1991  //   * OperationNotPermittedException
  1992  //   This operation is not permitted.
  1993  //
  1994  //   * ResourceInUseException
  1995  //   This issue occurs when the same clientRequestToken is used with the StartImportTask
  1996  //   action, but with different parameters. For example, you use the same request
  1997  //   token but have two different import URLs, you can encounter this issue. If
  1998  //   the import tasks are meant to be different, use a different clientRequestToken,
  1999  //   and try again.
  2000  //
  2001  //   * HomeRegionNotSetException
  2002  //   The home region is not set. Set the home region to continue.
  2003  //
  2004  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartContinuousExport
  2005  func (c *ApplicationDiscoveryService) StartContinuousExport(input *StartContinuousExportInput) (*StartContinuousExportOutput, error) {
  2006  	req, out := c.StartContinuousExportRequest(input)
  2007  	return out, req.Send()
  2008  }
  2009  
  2010  // StartContinuousExportWithContext is the same as StartContinuousExport with the addition of
  2011  // the ability to pass a context and additional request options.
  2012  //
  2013  // See StartContinuousExport for details on how to use this API operation.
  2014  //
  2015  // The context must be non-nil and will be used for request cancellation. If
  2016  // the context is nil a panic will occur. In the future the SDK may create
  2017  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2018  // for more information on using Contexts.
  2019  func (c *ApplicationDiscoveryService) StartContinuousExportWithContext(ctx aws.Context, input *StartContinuousExportInput, opts ...request.Option) (*StartContinuousExportOutput, error) {
  2020  	req, out := c.StartContinuousExportRequest(input)
  2021  	req.SetContext(ctx)
  2022  	req.ApplyOptions(opts...)
  2023  	return out, req.Send()
  2024  }
  2025  
  2026  const opStartDataCollectionByAgentIds = "StartDataCollectionByAgentIds"
  2027  
  2028  // StartDataCollectionByAgentIdsRequest generates a "aws/request.Request" representing the
  2029  // client's request for the StartDataCollectionByAgentIds operation. The "output" return
  2030  // value will be populated with the request's response once the request completes
  2031  // successfully.
  2032  //
  2033  // Use "Send" method on the returned Request to send the API call to the service.
  2034  // the "output" return value is not valid until after Send returns without error.
  2035  //
  2036  // See StartDataCollectionByAgentIds for more information on using the StartDataCollectionByAgentIds
  2037  // API call, and error handling.
  2038  //
  2039  // This method is useful when you want to inject custom logic or configuration
  2040  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2041  //
  2042  //
  2043  //    // Example sending a request using the StartDataCollectionByAgentIdsRequest method.
  2044  //    req, resp := client.StartDataCollectionByAgentIdsRequest(params)
  2045  //
  2046  //    err := req.Send()
  2047  //    if err == nil { // resp is now filled
  2048  //        fmt.Println(resp)
  2049  //    }
  2050  //
  2051  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartDataCollectionByAgentIds
  2052  func (c *ApplicationDiscoveryService) StartDataCollectionByAgentIdsRequest(input *StartDataCollectionByAgentIdsInput) (req *request.Request, output *StartDataCollectionByAgentIdsOutput) {
  2053  	op := &request.Operation{
  2054  		Name:       opStartDataCollectionByAgentIds,
  2055  		HTTPMethod: "POST",
  2056  		HTTPPath:   "/",
  2057  	}
  2058  
  2059  	if input == nil {
  2060  		input = &StartDataCollectionByAgentIdsInput{}
  2061  	}
  2062  
  2063  	output = &StartDataCollectionByAgentIdsOutput{}
  2064  	req = c.newRequest(op, input, output)
  2065  	return
  2066  }
  2067  
  2068  // StartDataCollectionByAgentIds API operation for AWS Application Discovery Service.
  2069  //
  2070  // Instructs the specified agents or connectors to start collecting data.
  2071  //
  2072  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2073  // with awserr.Error's Code and Message methods to get detailed information about
  2074  // the error.
  2075  //
  2076  // See the AWS API reference guide for AWS Application Discovery Service's
  2077  // API operation StartDataCollectionByAgentIds for usage and error information.
  2078  //
  2079  // Returned Error Types:
  2080  //   * AuthorizationErrorException
  2081  //   The AWS user account does not have permission to perform the action. Check
  2082  //   the IAM policy associated with this account.
  2083  //
  2084  //   * InvalidParameterException
  2085  //   One or more parameters are not valid. Verify the parameters and try again.
  2086  //
  2087  //   * InvalidParameterValueException
  2088  //   The value of one or more parameters are either invalid or out of range. Verify
  2089  //   the parameter values and try again.
  2090  //
  2091  //   * ServerInternalErrorException
  2092  //   The server experienced an internal error. Try again.
  2093  //
  2094  //   * HomeRegionNotSetException
  2095  //   The home region is not set. Set the home region to continue.
  2096  //
  2097  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartDataCollectionByAgentIds
  2098  func (c *ApplicationDiscoveryService) StartDataCollectionByAgentIds(input *StartDataCollectionByAgentIdsInput) (*StartDataCollectionByAgentIdsOutput, error) {
  2099  	req, out := c.StartDataCollectionByAgentIdsRequest(input)
  2100  	return out, req.Send()
  2101  }
  2102  
  2103  // StartDataCollectionByAgentIdsWithContext is the same as StartDataCollectionByAgentIds with the addition of
  2104  // the ability to pass a context and additional request options.
  2105  //
  2106  // See StartDataCollectionByAgentIds for details on how to use this API operation.
  2107  //
  2108  // The context must be non-nil and will be used for request cancellation. If
  2109  // the context is nil a panic will occur. In the future the SDK may create
  2110  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2111  // for more information on using Contexts.
  2112  func (c *ApplicationDiscoveryService) StartDataCollectionByAgentIdsWithContext(ctx aws.Context, input *StartDataCollectionByAgentIdsInput, opts ...request.Option) (*StartDataCollectionByAgentIdsOutput, error) {
  2113  	req, out := c.StartDataCollectionByAgentIdsRequest(input)
  2114  	req.SetContext(ctx)
  2115  	req.ApplyOptions(opts...)
  2116  	return out, req.Send()
  2117  }
  2118  
  2119  const opStartExportTask = "StartExportTask"
  2120  
  2121  // StartExportTaskRequest generates a "aws/request.Request" representing the
  2122  // client's request for the StartExportTask operation. The "output" return
  2123  // value will be populated with the request's response once the request completes
  2124  // successfully.
  2125  //
  2126  // Use "Send" method on the returned Request to send the API call to the service.
  2127  // the "output" return value is not valid until after Send returns without error.
  2128  //
  2129  // See StartExportTask for more information on using the StartExportTask
  2130  // API call, and error handling.
  2131  //
  2132  // This method is useful when you want to inject custom logic or configuration
  2133  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2134  //
  2135  //
  2136  //    // Example sending a request using the StartExportTaskRequest method.
  2137  //    req, resp := client.StartExportTaskRequest(params)
  2138  //
  2139  //    err := req.Send()
  2140  //    if err == nil { // resp is now filled
  2141  //        fmt.Println(resp)
  2142  //    }
  2143  //
  2144  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartExportTask
  2145  func (c *ApplicationDiscoveryService) StartExportTaskRequest(input *StartExportTaskInput) (req *request.Request, output *StartExportTaskOutput) {
  2146  	op := &request.Operation{
  2147  		Name:       opStartExportTask,
  2148  		HTTPMethod: "POST",
  2149  		HTTPPath:   "/",
  2150  	}
  2151  
  2152  	if input == nil {
  2153  		input = &StartExportTaskInput{}
  2154  	}
  2155  
  2156  	output = &StartExportTaskOutput{}
  2157  	req = c.newRequest(op, input, output)
  2158  	return
  2159  }
  2160  
  2161  // StartExportTask API operation for AWS Application Discovery Service.
  2162  //
  2163  // Begins the export of discovered data to an S3 bucket.
  2164  //
  2165  // If you specify agentIds in a filter, the task exports up to 72 hours of detailed
  2166  // data collected by the identified Application Discovery Agent, including network,
  2167  // process, and performance details. A time range for exported agent data may
  2168  // be set by using startTime and endTime. Export of detailed agent data is limited
  2169  // to five concurrently running exports.
  2170  //
  2171  // If you do not include an agentIds filter, summary data is exported that includes
  2172  // both AWS Agentless Discovery Connector data and summary data from AWS Discovery
  2173  // Agents. Export of summary data is limited to two exports per day.
  2174  //
  2175  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2176  // with awserr.Error's Code and Message methods to get detailed information about
  2177  // the error.
  2178  //
  2179  // See the AWS API reference guide for AWS Application Discovery Service's
  2180  // API operation StartExportTask for usage and error information.
  2181  //
  2182  // Returned Error Types:
  2183  //   * AuthorizationErrorException
  2184  //   The AWS user account does not have permission to perform the action. Check
  2185  //   the IAM policy associated with this account.
  2186  //
  2187  //   * InvalidParameterException
  2188  //   One or more parameters are not valid. Verify the parameters and try again.
  2189  //
  2190  //   * InvalidParameterValueException
  2191  //   The value of one or more parameters are either invalid or out of range. Verify
  2192  //   the parameter values and try again.
  2193  //
  2194  //   * ServerInternalErrorException
  2195  //   The server experienced an internal error. Try again.
  2196  //
  2197  //   * OperationNotPermittedException
  2198  //   This operation is not permitted.
  2199  //
  2200  //   * HomeRegionNotSetException
  2201  //   The home region is not set. Set the home region to continue.
  2202  //
  2203  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartExportTask
  2204  func (c *ApplicationDiscoveryService) StartExportTask(input *StartExportTaskInput) (*StartExportTaskOutput, error) {
  2205  	req, out := c.StartExportTaskRequest(input)
  2206  	return out, req.Send()
  2207  }
  2208  
  2209  // StartExportTaskWithContext is the same as StartExportTask with the addition of
  2210  // the ability to pass a context and additional request options.
  2211  //
  2212  // See StartExportTask for details on how to use this API operation.
  2213  //
  2214  // The context must be non-nil and will be used for request cancellation. If
  2215  // the context is nil a panic will occur. In the future the SDK may create
  2216  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2217  // for more information on using Contexts.
  2218  func (c *ApplicationDiscoveryService) StartExportTaskWithContext(ctx aws.Context, input *StartExportTaskInput, opts ...request.Option) (*StartExportTaskOutput, error) {
  2219  	req, out := c.StartExportTaskRequest(input)
  2220  	req.SetContext(ctx)
  2221  	req.ApplyOptions(opts...)
  2222  	return out, req.Send()
  2223  }
  2224  
  2225  const opStartImportTask = "StartImportTask"
  2226  
  2227  // StartImportTaskRequest generates a "aws/request.Request" representing the
  2228  // client's request for the StartImportTask operation. The "output" return
  2229  // value will be populated with the request's response once the request completes
  2230  // successfully.
  2231  //
  2232  // Use "Send" method on the returned Request to send the API call to the service.
  2233  // the "output" return value is not valid until after Send returns without error.
  2234  //
  2235  // See StartImportTask for more information on using the StartImportTask
  2236  // API call, and error handling.
  2237  //
  2238  // This method is useful when you want to inject custom logic or configuration
  2239  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2240  //
  2241  //
  2242  //    // Example sending a request using the StartImportTaskRequest method.
  2243  //    req, resp := client.StartImportTaskRequest(params)
  2244  //
  2245  //    err := req.Send()
  2246  //    if err == nil { // resp is now filled
  2247  //        fmt.Println(resp)
  2248  //    }
  2249  //
  2250  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartImportTask
  2251  func (c *ApplicationDiscoveryService) StartImportTaskRequest(input *StartImportTaskInput) (req *request.Request, output *StartImportTaskOutput) {
  2252  	op := &request.Operation{
  2253  		Name:       opStartImportTask,
  2254  		HTTPMethod: "POST",
  2255  		HTTPPath:   "/",
  2256  	}
  2257  
  2258  	if input == nil {
  2259  		input = &StartImportTaskInput{}
  2260  	}
  2261  
  2262  	output = &StartImportTaskOutput{}
  2263  	req = c.newRequest(op, input, output)
  2264  	return
  2265  }
  2266  
  2267  // StartImportTask API operation for AWS Application Discovery Service.
  2268  //
  2269  // Starts an import task, which allows you to import details of your on-premises
  2270  // environment directly into AWS Migration Hub without having to use the Application
  2271  // Discovery Service (ADS) tools such as the Discovery Connector or Discovery
  2272  // Agent. This gives you the option to perform migration assessment and planning
  2273  // directly from your imported data, including the ability to group your devices
  2274  // as applications and track their migration status.
  2275  //
  2276  // To start an import request, do this:
  2277  //
  2278  // Download the specially formatted comma separated value (CSV) import template,
  2279  // which you can find here: https://s3-us-west-2.amazonaws.com/templates-7cffcf56-bd96-4b1c-b45b-a5b42f282e46/import_template.csv
  2280  // (https://s3-us-west-2.amazonaws.com/templates-7cffcf56-bd96-4b1c-b45b-a5b42f282e46/import_template.csv).
  2281  //
  2282  // Fill out the template with your server and application data.
  2283  //
  2284  // Upload your import file to an Amazon S3 bucket, and make a note of it's Object
  2285  // URL. Your import file must be in the CSV format.
  2286  //
  2287  // Use the console or the StartImportTask command with the AWS CLI or one of
  2288  // the AWS SDKs to import the records from your file.
  2289  //
  2290  // For more information, including step-by-step procedures, see Migration Hub
  2291  // Import (https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-import.html)
  2292  // in the AWS Application Discovery Service User Guide.
  2293  //
  2294  // There are limits to the number of import tasks you can create (and delete)
  2295  // in an AWS account. For more information, see AWS Application Discovery Service
  2296  // Limits (https://docs.aws.amazon.com/application-discovery/latest/userguide/ads_service_limits.html)
  2297  // in the AWS Application Discovery Service User Guide.
  2298  //
  2299  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2300  // with awserr.Error's Code and Message methods to get detailed information about
  2301  // the error.
  2302  //
  2303  // See the AWS API reference guide for AWS Application Discovery Service's
  2304  // API operation StartImportTask for usage and error information.
  2305  //
  2306  // Returned Error Types:
  2307  //   * ResourceInUseException
  2308  //   This issue occurs when the same clientRequestToken is used with the StartImportTask
  2309  //   action, but with different parameters. For example, you use the same request
  2310  //   token but have two different import URLs, you can encounter this issue. If
  2311  //   the import tasks are meant to be different, use a different clientRequestToken,
  2312  //   and try again.
  2313  //
  2314  //   * AuthorizationErrorException
  2315  //   The AWS user account does not have permission to perform the action. Check
  2316  //   the IAM policy associated with this account.
  2317  //
  2318  //   * InvalidParameterException
  2319  //   One or more parameters are not valid. Verify the parameters and try again.
  2320  //
  2321  //   * InvalidParameterValueException
  2322  //   The value of one or more parameters are either invalid or out of range. Verify
  2323  //   the parameter values and try again.
  2324  //
  2325  //   * ServerInternalErrorException
  2326  //   The server experienced an internal error. Try again.
  2327  //
  2328  //   * HomeRegionNotSetException
  2329  //   The home region is not set. Set the home region to continue.
  2330  //
  2331  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartImportTask
  2332  func (c *ApplicationDiscoveryService) StartImportTask(input *StartImportTaskInput) (*StartImportTaskOutput, error) {
  2333  	req, out := c.StartImportTaskRequest(input)
  2334  	return out, req.Send()
  2335  }
  2336  
  2337  // StartImportTaskWithContext is the same as StartImportTask with the addition of
  2338  // the ability to pass a context and additional request options.
  2339  //
  2340  // See StartImportTask for details on how to use this API operation.
  2341  //
  2342  // The context must be non-nil and will be used for request cancellation. If
  2343  // the context is nil a panic will occur. In the future the SDK may create
  2344  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2345  // for more information on using Contexts.
  2346  func (c *ApplicationDiscoveryService) StartImportTaskWithContext(ctx aws.Context, input *StartImportTaskInput, opts ...request.Option) (*StartImportTaskOutput, error) {
  2347  	req, out := c.StartImportTaskRequest(input)
  2348  	req.SetContext(ctx)
  2349  	req.ApplyOptions(opts...)
  2350  	return out, req.Send()
  2351  }
  2352  
  2353  const opStopContinuousExport = "StopContinuousExport"
  2354  
  2355  // StopContinuousExportRequest generates a "aws/request.Request" representing the
  2356  // client's request for the StopContinuousExport operation. The "output" return
  2357  // value will be populated with the request's response once the request completes
  2358  // successfully.
  2359  //
  2360  // Use "Send" method on the returned Request to send the API call to the service.
  2361  // the "output" return value is not valid until after Send returns without error.
  2362  //
  2363  // See StopContinuousExport for more information on using the StopContinuousExport
  2364  // API call, and error handling.
  2365  //
  2366  // This method is useful when you want to inject custom logic or configuration
  2367  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2368  //
  2369  //
  2370  //    // Example sending a request using the StopContinuousExportRequest method.
  2371  //    req, resp := client.StopContinuousExportRequest(params)
  2372  //
  2373  //    err := req.Send()
  2374  //    if err == nil { // resp is now filled
  2375  //        fmt.Println(resp)
  2376  //    }
  2377  //
  2378  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopContinuousExport
  2379  func (c *ApplicationDiscoveryService) StopContinuousExportRequest(input *StopContinuousExportInput) (req *request.Request, output *StopContinuousExportOutput) {
  2380  	op := &request.Operation{
  2381  		Name:       opStopContinuousExport,
  2382  		HTTPMethod: "POST",
  2383  		HTTPPath:   "/",
  2384  	}
  2385  
  2386  	if input == nil {
  2387  		input = &StopContinuousExportInput{}
  2388  	}
  2389  
  2390  	output = &StopContinuousExportOutput{}
  2391  	req = c.newRequest(op, input, output)
  2392  	return
  2393  }
  2394  
  2395  // StopContinuousExport API operation for AWS Application Discovery Service.
  2396  //
  2397  // Stop the continuous flow of agent's discovered data into Amazon Athena.
  2398  //
  2399  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2400  // with awserr.Error's Code and Message methods to get detailed information about
  2401  // the error.
  2402  //
  2403  // See the AWS API reference guide for AWS Application Discovery Service's
  2404  // API operation StopContinuousExport for usage and error information.
  2405  //
  2406  // Returned Error Types:
  2407  //   * AuthorizationErrorException
  2408  //   The AWS user account does not have permission to perform the action. Check
  2409  //   the IAM policy associated with this account.
  2410  //
  2411  //   * InvalidParameterException
  2412  //   One or more parameters are not valid. Verify the parameters and try again.
  2413  //
  2414  //   * InvalidParameterValueException
  2415  //   The value of one or more parameters are either invalid or out of range. Verify
  2416  //   the parameter values and try again.
  2417  //
  2418  //   * ServerInternalErrorException
  2419  //   The server experienced an internal error. Try again.
  2420  //
  2421  //   * OperationNotPermittedException
  2422  //   This operation is not permitted.
  2423  //
  2424  //   * ResourceNotFoundException
  2425  //   The specified configuration ID was not located. Verify the configuration
  2426  //   ID and try again.
  2427  //
  2428  //   * ResourceInUseException
  2429  //   This issue occurs when the same clientRequestToken is used with the StartImportTask
  2430  //   action, but with different parameters. For example, you use the same request
  2431  //   token but have two different import URLs, you can encounter this issue. If
  2432  //   the import tasks are meant to be different, use a different clientRequestToken,
  2433  //   and try again.
  2434  //
  2435  //   * HomeRegionNotSetException
  2436  //   The home region is not set. Set the home region to continue.
  2437  //
  2438  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopContinuousExport
  2439  func (c *ApplicationDiscoveryService) StopContinuousExport(input *StopContinuousExportInput) (*StopContinuousExportOutput, error) {
  2440  	req, out := c.StopContinuousExportRequest(input)
  2441  	return out, req.Send()
  2442  }
  2443  
  2444  // StopContinuousExportWithContext is the same as StopContinuousExport with the addition of
  2445  // the ability to pass a context and additional request options.
  2446  //
  2447  // See StopContinuousExport for details on how to use this API operation.
  2448  //
  2449  // The context must be non-nil and will be used for request cancellation. If
  2450  // the context is nil a panic will occur. In the future the SDK may create
  2451  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2452  // for more information on using Contexts.
  2453  func (c *ApplicationDiscoveryService) StopContinuousExportWithContext(ctx aws.Context, input *StopContinuousExportInput, opts ...request.Option) (*StopContinuousExportOutput, error) {
  2454  	req, out := c.StopContinuousExportRequest(input)
  2455  	req.SetContext(ctx)
  2456  	req.ApplyOptions(opts...)
  2457  	return out, req.Send()
  2458  }
  2459  
  2460  const opStopDataCollectionByAgentIds = "StopDataCollectionByAgentIds"
  2461  
  2462  // StopDataCollectionByAgentIdsRequest generates a "aws/request.Request" representing the
  2463  // client's request for the StopDataCollectionByAgentIds operation. The "output" return
  2464  // value will be populated with the request's response once the request completes
  2465  // successfully.
  2466  //
  2467  // Use "Send" method on the returned Request to send the API call to the service.
  2468  // the "output" return value is not valid until after Send returns without error.
  2469  //
  2470  // See StopDataCollectionByAgentIds for more information on using the StopDataCollectionByAgentIds
  2471  // API call, and error handling.
  2472  //
  2473  // This method is useful when you want to inject custom logic or configuration
  2474  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2475  //
  2476  //
  2477  //    // Example sending a request using the StopDataCollectionByAgentIdsRequest method.
  2478  //    req, resp := client.StopDataCollectionByAgentIdsRequest(params)
  2479  //
  2480  //    err := req.Send()
  2481  //    if err == nil { // resp is now filled
  2482  //        fmt.Println(resp)
  2483  //    }
  2484  //
  2485  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopDataCollectionByAgentIds
  2486  func (c *ApplicationDiscoveryService) StopDataCollectionByAgentIdsRequest(input *StopDataCollectionByAgentIdsInput) (req *request.Request, output *StopDataCollectionByAgentIdsOutput) {
  2487  	op := &request.Operation{
  2488  		Name:       opStopDataCollectionByAgentIds,
  2489  		HTTPMethod: "POST",
  2490  		HTTPPath:   "/",
  2491  	}
  2492  
  2493  	if input == nil {
  2494  		input = &StopDataCollectionByAgentIdsInput{}
  2495  	}
  2496  
  2497  	output = &StopDataCollectionByAgentIdsOutput{}
  2498  	req = c.newRequest(op, input, output)
  2499  	return
  2500  }
  2501  
  2502  // StopDataCollectionByAgentIds API operation for AWS Application Discovery Service.
  2503  //
  2504  // Instructs the specified agents or connectors to stop collecting data.
  2505  //
  2506  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2507  // with awserr.Error's Code and Message methods to get detailed information about
  2508  // the error.
  2509  //
  2510  // See the AWS API reference guide for AWS Application Discovery Service's
  2511  // API operation StopDataCollectionByAgentIds for usage and error information.
  2512  //
  2513  // Returned Error Types:
  2514  //   * AuthorizationErrorException
  2515  //   The AWS user account does not have permission to perform the action. Check
  2516  //   the IAM policy associated with this account.
  2517  //
  2518  //   * InvalidParameterException
  2519  //   One or more parameters are not valid. Verify the parameters and try again.
  2520  //
  2521  //   * InvalidParameterValueException
  2522  //   The value of one or more parameters are either invalid or out of range. Verify
  2523  //   the parameter values and try again.
  2524  //
  2525  //   * ServerInternalErrorException
  2526  //   The server experienced an internal error. Try again.
  2527  //
  2528  //   * HomeRegionNotSetException
  2529  //   The home region is not set. Set the home region to continue.
  2530  //
  2531  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopDataCollectionByAgentIds
  2532  func (c *ApplicationDiscoveryService) StopDataCollectionByAgentIds(input *StopDataCollectionByAgentIdsInput) (*StopDataCollectionByAgentIdsOutput, error) {
  2533  	req, out := c.StopDataCollectionByAgentIdsRequest(input)
  2534  	return out, req.Send()
  2535  }
  2536  
  2537  // StopDataCollectionByAgentIdsWithContext is the same as StopDataCollectionByAgentIds with the addition of
  2538  // the ability to pass a context and additional request options.
  2539  //
  2540  // See StopDataCollectionByAgentIds for details on how to use this API operation.
  2541  //
  2542  // The context must be non-nil and will be used for request cancellation. If
  2543  // the context is nil a panic will occur. In the future the SDK may create
  2544  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2545  // for more information on using Contexts.
  2546  func (c *ApplicationDiscoveryService) StopDataCollectionByAgentIdsWithContext(ctx aws.Context, input *StopDataCollectionByAgentIdsInput, opts ...request.Option) (*StopDataCollectionByAgentIdsOutput, error) {
  2547  	req, out := c.StopDataCollectionByAgentIdsRequest(input)
  2548  	req.SetContext(ctx)
  2549  	req.ApplyOptions(opts...)
  2550  	return out, req.Send()
  2551  }
  2552  
  2553  const opUpdateApplication = "UpdateApplication"
  2554  
  2555  // UpdateApplicationRequest generates a "aws/request.Request" representing the
  2556  // client's request for the UpdateApplication operation. The "output" return
  2557  // value will be populated with the request's response once the request completes
  2558  // successfully.
  2559  //
  2560  // Use "Send" method on the returned Request to send the API call to the service.
  2561  // the "output" return value is not valid until after Send returns without error.
  2562  //
  2563  // See UpdateApplication for more information on using the UpdateApplication
  2564  // API call, and error handling.
  2565  //
  2566  // This method is useful when you want to inject custom logic or configuration
  2567  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2568  //
  2569  //
  2570  //    // Example sending a request using the UpdateApplicationRequest method.
  2571  //    req, resp := client.UpdateApplicationRequest(params)
  2572  //
  2573  //    err := req.Send()
  2574  //    if err == nil { // resp is now filled
  2575  //        fmt.Println(resp)
  2576  //    }
  2577  //
  2578  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/UpdateApplication
  2579  func (c *ApplicationDiscoveryService) UpdateApplicationRequest(input *UpdateApplicationInput) (req *request.Request, output *UpdateApplicationOutput) {
  2580  	op := &request.Operation{
  2581  		Name:       opUpdateApplication,
  2582  		HTTPMethod: "POST",
  2583  		HTTPPath:   "/",
  2584  	}
  2585  
  2586  	if input == nil {
  2587  		input = &UpdateApplicationInput{}
  2588  	}
  2589  
  2590  	output = &UpdateApplicationOutput{}
  2591  	req = c.newRequest(op, input, output)
  2592  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2593  	return
  2594  }
  2595  
  2596  // UpdateApplication API operation for AWS Application Discovery Service.
  2597  //
  2598  // Updates metadata about an application.
  2599  //
  2600  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2601  // with awserr.Error's Code and Message methods to get detailed information about
  2602  // the error.
  2603  //
  2604  // See the AWS API reference guide for AWS Application Discovery Service's
  2605  // API operation UpdateApplication for usage and error information.
  2606  //
  2607  // Returned Error Types:
  2608  //   * AuthorizationErrorException
  2609  //   The AWS user account does not have permission to perform the action. Check
  2610  //   the IAM policy associated with this account.
  2611  //
  2612  //   * InvalidParameterException
  2613  //   One or more parameters are not valid. Verify the parameters and try again.
  2614  //
  2615  //   * InvalidParameterValueException
  2616  //   The value of one or more parameters are either invalid or out of range. Verify
  2617  //   the parameter values and try again.
  2618  //
  2619  //   * ServerInternalErrorException
  2620  //   The server experienced an internal error. Try again.
  2621  //
  2622  //   * HomeRegionNotSetException
  2623  //   The home region is not set. Set the home region to continue.
  2624  //
  2625  // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/UpdateApplication
  2626  func (c *ApplicationDiscoveryService) UpdateApplication(input *UpdateApplicationInput) (*UpdateApplicationOutput, error) {
  2627  	req, out := c.UpdateApplicationRequest(input)
  2628  	return out, req.Send()
  2629  }
  2630  
  2631  // UpdateApplicationWithContext is the same as UpdateApplication with the addition of
  2632  // the ability to pass a context and additional request options.
  2633  //
  2634  // See UpdateApplication for details on how to use this API operation.
  2635  //
  2636  // The context must be non-nil and will be used for request cancellation. If
  2637  // the context is nil a panic will occur. In the future the SDK may create
  2638  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2639  // for more information on using Contexts.
  2640  func (c *ApplicationDiscoveryService) UpdateApplicationWithContext(ctx aws.Context, input *UpdateApplicationInput, opts ...request.Option) (*UpdateApplicationOutput, error) {
  2641  	req, out := c.UpdateApplicationRequest(input)
  2642  	req.SetContext(ctx)
  2643  	req.ApplyOptions(opts...)
  2644  	return out, req.Send()
  2645  }
  2646  
  2647  // Information about agents or connectors that were instructed to start collecting
  2648  // data. Information includes the agent/connector ID, a description of the operation,
  2649  // and whether the agent/connector configuration was updated.
  2650  type AgentConfigurationStatus struct {
  2651  	_ struct{} `type:"structure"`
  2652  
  2653  	// The agent/connector ID.
  2654  	AgentId *string `locationName:"agentId" type:"string"`
  2655  
  2656  	// A description of the operation performed.
  2657  	Description *string `locationName:"description" type:"string"`
  2658  
  2659  	// Information about the status of the StartDataCollection and StopDataCollection
  2660  	// operations. The system has recorded the data collection operation. The agent/connector
  2661  	// receives this command the next time it polls for a new command.
  2662  	OperationSucceeded *bool `locationName:"operationSucceeded" type:"boolean"`
  2663  }
  2664  
  2665  // String returns the string representation.
  2666  //
  2667  // API parameter values that are decorated as "sensitive" in the API will not
  2668  // be included in the string output. The member name will be present, but the
  2669  // value will be replaced with "sensitive".
  2670  func (s AgentConfigurationStatus) String() string {
  2671  	return awsutil.Prettify(s)
  2672  }
  2673  
  2674  // GoString returns the string representation.
  2675  //
  2676  // API parameter values that are decorated as "sensitive" in the API will not
  2677  // be included in the string output. The member name will be present, but the
  2678  // value will be replaced with "sensitive".
  2679  func (s AgentConfigurationStatus) GoString() string {
  2680  	return s.String()
  2681  }
  2682  
  2683  // SetAgentId sets the AgentId field's value.
  2684  func (s *AgentConfigurationStatus) SetAgentId(v string) *AgentConfigurationStatus {
  2685  	s.AgentId = &v
  2686  	return s
  2687  }
  2688  
  2689  // SetDescription sets the Description field's value.
  2690  func (s *AgentConfigurationStatus) SetDescription(v string) *AgentConfigurationStatus {
  2691  	s.Description = &v
  2692  	return s
  2693  }
  2694  
  2695  // SetOperationSucceeded sets the OperationSucceeded field's value.
  2696  func (s *AgentConfigurationStatus) SetOperationSucceeded(v bool) *AgentConfigurationStatus {
  2697  	s.OperationSucceeded = &v
  2698  	return s
  2699  }
  2700  
  2701  // Information about agents or connectors associated with the user’s AWS account.
  2702  // Information includes agent or connector IDs, IP addresses, media access control
  2703  // (MAC) addresses, agent or connector health, hostname where the agent or connector
  2704  // resides, and agent version for each agent.
  2705  type AgentInfo struct {
  2706  	_ struct{} `type:"structure"`
  2707  
  2708  	// The agent or connector ID.
  2709  	AgentId *string `locationName:"agentId" type:"string"`
  2710  
  2711  	// Network details about the host where the agent or connector resides.
  2712  	AgentNetworkInfoList []*AgentNetworkInfo `locationName:"agentNetworkInfoList" type:"list"`
  2713  
  2714  	// Type of agent.
  2715  	AgentType *string `locationName:"agentType" type:"string"`
  2716  
  2717  	// Status of the collection process for an agent or connector.
  2718  	CollectionStatus *string `locationName:"collectionStatus" type:"string"`
  2719  
  2720  	// The ID of the connector.
  2721  	ConnectorId *string `locationName:"connectorId" type:"string"`
  2722  
  2723  	// The health of the agent or connector.
  2724  	Health *string `locationName:"health" type:"string" enum:"AgentStatus"`
  2725  
  2726  	// The name of the host where the agent or connector resides. The host can be
  2727  	// a server or virtual machine.
  2728  	HostName *string `locationName:"hostName" type:"string"`
  2729  
  2730  	// Time since agent or connector health was reported.
  2731  	LastHealthPingTime *string `locationName:"lastHealthPingTime" type:"string"`
  2732  
  2733  	// Agent's first registration timestamp in UTC.
  2734  	RegisteredTime *string `locationName:"registeredTime" type:"string"`
  2735  
  2736  	// The agent or connector version.
  2737  	Version *string `locationName:"version" type:"string"`
  2738  }
  2739  
  2740  // String returns the string representation.
  2741  //
  2742  // API parameter values that are decorated as "sensitive" in the API will not
  2743  // be included in the string output. The member name will be present, but the
  2744  // value will be replaced with "sensitive".
  2745  func (s AgentInfo) String() string {
  2746  	return awsutil.Prettify(s)
  2747  }
  2748  
  2749  // GoString returns the string representation.
  2750  //
  2751  // API parameter values that are decorated as "sensitive" in the API will not
  2752  // be included in the string output. The member name will be present, but the
  2753  // value will be replaced with "sensitive".
  2754  func (s AgentInfo) GoString() string {
  2755  	return s.String()
  2756  }
  2757  
  2758  // SetAgentId sets the AgentId field's value.
  2759  func (s *AgentInfo) SetAgentId(v string) *AgentInfo {
  2760  	s.AgentId = &v
  2761  	return s
  2762  }
  2763  
  2764  // SetAgentNetworkInfoList sets the AgentNetworkInfoList field's value.
  2765  func (s *AgentInfo) SetAgentNetworkInfoList(v []*AgentNetworkInfo) *AgentInfo {
  2766  	s.AgentNetworkInfoList = v
  2767  	return s
  2768  }
  2769  
  2770  // SetAgentType sets the AgentType field's value.
  2771  func (s *AgentInfo) SetAgentType(v string) *AgentInfo {
  2772  	s.AgentType = &v
  2773  	return s
  2774  }
  2775  
  2776  // SetCollectionStatus sets the CollectionStatus field's value.
  2777  func (s *AgentInfo) SetCollectionStatus(v string) *AgentInfo {
  2778  	s.CollectionStatus = &v
  2779  	return s
  2780  }
  2781  
  2782  // SetConnectorId sets the ConnectorId field's value.
  2783  func (s *AgentInfo) SetConnectorId(v string) *AgentInfo {
  2784  	s.ConnectorId = &v
  2785  	return s
  2786  }
  2787  
  2788  // SetHealth sets the Health field's value.
  2789  func (s *AgentInfo) SetHealth(v string) *AgentInfo {
  2790  	s.Health = &v
  2791  	return s
  2792  }
  2793  
  2794  // SetHostName sets the HostName field's value.
  2795  func (s *AgentInfo) SetHostName(v string) *AgentInfo {
  2796  	s.HostName = &v
  2797  	return s
  2798  }
  2799  
  2800  // SetLastHealthPingTime sets the LastHealthPingTime field's value.
  2801  func (s *AgentInfo) SetLastHealthPingTime(v string) *AgentInfo {
  2802  	s.LastHealthPingTime = &v
  2803  	return s
  2804  }
  2805  
  2806  // SetRegisteredTime sets the RegisteredTime field's value.
  2807  func (s *AgentInfo) SetRegisteredTime(v string) *AgentInfo {
  2808  	s.RegisteredTime = &v
  2809  	return s
  2810  }
  2811  
  2812  // SetVersion sets the Version field's value.
  2813  func (s *AgentInfo) SetVersion(v string) *AgentInfo {
  2814  	s.Version = &v
  2815  	return s
  2816  }
  2817  
  2818  // Network details about the host where the agent/connector resides.
  2819  type AgentNetworkInfo struct {
  2820  	_ struct{} `type:"structure"`
  2821  
  2822  	// The IP address for the host where the agent/connector resides.
  2823  	IpAddress *string `locationName:"ipAddress" type:"string"`
  2824  
  2825  	// The MAC address for the host where the agent/connector resides.
  2826  	MacAddress *string `locationName:"macAddress" type:"string"`
  2827  }
  2828  
  2829  // String returns the string representation.
  2830  //
  2831  // API parameter values that are decorated as "sensitive" in the API will not
  2832  // be included in the string output. The member name will be present, but the
  2833  // value will be replaced with "sensitive".
  2834  func (s AgentNetworkInfo) String() string {
  2835  	return awsutil.Prettify(s)
  2836  }
  2837  
  2838  // GoString returns the string representation.
  2839  //
  2840  // API parameter values that are decorated as "sensitive" in the API will not
  2841  // be included in the string output. The member name will be present, but the
  2842  // value will be replaced with "sensitive".
  2843  func (s AgentNetworkInfo) GoString() string {
  2844  	return s.String()
  2845  }
  2846  
  2847  // SetIpAddress sets the IpAddress field's value.
  2848  func (s *AgentNetworkInfo) SetIpAddress(v string) *AgentNetworkInfo {
  2849  	s.IpAddress = &v
  2850  	return s
  2851  }
  2852  
  2853  // SetMacAddress sets the MacAddress field's value.
  2854  func (s *AgentNetworkInfo) SetMacAddress(v string) *AgentNetworkInfo {
  2855  	s.MacAddress = &v
  2856  	return s
  2857  }
  2858  
  2859  type AssociateConfigurationItemsToApplicationInput struct {
  2860  	_ struct{} `type:"structure"`
  2861  
  2862  	// The configuration ID of an application with which items are to be associated.
  2863  	//
  2864  	// ApplicationConfigurationId is a required field
  2865  	ApplicationConfigurationId *string `locationName:"applicationConfigurationId" type:"string" required:"true"`
  2866  
  2867  	// The ID of each configuration item to be associated with an application.
  2868  	//
  2869  	// ConfigurationIds is a required field
  2870  	ConfigurationIds []*string `locationName:"configurationIds" type:"list" required:"true"`
  2871  }
  2872  
  2873  // String returns the string representation.
  2874  //
  2875  // API parameter values that are decorated as "sensitive" in the API will not
  2876  // be included in the string output. The member name will be present, but the
  2877  // value will be replaced with "sensitive".
  2878  func (s AssociateConfigurationItemsToApplicationInput) String() string {
  2879  	return awsutil.Prettify(s)
  2880  }
  2881  
  2882  // GoString returns the string representation.
  2883  //
  2884  // API parameter values that are decorated as "sensitive" in the API will not
  2885  // be included in the string output. The member name will be present, but the
  2886  // value will be replaced with "sensitive".
  2887  func (s AssociateConfigurationItemsToApplicationInput) GoString() string {
  2888  	return s.String()
  2889  }
  2890  
  2891  // Validate inspects the fields of the type to determine if they are valid.
  2892  func (s *AssociateConfigurationItemsToApplicationInput) Validate() error {
  2893  	invalidParams := request.ErrInvalidParams{Context: "AssociateConfigurationItemsToApplicationInput"}
  2894  	if s.ApplicationConfigurationId == nil {
  2895  		invalidParams.Add(request.NewErrParamRequired("ApplicationConfigurationId"))
  2896  	}
  2897  	if s.ConfigurationIds == nil {
  2898  		invalidParams.Add(request.NewErrParamRequired("ConfigurationIds"))
  2899  	}
  2900  
  2901  	if invalidParams.Len() > 0 {
  2902  		return invalidParams
  2903  	}
  2904  	return nil
  2905  }
  2906  
  2907  // SetApplicationConfigurationId sets the ApplicationConfigurationId field's value.
  2908  func (s *AssociateConfigurationItemsToApplicationInput) SetApplicationConfigurationId(v string) *AssociateConfigurationItemsToApplicationInput {
  2909  	s.ApplicationConfigurationId = &v
  2910  	return s
  2911  }
  2912  
  2913  // SetConfigurationIds sets the ConfigurationIds field's value.
  2914  func (s *AssociateConfigurationItemsToApplicationInput) SetConfigurationIds(v []*string) *AssociateConfigurationItemsToApplicationInput {
  2915  	s.ConfigurationIds = v
  2916  	return s
  2917  }
  2918  
  2919  type AssociateConfigurationItemsToApplicationOutput struct {
  2920  	_ struct{} `type:"structure"`
  2921  }
  2922  
  2923  // String returns the string representation.
  2924  //
  2925  // API parameter values that are decorated as "sensitive" in the API will not
  2926  // be included in the string output. The member name will be present, but the
  2927  // value will be replaced with "sensitive".
  2928  func (s AssociateConfigurationItemsToApplicationOutput) String() string {
  2929  	return awsutil.Prettify(s)
  2930  }
  2931  
  2932  // GoString returns the string representation.
  2933  //
  2934  // API parameter values that are decorated as "sensitive" in the API will not
  2935  // be included in the string output. The member name will be present, but the
  2936  // value will be replaced with "sensitive".
  2937  func (s AssociateConfigurationItemsToApplicationOutput) GoString() string {
  2938  	return s.String()
  2939  }
  2940  
  2941  // The AWS user account does not have permission to perform the action. Check
  2942  // the IAM policy associated with this account.
  2943  type AuthorizationErrorException struct {
  2944  	_            struct{}                  `type:"structure"`
  2945  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  2946  
  2947  	Message_ *string `locationName:"message" type:"string"`
  2948  }
  2949  
  2950  // String returns the string representation.
  2951  //
  2952  // API parameter values that are decorated as "sensitive" in the API will not
  2953  // be included in the string output. The member name will be present, but the
  2954  // value will be replaced with "sensitive".
  2955  func (s AuthorizationErrorException) String() string {
  2956  	return awsutil.Prettify(s)
  2957  }
  2958  
  2959  // GoString returns the string representation.
  2960  //
  2961  // API parameter values that are decorated as "sensitive" in the API will not
  2962  // be included in the string output. The member name will be present, but the
  2963  // value will be replaced with "sensitive".
  2964  func (s AuthorizationErrorException) GoString() string {
  2965  	return s.String()
  2966  }
  2967  
  2968  func newErrorAuthorizationErrorException(v protocol.ResponseMetadata) error {
  2969  	return &AuthorizationErrorException{
  2970  		RespMetadata: v,
  2971  	}
  2972  }
  2973  
  2974  // Code returns the exception type name.
  2975  func (s *AuthorizationErrorException) Code() string {
  2976  	return "AuthorizationErrorException"
  2977  }
  2978  
  2979  // Message returns the exception's message.
  2980  func (s *AuthorizationErrorException) Message() string {
  2981  	if s.Message_ != nil {
  2982  		return *s.Message_
  2983  	}
  2984  	return ""
  2985  }
  2986  
  2987  // OrigErr always returns nil, satisfies awserr.Error interface.
  2988  func (s *AuthorizationErrorException) OrigErr() error {
  2989  	return nil
  2990  }
  2991  
  2992  func (s *AuthorizationErrorException) Error() string {
  2993  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  2994  }
  2995  
  2996  // Status code returns the HTTP status code for the request's response error.
  2997  func (s *AuthorizationErrorException) StatusCode() int {
  2998  	return s.RespMetadata.StatusCode
  2999  }
  3000  
  3001  // RequestID returns the service's response RequestID for request.
  3002  func (s *AuthorizationErrorException) RequestID() string {
  3003  	return s.RespMetadata.RequestID
  3004  }
  3005  
  3006  // Error messages returned for each import task that you deleted as a response
  3007  // for this command.
  3008  type BatchDeleteImportDataError struct {
  3009  	_ struct{} `type:"structure"`
  3010  
  3011  	// The type of error that occurred for a specific import task.
  3012  	ErrorCode *string `locationName:"errorCode" type:"string" enum:"BatchDeleteImportDataErrorCode"`
  3013  
  3014  	// The description of the error that occurred for a specific import task.
  3015  	ErrorDescription *string `locationName:"errorDescription" type:"string"`
  3016  
  3017  	// The unique import ID associated with the error that occurred.
  3018  	ImportTaskId *string `locationName:"importTaskId" type:"string"`
  3019  }
  3020  
  3021  // String returns the string representation.
  3022  //
  3023  // API parameter values that are decorated as "sensitive" in the API will not
  3024  // be included in the string output. The member name will be present, but the
  3025  // value will be replaced with "sensitive".
  3026  func (s BatchDeleteImportDataError) String() string {
  3027  	return awsutil.Prettify(s)
  3028  }
  3029  
  3030  // GoString returns the string representation.
  3031  //
  3032  // API parameter values that are decorated as "sensitive" in the API will not
  3033  // be included in the string output. The member name will be present, but the
  3034  // value will be replaced with "sensitive".
  3035  func (s BatchDeleteImportDataError) GoString() string {
  3036  	return s.String()
  3037  }
  3038  
  3039  // SetErrorCode sets the ErrorCode field's value.
  3040  func (s *BatchDeleteImportDataError) SetErrorCode(v string) *BatchDeleteImportDataError {
  3041  	s.ErrorCode = &v
  3042  	return s
  3043  }
  3044  
  3045  // SetErrorDescription sets the ErrorDescription field's value.
  3046  func (s *BatchDeleteImportDataError) SetErrorDescription(v string) *BatchDeleteImportDataError {
  3047  	s.ErrorDescription = &v
  3048  	return s
  3049  }
  3050  
  3051  // SetImportTaskId sets the ImportTaskId field's value.
  3052  func (s *BatchDeleteImportDataError) SetImportTaskId(v string) *BatchDeleteImportDataError {
  3053  	s.ImportTaskId = &v
  3054  	return s
  3055  }
  3056  
  3057  type BatchDeleteImportDataInput struct {
  3058  	_ struct{} `type:"structure"`
  3059  
  3060  	// The IDs for the import tasks that you want to delete.
  3061  	//
  3062  	// ImportTaskIds is a required field
  3063  	ImportTaskIds []*string `locationName:"importTaskIds" min:"1" type:"list" required:"true"`
  3064  }
  3065  
  3066  // String returns the string representation.
  3067  //
  3068  // API parameter values that are decorated as "sensitive" in the API will not
  3069  // be included in the string output. The member name will be present, but the
  3070  // value will be replaced with "sensitive".
  3071  func (s BatchDeleteImportDataInput) String() string {
  3072  	return awsutil.Prettify(s)
  3073  }
  3074  
  3075  // GoString returns the string representation.
  3076  //
  3077  // API parameter values that are decorated as "sensitive" in the API will not
  3078  // be included in the string output. The member name will be present, but the
  3079  // value will be replaced with "sensitive".
  3080  func (s BatchDeleteImportDataInput) GoString() string {
  3081  	return s.String()
  3082  }
  3083  
  3084  // Validate inspects the fields of the type to determine if they are valid.
  3085  func (s *BatchDeleteImportDataInput) Validate() error {
  3086  	invalidParams := request.ErrInvalidParams{Context: "BatchDeleteImportDataInput"}
  3087  	if s.ImportTaskIds == nil {
  3088  		invalidParams.Add(request.NewErrParamRequired("ImportTaskIds"))
  3089  	}
  3090  	if s.ImportTaskIds != nil && len(s.ImportTaskIds) < 1 {
  3091  		invalidParams.Add(request.NewErrParamMinLen("ImportTaskIds", 1))
  3092  	}
  3093  
  3094  	if invalidParams.Len() > 0 {
  3095  		return invalidParams
  3096  	}
  3097  	return nil
  3098  }
  3099  
  3100  // SetImportTaskIds sets the ImportTaskIds field's value.
  3101  func (s *BatchDeleteImportDataInput) SetImportTaskIds(v []*string) *BatchDeleteImportDataInput {
  3102  	s.ImportTaskIds = v
  3103  	return s
  3104  }
  3105  
  3106  type BatchDeleteImportDataOutput struct {
  3107  	_ struct{} `type:"structure"`
  3108  
  3109  	// Error messages returned for each import task that you deleted as a response
  3110  	// for this command.
  3111  	Errors []*BatchDeleteImportDataError `locationName:"errors" type:"list"`
  3112  }
  3113  
  3114  // String returns the string representation.
  3115  //
  3116  // API parameter values that are decorated as "sensitive" in the API will not
  3117  // be included in the string output. The member name will be present, but the
  3118  // value will be replaced with "sensitive".
  3119  func (s BatchDeleteImportDataOutput) String() string {
  3120  	return awsutil.Prettify(s)
  3121  }
  3122  
  3123  // GoString returns the string representation.
  3124  //
  3125  // API parameter values that are decorated as "sensitive" in the API will not
  3126  // be included in the string output. The member name will be present, but the
  3127  // value will be replaced with "sensitive".
  3128  func (s BatchDeleteImportDataOutput) GoString() string {
  3129  	return s.String()
  3130  }
  3131  
  3132  // SetErrors sets the Errors field's value.
  3133  func (s *BatchDeleteImportDataOutput) SetErrors(v []*BatchDeleteImportDataError) *BatchDeleteImportDataOutput {
  3134  	s.Errors = v
  3135  	return s
  3136  }
  3137  
  3138  // Tags for a configuration item. Tags are metadata that help you categorize
  3139  // IT assets.
  3140  type ConfigurationTag struct {
  3141  	_ struct{} `type:"structure"`
  3142  
  3143  	// The configuration ID for the item to tag. You can specify a list of keys
  3144  	// and values.
  3145  	ConfigurationId *string `locationName:"configurationId" type:"string"`
  3146  
  3147  	// A type of IT asset to tag.
  3148  	ConfigurationType *string `locationName:"configurationType" type:"string" enum:"ConfigurationItemType"`
  3149  
  3150  	// A type of tag on which to filter. For example, serverType.
  3151  	Key *string `locationName:"key" type:"string"`
  3152  
  3153  	// The time the configuration tag was created in Coordinated Universal Time
  3154  	// (UTC).
  3155  	TimeOfCreation *time.Time `locationName:"timeOfCreation" type:"timestamp"`
  3156  
  3157  	// A value on which to filter. For example key = serverType and value = web
  3158  	// server.
  3159  	Value *string `locationName:"value" type:"string"`
  3160  }
  3161  
  3162  // String returns the string representation.
  3163  //
  3164  // API parameter values that are decorated as "sensitive" in the API will not
  3165  // be included in the string output. The member name will be present, but the
  3166  // value will be replaced with "sensitive".
  3167  func (s ConfigurationTag) String() string {
  3168  	return awsutil.Prettify(s)
  3169  }
  3170  
  3171  // GoString returns the string representation.
  3172  //
  3173  // API parameter values that are decorated as "sensitive" in the API will not
  3174  // be included in the string output. The member name will be present, but the
  3175  // value will be replaced with "sensitive".
  3176  func (s ConfigurationTag) GoString() string {
  3177  	return s.String()
  3178  }
  3179  
  3180  // SetConfigurationId sets the ConfigurationId field's value.
  3181  func (s *ConfigurationTag) SetConfigurationId(v string) *ConfigurationTag {
  3182  	s.ConfigurationId = &v
  3183  	return s
  3184  }
  3185  
  3186  // SetConfigurationType sets the ConfigurationType field's value.
  3187  func (s *ConfigurationTag) SetConfigurationType(v string) *ConfigurationTag {
  3188  	s.ConfigurationType = &v
  3189  	return s
  3190  }
  3191  
  3192  // SetKey sets the Key field's value.
  3193  func (s *ConfigurationTag) SetKey(v string) *ConfigurationTag {
  3194  	s.Key = &v
  3195  	return s
  3196  }
  3197  
  3198  // SetTimeOfCreation sets the TimeOfCreation field's value.
  3199  func (s *ConfigurationTag) SetTimeOfCreation(v time.Time) *ConfigurationTag {
  3200  	s.TimeOfCreation = &v
  3201  	return s
  3202  }
  3203  
  3204  // SetValue sets the Value field's value.
  3205  func (s *ConfigurationTag) SetValue(v string) *ConfigurationTag {
  3206  	s.Value = &v
  3207  	return s
  3208  }
  3209  
  3210  type ConflictErrorException struct {
  3211  	_            struct{}                  `type:"structure"`
  3212  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  3213  
  3214  	Message_ *string `locationName:"message" type:"string"`
  3215  }
  3216  
  3217  // String returns the string representation.
  3218  //
  3219  // API parameter values that are decorated as "sensitive" in the API will not
  3220  // be included in the string output. The member name will be present, but the
  3221  // value will be replaced with "sensitive".
  3222  func (s ConflictErrorException) String() string {
  3223  	return awsutil.Prettify(s)
  3224  }
  3225  
  3226  // GoString returns the string representation.
  3227  //
  3228  // API parameter values that are decorated as "sensitive" in the API will not
  3229  // be included in the string output. The member name will be present, but the
  3230  // value will be replaced with "sensitive".
  3231  func (s ConflictErrorException) GoString() string {
  3232  	return s.String()
  3233  }
  3234  
  3235  func newErrorConflictErrorException(v protocol.ResponseMetadata) error {
  3236  	return &ConflictErrorException{
  3237  		RespMetadata: v,
  3238  	}
  3239  }
  3240  
  3241  // Code returns the exception type name.
  3242  func (s *ConflictErrorException) Code() string {
  3243  	return "ConflictErrorException"
  3244  }
  3245  
  3246  // Message returns the exception's message.
  3247  func (s *ConflictErrorException) Message() string {
  3248  	if s.Message_ != nil {
  3249  		return *s.Message_
  3250  	}
  3251  	return ""
  3252  }
  3253  
  3254  // OrigErr always returns nil, satisfies awserr.Error interface.
  3255  func (s *ConflictErrorException) OrigErr() error {
  3256  	return nil
  3257  }
  3258  
  3259  func (s *ConflictErrorException) Error() string {
  3260  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  3261  }
  3262  
  3263  // Status code returns the HTTP status code for the request's response error.
  3264  func (s *ConflictErrorException) StatusCode() int {
  3265  	return s.RespMetadata.StatusCode
  3266  }
  3267  
  3268  // RequestID returns the service's response RequestID for request.
  3269  func (s *ConflictErrorException) RequestID() string {
  3270  	return s.RespMetadata.RequestID
  3271  }
  3272  
  3273  // A list of continuous export descriptions.
  3274  type ContinuousExportDescription struct {
  3275  	_ struct{} `type:"structure"`
  3276  
  3277  	// The type of data collector used to gather this data (currently only offered
  3278  	// for AGENT).
  3279  	DataSource *string `locationName:"dataSource" type:"string" enum:"DataSource"`
  3280  
  3281  	// The unique ID assigned to this export.
  3282  	ExportId *string `locationName:"exportId" type:"string"`
  3283  
  3284  	// The name of the s3 bucket where the export data parquet files are stored.
  3285  	S3Bucket *string `locationName:"s3Bucket" type:"string"`
  3286  
  3287  	// An object which describes how the data is stored.
  3288  	//
  3289  	//    * databaseName - the name of the Glue database used to store the schema.
  3290  	SchemaStorageConfig map[string]*string `locationName:"schemaStorageConfig" type:"map"`
  3291  
  3292  	// The timestamp representing when the continuous export was started.
  3293  	StartTime *time.Time `locationName:"startTime" type:"timestamp"`
  3294  
  3295  	// Describes the status of the export. Can be one of the following values:
  3296  	//
  3297  	//    * START_IN_PROGRESS - setting up resources to start continuous export.
  3298  	//
  3299  	//    * START_FAILED - an error occurred setting up continuous export. To recover,
  3300  	//    call start-continuous-export again.
  3301  	//
  3302  	//    * ACTIVE - data is being exported to the customer bucket.
  3303  	//
  3304  	//    * ERROR - an error occurred during export. To fix the issue, call stop-continuous-export
  3305  	//    and start-continuous-export.
  3306  	//
  3307  	//    * STOP_IN_PROGRESS - stopping the export.
  3308  	//
  3309  	//    * STOP_FAILED - an error occurred stopping the export. To recover, call
  3310  	//    stop-continuous-export again.
  3311  	//
  3312  	//    * INACTIVE - the continuous export has been stopped. Data is no longer
  3313  	//    being exported to the customer bucket.
  3314  	Status *string `locationName:"status" type:"string" enum:"ContinuousExportStatus"`
  3315  
  3316  	// Contains information about any errors that have occurred. This data type
  3317  	// can have the following values:
  3318  	//
  3319  	//    * ACCESS_DENIED - You don’t have permission to start Data Exploration
  3320  	//    in Amazon Athena. Contact your AWS administrator for help. For more information,
  3321  	//    see Setting Up AWS Application Discovery Service (http://docs.aws.amazon.com/application-discovery/latest/userguide/setting-up.html)
  3322  	//    in the Application Discovery Service User Guide.
  3323  	//
  3324  	//    * DELIVERY_STREAM_LIMIT_FAILURE - You reached the limit for Amazon Kinesis
  3325  	//    Data Firehose delivery streams. Reduce the number of streams or request
  3326  	//    a limit increase and try again. For more information, see Kinesis Data
  3327  	//    Streams Limits (http://docs.aws.amazon.com/streams/latest/dev/service-sizes-and-limits.html)
  3328  	//    in the Amazon Kinesis Data Streams Developer Guide.
  3329  	//
  3330  	//    * FIREHOSE_ROLE_MISSING - The Data Exploration feature is in an error
  3331  	//    state because your IAM User is missing the AWSApplicationDiscoveryServiceFirehose
  3332  	//    role. Turn on Data Exploration in Amazon Athena and try again. For more
  3333  	//    information, see Step 3: Provide Application Discovery Service Access
  3334  	//    to Non-Administrator Users by Attaching Policies (http://docs.aws.amazon.com/application-discovery/latest/userguide/setting-up.html#setting-up-user-policy)
  3335  	//    in the Application Discovery Service User Guide.
  3336  	//
  3337  	//    * FIREHOSE_STREAM_DOES_NOT_EXIST - The Data Exploration feature is in
  3338  	//    an error state because your IAM User is missing one or more of the Kinesis
  3339  	//    data delivery streams.
  3340  	//
  3341  	//    * INTERNAL_FAILURE - The Data Exploration feature is in an error state
  3342  	//    because of an internal failure. Try again later. If this problem persists,
  3343  	//    contact AWS Support.
  3344  	//
  3345  	//    * S3_BUCKET_LIMIT_FAILURE - You reached the limit for Amazon S3 buckets.
  3346  	//    Reduce the number of Amazon S3 buckets or request a limit increase and
  3347  	//    try again. For more information, see Bucket Restrictions and Limitations
  3348  	//    (http://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html)
  3349  	//    in the Amazon Simple Storage Service Developer Guide.
  3350  	//
  3351  	//    * S3_NOT_SIGNED_UP - Your account is not signed up for the Amazon S3 service.
  3352  	//    You must sign up before you can use Amazon S3. You can sign up at the
  3353  	//    following URL: https://aws.amazon.com/s3 (https://aws.amazon.com/s3).
  3354  	StatusDetail *string `locationName:"statusDetail" min:"1" type:"string"`
  3355  
  3356  	// The timestamp that represents when this continuous export was stopped.
  3357  	StopTime *time.Time `locationName:"stopTime" type:"timestamp"`
  3358  }
  3359  
  3360  // String returns the string representation.
  3361  //
  3362  // API parameter values that are decorated as "sensitive" in the API will not
  3363  // be included in the string output. The member name will be present, but the
  3364  // value will be replaced with "sensitive".
  3365  func (s ContinuousExportDescription) String() string {
  3366  	return awsutil.Prettify(s)
  3367  }
  3368  
  3369  // GoString returns the string representation.
  3370  //
  3371  // API parameter values that are decorated as "sensitive" in the API will not
  3372  // be included in the string output. The member name will be present, but the
  3373  // value will be replaced with "sensitive".
  3374  func (s ContinuousExportDescription) GoString() string {
  3375  	return s.String()
  3376  }
  3377  
  3378  // SetDataSource sets the DataSource field's value.
  3379  func (s *ContinuousExportDescription) SetDataSource(v string) *ContinuousExportDescription {
  3380  	s.DataSource = &v
  3381  	return s
  3382  }
  3383  
  3384  // SetExportId sets the ExportId field's value.
  3385  func (s *ContinuousExportDescription) SetExportId(v string) *ContinuousExportDescription {
  3386  	s.ExportId = &v
  3387  	return s
  3388  }
  3389  
  3390  // SetS3Bucket sets the S3Bucket field's value.
  3391  func (s *ContinuousExportDescription) SetS3Bucket(v string) *ContinuousExportDescription {
  3392  	s.S3Bucket = &v
  3393  	return s
  3394  }
  3395  
  3396  // SetSchemaStorageConfig sets the SchemaStorageConfig field's value.
  3397  func (s *ContinuousExportDescription) SetSchemaStorageConfig(v map[string]*string) *ContinuousExportDescription {
  3398  	s.SchemaStorageConfig = v
  3399  	return s
  3400  }
  3401  
  3402  // SetStartTime sets the StartTime field's value.
  3403  func (s *ContinuousExportDescription) SetStartTime(v time.Time) *ContinuousExportDescription {
  3404  	s.StartTime = &v
  3405  	return s
  3406  }
  3407  
  3408  // SetStatus sets the Status field's value.
  3409  func (s *ContinuousExportDescription) SetStatus(v string) *ContinuousExportDescription {
  3410  	s.Status = &v
  3411  	return s
  3412  }
  3413  
  3414  // SetStatusDetail sets the StatusDetail field's value.
  3415  func (s *ContinuousExportDescription) SetStatusDetail(v string) *ContinuousExportDescription {
  3416  	s.StatusDetail = &v
  3417  	return s
  3418  }
  3419  
  3420  // SetStopTime sets the StopTime field's value.
  3421  func (s *ContinuousExportDescription) SetStopTime(v time.Time) *ContinuousExportDescription {
  3422  	s.StopTime = &v
  3423  	return s
  3424  }
  3425  
  3426  type CreateApplicationInput struct {
  3427  	_ struct{} `type:"structure"`
  3428  
  3429  	// Description of the application to be created.
  3430  	Description *string `locationName:"description" type:"string"`
  3431  
  3432  	// Name of the application to be created.
  3433  	//
  3434  	// Name is a required field
  3435  	Name *string `locationName:"name" type:"string" required:"true"`
  3436  }
  3437  
  3438  // String returns the string representation.
  3439  //
  3440  // API parameter values that are decorated as "sensitive" in the API will not
  3441  // be included in the string output. The member name will be present, but the
  3442  // value will be replaced with "sensitive".
  3443  func (s CreateApplicationInput) String() string {
  3444  	return awsutil.Prettify(s)
  3445  }
  3446  
  3447  // GoString returns the string representation.
  3448  //
  3449  // API parameter values that are decorated as "sensitive" in the API will not
  3450  // be included in the string output. The member name will be present, but the
  3451  // value will be replaced with "sensitive".
  3452  func (s CreateApplicationInput) GoString() string {
  3453  	return s.String()
  3454  }
  3455  
  3456  // Validate inspects the fields of the type to determine if they are valid.
  3457  func (s *CreateApplicationInput) Validate() error {
  3458  	invalidParams := request.ErrInvalidParams{Context: "CreateApplicationInput"}
  3459  	if s.Name == nil {
  3460  		invalidParams.Add(request.NewErrParamRequired("Name"))
  3461  	}
  3462  
  3463  	if invalidParams.Len() > 0 {
  3464  		return invalidParams
  3465  	}
  3466  	return nil
  3467  }
  3468  
  3469  // SetDescription sets the Description field's value.
  3470  func (s *CreateApplicationInput) SetDescription(v string) *CreateApplicationInput {
  3471  	s.Description = &v
  3472  	return s
  3473  }
  3474  
  3475  // SetName sets the Name field's value.
  3476  func (s *CreateApplicationInput) SetName(v string) *CreateApplicationInput {
  3477  	s.Name = &v
  3478  	return s
  3479  }
  3480  
  3481  type CreateApplicationOutput struct {
  3482  	_ struct{} `type:"structure"`
  3483  
  3484  	// Configuration ID of an application to be created.
  3485  	ConfigurationId *string `locationName:"configurationId" type:"string"`
  3486  }
  3487  
  3488  // String returns the string representation.
  3489  //
  3490  // API parameter values that are decorated as "sensitive" in the API will not
  3491  // be included in the string output. The member name will be present, but the
  3492  // value will be replaced with "sensitive".
  3493  func (s CreateApplicationOutput) String() string {
  3494  	return awsutil.Prettify(s)
  3495  }
  3496  
  3497  // GoString returns the string representation.
  3498  //
  3499  // API parameter values that are decorated as "sensitive" in the API will not
  3500  // be included in the string output. The member name will be present, but the
  3501  // value will be replaced with "sensitive".
  3502  func (s CreateApplicationOutput) GoString() string {
  3503  	return s.String()
  3504  }
  3505  
  3506  // SetConfigurationId sets the ConfigurationId field's value.
  3507  func (s *CreateApplicationOutput) SetConfigurationId(v string) *CreateApplicationOutput {
  3508  	s.ConfigurationId = &v
  3509  	return s
  3510  }
  3511  
  3512  type CreateTagsInput struct {
  3513  	_ struct{} `type:"structure"`
  3514  
  3515  	// A list of configuration items that you want to tag.
  3516  	//
  3517  	// ConfigurationIds is a required field
  3518  	ConfigurationIds []*string `locationName:"configurationIds" type:"list" required:"true"`
  3519  
  3520  	// Tags that you want to associate with one or more configuration items. Specify
  3521  	// the tags that you want to create in a key-value format. For example:
  3522  	//
  3523  	// {"key": "serverType", "value": "webServer"}
  3524  	//
  3525  	// Tags is a required field
  3526  	Tags []*Tag `locationName:"tags" type:"list" required:"true"`
  3527  }
  3528  
  3529  // String returns the string representation.
  3530  //
  3531  // API parameter values that are decorated as "sensitive" in the API will not
  3532  // be included in the string output. The member name will be present, but the
  3533  // value will be replaced with "sensitive".
  3534  func (s CreateTagsInput) String() string {
  3535  	return awsutil.Prettify(s)
  3536  }
  3537  
  3538  // GoString returns the string representation.
  3539  //
  3540  // API parameter values that are decorated as "sensitive" in the API will not
  3541  // be included in the string output. The member name will be present, but the
  3542  // value will be replaced with "sensitive".
  3543  func (s CreateTagsInput) GoString() string {
  3544  	return s.String()
  3545  }
  3546  
  3547  // Validate inspects the fields of the type to determine if they are valid.
  3548  func (s *CreateTagsInput) Validate() error {
  3549  	invalidParams := request.ErrInvalidParams{Context: "CreateTagsInput"}
  3550  	if s.ConfigurationIds == nil {
  3551  		invalidParams.Add(request.NewErrParamRequired("ConfigurationIds"))
  3552  	}
  3553  	if s.Tags == nil {
  3554  		invalidParams.Add(request.NewErrParamRequired("Tags"))
  3555  	}
  3556  	if s.Tags != nil {
  3557  		for i, v := range s.Tags {
  3558  			if v == nil {
  3559  				continue
  3560  			}
  3561  			if err := v.Validate(); err != nil {
  3562  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  3563  			}
  3564  		}
  3565  	}
  3566  
  3567  	if invalidParams.Len() > 0 {
  3568  		return invalidParams
  3569  	}
  3570  	return nil
  3571  }
  3572  
  3573  // SetConfigurationIds sets the ConfigurationIds field's value.
  3574  func (s *CreateTagsInput) SetConfigurationIds(v []*string) *CreateTagsInput {
  3575  	s.ConfigurationIds = v
  3576  	return s
  3577  }
  3578  
  3579  // SetTags sets the Tags field's value.
  3580  func (s *CreateTagsInput) SetTags(v []*Tag) *CreateTagsInput {
  3581  	s.Tags = v
  3582  	return s
  3583  }
  3584  
  3585  type CreateTagsOutput struct {
  3586  	_ struct{} `type:"structure"`
  3587  }
  3588  
  3589  // String returns the string representation.
  3590  //
  3591  // API parameter values that are decorated as "sensitive" in the API will not
  3592  // be included in the string output. The member name will be present, but the
  3593  // value will be replaced with "sensitive".
  3594  func (s CreateTagsOutput) String() string {
  3595  	return awsutil.Prettify(s)
  3596  }
  3597  
  3598  // GoString returns the string representation.
  3599  //
  3600  // API parameter values that are decorated as "sensitive" in the API will not
  3601  // be included in the string output. The member name will be present, but the
  3602  // value will be replaced with "sensitive".
  3603  func (s CreateTagsOutput) GoString() string {
  3604  	return s.String()
  3605  }
  3606  
  3607  // Inventory data for installed discovery agents.
  3608  type CustomerAgentInfo struct {
  3609  	_ struct{} `type:"structure"`
  3610  
  3611  	// Number of active discovery agents.
  3612  	//
  3613  	// ActiveAgents is a required field
  3614  	ActiveAgents *int64 `locationName:"activeAgents" type:"integer" required:"true"`
  3615  
  3616  	// Number of blacklisted discovery agents.
  3617  	//
  3618  	// BlackListedAgents is a required field
  3619  	BlackListedAgents *int64 `locationName:"blackListedAgents" type:"integer" required:"true"`
  3620  
  3621  	// Number of healthy discovery agents
  3622  	//
  3623  	// HealthyAgents is a required field
  3624  	HealthyAgents *int64 `locationName:"healthyAgents" type:"integer" required:"true"`
  3625  
  3626  	// Number of discovery agents with status SHUTDOWN.
  3627  	//
  3628  	// ShutdownAgents is a required field
  3629  	ShutdownAgents *int64 `locationName:"shutdownAgents" type:"integer" required:"true"`
  3630  
  3631  	// Total number of discovery agents.
  3632  	//
  3633  	// TotalAgents is a required field
  3634  	TotalAgents *int64 `locationName:"totalAgents" type:"integer" required:"true"`
  3635  
  3636  	// Number of unhealthy discovery agents.
  3637  	//
  3638  	// UnhealthyAgents is a required field
  3639  	UnhealthyAgents *int64 `locationName:"unhealthyAgents" type:"integer" required:"true"`
  3640  
  3641  	// Number of unknown discovery agents.
  3642  	//
  3643  	// UnknownAgents is a required field
  3644  	UnknownAgents *int64 `locationName:"unknownAgents" type:"integer" required:"true"`
  3645  }
  3646  
  3647  // String returns the string representation.
  3648  //
  3649  // API parameter values that are decorated as "sensitive" in the API will not
  3650  // be included in the string output. The member name will be present, but the
  3651  // value will be replaced with "sensitive".
  3652  func (s CustomerAgentInfo) String() string {
  3653  	return awsutil.Prettify(s)
  3654  }
  3655  
  3656  // GoString returns the string representation.
  3657  //
  3658  // API parameter values that are decorated as "sensitive" in the API will not
  3659  // be included in the string output. The member name will be present, but the
  3660  // value will be replaced with "sensitive".
  3661  func (s CustomerAgentInfo) GoString() string {
  3662  	return s.String()
  3663  }
  3664  
  3665  // SetActiveAgents sets the ActiveAgents field's value.
  3666  func (s *CustomerAgentInfo) SetActiveAgents(v int64) *CustomerAgentInfo {
  3667  	s.ActiveAgents = &v
  3668  	return s
  3669  }
  3670  
  3671  // SetBlackListedAgents sets the BlackListedAgents field's value.
  3672  func (s *CustomerAgentInfo) SetBlackListedAgents(v int64) *CustomerAgentInfo {
  3673  	s.BlackListedAgents = &v
  3674  	return s
  3675  }
  3676  
  3677  // SetHealthyAgents sets the HealthyAgents field's value.
  3678  func (s *CustomerAgentInfo) SetHealthyAgents(v int64) *CustomerAgentInfo {
  3679  	s.HealthyAgents = &v
  3680  	return s
  3681  }
  3682  
  3683  // SetShutdownAgents sets the ShutdownAgents field's value.
  3684  func (s *CustomerAgentInfo) SetShutdownAgents(v int64) *CustomerAgentInfo {
  3685  	s.ShutdownAgents = &v
  3686  	return s
  3687  }
  3688  
  3689  // SetTotalAgents sets the TotalAgents field's value.
  3690  func (s *CustomerAgentInfo) SetTotalAgents(v int64) *CustomerAgentInfo {
  3691  	s.TotalAgents = &v
  3692  	return s
  3693  }
  3694  
  3695  // SetUnhealthyAgents sets the UnhealthyAgents field's value.
  3696  func (s *CustomerAgentInfo) SetUnhealthyAgents(v int64) *CustomerAgentInfo {
  3697  	s.UnhealthyAgents = &v
  3698  	return s
  3699  }
  3700  
  3701  // SetUnknownAgents sets the UnknownAgents field's value.
  3702  func (s *CustomerAgentInfo) SetUnknownAgents(v int64) *CustomerAgentInfo {
  3703  	s.UnknownAgents = &v
  3704  	return s
  3705  }
  3706  
  3707  // Inventory data for installed discovery connectors.
  3708  type CustomerConnectorInfo struct {
  3709  	_ struct{} `type:"structure"`
  3710  
  3711  	// Number of active discovery connectors.
  3712  	//
  3713  	// ActiveConnectors is a required field
  3714  	ActiveConnectors *int64 `locationName:"activeConnectors" type:"integer" required:"true"`
  3715  
  3716  	// Number of blacklisted discovery connectors.
  3717  	//
  3718  	// BlackListedConnectors is a required field
  3719  	BlackListedConnectors *int64 `locationName:"blackListedConnectors" type:"integer" required:"true"`
  3720  
  3721  	// Number of healthy discovery connectors.
  3722  	//
  3723  	// HealthyConnectors is a required field
  3724  	HealthyConnectors *int64 `locationName:"healthyConnectors" type:"integer" required:"true"`
  3725  
  3726  	// Number of discovery connectors with status SHUTDOWN,
  3727  	//
  3728  	// ShutdownConnectors is a required field
  3729  	ShutdownConnectors *int64 `locationName:"shutdownConnectors" type:"integer" required:"true"`
  3730  
  3731  	// Total number of discovery connectors.
  3732  	//
  3733  	// TotalConnectors is a required field
  3734  	TotalConnectors *int64 `locationName:"totalConnectors" type:"integer" required:"true"`
  3735  
  3736  	// Number of unhealthy discovery connectors.
  3737  	//
  3738  	// UnhealthyConnectors is a required field
  3739  	UnhealthyConnectors *int64 `locationName:"unhealthyConnectors" type:"integer" required:"true"`
  3740  
  3741  	// Number of unknown discovery connectors.
  3742  	//
  3743  	// UnknownConnectors is a required field
  3744  	UnknownConnectors *int64 `locationName:"unknownConnectors" type:"integer" required:"true"`
  3745  }
  3746  
  3747  // String returns the string representation.
  3748  //
  3749  // API parameter values that are decorated as "sensitive" in the API will not
  3750  // be included in the string output. The member name will be present, but the
  3751  // value will be replaced with "sensitive".
  3752  func (s CustomerConnectorInfo) String() string {
  3753  	return awsutil.Prettify(s)
  3754  }
  3755  
  3756  // GoString returns the string representation.
  3757  //
  3758  // API parameter values that are decorated as "sensitive" in the API will not
  3759  // be included in the string output. The member name will be present, but the
  3760  // value will be replaced with "sensitive".
  3761  func (s CustomerConnectorInfo) GoString() string {
  3762  	return s.String()
  3763  }
  3764  
  3765  // SetActiveConnectors sets the ActiveConnectors field's value.
  3766  func (s *CustomerConnectorInfo) SetActiveConnectors(v int64) *CustomerConnectorInfo {
  3767  	s.ActiveConnectors = &v
  3768  	return s
  3769  }
  3770  
  3771  // SetBlackListedConnectors sets the BlackListedConnectors field's value.
  3772  func (s *CustomerConnectorInfo) SetBlackListedConnectors(v int64) *CustomerConnectorInfo {
  3773  	s.BlackListedConnectors = &v
  3774  	return s
  3775  }
  3776  
  3777  // SetHealthyConnectors sets the HealthyConnectors field's value.
  3778  func (s *CustomerConnectorInfo) SetHealthyConnectors(v int64) *CustomerConnectorInfo {
  3779  	s.HealthyConnectors = &v
  3780  	return s
  3781  }
  3782  
  3783  // SetShutdownConnectors sets the ShutdownConnectors field's value.
  3784  func (s *CustomerConnectorInfo) SetShutdownConnectors(v int64) *CustomerConnectorInfo {
  3785  	s.ShutdownConnectors = &v
  3786  	return s
  3787  }
  3788  
  3789  // SetTotalConnectors sets the TotalConnectors field's value.
  3790  func (s *CustomerConnectorInfo) SetTotalConnectors(v int64) *CustomerConnectorInfo {
  3791  	s.TotalConnectors = &v
  3792  	return s
  3793  }
  3794  
  3795  // SetUnhealthyConnectors sets the UnhealthyConnectors field's value.
  3796  func (s *CustomerConnectorInfo) SetUnhealthyConnectors(v int64) *CustomerConnectorInfo {
  3797  	s.UnhealthyConnectors = &v
  3798  	return s
  3799  }
  3800  
  3801  // SetUnknownConnectors sets the UnknownConnectors field's value.
  3802  func (s *CustomerConnectorInfo) SetUnknownConnectors(v int64) *CustomerConnectorInfo {
  3803  	s.UnknownConnectors = &v
  3804  	return s
  3805  }
  3806  
  3807  type DeleteApplicationsInput struct {
  3808  	_ struct{} `type:"structure"`
  3809  
  3810  	// Configuration ID of an application to be deleted.
  3811  	//
  3812  	// ConfigurationIds is a required field
  3813  	ConfigurationIds []*string `locationName:"configurationIds" type:"list" required:"true"`
  3814  }
  3815  
  3816  // String returns the string representation.
  3817  //
  3818  // API parameter values that are decorated as "sensitive" in the API will not
  3819  // be included in the string output. The member name will be present, but the
  3820  // value will be replaced with "sensitive".
  3821  func (s DeleteApplicationsInput) String() string {
  3822  	return awsutil.Prettify(s)
  3823  }
  3824  
  3825  // GoString returns the string representation.
  3826  //
  3827  // API parameter values that are decorated as "sensitive" in the API will not
  3828  // be included in the string output. The member name will be present, but the
  3829  // value will be replaced with "sensitive".
  3830  func (s DeleteApplicationsInput) GoString() string {
  3831  	return s.String()
  3832  }
  3833  
  3834  // Validate inspects the fields of the type to determine if they are valid.
  3835  func (s *DeleteApplicationsInput) Validate() error {
  3836  	invalidParams := request.ErrInvalidParams{Context: "DeleteApplicationsInput"}
  3837  	if s.ConfigurationIds == nil {
  3838  		invalidParams.Add(request.NewErrParamRequired("ConfigurationIds"))
  3839  	}
  3840  
  3841  	if invalidParams.Len() > 0 {
  3842  		return invalidParams
  3843  	}
  3844  	return nil
  3845  }
  3846  
  3847  // SetConfigurationIds sets the ConfigurationIds field's value.
  3848  func (s *DeleteApplicationsInput) SetConfigurationIds(v []*string) *DeleteApplicationsInput {
  3849  	s.ConfigurationIds = v
  3850  	return s
  3851  }
  3852  
  3853  type DeleteApplicationsOutput struct {
  3854  	_ struct{} `type:"structure"`
  3855  }
  3856  
  3857  // String returns the string representation.
  3858  //
  3859  // API parameter values that are decorated as "sensitive" in the API will not
  3860  // be included in the string output. The member name will be present, but the
  3861  // value will be replaced with "sensitive".
  3862  func (s DeleteApplicationsOutput) String() string {
  3863  	return awsutil.Prettify(s)
  3864  }
  3865  
  3866  // GoString returns the string representation.
  3867  //
  3868  // API parameter values that are decorated as "sensitive" in the API will not
  3869  // be included in the string output. The member name will be present, but the
  3870  // value will be replaced with "sensitive".
  3871  func (s DeleteApplicationsOutput) GoString() string {
  3872  	return s.String()
  3873  }
  3874  
  3875  type DeleteTagsInput struct {
  3876  	_ struct{} `type:"structure"`
  3877  
  3878  	// A list of configuration items with tags that you want to delete.
  3879  	//
  3880  	// ConfigurationIds is a required field
  3881  	ConfigurationIds []*string `locationName:"configurationIds" type:"list" required:"true"`
  3882  
  3883  	// Tags that you want to delete from one or more configuration items. Specify
  3884  	// the tags that you want to delete in a key-value format. For example:
  3885  	//
  3886  	// {"key": "serverType", "value": "webServer"}
  3887  	Tags []*Tag `locationName:"tags" type:"list"`
  3888  }
  3889  
  3890  // String returns the string representation.
  3891  //
  3892  // API parameter values that are decorated as "sensitive" in the API will not
  3893  // be included in the string output. The member name will be present, but the
  3894  // value will be replaced with "sensitive".
  3895  func (s DeleteTagsInput) String() string {
  3896  	return awsutil.Prettify(s)
  3897  }
  3898  
  3899  // GoString returns the string representation.
  3900  //
  3901  // API parameter values that are decorated as "sensitive" in the API will not
  3902  // be included in the string output. The member name will be present, but the
  3903  // value will be replaced with "sensitive".
  3904  func (s DeleteTagsInput) GoString() string {
  3905  	return s.String()
  3906  }
  3907  
  3908  // Validate inspects the fields of the type to determine if they are valid.
  3909  func (s *DeleteTagsInput) Validate() error {
  3910  	invalidParams := request.ErrInvalidParams{Context: "DeleteTagsInput"}
  3911  	if s.ConfigurationIds == nil {
  3912  		invalidParams.Add(request.NewErrParamRequired("ConfigurationIds"))
  3913  	}
  3914  	if s.Tags != nil {
  3915  		for i, v := range s.Tags {
  3916  			if v == nil {
  3917  				continue
  3918  			}
  3919  			if err := v.Validate(); err != nil {
  3920  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  3921  			}
  3922  		}
  3923  	}
  3924  
  3925  	if invalidParams.Len() > 0 {
  3926  		return invalidParams
  3927  	}
  3928  	return nil
  3929  }
  3930  
  3931  // SetConfigurationIds sets the ConfigurationIds field's value.
  3932  func (s *DeleteTagsInput) SetConfigurationIds(v []*string) *DeleteTagsInput {
  3933  	s.ConfigurationIds = v
  3934  	return s
  3935  }
  3936  
  3937  // SetTags sets the Tags field's value.
  3938  func (s *DeleteTagsInput) SetTags(v []*Tag) *DeleteTagsInput {
  3939  	s.Tags = v
  3940  	return s
  3941  }
  3942  
  3943  type DeleteTagsOutput struct {
  3944  	_ struct{} `type:"structure"`
  3945  }
  3946  
  3947  // String returns the string representation.
  3948  //
  3949  // API parameter values that are decorated as "sensitive" in the API will not
  3950  // be included in the string output. The member name will be present, but the
  3951  // value will be replaced with "sensitive".
  3952  func (s DeleteTagsOutput) String() string {
  3953  	return awsutil.Prettify(s)
  3954  }
  3955  
  3956  // GoString returns the string representation.
  3957  //
  3958  // API parameter values that are decorated as "sensitive" in the API will not
  3959  // be included in the string output. The member name will be present, but the
  3960  // value will be replaced with "sensitive".
  3961  func (s DeleteTagsOutput) GoString() string {
  3962  	return s.String()
  3963  }
  3964  
  3965  type DescribeAgentsInput struct {
  3966  	_ struct{} `type:"structure"`
  3967  
  3968  	// The agent or the Connector IDs for which you want information. If you specify
  3969  	// no IDs, the system returns information about all agents/Connectors associated
  3970  	// with your AWS user account.
  3971  	AgentIds []*string `locationName:"agentIds" type:"list"`
  3972  
  3973  	// You can filter the request using various logical operators and a key-value
  3974  	// format. For example:
  3975  	//
  3976  	// {"key": "collectionStatus", "value": "STARTED"}
  3977  	Filters []*Filter `locationName:"filters" type:"list"`
  3978  
  3979  	// The total number of agents/Connectors to return in a single page of output.
  3980  	// The maximum value is 100.
  3981  	MaxResults *int64 `locationName:"maxResults" type:"integer"`
  3982  
  3983  	// Token to retrieve the next set of results. For example, if you previously
  3984  	// specified 100 IDs for DescribeAgentsRequest$agentIds but set DescribeAgentsRequest$maxResults
  3985  	// to 10, you received a set of 10 results along with a token. Use that token
  3986  	// in this query to get the next set of 10.
  3987  	NextToken *string `locationName:"nextToken" type:"string"`
  3988  }
  3989  
  3990  // String returns the string representation.
  3991  //
  3992  // API parameter values that are decorated as "sensitive" in the API will not
  3993  // be included in the string output. The member name will be present, but the
  3994  // value will be replaced with "sensitive".
  3995  func (s DescribeAgentsInput) String() string {
  3996  	return awsutil.Prettify(s)
  3997  }
  3998  
  3999  // GoString returns the string representation.
  4000  //
  4001  // API parameter values that are decorated as "sensitive" in the API will not
  4002  // be included in the string output. The member name will be present, but the
  4003  // value will be replaced with "sensitive".
  4004  func (s DescribeAgentsInput) GoString() string {
  4005  	return s.String()
  4006  }
  4007  
  4008  // Validate inspects the fields of the type to determine if they are valid.
  4009  func (s *DescribeAgentsInput) Validate() error {
  4010  	invalidParams := request.ErrInvalidParams{Context: "DescribeAgentsInput"}
  4011  	if s.Filters != nil {
  4012  		for i, v := range s.Filters {
  4013  			if v == nil {
  4014  				continue
  4015  			}
  4016  			if err := v.Validate(); err != nil {
  4017  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  4018  			}
  4019  		}
  4020  	}
  4021  
  4022  	if invalidParams.Len() > 0 {
  4023  		return invalidParams
  4024  	}
  4025  	return nil
  4026  }
  4027  
  4028  // SetAgentIds sets the AgentIds field's value.
  4029  func (s *DescribeAgentsInput) SetAgentIds(v []*string) *DescribeAgentsInput {
  4030  	s.AgentIds = v
  4031  	return s
  4032  }
  4033  
  4034  // SetFilters sets the Filters field's value.
  4035  func (s *DescribeAgentsInput) SetFilters(v []*Filter) *DescribeAgentsInput {
  4036  	s.Filters = v
  4037  	return s
  4038  }
  4039  
  4040  // SetMaxResults sets the MaxResults field's value.
  4041  func (s *DescribeAgentsInput) SetMaxResults(v int64) *DescribeAgentsInput {
  4042  	s.MaxResults = &v
  4043  	return s
  4044  }
  4045  
  4046  // SetNextToken sets the NextToken field's value.
  4047  func (s *DescribeAgentsInput) SetNextToken(v string) *DescribeAgentsInput {
  4048  	s.NextToken = &v
  4049  	return s
  4050  }
  4051  
  4052  type DescribeAgentsOutput struct {
  4053  	_ struct{} `type:"structure"`
  4054  
  4055  	// Lists agents or the Connector by ID or lists all agents/Connectors associated
  4056  	// with your user account if you did not specify an agent/Connector ID. The
  4057  	// output includes agent/Connector IDs, IP addresses, media access control (MAC)
  4058  	// addresses, agent/Connector health, host name where the agent/Connector resides,
  4059  	// and the version number of each agent/Connector.
  4060  	AgentsInfo []*AgentInfo `locationName:"agentsInfo" type:"list"`
  4061  
  4062  	// Token to retrieve the next set of results. For example, if you specified
  4063  	// 100 IDs for DescribeAgentsRequest$agentIds but set DescribeAgentsRequest$maxResults
  4064  	// to 10, you received a set of 10 results along with this token. Use this token
  4065  	// in the next query to retrieve the next set of 10.
  4066  	NextToken *string `locationName:"nextToken" type:"string"`
  4067  }
  4068  
  4069  // String returns the string representation.
  4070  //
  4071  // API parameter values that are decorated as "sensitive" in the API will not
  4072  // be included in the string output. The member name will be present, but the
  4073  // value will be replaced with "sensitive".
  4074  func (s DescribeAgentsOutput) String() string {
  4075  	return awsutil.Prettify(s)
  4076  }
  4077  
  4078  // GoString returns the string representation.
  4079  //
  4080  // API parameter values that are decorated as "sensitive" in the API will not
  4081  // be included in the string output. The member name will be present, but the
  4082  // value will be replaced with "sensitive".
  4083  func (s DescribeAgentsOutput) GoString() string {
  4084  	return s.String()
  4085  }
  4086  
  4087  // SetAgentsInfo sets the AgentsInfo field's value.
  4088  func (s *DescribeAgentsOutput) SetAgentsInfo(v []*AgentInfo) *DescribeAgentsOutput {
  4089  	s.AgentsInfo = v
  4090  	return s
  4091  }
  4092  
  4093  // SetNextToken sets the NextToken field's value.
  4094  func (s *DescribeAgentsOutput) SetNextToken(v string) *DescribeAgentsOutput {
  4095  	s.NextToken = &v
  4096  	return s
  4097  }
  4098  
  4099  type DescribeConfigurationsInput struct {
  4100  	_ struct{} `type:"structure"`
  4101  
  4102  	// One or more configuration IDs.
  4103  	//
  4104  	// ConfigurationIds is a required field
  4105  	ConfigurationIds []*string `locationName:"configurationIds" type:"list" required:"true"`
  4106  }
  4107  
  4108  // String returns the string representation.
  4109  //
  4110  // API parameter values that are decorated as "sensitive" in the API will not
  4111  // be included in the string output. The member name will be present, but the
  4112  // value will be replaced with "sensitive".
  4113  func (s DescribeConfigurationsInput) String() string {
  4114  	return awsutil.Prettify(s)
  4115  }
  4116  
  4117  // GoString returns the string representation.
  4118  //
  4119  // API parameter values that are decorated as "sensitive" in the API will not
  4120  // be included in the string output. The member name will be present, but the
  4121  // value will be replaced with "sensitive".
  4122  func (s DescribeConfigurationsInput) GoString() string {
  4123  	return s.String()
  4124  }
  4125  
  4126  // Validate inspects the fields of the type to determine if they are valid.
  4127  func (s *DescribeConfigurationsInput) Validate() error {
  4128  	invalidParams := request.ErrInvalidParams{Context: "DescribeConfigurationsInput"}
  4129  	if s.ConfigurationIds == nil {
  4130  		invalidParams.Add(request.NewErrParamRequired("ConfigurationIds"))
  4131  	}
  4132  
  4133  	if invalidParams.Len() > 0 {
  4134  		return invalidParams
  4135  	}
  4136  	return nil
  4137  }
  4138  
  4139  // SetConfigurationIds sets the ConfigurationIds field's value.
  4140  func (s *DescribeConfigurationsInput) SetConfigurationIds(v []*string) *DescribeConfigurationsInput {
  4141  	s.ConfigurationIds = v
  4142  	return s
  4143  }
  4144  
  4145  type DescribeConfigurationsOutput struct {
  4146  	_ struct{} `type:"structure"`
  4147  
  4148  	// A key in the response map. The value is an array of data.
  4149  	Configurations []map[string]*string `locationName:"configurations" type:"list"`
  4150  }
  4151  
  4152  // String returns the string representation.
  4153  //
  4154  // API parameter values that are decorated as "sensitive" in the API will not
  4155  // be included in the string output. The member name will be present, but the
  4156  // value will be replaced with "sensitive".
  4157  func (s DescribeConfigurationsOutput) String() string {
  4158  	return awsutil.Prettify(s)
  4159  }
  4160  
  4161  // GoString returns the string representation.
  4162  //
  4163  // API parameter values that are decorated as "sensitive" in the API will not
  4164  // be included in the string output. The member name will be present, but the
  4165  // value will be replaced with "sensitive".
  4166  func (s DescribeConfigurationsOutput) GoString() string {
  4167  	return s.String()
  4168  }
  4169  
  4170  // SetConfigurations sets the Configurations field's value.
  4171  func (s *DescribeConfigurationsOutput) SetConfigurations(v []map[string]*string) *DescribeConfigurationsOutput {
  4172  	s.Configurations = v
  4173  	return s
  4174  }
  4175  
  4176  type DescribeContinuousExportsInput struct {
  4177  	_ struct{} `type:"structure"`
  4178  
  4179  	// The unique IDs assigned to the exports.
  4180  	ExportIds []*string `locationName:"exportIds" type:"list"`
  4181  
  4182  	// A number between 1 and 100 specifying the maximum number of continuous export
  4183  	// descriptions returned.
  4184  	MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
  4185  
  4186  	// The token from the previous call to DescribeExportTasks.
  4187  	NextToken *string `locationName:"nextToken" type:"string"`
  4188  }
  4189  
  4190  // String returns the string representation.
  4191  //
  4192  // API parameter values that are decorated as "sensitive" in the API will not
  4193  // be included in the string output. The member name will be present, but the
  4194  // value will be replaced with "sensitive".
  4195  func (s DescribeContinuousExportsInput) String() string {
  4196  	return awsutil.Prettify(s)
  4197  }
  4198  
  4199  // GoString returns the string representation.
  4200  //
  4201  // API parameter values that are decorated as "sensitive" in the API will not
  4202  // be included in the string output. The member name will be present, but the
  4203  // value will be replaced with "sensitive".
  4204  func (s DescribeContinuousExportsInput) GoString() string {
  4205  	return s.String()
  4206  }
  4207  
  4208  // Validate inspects the fields of the type to determine if they are valid.
  4209  func (s *DescribeContinuousExportsInput) Validate() error {
  4210  	invalidParams := request.ErrInvalidParams{Context: "DescribeContinuousExportsInput"}
  4211  	if s.MaxResults != nil && *s.MaxResults < 1 {
  4212  		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  4213  	}
  4214  
  4215  	if invalidParams.Len() > 0 {
  4216  		return invalidParams
  4217  	}
  4218  	return nil
  4219  }
  4220  
  4221  // SetExportIds sets the ExportIds field's value.
  4222  func (s *DescribeContinuousExportsInput) SetExportIds(v []*string) *DescribeContinuousExportsInput {
  4223  	s.ExportIds = v
  4224  	return s
  4225  }
  4226  
  4227  // SetMaxResults sets the MaxResults field's value.
  4228  func (s *DescribeContinuousExportsInput) SetMaxResults(v int64) *DescribeContinuousExportsInput {
  4229  	s.MaxResults = &v
  4230  	return s
  4231  }
  4232  
  4233  // SetNextToken sets the NextToken field's value.
  4234  func (s *DescribeContinuousExportsInput) SetNextToken(v string) *DescribeContinuousExportsInput {
  4235  	s.NextToken = &v
  4236  	return s
  4237  }
  4238  
  4239  type DescribeContinuousExportsOutput struct {
  4240  	_ struct{} `type:"structure"`
  4241  
  4242  	// A list of continuous export descriptions.
  4243  	Descriptions []*ContinuousExportDescription `locationName:"descriptions" type:"list"`
  4244  
  4245  	// The token from the previous call to DescribeExportTasks.
  4246  	NextToken *string `locationName:"nextToken" type:"string"`
  4247  }
  4248  
  4249  // String returns the string representation.
  4250  //
  4251  // API parameter values that are decorated as "sensitive" in the API will not
  4252  // be included in the string output. The member name will be present, but the
  4253  // value will be replaced with "sensitive".
  4254  func (s DescribeContinuousExportsOutput) String() string {
  4255  	return awsutil.Prettify(s)
  4256  }
  4257  
  4258  // GoString returns the string representation.
  4259  //
  4260  // API parameter values that are decorated as "sensitive" in the API will not
  4261  // be included in the string output. The member name will be present, but the
  4262  // value will be replaced with "sensitive".
  4263  func (s DescribeContinuousExportsOutput) GoString() string {
  4264  	return s.String()
  4265  }
  4266  
  4267  // SetDescriptions sets the Descriptions field's value.
  4268  func (s *DescribeContinuousExportsOutput) SetDescriptions(v []*ContinuousExportDescription) *DescribeContinuousExportsOutput {
  4269  	s.Descriptions = v
  4270  	return s
  4271  }
  4272  
  4273  // SetNextToken sets the NextToken field's value.
  4274  func (s *DescribeContinuousExportsOutput) SetNextToken(v string) *DescribeContinuousExportsOutput {
  4275  	s.NextToken = &v
  4276  	return s
  4277  }
  4278  
  4279  type DescribeExportConfigurationsInput struct {
  4280  	_ struct{} `type:"structure"`
  4281  
  4282  	// A list of continuous export IDs to search for.
  4283  	ExportIds []*string `locationName:"exportIds" type:"list"`
  4284  
  4285  	// A number between 1 and 100 specifying the maximum number of continuous export
  4286  	// descriptions returned.
  4287  	MaxResults *int64 `locationName:"maxResults" type:"integer"`
  4288  
  4289  	// The token from the previous call to describe-export-tasks.
  4290  	NextToken *string `locationName:"nextToken" type:"string"`
  4291  }
  4292  
  4293  // String returns the string representation.
  4294  //
  4295  // API parameter values that are decorated as "sensitive" in the API will not
  4296  // be included in the string output. The member name will be present, but the
  4297  // value will be replaced with "sensitive".
  4298  func (s DescribeExportConfigurationsInput) String() string {
  4299  	return awsutil.Prettify(s)
  4300  }
  4301  
  4302  // GoString returns the string representation.
  4303  //
  4304  // API parameter values that are decorated as "sensitive" in the API will not
  4305  // be included in the string output. The member name will be present, but the
  4306  // value will be replaced with "sensitive".
  4307  func (s DescribeExportConfigurationsInput) GoString() string {
  4308  	return s.String()
  4309  }
  4310  
  4311  // SetExportIds sets the ExportIds field's value.
  4312  func (s *DescribeExportConfigurationsInput) SetExportIds(v []*string) *DescribeExportConfigurationsInput {
  4313  	s.ExportIds = v
  4314  	return s
  4315  }
  4316  
  4317  // SetMaxResults sets the MaxResults field's value.
  4318  func (s *DescribeExportConfigurationsInput) SetMaxResults(v int64) *DescribeExportConfigurationsInput {
  4319  	s.MaxResults = &v
  4320  	return s
  4321  }
  4322  
  4323  // SetNextToken sets the NextToken field's value.
  4324  func (s *DescribeExportConfigurationsInput) SetNextToken(v string) *DescribeExportConfigurationsInput {
  4325  	s.NextToken = &v
  4326  	return s
  4327  }
  4328  
  4329  type DescribeExportConfigurationsOutput struct {
  4330  	_ struct{} `type:"structure"`
  4331  
  4332  	ExportsInfo []*ExportInfo `locationName:"exportsInfo" type:"list"`
  4333  
  4334  	// The token from the previous call to describe-export-tasks.
  4335  	NextToken *string `locationName:"nextToken" type:"string"`
  4336  }
  4337  
  4338  // String returns the string representation.
  4339  //
  4340  // API parameter values that are decorated as "sensitive" in the API will not
  4341  // be included in the string output. The member name will be present, but the
  4342  // value will be replaced with "sensitive".
  4343  func (s DescribeExportConfigurationsOutput) String() string {
  4344  	return awsutil.Prettify(s)
  4345  }
  4346  
  4347  // GoString returns the string representation.
  4348  //
  4349  // API parameter values that are decorated as "sensitive" in the API will not
  4350  // be included in the string output. The member name will be present, but the
  4351  // value will be replaced with "sensitive".
  4352  func (s DescribeExportConfigurationsOutput) GoString() string {
  4353  	return s.String()
  4354  }
  4355  
  4356  // SetExportsInfo sets the ExportsInfo field's value.
  4357  func (s *DescribeExportConfigurationsOutput) SetExportsInfo(v []*ExportInfo) *DescribeExportConfigurationsOutput {
  4358  	s.ExportsInfo = v
  4359  	return s
  4360  }
  4361  
  4362  // SetNextToken sets the NextToken field's value.
  4363  func (s *DescribeExportConfigurationsOutput) SetNextToken(v string) *DescribeExportConfigurationsOutput {
  4364  	s.NextToken = &v
  4365  	return s
  4366  }
  4367  
  4368  type DescribeExportTasksInput struct {
  4369  	_ struct{} `type:"structure"`
  4370  
  4371  	// One or more unique identifiers used to query the status of an export request.
  4372  	ExportIds []*string `locationName:"exportIds" type:"list"`
  4373  
  4374  	// One or more filters.
  4375  	//
  4376  	//    * AgentId - ID of the agent whose collected data will be exported
  4377  	Filters []*ExportFilter `locationName:"filters" type:"list"`
  4378  
  4379  	// The maximum number of volume results returned by DescribeExportTasks in paginated
  4380  	// output. When this parameter is used, DescribeExportTasks only returns maxResults
  4381  	// results in a single page along with a nextToken response element.
  4382  	MaxResults *int64 `locationName:"maxResults" type:"integer"`
  4383  
  4384  	// The nextToken value returned from a previous paginated DescribeExportTasks
  4385  	// request where maxResults was used and the results exceeded the value of that
  4386  	// parameter. Pagination continues from the end of the previous results that
  4387  	// returned the nextToken value. This value is null when there are no more results
  4388  	// to return.
  4389  	NextToken *string `locationName:"nextToken" type:"string"`
  4390  }
  4391  
  4392  // String returns the string representation.
  4393  //
  4394  // API parameter values that are decorated as "sensitive" in the API will not
  4395  // be included in the string output. The member name will be present, but the
  4396  // value will be replaced with "sensitive".
  4397  func (s DescribeExportTasksInput) String() string {
  4398  	return awsutil.Prettify(s)
  4399  }
  4400  
  4401  // GoString returns the string representation.
  4402  //
  4403  // API parameter values that are decorated as "sensitive" in the API will not
  4404  // be included in the string output. The member name will be present, but the
  4405  // value will be replaced with "sensitive".
  4406  func (s DescribeExportTasksInput) GoString() string {
  4407  	return s.String()
  4408  }
  4409  
  4410  // Validate inspects the fields of the type to determine if they are valid.
  4411  func (s *DescribeExportTasksInput) Validate() error {
  4412  	invalidParams := request.ErrInvalidParams{Context: "DescribeExportTasksInput"}
  4413  	if s.Filters != nil {
  4414  		for i, v := range s.Filters {
  4415  			if v == nil {
  4416  				continue
  4417  			}
  4418  			if err := v.Validate(); err != nil {
  4419  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  4420  			}
  4421  		}
  4422  	}
  4423  
  4424  	if invalidParams.Len() > 0 {
  4425  		return invalidParams
  4426  	}
  4427  	return nil
  4428  }
  4429  
  4430  // SetExportIds sets the ExportIds field's value.
  4431  func (s *DescribeExportTasksInput) SetExportIds(v []*string) *DescribeExportTasksInput {
  4432  	s.ExportIds = v
  4433  	return s
  4434  }
  4435  
  4436  // SetFilters sets the Filters field's value.
  4437  func (s *DescribeExportTasksInput) SetFilters(v []*ExportFilter) *DescribeExportTasksInput {
  4438  	s.Filters = v
  4439  	return s
  4440  }
  4441  
  4442  // SetMaxResults sets the MaxResults field's value.
  4443  func (s *DescribeExportTasksInput) SetMaxResults(v int64) *DescribeExportTasksInput {
  4444  	s.MaxResults = &v
  4445  	return s
  4446  }
  4447  
  4448  // SetNextToken sets the NextToken field's value.
  4449  func (s *DescribeExportTasksInput) SetNextToken(v string) *DescribeExportTasksInput {
  4450  	s.NextToken = &v
  4451  	return s
  4452  }
  4453  
  4454  type DescribeExportTasksOutput struct {
  4455  	_ struct{} `type:"structure"`
  4456  
  4457  	// Contains one or more sets of export request details. When the status of a
  4458  	// request is SUCCEEDED, the response includes a URL for an Amazon S3 bucket
  4459  	// where you can view the data in a CSV file.
  4460  	ExportsInfo []*ExportInfo `locationName:"exportsInfo" type:"list"`
  4461  
  4462  	// The nextToken value to include in a future DescribeExportTasks request. When
  4463  	// the results of a DescribeExportTasks request exceed maxResults, this value
  4464  	// can be used to retrieve the next page of results. This value is null when
  4465  	// there are no more results to return.
  4466  	NextToken *string `locationName:"nextToken" type:"string"`
  4467  }
  4468  
  4469  // String returns the string representation.
  4470  //
  4471  // API parameter values that are decorated as "sensitive" in the API will not
  4472  // be included in the string output. The member name will be present, but the
  4473  // value will be replaced with "sensitive".
  4474  func (s DescribeExportTasksOutput) String() string {
  4475  	return awsutil.Prettify(s)
  4476  }
  4477  
  4478  // GoString returns the string representation.
  4479  //
  4480  // API parameter values that are decorated as "sensitive" in the API will not
  4481  // be included in the string output. The member name will be present, but the
  4482  // value will be replaced with "sensitive".
  4483  func (s DescribeExportTasksOutput) GoString() string {
  4484  	return s.String()
  4485  }
  4486  
  4487  // SetExportsInfo sets the ExportsInfo field's value.
  4488  func (s *DescribeExportTasksOutput) SetExportsInfo(v []*ExportInfo) *DescribeExportTasksOutput {
  4489  	s.ExportsInfo = v
  4490  	return s
  4491  }
  4492  
  4493  // SetNextToken sets the NextToken field's value.
  4494  func (s *DescribeExportTasksOutput) SetNextToken(v string) *DescribeExportTasksOutput {
  4495  	s.NextToken = &v
  4496  	return s
  4497  }
  4498  
  4499  type DescribeImportTasksInput struct {
  4500  	_ struct{} `type:"structure"`
  4501  
  4502  	// An array of name-value pairs that you provide to filter the results for the
  4503  	// DescribeImportTask request to a specific subset of results. Currently, wildcard
  4504  	// values aren't supported for filters.
  4505  	Filters []*ImportTaskFilter `locationName:"filters" type:"list"`
  4506  
  4507  	// The maximum number of results that you want this request to return, up to
  4508  	// 100.
  4509  	MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
  4510  
  4511  	// The token to request a specific page of results.
  4512  	NextToken *string `locationName:"nextToken" type:"string"`
  4513  }
  4514  
  4515  // String returns the string representation.
  4516  //
  4517  // API parameter values that are decorated as "sensitive" in the API will not
  4518  // be included in the string output. The member name will be present, but the
  4519  // value will be replaced with "sensitive".
  4520  func (s DescribeImportTasksInput) String() string {
  4521  	return awsutil.Prettify(s)
  4522  }
  4523  
  4524  // GoString returns the string representation.
  4525  //
  4526  // API parameter values that are decorated as "sensitive" in the API will not
  4527  // be included in the string output. The member name will be present, but the
  4528  // value will be replaced with "sensitive".
  4529  func (s DescribeImportTasksInput) GoString() string {
  4530  	return s.String()
  4531  }
  4532  
  4533  // Validate inspects the fields of the type to determine if they are valid.
  4534  func (s *DescribeImportTasksInput) Validate() error {
  4535  	invalidParams := request.ErrInvalidParams{Context: "DescribeImportTasksInput"}
  4536  	if s.MaxResults != nil && *s.MaxResults < 1 {
  4537  		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  4538  	}
  4539  	if s.Filters != nil {
  4540  		for i, v := range s.Filters {
  4541  			if v == nil {
  4542  				continue
  4543  			}
  4544  			if err := v.Validate(); err != nil {
  4545  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  4546  			}
  4547  		}
  4548  	}
  4549  
  4550  	if invalidParams.Len() > 0 {
  4551  		return invalidParams
  4552  	}
  4553  	return nil
  4554  }
  4555  
  4556  // SetFilters sets the Filters field's value.
  4557  func (s *DescribeImportTasksInput) SetFilters(v []*ImportTaskFilter) *DescribeImportTasksInput {
  4558  	s.Filters = v
  4559  	return s
  4560  }
  4561  
  4562  // SetMaxResults sets the MaxResults field's value.
  4563  func (s *DescribeImportTasksInput) SetMaxResults(v int64) *DescribeImportTasksInput {
  4564  	s.MaxResults = &v
  4565  	return s
  4566  }
  4567  
  4568  // SetNextToken sets the NextToken field's value.
  4569  func (s *DescribeImportTasksInput) SetNextToken(v string) *DescribeImportTasksInput {
  4570  	s.NextToken = &v
  4571  	return s
  4572  }
  4573  
  4574  type DescribeImportTasksOutput struct {
  4575  	_ struct{} `type:"structure"`
  4576  
  4577  	// The token to request the next page of results.
  4578  	NextToken *string `locationName:"nextToken" type:"string"`
  4579  
  4580  	// A returned array of import tasks that match any applied filters, up to the
  4581  	// specified number of maximum results.
  4582  	Tasks []*ImportTask `locationName:"tasks" type:"list"`
  4583  }
  4584  
  4585  // String returns the string representation.
  4586  //
  4587  // API parameter values that are decorated as "sensitive" in the API will not
  4588  // be included in the string output. The member name will be present, but the
  4589  // value will be replaced with "sensitive".
  4590  func (s DescribeImportTasksOutput) String() string {
  4591  	return awsutil.Prettify(s)
  4592  }
  4593  
  4594  // GoString returns the string representation.
  4595  //
  4596  // API parameter values that are decorated as "sensitive" in the API will not
  4597  // be included in the string output. The member name will be present, but the
  4598  // value will be replaced with "sensitive".
  4599  func (s DescribeImportTasksOutput) GoString() string {
  4600  	return s.String()
  4601  }
  4602  
  4603  // SetNextToken sets the NextToken field's value.
  4604  func (s *DescribeImportTasksOutput) SetNextToken(v string) *DescribeImportTasksOutput {
  4605  	s.NextToken = &v
  4606  	return s
  4607  }
  4608  
  4609  // SetTasks sets the Tasks field's value.
  4610  func (s *DescribeImportTasksOutput) SetTasks(v []*ImportTask) *DescribeImportTasksOutput {
  4611  	s.Tasks = v
  4612  	return s
  4613  }
  4614  
  4615  type DescribeTagsInput struct {
  4616  	_ struct{} `type:"structure"`
  4617  
  4618  	// You can filter the list using a key-value format. You can separate these
  4619  	// items by using logical operators. Allowed filters include tagKey, tagValue,
  4620  	// and configurationId.
  4621  	Filters []*TagFilter `locationName:"filters" type:"list"`
  4622  
  4623  	// The total number of items to return in a single page of output. The maximum
  4624  	// value is 100.
  4625  	MaxResults *int64 `locationName:"maxResults" type:"integer"`
  4626  
  4627  	// A token to start the list. Use this token to get the next set of results.
  4628  	NextToken *string `locationName:"nextToken" type:"string"`
  4629  }
  4630  
  4631  // String returns the string representation.
  4632  //
  4633  // API parameter values that are decorated as "sensitive" in the API will not
  4634  // be included in the string output. The member name will be present, but the
  4635  // value will be replaced with "sensitive".
  4636  func (s DescribeTagsInput) String() string {
  4637  	return awsutil.Prettify(s)
  4638  }
  4639  
  4640  // GoString returns the string representation.
  4641  //
  4642  // API parameter values that are decorated as "sensitive" in the API will not
  4643  // be included in the string output. The member name will be present, but the
  4644  // value will be replaced with "sensitive".
  4645  func (s DescribeTagsInput) GoString() string {
  4646  	return s.String()
  4647  }
  4648  
  4649  // Validate inspects the fields of the type to determine if they are valid.
  4650  func (s *DescribeTagsInput) Validate() error {
  4651  	invalidParams := request.ErrInvalidParams{Context: "DescribeTagsInput"}
  4652  	if s.Filters != nil {
  4653  		for i, v := range s.Filters {
  4654  			if v == nil {
  4655  				continue
  4656  			}
  4657  			if err := v.Validate(); err != nil {
  4658  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  4659  			}
  4660  		}
  4661  	}
  4662  
  4663  	if invalidParams.Len() > 0 {
  4664  		return invalidParams
  4665  	}
  4666  	return nil
  4667  }
  4668  
  4669  // SetFilters sets the Filters field's value.
  4670  func (s *DescribeTagsInput) SetFilters(v []*TagFilter) *DescribeTagsInput {
  4671  	s.Filters = v
  4672  	return s
  4673  }
  4674  
  4675  // SetMaxResults sets the MaxResults field's value.
  4676  func (s *DescribeTagsInput) SetMaxResults(v int64) *DescribeTagsInput {
  4677  	s.MaxResults = &v
  4678  	return s
  4679  }
  4680  
  4681  // SetNextToken sets the NextToken field's value.
  4682  func (s *DescribeTagsInput) SetNextToken(v string) *DescribeTagsInput {
  4683  	s.NextToken = &v
  4684  	return s
  4685  }
  4686  
  4687  type DescribeTagsOutput struct {
  4688  	_ struct{} `type:"structure"`
  4689  
  4690  	// The call returns a token. Use this token to get the next set of results.
  4691  	NextToken *string `locationName:"nextToken" type:"string"`
  4692  
  4693  	// Depending on the input, this is a list of configuration items tagged with
  4694  	// a specific tag, or a list of tags for a specific configuration item.
  4695  	Tags []*ConfigurationTag `locationName:"tags" type:"list"`
  4696  }
  4697  
  4698  // String returns the string representation.
  4699  //
  4700  // API parameter values that are decorated as "sensitive" in the API will not
  4701  // be included in the string output. The member name will be present, but the
  4702  // value will be replaced with "sensitive".
  4703  func (s DescribeTagsOutput) String() string {
  4704  	return awsutil.Prettify(s)
  4705  }
  4706  
  4707  // GoString returns the string representation.
  4708  //
  4709  // API parameter values that are decorated as "sensitive" in the API will not
  4710  // be included in the string output. The member name will be present, but the
  4711  // value will be replaced with "sensitive".
  4712  func (s DescribeTagsOutput) GoString() string {
  4713  	return s.String()
  4714  }
  4715  
  4716  // SetNextToken sets the NextToken field's value.
  4717  func (s *DescribeTagsOutput) SetNextToken(v string) *DescribeTagsOutput {
  4718  	s.NextToken = &v
  4719  	return s
  4720  }
  4721  
  4722  // SetTags sets the Tags field's value.
  4723  func (s *DescribeTagsOutput) SetTags(v []*ConfigurationTag) *DescribeTagsOutput {
  4724  	s.Tags = v
  4725  	return s
  4726  }
  4727  
  4728  type DisassociateConfigurationItemsFromApplicationInput struct {
  4729  	_ struct{} `type:"structure"`
  4730  
  4731  	// Configuration ID of an application from which each item is disassociated.
  4732  	//
  4733  	// ApplicationConfigurationId is a required field
  4734  	ApplicationConfigurationId *string `locationName:"applicationConfigurationId" type:"string" required:"true"`
  4735  
  4736  	// Configuration ID of each item to be disassociated from an application.
  4737  	//
  4738  	// ConfigurationIds is a required field
  4739  	ConfigurationIds []*string `locationName:"configurationIds" type:"list" required:"true"`
  4740  }
  4741  
  4742  // String returns the string representation.
  4743  //
  4744  // API parameter values that are decorated as "sensitive" in the API will not
  4745  // be included in the string output. The member name will be present, but the
  4746  // value will be replaced with "sensitive".
  4747  func (s DisassociateConfigurationItemsFromApplicationInput) String() string {
  4748  	return awsutil.Prettify(s)
  4749  }
  4750  
  4751  // GoString returns the string representation.
  4752  //
  4753  // API parameter values that are decorated as "sensitive" in the API will not
  4754  // be included in the string output. The member name will be present, but the
  4755  // value will be replaced with "sensitive".
  4756  func (s DisassociateConfigurationItemsFromApplicationInput) GoString() string {
  4757  	return s.String()
  4758  }
  4759  
  4760  // Validate inspects the fields of the type to determine if they are valid.
  4761  func (s *DisassociateConfigurationItemsFromApplicationInput) Validate() error {
  4762  	invalidParams := request.ErrInvalidParams{Context: "DisassociateConfigurationItemsFromApplicationInput"}
  4763  	if s.ApplicationConfigurationId == nil {
  4764  		invalidParams.Add(request.NewErrParamRequired("ApplicationConfigurationId"))
  4765  	}
  4766  	if s.ConfigurationIds == nil {
  4767  		invalidParams.Add(request.NewErrParamRequired("ConfigurationIds"))
  4768  	}
  4769  
  4770  	if invalidParams.Len() > 0 {
  4771  		return invalidParams
  4772  	}
  4773  	return nil
  4774  }
  4775  
  4776  // SetApplicationConfigurationId sets the ApplicationConfigurationId field's value.
  4777  func (s *DisassociateConfigurationItemsFromApplicationInput) SetApplicationConfigurationId(v string) *DisassociateConfigurationItemsFromApplicationInput {
  4778  	s.ApplicationConfigurationId = &v
  4779  	return s
  4780  }
  4781  
  4782  // SetConfigurationIds sets the ConfigurationIds field's value.
  4783  func (s *DisassociateConfigurationItemsFromApplicationInput) SetConfigurationIds(v []*string) *DisassociateConfigurationItemsFromApplicationInput {
  4784  	s.ConfigurationIds = v
  4785  	return s
  4786  }
  4787  
  4788  type DisassociateConfigurationItemsFromApplicationOutput struct {
  4789  	_ struct{} `type:"structure"`
  4790  }
  4791  
  4792  // String returns the string representation.
  4793  //
  4794  // API parameter values that are decorated as "sensitive" in the API will not
  4795  // be included in the string output. The member name will be present, but the
  4796  // value will be replaced with "sensitive".
  4797  func (s DisassociateConfigurationItemsFromApplicationOutput) String() string {
  4798  	return awsutil.Prettify(s)
  4799  }
  4800  
  4801  // GoString returns the string representation.
  4802  //
  4803  // API parameter values that are decorated as "sensitive" in the API will not
  4804  // be included in the string output. The member name will be present, but the
  4805  // value will be replaced with "sensitive".
  4806  func (s DisassociateConfigurationItemsFromApplicationOutput) GoString() string {
  4807  	return s.String()
  4808  }
  4809  
  4810  type ExportConfigurationsInput struct {
  4811  	_ struct{} `type:"structure"`
  4812  }
  4813  
  4814  // String returns the string representation.
  4815  //
  4816  // API parameter values that are decorated as "sensitive" in the API will not
  4817  // be included in the string output. The member name will be present, but the
  4818  // value will be replaced with "sensitive".
  4819  func (s ExportConfigurationsInput) String() string {
  4820  	return awsutil.Prettify(s)
  4821  }
  4822  
  4823  // GoString returns the string representation.
  4824  //
  4825  // API parameter values that are decorated as "sensitive" in the API will not
  4826  // be included in the string output. The member name will be present, but the
  4827  // value will be replaced with "sensitive".
  4828  func (s ExportConfigurationsInput) GoString() string {
  4829  	return s.String()
  4830  }
  4831  
  4832  type ExportConfigurationsOutput struct {
  4833  	_ struct{} `type:"structure"`
  4834  
  4835  	// A unique identifier that you can use to query the export status.
  4836  	ExportId *string `locationName:"exportId" type:"string"`
  4837  }
  4838  
  4839  // String returns the string representation.
  4840  //
  4841  // API parameter values that are decorated as "sensitive" in the API will not
  4842  // be included in the string output. The member name will be present, but the
  4843  // value will be replaced with "sensitive".
  4844  func (s ExportConfigurationsOutput) String() string {
  4845  	return awsutil.Prettify(s)
  4846  }
  4847  
  4848  // GoString returns the string representation.
  4849  //
  4850  // API parameter values that are decorated as "sensitive" in the API will not
  4851  // be included in the string output. The member name will be present, but the
  4852  // value will be replaced with "sensitive".
  4853  func (s ExportConfigurationsOutput) GoString() string {
  4854  	return s.String()
  4855  }
  4856  
  4857  // SetExportId sets the ExportId field's value.
  4858  func (s *ExportConfigurationsOutput) SetExportId(v string) *ExportConfigurationsOutput {
  4859  	s.ExportId = &v
  4860  	return s
  4861  }
  4862  
  4863  // Used to select which agent's data is to be exported. A single agent ID may
  4864  // be selected for export using the StartExportTask (http://docs.aws.amazon.com/application-discovery/latest/APIReference/API_StartExportTask.html)
  4865  // action.
  4866  type ExportFilter struct {
  4867  	_ struct{} `type:"structure"`
  4868  
  4869  	// Supported condition: EQUALS
  4870  	//
  4871  	// Condition is a required field
  4872  	Condition *string `locationName:"condition" type:"string" required:"true"`
  4873  
  4874  	// A single ExportFilter name. Supported filters: agentId.
  4875  	//
  4876  	// Name is a required field
  4877  	Name *string `locationName:"name" type:"string" required:"true"`
  4878  
  4879  	// A single agentId for a Discovery Agent. An agentId can be found using the
  4880  	// DescribeAgents (http://docs.aws.amazon.com/application-discovery/latest/APIReference/API_DescribeExportTasks.html)
  4881  	// action. Typically an ADS agentId is in the form o-0123456789abcdef0.
  4882  	//
  4883  	// Values is a required field
  4884  	Values []*string `locationName:"values" type:"list" required:"true"`
  4885  }
  4886  
  4887  // String returns the string representation.
  4888  //
  4889  // API parameter values that are decorated as "sensitive" in the API will not
  4890  // be included in the string output. The member name will be present, but the
  4891  // value will be replaced with "sensitive".
  4892  func (s ExportFilter) String() string {
  4893  	return awsutil.Prettify(s)
  4894  }
  4895  
  4896  // GoString returns the string representation.
  4897  //
  4898  // API parameter values that are decorated as "sensitive" in the API will not
  4899  // be included in the string output. The member name will be present, but the
  4900  // value will be replaced with "sensitive".
  4901  func (s ExportFilter) GoString() string {
  4902  	return s.String()
  4903  }
  4904  
  4905  // Validate inspects the fields of the type to determine if they are valid.
  4906  func (s *ExportFilter) Validate() error {
  4907  	invalidParams := request.ErrInvalidParams{Context: "ExportFilter"}
  4908  	if s.Condition == nil {
  4909  		invalidParams.Add(request.NewErrParamRequired("Condition"))
  4910  	}
  4911  	if s.Name == nil {
  4912  		invalidParams.Add(request.NewErrParamRequired("Name"))
  4913  	}
  4914  	if s.Values == nil {
  4915  		invalidParams.Add(request.NewErrParamRequired("Values"))
  4916  	}
  4917  
  4918  	if invalidParams.Len() > 0 {
  4919  		return invalidParams
  4920  	}
  4921  	return nil
  4922  }
  4923  
  4924  // SetCondition sets the Condition field's value.
  4925  func (s *ExportFilter) SetCondition(v string) *ExportFilter {
  4926  	s.Condition = &v
  4927  	return s
  4928  }
  4929  
  4930  // SetName sets the Name field's value.
  4931  func (s *ExportFilter) SetName(v string) *ExportFilter {
  4932  	s.Name = &v
  4933  	return s
  4934  }
  4935  
  4936  // SetValues sets the Values field's value.
  4937  func (s *ExportFilter) SetValues(v []*string) *ExportFilter {
  4938  	s.Values = v
  4939  	return s
  4940  }
  4941  
  4942  // Information regarding the export status of discovered data. The value is
  4943  // an array of objects.
  4944  type ExportInfo struct {
  4945  	_ struct{} `type:"structure"`
  4946  
  4947  	// A URL for an Amazon S3 bucket where you can review the exported data. The
  4948  	// URL is displayed only if the export succeeded.
  4949  	ConfigurationsDownloadUrl *string `locationName:"configurationsDownloadUrl" type:"string"`
  4950  
  4951  	// A unique identifier used to query an export.
  4952  	//
  4953  	// ExportId is a required field
  4954  	ExportId *string `locationName:"exportId" type:"string" required:"true"`
  4955  
  4956  	// The time that the data export was initiated.
  4957  	//
  4958  	// ExportRequestTime is a required field
  4959  	ExportRequestTime *time.Time `locationName:"exportRequestTime" type:"timestamp" required:"true"`
  4960  
  4961  	// The status of the data export job.
  4962  	//
  4963  	// ExportStatus is a required field
  4964  	ExportStatus *string `locationName:"exportStatus" type:"string" required:"true" enum:"ExportStatus"`
  4965  
  4966  	// If true, the export of agent information exceeded the size limit for a single
  4967  	// export and the exported data is incomplete for the requested time range.
  4968  	// To address this, select a smaller time range for the export by using startDate
  4969  	// and endDate.
  4970  	IsTruncated *bool `locationName:"isTruncated" type:"boolean"`
  4971  
  4972  	// The endTime used in the StartExportTask request. If no endTime was requested,
  4973  	// this result does not appear in ExportInfo.
  4974  	RequestedEndTime *time.Time `locationName:"requestedEndTime" type:"timestamp"`
  4975  
  4976  	// The value of startTime parameter in the StartExportTask request. If no startTime
  4977  	// was requested, this result does not appear in ExportInfo.
  4978  	RequestedStartTime *time.Time `locationName:"requestedStartTime" type:"timestamp"`
  4979  
  4980  	// A status message provided for API callers.
  4981  	//
  4982  	// StatusMessage is a required field
  4983  	StatusMessage *string `locationName:"statusMessage" type:"string" required:"true"`
  4984  }
  4985  
  4986  // String returns the string representation.
  4987  //
  4988  // API parameter values that are decorated as "sensitive" in the API will not
  4989  // be included in the string output. The member name will be present, but the
  4990  // value will be replaced with "sensitive".
  4991  func (s ExportInfo) String() string {
  4992  	return awsutil.Prettify(s)
  4993  }
  4994  
  4995  // GoString returns the string representation.
  4996  //
  4997  // API parameter values that are decorated as "sensitive" in the API will not
  4998  // be included in the string output. The member name will be present, but the
  4999  // value will be replaced with "sensitive".
  5000  func (s ExportInfo) GoString() string {
  5001  	return s.String()
  5002  }
  5003  
  5004  // SetConfigurationsDownloadUrl sets the ConfigurationsDownloadUrl field's value.
  5005  func (s *ExportInfo) SetConfigurationsDownloadUrl(v string) *ExportInfo {
  5006  	s.ConfigurationsDownloadUrl = &v
  5007  	return s
  5008  }
  5009  
  5010  // SetExportId sets the ExportId field's value.
  5011  func (s *ExportInfo) SetExportId(v string) *ExportInfo {
  5012  	s.ExportId = &v
  5013  	return s
  5014  }
  5015  
  5016  // SetExportRequestTime sets the ExportRequestTime field's value.
  5017  func (s *ExportInfo) SetExportRequestTime(v time.Time) *ExportInfo {
  5018  	s.ExportRequestTime = &v
  5019  	return s
  5020  }
  5021  
  5022  // SetExportStatus sets the ExportStatus field's value.
  5023  func (s *ExportInfo) SetExportStatus(v string) *ExportInfo {
  5024  	s.ExportStatus = &v
  5025  	return s
  5026  }
  5027  
  5028  // SetIsTruncated sets the IsTruncated field's value.
  5029  func (s *ExportInfo) SetIsTruncated(v bool) *ExportInfo {
  5030  	s.IsTruncated = &v
  5031  	return s
  5032  }
  5033  
  5034  // SetRequestedEndTime sets the RequestedEndTime field's value.
  5035  func (s *ExportInfo) SetRequestedEndTime(v time.Time) *ExportInfo {
  5036  	s.RequestedEndTime = &v
  5037  	return s
  5038  }
  5039  
  5040  // SetRequestedStartTime sets the RequestedStartTime field's value.
  5041  func (s *ExportInfo) SetRequestedStartTime(v time.Time) *ExportInfo {
  5042  	s.RequestedStartTime = &v
  5043  	return s
  5044  }
  5045  
  5046  // SetStatusMessage sets the StatusMessage field's value.
  5047  func (s *ExportInfo) SetStatusMessage(v string) *ExportInfo {
  5048  	s.StatusMessage = &v
  5049  	return s
  5050  }
  5051  
  5052  // A filter that can use conditional operators.
  5053  //
  5054  // For more information about filters, see Querying Discovered Configuration
  5055  // Items (https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-api-queries.html)
  5056  // in the AWS Application Discovery Service User Guide.
  5057  type Filter struct {
  5058  	_ struct{} `type:"structure"`
  5059  
  5060  	// A conditional operator. The following operators are valid: EQUALS, NOT_EQUALS,
  5061  	// CONTAINS, NOT_CONTAINS. If you specify multiple filters, the system utilizes
  5062  	// all filters as though concatenated by AND. If you specify multiple values
  5063  	// for a particular filter, the system differentiates the values using OR. Calling
  5064  	// either DescribeConfigurations or ListConfigurations returns attributes of
  5065  	// matching configuration items.
  5066  	//
  5067  	// Condition is a required field
  5068  	Condition *string `locationName:"condition" type:"string" required:"true"`
  5069  
  5070  	// The name of the filter.
  5071  	//
  5072  	// Name is a required field
  5073  	Name *string `locationName:"name" type:"string" required:"true"`
  5074  
  5075  	// A string value on which to filter. For example, if you choose the destinationServer.osVersion
  5076  	// filter name, you could specify Ubuntu for the value.
  5077  	//
  5078  	// Values is a required field
  5079  	Values []*string `locationName:"values" type:"list" required:"true"`
  5080  }
  5081  
  5082  // String returns the string representation.
  5083  //
  5084  // API parameter values that are decorated as "sensitive" in the API will not
  5085  // be included in the string output. The member name will be present, but the
  5086  // value will be replaced with "sensitive".
  5087  func (s Filter) String() string {
  5088  	return awsutil.Prettify(s)
  5089  }
  5090  
  5091  // GoString returns the string representation.
  5092  //
  5093  // API parameter values that are decorated as "sensitive" in the API will not
  5094  // be included in the string output. The member name will be present, but the
  5095  // value will be replaced with "sensitive".
  5096  func (s Filter) GoString() string {
  5097  	return s.String()
  5098  }
  5099  
  5100  // Validate inspects the fields of the type to determine if they are valid.
  5101  func (s *Filter) Validate() error {
  5102  	invalidParams := request.ErrInvalidParams{Context: "Filter"}
  5103  	if s.Condition == nil {
  5104  		invalidParams.Add(request.NewErrParamRequired("Condition"))
  5105  	}
  5106  	if s.Name == nil {
  5107  		invalidParams.Add(request.NewErrParamRequired("Name"))
  5108  	}
  5109  	if s.Values == nil {
  5110  		invalidParams.Add(request.NewErrParamRequired("Values"))
  5111  	}
  5112  
  5113  	if invalidParams.Len() > 0 {
  5114  		return invalidParams
  5115  	}
  5116  	return nil
  5117  }
  5118  
  5119  // SetCondition sets the Condition field's value.
  5120  func (s *Filter) SetCondition(v string) *Filter {
  5121  	s.Condition = &v
  5122  	return s
  5123  }
  5124  
  5125  // SetName sets the Name field's value.
  5126  func (s *Filter) SetName(v string) *Filter {
  5127  	s.Name = &v
  5128  	return s
  5129  }
  5130  
  5131  // SetValues sets the Values field's value.
  5132  func (s *Filter) SetValues(v []*string) *Filter {
  5133  	s.Values = v
  5134  	return s
  5135  }
  5136  
  5137  type GetDiscoverySummaryInput struct {
  5138  	_ struct{} `type:"structure"`
  5139  }
  5140  
  5141  // String returns the string representation.
  5142  //
  5143  // API parameter values that are decorated as "sensitive" in the API will not
  5144  // be included in the string output. The member name will be present, but the
  5145  // value will be replaced with "sensitive".
  5146  func (s GetDiscoverySummaryInput) String() string {
  5147  	return awsutil.Prettify(s)
  5148  }
  5149  
  5150  // GoString returns the string representation.
  5151  //
  5152  // API parameter values that are decorated as "sensitive" in the API will not
  5153  // be included in the string output. The member name will be present, but the
  5154  // value will be replaced with "sensitive".
  5155  func (s GetDiscoverySummaryInput) GoString() string {
  5156  	return s.String()
  5157  }
  5158  
  5159  type GetDiscoverySummaryOutput struct {
  5160  	_ struct{} `type:"structure"`
  5161  
  5162  	// Details about discovered agents, including agent status and health.
  5163  	AgentSummary *CustomerAgentInfo `locationName:"agentSummary" type:"structure"`
  5164  
  5165  	// The number of applications discovered.
  5166  	Applications *int64 `locationName:"applications" type:"long"`
  5167  
  5168  	// Details about discovered connectors, including connector status and health.
  5169  	ConnectorSummary *CustomerConnectorInfo `locationName:"connectorSummary" type:"structure"`
  5170  
  5171  	// The number of servers discovered.
  5172  	Servers *int64 `locationName:"servers" type:"long"`
  5173  
  5174  	// The number of servers mapped to applications.
  5175  	ServersMappedToApplications *int64 `locationName:"serversMappedToApplications" type:"long"`
  5176  
  5177  	// The number of servers mapped to tags.
  5178  	ServersMappedtoTags *int64 `locationName:"serversMappedtoTags" type:"long"`
  5179  }
  5180  
  5181  // String returns the string representation.
  5182  //
  5183  // API parameter values that are decorated as "sensitive" in the API will not
  5184  // be included in the string output. The member name will be present, but the
  5185  // value will be replaced with "sensitive".
  5186  func (s GetDiscoverySummaryOutput) String() string {
  5187  	return awsutil.Prettify(s)
  5188  }
  5189  
  5190  // GoString returns the string representation.
  5191  //
  5192  // API parameter values that are decorated as "sensitive" in the API will not
  5193  // be included in the string output. The member name will be present, but the
  5194  // value will be replaced with "sensitive".
  5195  func (s GetDiscoverySummaryOutput) GoString() string {
  5196  	return s.String()
  5197  }
  5198  
  5199  // SetAgentSummary sets the AgentSummary field's value.
  5200  func (s *GetDiscoverySummaryOutput) SetAgentSummary(v *CustomerAgentInfo) *GetDiscoverySummaryOutput {
  5201  	s.AgentSummary = v
  5202  	return s
  5203  }
  5204  
  5205  // SetApplications sets the Applications field's value.
  5206  func (s *GetDiscoverySummaryOutput) SetApplications(v int64) *GetDiscoverySummaryOutput {
  5207  	s.Applications = &v
  5208  	return s
  5209  }
  5210  
  5211  // SetConnectorSummary sets the ConnectorSummary field's value.
  5212  func (s *GetDiscoverySummaryOutput) SetConnectorSummary(v *CustomerConnectorInfo) *GetDiscoverySummaryOutput {
  5213  	s.ConnectorSummary = v
  5214  	return s
  5215  }
  5216  
  5217  // SetServers sets the Servers field's value.
  5218  func (s *GetDiscoverySummaryOutput) SetServers(v int64) *GetDiscoverySummaryOutput {
  5219  	s.Servers = &v
  5220  	return s
  5221  }
  5222  
  5223  // SetServersMappedToApplications sets the ServersMappedToApplications field's value.
  5224  func (s *GetDiscoverySummaryOutput) SetServersMappedToApplications(v int64) *GetDiscoverySummaryOutput {
  5225  	s.ServersMappedToApplications = &v
  5226  	return s
  5227  }
  5228  
  5229  // SetServersMappedtoTags sets the ServersMappedtoTags field's value.
  5230  func (s *GetDiscoverySummaryOutput) SetServersMappedtoTags(v int64) *GetDiscoverySummaryOutput {
  5231  	s.ServersMappedtoTags = &v
  5232  	return s
  5233  }
  5234  
  5235  // The home region is not set. Set the home region to continue.
  5236  type HomeRegionNotSetException struct {
  5237  	_            struct{}                  `type:"structure"`
  5238  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  5239  
  5240  	Message_ *string `locationName:"message" type:"string"`
  5241  }
  5242  
  5243  // String returns the string representation.
  5244  //
  5245  // API parameter values that are decorated as "sensitive" in the API will not
  5246  // be included in the string output. The member name will be present, but the
  5247  // value will be replaced with "sensitive".
  5248  func (s HomeRegionNotSetException) String() string {
  5249  	return awsutil.Prettify(s)
  5250  }
  5251  
  5252  // GoString returns the string representation.
  5253  //
  5254  // API parameter values that are decorated as "sensitive" in the API will not
  5255  // be included in the string output. The member name will be present, but the
  5256  // value will be replaced with "sensitive".
  5257  func (s HomeRegionNotSetException) GoString() string {
  5258  	return s.String()
  5259  }
  5260  
  5261  func newErrorHomeRegionNotSetException(v protocol.ResponseMetadata) error {
  5262  	return &HomeRegionNotSetException{
  5263  		RespMetadata: v,
  5264  	}
  5265  }
  5266  
  5267  // Code returns the exception type name.
  5268  func (s *HomeRegionNotSetException) Code() string {
  5269  	return "HomeRegionNotSetException"
  5270  }
  5271  
  5272  // Message returns the exception's message.
  5273  func (s *HomeRegionNotSetException) Message() string {
  5274  	if s.Message_ != nil {
  5275  		return *s.Message_
  5276  	}
  5277  	return ""
  5278  }
  5279  
  5280  // OrigErr always returns nil, satisfies awserr.Error interface.
  5281  func (s *HomeRegionNotSetException) OrigErr() error {
  5282  	return nil
  5283  }
  5284  
  5285  func (s *HomeRegionNotSetException) Error() string {
  5286  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  5287  }
  5288  
  5289  // Status code returns the HTTP status code for the request's response error.
  5290  func (s *HomeRegionNotSetException) StatusCode() int {
  5291  	return s.RespMetadata.StatusCode
  5292  }
  5293  
  5294  // RequestID returns the service's response RequestID for request.
  5295  func (s *HomeRegionNotSetException) RequestID() string {
  5296  	return s.RespMetadata.RequestID
  5297  }
  5298  
  5299  // An array of information related to the import task request that includes
  5300  // status information, times, IDs, the Amazon S3 Object URL for the import file,
  5301  // and more.
  5302  type ImportTask struct {
  5303  	_ struct{} `type:"structure"`
  5304  
  5305  	// The total number of application records in the import file that failed to
  5306  	// be imported.
  5307  	ApplicationImportFailure *int64 `locationName:"applicationImportFailure" type:"integer"`
  5308  
  5309  	// The total number of application records in the import file that were successfully
  5310  	// imported.
  5311  	ApplicationImportSuccess *int64 `locationName:"applicationImportSuccess" type:"integer"`
  5312  
  5313  	// A unique token used to prevent the same import request from occurring more
  5314  	// than once. If you didn't provide a token, a token was automatically generated
  5315  	// when the import task request was sent.
  5316  	ClientRequestToken *string `locationName:"clientRequestToken" min:"1" type:"string"`
  5317  
  5318  	// A link to a compressed archive folder (in the ZIP format) that contains an
  5319  	// error log and a file of failed records. You can use these two files to quickly
  5320  	// identify records that failed, why they failed, and correct those records.
  5321  	// Afterward, you can upload the corrected file to your Amazon S3 bucket and
  5322  	// create another import task request.
  5323  	//
  5324  	// This field also includes authorization information so you can confirm the
  5325  	// authenticity of the compressed archive before you download it.
  5326  	//
  5327  	// If some records failed to be imported we recommend that you correct the records
  5328  	// in the failed entries file and then imports that failed entries file. This
  5329  	// prevents you from having to correct and update the larger original file and
  5330  	// attempt importing it again.
  5331  	ErrorsAndFailedEntriesZip *string `locationName:"errorsAndFailedEntriesZip" type:"string"`
  5332  
  5333  	// The time that the import task request finished, presented in the Unix time
  5334  	// stamp format.
  5335  	ImportCompletionTime *time.Time `locationName:"importCompletionTime" type:"timestamp"`
  5336  
  5337  	// The time that the import task request was deleted, presented in the Unix
  5338  	// time stamp format.
  5339  	ImportDeletedTime *time.Time `locationName:"importDeletedTime" type:"timestamp"`
  5340  
  5341  	// The time that the import task request was made, presented in the Unix time
  5342  	// stamp format.
  5343  	ImportRequestTime *time.Time `locationName:"importRequestTime" type:"timestamp"`
  5344  
  5345  	// The unique ID for a specific import task. These IDs aren't globally unique,
  5346  	// but they are unique within an AWS account.
  5347  	ImportTaskId *string `locationName:"importTaskId" type:"string"`
  5348  
  5349  	// The URL for your import file that you've uploaded to Amazon S3.
  5350  	ImportUrl *string `locationName:"importUrl" min:"1" type:"string"`
  5351  
  5352  	// A descriptive name for an import task. You can use this name to filter future
  5353  	// requests related to this import task, such as identifying applications and
  5354  	// servers that were included in this import task. We recommend that you use
  5355  	// a meaningful name for each import task.
  5356  	Name *string `locationName:"name" min:"1" type:"string"`
  5357  
  5358  	// The total number of server records in the import file that failed to be imported.
  5359  	ServerImportFailure *int64 `locationName:"serverImportFailure" type:"integer"`
  5360  
  5361  	// The total number of server records in the import file that were successfully
  5362  	// imported.
  5363  	ServerImportSuccess *int64 `locationName:"serverImportSuccess" type:"integer"`
  5364  
  5365  	// The status of the import task. An import can have the status of IMPORT_COMPLETE
  5366  	// and still have some records fail to import from the overall request. More
  5367  	// information can be found in the downloadable archive defined in the errorsAndFailedEntriesZip
  5368  	// field, or in the Migration Hub management console.
  5369  	Status *string `locationName:"status" type:"string" enum:"ImportStatus"`
  5370  }
  5371  
  5372  // String returns the string representation.
  5373  //
  5374  // API parameter values that are decorated as "sensitive" in the API will not
  5375  // be included in the string output. The member name will be present, but the
  5376  // value will be replaced with "sensitive".
  5377  func (s ImportTask) String() string {
  5378  	return awsutil.Prettify(s)
  5379  }
  5380  
  5381  // GoString returns the string representation.
  5382  //
  5383  // API parameter values that are decorated as "sensitive" in the API will not
  5384  // be included in the string output. The member name will be present, but the
  5385  // value will be replaced with "sensitive".
  5386  func (s ImportTask) GoString() string {
  5387  	return s.String()
  5388  }
  5389  
  5390  // SetApplicationImportFailure sets the ApplicationImportFailure field's value.
  5391  func (s *ImportTask) SetApplicationImportFailure(v int64) *ImportTask {
  5392  	s.ApplicationImportFailure = &v
  5393  	return s
  5394  }
  5395  
  5396  // SetApplicationImportSuccess sets the ApplicationImportSuccess field's value.
  5397  func (s *ImportTask) SetApplicationImportSuccess(v int64) *ImportTask {
  5398  	s.ApplicationImportSuccess = &v
  5399  	return s
  5400  }
  5401  
  5402  // SetClientRequestToken sets the ClientRequestToken field's value.
  5403  func (s *ImportTask) SetClientRequestToken(v string) *ImportTask {
  5404  	s.ClientRequestToken = &v
  5405  	return s
  5406  }
  5407  
  5408  // SetErrorsAndFailedEntriesZip sets the ErrorsAndFailedEntriesZip field's value.
  5409  func (s *ImportTask) SetErrorsAndFailedEntriesZip(v string) *ImportTask {
  5410  	s.ErrorsAndFailedEntriesZip = &v
  5411  	return s
  5412  }
  5413  
  5414  // SetImportCompletionTime sets the ImportCompletionTime field's value.
  5415  func (s *ImportTask) SetImportCompletionTime(v time.Time) *ImportTask {
  5416  	s.ImportCompletionTime = &v
  5417  	return s
  5418  }
  5419  
  5420  // SetImportDeletedTime sets the ImportDeletedTime field's value.
  5421  func (s *ImportTask) SetImportDeletedTime(v time.Time) *ImportTask {
  5422  	s.ImportDeletedTime = &v
  5423  	return s
  5424  }
  5425  
  5426  // SetImportRequestTime sets the ImportRequestTime field's value.
  5427  func (s *ImportTask) SetImportRequestTime(v time.Time) *ImportTask {
  5428  	s.ImportRequestTime = &v
  5429  	return s
  5430  }
  5431  
  5432  // SetImportTaskId sets the ImportTaskId field's value.
  5433  func (s *ImportTask) SetImportTaskId(v string) *ImportTask {
  5434  	s.ImportTaskId = &v
  5435  	return s
  5436  }
  5437  
  5438  // SetImportUrl sets the ImportUrl field's value.
  5439  func (s *ImportTask) SetImportUrl(v string) *ImportTask {
  5440  	s.ImportUrl = &v
  5441  	return s
  5442  }
  5443  
  5444  // SetName sets the Name field's value.
  5445  func (s *ImportTask) SetName(v string) *ImportTask {
  5446  	s.Name = &v
  5447  	return s
  5448  }
  5449  
  5450  // SetServerImportFailure sets the ServerImportFailure field's value.
  5451  func (s *ImportTask) SetServerImportFailure(v int64) *ImportTask {
  5452  	s.ServerImportFailure = &v
  5453  	return s
  5454  }
  5455  
  5456  // SetServerImportSuccess sets the ServerImportSuccess field's value.
  5457  func (s *ImportTask) SetServerImportSuccess(v int64) *ImportTask {
  5458  	s.ServerImportSuccess = &v
  5459  	return s
  5460  }
  5461  
  5462  // SetStatus sets the Status field's value.
  5463  func (s *ImportTask) SetStatus(v string) *ImportTask {
  5464  	s.Status = &v
  5465  	return s
  5466  }
  5467  
  5468  // A name-values pair of elements you can use to filter the results when querying
  5469  // your import tasks. Currently, wildcards are not supported for filters.
  5470  //
  5471  // When filtering by import status, all other filter values are ignored.
  5472  type ImportTaskFilter struct {
  5473  	_ struct{} `type:"structure"`
  5474  
  5475  	// The name, status, or import task ID for a specific import task.
  5476  	Name *string `locationName:"name" type:"string" enum:"ImportTaskFilterName"`
  5477  
  5478  	// An array of strings that you can provide to match against a specific name,
  5479  	// status, or import task ID to filter the results for your import task queries.
  5480  	Values []*string `locationName:"values" min:"1" type:"list"`
  5481  }
  5482  
  5483  // String returns the string representation.
  5484  //
  5485  // API parameter values that are decorated as "sensitive" in the API will not
  5486  // be included in the string output. The member name will be present, but the
  5487  // value will be replaced with "sensitive".
  5488  func (s ImportTaskFilter) String() string {
  5489  	return awsutil.Prettify(s)
  5490  }
  5491  
  5492  // GoString returns the string representation.
  5493  //
  5494  // API parameter values that are decorated as "sensitive" in the API will not
  5495  // be included in the string output. The member name will be present, but the
  5496  // value will be replaced with "sensitive".
  5497  func (s ImportTaskFilter) GoString() string {
  5498  	return s.String()
  5499  }
  5500  
  5501  // Validate inspects the fields of the type to determine if they are valid.
  5502  func (s *ImportTaskFilter) Validate() error {
  5503  	invalidParams := request.ErrInvalidParams{Context: "ImportTaskFilter"}
  5504  	if s.Values != nil && len(s.Values) < 1 {
  5505  		invalidParams.Add(request.NewErrParamMinLen("Values", 1))
  5506  	}
  5507  
  5508  	if invalidParams.Len() > 0 {
  5509  		return invalidParams
  5510  	}
  5511  	return nil
  5512  }
  5513  
  5514  // SetName sets the Name field's value.
  5515  func (s *ImportTaskFilter) SetName(v string) *ImportTaskFilter {
  5516  	s.Name = &v
  5517  	return s
  5518  }
  5519  
  5520  // SetValues sets the Values field's value.
  5521  func (s *ImportTaskFilter) SetValues(v []*string) *ImportTaskFilter {
  5522  	s.Values = v
  5523  	return s
  5524  }
  5525  
  5526  // One or more parameters are not valid. Verify the parameters and try again.
  5527  type InvalidParameterException struct {
  5528  	_            struct{}                  `type:"structure"`
  5529  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  5530  
  5531  	Message_ *string `locationName:"message" type:"string"`
  5532  }
  5533  
  5534  // String returns the string representation.
  5535  //
  5536  // API parameter values that are decorated as "sensitive" in the API will not
  5537  // be included in the string output. The member name will be present, but the
  5538  // value will be replaced with "sensitive".
  5539  func (s InvalidParameterException) String() string {
  5540  	return awsutil.Prettify(s)
  5541  }
  5542  
  5543  // GoString returns the string representation.
  5544  //
  5545  // API parameter values that are decorated as "sensitive" in the API will not
  5546  // be included in the string output. The member name will be present, but the
  5547  // value will be replaced with "sensitive".
  5548  func (s InvalidParameterException) GoString() string {
  5549  	return s.String()
  5550  }
  5551  
  5552  func newErrorInvalidParameterException(v protocol.ResponseMetadata) error {
  5553  	return &InvalidParameterException{
  5554  		RespMetadata: v,
  5555  	}
  5556  }
  5557  
  5558  // Code returns the exception type name.
  5559  func (s *InvalidParameterException) Code() string {
  5560  	return "InvalidParameterException"
  5561  }
  5562  
  5563  // Message returns the exception's message.
  5564  func (s *InvalidParameterException) Message() string {
  5565  	if s.Message_ != nil {
  5566  		return *s.Message_
  5567  	}
  5568  	return ""
  5569  }
  5570  
  5571  // OrigErr always returns nil, satisfies awserr.Error interface.
  5572  func (s *InvalidParameterException) OrigErr() error {
  5573  	return nil
  5574  }
  5575  
  5576  func (s *InvalidParameterException) Error() string {
  5577  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  5578  }
  5579  
  5580  // Status code returns the HTTP status code for the request's response error.
  5581  func (s *InvalidParameterException) StatusCode() int {
  5582  	return s.RespMetadata.StatusCode
  5583  }
  5584  
  5585  // RequestID returns the service's response RequestID for request.
  5586  func (s *InvalidParameterException) RequestID() string {
  5587  	return s.RespMetadata.RequestID
  5588  }
  5589  
  5590  // The value of one or more parameters are either invalid or out of range. Verify
  5591  // the parameter values and try again.
  5592  type InvalidParameterValueException struct {
  5593  	_            struct{}                  `type:"structure"`
  5594  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  5595  
  5596  	Message_ *string `locationName:"message" type:"string"`
  5597  }
  5598  
  5599  // String returns the string representation.
  5600  //
  5601  // API parameter values that are decorated as "sensitive" in the API will not
  5602  // be included in the string output. The member name will be present, but the
  5603  // value will be replaced with "sensitive".
  5604  func (s InvalidParameterValueException) String() string {
  5605  	return awsutil.Prettify(s)
  5606  }
  5607  
  5608  // GoString returns the string representation.
  5609  //
  5610  // API parameter values that are decorated as "sensitive" in the API will not
  5611  // be included in the string output. The member name will be present, but the
  5612  // value will be replaced with "sensitive".
  5613  func (s InvalidParameterValueException) GoString() string {
  5614  	return s.String()
  5615  }
  5616  
  5617  func newErrorInvalidParameterValueException(v protocol.ResponseMetadata) error {
  5618  	return &InvalidParameterValueException{
  5619  		RespMetadata: v,
  5620  	}
  5621  }
  5622  
  5623  // Code returns the exception type name.
  5624  func (s *InvalidParameterValueException) Code() string {
  5625  	return "InvalidParameterValueException"
  5626  }
  5627  
  5628  // Message returns the exception's message.
  5629  func (s *InvalidParameterValueException) Message() string {
  5630  	if s.Message_ != nil {
  5631  		return *s.Message_
  5632  	}
  5633  	return ""
  5634  }
  5635  
  5636  // OrigErr always returns nil, satisfies awserr.Error interface.
  5637  func (s *InvalidParameterValueException) OrigErr() error {
  5638  	return nil
  5639  }
  5640  
  5641  func (s *InvalidParameterValueException) Error() string {
  5642  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  5643  }
  5644  
  5645  // Status code returns the HTTP status code for the request's response error.
  5646  func (s *InvalidParameterValueException) StatusCode() int {
  5647  	return s.RespMetadata.StatusCode
  5648  }
  5649  
  5650  // RequestID returns the service's response RequestID for request.
  5651  func (s *InvalidParameterValueException) RequestID() string {
  5652  	return s.RespMetadata.RequestID
  5653  }
  5654  
  5655  type ListConfigurationsInput struct {
  5656  	_ struct{} `type:"structure"`
  5657  
  5658  	// A valid configuration identified by Application Discovery Service.
  5659  	//
  5660  	// ConfigurationType is a required field
  5661  	ConfigurationType *string `locationName:"configurationType" type:"string" required:"true" enum:"ConfigurationItemType"`
  5662  
  5663  	// You can filter the request using various logical operators and a key-value
  5664  	// format. For example:
  5665  	//
  5666  	// {"key": "serverType", "value": "webServer"}
  5667  	//
  5668  	// For a complete list of filter options and guidance about using them with
  5669  	// this action, see Using the ListConfigurations Action (https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-api-queries.html#ListConfigurations)
  5670  	// in the AWS Application Discovery Service User Guide.
  5671  	Filters []*Filter `locationName:"filters" type:"list"`
  5672  
  5673  	// The total number of items to return. The maximum value is 100.
  5674  	MaxResults *int64 `locationName:"maxResults" type:"integer"`
  5675  
  5676  	// Token to retrieve the next set of results. For example, if a previous call
  5677  	// to ListConfigurations returned 100 items, but you set ListConfigurationsRequest$maxResults
  5678  	// to 10, you received a set of 10 results along with a token. Use that token
  5679  	// in this query to get the next set of 10.
  5680  	NextToken *string `locationName:"nextToken" type:"string"`
  5681  
  5682  	// Certain filter criteria return output that can be sorted in ascending or
  5683  	// descending order. For a list of output characteristics for each filter, see
  5684  	// Using the ListConfigurations Action (https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-api-queries.html#ListConfigurations)
  5685  	// in the AWS Application Discovery Service User Guide.
  5686  	OrderBy []*OrderByElement `locationName:"orderBy" type:"list"`
  5687  }
  5688  
  5689  // String returns the string representation.
  5690  //
  5691  // API parameter values that are decorated as "sensitive" in the API will not
  5692  // be included in the string output. The member name will be present, but the
  5693  // value will be replaced with "sensitive".
  5694  func (s ListConfigurationsInput) String() string {
  5695  	return awsutil.Prettify(s)
  5696  }
  5697  
  5698  // GoString returns the string representation.
  5699  //
  5700  // API parameter values that are decorated as "sensitive" in the API will not
  5701  // be included in the string output. The member name will be present, but the
  5702  // value will be replaced with "sensitive".
  5703  func (s ListConfigurationsInput) GoString() string {
  5704  	return s.String()
  5705  }
  5706  
  5707  // Validate inspects the fields of the type to determine if they are valid.
  5708  func (s *ListConfigurationsInput) Validate() error {
  5709  	invalidParams := request.ErrInvalidParams{Context: "ListConfigurationsInput"}
  5710  	if s.ConfigurationType == nil {
  5711  		invalidParams.Add(request.NewErrParamRequired("ConfigurationType"))
  5712  	}
  5713  	if s.Filters != nil {
  5714  		for i, v := range s.Filters {
  5715  			if v == nil {
  5716  				continue
  5717  			}
  5718  			if err := v.Validate(); err != nil {
  5719  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  5720  			}
  5721  		}
  5722  	}
  5723  	if s.OrderBy != nil {
  5724  		for i, v := range s.OrderBy {
  5725  			if v == nil {
  5726  				continue
  5727  			}
  5728  			if err := v.Validate(); err != nil {
  5729  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OrderBy", i), err.(request.ErrInvalidParams))
  5730  			}
  5731  		}
  5732  	}
  5733  
  5734  	if invalidParams.Len() > 0 {
  5735  		return invalidParams
  5736  	}
  5737  	return nil
  5738  }
  5739  
  5740  // SetConfigurationType sets the ConfigurationType field's value.
  5741  func (s *ListConfigurationsInput) SetConfigurationType(v string) *ListConfigurationsInput {
  5742  	s.ConfigurationType = &v
  5743  	return s
  5744  }
  5745  
  5746  // SetFilters sets the Filters field's value.
  5747  func (s *ListConfigurationsInput) SetFilters(v []*Filter) *ListConfigurationsInput {
  5748  	s.Filters = v
  5749  	return s
  5750  }
  5751  
  5752  // SetMaxResults sets the MaxResults field's value.
  5753  func (s *ListConfigurationsInput) SetMaxResults(v int64) *ListConfigurationsInput {
  5754  	s.MaxResults = &v
  5755  	return s
  5756  }
  5757  
  5758  // SetNextToken sets the NextToken field's value.
  5759  func (s *ListConfigurationsInput) SetNextToken(v string) *ListConfigurationsInput {
  5760  	s.NextToken = &v
  5761  	return s
  5762  }
  5763  
  5764  // SetOrderBy sets the OrderBy field's value.
  5765  func (s *ListConfigurationsInput) SetOrderBy(v []*OrderByElement) *ListConfigurationsInput {
  5766  	s.OrderBy = v
  5767  	return s
  5768  }
  5769  
  5770  type ListConfigurationsOutput struct {
  5771  	_ struct{} `type:"structure"`
  5772  
  5773  	// Returns configuration details, including the configuration ID, attribute
  5774  	// names, and attribute values.
  5775  	Configurations []map[string]*string `locationName:"configurations" type:"list"`
  5776  
  5777  	// Token to retrieve the next set of results. For example, if your call to ListConfigurations
  5778  	// returned 100 items, but you set ListConfigurationsRequest$maxResults to 10,
  5779  	// you received a set of 10 results along with this token. Use this token in
  5780  	// the next query to retrieve the next set of 10.
  5781  	NextToken *string `locationName:"nextToken" type:"string"`
  5782  }
  5783  
  5784  // String returns the string representation.
  5785  //
  5786  // API parameter values that are decorated as "sensitive" in the API will not
  5787  // be included in the string output. The member name will be present, but the
  5788  // value will be replaced with "sensitive".
  5789  func (s ListConfigurationsOutput) String() string {
  5790  	return awsutil.Prettify(s)
  5791  }
  5792  
  5793  // GoString returns the string representation.
  5794  //
  5795  // API parameter values that are decorated as "sensitive" in the API will not
  5796  // be included in the string output. The member name will be present, but the
  5797  // value will be replaced with "sensitive".
  5798  func (s ListConfigurationsOutput) GoString() string {
  5799  	return s.String()
  5800  }
  5801  
  5802  // SetConfigurations sets the Configurations field's value.
  5803  func (s *ListConfigurationsOutput) SetConfigurations(v []map[string]*string) *ListConfigurationsOutput {
  5804  	s.Configurations = v
  5805  	return s
  5806  }
  5807  
  5808  // SetNextToken sets the NextToken field's value.
  5809  func (s *ListConfigurationsOutput) SetNextToken(v string) *ListConfigurationsOutput {
  5810  	s.NextToken = &v
  5811  	return s
  5812  }
  5813  
  5814  type ListServerNeighborsInput struct {
  5815  	_ struct{} `type:"structure"`
  5816  
  5817  	// Configuration ID of the server for which neighbors are being listed.
  5818  	//
  5819  	// ConfigurationId is a required field
  5820  	ConfigurationId *string `locationName:"configurationId" type:"string" required:"true"`
  5821  
  5822  	// Maximum number of results to return in a single page of output.
  5823  	MaxResults *int64 `locationName:"maxResults" type:"integer"`
  5824  
  5825  	// List of configuration IDs to test for one-hop-away.
  5826  	NeighborConfigurationIds []*string `locationName:"neighborConfigurationIds" type:"list"`
  5827  
  5828  	// Token to retrieve the next set of results. For example, if you previously
  5829  	// specified 100 IDs for ListServerNeighborsRequest$neighborConfigurationIds
  5830  	// but set ListServerNeighborsRequest$maxResults to 10, you received a set of
  5831  	// 10 results along with a token. Use that token in this query to get the next
  5832  	// set of 10.
  5833  	NextToken *string `locationName:"nextToken" type:"string"`
  5834  
  5835  	// Flag to indicate if port and protocol information is needed as part of the
  5836  	// response.
  5837  	PortInformationNeeded *bool `locationName:"portInformationNeeded" type:"boolean"`
  5838  }
  5839  
  5840  // String returns the string representation.
  5841  //
  5842  // API parameter values that are decorated as "sensitive" in the API will not
  5843  // be included in the string output. The member name will be present, but the
  5844  // value will be replaced with "sensitive".
  5845  func (s ListServerNeighborsInput) String() string {
  5846  	return awsutil.Prettify(s)
  5847  }
  5848  
  5849  // GoString returns the string representation.
  5850  //
  5851  // API parameter values that are decorated as "sensitive" in the API will not
  5852  // be included in the string output. The member name will be present, but the
  5853  // value will be replaced with "sensitive".
  5854  func (s ListServerNeighborsInput) GoString() string {
  5855  	return s.String()
  5856  }
  5857  
  5858  // Validate inspects the fields of the type to determine if they are valid.
  5859  func (s *ListServerNeighborsInput) Validate() error {
  5860  	invalidParams := request.ErrInvalidParams{Context: "ListServerNeighborsInput"}
  5861  	if s.ConfigurationId == nil {
  5862  		invalidParams.Add(request.NewErrParamRequired("ConfigurationId"))
  5863  	}
  5864  
  5865  	if invalidParams.Len() > 0 {
  5866  		return invalidParams
  5867  	}
  5868  	return nil
  5869  }
  5870  
  5871  // SetConfigurationId sets the ConfigurationId field's value.
  5872  func (s *ListServerNeighborsInput) SetConfigurationId(v string) *ListServerNeighborsInput {
  5873  	s.ConfigurationId = &v
  5874  	return s
  5875  }
  5876  
  5877  // SetMaxResults sets the MaxResults field's value.
  5878  func (s *ListServerNeighborsInput) SetMaxResults(v int64) *ListServerNeighborsInput {
  5879  	s.MaxResults = &v
  5880  	return s
  5881  }
  5882  
  5883  // SetNeighborConfigurationIds sets the NeighborConfigurationIds field's value.
  5884  func (s *ListServerNeighborsInput) SetNeighborConfigurationIds(v []*string) *ListServerNeighborsInput {
  5885  	s.NeighborConfigurationIds = v
  5886  	return s
  5887  }
  5888  
  5889  // SetNextToken sets the NextToken field's value.
  5890  func (s *ListServerNeighborsInput) SetNextToken(v string) *ListServerNeighborsInput {
  5891  	s.NextToken = &v
  5892  	return s
  5893  }
  5894  
  5895  // SetPortInformationNeeded sets the PortInformationNeeded field's value.
  5896  func (s *ListServerNeighborsInput) SetPortInformationNeeded(v bool) *ListServerNeighborsInput {
  5897  	s.PortInformationNeeded = &v
  5898  	return s
  5899  }
  5900  
  5901  type ListServerNeighborsOutput struct {
  5902  	_ struct{} `type:"structure"`
  5903  
  5904  	// Count of distinct servers that are one hop away from the given server.
  5905  	KnownDependencyCount *int64 `locationName:"knownDependencyCount" type:"long"`
  5906  
  5907  	// List of distinct servers that are one hop away from the given server.
  5908  	//
  5909  	// Neighbors is a required field
  5910  	Neighbors []*NeighborConnectionDetail `locationName:"neighbors" type:"list" required:"true"`
  5911  
  5912  	// Token to retrieve the next set of results. For example, if you specified
  5913  	// 100 IDs for ListServerNeighborsRequest$neighborConfigurationIds but set ListServerNeighborsRequest$maxResults
  5914  	// to 10, you received a set of 10 results along with this token. Use this token
  5915  	// in the next query to retrieve the next set of 10.
  5916  	NextToken *string `locationName:"nextToken" type:"string"`
  5917  }
  5918  
  5919  // String returns the string representation.
  5920  //
  5921  // API parameter values that are decorated as "sensitive" in the API will not
  5922  // be included in the string output. The member name will be present, but the
  5923  // value will be replaced with "sensitive".
  5924  func (s ListServerNeighborsOutput) String() string {
  5925  	return awsutil.Prettify(s)
  5926  }
  5927  
  5928  // GoString returns the string representation.
  5929  //
  5930  // API parameter values that are decorated as "sensitive" in the API will not
  5931  // be included in the string output. The member name will be present, but the
  5932  // value will be replaced with "sensitive".
  5933  func (s ListServerNeighborsOutput) GoString() string {
  5934  	return s.String()
  5935  }
  5936  
  5937  // SetKnownDependencyCount sets the KnownDependencyCount field's value.
  5938  func (s *ListServerNeighborsOutput) SetKnownDependencyCount(v int64) *ListServerNeighborsOutput {
  5939  	s.KnownDependencyCount = &v
  5940  	return s
  5941  }
  5942  
  5943  // SetNeighbors sets the Neighbors field's value.
  5944  func (s *ListServerNeighborsOutput) SetNeighbors(v []*NeighborConnectionDetail) *ListServerNeighborsOutput {
  5945  	s.Neighbors = v
  5946  	return s
  5947  }
  5948  
  5949  // SetNextToken sets the NextToken field's value.
  5950  func (s *ListServerNeighborsOutput) SetNextToken(v string) *ListServerNeighborsOutput {
  5951  	s.NextToken = &v
  5952  	return s
  5953  }
  5954  
  5955  // Details about neighboring servers.
  5956  type NeighborConnectionDetail struct {
  5957  	_ struct{} `type:"structure"`
  5958  
  5959  	// The number of open network connections with the neighboring server.
  5960  	//
  5961  	// ConnectionsCount is a required field
  5962  	ConnectionsCount *int64 `locationName:"connectionsCount" type:"long" required:"true"`
  5963  
  5964  	// The destination network port for the connection.
  5965  	DestinationPort *int64 `locationName:"destinationPort" type:"integer"`
  5966  
  5967  	// The ID of the server that accepted the network connection.
  5968  	//
  5969  	// DestinationServerId is a required field
  5970  	DestinationServerId *string `locationName:"destinationServerId" type:"string" required:"true"`
  5971  
  5972  	// The ID of the server that opened the network connection.
  5973  	//
  5974  	// SourceServerId is a required field
  5975  	SourceServerId *string `locationName:"sourceServerId" type:"string" required:"true"`
  5976  
  5977  	// The network protocol used for the connection.
  5978  	TransportProtocol *string `locationName:"transportProtocol" type:"string"`
  5979  }
  5980  
  5981  // String returns the string representation.
  5982  //
  5983  // API parameter values that are decorated as "sensitive" in the API will not
  5984  // be included in the string output. The member name will be present, but the
  5985  // value will be replaced with "sensitive".
  5986  func (s NeighborConnectionDetail) String() string {
  5987  	return awsutil.Prettify(s)
  5988  }
  5989  
  5990  // GoString returns the string representation.
  5991  //
  5992  // API parameter values that are decorated as "sensitive" in the API will not
  5993  // be included in the string output. The member name will be present, but the
  5994  // value will be replaced with "sensitive".
  5995  func (s NeighborConnectionDetail) GoString() string {
  5996  	return s.String()
  5997  }
  5998  
  5999  // SetConnectionsCount sets the ConnectionsCount field's value.
  6000  func (s *NeighborConnectionDetail) SetConnectionsCount(v int64) *NeighborConnectionDetail {
  6001  	s.ConnectionsCount = &v
  6002  	return s
  6003  }
  6004  
  6005  // SetDestinationPort sets the DestinationPort field's value.
  6006  func (s *NeighborConnectionDetail) SetDestinationPort(v int64) *NeighborConnectionDetail {
  6007  	s.DestinationPort = &v
  6008  	return s
  6009  }
  6010  
  6011  // SetDestinationServerId sets the DestinationServerId field's value.
  6012  func (s *NeighborConnectionDetail) SetDestinationServerId(v string) *NeighborConnectionDetail {
  6013  	s.DestinationServerId = &v
  6014  	return s
  6015  }
  6016  
  6017  // SetSourceServerId sets the SourceServerId field's value.
  6018  func (s *NeighborConnectionDetail) SetSourceServerId(v string) *NeighborConnectionDetail {
  6019  	s.SourceServerId = &v
  6020  	return s
  6021  }
  6022  
  6023  // SetTransportProtocol sets the TransportProtocol field's value.
  6024  func (s *NeighborConnectionDetail) SetTransportProtocol(v string) *NeighborConnectionDetail {
  6025  	s.TransportProtocol = &v
  6026  	return s
  6027  }
  6028  
  6029  // This operation is not permitted.
  6030  type OperationNotPermittedException struct {
  6031  	_            struct{}                  `type:"structure"`
  6032  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  6033  
  6034  	Message_ *string `locationName:"message" type:"string"`
  6035  }
  6036  
  6037  // String returns the string representation.
  6038  //
  6039  // API parameter values that are decorated as "sensitive" in the API will not
  6040  // be included in the string output. The member name will be present, but the
  6041  // value will be replaced with "sensitive".
  6042  func (s OperationNotPermittedException) String() string {
  6043  	return awsutil.Prettify(s)
  6044  }
  6045  
  6046  // GoString returns the string representation.
  6047  //
  6048  // API parameter values that are decorated as "sensitive" in the API will not
  6049  // be included in the string output. The member name will be present, but the
  6050  // value will be replaced with "sensitive".
  6051  func (s OperationNotPermittedException) GoString() string {
  6052  	return s.String()
  6053  }
  6054  
  6055  func newErrorOperationNotPermittedException(v protocol.ResponseMetadata) error {
  6056  	return &OperationNotPermittedException{
  6057  		RespMetadata: v,
  6058  	}
  6059  }
  6060  
  6061  // Code returns the exception type name.
  6062  func (s *OperationNotPermittedException) Code() string {
  6063  	return "OperationNotPermittedException"
  6064  }
  6065  
  6066  // Message returns the exception's message.
  6067  func (s *OperationNotPermittedException) Message() string {
  6068  	if s.Message_ != nil {
  6069  		return *s.Message_
  6070  	}
  6071  	return ""
  6072  }
  6073  
  6074  // OrigErr always returns nil, satisfies awserr.Error interface.
  6075  func (s *OperationNotPermittedException) OrigErr() error {
  6076  	return nil
  6077  }
  6078  
  6079  func (s *OperationNotPermittedException) Error() string {
  6080  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  6081  }
  6082  
  6083  // Status code returns the HTTP status code for the request's response error.
  6084  func (s *OperationNotPermittedException) StatusCode() int {
  6085  	return s.RespMetadata.StatusCode
  6086  }
  6087  
  6088  // RequestID returns the service's response RequestID for request.
  6089  func (s *OperationNotPermittedException) RequestID() string {
  6090  	return s.RespMetadata.RequestID
  6091  }
  6092  
  6093  // A field and direction for ordered output.
  6094  type OrderByElement struct {
  6095  	_ struct{} `type:"structure"`
  6096  
  6097  	// The field on which to order.
  6098  	//
  6099  	// FieldName is a required field
  6100  	FieldName *string `locationName:"fieldName" type:"string" required:"true"`
  6101  
  6102  	// Ordering direction.
  6103  	SortOrder *string `locationName:"sortOrder" type:"string" enum:"OrderString"`
  6104  }
  6105  
  6106  // String returns the string representation.
  6107  //
  6108  // API parameter values that are decorated as "sensitive" in the API will not
  6109  // be included in the string output. The member name will be present, but the
  6110  // value will be replaced with "sensitive".
  6111  func (s OrderByElement) String() string {
  6112  	return awsutil.Prettify(s)
  6113  }
  6114  
  6115  // GoString returns the string representation.
  6116  //
  6117  // API parameter values that are decorated as "sensitive" in the API will not
  6118  // be included in the string output. The member name will be present, but the
  6119  // value will be replaced with "sensitive".
  6120  func (s OrderByElement) GoString() string {
  6121  	return s.String()
  6122  }
  6123  
  6124  // Validate inspects the fields of the type to determine if they are valid.
  6125  func (s *OrderByElement) Validate() error {
  6126  	invalidParams := request.ErrInvalidParams{Context: "OrderByElement"}
  6127  	if s.FieldName == nil {
  6128  		invalidParams.Add(request.NewErrParamRequired("FieldName"))
  6129  	}
  6130  
  6131  	if invalidParams.Len() > 0 {
  6132  		return invalidParams
  6133  	}
  6134  	return nil
  6135  }
  6136  
  6137  // SetFieldName sets the FieldName field's value.
  6138  func (s *OrderByElement) SetFieldName(v string) *OrderByElement {
  6139  	s.FieldName = &v
  6140  	return s
  6141  }
  6142  
  6143  // SetSortOrder sets the SortOrder field's value.
  6144  func (s *OrderByElement) SetSortOrder(v string) *OrderByElement {
  6145  	s.SortOrder = &v
  6146  	return s
  6147  }
  6148  
  6149  // This issue occurs when the same clientRequestToken is used with the StartImportTask
  6150  // action, but with different parameters. For example, you use the same request
  6151  // token but have two different import URLs, you can encounter this issue. If
  6152  // the import tasks are meant to be different, use a different clientRequestToken,
  6153  // and try again.
  6154  type ResourceInUseException struct {
  6155  	_            struct{}                  `type:"structure"`
  6156  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  6157  
  6158  	Message_ *string `locationName:"message" type:"string"`
  6159  }
  6160  
  6161  // String returns the string representation.
  6162  //
  6163  // API parameter values that are decorated as "sensitive" in the API will not
  6164  // be included in the string output. The member name will be present, but the
  6165  // value will be replaced with "sensitive".
  6166  func (s ResourceInUseException) String() string {
  6167  	return awsutil.Prettify(s)
  6168  }
  6169  
  6170  // GoString returns the string representation.
  6171  //
  6172  // API parameter values that are decorated as "sensitive" in the API will not
  6173  // be included in the string output. The member name will be present, but the
  6174  // value will be replaced with "sensitive".
  6175  func (s ResourceInUseException) GoString() string {
  6176  	return s.String()
  6177  }
  6178  
  6179  func newErrorResourceInUseException(v protocol.ResponseMetadata) error {
  6180  	return &ResourceInUseException{
  6181  		RespMetadata: v,
  6182  	}
  6183  }
  6184  
  6185  // Code returns the exception type name.
  6186  func (s *ResourceInUseException) Code() string {
  6187  	return "ResourceInUseException"
  6188  }
  6189  
  6190  // Message returns the exception's message.
  6191  func (s *ResourceInUseException) Message() string {
  6192  	if s.Message_ != nil {
  6193  		return *s.Message_
  6194  	}
  6195  	return ""
  6196  }
  6197  
  6198  // OrigErr always returns nil, satisfies awserr.Error interface.
  6199  func (s *ResourceInUseException) OrigErr() error {
  6200  	return nil
  6201  }
  6202  
  6203  func (s *ResourceInUseException) Error() string {
  6204  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  6205  }
  6206  
  6207  // Status code returns the HTTP status code for the request's response error.
  6208  func (s *ResourceInUseException) StatusCode() int {
  6209  	return s.RespMetadata.StatusCode
  6210  }
  6211  
  6212  // RequestID returns the service's response RequestID for request.
  6213  func (s *ResourceInUseException) RequestID() string {
  6214  	return s.RespMetadata.RequestID
  6215  }
  6216  
  6217  // The specified configuration ID was not located. Verify the configuration
  6218  // ID and try again.
  6219  type ResourceNotFoundException struct {
  6220  	_            struct{}                  `type:"structure"`
  6221  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  6222  
  6223  	Message_ *string `locationName:"message" type:"string"`
  6224  }
  6225  
  6226  // String returns the string representation.
  6227  //
  6228  // API parameter values that are decorated as "sensitive" in the API will not
  6229  // be included in the string output. The member name will be present, but the
  6230  // value will be replaced with "sensitive".
  6231  func (s ResourceNotFoundException) String() string {
  6232  	return awsutil.Prettify(s)
  6233  }
  6234  
  6235  // GoString returns the string representation.
  6236  //
  6237  // API parameter values that are decorated as "sensitive" in the API will not
  6238  // be included in the string output. The member name will be present, but the
  6239  // value will be replaced with "sensitive".
  6240  func (s ResourceNotFoundException) GoString() string {
  6241  	return s.String()
  6242  }
  6243  
  6244  func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
  6245  	return &ResourceNotFoundException{
  6246  		RespMetadata: v,
  6247  	}
  6248  }
  6249  
  6250  // Code returns the exception type name.
  6251  func (s *ResourceNotFoundException) Code() string {
  6252  	return "ResourceNotFoundException"
  6253  }
  6254  
  6255  // Message returns the exception's message.
  6256  func (s *ResourceNotFoundException) Message() string {
  6257  	if s.Message_ != nil {
  6258  		return *s.Message_
  6259  	}
  6260  	return ""
  6261  }
  6262  
  6263  // OrigErr always returns nil, satisfies awserr.Error interface.
  6264  func (s *ResourceNotFoundException) OrigErr() error {
  6265  	return nil
  6266  }
  6267  
  6268  func (s *ResourceNotFoundException) Error() string {
  6269  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  6270  }
  6271  
  6272  // Status code returns the HTTP status code for the request's response error.
  6273  func (s *ResourceNotFoundException) StatusCode() int {
  6274  	return s.RespMetadata.StatusCode
  6275  }
  6276  
  6277  // RequestID returns the service's response RequestID for request.
  6278  func (s *ResourceNotFoundException) RequestID() string {
  6279  	return s.RespMetadata.RequestID
  6280  }
  6281  
  6282  // The server experienced an internal error. Try again.
  6283  type ServerInternalErrorException struct {
  6284  	_            struct{}                  `type:"structure"`
  6285  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  6286  
  6287  	Message_ *string `locationName:"message" type:"string"`
  6288  }
  6289  
  6290  // String returns the string representation.
  6291  //
  6292  // API parameter values that are decorated as "sensitive" in the API will not
  6293  // be included in the string output. The member name will be present, but the
  6294  // value will be replaced with "sensitive".
  6295  func (s ServerInternalErrorException) String() string {
  6296  	return awsutil.Prettify(s)
  6297  }
  6298  
  6299  // GoString returns the string representation.
  6300  //
  6301  // API parameter values that are decorated as "sensitive" in the API will not
  6302  // be included in the string output. The member name will be present, but the
  6303  // value will be replaced with "sensitive".
  6304  func (s ServerInternalErrorException) GoString() string {
  6305  	return s.String()
  6306  }
  6307  
  6308  func newErrorServerInternalErrorException(v protocol.ResponseMetadata) error {
  6309  	return &ServerInternalErrorException{
  6310  		RespMetadata: v,
  6311  	}
  6312  }
  6313  
  6314  // Code returns the exception type name.
  6315  func (s *ServerInternalErrorException) Code() string {
  6316  	return "ServerInternalErrorException"
  6317  }
  6318  
  6319  // Message returns the exception's message.
  6320  func (s *ServerInternalErrorException) Message() string {
  6321  	if s.Message_ != nil {
  6322  		return *s.Message_
  6323  	}
  6324  	return ""
  6325  }
  6326  
  6327  // OrigErr always returns nil, satisfies awserr.Error interface.
  6328  func (s *ServerInternalErrorException) OrigErr() error {
  6329  	return nil
  6330  }
  6331  
  6332  func (s *ServerInternalErrorException) Error() string {
  6333  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  6334  }
  6335  
  6336  // Status code returns the HTTP status code for the request's response error.
  6337  func (s *ServerInternalErrorException) StatusCode() int {
  6338  	return s.RespMetadata.StatusCode
  6339  }
  6340  
  6341  // RequestID returns the service's response RequestID for request.
  6342  func (s *ServerInternalErrorException) RequestID() string {
  6343  	return s.RespMetadata.RequestID
  6344  }
  6345  
  6346  type StartContinuousExportInput struct {
  6347  	_ struct{} `type:"structure"`
  6348  }
  6349  
  6350  // String returns the string representation.
  6351  //
  6352  // API parameter values that are decorated as "sensitive" in the API will not
  6353  // be included in the string output. The member name will be present, but the
  6354  // value will be replaced with "sensitive".
  6355  func (s StartContinuousExportInput) String() string {
  6356  	return awsutil.Prettify(s)
  6357  }
  6358  
  6359  // GoString returns the string representation.
  6360  //
  6361  // API parameter values that are decorated as "sensitive" in the API will not
  6362  // be included in the string output. The member name will be present, but the
  6363  // value will be replaced with "sensitive".
  6364  func (s StartContinuousExportInput) GoString() string {
  6365  	return s.String()
  6366  }
  6367  
  6368  type StartContinuousExportOutput struct {
  6369  	_ struct{} `type:"structure"`
  6370  
  6371  	// The type of data collector used to gather this data (currently only offered
  6372  	// for AGENT).
  6373  	DataSource *string `locationName:"dataSource" type:"string" enum:"DataSource"`
  6374  
  6375  	// The unique ID assigned to this export.
  6376  	ExportId *string `locationName:"exportId" type:"string"`
  6377  
  6378  	// The name of the s3 bucket where the export data parquet files are stored.
  6379  	S3Bucket *string `locationName:"s3Bucket" type:"string"`
  6380  
  6381  	// A dictionary which describes how the data is stored.
  6382  	//
  6383  	//    * databaseName - the name of the Glue database used to store the schema.
  6384  	SchemaStorageConfig map[string]*string `locationName:"schemaStorageConfig" type:"map"`
  6385  
  6386  	// The timestamp representing when the continuous export was started.
  6387  	StartTime *time.Time `locationName:"startTime" type:"timestamp"`
  6388  }
  6389  
  6390  // String returns the string representation.
  6391  //
  6392  // API parameter values that are decorated as "sensitive" in the API will not
  6393  // be included in the string output. The member name will be present, but the
  6394  // value will be replaced with "sensitive".
  6395  func (s StartContinuousExportOutput) String() string {
  6396  	return awsutil.Prettify(s)
  6397  }
  6398  
  6399  // GoString returns the string representation.
  6400  //
  6401  // API parameter values that are decorated as "sensitive" in the API will not
  6402  // be included in the string output. The member name will be present, but the
  6403  // value will be replaced with "sensitive".
  6404  func (s StartContinuousExportOutput) GoString() string {
  6405  	return s.String()
  6406  }
  6407  
  6408  // SetDataSource sets the DataSource field's value.
  6409  func (s *StartContinuousExportOutput) SetDataSource(v string) *StartContinuousExportOutput {
  6410  	s.DataSource = &v
  6411  	return s
  6412  }
  6413  
  6414  // SetExportId sets the ExportId field's value.
  6415  func (s *StartContinuousExportOutput) SetExportId(v string) *StartContinuousExportOutput {
  6416  	s.ExportId = &v
  6417  	return s
  6418  }
  6419  
  6420  // SetS3Bucket sets the S3Bucket field's value.
  6421  func (s *StartContinuousExportOutput) SetS3Bucket(v string) *StartContinuousExportOutput {
  6422  	s.S3Bucket = &v
  6423  	return s
  6424  }
  6425  
  6426  // SetSchemaStorageConfig sets the SchemaStorageConfig field's value.
  6427  func (s *StartContinuousExportOutput) SetSchemaStorageConfig(v map[string]*string) *StartContinuousExportOutput {
  6428  	s.SchemaStorageConfig = v
  6429  	return s
  6430  }
  6431  
  6432  // SetStartTime sets the StartTime field's value.
  6433  func (s *StartContinuousExportOutput) SetStartTime(v time.Time) *StartContinuousExportOutput {
  6434  	s.StartTime = &v
  6435  	return s
  6436  }
  6437  
  6438  type StartDataCollectionByAgentIdsInput struct {
  6439  	_ struct{} `type:"structure"`
  6440  
  6441  	// The IDs of the agents or connectors from which to start collecting data.
  6442  	// If you send a request to an agent/connector ID that you do not have permission
  6443  	// to contact, according to your AWS account, the service does not throw an
  6444  	// exception. Instead, it returns the error in the Description field. If you
  6445  	// send a request to multiple agents/connectors and you do not have permission
  6446  	// to contact some of those agents/connectors, the system does not throw an
  6447  	// exception. Instead, the system shows Failed in the Description field.
  6448  	//
  6449  	// AgentIds is a required field
  6450  	AgentIds []*string `locationName:"agentIds" type:"list" required:"true"`
  6451  }
  6452  
  6453  // String returns the string representation.
  6454  //
  6455  // API parameter values that are decorated as "sensitive" in the API will not
  6456  // be included in the string output. The member name will be present, but the
  6457  // value will be replaced with "sensitive".
  6458  func (s StartDataCollectionByAgentIdsInput) String() string {
  6459  	return awsutil.Prettify(s)
  6460  }
  6461  
  6462  // GoString returns the string representation.
  6463  //
  6464  // API parameter values that are decorated as "sensitive" in the API will not
  6465  // be included in the string output. The member name will be present, but the
  6466  // value will be replaced with "sensitive".
  6467  func (s StartDataCollectionByAgentIdsInput) GoString() string {
  6468  	return s.String()
  6469  }
  6470  
  6471  // Validate inspects the fields of the type to determine if they are valid.
  6472  func (s *StartDataCollectionByAgentIdsInput) Validate() error {
  6473  	invalidParams := request.ErrInvalidParams{Context: "StartDataCollectionByAgentIdsInput"}
  6474  	if s.AgentIds == nil {
  6475  		invalidParams.Add(request.NewErrParamRequired("AgentIds"))
  6476  	}
  6477  
  6478  	if invalidParams.Len() > 0 {
  6479  		return invalidParams
  6480  	}
  6481  	return nil
  6482  }
  6483  
  6484  // SetAgentIds sets the AgentIds field's value.
  6485  func (s *StartDataCollectionByAgentIdsInput) SetAgentIds(v []*string) *StartDataCollectionByAgentIdsInput {
  6486  	s.AgentIds = v
  6487  	return s
  6488  }
  6489  
  6490  type StartDataCollectionByAgentIdsOutput struct {
  6491  	_ struct{} `type:"structure"`
  6492  
  6493  	// Information about agents or the connector that were instructed to start collecting
  6494  	// data. Information includes the agent/connector ID, a description of the operation
  6495  	// performed, and whether the agent/connector configuration was updated.
  6496  	AgentsConfigurationStatus []*AgentConfigurationStatus `locationName:"agentsConfigurationStatus" type:"list"`
  6497  }
  6498  
  6499  // String returns the string representation.
  6500  //
  6501  // API parameter values that are decorated as "sensitive" in the API will not
  6502  // be included in the string output. The member name will be present, but the
  6503  // value will be replaced with "sensitive".
  6504  func (s StartDataCollectionByAgentIdsOutput) String() string {
  6505  	return awsutil.Prettify(s)
  6506  }
  6507  
  6508  // GoString returns the string representation.
  6509  //
  6510  // API parameter values that are decorated as "sensitive" in the API will not
  6511  // be included in the string output. The member name will be present, but the
  6512  // value will be replaced with "sensitive".
  6513  func (s StartDataCollectionByAgentIdsOutput) GoString() string {
  6514  	return s.String()
  6515  }
  6516  
  6517  // SetAgentsConfigurationStatus sets the AgentsConfigurationStatus field's value.
  6518  func (s *StartDataCollectionByAgentIdsOutput) SetAgentsConfigurationStatus(v []*AgentConfigurationStatus) *StartDataCollectionByAgentIdsOutput {
  6519  	s.AgentsConfigurationStatus = v
  6520  	return s
  6521  }
  6522  
  6523  type StartExportTaskInput struct {
  6524  	_ struct{} `type:"structure"`
  6525  
  6526  	// The end timestamp for exported data from the single Application Discovery
  6527  	// Agent selected in the filters. If no value is specified, exported data includes
  6528  	// the most recent data collected by the agent.
  6529  	EndTime *time.Time `locationName:"endTime" type:"timestamp"`
  6530  
  6531  	// The file format for the returned export data. Default value is CSV. Note:
  6532  	// The GRAPHML option has been deprecated.
  6533  	ExportDataFormat []*string `locationName:"exportDataFormat" type:"list"`
  6534  
  6535  	// If a filter is present, it selects the single agentId of the Application
  6536  	// Discovery Agent for which data is exported. The agentId can be found in the
  6537  	// results of the DescribeAgents API or CLI. If no filter is present, startTime
  6538  	// and endTime are ignored and exported data includes both Agentless Discovery
  6539  	// Connector data and summary data from Application Discovery agents.
  6540  	Filters []*ExportFilter `locationName:"filters" type:"list"`
  6541  
  6542  	// The start timestamp for exported data from the single Application Discovery
  6543  	// Agent selected in the filters. If no value is specified, data is exported
  6544  	// starting from the first data collected by the agent.
  6545  	StartTime *time.Time `locationName:"startTime" type:"timestamp"`
  6546  }
  6547  
  6548  // String returns the string representation.
  6549  //
  6550  // API parameter values that are decorated as "sensitive" in the API will not
  6551  // be included in the string output. The member name will be present, but the
  6552  // value will be replaced with "sensitive".
  6553  func (s StartExportTaskInput) String() string {
  6554  	return awsutil.Prettify(s)
  6555  }
  6556  
  6557  // GoString returns the string representation.
  6558  //
  6559  // API parameter values that are decorated as "sensitive" in the API will not
  6560  // be included in the string output. The member name will be present, but the
  6561  // value will be replaced with "sensitive".
  6562  func (s StartExportTaskInput) GoString() string {
  6563  	return s.String()
  6564  }
  6565  
  6566  // Validate inspects the fields of the type to determine if they are valid.
  6567  func (s *StartExportTaskInput) Validate() error {
  6568  	invalidParams := request.ErrInvalidParams{Context: "StartExportTaskInput"}
  6569  	if s.Filters != nil {
  6570  		for i, v := range s.Filters {
  6571  			if v == nil {
  6572  				continue
  6573  			}
  6574  			if err := v.Validate(); err != nil {
  6575  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  6576  			}
  6577  		}
  6578  	}
  6579  
  6580  	if invalidParams.Len() > 0 {
  6581  		return invalidParams
  6582  	}
  6583  	return nil
  6584  }
  6585  
  6586  // SetEndTime sets the EndTime field's value.
  6587  func (s *StartExportTaskInput) SetEndTime(v time.Time) *StartExportTaskInput {
  6588  	s.EndTime = &v
  6589  	return s
  6590  }
  6591  
  6592  // SetExportDataFormat sets the ExportDataFormat field's value.
  6593  func (s *StartExportTaskInput) SetExportDataFormat(v []*string) *StartExportTaskInput {
  6594  	s.ExportDataFormat = v
  6595  	return s
  6596  }
  6597  
  6598  // SetFilters sets the Filters field's value.
  6599  func (s *StartExportTaskInput) SetFilters(v []*ExportFilter) *StartExportTaskInput {
  6600  	s.Filters = v
  6601  	return s
  6602  }
  6603  
  6604  // SetStartTime sets the StartTime field's value.
  6605  func (s *StartExportTaskInput) SetStartTime(v time.Time) *StartExportTaskInput {
  6606  	s.StartTime = &v
  6607  	return s
  6608  }
  6609  
  6610  type StartExportTaskOutput struct {
  6611  	_ struct{} `type:"structure"`
  6612  
  6613  	// A unique identifier used to query the status of an export request.
  6614  	ExportId *string `locationName:"exportId" type:"string"`
  6615  }
  6616  
  6617  // String returns the string representation.
  6618  //
  6619  // API parameter values that are decorated as "sensitive" in the API will not
  6620  // be included in the string output. The member name will be present, but the
  6621  // value will be replaced with "sensitive".
  6622  func (s StartExportTaskOutput) String() string {
  6623  	return awsutil.Prettify(s)
  6624  }
  6625  
  6626  // GoString returns the string representation.
  6627  //
  6628  // API parameter values that are decorated as "sensitive" in the API will not
  6629  // be included in the string output. The member name will be present, but the
  6630  // value will be replaced with "sensitive".
  6631  func (s StartExportTaskOutput) GoString() string {
  6632  	return s.String()
  6633  }
  6634  
  6635  // SetExportId sets the ExportId field's value.
  6636  func (s *StartExportTaskOutput) SetExportId(v string) *StartExportTaskOutput {
  6637  	s.ExportId = &v
  6638  	return s
  6639  }
  6640  
  6641  type StartImportTaskInput struct {
  6642  	_ struct{} `type:"structure"`
  6643  
  6644  	// Optional. A unique token that you can provide to prevent the same import
  6645  	// request from occurring more than once. If you don't provide a token, a token
  6646  	// is automatically generated.
  6647  	//
  6648  	// Sending more than one StartImportTask request with the same client request
  6649  	// token will return information about the original import task with that client
  6650  	// request token.
  6651  	ClientRequestToken *string `locationName:"clientRequestToken" min:"1" type:"string" idempotencyToken:"true"`
  6652  
  6653  	// The URL for your import file that you've uploaded to Amazon S3.
  6654  	//
  6655  	// If you're using the AWS CLI, this URL is structured as follows: s3://BucketName/ImportFileName.CSV
  6656  	//
  6657  	// ImportUrl is a required field
  6658  	ImportUrl *string `locationName:"importUrl" min:"1" type:"string" required:"true"`
  6659  
  6660  	// A descriptive name for this request. You can use this name to filter future
  6661  	// requests related to this import task, such as identifying applications and
  6662  	// servers that were included in this import task. We recommend that you use
  6663  	// a meaningful name for each import task.
  6664  	//
  6665  	// Name is a required field
  6666  	Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  6667  }
  6668  
  6669  // String returns the string representation.
  6670  //
  6671  // API parameter values that are decorated as "sensitive" in the API will not
  6672  // be included in the string output. The member name will be present, but the
  6673  // value will be replaced with "sensitive".
  6674  func (s StartImportTaskInput) String() string {
  6675  	return awsutil.Prettify(s)
  6676  }
  6677  
  6678  // GoString returns the string representation.
  6679  //
  6680  // API parameter values that are decorated as "sensitive" in the API will not
  6681  // be included in the string output. The member name will be present, but the
  6682  // value will be replaced with "sensitive".
  6683  func (s StartImportTaskInput) GoString() string {
  6684  	return s.String()
  6685  }
  6686  
  6687  // Validate inspects the fields of the type to determine if they are valid.
  6688  func (s *StartImportTaskInput) Validate() error {
  6689  	invalidParams := request.ErrInvalidParams{Context: "StartImportTaskInput"}
  6690  	if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 {
  6691  		invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1))
  6692  	}
  6693  	if s.ImportUrl == nil {
  6694  		invalidParams.Add(request.NewErrParamRequired("ImportUrl"))
  6695  	}
  6696  	if s.ImportUrl != nil && len(*s.ImportUrl) < 1 {
  6697  		invalidParams.Add(request.NewErrParamMinLen("ImportUrl", 1))
  6698  	}
  6699  	if s.Name == nil {
  6700  		invalidParams.Add(request.NewErrParamRequired("Name"))
  6701  	}
  6702  	if s.Name != nil && len(*s.Name) < 1 {
  6703  		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  6704  	}
  6705  
  6706  	if invalidParams.Len() > 0 {
  6707  		return invalidParams
  6708  	}
  6709  	return nil
  6710  }
  6711  
  6712  // SetClientRequestToken sets the ClientRequestToken field's value.
  6713  func (s *StartImportTaskInput) SetClientRequestToken(v string) *StartImportTaskInput {
  6714  	s.ClientRequestToken = &v
  6715  	return s
  6716  }
  6717  
  6718  // SetImportUrl sets the ImportUrl field's value.
  6719  func (s *StartImportTaskInput) SetImportUrl(v string) *StartImportTaskInput {
  6720  	s.ImportUrl = &v
  6721  	return s
  6722  }
  6723  
  6724  // SetName sets the Name field's value.
  6725  func (s *StartImportTaskInput) SetName(v string) *StartImportTaskInput {
  6726  	s.Name = &v
  6727  	return s
  6728  }
  6729  
  6730  type StartImportTaskOutput struct {
  6731  	_ struct{} `type:"structure"`
  6732  
  6733  	// An array of information related to the import task request including status
  6734  	// information, times, IDs, the Amazon S3 Object URL for the import file, and
  6735  	// more.
  6736  	Task *ImportTask `locationName:"task" type:"structure"`
  6737  }
  6738  
  6739  // String returns the string representation.
  6740  //
  6741  // API parameter values that are decorated as "sensitive" in the API will not
  6742  // be included in the string output. The member name will be present, but the
  6743  // value will be replaced with "sensitive".
  6744  func (s StartImportTaskOutput) String() string {
  6745  	return awsutil.Prettify(s)
  6746  }
  6747  
  6748  // GoString returns the string representation.
  6749  //
  6750  // API parameter values that are decorated as "sensitive" in the API will not
  6751  // be included in the string output. The member name will be present, but the
  6752  // value will be replaced with "sensitive".
  6753  func (s StartImportTaskOutput) GoString() string {
  6754  	return s.String()
  6755  }
  6756  
  6757  // SetTask sets the Task field's value.
  6758  func (s *StartImportTaskOutput) SetTask(v *ImportTask) *StartImportTaskOutput {
  6759  	s.Task = v
  6760  	return s
  6761  }
  6762  
  6763  type StopContinuousExportInput struct {
  6764  	_ struct{} `type:"structure"`
  6765  
  6766  	// The unique ID assigned to this export.
  6767  	//
  6768  	// ExportId is a required field
  6769  	ExportId *string `locationName:"exportId" type:"string" required:"true"`
  6770  }
  6771  
  6772  // String returns the string representation.
  6773  //
  6774  // API parameter values that are decorated as "sensitive" in the API will not
  6775  // be included in the string output. The member name will be present, but the
  6776  // value will be replaced with "sensitive".
  6777  func (s StopContinuousExportInput) String() string {
  6778  	return awsutil.Prettify(s)
  6779  }
  6780  
  6781  // GoString returns the string representation.
  6782  //
  6783  // API parameter values that are decorated as "sensitive" in the API will not
  6784  // be included in the string output. The member name will be present, but the
  6785  // value will be replaced with "sensitive".
  6786  func (s StopContinuousExportInput) GoString() string {
  6787  	return s.String()
  6788  }
  6789  
  6790  // Validate inspects the fields of the type to determine if they are valid.
  6791  func (s *StopContinuousExportInput) Validate() error {
  6792  	invalidParams := request.ErrInvalidParams{Context: "StopContinuousExportInput"}
  6793  	if s.ExportId == nil {
  6794  		invalidParams.Add(request.NewErrParamRequired("ExportId"))
  6795  	}
  6796  
  6797  	if invalidParams.Len() > 0 {
  6798  		return invalidParams
  6799  	}
  6800  	return nil
  6801  }
  6802  
  6803  // SetExportId sets the ExportId field's value.
  6804  func (s *StopContinuousExportInput) SetExportId(v string) *StopContinuousExportInput {
  6805  	s.ExportId = &v
  6806  	return s
  6807  }
  6808  
  6809  type StopContinuousExportOutput struct {
  6810  	_ struct{} `type:"structure"`
  6811  
  6812  	// Timestamp that represents when this continuous export started collecting
  6813  	// data.
  6814  	StartTime *time.Time `locationName:"startTime" type:"timestamp"`
  6815  
  6816  	// Timestamp that represents when this continuous export was stopped.
  6817  	StopTime *time.Time `locationName:"stopTime" type:"timestamp"`
  6818  }
  6819  
  6820  // String returns the string representation.
  6821  //
  6822  // API parameter values that are decorated as "sensitive" in the API will not
  6823  // be included in the string output. The member name will be present, but the
  6824  // value will be replaced with "sensitive".
  6825  func (s StopContinuousExportOutput) String() string {
  6826  	return awsutil.Prettify(s)
  6827  }
  6828  
  6829  // GoString returns the string representation.
  6830  //
  6831  // API parameter values that are decorated as "sensitive" in the API will not
  6832  // be included in the string output. The member name will be present, but the
  6833  // value will be replaced with "sensitive".
  6834  func (s StopContinuousExportOutput) GoString() string {
  6835  	return s.String()
  6836  }
  6837  
  6838  // SetStartTime sets the StartTime field's value.
  6839  func (s *StopContinuousExportOutput) SetStartTime(v time.Time) *StopContinuousExportOutput {
  6840  	s.StartTime = &v
  6841  	return s
  6842  }
  6843  
  6844  // SetStopTime sets the StopTime field's value.
  6845  func (s *StopContinuousExportOutput) SetStopTime(v time.Time) *StopContinuousExportOutput {
  6846  	s.StopTime = &v
  6847  	return s
  6848  }
  6849  
  6850  type StopDataCollectionByAgentIdsInput struct {
  6851  	_ struct{} `type:"structure"`
  6852  
  6853  	// The IDs of the agents or connectors from which to stop collecting data.
  6854  	//
  6855  	// AgentIds is a required field
  6856  	AgentIds []*string `locationName:"agentIds" type:"list" required:"true"`
  6857  }
  6858  
  6859  // String returns the string representation.
  6860  //
  6861  // API parameter values that are decorated as "sensitive" in the API will not
  6862  // be included in the string output. The member name will be present, but the
  6863  // value will be replaced with "sensitive".
  6864  func (s StopDataCollectionByAgentIdsInput) String() string {
  6865  	return awsutil.Prettify(s)
  6866  }
  6867  
  6868  // GoString returns the string representation.
  6869  //
  6870  // API parameter values that are decorated as "sensitive" in the API will not
  6871  // be included in the string output. The member name will be present, but the
  6872  // value will be replaced with "sensitive".
  6873  func (s StopDataCollectionByAgentIdsInput) GoString() string {
  6874  	return s.String()
  6875  }
  6876  
  6877  // Validate inspects the fields of the type to determine if they are valid.
  6878  func (s *StopDataCollectionByAgentIdsInput) Validate() error {
  6879  	invalidParams := request.ErrInvalidParams{Context: "StopDataCollectionByAgentIdsInput"}
  6880  	if s.AgentIds == nil {
  6881  		invalidParams.Add(request.NewErrParamRequired("AgentIds"))
  6882  	}
  6883  
  6884  	if invalidParams.Len() > 0 {
  6885  		return invalidParams
  6886  	}
  6887  	return nil
  6888  }
  6889  
  6890  // SetAgentIds sets the AgentIds field's value.
  6891  func (s *StopDataCollectionByAgentIdsInput) SetAgentIds(v []*string) *StopDataCollectionByAgentIdsInput {
  6892  	s.AgentIds = v
  6893  	return s
  6894  }
  6895  
  6896  type StopDataCollectionByAgentIdsOutput struct {
  6897  	_ struct{} `type:"structure"`
  6898  
  6899  	// Information about the agents or connector that were instructed to stop collecting
  6900  	// data. Information includes the agent/connector ID, a description of the operation
  6901  	// performed, and whether the agent/connector configuration was updated.
  6902  	AgentsConfigurationStatus []*AgentConfigurationStatus `locationName:"agentsConfigurationStatus" type:"list"`
  6903  }
  6904  
  6905  // String returns the string representation.
  6906  //
  6907  // API parameter values that are decorated as "sensitive" in the API will not
  6908  // be included in the string output. The member name will be present, but the
  6909  // value will be replaced with "sensitive".
  6910  func (s StopDataCollectionByAgentIdsOutput) String() string {
  6911  	return awsutil.Prettify(s)
  6912  }
  6913  
  6914  // GoString returns the string representation.
  6915  //
  6916  // API parameter values that are decorated as "sensitive" in the API will not
  6917  // be included in the string output. The member name will be present, but the
  6918  // value will be replaced with "sensitive".
  6919  func (s StopDataCollectionByAgentIdsOutput) GoString() string {
  6920  	return s.String()
  6921  }
  6922  
  6923  // SetAgentsConfigurationStatus sets the AgentsConfigurationStatus field's value.
  6924  func (s *StopDataCollectionByAgentIdsOutput) SetAgentsConfigurationStatus(v []*AgentConfigurationStatus) *StopDataCollectionByAgentIdsOutput {
  6925  	s.AgentsConfigurationStatus = v
  6926  	return s
  6927  }
  6928  
  6929  // Metadata that help you categorize IT assets.
  6930  type Tag struct {
  6931  	_ struct{} `type:"structure"`
  6932  
  6933  	// The type of tag on which to filter.
  6934  	//
  6935  	// Key is a required field
  6936  	Key *string `locationName:"key" type:"string" required:"true"`
  6937  
  6938  	// A value for a tag key on which to filter.
  6939  	//
  6940  	// Value is a required field
  6941  	Value *string `locationName:"value" type:"string" required:"true"`
  6942  }
  6943  
  6944  // String returns the string representation.
  6945  //
  6946  // API parameter values that are decorated as "sensitive" in the API will not
  6947  // be included in the string output. The member name will be present, but the
  6948  // value will be replaced with "sensitive".
  6949  func (s Tag) String() string {
  6950  	return awsutil.Prettify(s)
  6951  }
  6952  
  6953  // GoString returns the string representation.
  6954  //
  6955  // API parameter values that are decorated as "sensitive" in the API will not
  6956  // be included in the string output. The member name will be present, but the
  6957  // value will be replaced with "sensitive".
  6958  func (s Tag) GoString() string {
  6959  	return s.String()
  6960  }
  6961  
  6962  // Validate inspects the fields of the type to determine if they are valid.
  6963  func (s *Tag) Validate() error {
  6964  	invalidParams := request.ErrInvalidParams{Context: "Tag"}
  6965  	if s.Key == nil {
  6966  		invalidParams.Add(request.NewErrParamRequired("Key"))
  6967  	}
  6968  	if s.Value == nil {
  6969  		invalidParams.Add(request.NewErrParamRequired("Value"))
  6970  	}
  6971  
  6972  	if invalidParams.Len() > 0 {
  6973  		return invalidParams
  6974  	}
  6975  	return nil
  6976  }
  6977  
  6978  // SetKey sets the Key field's value.
  6979  func (s *Tag) SetKey(v string) *Tag {
  6980  	s.Key = &v
  6981  	return s
  6982  }
  6983  
  6984  // SetValue sets the Value field's value.
  6985  func (s *Tag) SetValue(v string) *Tag {
  6986  	s.Value = &v
  6987  	return s
  6988  }
  6989  
  6990  // The tag filter. Valid names are: tagKey, tagValue, configurationId.
  6991  type TagFilter struct {
  6992  	_ struct{} `type:"structure"`
  6993  
  6994  	// A name of the tag filter.
  6995  	//
  6996  	// Name is a required field
  6997  	Name *string `locationName:"name" type:"string" required:"true"`
  6998  
  6999  	// Values for the tag filter.
  7000  	//
  7001  	// Values is a required field
  7002  	Values []*string `locationName:"values" type:"list" required:"true"`
  7003  }
  7004  
  7005  // String returns the string representation.
  7006  //
  7007  // API parameter values that are decorated as "sensitive" in the API will not
  7008  // be included in the string output. The member name will be present, but the
  7009  // value will be replaced with "sensitive".
  7010  func (s TagFilter) String() string {
  7011  	return awsutil.Prettify(s)
  7012  }
  7013  
  7014  // GoString returns the string representation.
  7015  //
  7016  // API parameter values that are decorated as "sensitive" in the API will not
  7017  // be included in the string output. The member name will be present, but the
  7018  // value will be replaced with "sensitive".
  7019  func (s TagFilter) GoString() string {
  7020  	return s.String()
  7021  }
  7022  
  7023  // Validate inspects the fields of the type to determine if they are valid.
  7024  func (s *TagFilter) Validate() error {
  7025  	invalidParams := request.ErrInvalidParams{Context: "TagFilter"}
  7026  	if s.Name == nil {
  7027  		invalidParams.Add(request.NewErrParamRequired("Name"))
  7028  	}
  7029  	if s.Values == nil {
  7030  		invalidParams.Add(request.NewErrParamRequired("Values"))
  7031  	}
  7032  
  7033  	if invalidParams.Len() > 0 {
  7034  		return invalidParams
  7035  	}
  7036  	return nil
  7037  }
  7038  
  7039  // SetName sets the Name field's value.
  7040  func (s *TagFilter) SetName(v string) *TagFilter {
  7041  	s.Name = &v
  7042  	return s
  7043  }
  7044  
  7045  // SetValues sets the Values field's value.
  7046  func (s *TagFilter) SetValues(v []*string) *TagFilter {
  7047  	s.Values = v
  7048  	return s
  7049  }
  7050  
  7051  type UpdateApplicationInput struct {
  7052  	_ struct{} `type:"structure"`
  7053  
  7054  	// Configuration ID of the application to be updated.
  7055  	//
  7056  	// ConfigurationId is a required field
  7057  	ConfigurationId *string `locationName:"configurationId" type:"string" required:"true"`
  7058  
  7059  	// New description of the application to be updated.
  7060  	Description *string `locationName:"description" type:"string"`
  7061  
  7062  	// New name of the application to be updated.
  7063  	Name *string `locationName:"name" type:"string"`
  7064  }
  7065  
  7066  // String returns the string representation.
  7067  //
  7068  // API parameter values that are decorated as "sensitive" in the API will not
  7069  // be included in the string output. The member name will be present, but the
  7070  // value will be replaced with "sensitive".
  7071  func (s UpdateApplicationInput) String() string {
  7072  	return awsutil.Prettify(s)
  7073  }
  7074  
  7075  // GoString returns the string representation.
  7076  //
  7077  // API parameter values that are decorated as "sensitive" in the API will not
  7078  // be included in the string output. The member name will be present, but the
  7079  // value will be replaced with "sensitive".
  7080  func (s UpdateApplicationInput) GoString() string {
  7081  	return s.String()
  7082  }
  7083  
  7084  // Validate inspects the fields of the type to determine if they are valid.
  7085  func (s *UpdateApplicationInput) Validate() error {
  7086  	invalidParams := request.ErrInvalidParams{Context: "UpdateApplicationInput"}
  7087  	if s.ConfigurationId == nil {
  7088  		invalidParams.Add(request.NewErrParamRequired("ConfigurationId"))
  7089  	}
  7090  
  7091  	if invalidParams.Len() > 0 {
  7092  		return invalidParams
  7093  	}
  7094  	return nil
  7095  }
  7096  
  7097  // SetConfigurationId sets the ConfigurationId field's value.
  7098  func (s *UpdateApplicationInput) SetConfigurationId(v string) *UpdateApplicationInput {
  7099  	s.ConfigurationId = &v
  7100  	return s
  7101  }
  7102  
  7103  // SetDescription sets the Description field's value.
  7104  func (s *UpdateApplicationInput) SetDescription(v string) *UpdateApplicationInput {
  7105  	s.Description = &v
  7106  	return s
  7107  }
  7108  
  7109  // SetName sets the Name field's value.
  7110  func (s *UpdateApplicationInput) SetName(v string) *UpdateApplicationInput {
  7111  	s.Name = &v
  7112  	return s
  7113  }
  7114  
  7115  type UpdateApplicationOutput struct {
  7116  	_ struct{} `type:"structure"`
  7117  }
  7118  
  7119  // String returns the string representation.
  7120  //
  7121  // API parameter values that are decorated as "sensitive" in the API will not
  7122  // be included in the string output. The member name will be present, but the
  7123  // value will be replaced with "sensitive".
  7124  func (s UpdateApplicationOutput) String() string {
  7125  	return awsutil.Prettify(s)
  7126  }
  7127  
  7128  // GoString returns the string representation.
  7129  //
  7130  // API parameter values that are decorated as "sensitive" in the API will not
  7131  // be included in the string output. The member name will be present, but the
  7132  // value will be replaced with "sensitive".
  7133  func (s UpdateApplicationOutput) GoString() string {
  7134  	return s.String()
  7135  }
  7136  
  7137  const (
  7138  	// AgentStatusHealthy is a AgentStatus enum value
  7139  	AgentStatusHealthy = "HEALTHY"
  7140  
  7141  	// AgentStatusUnhealthy is a AgentStatus enum value
  7142  	AgentStatusUnhealthy = "UNHEALTHY"
  7143  
  7144  	// AgentStatusRunning is a AgentStatus enum value
  7145  	AgentStatusRunning = "RUNNING"
  7146  
  7147  	// AgentStatusUnknown is a AgentStatus enum value
  7148  	AgentStatusUnknown = "UNKNOWN"
  7149  
  7150  	// AgentStatusBlacklisted is a AgentStatus enum value
  7151  	AgentStatusBlacklisted = "BLACKLISTED"
  7152  
  7153  	// AgentStatusShutdown is a AgentStatus enum value
  7154  	AgentStatusShutdown = "SHUTDOWN"
  7155  )
  7156  
  7157  // AgentStatus_Values returns all elements of the AgentStatus enum
  7158  func AgentStatus_Values() []string {
  7159  	return []string{
  7160  		AgentStatusHealthy,
  7161  		AgentStatusUnhealthy,
  7162  		AgentStatusRunning,
  7163  		AgentStatusUnknown,
  7164  		AgentStatusBlacklisted,
  7165  		AgentStatusShutdown,
  7166  	}
  7167  }
  7168  
  7169  const (
  7170  	// BatchDeleteImportDataErrorCodeNotFound is a BatchDeleteImportDataErrorCode enum value
  7171  	BatchDeleteImportDataErrorCodeNotFound = "NOT_FOUND"
  7172  
  7173  	// BatchDeleteImportDataErrorCodeInternalServerError is a BatchDeleteImportDataErrorCode enum value
  7174  	BatchDeleteImportDataErrorCodeInternalServerError = "INTERNAL_SERVER_ERROR"
  7175  
  7176  	// BatchDeleteImportDataErrorCodeOverLimit is a BatchDeleteImportDataErrorCode enum value
  7177  	BatchDeleteImportDataErrorCodeOverLimit = "OVER_LIMIT"
  7178  )
  7179  
  7180  // BatchDeleteImportDataErrorCode_Values returns all elements of the BatchDeleteImportDataErrorCode enum
  7181  func BatchDeleteImportDataErrorCode_Values() []string {
  7182  	return []string{
  7183  		BatchDeleteImportDataErrorCodeNotFound,
  7184  		BatchDeleteImportDataErrorCodeInternalServerError,
  7185  		BatchDeleteImportDataErrorCodeOverLimit,
  7186  	}
  7187  }
  7188  
  7189  const (
  7190  	// ConfigurationItemTypeServer is a ConfigurationItemType enum value
  7191  	ConfigurationItemTypeServer = "SERVER"
  7192  
  7193  	// ConfigurationItemTypeProcess is a ConfigurationItemType enum value
  7194  	ConfigurationItemTypeProcess = "PROCESS"
  7195  
  7196  	// ConfigurationItemTypeConnection is a ConfigurationItemType enum value
  7197  	ConfigurationItemTypeConnection = "CONNECTION"
  7198  
  7199  	// ConfigurationItemTypeApplication is a ConfigurationItemType enum value
  7200  	ConfigurationItemTypeApplication = "APPLICATION"
  7201  )
  7202  
  7203  // ConfigurationItemType_Values returns all elements of the ConfigurationItemType enum
  7204  func ConfigurationItemType_Values() []string {
  7205  	return []string{
  7206  		ConfigurationItemTypeServer,
  7207  		ConfigurationItemTypeProcess,
  7208  		ConfigurationItemTypeConnection,
  7209  		ConfigurationItemTypeApplication,
  7210  	}
  7211  }
  7212  
  7213  const (
  7214  	// ContinuousExportStatusStartInProgress is a ContinuousExportStatus enum value
  7215  	ContinuousExportStatusStartInProgress = "START_IN_PROGRESS"
  7216  
  7217  	// ContinuousExportStatusStartFailed is a ContinuousExportStatus enum value
  7218  	ContinuousExportStatusStartFailed = "START_FAILED"
  7219  
  7220  	// ContinuousExportStatusActive is a ContinuousExportStatus enum value
  7221  	ContinuousExportStatusActive = "ACTIVE"
  7222  
  7223  	// ContinuousExportStatusError is a ContinuousExportStatus enum value
  7224  	ContinuousExportStatusError = "ERROR"
  7225  
  7226  	// ContinuousExportStatusStopInProgress is a ContinuousExportStatus enum value
  7227  	ContinuousExportStatusStopInProgress = "STOP_IN_PROGRESS"
  7228  
  7229  	// ContinuousExportStatusStopFailed is a ContinuousExportStatus enum value
  7230  	ContinuousExportStatusStopFailed = "STOP_FAILED"
  7231  
  7232  	// ContinuousExportStatusInactive is a ContinuousExportStatus enum value
  7233  	ContinuousExportStatusInactive = "INACTIVE"
  7234  )
  7235  
  7236  // ContinuousExportStatus_Values returns all elements of the ContinuousExportStatus enum
  7237  func ContinuousExportStatus_Values() []string {
  7238  	return []string{
  7239  		ContinuousExportStatusStartInProgress,
  7240  		ContinuousExportStatusStartFailed,
  7241  		ContinuousExportStatusActive,
  7242  		ContinuousExportStatusError,
  7243  		ContinuousExportStatusStopInProgress,
  7244  		ContinuousExportStatusStopFailed,
  7245  		ContinuousExportStatusInactive,
  7246  	}
  7247  }
  7248  
  7249  const (
  7250  	// DataSourceAgent is a DataSource enum value
  7251  	DataSourceAgent = "AGENT"
  7252  )
  7253  
  7254  // DataSource_Values returns all elements of the DataSource enum
  7255  func DataSource_Values() []string {
  7256  	return []string{
  7257  		DataSourceAgent,
  7258  	}
  7259  }
  7260  
  7261  const (
  7262  	// ExportDataFormatCsv is a ExportDataFormat enum value
  7263  	ExportDataFormatCsv = "CSV"
  7264  
  7265  	// ExportDataFormatGraphml is a ExportDataFormat enum value
  7266  	ExportDataFormatGraphml = "GRAPHML"
  7267  )
  7268  
  7269  // ExportDataFormat_Values returns all elements of the ExportDataFormat enum
  7270  func ExportDataFormat_Values() []string {
  7271  	return []string{
  7272  		ExportDataFormatCsv,
  7273  		ExportDataFormatGraphml,
  7274  	}
  7275  }
  7276  
  7277  const (
  7278  	// ExportStatusFailed is a ExportStatus enum value
  7279  	ExportStatusFailed = "FAILED"
  7280  
  7281  	// ExportStatusSucceeded is a ExportStatus enum value
  7282  	ExportStatusSucceeded = "SUCCEEDED"
  7283  
  7284  	// ExportStatusInProgress is a ExportStatus enum value
  7285  	ExportStatusInProgress = "IN_PROGRESS"
  7286  )
  7287  
  7288  // ExportStatus_Values returns all elements of the ExportStatus enum
  7289  func ExportStatus_Values() []string {
  7290  	return []string{
  7291  		ExportStatusFailed,
  7292  		ExportStatusSucceeded,
  7293  		ExportStatusInProgress,
  7294  	}
  7295  }
  7296  
  7297  const (
  7298  	// ImportStatusImportInProgress is a ImportStatus enum value
  7299  	ImportStatusImportInProgress = "IMPORT_IN_PROGRESS"
  7300  
  7301  	// ImportStatusImportComplete is a ImportStatus enum value
  7302  	ImportStatusImportComplete = "IMPORT_COMPLETE"
  7303  
  7304  	// ImportStatusImportCompleteWithErrors is a ImportStatus enum value
  7305  	ImportStatusImportCompleteWithErrors = "IMPORT_COMPLETE_WITH_ERRORS"
  7306  
  7307  	// ImportStatusImportFailed is a ImportStatus enum value
  7308  	ImportStatusImportFailed = "IMPORT_FAILED"
  7309  
  7310  	// ImportStatusImportFailedServerLimitExceeded is a ImportStatus enum value
  7311  	ImportStatusImportFailedServerLimitExceeded = "IMPORT_FAILED_SERVER_LIMIT_EXCEEDED"
  7312  
  7313  	// ImportStatusImportFailedRecordLimitExceeded is a ImportStatus enum value
  7314  	ImportStatusImportFailedRecordLimitExceeded = "IMPORT_FAILED_RECORD_LIMIT_EXCEEDED"
  7315  
  7316  	// ImportStatusDeleteInProgress is a ImportStatus enum value
  7317  	ImportStatusDeleteInProgress = "DELETE_IN_PROGRESS"
  7318  
  7319  	// ImportStatusDeleteComplete is a ImportStatus enum value
  7320  	ImportStatusDeleteComplete = "DELETE_COMPLETE"
  7321  
  7322  	// ImportStatusDeleteFailed is a ImportStatus enum value
  7323  	ImportStatusDeleteFailed = "DELETE_FAILED"
  7324  
  7325  	// ImportStatusDeleteFailedLimitExceeded is a ImportStatus enum value
  7326  	ImportStatusDeleteFailedLimitExceeded = "DELETE_FAILED_LIMIT_EXCEEDED"
  7327  
  7328  	// ImportStatusInternalError is a ImportStatus enum value
  7329  	ImportStatusInternalError = "INTERNAL_ERROR"
  7330  )
  7331  
  7332  // ImportStatus_Values returns all elements of the ImportStatus enum
  7333  func ImportStatus_Values() []string {
  7334  	return []string{
  7335  		ImportStatusImportInProgress,
  7336  		ImportStatusImportComplete,
  7337  		ImportStatusImportCompleteWithErrors,
  7338  		ImportStatusImportFailed,
  7339  		ImportStatusImportFailedServerLimitExceeded,
  7340  		ImportStatusImportFailedRecordLimitExceeded,
  7341  		ImportStatusDeleteInProgress,
  7342  		ImportStatusDeleteComplete,
  7343  		ImportStatusDeleteFailed,
  7344  		ImportStatusDeleteFailedLimitExceeded,
  7345  		ImportStatusInternalError,
  7346  	}
  7347  }
  7348  
  7349  const (
  7350  	// ImportTaskFilterNameImportTaskId is a ImportTaskFilterName enum value
  7351  	ImportTaskFilterNameImportTaskId = "IMPORT_TASK_ID"
  7352  
  7353  	// ImportTaskFilterNameStatus is a ImportTaskFilterName enum value
  7354  	ImportTaskFilterNameStatus = "STATUS"
  7355  
  7356  	// ImportTaskFilterNameName is a ImportTaskFilterName enum value
  7357  	ImportTaskFilterNameName = "NAME"
  7358  )
  7359  
  7360  // ImportTaskFilterName_Values returns all elements of the ImportTaskFilterName enum
  7361  func ImportTaskFilterName_Values() []string {
  7362  	return []string{
  7363  		ImportTaskFilterNameImportTaskId,
  7364  		ImportTaskFilterNameStatus,
  7365  		ImportTaskFilterNameName,
  7366  	}
  7367  }
  7368  
  7369  const (
  7370  	// OrderStringAsc is a OrderString enum value
  7371  	OrderStringAsc = "ASC"
  7372  
  7373  	// OrderStringDesc is a OrderString enum value
  7374  	OrderStringDesc = "DESC"
  7375  )
  7376  
  7377  // OrderString_Values returns all elements of the OrderString enum
  7378  func OrderString_Values() []string {
  7379  	return []string{
  7380  		OrderStringAsc,
  7381  		OrderStringDesc,
  7382  	}
  7383  }