forked from aws/aws-sdk-go-v2
/
api.go
8082 lines (6597 loc) · 266 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
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package elasticbeanstalk
import (
"fmt"
"time"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/internal/awsutil"
"github.com/aws/aws-sdk-go-v2/private/protocol"
"github.com/aws/aws-sdk-go-v2/private/protocol/query"
)
const opAbortEnvironmentUpdate = "AbortEnvironmentUpdate"
// AbortEnvironmentUpdateRequest is a API request type for the AbortEnvironmentUpdate API operation.
type AbortEnvironmentUpdateRequest struct {
*aws.Request
Input *AbortEnvironmentUpdateInput
Copy func(*AbortEnvironmentUpdateInput) AbortEnvironmentUpdateRequest
}
// Send marshals and sends the AbortEnvironmentUpdate API request.
func (r AbortEnvironmentUpdateRequest) Send() (*AbortEnvironmentUpdateOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*AbortEnvironmentUpdateOutput), nil
}
// AbortEnvironmentUpdateRequest returns a request value for making API operation for
// AWS Elastic Beanstalk.
//
// Cancels in-progress environment configuration update or application version
// deployment.
//
// // Example sending a request using the AbortEnvironmentUpdateRequest method.
// req := client.AbortEnvironmentUpdateRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/AbortEnvironmentUpdate
func (c *ElasticBeanstalk) AbortEnvironmentUpdateRequest(input *AbortEnvironmentUpdateInput) AbortEnvironmentUpdateRequest {
op := &aws.Operation{
Name: opAbortEnvironmentUpdate,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &AbortEnvironmentUpdateInput{}
}
output := &AbortEnvironmentUpdateOutput{}
req := c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output.responseMetadata = aws.Response{Request: req}
return AbortEnvironmentUpdateRequest{Request: req, Input: input, Copy: c.AbortEnvironmentUpdateRequest}
}
const opApplyEnvironmentManagedAction = "ApplyEnvironmentManagedAction"
// ApplyEnvironmentManagedActionRequest is a API request type for the ApplyEnvironmentManagedAction API operation.
type ApplyEnvironmentManagedActionRequest struct {
*aws.Request
Input *ApplyEnvironmentManagedActionInput
Copy func(*ApplyEnvironmentManagedActionInput) ApplyEnvironmentManagedActionRequest
}
// Send marshals and sends the ApplyEnvironmentManagedAction API request.
func (r ApplyEnvironmentManagedActionRequest) Send() (*ApplyEnvironmentManagedActionOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*ApplyEnvironmentManagedActionOutput), nil
}
// ApplyEnvironmentManagedActionRequest returns a request value for making API operation for
// AWS Elastic Beanstalk.
//
// Applies a scheduled managed action immediately. A managed action can be applied
// only if its status is Scheduled. Get the status and action ID of a managed
// action with DescribeEnvironmentManagedActions.
//
// // Example sending a request using the ApplyEnvironmentManagedActionRequest method.
// req := client.ApplyEnvironmentManagedActionRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ApplyEnvironmentManagedAction
func (c *ElasticBeanstalk) ApplyEnvironmentManagedActionRequest(input *ApplyEnvironmentManagedActionInput) ApplyEnvironmentManagedActionRequest {
op := &aws.Operation{
Name: opApplyEnvironmentManagedAction,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ApplyEnvironmentManagedActionInput{}
}
output := &ApplyEnvironmentManagedActionOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return ApplyEnvironmentManagedActionRequest{Request: req, Input: input, Copy: c.ApplyEnvironmentManagedActionRequest}
}
const opCheckDNSAvailability = "CheckDNSAvailability"
// CheckDNSAvailabilityRequest is a API request type for the CheckDNSAvailability API operation.
type CheckDNSAvailabilityRequest struct {
*aws.Request
Input *CheckDNSAvailabilityInput
Copy func(*CheckDNSAvailabilityInput) CheckDNSAvailabilityRequest
}
// Send marshals and sends the CheckDNSAvailability API request.
func (r CheckDNSAvailabilityRequest) Send() (*CheckDNSAvailabilityOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*CheckDNSAvailabilityOutput), nil
}
// CheckDNSAvailabilityRequest returns a request value for making API operation for
// AWS Elastic Beanstalk.
//
// Checks if the specified CNAME is available.
//
// // Example sending a request using the CheckDNSAvailabilityRequest method.
// req := client.CheckDNSAvailabilityRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CheckDNSAvailability
func (c *ElasticBeanstalk) CheckDNSAvailabilityRequest(input *CheckDNSAvailabilityInput) CheckDNSAvailabilityRequest {
op := &aws.Operation{
Name: opCheckDNSAvailability,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CheckDNSAvailabilityInput{}
}
output := &CheckDNSAvailabilityOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return CheckDNSAvailabilityRequest{Request: req, Input: input, Copy: c.CheckDNSAvailabilityRequest}
}
const opComposeEnvironments = "ComposeEnvironments"
// ComposeEnvironmentsRequest is a API request type for the ComposeEnvironments API operation.
type ComposeEnvironmentsRequest struct {
*aws.Request
Input *ComposeEnvironmentsInput
Copy func(*ComposeEnvironmentsInput) ComposeEnvironmentsRequest
}
// Send marshals and sends the ComposeEnvironments API request.
func (r ComposeEnvironmentsRequest) Send() (*DescribeEnvironmentsOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DescribeEnvironmentsOutput), nil
}
// ComposeEnvironmentsRequest returns a request value for making API operation for
// AWS Elastic Beanstalk.
//
// 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.
//
// // Example sending a request using the ComposeEnvironmentsRequest method.
// req := client.ComposeEnvironmentsRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ComposeEnvironments
func (c *ElasticBeanstalk) ComposeEnvironmentsRequest(input *ComposeEnvironmentsInput) ComposeEnvironmentsRequest {
op := &aws.Operation{
Name: opComposeEnvironments,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ComposeEnvironmentsInput{}
}
output := &DescribeEnvironmentsOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return ComposeEnvironmentsRequest{Request: req, Input: input, Copy: c.ComposeEnvironmentsRequest}
}
const opCreateApplication = "CreateApplication"
// CreateApplicationRequest is a API request type for the CreateApplication API operation.
type CreateApplicationRequest struct {
*aws.Request
Input *CreateApplicationInput
Copy func(*CreateApplicationInput) CreateApplicationRequest
}
// Send marshals and sends the CreateApplication API request.
func (r CreateApplicationRequest) Send() (*UpdateApplicationOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*UpdateApplicationOutput), nil
}
// CreateApplicationRequest returns a request value for making API operation for
// AWS Elastic Beanstalk.
//
// Creates an application that has one configuration template named default
// and no application versions.
//
// // Example sending a request using the CreateApplicationRequest method.
// req := client.CreateApplicationRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreateApplication
func (c *ElasticBeanstalk) CreateApplicationRequest(input *CreateApplicationInput) CreateApplicationRequest {
op := &aws.Operation{
Name: opCreateApplication,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateApplicationInput{}
}
output := &UpdateApplicationOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return CreateApplicationRequest{Request: req, Input: input, Copy: c.CreateApplicationRequest}
}
const opCreateApplicationVersion = "CreateApplicationVersion"
// CreateApplicationVersionRequest is a API request type for the CreateApplicationVersion API operation.
type CreateApplicationVersionRequest struct {
*aws.Request
Input *CreateApplicationVersionInput
Copy func(*CreateApplicationVersionInput) CreateApplicationVersionRequest
}
// Send marshals and sends the CreateApplicationVersion API request.
func (r CreateApplicationVersionRequest) Send() (*UpdateApplicationVersionOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*UpdateApplicationVersionOutput), nil
}
// CreateApplicationVersionRequest returns a request value for making API operation for
// AWS Elastic Beanstalk.
//
// Creates an application version for the specified application. You can create
// an application version from a source bundle in Amazon S3, a commit in AWS
// CodeCommit, or the output of an AWS CodeBuild build as follows:
//
// Specify a commit in an AWS CodeCommit repository with SourceBuildInformation.
//
// Specify a build in an AWS CodeBuild with SourceBuildInformation and BuildConfiguration.
//
// Specify a source bundle in S3 with SourceBundle
//
// Omit both SourceBuildInformation and SourceBundle to use the default sample
// 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.
//
// // Example sending a request using the CreateApplicationVersionRequest method.
// req := client.CreateApplicationVersionRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreateApplicationVersion
func (c *ElasticBeanstalk) CreateApplicationVersionRequest(input *CreateApplicationVersionInput) CreateApplicationVersionRequest {
op := &aws.Operation{
Name: opCreateApplicationVersion,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateApplicationVersionInput{}
}
output := &UpdateApplicationVersionOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return CreateApplicationVersionRequest{Request: req, Input: input, Copy: c.CreateApplicationVersionRequest}
}
const opCreateConfigurationTemplate = "CreateConfigurationTemplate"
// CreateConfigurationTemplateRequest is a API request type for the CreateConfigurationTemplate API operation.
type CreateConfigurationTemplateRequest struct {
*aws.Request
Input *CreateConfigurationTemplateInput
Copy func(*CreateConfigurationTemplateInput) CreateConfigurationTemplateRequest
}
// Send marshals and sends the CreateConfigurationTemplate API request.
func (r CreateConfigurationTemplateRequest) Send() (*UpdateConfigurationTemplateOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*UpdateConfigurationTemplateOutput), nil
}
// CreateConfigurationTemplateRequest returns a request value for making API operation for
// AWS Elastic Beanstalk.
//
// 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
//
// // Example sending a request using the CreateConfigurationTemplateRequest method.
// req := client.CreateConfigurationTemplateRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreateConfigurationTemplate
func (c *ElasticBeanstalk) CreateConfigurationTemplateRequest(input *CreateConfigurationTemplateInput) CreateConfigurationTemplateRequest {
op := &aws.Operation{
Name: opCreateConfigurationTemplate,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateConfigurationTemplateInput{}
}
output := &UpdateConfigurationTemplateOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return CreateConfigurationTemplateRequest{Request: req, Input: input, Copy: c.CreateConfigurationTemplateRequest}
}
const opCreateEnvironment = "CreateEnvironment"
// CreateEnvironmentRequest is a API request type for the CreateEnvironment API operation.
type CreateEnvironmentRequest struct {
*aws.Request
Input *CreateEnvironmentInput
Copy func(*CreateEnvironmentInput) CreateEnvironmentRequest
}
// Send marshals and sends the CreateEnvironment API request.
func (r CreateEnvironmentRequest) Send() (*UpdateEnvironmentOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*UpdateEnvironmentOutput), nil
}
// CreateEnvironmentRequest returns a request value for making API operation for
// AWS Elastic Beanstalk.
//
// Launches an environment for the specified application using the specified
// configuration.
//
// // Example sending a request using the CreateEnvironmentRequest method.
// req := client.CreateEnvironmentRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreateEnvironment
func (c *ElasticBeanstalk) CreateEnvironmentRequest(input *CreateEnvironmentInput) CreateEnvironmentRequest {
op := &aws.Operation{
Name: opCreateEnvironment,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateEnvironmentInput{}
}
output := &UpdateEnvironmentOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return CreateEnvironmentRequest{Request: req, Input: input, Copy: c.CreateEnvironmentRequest}
}
const opCreatePlatformVersion = "CreatePlatformVersion"
// CreatePlatformVersionRequest is a API request type for the CreatePlatformVersion API operation.
type CreatePlatformVersionRequest struct {
*aws.Request
Input *CreatePlatformVersionInput
Copy func(*CreatePlatformVersionInput) CreatePlatformVersionRequest
}
// Send marshals and sends the CreatePlatformVersion API request.
func (r CreatePlatformVersionRequest) Send() (*CreatePlatformVersionOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*CreatePlatformVersionOutput), nil
}
// CreatePlatformVersionRequest returns a request value for making API operation for
// AWS Elastic Beanstalk.
//
// Create a new version of your custom platform.
//
// // Example sending a request using the CreatePlatformVersionRequest method.
// req := client.CreatePlatformVersionRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreatePlatformVersion
func (c *ElasticBeanstalk) CreatePlatformVersionRequest(input *CreatePlatformVersionInput) CreatePlatformVersionRequest {
op := &aws.Operation{
Name: opCreatePlatformVersion,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreatePlatformVersionInput{}
}
output := &CreatePlatformVersionOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return CreatePlatformVersionRequest{Request: req, Input: input, Copy: c.CreatePlatformVersionRequest}
}
const opCreateStorageLocation = "CreateStorageLocation"
// CreateStorageLocationRequest is a API request type for the CreateStorageLocation API operation.
type CreateStorageLocationRequest struct {
*aws.Request
Input *CreateStorageLocationInput
Copy func(*CreateStorageLocationInput) CreateStorageLocationRequest
}
// Send marshals and sends the CreateStorageLocation API request.
func (r CreateStorageLocationRequest) Send() (*CreateStorageLocationOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*CreateStorageLocationOutput), nil
}
// CreateStorageLocationRequest returns a request value for making API operation for
// AWS Elastic Beanstalk.
//
// Creates a bucket in Amazon S3 to store application versions, logs, and other
// files used by Elastic Beanstalk environments. The Elastic Beanstalk console
// and EB CLI call this API the first time you create an environment in a region.
// If the storage location already exists, CreateStorageLocation still returns
// the bucket name but does not create a new bucket.
//
// // Example sending a request using the CreateStorageLocationRequest method.
// req := client.CreateStorageLocationRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreateStorageLocation
func (c *ElasticBeanstalk) CreateStorageLocationRequest(input *CreateStorageLocationInput) CreateStorageLocationRequest {
op := &aws.Operation{
Name: opCreateStorageLocation,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateStorageLocationInput{}
}
output := &CreateStorageLocationOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return CreateStorageLocationRequest{Request: req, Input: input, Copy: c.CreateStorageLocationRequest}
}
const opDeleteApplication = "DeleteApplication"
// DeleteApplicationRequest is a API request type for the DeleteApplication API operation.
type DeleteApplicationRequest struct {
*aws.Request
Input *DeleteApplicationInput
Copy func(*DeleteApplicationInput) DeleteApplicationRequest
}
// Send marshals and sends the DeleteApplication API request.
func (r DeleteApplicationRequest) Send() (*DeleteApplicationOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DeleteApplicationOutput), nil
}
// DeleteApplicationRequest returns a request value for making API operation for
// AWS Elastic Beanstalk.
//
// 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.
//
// // Example sending a request using the DeleteApplicationRequest method.
// req := client.DeleteApplicationRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeleteApplication
func (c *ElasticBeanstalk) DeleteApplicationRequest(input *DeleteApplicationInput) DeleteApplicationRequest {
op := &aws.Operation{
Name: opDeleteApplication,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteApplicationInput{}
}
output := &DeleteApplicationOutput{}
req := c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output.responseMetadata = aws.Response{Request: req}
return DeleteApplicationRequest{Request: req, Input: input, Copy: c.DeleteApplicationRequest}
}
const opDeleteApplicationVersion = "DeleteApplicationVersion"
// DeleteApplicationVersionRequest is a API request type for the DeleteApplicationVersion API operation.
type DeleteApplicationVersionRequest struct {
*aws.Request
Input *DeleteApplicationVersionInput
Copy func(*DeleteApplicationVersionInput) DeleteApplicationVersionRequest
}
// Send marshals and sends the DeleteApplicationVersion API request.
func (r DeleteApplicationVersionRequest) Send() (*DeleteApplicationVersionOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DeleteApplicationVersionOutput), nil
}
// DeleteApplicationVersionRequest returns a request value for making API operation for
// AWS Elastic Beanstalk.
//
// Deletes the specified version from the specified application.
//
// You cannot delete an application version that is associated with a running
// environment.
//
// // Example sending a request using the DeleteApplicationVersionRequest method.
// req := client.DeleteApplicationVersionRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeleteApplicationVersion
func (c *ElasticBeanstalk) DeleteApplicationVersionRequest(input *DeleteApplicationVersionInput) DeleteApplicationVersionRequest {
op := &aws.Operation{
Name: opDeleteApplicationVersion,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteApplicationVersionInput{}
}
output := &DeleteApplicationVersionOutput{}
req := c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output.responseMetadata = aws.Response{Request: req}
return DeleteApplicationVersionRequest{Request: req, Input: input, Copy: c.DeleteApplicationVersionRequest}
}
const opDeleteConfigurationTemplate = "DeleteConfigurationTemplate"
// DeleteConfigurationTemplateRequest is a API request type for the DeleteConfigurationTemplate API operation.
type DeleteConfigurationTemplateRequest struct {
*aws.Request
Input *DeleteConfigurationTemplateInput
Copy func(*DeleteConfigurationTemplateInput) DeleteConfigurationTemplateRequest
}
// Send marshals and sends the DeleteConfigurationTemplate API request.
func (r DeleteConfigurationTemplateRequest) Send() (*DeleteConfigurationTemplateOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DeleteConfigurationTemplateOutput), nil
}
// DeleteConfigurationTemplateRequest returns a request value for making API operation for
// AWS Elastic Beanstalk.
//
// 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.
//
// // Example sending a request using the DeleteConfigurationTemplateRequest method.
// req := client.DeleteConfigurationTemplateRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeleteConfigurationTemplate
func (c *ElasticBeanstalk) DeleteConfigurationTemplateRequest(input *DeleteConfigurationTemplateInput) DeleteConfigurationTemplateRequest {
op := &aws.Operation{
Name: opDeleteConfigurationTemplate,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteConfigurationTemplateInput{}
}
output := &DeleteConfigurationTemplateOutput{}
req := c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output.responseMetadata = aws.Response{Request: req}
return DeleteConfigurationTemplateRequest{Request: req, Input: input, Copy: c.DeleteConfigurationTemplateRequest}
}
const opDeleteEnvironmentConfiguration = "DeleteEnvironmentConfiguration"
// DeleteEnvironmentConfigurationRequest is a API request type for the DeleteEnvironmentConfiguration API operation.
type DeleteEnvironmentConfigurationRequest struct {
*aws.Request
Input *DeleteEnvironmentConfigurationInput
Copy func(*DeleteEnvironmentConfigurationInput) DeleteEnvironmentConfigurationRequest
}
// Send marshals and sends the DeleteEnvironmentConfiguration API request.
func (r DeleteEnvironmentConfigurationRequest) Send() (*DeleteEnvironmentConfigurationOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DeleteEnvironmentConfigurationOutput), nil
}
// DeleteEnvironmentConfigurationRequest returns a request value for making API operation for
// AWS Elastic Beanstalk.
//
// 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.
//
// // Example sending a request using the DeleteEnvironmentConfigurationRequest method.
// req := client.DeleteEnvironmentConfigurationRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeleteEnvironmentConfiguration
func (c *ElasticBeanstalk) DeleteEnvironmentConfigurationRequest(input *DeleteEnvironmentConfigurationInput) DeleteEnvironmentConfigurationRequest {
op := &aws.Operation{
Name: opDeleteEnvironmentConfiguration,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteEnvironmentConfigurationInput{}
}
output := &DeleteEnvironmentConfigurationOutput{}
req := c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output.responseMetadata = aws.Response{Request: req}
return DeleteEnvironmentConfigurationRequest{Request: req, Input: input, Copy: c.DeleteEnvironmentConfigurationRequest}
}
const opDeletePlatformVersion = "DeletePlatformVersion"
// DeletePlatformVersionRequest is a API request type for the DeletePlatformVersion API operation.
type DeletePlatformVersionRequest struct {
*aws.Request
Input *DeletePlatformVersionInput
Copy func(*DeletePlatformVersionInput) DeletePlatformVersionRequest
}
// Send marshals and sends the DeletePlatformVersion API request.
func (r DeletePlatformVersionRequest) Send() (*DeletePlatformVersionOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DeletePlatformVersionOutput), nil
}
// DeletePlatformVersionRequest returns a request value for making API operation for
// AWS Elastic Beanstalk.
//
// Deletes the specified version of a custom platform.
//
// // Example sending a request using the DeletePlatformVersionRequest method.
// req := client.DeletePlatformVersionRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeletePlatformVersion
func (c *ElasticBeanstalk) DeletePlatformVersionRequest(input *DeletePlatformVersionInput) DeletePlatformVersionRequest {
op := &aws.Operation{
Name: opDeletePlatformVersion,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeletePlatformVersionInput{}
}
output := &DeletePlatformVersionOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return DeletePlatformVersionRequest{Request: req, Input: input, Copy: c.DeletePlatformVersionRequest}
}
const opDescribeAccountAttributes = "DescribeAccountAttributes"
// DescribeAccountAttributesRequest is a API request type for the DescribeAccountAttributes API operation.
type DescribeAccountAttributesRequest struct {
*aws.Request
Input *DescribeAccountAttributesInput
Copy func(*DescribeAccountAttributesInput) DescribeAccountAttributesRequest
}
// Send marshals and sends the DescribeAccountAttributes API request.
func (r DescribeAccountAttributesRequest) Send() (*DescribeAccountAttributesOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DescribeAccountAttributesOutput), nil
}
// DescribeAccountAttributesRequest returns a request value for making API operation for
// AWS Elastic Beanstalk.
//
// Returns attributes related to AWS Elastic Beanstalk that are associated with
// the calling AWS account.
//
// The result currently has one set of attributes—resource quotas.
//
// // Example sending a request using the DescribeAccountAttributesRequest method.
// req := client.DescribeAccountAttributesRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeAccountAttributes
func (c *ElasticBeanstalk) DescribeAccountAttributesRequest(input *DescribeAccountAttributesInput) DescribeAccountAttributesRequest {
op := &aws.Operation{
Name: opDescribeAccountAttributes,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeAccountAttributesInput{}
}
output := &DescribeAccountAttributesOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return DescribeAccountAttributesRequest{Request: req, Input: input, Copy: c.DescribeAccountAttributesRequest}
}
const opDescribeApplicationVersions = "DescribeApplicationVersions"
// DescribeApplicationVersionsRequest is a API request type for the DescribeApplicationVersions API operation.
type DescribeApplicationVersionsRequest struct {
*aws.Request
Input *DescribeApplicationVersionsInput
Copy func(*DescribeApplicationVersionsInput) DescribeApplicationVersionsRequest
}
// Send marshals and sends the DescribeApplicationVersions API request.
func (r DescribeApplicationVersionsRequest) Send() (*DescribeApplicationVersionsOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DescribeApplicationVersionsOutput), nil
}
// DescribeApplicationVersionsRequest returns a request value for making API operation for
// AWS Elastic Beanstalk.
//
// Retrieve a list of application versions.
//
// // Example sending a request using the DescribeApplicationVersionsRequest method.
// req := client.DescribeApplicationVersionsRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeApplicationVersions
func (c *ElasticBeanstalk) DescribeApplicationVersionsRequest(input *DescribeApplicationVersionsInput) DescribeApplicationVersionsRequest {
op := &aws.Operation{
Name: opDescribeApplicationVersions,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeApplicationVersionsInput{}
}
output := &DescribeApplicationVersionsOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return DescribeApplicationVersionsRequest{Request: req, Input: input, Copy: c.DescribeApplicationVersionsRequest}
}
const opDescribeApplications = "DescribeApplications"
// DescribeApplicationsRequest is a API request type for the DescribeApplications API operation.
type DescribeApplicationsRequest struct {
*aws.Request
Input *DescribeApplicationsInput
Copy func(*DescribeApplicationsInput) DescribeApplicationsRequest
}
// Send marshals and sends the DescribeApplications API request.
func (r DescribeApplicationsRequest) Send() (*DescribeApplicationsOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DescribeApplicationsOutput), nil
}
// DescribeApplicationsRequest returns a request value for making API operation for
// AWS Elastic Beanstalk.
//
// Returns the descriptions of existing applications.
//
// // Example sending a request using the DescribeApplicationsRequest method.
// req := client.DescribeApplicationsRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeApplications
func (c *ElasticBeanstalk) DescribeApplicationsRequest(input *DescribeApplicationsInput) DescribeApplicationsRequest {
op := &aws.Operation{
Name: opDescribeApplications,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeApplicationsInput{}
}
output := &DescribeApplicationsOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return DescribeApplicationsRequest{Request: req, Input: input, Copy: c.DescribeApplicationsRequest}
}
const opDescribeConfigurationOptions = "DescribeConfigurationOptions"
// DescribeConfigurationOptionsRequest is a API request type for the DescribeConfigurationOptions API operation.
type DescribeConfigurationOptionsRequest struct {
*aws.Request
Input *DescribeConfigurationOptionsInput
Copy func(*DescribeConfigurationOptionsInput) DescribeConfigurationOptionsRequest
}
// Send marshals and sends the DescribeConfigurationOptions API request.
func (r DescribeConfigurationOptionsRequest) Send() (*DescribeConfigurationOptionsOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err