service.go 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. package elasticbeanstalk
  3. import (
  4. "github.com/aws/aws-sdk-go/aws"
  5. "github.com/aws/aws-sdk-go/aws/defaults"
  6. "github.com/aws/aws-sdk-go/aws/request"
  7. "github.com/aws/aws-sdk-go/aws/service"
  8. "github.com/aws/aws-sdk-go/aws/service/serviceinfo"
  9. "github.com/aws/aws-sdk-go/internal/protocol/query"
  10. "github.com/aws/aws-sdk-go/internal/signer/v4"
  11. )
  12. // This is the AWS Elastic Beanstalk API Reference. This guide provides detailed
  13. // information about AWS Elastic Beanstalk actions, data types, parameters,
  14. // and errors.
  15. //
  16. // AWS Elastic Beanstalk is a tool that makes it easy for you to create, deploy,
  17. // and manage scalable, fault-tolerant applications running on Amazon Web Services
  18. // cloud resources.
  19. //
  20. // For more information about this product, go to the AWS Elastic Beanstalk
  21. // (http://aws.amazon.com/elasticbeanstalk/) details page. The location of the
  22. // latest AWS Elastic Beanstalk WSDL is http://elasticbeanstalk.s3.amazonaws.com/doc/2010-12-01/AWSElasticBeanstalk.wsdl
  23. // (http://elasticbeanstalk.s3.amazonaws.com/doc/2010-12-01/AWSElasticBeanstalk.wsdl).
  24. // To install the Software Development Kits (SDKs), Integrated Development Environment
  25. // (IDE) Toolkits, and command line tools that enable you to access the API,
  26. // go to Tools for Amazon Web Services (https://aws.amazon.com/tools/).
  27. //
  28. // Endpoints
  29. //
  30. // For a list of region-specific endpoints that AWS Elastic Beanstalk supports,
  31. // go to Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#elasticbeanstalk_region)
  32. // in the Amazon Web Services Glossary.
  33. type ElasticBeanstalk struct {
  34. *service.Service
  35. }
  36. // Used for custom service initialization logic
  37. var initService func(*service.Service)
  38. // Used for custom request initialization logic
  39. var initRequest func(*request.Request)
  40. // New returns a new ElasticBeanstalk client.
  41. func New(config *aws.Config) *ElasticBeanstalk {
  42. service := &service.Service{
  43. ServiceInfo: serviceinfo.ServiceInfo{
  44. Config: defaults.DefaultConfig.Merge(config),
  45. ServiceName: "elasticbeanstalk",
  46. APIVersion: "2010-12-01",
  47. },
  48. }
  49. service.Initialize()
  50. // Handlers
  51. service.Handlers.Sign.PushBack(v4.Sign)
  52. service.Handlers.Build.PushBack(query.Build)
  53. service.Handlers.Unmarshal.PushBack(query.Unmarshal)
  54. service.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta)
  55. service.Handlers.UnmarshalError.PushBack(query.UnmarshalError)
  56. // Run custom service initialization if present
  57. if initService != nil {
  58. initService(service)
  59. }
  60. return &ElasticBeanstalk{service}
  61. }
  62. // newRequest creates a new request for a ElasticBeanstalk operation and runs any
  63. // custom request initialization.
  64. func (c *ElasticBeanstalk) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  65. req := c.NewRequest(op, params, data)
  66. // Run custom request initialization if present
  67. if initRequest != nil {
  68. initRequest(req)
  69. }
  70. return req
  71. }