forked from aws/aws-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 1
/
api.go
2722 lines (2181 loc) · 91.9 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"
)
const opAbortEnvironmentUpdate = "AbortEnvironmentUpdate"
// AbortEnvironmentUpdateRequest generates a request for the AbortEnvironmentUpdate operation.
func (c *ElasticBeanstalk) AbortEnvironmentUpdateRequest(input *AbortEnvironmentUpdateInput) (req *aws.Request, output *AbortEnvironmentUpdateOutput) {
op := &aws.Operation{
Name: opAbortEnvironmentUpdate,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &AbortEnvironmentUpdateInput{}
}
req = c.newRequest(op, input, output)
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 *aws.Request, output *CheckDNSAvailabilityOutput) {
op := &aws.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 opCreateApplication = "CreateApplication"
// CreateApplicationRequest generates a request for the CreateApplication operation.
func (c *ElasticBeanstalk) CreateApplicationRequest(input *CreateApplicationInput) (req *aws.Request, output *ApplicationDescriptionMessage) {
op := &aws.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 *aws.Request, output *ApplicationVersionDescriptionMessage) {
op := &aws.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 *aws.Request, output *ConfigurationSettingsDescription) {
op := &aws.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 *aws.Request, output *EnvironmentDescription) {
op := &aws.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 *aws.Request, output *CreateStorageLocationOutput) {
op := &aws.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 *aws.Request, output *DeleteApplicationOutput) {
op := &aws.Operation{
Name: opDeleteApplication,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteApplicationInput{}
}
req = c.newRequest(op, input, output)
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 *aws.Request, output *DeleteApplicationVersionOutput) {
op := &aws.Operation{
Name: opDeleteApplicationVersion,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteApplicationVersionInput{}
}
req = c.newRequest(op, input, output)
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 *aws.Request, output *DeleteConfigurationTemplateOutput) {
op := &aws.Operation{
Name: opDeleteConfigurationTemplate,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteConfigurationTemplateInput{}
}
req = c.newRequest(op, input, output)
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 *aws.Request, output *DeleteEnvironmentConfigurationOutput) {
op := &aws.Operation{
Name: opDeleteEnvironmentConfiguration,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteEnvironmentConfigurationInput{}
}
req = c.newRequest(op, input, output)
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 *aws.Request, output *DescribeApplicationVersionsOutput) {
op := &aws.Operation{
Name: opDescribeApplicationVersions,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeApplicationVersionsInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeApplicationVersionsOutput{}
req.Data = output
return
}
// Returns descriptions for existing application versions.
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 *aws.Request, output *DescribeApplicationsOutput) {
op := &aws.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 *aws.Request, output *DescribeConfigurationOptionsOutput) {
op := &aws.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 *aws.Request, output *DescribeConfigurationSettingsOutput) {
op := &aws.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 opDescribeEnvironmentResources = "DescribeEnvironmentResources"
// DescribeEnvironmentResourcesRequest generates a request for the DescribeEnvironmentResources operation.
func (c *ElasticBeanstalk) DescribeEnvironmentResourcesRequest(input *DescribeEnvironmentResourcesInput) (req *aws.Request, output *DescribeEnvironmentResourcesOutput) {
op := &aws.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 *aws.Request, output *DescribeEnvironmentsOutput) {
op := &aws.Operation{
Name: opDescribeEnvironments,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeEnvironmentsInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeEnvironmentsOutput{}
req.Data = output
return
}
// Returns descriptions for existing environments.
func (c *ElasticBeanstalk) DescribeEnvironments(input *DescribeEnvironmentsInput) (*DescribeEnvironmentsOutput, 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 *aws.Request, output *DescribeEventsOutput) {
op := &aws.Operation{
Name: opDescribeEvents,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &aws.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)
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*DescribeEventsOutput), lastPage)
})
}
const opListAvailableSolutionStacks = "ListAvailableSolutionStacks"
// ListAvailableSolutionStacksRequest generates a request for the ListAvailableSolutionStacks operation.
func (c *ElasticBeanstalk) ListAvailableSolutionStacksRequest(input *ListAvailableSolutionStacksInput) (req *aws.Request, output *ListAvailableSolutionStacksOutput) {
op := &aws.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 *aws.Request, output *RebuildEnvironmentOutput) {
op := &aws.Operation{
Name: opRebuildEnvironment,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &RebuildEnvironmentInput{}
}
req = c.newRequest(op, input, output)
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 *aws.Request, output *RequestEnvironmentInfoOutput) {
op := &aws.Operation{
Name: opRequestEnvironmentInfo,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &RequestEnvironmentInfoInput{}
}
req = c.newRequest(op, input, output)
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 *aws.Request, output *RestartAppServerOutput) {
op := &aws.Operation{
Name: opRestartAppServer,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &RestartAppServerInput{}
}
req = c.newRequest(op, input, output)
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 *aws.Request, output *RetrieveEnvironmentInfoOutput) {
op := &aws.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 *aws.Request, output *SwapEnvironmentCNAMEsOutput) {
op := &aws.Operation{
Name: opSwapEnvironmentCNAMEs,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &SwapEnvironmentCNAMEsInput{}
}
req = c.newRequest(op, input, output)
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 *aws.Request, output *EnvironmentDescription) {
op := &aws.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 *aws.Request, output *ApplicationDescriptionMessage) {
op := &aws.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 *aws.Request, output *ApplicationVersionDescriptionMessage) {
op := &aws.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 *aws.Request, output *ConfigurationSettingsDescription) {
op := &aws.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 *aws.Request, output *EnvironmentDescription) {
op := &aws.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
// the configuration settings to an entirely new configuration template, or
// updates select configuration option values in the running environment.
//
// Attempting to update both the release and configuration is not allowed
// and AWS Elastic Beanstalk returns an InvalidParameterCombination error.
//
// When updating the configuration settings to a new template or individual
// settings, a draft configuration is created and DescribeConfigurationSettings
// for this environment returns two setting descriptions with different DeploymentStatus
// values.
func (c *ElasticBeanstalk) UpdateEnvironment(input *UpdateEnvironmentInput) (*EnvironmentDescription, error) {
req, out := c.UpdateEnvironmentRequest(input)
err := req.Send()
return out, err
}
const opValidateConfigurationSettings = "ValidateConfigurationSettings"
// ValidateConfigurationSettingsRequest generates a request for the ValidateConfigurationSettings operation.
func (c *ElasticBeanstalk) ValidateConfigurationSettingsRequest(input *ValidateConfigurationSettingsInput) (req *aws.Request, output *ValidateConfigurationSettingsOutput) {
op := &aws.Operation{
Name: opValidateConfigurationSettings,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ValidateConfigurationSettingsInput{}
}
req = c.newRequest(op, input, output)
output = &ValidateConfigurationSettingsOutput{}
req.Data = output
return
}
// Takes a set of configuration settings and either a configuration template
// or environment, and determines whether those values are valid.
//
// This action returns a list of messages indicating any errors or warnings
// associated with the selection of option values.
func (c *ElasticBeanstalk) ValidateConfigurationSettings(input *ValidateConfigurationSettingsInput) (*ValidateConfigurationSettingsOutput, error) {
req, out := c.ValidateConfigurationSettingsRequest(input)
err := req.Send()
return out, err
}
type AbortEnvironmentUpdateInput struct {
// This specifies the ID of the environment with the in-progress update that
// you want to cancel.
EnvironmentID *string `locationName:"EnvironmentId" type:"string"`
// This specifies the name of the environment with the in-progress update that
// you want to cancel.
EnvironmentName *string `type:"string"`
metadataAbortEnvironmentUpdateInput `json:"-" xml:"-"`
}
type metadataAbortEnvironmentUpdateInput struct {
SDKShapeTraits bool `type:"structure"`
}
type AbortEnvironmentUpdateOutput struct {
metadataAbortEnvironmentUpdateOutput `json:"-" xml:"-"`
}
type metadataAbortEnvironmentUpdateOutput struct {
SDKShapeTraits bool `type:"structure"`
}
// Describes the properties of an application.
type ApplicationDescription struct {
// The name of the application.
ApplicationName *string `type:"string"`
// The names of the configuration templates associated with this application.
ConfigurationTemplates []*string `type:"list"`
// The date when the application was created.
DateCreated *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// The date when the application was last modified.
DateUpdated *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// User-defined description of the application.
Description *string `type:"string"`
// The names of the versions for this application.
Versions []*string `type:"list"`
metadataApplicationDescription `json:"-" xml:"-"`
}
type metadataApplicationDescription struct {
SDKShapeTraits bool `type:"structure"`
}
// Result message containing a single description of an application.
type ApplicationDescriptionMessage struct {
// The ApplicationDescription of the application.
Application *ApplicationDescription `type:"structure"`
metadataApplicationDescriptionMessage `json:"-" xml:"-"`
}
type metadataApplicationDescriptionMessage struct {
SDKShapeTraits bool `type:"structure"`
}
// Describes the properties of an application version.
type ApplicationVersionDescription struct {
// The name of the application associated with this release.
ApplicationName *string `type:"string"`