forked from aws/aws-sdk-go-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.go
2030 lines (1604 loc) · 62 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 serverlessapplicationrepository
import (
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/internal/awsutil"
)
const opCreateApplication = "CreateApplication"
// CreateApplicationRequest is a API request type for the CreateApplication API operation.
type CreateApplicationRequest struct {
*aws.Request
Input *CreateApplicationInput
}
// Send marshals and sends the CreateApplication API request.
func (r CreateApplicationRequest) Send() (*CreateApplicationOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*CreateApplicationOutput), nil
}
// CreateApplicationRequest returns a request value for making API operation for
// AWSServerlessApplicationRepository.
//
// Creates an application, optionally including an AWS SAM file to create the
// first application version in the same call.
//
// // 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/serverlessrepo-2017-09-08/CreateApplication
func (c *ServerlessApplicationRepository) CreateApplicationRequest(input *CreateApplicationInput) CreateApplicationRequest {
op := &aws.Operation{
Name: opCreateApplication,
HTTPMethod: "POST",
HTTPPath: "/applications",
}
if input == nil {
input = &CreateApplicationInput{}
}
output := &CreateApplicationOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return CreateApplicationRequest{Request: req, Input: input}
}
const opCreateApplicationVersion = "CreateApplicationVersion"
// CreateApplicationVersionRequest is a API request type for the CreateApplicationVersion API operation.
type CreateApplicationVersionRequest struct {
*aws.Request
Input *CreateApplicationVersionInput
}
// Send marshals and sends the CreateApplicationVersion API request.
func (r CreateApplicationVersionRequest) Send() (*CreateApplicationVersionOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*CreateApplicationVersionOutput), nil
}
// CreateApplicationVersionRequest returns a request value for making API operation for
// AWSServerlessApplicationRepository.
//
// Creates an 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/serverlessrepo-2017-09-08/CreateApplicationVersion
func (c *ServerlessApplicationRepository) CreateApplicationVersionRequest(input *CreateApplicationVersionInput) CreateApplicationVersionRequest {
op := &aws.Operation{
Name: opCreateApplicationVersion,
HTTPMethod: "PUT",
HTTPPath: "/applications/{applicationId}/versions/{semanticVersion}",
}
if input == nil {
input = &CreateApplicationVersionInput{}
}
output := &CreateApplicationVersionOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return CreateApplicationVersionRequest{Request: req, Input: input}
}
const opCreateCloudFormationChangeSet = "CreateCloudFormationChangeSet"
// CreateCloudFormationChangeSetRequest is a API request type for the CreateCloudFormationChangeSet API operation.
type CreateCloudFormationChangeSetRequest struct {
*aws.Request
Input *CreateCloudFormationChangeSetInput
}
// Send marshals and sends the CreateCloudFormationChangeSet API request.
func (r CreateCloudFormationChangeSetRequest) Send() (*CreateCloudFormationChangeSetOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*CreateCloudFormationChangeSetOutput), nil
}
// CreateCloudFormationChangeSetRequest returns a request value for making API operation for
// AWSServerlessApplicationRepository.
//
// Creates an AWS CloudFormation ChangeSet for the given application.
//
// // Example sending a request using the CreateCloudFormationChangeSetRequest method.
// req := client.CreateCloudFormationChangeSetRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/CreateCloudFormationChangeSet
func (c *ServerlessApplicationRepository) CreateCloudFormationChangeSetRequest(input *CreateCloudFormationChangeSetInput) CreateCloudFormationChangeSetRequest {
op := &aws.Operation{
Name: opCreateCloudFormationChangeSet,
HTTPMethod: "POST",
HTTPPath: "/applications/{applicationId}/changesets",
}
if input == nil {
input = &CreateCloudFormationChangeSetInput{}
}
output := &CreateCloudFormationChangeSetOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return CreateCloudFormationChangeSetRequest{Request: req, Input: input}
}
const opGetApplication = "GetApplication"
// GetApplicationRequest is a API request type for the GetApplication API operation.
type GetApplicationRequest struct {
*aws.Request
Input *GetApplicationInput
}
// Send marshals and sends the GetApplication API request.
func (r GetApplicationRequest) Send() (*GetApplicationOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*GetApplicationOutput), nil
}
// GetApplicationRequest returns a request value for making API operation for
// AWSServerlessApplicationRepository.
//
// Gets the specified application.
//
// // Example sending a request using the GetApplicationRequest method.
// req := client.GetApplicationRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/GetApplication
func (c *ServerlessApplicationRepository) GetApplicationRequest(input *GetApplicationInput) GetApplicationRequest {
op := &aws.Operation{
Name: opGetApplication,
HTTPMethod: "GET",
HTTPPath: "/applications/{applicationId}",
}
if input == nil {
input = &GetApplicationInput{}
}
output := &GetApplicationOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return GetApplicationRequest{Request: req, Input: input}
}
const opGetApplicationPolicy = "GetApplicationPolicy"
// GetApplicationPolicyRequest is a API request type for the GetApplicationPolicy API operation.
type GetApplicationPolicyRequest struct {
*aws.Request
Input *GetApplicationPolicyInput
}
// Send marshals and sends the GetApplicationPolicy API request.
func (r GetApplicationPolicyRequest) Send() (*GetApplicationPolicyOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*GetApplicationPolicyOutput), nil
}
// GetApplicationPolicyRequest returns a request value for making API operation for
// AWSServerlessApplicationRepository.
//
// Gets the policy for the specified application.
//
// // Example sending a request using the GetApplicationPolicyRequest method.
// req := client.GetApplicationPolicyRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/GetApplicationPolicy
func (c *ServerlessApplicationRepository) GetApplicationPolicyRequest(input *GetApplicationPolicyInput) GetApplicationPolicyRequest {
op := &aws.Operation{
Name: opGetApplicationPolicy,
HTTPMethod: "GET",
HTTPPath: "/applications/{applicationId}/policy",
}
if input == nil {
input = &GetApplicationPolicyInput{}
}
output := &GetApplicationPolicyOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return GetApplicationPolicyRequest{Request: req, Input: input}
}
const opListApplicationVersions = "ListApplicationVersions"
// ListApplicationVersionsRequest is a API request type for the ListApplicationVersions API operation.
type ListApplicationVersionsRequest struct {
*aws.Request
Input *ListApplicationVersionsInput
}
// Send marshals and sends the ListApplicationVersions API request.
func (r ListApplicationVersionsRequest) Send() (*ListApplicationVersionsOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*ListApplicationVersionsOutput), nil
}
// ListApplicationVersionsRequest returns a request value for making API operation for
// AWSServerlessApplicationRepository.
//
// Lists versions for the specified application.
//
// // Example sending a request using the ListApplicationVersionsRequest method.
// req := client.ListApplicationVersionsRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/ListApplicationVersions
func (c *ServerlessApplicationRepository) ListApplicationVersionsRequest(input *ListApplicationVersionsInput) ListApplicationVersionsRequest {
op := &aws.Operation{
Name: opListApplicationVersions,
HTTPMethod: "GET",
HTTPPath: "/applications/{applicationId}/versions",
}
if input == nil {
input = &ListApplicationVersionsInput{}
}
output := &ListApplicationVersionsOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return ListApplicationVersionsRequest{Request: req, Input: input}
}
const opListApplications = "ListApplications"
// ListApplicationsRequest is a API request type for the ListApplications API operation.
type ListApplicationsRequest struct {
*aws.Request
Input *ListApplicationsInput
}
// Send marshals and sends the ListApplications API request.
func (r ListApplicationsRequest) Send() (*ListApplicationsOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*ListApplicationsOutput), nil
}
// ListApplicationsRequest returns a request value for making API operation for
// AWSServerlessApplicationRepository.
//
// Lists applications owned by the requester.
//
// // Example sending a request using the ListApplicationsRequest method.
// req := client.ListApplicationsRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/ListApplications
func (c *ServerlessApplicationRepository) ListApplicationsRequest(input *ListApplicationsInput) ListApplicationsRequest {
op := &aws.Operation{
Name: opListApplications,
HTTPMethod: "GET",
HTTPPath: "/applications",
}
if input == nil {
input = &ListApplicationsInput{}
}
output := &ListApplicationsOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return ListApplicationsRequest{Request: req, Input: input}
}
const opPutApplicationPolicy = "PutApplicationPolicy"
// PutApplicationPolicyRequest is a API request type for the PutApplicationPolicy API operation.
type PutApplicationPolicyRequest struct {
*aws.Request
Input *PutApplicationPolicyInput
}
// Send marshals and sends the PutApplicationPolicy API request.
func (r PutApplicationPolicyRequest) Send() (*PutApplicationPolicyOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*PutApplicationPolicyOutput), nil
}
// PutApplicationPolicyRequest returns a request value for making API operation for
// AWSServerlessApplicationRepository.
//
// Puts the policy for the specified application.
//
// // Example sending a request using the PutApplicationPolicyRequest method.
// req := client.PutApplicationPolicyRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/PutApplicationPolicy
func (c *ServerlessApplicationRepository) PutApplicationPolicyRequest(input *PutApplicationPolicyInput) PutApplicationPolicyRequest {
op := &aws.Operation{
Name: opPutApplicationPolicy,
HTTPMethod: "PUT",
HTTPPath: "/applications/{applicationId}/policy",
}
if input == nil {
input = &PutApplicationPolicyInput{}
}
output := &PutApplicationPolicyOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return PutApplicationPolicyRequest{Request: req, Input: input}
}
const opUpdateApplication = "UpdateApplication"
// UpdateApplicationRequest is a API request type for the UpdateApplication API operation.
type UpdateApplicationRequest struct {
*aws.Request
Input *UpdateApplicationInput
}
// Send marshals and sends the UpdateApplication API request.
func (r UpdateApplicationRequest) Send() (*UpdateApplicationOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*UpdateApplicationOutput), nil
}
// UpdateApplicationRequest returns a request value for making API operation for
// AWSServerlessApplicationRepository.
//
// Updates the specified application.
//
// // Example sending a request using the UpdateApplicationRequest method.
// req := client.UpdateApplicationRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/UpdateApplication
func (c *ServerlessApplicationRepository) UpdateApplicationRequest(input *UpdateApplicationInput) UpdateApplicationRequest {
op := &aws.Operation{
Name: opUpdateApplication,
HTTPMethod: "PATCH",
HTTPPath: "/applications/{applicationId}",
}
if input == nil {
input = &UpdateApplicationInput{}
}
output := &UpdateApplicationOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return UpdateApplicationRequest{Request: req, Input: input}
}
// Policy statement applied to the application.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/ApplicationPolicyStatement
type ApplicationPolicyStatement struct {
_ struct{} `type:"structure"`
// A list of supported actions:\n\n GetApplication \n \n\n CreateCloudFormationChangeSet
// \n \n\n ListApplicationVersions \n \n\n SearchApplications \n \n\n Deploy
// (Note: This action enables all other actions above.)
Actions []string `locationName:"actions" type:"list"`
// An AWS account ID, or * to make the application public.
Principals []string `locationName:"principals" type:"list"`
// A unique ID for the statement.
StatementId *string `locationName:"statementId" type:"string"`
}
// String returns the string representation
func (s ApplicationPolicyStatement) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ApplicationPolicyStatement) GoString() string {
return s.String()
}
// SetActions sets the Actions field's value.
func (s *ApplicationPolicyStatement) SetActions(v []string) *ApplicationPolicyStatement {
s.Actions = v
return s
}
// SetPrincipals sets the Principals field's value.
func (s *ApplicationPolicyStatement) SetPrincipals(v []string) *ApplicationPolicyStatement {
s.Principals = v
return s
}
// SetStatementId sets the StatementId field's value.
func (s *ApplicationPolicyStatement) SetStatementId(v string) *ApplicationPolicyStatement {
s.StatementId = &v
return s
}
// Summary of details about the application.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/ApplicationSummary
type ApplicationSummary struct {
_ struct{} `type:"structure"`
// The application ARN.
ApplicationId *string `locationName:"applicationId" type:"string"`
// The name of the author publishing the app\nMin Length=1. Max Length=127.\nPattern
// "^[a-z0-9](([a-z0-9]|-(?!-))*[a-z0-9])?$";
Author *string `locationName:"author" type:"string"`
// The date/time this resource was created.
CreationTime *string `locationName:"creationTime" type:"string"`
// The description of the application.\nMin Length=1. Max Length=256
Description *string `locationName:"description" type:"string"`
// Labels to improve discovery of apps in search results.\nMin Length=1. Max
// Length=127. Maximum number of labels: 10\nPattern: "^[a-zA-Z0-9+\\-_:\\/@]+$";
Labels []string `locationName:"labels" type:"list"`
// The name of the application.\nMin Length=1. Max Length=140\nPattern: "[a-zA-Z0-9\\-]+";
Name *string `locationName:"name" type:"string"`
// A valid identifier from https://spdx.org/licenses/ .
SpdxLicenseId *string `locationName:"spdxLicenseId" type:"string"`
}
// String returns the string representation
func (s ApplicationSummary) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ApplicationSummary) GoString() string {
return s.String()
}
// SetApplicationId sets the ApplicationId field's value.
func (s *ApplicationSummary) SetApplicationId(v string) *ApplicationSummary {
s.ApplicationId = &v
return s
}
// SetAuthor sets the Author field's value.
func (s *ApplicationSummary) SetAuthor(v string) *ApplicationSummary {
s.Author = &v
return s
}
// SetCreationTime sets the CreationTime field's value.
func (s *ApplicationSummary) SetCreationTime(v string) *ApplicationSummary {
s.CreationTime = &v
return s
}
// SetDescription sets the Description field's value.
func (s *ApplicationSummary) SetDescription(v string) *ApplicationSummary {
s.Description = &v
return s
}
// SetLabels sets the Labels field's value.
func (s *ApplicationSummary) SetLabels(v []string) *ApplicationSummary {
s.Labels = v
return s
}
// SetName sets the Name field's value.
func (s *ApplicationSummary) SetName(v string) *ApplicationSummary {
s.Name = &v
return s
}
// SetSpdxLicenseId sets the SpdxLicenseId field's value.
func (s *ApplicationSummary) SetSpdxLicenseId(v string) *ApplicationSummary {
s.SpdxLicenseId = &v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/CreateApplicationRequest
type CreateApplicationInput struct {
_ struct{} `type:"structure"`
Author *string `locationName:"author" type:"string"`
Description *string `locationName:"description" type:"string"`
Labels []string `locationName:"labels" type:"list"`
LicenseBody *string `locationName:"licenseBody" type:"string"`
LicenseUrl *string `locationName:"licenseUrl" type:"string"`
Name *string `locationName:"name" type:"string"`
ReadmeBody *string `locationName:"readmeBody" type:"string"`
ReadmeUrl *string `locationName:"readmeUrl" type:"string"`
SemanticVersion *string `locationName:"semanticVersion" type:"string"`
SourceCodeUrl *string `locationName:"sourceCodeUrl" type:"string"`
SpdxLicenseId *string `locationName:"spdxLicenseId" type:"string"`
TemplateBody *string `locationName:"templateBody" type:"string"`
TemplateUrl *string `locationName:"templateUrl" type:"string"`
}
// String returns the string representation
func (s CreateApplicationInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateApplicationInput) GoString() string {
return s.String()
}
// SetAuthor sets the Author field's value.
func (s *CreateApplicationInput) SetAuthor(v string) *CreateApplicationInput {
s.Author = &v
return s
}
// SetDescription sets the Description field's value.
func (s *CreateApplicationInput) SetDescription(v string) *CreateApplicationInput {
s.Description = &v
return s
}
// SetLabels sets the Labels field's value.
func (s *CreateApplicationInput) SetLabels(v []string) *CreateApplicationInput {
s.Labels = v
return s
}
// SetLicenseBody sets the LicenseBody field's value.
func (s *CreateApplicationInput) SetLicenseBody(v string) *CreateApplicationInput {
s.LicenseBody = &v
return s
}
// SetLicenseUrl sets the LicenseUrl field's value.
func (s *CreateApplicationInput) SetLicenseUrl(v string) *CreateApplicationInput {
s.LicenseUrl = &v
return s
}
// SetName sets the Name field's value.
func (s *CreateApplicationInput) SetName(v string) *CreateApplicationInput {
s.Name = &v
return s
}
// SetReadmeBody sets the ReadmeBody field's value.
func (s *CreateApplicationInput) SetReadmeBody(v string) *CreateApplicationInput {
s.ReadmeBody = &v
return s
}
// SetReadmeUrl sets the ReadmeUrl field's value.
func (s *CreateApplicationInput) SetReadmeUrl(v string) *CreateApplicationInput {
s.ReadmeUrl = &v
return s
}
// SetSemanticVersion sets the SemanticVersion field's value.
func (s *CreateApplicationInput) SetSemanticVersion(v string) *CreateApplicationInput {
s.SemanticVersion = &v
return s
}
// SetSourceCodeUrl sets the SourceCodeUrl field's value.
func (s *CreateApplicationInput) SetSourceCodeUrl(v string) *CreateApplicationInput {
s.SourceCodeUrl = &v
return s
}
// SetSpdxLicenseId sets the SpdxLicenseId field's value.
func (s *CreateApplicationInput) SetSpdxLicenseId(v string) *CreateApplicationInput {
s.SpdxLicenseId = &v
return s
}
// SetTemplateBody sets the TemplateBody field's value.
func (s *CreateApplicationInput) SetTemplateBody(v string) *CreateApplicationInput {
s.TemplateBody = &v
return s
}
// SetTemplateUrl sets the TemplateUrl field's value.
func (s *CreateApplicationInput) SetTemplateUrl(v string) *CreateApplicationInput {
s.TemplateUrl = &v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/CreateApplicationResponse
type CreateApplicationOutput struct {
_ struct{} `type:"structure"`
responseMetadata aws.Response
ApplicationId *string `locationName:"applicationId" type:"string"`
Author *string `locationName:"author" type:"string"`
CreationTime *string `locationName:"creationTime" type:"string"`
Description *string `locationName:"description" type:"string"`
Labels []string `locationName:"labels" type:"list"`
LicenseUrl *string `locationName:"licenseUrl" type:"string"`
Name *string `locationName:"name" type:"string"`
ReadmeUrl *string `locationName:"readmeUrl" type:"string"`
SpdxLicenseId *string `locationName:"spdxLicenseId" type:"string"`
// Application version details.
Version *Version `locationName:"version" type:"structure"`
}
// String returns the string representation
func (s CreateApplicationOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateApplicationOutput) GoString() string {
return s.String()
}
// SDKResponseMetdata return sthe response metadata for the API.
func (s CreateApplicationOutput) SDKResponseMetadata() aws.Response {
return s.responseMetadata
}
// SetApplicationId sets the ApplicationId field's value.
func (s *CreateApplicationOutput) SetApplicationId(v string) *CreateApplicationOutput {
s.ApplicationId = &v
return s
}
// SetAuthor sets the Author field's value.
func (s *CreateApplicationOutput) SetAuthor(v string) *CreateApplicationOutput {
s.Author = &v
return s
}
// SetCreationTime sets the CreationTime field's value.
func (s *CreateApplicationOutput) SetCreationTime(v string) *CreateApplicationOutput {
s.CreationTime = &v
return s
}
// SetDescription sets the Description field's value.
func (s *CreateApplicationOutput) SetDescription(v string) *CreateApplicationOutput {
s.Description = &v
return s
}
// SetLabels sets the Labels field's value.
func (s *CreateApplicationOutput) SetLabels(v []string) *CreateApplicationOutput {
s.Labels = v
return s
}
// SetLicenseUrl sets the LicenseUrl field's value.
func (s *CreateApplicationOutput) SetLicenseUrl(v string) *CreateApplicationOutput {
s.LicenseUrl = &v
return s
}
// SetName sets the Name field's value.
func (s *CreateApplicationOutput) SetName(v string) *CreateApplicationOutput {
s.Name = &v
return s
}
// SetReadmeUrl sets the ReadmeUrl field's value.
func (s *CreateApplicationOutput) SetReadmeUrl(v string) *CreateApplicationOutput {
s.ReadmeUrl = &v
return s
}
// SetSpdxLicenseId sets the SpdxLicenseId field's value.
func (s *CreateApplicationOutput) SetSpdxLicenseId(v string) *CreateApplicationOutput {
s.SpdxLicenseId = &v
return s
}
// SetVersion sets the Version field's value.
func (s *CreateApplicationOutput) SetVersion(v *Version) *CreateApplicationOutput {
s.Version = v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/CreateApplicationVersionRequest
type CreateApplicationVersionInput struct {
_ struct{} `type:"structure"`
// ApplicationId is a required field
ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"`
// SemanticVersion is a required field
SemanticVersion *string `location:"uri" locationName:"semanticVersion" type:"string" required:"true"`
SourceCodeUrl *string `locationName:"sourceCodeUrl" type:"string"`
TemplateBody *string `locationName:"templateBody" type:"string"`
TemplateUrl *string `locationName:"templateUrl" type:"string"`
}
// String returns the string representation
func (s CreateApplicationVersionInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateApplicationVersionInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateApplicationVersionInput) Validate() error {
invalidParams := aws.ErrInvalidParams{Context: "CreateApplicationVersionInput"}
if s.ApplicationId == nil {
invalidParams.Add(aws.NewErrParamRequired("ApplicationId"))
}
if s.SemanticVersion == nil {
invalidParams.Add(aws.NewErrParamRequired("SemanticVersion"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetApplicationId sets the ApplicationId field's value.
func (s *CreateApplicationVersionInput) SetApplicationId(v string) *CreateApplicationVersionInput {
s.ApplicationId = &v
return s
}
// SetSemanticVersion sets the SemanticVersion field's value.
func (s *CreateApplicationVersionInput) SetSemanticVersion(v string) *CreateApplicationVersionInput {
s.SemanticVersion = &v
return s
}
// SetSourceCodeUrl sets the SourceCodeUrl field's value.
func (s *CreateApplicationVersionInput) SetSourceCodeUrl(v string) *CreateApplicationVersionInput {
s.SourceCodeUrl = &v
return s
}
// SetTemplateBody sets the TemplateBody field's value.
func (s *CreateApplicationVersionInput) SetTemplateBody(v string) *CreateApplicationVersionInput {
s.TemplateBody = &v
return s
}
// SetTemplateUrl sets the TemplateUrl field's value.
func (s *CreateApplicationVersionInput) SetTemplateUrl(v string) *CreateApplicationVersionInput {
s.TemplateUrl = &v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/CreateApplicationVersionResponse
type CreateApplicationVersionOutput struct {
_ struct{} `type:"structure"`
responseMetadata aws.Response
ApplicationId *string `locationName:"applicationId" type:"string"`
CreationTime *string `locationName:"creationTime" type:"string"`
ParameterDefinitions []ParameterDefinition `locationName:"parameterDefinitions" type:"list"`
SemanticVersion *string `locationName:"semanticVersion" type:"string"`
SourceCodeUrl *string `locationName:"sourceCodeUrl" type:"string"`
TemplateUrl *string `locationName:"templateUrl" type:"string"`
}
// String returns the string representation
func (s CreateApplicationVersionOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateApplicationVersionOutput) GoString() string {
return s.String()
}
// SDKResponseMetdata return sthe response metadata for the API.
func (s CreateApplicationVersionOutput) SDKResponseMetadata() aws.Response {
return s.responseMetadata
}
// SetApplicationId sets the ApplicationId field's value.
func (s *CreateApplicationVersionOutput) SetApplicationId(v string) *CreateApplicationVersionOutput {
s.ApplicationId = &v
return s
}
// SetCreationTime sets the CreationTime field's value.
func (s *CreateApplicationVersionOutput) SetCreationTime(v string) *CreateApplicationVersionOutput {
s.CreationTime = &v
return s
}
// SetParameterDefinitions sets the ParameterDefinitions field's value.
func (s *CreateApplicationVersionOutput) SetParameterDefinitions(v []ParameterDefinition) *CreateApplicationVersionOutput {
s.ParameterDefinitions = v
return s
}
// SetSemanticVersion sets the SemanticVersion field's value.
func (s *CreateApplicationVersionOutput) SetSemanticVersion(v string) *CreateApplicationVersionOutput {
s.SemanticVersion = &v
return s
}
// SetSourceCodeUrl sets the SourceCodeUrl field's value.
func (s *CreateApplicationVersionOutput) SetSourceCodeUrl(v string) *CreateApplicationVersionOutput {
s.SourceCodeUrl = &v
return s
}
// SetTemplateUrl sets the TemplateUrl field's value.
func (s *CreateApplicationVersionOutput) SetTemplateUrl(v string) *CreateApplicationVersionOutput {
s.TemplateUrl = &v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/CreateCloudFormationChangeSetRequest
type CreateCloudFormationChangeSetInput struct {
_ struct{} `type:"structure"`
// ApplicationId is a required field
ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"`
ParameterOverrides []ParameterValue `locationName:"parameterOverrides" type:"list"`
SemanticVersion *string `locationName:"semanticVersion" type:"string"`
StackName *string `locationName:"stackName" type:"string"`
}
// String returns the string representation
func (s CreateCloudFormationChangeSetInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateCloudFormationChangeSetInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateCloudFormationChangeSetInput) Validate() error {
invalidParams := aws.ErrInvalidParams{Context: "CreateCloudFormationChangeSetInput"}
if s.ApplicationId == nil {
invalidParams.Add(aws.NewErrParamRequired("ApplicationId"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetApplicationId sets the ApplicationId field's value.
func (s *CreateCloudFormationChangeSetInput) SetApplicationId(v string) *CreateCloudFormationChangeSetInput {
s.ApplicationId = &v
return s
}
// SetParameterOverrides sets the ParameterOverrides field's value.
func (s *CreateCloudFormationChangeSetInput) SetParameterOverrides(v []ParameterValue) *CreateCloudFormationChangeSetInput {
s.ParameterOverrides = v
return s
}
// SetSemanticVersion sets the SemanticVersion field's value.
func (s *CreateCloudFormationChangeSetInput) SetSemanticVersion(v string) *CreateCloudFormationChangeSetInput {
s.SemanticVersion = &v
return s
}