forked from aws/aws-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.go
3876 lines (3120 loc) · 126 KB
/
api.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
// Package elasticbeanstalk provides a client for AWS Elastic Beanstalk.
package elasticbeanstalk
import (
"time"
"github.com/aws/aws-sdk-go/aws/awsutil"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/query"
)
const opAbortEnvironmentUpdate = "AbortEnvironmentUpdate"
// AbortEnvironmentUpdateRequest generates a request for the AbortEnvironmentUpdate operation.
func (c *ElasticBeanstalk) AbortEnvironmentUpdateRequest(input *AbortEnvironmentUpdateInput) (req *request.Request, output *AbortEnvironmentUpdateOutput) {
op := &request.Operation{
Name: opAbortEnvironmentUpdate,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &AbortEnvironmentUpdateInput{}
}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output = &AbortEnvironmentUpdateOutput{}
req.Data = output
return
}
// Cancels in-progress environment configuration update or application version
// deployment.
func (c *ElasticBeanstalk) AbortEnvironmentUpdate(input *AbortEnvironmentUpdateInput) (*AbortEnvironmentUpdateOutput, error) {
req, out := c.AbortEnvironmentUpdateRequest(input)
err := req.Send()
return out, err
}
const opCheckDNSAvailability = "CheckDNSAvailability"
// CheckDNSAvailabilityRequest generates a request for the CheckDNSAvailability operation.
func (c *ElasticBeanstalk) CheckDNSAvailabilityRequest(input *CheckDNSAvailabilityInput) (req *request.Request, output *CheckDNSAvailabilityOutput) {
op := &request.Operation{
Name: opCheckDNSAvailability,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CheckDNSAvailabilityInput{}
}
req = c.newRequest(op, input, output)
output = &CheckDNSAvailabilityOutput{}
req.Data = output
return
}
// Checks if the specified CNAME is available.
func (c *ElasticBeanstalk) CheckDNSAvailability(input *CheckDNSAvailabilityInput) (*CheckDNSAvailabilityOutput, error) {
req, out := c.CheckDNSAvailabilityRequest(input)
err := req.Send()
return out, err
}
const opComposeEnvironments = "ComposeEnvironments"
// ComposeEnvironmentsRequest generates a request for the ComposeEnvironments operation.
func (c *ElasticBeanstalk) ComposeEnvironmentsRequest(input *ComposeEnvironmentsInput) (req *request.Request, output *EnvironmentDescriptionsMessage) {
op := &request.Operation{
Name: opComposeEnvironments,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ComposeEnvironmentsInput{}
}
req = c.newRequest(op, input, output)
output = &EnvironmentDescriptionsMessage{}
req.Data = output
return
}
// Create or update a group of environments that each run a separate component
// of a single application. Takes a list of version labels that specify application
// source bundles for each of the environments to create or update. The name
// of each environment and other required information must be included in the
// source bundles in an environment manifest named env.yaml. See Compose Environments
// (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environment-mgmt-compose.html)
// for details.
func (c *ElasticBeanstalk) ComposeEnvironments(input *ComposeEnvironmentsInput) (*EnvironmentDescriptionsMessage, error) {
req, out := c.ComposeEnvironmentsRequest(input)
err := req.Send()
return out, err
}
const opCreateApplication = "CreateApplication"
// CreateApplicationRequest generates a request for the CreateApplication operation.
func (c *ElasticBeanstalk) CreateApplicationRequest(input *CreateApplicationInput) (req *request.Request, output *ApplicationDescriptionMessage) {
op := &request.Operation{
Name: opCreateApplication,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateApplicationInput{}
}
req = c.newRequest(op, input, output)
output = &ApplicationDescriptionMessage{}
req.Data = output
return
}
// Creates an application that has one configuration template named default
// and no application versions.
func (c *ElasticBeanstalk) CreateApplication(input *CreateApplicationInput) (*ApplicationDescriptionMessage, error) {
req, out := c.CreateApplicationRequest(input)
err := req.Send()
return out, err
}
const opCreateApplicationVersion = "CreateApplicationVersion"
// CreateApplicationVersionRequest generates a request for the CreateApplicationVersion operation.
func (c *ElasticBeanstalk) CreateApplicationVersionRequest(input *CreateApplicationVersionInput) (req *request.Request, output *ApplicationVersionDescriptionMessage) {
op := &request.Operation{
Name: opCreateApplicationVersion,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateApplicationVersionInput{}
}
req = c.newRequest(op, input, output)
output = &ApplicationVersionDescriptionMessage{}
req.Data = output
return
}
// Creates an application version for the specified application.
//
// Once you create an application version with a specified Amazon S3 bucket
// and key location, you cannot change that Amazon S3 location. If you change
// the Amazon S3 location, you receive an exception when you attempt to launch
// an environment from the application version.
func (c *ElasticBeanstalk) CreateApplicationVersion(input *CreateApplicationVersionInput) (*ApplicationVersionDescriptionMessage, error) {
req, out := c.CreateApplicationVersionRequest(input)
err := req.Send()
return out, err
}
const opCreateConfigurationTemplate = "CreateConfigurationTemplate"
// CreateConfigurationTemplateRequest generates a request for the CreateConfigurationTemplate operation.
func (c *ElasticBeanstalk) CreateConfigurationTemplateRequest(input *CreateConfigurationTemplateInput) (req *request.Request, output *ConfigurationSettingsDescription) {
op := &request.Operation{
Name: opCreateConfigurationTemplate,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateConfigurationTemplateInput{}
}
req = c.newRequest(op, input, output)
output = &ConfigurationSettingsDescription{}
req.Data = output
return
}
// Creates a configuration template. Templates are associated with a specific
// application and are used to deploy different versions of the application
// with the same configuration settings.
//
// Related Topics
//
// DescribeConfigurationOptions DescribeConfigurationSettings ListAvailableSolutionStacks
func (c *ElasticBeanstalk) CreateConfigurationTemplate(input *CreateConfigurationTemplateInput) (*ConfigurationSettingsDescription, error) {
req, out := c.CreateConfigurationTemplateRequest(input)
err := req.Send()
return out, err
}
const opCreateEnvironment = "CreateEnvironment"
// CreateEnvironmentRequest generates a request for the CreateEnvironment operation.
func (c *ElasticBeanstalk) CreateEnvironmentRequest(input *CreateEnvironmentInput) (req *request.Request, output *EnvironmentDescription) {
op := &request.Operation{
Name: opCreateEnvironment,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateEnvironmentInput{}
}
req = c.newRequest(op, input, output)
output = &EnvironmentDescription{}
req.Data = output
return
}
// Launches an environment for the specified application using the specified
// configuration.
func (c *ElasticBeanstalk) CreateEnvironment(input *CreateEnvironmentInput) (*EnvironmentDescription, error) {
req, out := c.CreateEnvironmentRequest(input)
err := req.Send()
return out, err
}
const opCreateStorageLocation = "CreateStorageLocation"
// CreateStorageLocationRequest generates a request for the CreateStorageLocation operation.
func (c *ElasticBeanstalk) CreateStorageLocationRequest(input *CreateStorageLocationInput) (req *request.Request, output *CreateStorageLocationOutput) {
op := &request.Operation{
Name: opCreateStorageLocation,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateStorageLocationInput{}
}
req = c.newRequest(op, input, output)
output = &CreateStorageLocationOutput{}
req.Data = output
return
}
// Creates the Amazon S3 storage location for the account.
//
// This location is used to store user log files.
func (c *ElasticBeanstalk) CreateStorageLocation(input *CreateStorageLocationInput) (*CreateStorageLocationOutput, error) {
req, out := c.CreateStorageLocationRequest(input)
err := req.Send()
return out, err
}
const opDeleteApplication = "DeleteApplication"
// DeleteApplicationRequest generates a request for the DeleteApplication operation.
func (c *ElasticBeanstalk) DeleteApplicationRequest(input *DeleteApplicationInput) (req *request.Request, output *DeleteApplicationOutput) {
op := &request.Operation{
Name: opDeleteApplication,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteApplicationInput{}
}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output = &DeleteApplicationOutput{}
req.Data = output
return
}
// Deletes the specified application along with all associated versions and
// configurations. The application versions will not be deleted from your Amazon
// S3 bucket.
//
// You cannot delete an application that has a running environment.
func (c *ElasticBeanstalk) DeleteApplication(input *DeleteApplicationInput) (*DeleteApplicationOutput, error) {
req, out := c.DeleteApplicationRequest(input)
err := req.Send()
return out, err
}
const opDeleteApplicationVersion = "DeleteApplicationVersion"
// DeleteApplicationVersionRequest generates a request for the DeleteApplicationVersion operation.
func (c *ElasticBeanstalk) DeleteApplicationVersionRequest(input *DeleteApplicationVersionInput) (req *request.Request, output *DeleteApplicationVersionOutput) {
op := &request.Operation{
Name: opDeleteApplicationVersion,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteApplicationVersionInput{}
}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output = &DeleteApplicationVersionOutput{}
req.Data = output
return
}
// Deletes the specified version from the specified application.
//
// You cannot delete an application version that is associated with a running
// environment.
func (c *ElasticBeanstalk) DeleteApplicationVersion(input *DeleteApplicationVersionInput) (*DeleteApplicationVersionOutput, error) {
req, out := c.DeleteApplicationVersionRequest(input)
err := req.Send()
return out, err
}
const opDeleteConfigurationTemplate = "DeleteConfigurationTemplate"
// DeleteConfigurationTemplateRequest generates a request for the DeleteConfigurationTemplate operation.
func (c *ElasticBeanstalk) DeleteConfigurationTemplateRequest(input *DeleteConfigurationTemplateInput) (req *request.Request, output *DeleteConfigurationTemplateOutput) {
op := &request.Operation{
Name: opDeleteConfigurationTemplate,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteConfigurationTemplateInput{}
}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output = &DeleteConfigurationTemplateOutput{}
req.Data = output
return
}
// Deletes the specified configuration template.
//
// When you launch an environment using a configuration template, the environment
// gets a copy of the template. You can delete or modify the environment's copy
// of the template without affecting the running environment.
func (c *ElasticBeanstalk) DeleteConfigurationTemplate(input *DeleteConfigurationTemplateInput) (*DeleteConfigurationTemplateOutput, error) {
req, out := c.DeleteConfigurationTemplateRequest(input)
err := req.Send()
return out, err
}
const opDeleteEnvironmentConfiguration = "DeleteEnvironmentConfiguration"
// DeleteEnvironmentConfigurationRequest generates a request for the DeleteEnvironmentConfiguration operation.
func (c *ElasticBeanstalk) DeleteEnvironmentConfigurationRequest(input *DeleteEnvironmentConfigurationInput) (req *request.Request, output *DeleteEnvironmentConfigurationOutput) {
op := &request.Operation{
Name: opDeleteEnvironmentConfiguration,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteEnvironmentConfigurationInput{}
}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output = &DeleteEnvironmentConfigurationOutput{}
req.Data = output
return
}
// Deletes the draft configuration associated with the running environment.
//
// Updating a running environment with any configuration changes creates a
// draft configuration set. You can get the draft configuration using DescribeConfigurationSettings
// while the update is in progress or if the update fails. The DeploymentStatus
// for the draft configuration indicates whether the deployment is in process
// or has failed. The draft configuration remains in existence until it is deleted
// with this action.
func (c *ElasticBeanstalk) DeleteEnvironmentConfiguration(input *DeleteEnvironmentConfigurationInput) (*DeleteEnvironmentConfigurationOutput, error) {
req, out := c.DeleteEnvironmentConfigurationRequest(input)
err := req.Send()
return out, err
}
const opDescribeApplicationVersions = "DescribeApplicationVersions"
// DescribeApplicationVersionsRequest generates a request for the DescribeApplicationVersions operation.
func (c *ElasticBeanstalk) DescribeApplicationVersionsRequest(input *DescribeApplicationVersionsInput) (req *request.Request, output *DescribeApplicationVersionsOutput) {
op := &request.Operation{
Name: opDescribeApplicationVersions,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeApplicationVersionsInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeApplicationVersionsOutput{}
req.Data = output
return
}
// Retrieve a list of application versions stored in your AWS Elastic Beanstalk
// storage bucket.
func (c *ElasticBeanstalk) DescribeApplicationVersions(input *DescribeApplicationVersionsInput) (*DescribeApplicationVersionsOutput, error) {
req, out := c.DescribeApplicationVersionsRequest(input)
err := req.Send()
return out, err
}
const opDescribeApplications = "DescribeApplications"
// DescribeApplicationsRequest generates a request for the DescribeApplications operation.
func (c *ElasticBeanstalk) DescribeApplicationsRequest(input *DescribeApplicationsInput) (req *request.Request, output *DescribeApplicationsOutput) {
op := &request.Operation{
Name: opDescribeApplications,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeApplicationsInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeApplicationsOutput{}
req.Data = output
return
}
// Returns the descriptions of existing applications.
func (c *ElasticBeanstalk) DescribeApplications(input *DescribeApplicationsInput) (*DescribeApplicationsOutput, error) {
req, out := c.DescribeApplicationsRequest(input)
err := req.Send()
return out, err
}
const opDescribeConfigurationOptions = "DescribeConfigurationOptions"
// DescribeConfigurationOptionsRequest generates a request for the DescribeConfigurationOptions operation.
func (c *ElasticBeanstalk) DescribeConfigurationOptionsRequest(input *DescribeConfigurationOptionsInput) (req *request.Request, output *DescribeConfigurationOptionsOutput) {
op := &request.Operation{
Name: opDescribeConfigurationOptions,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeConfigurationOptionsInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeConfigurationOptionsOutput{}
req.Data = output
return
}
// Describes the configuration options that are used in a particular configuration
// template or environment, or that a specified solution stack defines. The
// description includes the values the options, their default values, and an
// indication of the required action on a running environment if an option value
// is changed.
func (c *ElasticBeanstalk) DescribeConfigurationOptions(input *DescribeConfigurationOptionsInput) (*DescribeConfigurationOptionsOutput, error) {
req, out := c.DescribeConfigurationOptionsRequest(input)
err := req.Send()
return out, err
}
const opDescribeConfigurationSettings = "DescribeConfigurationSettings"
// DescribeConfigurationSettingsRequest generates a request for the DescribeConfigurationSettings operation.
func (c *ElasticBeanstalk) DescribeConfigurationSettingsRequest(input *DescribeConfigurationSettingsInput) (req *request.Request, output *DescribeConfigurationSettingsOutput) {
op := &request.Operation{
Name: opDescribeConfigurationSettings,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeConfigurationSettingsInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeConfigurationSettingsOutput{}
req.Data = output
return
}
// Returns a description of the settings for the specified configuration set,
// that is, either a configuration template or the configuration set associated
// with a running environment.
//
// When describing the settings for the configuration set associated with
// a running environment, it is possible to receive two sets of setting descriptions.
// One is the deployed configuration set, and the other is a draft configuration
// of an environment that is either in the process of deployment or that failed
// to deploy.
//
// Related Topics
//
// DeleteEnvironmentConfiguration
func (c *ElasticBeanstalk) DescribeConfigurationSettings(input *DescribeConfigurationSettingsInput) (*DescribeConfigurationSettingsOutput, error) {
req, out := c.DescribeConfigurationSettingsRequest(input)
err := req.Send()
return out, err
}
const opDescribeEnvironmentHealth = "DescribeEnvironmentHealth"
// DescribeEnvironmentHealthRequest generates a request for the DescribeEnvironmentHealth operation.
func (c *ElasticBeanstalk) DescribeEnvironmentHealthRequest(input *DescribeEnvironmentHealthInput) (req *request.Request, output *DescribeEnvironmentHealthOutput) {
op := &request.Operation{
Name: opDescribeEnvironmentHealth,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeEnvironmentHealthInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeEnvironmentHealthOutput{}
req.Data = output
return
}
// Returns information about the overall health of the specified environment.
// The DescribeEnvironmentHealth operation is only available with AWS Elastic
// Beanstalk Enhanced Health.
func (c *ElasticBeanstalk) DescribeEnvironmentHealth(input *DescribeEnvironmentHealthInput) (*DescribeEnvironmentHealthOutput, error) {
req, out := c.DescribeEnvironmentHealthRequest(input)
err := req.Send()
return out, err
}
const opDescribeEnvironmentResources = "DescribeEnvironmentResources"
// DescribeEnvironmentResourcesRequest generates a request for the DescribeEnvironmentResources operation.
func (c *ElasticBeanstalk) DescribeEnvironmentResourcesRequest(input *DescribeEnvironmentResourcesInput) (req *request.Request, output *DescribeEnvironmentResourcesOutput) {
op := &request.Operation{
Name: opDescribeEnvironmentResources,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeEnvironmentResourcesInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeEnvironmentResourcesOutput{}
req.Data = output
return
}
// Returns AWS resources for this environment.
func (c *ElasticBeanstalk) DescribeEnvironmentResources(input *DescribeEnvironmentResourcesInput) (*DescribeEnvironmentResourcesOutput, error) {
req, out := c.DescribeEnvironmentResourcesRequest(input)
err := req.Send()
return out, err
}
const opDescribeEnvironments = "DescribeEnvironments"
// DescribeEnvironmentsRequest generates a request for the DescribeEnvironments operation.
func (c *ElasticBeanstalk) DescribeEnvironmentsRequest(input *DescribeEnvironmentsInput) (req *request.Request, output *EnvironmentDescriptionsMessage) {
op := &request.Operation{
Name: opDescribeEnvironments,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeEnvironmentsInput{}
}
req = c.newRequest(op, input, output)
output = &EnvironmentDescriptionsMessage{}
req.Data = output
return
}
// Returns descriptions for existing environments.
func (c *ElasticBeanstalk) DescribeEnvironments(input *DescribeEnvironmentsInput) (*EnvironmentDescriptionsMessage, error) {
req, out := c.DescribeEnvironmentsRequest(input)
err := req.Send()
return out, err
}
const opDescribeEvents = "DescribeEvents"
// DescribeEventsRequest generates a request for the DescribeEvents operation.
func (c *ElasticBeanstalk) DescribeEventsRequest(input *DescribeEventsInput) (req *request.Request, output *DescribeEventsOutput) {
op := &request.Operation{
Name: opDescribeEvents,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
LimitToken: "MaxRecords",
TruncationToken: "",
},
}
if input == nil {
input = &DescribeEventsInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeEventsOutput{}
req.Data = output
return
}
// Returns list of event descriptions matching criteria up to the last 6 weeks.
//
// This action returns the most recent 1,000 events from the specified NextToken.
func (c *ElasticBeanstalk) DescribeEvents(input *DescribeEventsInput) (*DescribeEventsOutput, error) {
req, out := c.DescribeEventsRequest(input)
err := req.Send()
return out, err
}
func (c *ElasticBeanstalk) DescribeEventsPages(input *DescribeEventsInput, fn func(p *DescribeEventsOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.DescribeEventsRequest(input)
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*DescribeEventsOutput), lastPage)
})
}
const opDescribeInstancesHealth = "DescribeInstancesHealth"
// DescribeInstancesHealthRequest generates a request for the DescribeInstancesHealth operation.
func (c *ElasticBeanstalk) DescribeInstancesHealthRequest(input *DescribeInstancesHealthInput) (req *request.Request, output *DescribeInstancesHealthOutput) {
op := &request.Operation{
Name: opDescribeInstancesHealth,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeInstancesHealthInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeInstancesHealthOutput{}
req.Data = output
return
}
// Returns more detailed information about the health of the specified instances
// (for example, CPU utilization, load average, and causes). The DescribeInstancesHealth
// operation is only available with AWS Elastic Beanstalk Enhanced Health.
func (c *ElasticBeanstalk) DescribeInstancesHealth(input *DescribeInstancesHealthInput) (*DescribeInstancesHealthOutput, error) {
req, out := c.DescribeInstancesHealthRequest(input)
err := req.Send()
return out, err
}
const opListAvailableSolutionStacks = "ListAvailableSolutionStacks"
// ListAvailableSolutionStacksRequest generates a request for the ListAvailableSolutionStacks operation.
func (c *ElasticBeanstalk) ListAvailableSolutionStacksRequest(input *ListAvailableSolutionStacksInput) (req *request.Request, output *ListAvailableSolutionStacksOutput) {
op := &request.Operation{
Name: opListAvailableSolutionStacks,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ListAvailableSolutionStacksInput{}
}
req = c.newRequest(op, input, output)
output = &ListAvailableSolutionStacksOutput{}
req.Data = output
return
}
// Returns a list of the available solution stack names.
func (c *ElasticBeanstalk) ListAvailableSolutionStacks(input *ListAvailableSolutionStacksInput) (*ListAvailableSolutionStacksOutput, error) {
req, out := c.ListAvailableSolutionStacksRequest(input)
err := req.Send()
return out, err
}
const opRebuildEnvironment = "RebuildEnvironment"
// RebuildEnvironmentRequest generates a request for the RebuildEnvironment operation.
func (c *ElasticBeanstalk) RebuildEnvironmentRequest(input *RebuildEnvironmentInput) (req *request.Request, output *RebuildEnvironmentOutput) {
op := &request.Operation{
Name: opRebuildEnvironment,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &RebuildEnvironmentInput{}
}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output = &RebuildEnvironmentOutput{}
req.Data = output
return
}
// Deletes and recreates all of the AWS resources (for example: the Auto Scaling
// group, load balancer, etc.) for a specified environment and forces a restart.
func (c *ElasticBeanstalk) RebuildEnvironment(input *RebuildEnvironmentInput) (*RebuildEnvironmentOutput, error) {
req, out := c.RebuildEnvironmentRequest(input)
err := req.Send()
return out, err
}
const opRequestEnvironmentInfo = "RequestEnvironmentInfo"
// RequestEnvironmentInfoRequest generates a request for the RequestEnvironmentInfo operation.
func (c *ElasticBeanstalk) RequestEnvironmentInfoRequest(input *RequestEnvironmentInfoInput) (req *request.Request, output *RequestEnvironmentInfoOutput) {
op := &request.Operation{
Name: opRequestEnvironmentInfo,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &RequestEnvironmentInfoInput{}
}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output = &RequestEnvironmentInfoOutput{}
req.Data = output
return
}
// Initiates a request to compile the specified type of information of the deployed
// environment.
//
// Setting the InfoType to tail compiles the last lines from the application
// server log files of every Amazon EC2 instance in your environment.
//
// Setting the InfoType to bundle compresses the application server log files
// for every Amazon EC2 instance into a .zip file. Legacy and .NET containers
// do not support bundle logs.
//
// Use RetrieveEnvironmentInfo to obtain the set of logs.
//
// Related Topics
//
// RetrieveEnvironmentInfo
func (c *ElasticBeanstalk) RequestEnvironmentInfo(input *RequestEnvironmentInfoInput) (*RequestEnvironmentInfoOutput, error) {
req, out := c.RequestEnvironmentInfoRequest(input)
err := req.Send()
return out, err
}
const opRestartAppServer = "RestartAppServer"
// RestartAppServerRequest generates a request for the RestartAppServer operation.
func (c *ElasticBeanstalk) RestartAppServerRequest(input *RestartAppServerInput) (req *request.Request, output *RestartAppServerOutput) {
op := &request.Operation{
Name: opRestartAppServer,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &RestartAppServerInput{}
}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output = &RestartAppServerOutput{}
req.Data = output
return
}
// Causes the environment to restart the application container server running
// on each Amazon EC2 instance.
func (c *ElasticBeanstalk) RestartAppServer(input *RestartAppServerInput) (*RestartAppServerOutput, error) {
req, out := c.RestartAppServerRequest(input)
err := req.Send()
return out, err
}
const opRetrieveEnvironmentInfo = "RetrieveEnvironmentInfo"
// RetrieveEnvironmentInfoRequest generates a request for the RetrieveEnvironmentInfo operation.
func (c *ElasticBeanstalk) RetrieveEnvironmentInfoRequest(input *RetrieveEnvironmentInfoInput) (req *request.Request, output *RetrieveEnvironmentInfoOutput) {
op := &request.Operation{
Name: opRetrieveEnvironmentInfo,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &RetrieveEnvironmentInfoInput{}
}
req = c.newRequest(op, input, output)
output = &RetrieveEnvironmentInfoOutput{}
req.Data = output
return
}
// Retrieves the compiled information from a RequestEnvironmentInfo request.
//
// Related Topics
//
// RequestEnvironmentInfo
func (c *ElasticBeanstalk) RetrieveEnvironmentInfo(input *RetrieveEnvironmentInfoInput) (*RetrieveEnvironmentInfoOutput, error) {
req, out := c.RetrieveEnvironmentInfoRequest(input)
err := req.Send()
return out, err
}
const opSwapEnvironmentCNAMEs = "SwapEnvironmentCNAMEs"
// SwapEnvironmentCNAMEsRequest generates a request for the SwapEnvironmentCNAMEs operation.
func (c *ElasticBeanstalk) SwapEnvironmentCNAMEsRequest(input *SwapEnvironmentCNAMEsInput) (req *request.Request, output *SwapEnvironmentCNAMEsOutput) {
op := &request.Operation{
Name: opSwapEnvironmentCNAMEs,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &SwapEnvironmentCNAMEsInput{}
}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output = &SwapEnvironmentCNAMEsOutput{}
req.Data = output
return
}
// Swaps the CNAMEs of two environments.
func (c *ElasticBeanstalk) SwapEnvironmentCNAMEs(input *SwapEnvironmentCNAMEsInput) (*SwapEnvironmentCNAMEsOutput, error) {
req, out := c.SwapEnvironmentCNAMEsRequest(input)
err := req.Send()
return out, err
}
const opTerminateEnvironment = "TerminateEnvironment"
// TerminateEnvironmentRequest generates a request for the TerminateEnvironment operation.
func (c *ElasticBeanstalk) TerminateEnvironmentRequest(input *TerminateEnvironmentInput) (req *request.Request, output *EnvironmentDescription) {
op := &request.Operation{
Name: opTerminateEnvironment,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &TerminateEnvironmentInput{}
}
req = c.newRequest(op, input, output)
output = &EnvironmentDescription{}
req.Data = output
return
}
// Terminates the specified environment.
func (c *ElasticBeanstalk) TerminateEnvironment(input *TerminateEnvironmentInput) (*EnvironmentDescription, error) {
req, out := c.TerminateEnvironmentRequest(input)
err := req.Send()
return out, err
}
const opUpdateApplication = "UpdateApplication"
// UpdateApplicationRequest generates a request for the UpdateApplication operation.
func (c *ElasticBeanstalk) UpdateApplicationRequest(input *UpdateApplicationInput) (req *request.Request, output *ApplicationDescriptionMessage) {
op := &request.Operation{
Name: opUpdateApplication,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &UpdateApplicationInput{}
}
req = c.newRequest(op, input, output)
output = &ApplicationDescriptionMessage{}
req.Data = output
return
}
// Updates the specified application to have the specified properties.
//
// If a property (for example, description) is not provided, the value remains
// unchanged. To clear these properties, specify an empty string.
func (c *ElasticBeanstalk) UpdateApplication(input *UpdateApplicationInput) (*ApplicationDescriptionMessage, error) {
req, out := c.UpdateApplicationRequest(input)
err := req.Send()
return out, err
}
const opUpdateApplicationVersion = "UpdateApplicationVersion"
// UpdateApplicationVersionRequest generates a request for the UpdateApplicationVersion operation.
func (c *ElasticBeanstalk) UpdateApplicationVersionRequest(input *UpdateApplicationVersionInput) (req *request.Request, output *ApplicationVersionDescriptionMessage) {
op := &request.Operation{
Name: opUpdateApplicationVersion,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &UpdateApplicationVersionInput{}
}
req = c.newRequest(op, input, output)
output = &ApplicationVersionDescriptionMessage{}
req.Data = output
return
}
// Updates the specified application version to have the specified properties.
//
// If a property (for example, description) is not provided, the value remains
// unchanged. To clear properties, specify an empty string.
func (c *ElasticBeanstalk) UpdateApplicationVersion(input *UpdateApplicationVersionInput) (*ApplicationVersionDescriptionMessage, error) {
req, out := c.UpdateApplicationVersionRequest(input)
err := req.Send()
return out, err
}
const opUpdateConfigurationTemplate = "UpdateConfigurationTemplate"
// UpdateConfigurationTemplateRequest generates a request for the UpdateConfigurationTemplate operation.
func (c *ElasticBeanstalk) UpdateConfigurationTemplateRequest(input *UpdateConfigurationTemplateInput) (req *request.Request, output *ConfigurationSettingsDescription) {
op := &request.Operation{
Name: opUpdateConfigurationTemplate,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &UpdateConfigurationTemplateInput{}
}
req = c.newRequest(op, input, output)
output = &ConfigurationSettingsDescription{}
req.Data = output
return
}
// Updates the specified configuration template to have the specified properties
// or configuration option values.
//
// If a property (for example, ApplicationName) is not provided, its value
// remains unchanged. To clear such properties, specify an empty string. Related
// Topics
//
// DescribeConfigurationOptions
func (c *ElasticBeanstalk) UpdateConfigurationTemplate(input *UpdateConfigurationTemplateInput) (*ConfigurationSettingsDescription, error) {
req, out := c.UpdateConfigurationTemplateRequest(input)
err := req.Send()
return out, err
}
const opUpdateEnvironment = "UpdateEnvironment"
// UpdateEnvironmentRequest generates a request for the UpdateEnvironment operation.
func (c *ElasticBeanstalk) UpdateEnvironmentRequest(input *UpdateEnvironmentInput) (req *request.Request, output *EnvironmentDescription) {
op := &request.Operation{
Name: opUpdateEnvironment,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &UpdateEnvironmentInput{}
}
req = c.newRequest(op, input, output)
output = &EnvironmentDescription{}
req.Data = output
return
}
// Updates the environment description, deploys a new application version, updates